vendor: 5,064 bytes, lines 1-9
1var Kd=e=>{throw TypeError(e)};var qa=(e,t,n)=>t.has(e)||Kd("Cannot "+n);var k=(e,t,n)=>(qa(e,t,"read from private field"),n?n.call(e):t.get(e)),ae=(e,t,n)=>t.has(e)?Kd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(qa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(qa(e,t,"access private method"),n);var Ii=(e,t,n,r)=>({set _(o){X(e,t,o,n)},get _(){return k(e,t,r)}});function xw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mh={exports:{}},sa={},vh={exports:{}},Z={};/** 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 Si=Symbol.for("react.element"),Sw=Symbol.for("react.portal"),Ew=Symbol.for("react.fragment"),Cw=Symbol.for("react.strict_mode"),bw=Symbol.for("react.profiler"),Pw=Symbol.for("react.provider"),Tw=Symbol.for("react.context"),Nw=Symbol.for("react.forward_ref"),kw=Symbol.for("react.suspense"),Rw=Symbol.for("react.memo"),Ow=Symbol.for("react.lazy"),Gd=Symbol.iterator;function Aw(e){return e===null||typeof e!="object"?null:(e=Gd&&e[Gd]||e["@@iterator"],typeof e=="function"?e:null)}var gh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yh=Object.assign,wh={};function go(e,t,n){this.props=e,this.context=t,this.refs=wh,this.updater=n||gh}go.prototype.isReactComponent={};go.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};go.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xh(){}xh.prototype=go.prototype;function pc(e,t,n){this.props=e,this.context=t,this.refs=wh,this.updater=n||gh}var hc=pc.prototype=new xh;hc.constructor=pc;yh(hc,go.prototype);hc.isPureReactComponent=!0;var Yd=Array.isArray,Sh=Object.prototype.hasOwnProperty,mc={current:null},Eh={key:!0,ref:!0,__self:!0,__source:!0};function Ch(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Sh.call(t,r)&&!Eh.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Si,type:e,key:i,ref:s,props:o,_owner:mc.current}}function Iw(e,t){return{$$typeof:Si,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Si}function _w(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xd=/\/+/g;function Za(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_w(""+e.key):t.toString(36)}function us(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Si:case Sw:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Za(s,0):r,Yd(o)?(n="",e!=null&&(n=e.replace(Xd,"$&/")+"/"),us(o,t,n,"",function(u){return u})):o!=null&&(vc(o)&&(o=Iw(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Xd,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Yd(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Za(i,a);s+=us(i,t,n,l,o)}else if(l=Aw(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Za(i,a++),s+=us(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}
vendor: 4,291 bytes, lines 9-17
9function _i(e,t,n){if(e==null)return e;var r=[],o=0;return us(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Mw(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},cs={transition:null},jw={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:cs,ReactCurrentOwner:mc};function bh(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:_i,forEach:function(e,t,n){_i(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _i(e,function(){t++}),t},toArray:function(e){return _i(e,function(t){return t})||[]},only:function(e){if(!vc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=go;Z.Fragment=Ew;Z.Profiler=bw;Z.PureComponent=pc;Z.StrictMode=Cw;Z.Suspense=kw;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jw;Z.act=bh;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=yh({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=mc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Sh.call(t,l)&&!Eh.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Si,type:e.type,key:o,ref:i,props:r,_owner:s}};Z.createContext=function(e){return e={$$typeof:Tw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Pw,_context:e},e.Consumer=e};Z.createElement=Ch;Z.createFactory=function(e){var t=Ch.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:Nw,render:e}};Z.isValidElement=vc;Z.lazy=function(e){return{$$typeof:Ow,_payload:{_status:-1,_result:e},_init:Mw}};Z.memo=function(e,t){return{$$typeof:Rw,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=cs.transition;cs.transition={};try{e()}finally{cs.transition=t}};Z.unstable_act=bh;Z.useCallback=function(e,t){return Ge.current.useCallback(e,t)};Z.useContext=function(e){return Ge.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Ge.current.useEffect(e,t)};Z.useId=function(){return Ge.current.useId()};Z.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Ge.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};Z.useRef=function(e){return Ge.current.useRef(e)};Z.useState=function(e){return Ge.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Ge.current.useTransition()};Z.version="18.3.1";vh.exports=Z;var c=vh.exports;const _=hh(c),Ph=xw({__proto__:null,default:_},[c]);/** 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 Lw=c,Dw=Symbol.for("react.element"),Fw=Symbol.for("react.fragment"),$w=Object.prototype.hasOwnProperty,zw=Lw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bw={key:!0,ref:!0,__self:!0,__source:!0};function Th(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)$w.call(t,r)&&!Bw.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Dw,type:e,key:i,ref:s,props:o,_owner:zw.current}}sa.Fragment=Fw;sa.jsx=Th;sa.jsxs=Th;mh.exports=sa;
vendor: 10,931 bytes, lines 17-34
17var g=mh.exports,Nh={exports:{}},ft={},kh={exports:{}},Rh={};/** 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 */(function(e){function t(N,A){var $=N.length;N.push(A);e:for(;0<$;){var L=$-1>>>1,U=N[L];if(0<o(U,A))N[L]=A,N[$]=U,$=L;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var A=N[0],$=N.pop();if($!==A){N[0]=$;e:for(var L=0,U=N.length,q=U>>>1;L<q;){var ie=2*(L+1)-1,ke=N[ie],J=ie+1,V=N[J];if(0>o(ke,$))J<U&&0>o(V,ke)?(N[L]=V,N[J]=$,L=J):(N[L]=ke,N[ie]=$,L=ie);else if(J<U&&0>o(V,$))N[L]=V,N[J]=$,L=J;else break e}}return A}function o(N,A){var $=N.sortIndex-A.sortIndex;return $!==0?$:N.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],f=1,p=null,d=3,w=!1,y=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(N){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=N)r(u),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(u)}}function E(N){if(m=!1,x(N),!y)if(n(l)!==null)y=!0,D(C);else{var A=n(u);A!==null&&Q(E,A.startTime-N)}}function C(N,A){y=!1,m&&(m=!1,v(P),P=-1),w=!0;var $=d;try{for(x(A),p=n(l);p!==null&&(!(p.expirationTime>A)||N&&!z());){var L=p.callback;if(typeof L=="function"){p.callback=null,d=p.priorityLevel;var U=L(p.expirationTime<=A);A=e.unstable_now(),typeof U=="function"?p.callback=U:p===n(l)&&r(l),x(A)}else r(l);p=n(l)}if(p!==null)var q=!0;else{var ie=n(u);ie!==null&&Q(E,ie.startTime-A),q=!1}return q}finally{p=null,d=$,w=!1}}var T=!1,b=null,P=-1,I=5,O=-1;function z(){return!(e.unstable_now()-O<I)}function j(){if(b!==null){var N=e.unstable_now();O=N;var A=!0;try{A=b(!0,N)}finally{A?H():(T=!1,b=null)}}else T=!1}var H;if(typeof h=="function")H=function(){h(j)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,B=M.port2;M.port1.onmessage=j,H=function(){B.postMessage(null)}}else H=function(){S(j,0)};function D(N){b=N,T||(T=!0,H())}function Q(N,A){P=S(function(){N(e.unstable_now())},A)}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(N){N.callback=null},e.unstable_continueExecution=function(){y||w||(y=!0,D(C))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(d){case 1:case 2:case 3:var A=3;break;default:A=d}var $=d;d=A;try{return N()}finally{d=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,A){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var $=d;d=N;try{return A()}finally{d=$}},e.unstable_scheduleCallback=function(N,A,$){var L=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?L+$:L):$=L,N){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=$+U,N={id:f++,callback:A,priorityLevel:N,startTime:$,expirationTime:U,sortIndex:-1},$>L?(N.sortIndex=$,t(u,N),n(l)===null&&N===n(u)&&(m?(v(P),P=-1):m=!0,Q(E,$-L))):(N.sortIndex=U,t(l,N),y||w||(y=!0,D(C))),N},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(N){var A=d;return function(){var $=d;d=A;try{return N.apply(this,arguments)}finally{d=$}}}})(Rh);kh.exports=Rh;var Uw=kh.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 Ww=c,dt=Uw;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Oh=new Set,Zo={};function wr(e,t){ao(e,t),ao(e+"Capture",t)}function ao(e,t){for(Zo[e]=t,e=0;e<t.length;e++)Oh.add(t[e])}var rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vl=Object.prototype.hasOwnProperty,Vw=/^[: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]*$/,qd={},Zd={};function Hw(e){return Vl.call(Zd,e)?!0:Vl.call(qd,e)?!1:Vw.test(e)?Zd[e]=!0:(qd[e]=!0,!1)}function Qw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Kw(e,t,n,r){if(t===null||typeof t>"u"||Qw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){je[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var gc=/[\-:]([a-z])/g;function yc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gc,yc);je[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gc,yc);je[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gc,yc);je[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function wc(e,t,n,r){var o=je.hasOwnProperty(t)?je[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Kw(t,n,o,r)&&(n=null),r||o===null?Hw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var cn=Ww.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mi=Symbol.for("react.element"),Or=Symbol.for("react.portal"),Ar=Symbol.for("react.fragment"),xc=Symbol.for("react.strict_mode"),Hl=Symbol.for("react.profiler"),Ah=Symbol.for("react.provider"),Ih=Symbol.for("react.context"),Sc=Symbol.for("react.forward_ref"),Ql=Symbol.for("react.suspense"),Kl=Symbol.for("react.suspense_list"),Ec=Symbol.for("react.memo"),wn=Symbol.for("react.lazy"),_h=Symbol.for("react.offscreen"),Jd=Symbol.iterator;function Po(e){return e===null||typeof e!="object"?null:(e=Jd&&e[Jd]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Ja;function jo(e){if(Ja===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ja=t&&t[1]||""}return` 34`+Ja+e}var el=!1;function tl(e,t){if(!e||el)return"";el=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 1,435 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` 35`),i=r.stack.split(` 36`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=` 37`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{el=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jo(e):""}function Gw(e){switch(e.tag){case 5:return jo(e.type);case 16:return jo("Lazy");case 13:return jo("Suspense");case 19:return jo("SuspenseList");case 0:case 2:case 15:return e=tl(e.type,!1),e;case 11:return e=tl(e.type.render,!1),e;case 1:return e=tl(e.type,!0),e;default:return""}}function Gl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ar:return"Fragment";case Or:return"Portal";case Hl:return"Profiler";case xc:return"StrictMode";case Ql:return"Suspense";case Kl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ih:return(e.displayName||"Context")+".Consumer";case Ah:return(e._context.displayName||"Context")+".Provider";case Sc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ec:return t=e.displayName||null,t!==null?t:Gl(e.type)||"Memo";case wn:t=e._payload,e=e._init;
vendor: 15,186 bytes, line 37
37try{return Gl(e(t))}catch{}}return null}function Yw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gl(t);case 8:return t===xc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xw(e){var t=Mh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ji(e){e._valueTracker||(e._valueTracker=Xw(e))}function jh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ns(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yl(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ef(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lh(e,t){t=t.checked,t!=null&&wc(e,"checked",t,!1)}function Xl(e,t){Lh(e,t);var n=$n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ql(e,t.type,n):t.hasOwnProperty("defaultValue")&&ql(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ql(e,t,n){(t!=="number"||Ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lo=Array.isArray;function Ur(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$n(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Zl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Lo(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$n(n)}}function Dh(e,t){var n=$n(t.value),r=$n(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function rf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Fh(e){switch(e){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 Jl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Fh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Li,$h=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Li=Li||document.createElement("div"),Li.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zo={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},qw=["Webkit","ms","Moz","O"];Object.keys(zo).forEach(function(e){qw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zo[t]=zo[e]})});function zh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zo.hasOwnProperty(e)&&zo[e]?(""+t).trim():t+"px"}function Bh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=zh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Zw=we({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 eu(e,t){if(t){if(Zw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function tu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nu=null;function Cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ru=null,Wr=null,Vr=null;function of(e){if(e=bi(e)){if(typeof ru!="function")throw Error(R(280));var t=e.stateNode;t&&(t=da(t),ru(e.stateNode,e.type,t))}}function Uh(e){Wr?Vr?Vr.push(e):Vr=[e]:Wr=e}function Wh(){if(Wr){var e=Wr,t=Vr;if(Vr=Wr=null,of(e),t)for(e=0;e<t.length;e++)of(t[e])}}function Vh(e,t){return e(t)}function Hh(){}var nl=!1;function Qh(e,t,n){if(nl)return e(t,n);nl=!0;try{return Vh(e,t,n)}finally{nl=!1,(Wr!==null||Vr!==null)&&(Hh(),Wh())}}function ei(e,t){var n=e.stateNode;if(n===null)return null;var r=da(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var ou=!1;if(rn)try{var To={};Object.defineProperty(To,"passive",{get:function(){ou=!0}}),window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{ou=!1}function Jw(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Bo=!1,ks=null,Rs=!1,iu=null,ex={onError:function(e){Bo=!0,ks=e}};function tx(e,t,n,r,o,i,s,a,l){Bo=!1,ks=null,Jw.apply(ex,arguments)}function nx(e,t,n,r,o,i,s,a,l){if(tx.apply(this,arguments),Bo){if(Bo){var u=ks;Bo=!1,ks=null}else throw Error(R(198));Rs||(Rs=!0,iu=u)}}function xr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Kh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sf(e){if(xr(e)!==e)throw Error(R(188))}function rx(e){var t=e.alternate;if(!t){if(t=xr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return sf(o),e;if(i===r)return sf(o),t;i=i.sibling}throw Error(R(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Gh(e){return e=rx(e),e!==null?Yh(e):null}function Yh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yh(e);if(t!==null)return t;e=e.sibling}return null}var Xh=dt.unstable_scheduleCallback,af=dt.unstable_cancelCallback,ox=dt.unstable_shouldYield,ix=dt.unstable_requestPaint,be=dt.unstable_now,sx=dt.unstable_getCurrentPriorityLevel,bc=dt.unstable_ImmediatePriority,qh=dt.unstable_UserBlockingPriority,Os=dt.unstable_NormalPriority,ax=dt.unstable_LowPriority,Zh=dt.unstable_IdlePriority,aa=null,Wt=null;function lx(e){if(Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(aa,e,void 0,(e.current.flags&128)===128)}catch{}}var Rt=Math.clz32?Math.clz32:dx,ux=Math.log,cx=Math.LN2;function dx(e){return e>>>=0,e===0?32:31-(ux(e)/cx|0)|0}var Di=64,Fi=4194304;function Do(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function As(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Do(a):(i&=s,i!==0&&(r=Do(i)))}else s=n&~o,s!==0?r=Do(s):i!==0&&(r=Do(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Rt(t),o=1<<n,r|=e[n],t&=~o;return r}function fx(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 px(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Rt(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=fx(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function su(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Jh(){var e=Di;return Di<<=1,!(Di&4194240)&&(Di=64),e}function rl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=n}function hx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Rt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Pc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Rt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var le=0;function em(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var tm,Tc,nm,rm,om,au=!1,$i=[],An=null,In=null,_n=null,ti=new Map,ni=new Map,Sn=[],mx="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 lf(e,t){switch(e){case"focusin":case"focusout":An=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":_n=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ni.delete(t.pointerId)}}function No(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=bi(t),t!==null&&Tc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function vx(e,t,n,r,o){switch(t){case"focusin":return An=No(An,e,t,n,r,o),!0;case"dragenter":return In=No(In,e,t,n,r,o),!0;case"mouseover":return _n=No(_n,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ti.set(i,No(ti.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ni.set(i,No(ni.get(i)||null,e,t,n,r,o)),!0}return!1}function im(e){var t=er(e.target);if(t!==null){var n=xr(t);if(n!==null){if(t=n.tag,t===13){if(t=Kh(n),t!==null){e.blockedOn=t,om(e.priority,function(){nm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nu=r,n.target.dispatchEvent(r),nu=null}else return t=bi(n),t!==null&&Tc(t),e.blockedOn=n,!1;t.shift()}return!0}function uf(e,t,n){ds(e)&&n.delete(t)}
vendor: 11,957 bytes, line 37
37function gx(){au=!1,An!==null&&ds(An)&&(An=null),In!==null&&ds(In)&&(In=null),_n!==null&&ds(_n)&&(_n=null),ti.forEach(uf),ni.forEach(uf)}function ko(e,t){e.blockedOn===t&&(e.blockedOn=null,au||(au=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,gx)))}function ri(e){function t(o){return ko(o,e)}if(0<$i.length){ko($i[0],e);for(var n=1;n<$i.length;n++){var r=$i[n];r.blockedOn===e&&(r.blockedOn=null)}}for(An!==null&&ko(An,e),In!==null&&ko(In,e),_n!==null&&ko(_n,e),ti.forEach(t),ni.forEach(t),n=0;n<Sn.length;n++)r=Sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Sn.length&&(n=Sn[0],n.blockedOn===null);)im(n),n.blockedOn===null&&Sn.shift()}var Hr=cn.ReactCurrentBatchConfig,Is=!0;function yx(e,t,n,r){var o=le,i=Hr.transition;Hr.transition=null;try{le=1,Nc(e,t,n,r)}finally{le=o,Hr.transition=i}}function wx(e,t,n,r){var o=le,i=Hr.transition;Hr.transition=null;try{le=4,Nc(e,t,n,r)}finally{le=o,Hr.transition=i}}function Nc(e,t,n,r){if(Is){var o=lu(e,t,n,r);if(o===null)pl(e,t,r,_s,n),lf(e,r);else if(vx(o,e,t,n,r))r.stopPropagation();else if(lf(e,r),t&4&&-1<mx.indexOf(e)){for(;o!==null;){var i=bi(o);if(i!==null&&tm(i),i=lu(e,t,n,r),i===null&&pl(e,t,r,_s,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else pl(e,t,r,null,n)}}var _s=null;function lu(e,t,n,r){if(_s=null,e=Cc(r),e=er(e),e!==null)if(t=xr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _s=e,null}function sm(e){switch(e){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(sx()){case bc:return 1;case qh:return 4;case Os:case ax:return 16;case Zh:return 536870912;default:return 16}default:return 16}}var kn=null,kc=null,fs=null;function am(){if(fs)return fs;var e,t=kc,n=t.length,r,o="value"in kn?kn.value:kn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return fs=o.slice(e,1<r?1-r:void 0)}function ps(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zi(){return!0}function cf(){return!1}function pt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?zi:cf,this.isPropagationStopped=cf,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zi)},persist:function(){},isPersistent:zi}),t}var yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rc=pt(yo),Ci=we({},yo,{view:0,detail:0}),xx=pt(Ci),ol,il,Ro,la=we({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ro&&(Ro&&e.type==="mousemove"?(ol=e.screenX-Ro.screenX,il=e.screenY-Ro.screenY):il=ol=0,Ro=e),ol)},movementY:function(e){return"movementY"in e?e.movementY:il}}),df=pt(la),Sx=we({},la,{dataTransfer:0}),Ex=pt(Sx),Cx=we({},Ci,{relatedTarget:0}),sl=pt(Cx),bx=we({},yo,{animationName:0,elapsedTime:0,pseudoElement:0}),Px=pt(bx),Tx=we({},yo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nx=pt(Tx),kx=we({},yo,{data:0}),ff=pt(kx),Rx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ox={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"},Ax={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ix(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ax[e])?!!t[e]:!1}function Oc(){return Ix}var _x=we({},Ci,{key:function(e){if(e.key){var t=Rx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ps(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ox[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?ps(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ps(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mx=pt(_x),jx=we({},la,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=pt(jx),Lx=we({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),Dx=pt(Lx),Fx=we({},yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),$x=pt(Fx),zx=we({},la,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bx=pt(zx),Ux=[9,13,27,32],Ac=rn&&"CompositionEvent"in window,Uo=null;rn&&"documentMode"in document&&(Uo=document.documentMode);var Wx=rn&&"TextEvent"in window&&!Uo,lm=rn&&(!Ac||Uo&&8<Uo&&11>=Uo),hf=" ",mf=!1;function um(e,t){switch(e){case"keyup":return Ux.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function Vx(e,t){switch(e){case"compositionend":return cm(t);case"keypress":return t.which!==32?null:(mf=!0,hf);case"textInput":return e=t.data,e===hf&&mf?null:e;default:return null}}function Hx(e,t){if(Ir)return e==="compositionend"||!Ac&&um(e,t)?(e=am(),fs=kc=kn=null,Ir=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return lm&&t.locale!=="ko"?null:t.data;default:return null}}var Qx={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 vf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qx[e.type]:t==="textarea"}function dm(e,t,n,r){Uh(r),t=Ms(t,"onChange"),0<t.length&&(n=new Rc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wo=null,oi=null;function Kx(e){Em(e,0)}function ua(e){var t=jr(e);if(jh(t))return e}function Gx(e,t){if(e==="change")return t}var fm=!1;if(rn){var al;if(rn){var ll="oninput"in document;if(!ll){var gf=document.createElement("div");gf.setAttribute("oninput","return;"),ll=typeof gf.oninput=="function"}al=ll}else al=!1;fm=al&&(!document.documentMode||9<document.documentMode)}function yf(){Wo&&(Wo.detachEvent("onpropertychange",pm),oi=Wo=null)}function pm(e){if(e.propertyName==="value"&&ua(oi)){var t=[];dm(t,oi,e,Cc(e)),Qh(Kx,t)}}function Yx(e,t,n){e==="focusin"?(yf(),Wo=t,oi=n,Wo.attachEvent("onpropertychange",pm)):e==="focusout"&&yf()}function Xx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ua(oi)}function qx(e,t){if(e==="click")return ua(t)}function Zx(e,t){if(e==="input"||e==="change")return ua(t)}function Jx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:Jx;function ii(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Vl.call(t,o)||!At(e[o],t[o]))return!1}return!0}function wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xf(e,t){var n=wf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wf(n)}}function hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mm(){for(var e=window,t=Ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ns(e.document)}return t}function Ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function e1(e){var t=mm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hm(n.ownerDocument.documentElement,n)){if(r!==null&&Ic(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=xf(n,i);var s=xf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var t1=rn&&"documentMode"in document&&11>=document.documentMode,_r=null,uu=null,Vo=null,cu=!1;function Sf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cu||_r==null||_r!==Ns(r)||(r=_r,"selectionStart"in r&&Ic(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Vo&&ii(Vo,r)||(Vo=r,r=Ms(uu,"onSelect"),0<r.length&&(t=new Rc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_r)))}function Bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mr={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionend:Bi("Transition","TransitionEnd")},ul={},vm={};rn&&(vm=document.createElement("div").style,"AnimationEvent"in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),"TransitionEvent"in window||delete Mr.transitionend.transition);function ca(e){if(ul[e])return ul[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vm)return ul[e]=t[n];return e}var gm=ca("animationend"),ym=ca("animationiteration"),wm=ca("animationstart"),xm=ca("transitionend"),Sm=new Map,Ef="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 Hn(e,t){Sm.set(e,t),wr(t,[e])}for(var cl=0;cl<Ef.length;cl++){var dl=Ef[cl],n1=dl.toLowerCase(),r1=dl[0].toUpperCase()+dl.slice(1);Hn(n1,"on"+r1)}Hn(gm,"onAnimationEnd");Hn(ym,"onAnimationIteration");Hn(wm,"onAnimationStart");Hn("dblclick","onDoubleClick");Hn("focusin","onFocus");Hn("focusout","onBlur");Hn(xm,"onTransitionEnd");ao("onMouseEnter",["mouseout","mouseover"]);ao("onMouseLeave",["mouseout","mouseover"]);ao("onPointerEnter",["pointerout","pointerover"]);ao("onPointerLeave",["pointerout","pointerover"]);wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wr("onBeforeInput",["compositionend","keypress","textInput","paste"]);wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fo="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(" "),o1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function Cf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,nx(r,t,void 0,e),e.currentTarget=null}function Em(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Cf(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Cf(o,a,u),i=l}}}if(Rs)throw e=iu,Rs=!1,iu=null,e}function he(e,t){var n=t[mu];n===void 0&&(n=t[mu]=new Set);var r=e+"__bubble";n.has(r)||(Cm(t,e,2,!1),n.add(r))}function fl(e,t,n){var r=0;t&&(r|=4),Cm(n,e,r,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function si(e){if(!e[Ui]){e[Ui]=!0,Oh.forEach(function(n){n!=="selectionchange"&&(o1.has(n)||fl(n,!1,e),fl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,fl("selectionchange",!1,t))}}function Cm(e,t,n,r){switch(sm(t)){case 1:var o=yx;break;case 4:o=wx;break;default:o=Nc}n=o.bind(null,t,n,e),o=void 0,!ou||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function pl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 4,797 bytes, lines 37-38
37if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=er(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Qh(function(){var u=i,f=Cc(n),p=[];e:{var d=Sm.get(e);if(d!==void 0){var w=Rc,y=e;switch(e){case"keypress":if(ps(n)===0)break e;case"keydown":case"keyup":w=Mx;break;case"focusin":y="focus",w=sl;break;case"focusout":y="blur",w=sl;break;case"beforeblur":case"afterblur":w=sl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=df;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Ex;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Dx;break;case gm:case ym:case wm:w=Px;break;case xm:w=$x;break;case"scroll":w=xx;break;case"wheel":w=Bx;break;case"copy":case"cut":case"paste":w=Nx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=pf}var m=(t&4)!==0,S=!m&&e==="scroll",v=m?d!==null?d+"Capture":null:d;m=[];for(var h=u,x;h!==null;){x=h;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,v!==null&&(E=ei(h,v),E!=null&&m.push(ai(h,E,x)))),S)break;h=h.return}0<m.length&&(d=new w(d,y,null,n,f),p.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",d&&n!==nu&&(y=n.relatedTarget||n.fromElement)&&(er(y)||y[on]))break e;if((w||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,w?(y=n.relatedTarget||n.toElement,w=u,y=y?er(y):null,y!==null&&(S=xr(y),y!==S||y.tag!==5&&y.tag!==6)&&(y=null)):(w=null,y=u),w!==y)){if(m=df,E="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(m=pf,E="onPointerLeave",v="onPointerEnter",h="pointer"),S=w==null?d:jr(w),x=y==null?d:jr(y),d=new m(E,h+"leave",w,n,f),d.target=S,d.relatedTarget=x,E=null,er(f)===u&&(m=new m(v,h+"enter",y,n,f),m.target=x,m.relatedTarget=S,E=m),S=E,w&&y)t:{for(m=w,v=y,h=0,x=m;x;x=br(x))h++;for(x=0,E=v;E;E=br(E))x++;for(;0<h-x;)m=br(m),h--;for(;0<x-h;)v=br(v),x--;for(;h--;){if(m===v||v!==null&&m===v.alternate)break t;m=br(m),v=br(v)}m=null}else m=null;w!==null&&bf(p,d,w,m,!1),y!==null&&S!==null&&bf(p,S,y,m,!0)}}e:{if(d=u?jr(u):window,w=d.nodeName&&d.nodeName.toLowerCase(),w==="select"||w==="input"&&d.type==="file")var C=Gx;else if(vf(d))if(fm)C=Zx;else{C=Xx;var T=Yx}else(w=d.nodeName)&&w.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=qx);if(C&&(C=C(e,u))){dm(p,C,n,f);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&ql(d,"number",d.value)}switch(T=u?jr(u):window,e){case"focusin":(vf(T)||T.contentEditable==="true")&&(_r=T,uu=u,Vo=null);break;case"focusout":Vo=uu=_r=null;break;case"mousedown":cu=!0;break;case"contextmenu":case"mouseup":case"dragend":cu=!1,Sf(p,n,f);break;case"selectionchange":if(t1)break;case"keydown":case"keyup":Sf(p,n,f)}var b;if(Ac)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Ir?um(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(lm&&n.locale!=="ko"&&(Ir||P!=="onCompositionStart"?P==="onCompositionEnd"&&Ir&&(b=am()):(kn=f,kc="value"in kn?kn.value:kn.textContent,Ir=!0)),T=Ms(u,P),0<T.length&&(P=new ff(P,e,null,n,f),p.push({event:P,listeners:T}),b?P.data=b:(b=cm(n),b!==null&&(P.data=b)))),(b=Wx?Vx(e,n):Hx(e,n))&&(u=Ms(u,"onBeforeInput"),0<u.length&&(f=new ff("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=b))}Em(p,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ms(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ei(e,n),i!=null&&r.unshift(ai(e,i,o)),i=ei(e,t),i!=null&&r.push(ai(e,i,o))),e=e.return}return r}function br(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bf(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=ei(n,i),l!=null&&s.unshift(ai(n,l,a))):o||(l=ei(n,i),l!=null&&s.push(ai(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var i1=/\r\n?/g,s1=/\u0000|\uFFFD/g;function Pf(e){return(typeof e=="string"?e:""+e).replace(i1,` 38`).replace(s1,"")}function Wi(e,t,n){if(t=Pf(t),Pf(e)!==t&&n)throw Error(R(425))}function js(){}
vendor: 4,102 bytes, line 38
38var du=null,fu=null;function pu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hu=typeof setTimeout=="function"?setTimeout:void 0,a1=typeof clearTimeout=="function"?clearTimeout:void 0,Tf=typeof Promise=="function"?Promise:void 0,l1=typeof queueMicrotask=="function"?queueMicrotask:typeof Tf<"u"?function(e){return Tf.resolve(null).then(e).catch(u1)}:hu;function u1(e){setTimeout(function(){throw e})}function hl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ri(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ri(t)}function Mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Nf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var wo=Math.random().toString(36).slice(2),Ut="__reactFiber$"+wo,li="__reactProps$"+wo,on="__reactContainer$"+wo,mu="__reactEvents$"+wo,c1="__reactListeners$"+wo,d1="__reactHandles$"+wo;function er(e){var t=e[Ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[Ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Nf(e);e!==null;){if(n=e[Ut])return n;e=Nf(e)}return t}e=n,n=e.parentNode}return null}function bi(e){return e=e[Ut]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function da(e){return e[li]||null}var vu=[],Lr=-1;function Qn(e){return{current:e}}function me(e){0>Lr||(e.current=vu[Lr],vu[Lr]=null,Lr--)}function de(e,t){Lr++,vu[Lr]=e.current,e.current=t}var zn={},Ue=Qn(zn),Ze=Qn(!1),ur=zn;function lo(e,t){var n=e.type.contextTypes;if(!n)return zn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function Ls(){me(Ze),me(Ue)}function kf(e,t,n){if(Ue.current!==zn)throw Error(R(168));de(Ue,t),de(Ze,n)}function bm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,Yw(e)||"Unknown",o));return we({},n,r)}function Ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,ur=Ue.current,de(Ue,e),de(Ze,Ze.current),!0}function Rf(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=bm(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,me(Ze),me(Ue),de(Ue,e)):me(Ze),de(Ze,n)}var qt=null,fa=!1,ml=!1;function Pm(e){qt===null?qt=[e]:qt.push(e)}function f1(e){fa=!0,Pm(e)}function Kn(){if(!ml&&qt!==null){ml=!0;var e=0,t=le;try{var n=qt;for(le=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qt=null,fa=!1}catch(o){throw qt!==null&&(qt=qt.slice(e+1)),Xh(bc,Kn),o}finally{le=t,ml=!1}}return null}var Dr=[],Fr=0,Fs=null,$s=0,vt=[],gt=0,cr=null,Jt=1,en="";function Zn(e,t){Dr[Fr++]=$s,Dr[Fr++]=Fs,Fs=e,$s=t}function Tm(e,t,n){vt[gt++]=Jt,vt[gt++]=en,vt[gt++]=cr,cr=e;var r=Jt;e=en;var o=32-Rt(r)-1;r&=~(1<<o),n+=1;var i=32-Rt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Jt=1<<32-Rt(t)+o|n<<o|r,en=i+e}else Jt=1<<i|n<<o|r,en=e}function _c(e){e.return!==null&&(Zn(e,1),Tm(e,1,0))}function Mc(e){for(;e===Fs;)Fs=Dr[--Fr],Dr[Fr]=null,$s=Dr[--Fr],Dr[Fr]=null;for(;e===cr;)cr=vt[--gt],vt[gt]=null,en=vt[--gt],vt[gt]=null,Jt=vt[--gt],vt[gt]=null}var ut=null,lt=null,ve=!1,kt=null;function Nm(e,t){var n=yt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Of(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 26,837 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ut=e,lt=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cr!==null?{id:Jt,overflow:en}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ut=e,lt=null,!0):!1;default:return!1}}function gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yu(e){if(ve){var t=lt;if(t){var n=t;if(!Of(e,t)){if(gu(e))throw Error(R(418));t=Mn(n.nextSibling);var r=ut;t&&Of(e,t)?Nm(r,n):(e.flags=e.flags&-4097|2,ve=!1,ut=e)}}else{if(gu(e))throw Error(R(418));e.flags=e.flags&-4097|2,ve=!1,ut=e}}}function Af(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function Vi(e){if(e!==ut)return!1;if(!ve)return Af(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pu(e.type,e.memoizedProps)),t&&(t=lt)){if(gu(e))throw km(),Error(R(418));for(;t;)Nm(e,t),t=Mn(t.nextSibling)}if(Af(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=Mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ut?Mn(e.stateNode.nextSibling):null;return!0}function km(){for(var e=lt;e;)e=Mn(e.nextSibling)}function uo(){lt=ut=null,ve=!1}function jc(e){kt===null?kt=[e]:kt.push(e)}var p1=cn.ReactCurrentBatchConfig;function Oo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function Hi(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function If(e){var t=e._init;return t(e._payload)}function Rm(e){function t(v,h){if(e){var x=v.deletions;x===null?(v.deletions=[h],v.flags|=16):x.push(h)}}function n(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function r(v,h){for(v=new Map;h!==null;)h.key!==null?v.set(h.key,h):v.set(h.index,h),h=h.sibling;return v}function o(v,h){return v=Fn(v,h),v.index=0,v.sibling=null,v}function i(v,h,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<h?(v.flags|=2,h):x):(v.flags|=2,h)):(v.flags|=1048576,h)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,h,x,E){return h===null||h.tag!==6?(h=El(x,v.mode,E),h.return=v,h):(h=o(h,x),h.return=v,h)}function l(v,h,x,E){var C=x.type;return C===Ar?f(v,h,x.props.children,E,x.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===wn&&If(C)===h.type)?(E=o(h,x.props),E.ref=Oo(v,h,x),E.return=v,E):(E=xs(x.type,x.key,x.props,null,v.mode,E),E.ref=Oo(v,h,x),E.return=v,E)}function u(v,h,x,E){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Cl(x,v.mode,E),h.return=v,h):(h=o(h,x.children||[]),h.return=v,h)}function f(v,h,x,E,C){return h===null||h.tag!==7?(h=lr(x,v.mode,E,C),h.return=v,h):(h=o(h,x),h.return=v,h)}function p(v,h,x){if(typeof h=="string"&&h!==""||typeof h=="number")return h=El(""+h,v.mode,x),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Mi:return x=xs(h.type,h.key,h.props,null,v.mode,x),x.ref=Oo(v,null,h),x.return=v,x;case Or:return h=Cl(h,v.mode,x),h.return=v,h;case wn:var E=h._init;return p(v,E(h._payload),x)}if(Lo(h)||Po(h))return h=lr(h,v.mode,x,null),h.return=v,h;Hi(v,h)}return null}function d(v,h,x,E){var C=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:a(v,h,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Mi:return x.key===C?l(v,h,x,E):null;case Or:return x.key===C?u(v,h,x,E):null;case wn:return C=x._init,d(v,h,C(x._payload),E)}if(Lo(x)||Po(x))return C!==null?null:f(v,h,x,E,null);Hi(v,x)}return null}function w(v,h,x,E,C){if(typeof E=="string"&&E!==""||typeof E=="number")return v=v.get(x)||null,a(h,v,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Mi:return v=v.get(E.key===null?x:E.key)||null,l(h,v,E,C);case Or:return v=v.get(E.key===null?x:E.key)||null,u(h,v,E,C);case wn:var T=E._init;return w(v,h,x,T(E._payload),C)}if(Lo(E)||Po(E))return v=v.get(x)||null,f(h,v,E,C,null);Hi(h,E)}return null}function y(v,h,x,E){for(var C=null,T=null,b=h,P=h=0,I=null;b!==null&&P<x.length;P++){b.index>P?(I=b,b=null):I=b.sibling;var O=d(v,b,x[P],E);if(O===null){b===null&&(b=I);break}e&&b&&O.alternate===null&&t(v,b),h=i(O,h,P),T===null?C=O:T.sibling=O,T=O,b=I}if(P===x.length)return n(v,b),ve&&Zn(v,P),C;if(b===null){for(;P<x.length;P++)b=p(v,x[P],E),b!==null&&(h=i(b,h,P),T===null?C=b:T.sibling=b,T=b);return ve&&Zn(v,P),C}for(b=r(v,b);P<x.length;P++)I=w(b,v,P,x[P],E),I!==null&&(e&&I.alternate!==null&&b.delete(I.key===null?P:I.key),h=i(I,h,P),T===null?C=I:T.sibling=I,T=I);return e&&b.forEach(function(z){return t(v,z)}),ve&&Zn(v,P),C}function m(v,h,x,E){var C=Po(x);if(typeof C!="function")throw Error(R(150));if(x=C.call(x),x==null)throw Error(R(151));for(var T=C=null,b=h,P=h=0,I=null,O=x.next();b!==null&&!O.done;P++,O=x.next()){b.index>P?(I=b,b=null):I=b.sibling;var z=d(v,b,O.value,E);if(z===null){b===null&&(b=I);break}e&&b&&z.alternate===null&&t(v,b),h=i(z,h,P),T===null?C=z:T.sibling=z,T=z,b=I}if(O.done)return n(v,b),ve&&Zn(v,P),C;if(b===null){for(;!O.done;P++,O=x.next())O=p(v,O.value,E),O!==null&&(h=i(O,h,P),T===null?C=O:T.sibling=O,T=O);return ve&&Zn(v,P),C}for(b=r(v,b);!O.done;P++,O=x.next())O=w(b,v,P,O.value,E),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?P:O.key),h=i(O,h,P),T===null?C=O:T.sibling=O,T=O);return e&&b.forEach(function(j){return t(v,j)}),ve&&Zn(v,P),C}function S(v,h,x,E){if(typeof x=="object"&&x!==null&&x.type===Ar&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Mi:e:{for(var C=x.key,T=h;T!==null;){if(T.key===C){if(C=x.type,C===Ar){if(T.tag===7){n(v,T.sibling),h=o(T,x.props.children),h.return=v,v=h;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===wn&&If(C)===T.type){n(v,T.sibling),h=o(T,x.props),h.ref=Oo(v,T,x),h.return=v,v=h;break e}n(v,T);break}else t(v,T);T=T.sibling}x.type===Ar?(h=lr(x.props.children,v.mode,E,x.key),h.return=v,v=h):(E=xs(x.type,x.key,x.props,null,v.mode,E),E.ref=Oo(v,h,x),E.return=v,v=E)}return s(v);case Or:e:{for(T=x.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){n(v,h.sibling),h=o(h,x.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=Cl(x,v.mode,E),h.return=v,v=h}return s(v);case wn:return T=x._init,S(v,h,T(x._payload),E)}if(Lo(x))return y(v,h,x,E);if(Po(x))return m(v,h,x,E);Hi(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(n(v,h.sibling),h=o(h,x),h.return=v,v=h):(n(v,h),h=El(x,v.mode,E),h.return=v,v=h),s(v)):n(v,h)}return S}var co=Rm(!0),Om=Rm(!1),zs=Qn(null),Bs=null,$r=null,Lc=null;function Dc(){Lc=$r=Bs=null}function Fc(e){var t=zs.current;me(zs),e._currentValue=t}function wu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Qr(e,t){Bs=e,Lc=$r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(Lc!==e)if(e={context:e,memoizedValue:t,next:null},$r===null){if(Bs===null)throw Error(R(308));$r=e,Bs.dependencies={lanes:0,firstContext:e}}else $r=$r.next=e;return t}var tr=null;function $c(e){tr===null?tr=[e]:tr.push(e)}function Am(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,$c(t)):(n.next=o.next,o.next=n),t.interleaved=n,sn(e,r)}function sn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var xn=!1;function zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Im(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,sn(e,n)}return o=r.interleaved,o===null?(t.next=t,$c(r)):(t.next=o.next,o.next=t),r.interleaved=t,sn(e,n)}function hs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pc(e,n)}}function _f(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Us(e,t,n,r){var o=e.updateQueue;xn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=l))}if(i!==null){var p=o.baseState;s=0,f=u=l=null,a=i;do{var d=a.lane,w=a.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,m=a;switch(d=t,w=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){p=y.call(w,p,d);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,d=typeof y=="function"?y.call(w,p,d):y,d==null)break e;p=we({},p,d);break e;case 2:xn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else w={eventTime:w,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=w,l=p):f=f.next=w,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);fr|=s,e.lanes=s,e.memoizedState=p}}function Mf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var Pi={},Vt=Qn(Pi),ui=Qn(Pi),ci=Qn(Pi);function nr(e){if(e===Pi)throw Error(R(174));return e}function Bc(e,t){switch(de(ci,t),de(ui,e),de(Vt,Pi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jl(t,e)}me(Vt),de(Vt,t)}function fo(){me(Vt),me(ui),me(ci)}function _m(e){nr(ci.current);var t=nr(Vt.current),n=Jl(t,e.type);t!==n&&(de(ui,e),de(Vt,n))}function Uc(e){ui.current===e&&(me(Vt),me(ui))}var ge=Qn(0);function Ws(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vl=[];function Wc(){for(var e=0;e<vl.length;e++)vl[e]._workInProgressVersionPrimary=null;vl.length=0}var ms=cn.ReactCurrentDispatcher,gl=cn.ReactCurrentBatchConfig,dr=0,ye=null,Te=null,Re=null,Vs=!1,Ho=!1,di=0,h1=0;function De(){throw Error(R(321))}function Vc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!At(e[n],t[n]))return!1;return!0}function Hc(e,t,n,r,o,i){if(dr=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ms.current=e===null||e.memoizedState===null?y1:w1,e=n(r,o),Ho){i=0;do{if(Ho=!1,di=0,25<=i)throw Error(R(301));i+=1,Re=Te=null,t.updateQueue=null,ms.current=x1,e=n(r,o)}while(Ho)}if(ms.current=Hs,t=Te!==null&&Te.next!==null,dr=0,Re=Te=ye=null,Vs=!1,t)throw Error(R(300));return e}function Qc(){var e=di!==0;return di=0,e}function Ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?ye.memoizedState=Re=e:Re=Re.next=e,Re}function St(){if(Te===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Re===null?ye.memoizedState:Re.next;if(t!==null)Re=t,Te=e;else{if(e===null)throw Error(R(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Re===null?ye.memoizedState=Re=e:Re=Re.next=e}return Re}function fi(e,t){return typeof t=="function"?t(e):t}function yl(e){var t=St(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=Te,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var f=u.lane;if((dr&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,s=r):l=l.next=p,ye.lanes|=f,fr|=f}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,At(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ye.lanes|=i,fr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wl(e){var t=St(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);At(i,t.memoizedState)||(qe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Mm(){}function jm(e,t){var n=ye,r=St(),o=t(),i=!At(r.memoizedState,o);if(i&&(r.memoizedState=o,qe=!0),r=r.queue,Kc(Fm.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,pi(9,Dm.bind(null,n,r,o,t),void 0,null),Oe===null)throw Error(R(349));dr&30||Lm(n,t,o)}return o}function Lm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dm(e,t,n,r){t.value=n,t.getSnapshot=r,$m(t)&&zm(e)}function Fm(e,t,n){return n(function(){$m(t)&&zm(e)})}function $m(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!At(e,n)}catch{return!0}}function zm(e){var t=sn(e,1);t!==null&&Ot(t,e,1,-1)}function jf(e){var t=Ft();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:e},t.queue=e,e=e.dispatch=g1.bind(null,ye,e),[t.memoizedState,e]}function pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Bm(){return St().memoizedState}function vs(e,t,n,r){var o=Ft();ye.flags|=e,o.memoizedState=pi(1|t,n,void 0,r===void 0?null:r)}function pa(e,t,n,r){var o=St();r=r===void 0?null:r;var i=void 0;if(Te!==null){var s=Te.memoizedState;if(i=s.destroy,r!==null&&Vc(r,s.deps)){o.memoizedState=pi(t,n,i,r);return}}ye.flags|=e,o.memoizedState=pi(1|t,n,i,r)}function Lf(e,t){return vs(8390656,8,e,t)}function Kc(e,t){return pa(2048,8,e,t)}function Um(e,t){return pa(4,2,e,t)}function Wm(e,t){return pa(4,4,e,t)}function Vm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hm(e,t,n){return n=n!=null?n.concat([e]):null,pa(4,4,Vm.bind(null,t,e),n)}function Gc(){}function Qm(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Km(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Gm(e,t,n){return dr&21?(At(n,t)||(n=Jh(),ye.lanes|=n,fr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function m1(e,t){var n=le;le=n!==0&&4>n?n:4,e(!0);var r=gl.transition;gl.transition={};try{e(!1),t()}finally{le=n,gl.transition=r}}function Ym(){return St().memoizedState}function v1(e,t,n){var r=Dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xm(e))qm(t,n);else if(n=Am(e,t,n,r),n!==null){var o=Ke();Ot(n,e,r,o),Zm(n,t,r)}}function g1(e,t,n){var r=Dn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xm(e))qm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,At(a,s)){var l=t.interleaved;l===null?(o.next=o,$c(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Am(e,t,o,r),n!==null&&(o=Ke(),Ot(n,e,r,o),Zm(n,t,r))}}function Xm(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function qm(e,t){Ho=Vs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pc(e,n)}}var Hs={readContext:xt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},y1={readContext:xt,useCallback:function(e,t){return Ft().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Lf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vs(4194308,4,Vm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vs(4194308,4,e,t)},useInsertionEffect:function(e,t){return vs(4,2,e,t)},useMemo:function(e,t){var n=Ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=v1.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Ft();return e={current:e},t.memoizedState=e},useState:jf,useDebugValue:Gc,useDeferredValue:function(e){return Ft().memoizedState=e},useTransition:function(){var e=jf(!1),t=e[0];return e=m1.bind(null,e[1]),Ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=Ft();if(ve){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Oe===null)throw Error(R(349));dr&30||Lm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lf(Fm.bind(null,r,i,e),[e]),r.flags|=2048,pi(9,Dm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ft(),t=Oe.identifierPrefix;if(ve){var n=en,r=Jt;n=(r&~(1<<32-Rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=h1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},w1={readContext:xt,useCallback:Qm,useContext:xt,useEffect:Kc,useImperativeHandle:Hm,useInsertionEffect:Um,useLayoutEffect:Wm,useMemo:Km,useReducer:yl,useRef:Bm,useState:function(){return yl(fi)},useDebugValue:Gc,useDeferredValue:function(e){var t=St();return Gm(t,Te.memoizedState,e)},useTransition:function(){var e=yl(fi)[0],t=St().memoizedState;return[e,t]},useMutableSource:Mm,useSyncExternalStore:jm,useId:Ym,unstable_isNewReconciler:!1},x1={readContext:xt,useCallback:Qm,useContext:xt,useEffect:Kc,useImperativeHandle:Hm,useInsertionEffect:Um,useLayoutEffect:Wm,useMemo:Km,useReducer:wl,useRef:Bm,useState:function(){return wl(fi)},useDebugValue:Gc,useDeferredValue:function(e){var t=St();return Te===null?t.memoizedState=e:Gm(t,Te.memoizedState,e)},useTransition:function(){var e=wl(fi)[0],t=St().memoizedState;return[e,t]},useMutableSource:Mm,useSyncExternalStore:jm,useId:Ym,unstable_isNewReconciler:!1};function bt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ha={isMounted:function(e){return(e=e._reactInternals)?xr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ke(),o=Dn(e),i=tn(r,o);i.payload=t,n!=null&&(i.callback=n),t=jn(e,i,o),t!==null&&(Ot(t,e,o,r),hs(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ke(),o=Dn(e),i=tn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=jn(e,i,o),t!==null&&(Ot(t,e,o,r),hs(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ke(),r=Dn(e),o=tn(n,r);o.tag=2,t!=null&&(o.callback=t),t=jn(e,o,r),t!==null&&(Ot(t,e,r,n),hs(t,e,r))}};function Df(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!ii(n,r)||!ii(o,i):!0}function Jm(e,t,n){var r=!1,o=zn,i=t.contextType;return typeof i=="object"&&i!==null?i=xt(i):(o=Je(t)?ur:Ue.current,r=t.contextTypes,i=(r=r!=null)?lo(e,o):zn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ff(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function Su(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},zc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=xt(i):(i=Je(t)?ur:Ue.current,o.context=lo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(xu(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ha.enqueueReplaceState(o,o.state,null),Us(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function po(e,t){try{var n="",r=t;do n+=Gw(r),r=r.return;while(r);var o=n}catch(i){o=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:o,digest:null}}function xl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Eu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var S1=typeof WeakMap=="function"?WeakMap:Map;function ev(e,t,n){n=tn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Iu=r),Eu(e,t)},n}function tv(e,t,n){n=tn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Eu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Eu(e,t),typeof r!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function $f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new S1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=j1.bind(null,e,t,n),t.then(e,e))}function zf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=tn(-1,1),t.tag=2,jn(n,t,1))),n.lanes|=1),e)}var E1=cn.ReactCurrentOwner,qe=!1;function He(e,t,n,r){t.child=e===null?Om(t,null,n,r):co(t,e.child,n,r)}function Uf(e,t,n,r,o){n=n.render;var i=t.ref;return Qr(t,o),r=Hc(e,t,n,r,i,o),n=Qc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,an(e,t,o)):(ve&&n&&_c(t),t.flags|=1,He(e,t,r,o),t.child)}function Wf(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!nd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,nv(e,t,i,r,o)):(e=xs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ii,n(s,r)&&e.ref===t.ref)return an(e,t,o)}return t.flags|=1,e=Fn(i,r),e.ref=t.ref,e.return=t,t.child=e}function nv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ii(i,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,an(e,t,o)}return Cu(e,t,n,r,o)}function rv(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Br,it),it|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(Br,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,de(Br,it),it|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,de(Br,it),it|=r;return He(e,t,o,n),t.child}function ov(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 8,359 bytes, line 40
40function Cu(e,t,n,r,o){var i=Je(n)?ur:Ue.current;return i=lo(t,i),Qr(t,o),n=Hc(e,t,n,r,i,o),r=Qc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,an(e,t,o)):(ve&&r&&_c(t),t.flags|=1,He(e,t,n,o),t.child)}function Vf(e,t,n,r,o){if(Je(n)){var i=!0;Ds(t)}else i=!1;if(Qr(t,o),t.stateNode===null)gs(e,t),Jm(t,n,r),Su(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=xt(u):(u=Je(n)?ur:Ue.current,u=lo(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ff(t,s,r,u),xn=!1;var d=t.memoizedState;s.state=d,Us(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Ze.current||xn?(typeof f=="function"&&(xu(t,n,f,r),l=t.memoizedState),(a=xn||Df(t,n,a,r,d,l,u))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Im(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:bt(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=xt(l):(l=Je(n)?ur:Ue.current,l=lo(t,l));var w=n.getDerivedStateFromProps;(f=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||d!==l)&&Ff(t,s,r,l),xn=!1,d=t.memoizedState,s.state=d,Us(t,r,s,o);var y=t.memoizedState;a!==p||d!==y||Ze.current||xn?(typeof w=="function"&&(xu(t,n,w,r),y=t.memoizedState),(u=xn||Df(t,n,u,r,d,y,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return bu(e,t,n,r,i,o)}function bu(e,t,n,r,o,i){ov(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Rf(t,n,!1),an(e,t,i);r=t.stateNode,E1.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=co(t,e.child,null,i),t.child=co(t,null,a,i)):He(e,t,a,i),t.memoizedState=r.state,o&&Rf(t,n,!0),t.child}function iv(e){var t=e.stateNode;t.pendingContext?kf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kf(e,t.context,!1),Bc(e,t.containerInfo)}function Hf(e,t,n,r,o){return uo(),jc(o),t.flags|=256,He(e,t,n,r),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0};function Tu(e){return{baseLanes:e,cachePool:null,transitions:null}}function sv(e,t,n){var r=t.pendingProps,o=ge.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(ge,o&1),e===null)return yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=ga(s,r,0,null),e=lr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Tu(n),t.memoizedState=Pu,e):Yc(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return C1(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Fn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Fn(a,i):(i=lr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Tu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Pu,r}return i=e.child,e=i.sibling,r=Fn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yc(e,t){return t=ga({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&jc(r),co(t,e.child,null,n),e=Yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C1(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=xl(Error(R(422))),Qi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ga({mode:"visible",children:r.children},o,0,null),i=lr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&co(t,e.child,null,s),t.child.memoizedState=Tu(s),t.memoizedState=Pu,i);if(!(t.mode&1))return Qi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(R(419)),r=xl(i,r,void 0),Qi(e,t,s,r)}if(a=(s&e.childLanes)!==0,qe||a){if(r=Oe,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,sn(e,o),Ot(r,e,o,-1))}return td(),r=xl(Error(R(421))),Qi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=L1.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,lt=Mn(o.nextSibling),ut=t,ve=!0,kt=null,e!==null&&(vt[gt++]=Jt,vt[gt++]=en,vt[gt++]=cr,Jt=e.id,en=e.overflow,cr=t),t=Yc(t,r.children),t.flags|=4096,t)}function Qf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wu(e.return,t,n)}function Sl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function av(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(He(e,t,r.children,n),r=ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qf(e,n,t);else if(e.tag===19)Qf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ge,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ws(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ws(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sl(t,!0,n,null,i);break;case"together":Sl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function an(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}
vendor: 4,565 bytes, line 40
40function b1(e,t,n){switch(t.tag){case 3:iv(t),uo();break;case 5:_m(t);break;case 1:Je(t.type)&&Ds(t);break;case 4:Bc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(zs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?sv(e,t,n):(de(ge,ge.current&1),e=an(e,t,n),e!==null?e.sibling:null);de(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return av(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,rv(e,t,n)}return an(e,t,n)}var lv,Nu,uv,cv;lv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Nu=function(){};uv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,nr(Vt.current);var i=null;switch(n){case"input":o=Yl(e,o),r=Yl(e,r),i=[];break;case"select":o=we({},o,{value:void 0}),r=we({},r,{value:void 0}),i=[];break;case"textarea":o=Zl(e,o),r=Zl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=js)}eu(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&he("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};cv=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ao(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function P1(e,t,n){var r=t.pendingProps;switch(Mc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Je(t.type)&&Ls(),Fe(t),null;case 3:return r=t.stateNode,fo(),me(Ze),me(Ue),Wc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,kt!==null&&(ju(kt),kt=null))),Nu(e,t),Fe(t),null;case 5:Uc(t);var o=nr(ci.current);if(n=t.type,e!==null&&t.stateNode!=null)uv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Fe(t),null}if(e=nr(Vt.current),Vi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ut]=t,r[li]=i,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(o=0;o<Fo.length;o++)he(Fo[o],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":ef(r,i),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},he("invalid",r);break;case"textarea":nf(r,i),he("invalid",r)}eu(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];
vendor: 32,002 bytes, line 40
40s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Wi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Wi(r.textContent,a,e),o=["children",""+a]):Zo.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&he("scroll",r)}switch(n){case"input":ji(r),tf(r,i,!0);break;case"textarea":ji(r),rf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=js)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Fh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ut]=t,e[li]=r,lv(e,t,!1,!1),t.stateNode=e;e:{switch(s=tu(n,r),n){case"dialog":he("cancel",e),he("close",e),o=r;break;case"iframe":case"object":case"embed":he("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fo.length;o++)he(Fo[o],e);o=r;break;case"source":he("error",e),o=r;break;case"img":case"image":case"link":he("error",e),he("load",e),o=r;break;case"details":he("toggle",e),o=r;break;case"input":ef(e,r),o=Yl(e,r),he("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=we({},r,{value:void 0}),he("invalid",e);break;case"textarea":nf(e,r),o=Zl(e,r),he("invalid",e);break;default:o=r}eu(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Bh(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&$h(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Jo(e,l):typeof l=="number"&&Jo(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Zo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&he("scroll",e):l!=null&&wc(e,i,l,s))}switch(n){case"input":ji(e),tf(e,r,!1);break;case"textarea":ji(e),rf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$n(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ur(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=js)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)cv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=nr(ci.current),nr(Vt.current),Vi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ut]=t,(i=r.nodeValue!==n)&&(e=ut,e!==null))switch(e.tag){case 3:Wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ut]=t,t.stateNode=r}return Fe(t),null;case 13:if(me(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&<!==null&&t.mode&1&&!(t.flags&128))km(),uo(),t.flags|=98560,i=!1;else if(i=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[Ut]=t}else uo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),i=!1}else kt!==null&&(ju(kt),kt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?Ne===0&&(Ne=3):td())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return fo(),Nu(e,t),e===null&&si(t.stateNode.containerInfo),Fe(t),null;case 10:return Fc(t.type._context),Fe(t),null;case 17:return Je(t.type)&&Ls(),Fe(t),null;case 19:if(me(ge),i=t.memoizedState,i===null)return Fe(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Ao(i,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ws(e),s!==null){for(t.flags|=128,Ao(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ge,ge.current&1|2),t.child}e=e.sibling}i.tail!==null&&be()>ho&&(t.flags|=128,r=!0,Ao(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ws(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ao(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ve)return Fe(t),null}else 2*be()-i.renderingStartTime>ho&&n!==1073741824&&(t.flags|=128,r=!0,Ao(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=ge.current,de(ge,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return ed(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?it&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function T1(e,t){switch(Mc(t),t.tag){case 1:return Je(t.type)&&Ls(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fo(),me(Ze),me(Ue),Wc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Uc(t),null;case 13:if(me(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));uo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ge),null;case 4:return fo(),null;case 10:return Fc(t.type._context),null;case 22:case 23:return ed(),null;case 24:return null;default:return null}}var Ki=!1,ze=!1,N1=typeof WeakSet=="function"?WeakSet:Set,F=null;function zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function ku(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Kf=!1;function k1(e,t){if(du=Is,e=mm(),Ic(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,f=0,p=e,d=null;t:for(;;){for(var w;p!==n||o!==0&&p.nodeType!==3||(a=s+o),p!==i||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(w=p.firstChild)!==null;)d=p,p=w;for(;;){if(p===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++f===r&&(l=s),(w=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=w}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},Is=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,S=y.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:bt(t.type,m),S);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){Ee(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return y=Kf,Kf=!1,y}function Qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ku(t,n,i)}o=o.next}while(o!==r)}}function ma(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ru(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dv(e){var t=e.alternate;t!==null&&(e.alternate=null,dv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ut],delete t[li],delete t[mu],delete t[c1],delete t[d1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fv(e){return e.tag===5||e.tag===3||e.tag===4}function Gf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=js));else if(r!==4&&(e=e.child,e!==null))for(Ou(e,t,n),e=e.sibling;e!==null;)Ou(e,t,n),e=e.sibling}function Au(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Au(e,t,n),e=e.sibling;e!==null;)Au(e,t,n),e=e.sibling}var _e=null,Nt=!1;function pn(e,t,n){for(n=n.child;n!==null;)pv(e,t,n),n=n.sibling}function pv(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(aa,n)}catch{}switch(n.tag){case 5:ze||zr(n,t);case 6:var r=_e,o=Nt;_e=null,pn(e,t,n),_e=r,Nt=o,_e!==null&&(Nt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(Nt?(e=_e,n=n.stateNode,e.nodeType===8?hl(e.parentNode,n):e.nodeType===1&&hl(e,n),ri(e)):hl(_e,n.stateNode));break;case 4:r=_e,o=Nt,_e=n.stateNode.containerInfo,Nt=!0,pn(e,t,n),_e=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ku(n,t,s),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!ze&&(zr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,pn(e,t,n),ze=r):pn(e,t,n);break;default:pn(e,t,n)}}function Yf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N1),t.forEach(function(r){var o=D1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:_e=a.stateNode,Nt=!1;break e;case 3:_e=a.stateNode.containerInfo,Nt=!0;break e;case 4:_e=a.stateNode.containerInfo,Nt=!0;break e}a=a.return}if(_e===null)throw Error(R(160));pv(i,s,o),_e=null,Nt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ee(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)hv(t,e),t=t.sibling}function hv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Dt(e),r&4){try{Qo(3,e,e.return),ma(3,e)}catch(m){Ee(e,e.return,m)}try{Qo(5,e,e.return)}catch(m){Ee(e,e.return,m)}}break;case 1:Ct(t,e),Dt(e),r&512&&n!==null&&zr(n,n.return);break;case 5:if(Ct(t,e),Dt(e),r&512&&n!==null&&zr(n,n.return),e.flags&32){var o=e.stateNode;try{Jo(o,"")}catch(m){Ee(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Lh(o,i),tu(a,s);var u=tu(a,i);for(s=0;s<l.length;s+=2){var f=l[s],p=l[s+1];f==="style"?Bh(o,p):f==="dangerouslySetInnerHTML"?$h(o,p):f==="children"?Jo(o,p):wc(o,f,p,u)}switch(a){case"input":Xl(o,i);break;case"textarea":Dh(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?Ur(o,!!i.multiple,w,!1):d!==!!i.multiple&&(i.defaultValue!=null?Ur(o,!!i.multiple,i.defaultValue,!0):Ur(o,!!i.multiple,i.multiple?[]:"",!1))}o[li]=i}catch(m){Ee(e,e.return,m)}}break;case 6:if(Ct(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(m){Ee(e,e.return,m)}}break;case 3:if(Ct(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ri(t.containerInfo)}catch(m){Ee(e,e.return,m)}break;case 4:Ct(t,e),Dt(e);break;case 13:Ct(t,e),Dt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Zc=be())),r&4&&Yf(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(u=ze)||f,Ct(t,e),ze=u):Ct(t,e),Dt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(F=e,f=e.child;f!==null;){for(p=F=f;F!==null;){switch(d=F,w=d.child,d.tag){case 0:case 11:case 14:case 15:Qo(4,d,d.return);break;case 1:zr(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Ee(r,n,m)}}break;case 5:zr(d,d.return);break;case 22:if(d.memoizedState!==null){qf(p);continue}}w!==null?(w.return=d,F=w):qf(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=zh("display",s))}catch(m){Ee(e,e.return,m)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(m){Ee(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ct(t,e),Dt(e),r&4&&Yf(e);break;case 21:break;default:Ct(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(fv(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Jo(o,""),r.flags&=-33);var i=Gf(e);Au(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Gf(e);Ou(e,a,s);break;default:throw Error(R(161))}}catch(l){Ee(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function R1(e,t,n){F=e,mv(e)}function mv(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ki;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||ze;a=Ki;var u=ze;if(Ki=s,(ze=l)&&!u)for(F=o;F!==null;)s=F,l=s.child,s.tag===22&&s.memoizedState!==null?Zf(o):l!==null?(l.return=s,F=l):Zf(o);for(;i!==null;)F=i,mv(i),i=i.sibling;F=o,Ki=a,ze=u}Xf(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,F=i):Xf(e)}}function Xf(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||ma(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:bt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Mf(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mf(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&ri(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ze||t.flags&512&&Ru(t)}catch(d){Ee(t,t.return,d)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function qf(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Zf(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ma(4,t)}catch(l){Ee(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ee(t,o,l)}}var i=t.return;try{Ru(t)}catch(l){Ee(t,i,l)}break;case 5:var s=t.return;try{Ru(t)}catch(l){Ee(t,s,l)}}}catch(l){Ee(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var O1=Math.ceil,Qs=cn.ReactCurrentDispatcher,Xc=cn.ReactCurrentOwner,wt=cn.ReactCurrentBatchConfig,ee=0,Oe=null,Pe=null,Me=0,it=0,Br=Qn(0),Ne=0,hi=null,fr=0,va=0,qc=0,Ko=null,Xe=null,Zc=0,ho=1/0,Yt=null,Ks=!1,Iu=null,Ln=null,Gi=!1,Rn=null,Gs=0,Go=0,_u=null,ys=-1,ws=0;function Ke(){return ee&6?be():ys!==-1?ys:ys=be()}function Dn(e){return e.mode&1?ee&2&&Me!==0?Me&-Me:p1.transition!==null?(ws===0&&(ws=Jh()),ws):(e=le,e!==0||(e=window.event,e=e===void 0?16:sm(e.type)),e):1}function Ot(e,t,n,r){if(50<Go)throw Go=0,_u=null,Error(R(185));Ei(e,n,r),(!(ee&2)||e!==Oe)&&(e===Oe&&(!(ee&2)&&(va|=n),Ne===4&&En(e,Me)),et(e,r),n===1&&ee===0&&!(t.mode&1)&&(ho=be()+500,fa&&Kn()))}function et(e,t){var n=e.callbackNode;px(e,t);var r=As(e,e===Oe?Me:0);if(r===0)n!==null&&af(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&af(n),t===1)e.tag===0?f1(Jf.bind(null,e)):Pm(Jf.bind(null,e)),l1(function(){!(ee&6)&&Kn()}),n=null;else{switch(em(r)){case 1:n=bc;break;case 4:n=qh;break;case 16:n=Os;break;case 536870912:n=Zh;break;default:n=Os}n=Cv(n,vv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vv(e,t){if(ys=-1,ws=0,ee&6)throw Error(R(327));var n=e.callbackNode;if(Kr()&&e.callbackNode!==n)return null;var r=As(e,e===Oe?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ys(e,r);else{t=r;var o=ee;ee|=2;var i=yv();(Oe!==e||Me!==t)&&(Yt=null,ho=be()+500,ar(e,t));do try{_1();break}catch(a){gv(e,a)}while(!0);Dc(),Qs.current=i,ee=o,Pe!==null?t=0:(Oe=null,Me=0,t=Ne)}if(t!==0){if(t===2&&(o=su(e),o!==0&&(r=o,t=Mu(e,o))),t===1)throw n=hi,ar(e,0),En(e,r),et(e,be()),n;if(t===6)En(e,r);else{if(o=e.current.alternate,!(r&30)&&!A1(o)&&(t=Ys(e,r),t===2&&(i=su(e),i!==0&&(r=i,t=Mu(e,i))),t===1))throw n=hi,ar(e,0),En(e,r),et(e,be()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Jn(e,Xe,Yt);break;case 3:if(En(e,r),(r&130023424)===r&&(t=Zc+500-be(),10<t)){if(As(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ke(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hu(Jn.bind(null,e,Xe,Yt),t);break}Jn(e,Xe,Yt);break;case 4:if(En(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Rt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O1(r/1960))-r,10<r){e.timeoutHandle=hu(Jn.bind(null,e,Xe,Yt),r);break}Jn(e,Xe,Yt);break;case 5:Jn(e,Xe,Yt);break;default:throw Error(R(329))}}}return et(e,be()),e.callbackNode===n?vv.bind(null,e):null}function Mu(e,t){var n=Ko;return e.current.memoizedState.isDehydrated&&(ar(e,t).flags|=256),e=Ys(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&ju(t)),e}function ju(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function A1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!At(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function En(e,t){for(t&=~qc,t&=~va,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Rt(t),r=1<<n;e[n]=-1,t&=~r}}function Jf(e){if(ee&6)throw Error(R(327));Kr();var t=As(e,0);if(!(t&1))return et(e,be()),null;var n=Ys(e,t);if(e.tag!==0&&n===2){var r=su(e);r!==0&&(t=r,n=Mu(e,r))}if(n===1)throw n=hi,ar(e,0),En(e,t),et(e,be()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jn(e,Xe,Yt),et(e,be()),null}function Jc(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(ho=be()+500,fa&&Kn())}}function pr(e){Rn!==null&&Rn.tag===0&&!(ee&6)&&Kr();var t=ee;ee|=1;var n=wt.transition,r=le;try{if(wt.transition=null,le=1,e)return e()}finally{le=r,wt.transition=n,ee=t,!(ee&6)&&Kn()}}function ed(){it=Br.current,me(Br)}function ar(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,a1(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Mc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ls();break;case 3:fo(),me(Ze),me(Ue),Wc();break;case 5:Uc(r);break;case 4:fo();break;case 13:me(ge);break;case 19:me(ge);break;case 10:Fc(r.type._context);break;case 22:case 23:ed()}n=n.return}if(Oe=e,Pe=e=Fn(e.current,null),Me=it=t,Ne=0,hi=null,qc=va=fr=0,Xe=Ko=null,tr!==null){for(t=0;t<tr.length;t++)if(n=tr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}tr=null}return e}function gv(e,t){do{var n=Pe;try{if(Dc(),ms.current=Hs,Vs){for(var r=ye.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vs=!1}if(dr=0,Re=Te=ye=null,Ho=!1,di=0,Xc.current=null,n===null||n.return===null){Ne=1,hi=t,Pe=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Me,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=a,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var w=zf(s);if(w!==null){w.flags&=-257,Bf(w,s,a,i,t),w.mode&1&&$f(i,u,t),t=w,l=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(l),t.updateQueue=m}else y.add(l);break e}else{if(!(t&1)){$f(i,u,t),td();break e}l=Error(R(426))}}else if(ve&&a.mode&1){var S=zf(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Bf(S,s,a,i,t),jc(po(l,a));break e}}i=l=po(l,a),Ne!==4&&(Ne=2),Ko===null?Ko=[i]:Ko.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=ev(i,l,t);_f(i,v);break e;case 1:a=l;var h=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ln===null||!Ln.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=tv(i,a,t);_f(i,E);break e}}i=i.return}while(i!==null)}xv(n)}catch(C){t=C,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function yv(){var e=Qs.current;return Qs.current=Hs,e===null?Hs:e}function td(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Oe===null||!(fr&268435455)&&!(va&268435455)||En(Oe,Me)}function Ys(e,t){var n=ee;ee|=2;var r=yv();(Oe!==e||Me!==t)&&(Yt=null,ar(e,t));do try{I1();break}catch(o){gv(e,o)}while(!0);if(Dc(),ee=n,Qs.current=r,Pe!==null)throw Error(R(261));return Oe=null,Me=0,Ne}function I1(){for(;Pe!==null;)wv(Pe)}function _1(){for(;Pe!==null&&!ox();)wv(Pe)}function wv(e){var t=Ev(e.alternate,e,it);e.memoizedProps=e.pendingProps,t===null?xv(e):Pe=t,Xc.current=null}function xv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=T1(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Pe=null;return}}else if(n=P1(n,t,it),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Ne===0&&(Ne=5)}function Jn(e,t,n){var r=le,o=wt.transition;try{wt.transition=null,le=1,M1(e,t,n,r)}finally{wt.transition=o,le=r}return null}function M1(e,t,n,r){do Kr();while(Rn!==null);if(ee&6)throw Error(R(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(hx(e,i),e===Oe&&(Pe=Oe=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Gi||(Gi=!0,Cv(Os,function(){return Kr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=wt.transition,wt.transition=null;var s=le;le=1;var a=ee;ee|=4,Xc.current=null,k1(e,n),hv(n,e),e1(fu),Is=!!du,fu=du=null,e.current=n,R1(n),ix(),ee=a,le=s,wt.transition=i}else e.current=n;if(Gi&&(Gi=!1,Rn=e,Gs=o),i=e.pendingLanes,i===0&&(Ln=null),lx(n.stateNode),et(e,be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ks)throw Ks=!1,e=Iu,Iu=null,e;return Gs&1&&e.tag!==0&&Kr(),i=e.pendingLanes,i&1?e===_u?Go++:(Go=0,_u=e):Go=0,Kn(),null}function Kr(){if(Rn!==null){var e=em(Gs),t=wt.transition,n=le;try{if(wt.transition=null,le=16>e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,Gs=0,ee&6)throw Error(R(331));var o=ee;for(ee|=4,F=e.current;F!==null;){var i=F,s=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var f=F;switch(f.tag){case 0:case 11:case 15:Qo(8,f,i)}var p=f.child;if(p!==null)p.return=f,F=p;else for(;F!==null;){f=F;var d=f.sibling,w=f.return;if(dv(f),f===u){F=null;break}if(d!==null){d.return=w,F=d;break}F=w}}}var y=i.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var S=m.sibling;m.sibling=null,m=S}while(m!==null)}}F=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,F=s;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Qo(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,F=v;break e}F=i.return}}var h=e.current;for(F=h;F!==null;){s=F;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,F=x;else e:for(s=h;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ma(9,a)}}catch(C){Ee(a,a.return,C)}if(a===s){F=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,F=E;break e}F=a.return}}if(ee=o,Kn(),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(aa,e)}catch{}r=!0}return r}finally{le=n,wt.transition=t}}return!1}function ep(e,t,n){t=po(n,t),t=ev(e,t,1),e=jn(e,t,1),t=Ke(),e!==null&&(Ei(e,1,t),et(e,t))}function Ee(e,t,n){if(e.tag===3)ep(e,e,n);else for(;t!==null;){if(t.tag===3){ep(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ln===null||!Ln.has(r))){e=po(n,e),e=tv(t,e,1),t=jn(t,e,1),e=Ke(),t!==null&&(Ei(t,1,e),et(t,e));break}}t=t.return}}function j1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&(Me&n)===n&&(Ne===4||Ne===3&&(Me&130023424)===Me&&500>be()-Zc?ar(e,0):qc|=n),et(e,t)}function Sv(e,t){t===0&&(e.mode&1?(t=Fi,Fi<<=1,!(Fi&130023424)&&(Fi=4194304)):t=1);var n=Ke();e=sn(e,t),e!==null&&(Ei(e,t,n),et(e,n))}function L1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sv(e,n)}function D1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Sv(e,n)}var Ev;Ev=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,b1(e,t,n);qe=!!(e.flags&131072)}else qe=!1,ve&&t.flags&1048576&&Tm(t,$s,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gs(e,t),e=t.pendingProps;var o=lo(t,Ue.current);Qr(t,n),o=Hc(null,t,r,e,o,n);var i=Qc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(i=!0,Ds(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zc(t),o.updater=ha,t.stateNode=o,o._reactInternals=t,Su(t,r,e,n),t=bu(null,t,r,!0,i,n)):(t.tag=0,ve&&i&&_c(t),He(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$1(r),e=bt(r,e),o){case 0:t=Cu(null,t,r,e,n);break e;case 1:t=Vf(null,t,r,e,n);break e;case 11:t=Uf(null,t,r,e,n);break e;case 14:t=Wf(null,t,r,bt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),Cu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),Vf(e,t,r,o,n);case 3:e:{if(iv(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Im(e,t),Us(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=po(Error(R(423)),t),t=Hf(e,t,r,n,o);break e}else if(r!==o){o=po(Error(R(424)),t),t=Hf(e,t,r,n,o);break e}else for(lt=Mn(t.stateNode.containerInfo.firstChild),ut=t,ve=!0,kt=null,n=Om(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uo(),r===o){t=an(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return _m(t),e===null&&yu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pu(r,o)?s=null:i!==null&&pu(r,i)&&(t.flags|=32),ov(e,t),He(e,t,s,n),t.child;case 6:return e===null&&yu(t),null;case 13:return sv(e,t,n);case 4:return Bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=co(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),Uf(e,t,r,o,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,de(zs,r._currentValue),r._currentValue=s,i!==null)if(At(i.value,s)){if(i.children===o.children&&!Ze.current){t=an(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=tn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),wu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),wu(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}He(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Qr(t,n),o=xt(o),r=r(o),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,o=bt(r,t.pendingProps),o=bt(r.type,o),Wf(e,t,r,o,n);case 15:return nv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),gs(e,t),t.tag=1,Je(r)?(e=!0,Ds(t)):e=!1,Qr(t,n),Jm(t,r,o),Su(t,r,o,n),bu(null,t,r,!0,e,n);case 19:return av(e,t,n);case 22:return rv(e,t,n)}throw Error(R(156,t.tag))};function Cv(e,t){return Xh(e,t)}function F1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,n,r){return new F1(e,t,n,r)}
vendor: 4,982 bytes, line 40
40function nd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $1(e){if(typeof e=="function")return nd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sc)return 11;if(e===Ec)return 14}return 2}function Fn(e,t){var n=e.alternate;return n===null?(n=yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xs(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")nd(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ar:return lr(n.children,o,i,t);case xc:s=8,o|=8;break;case Hl:return e=yt(12,n,t,o|2),e.elementType=Hl,e.lanes=i,e;case Ql:return e=yt(13,n,t,o),e.elementType=Ql,e.lanes=i,e;case Kl:return e=yt(19,n,t,o),e.elementType=Kl,e.lanes=i,e;case _h:return ga(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ah:s=10;break e;case Ih:s=9;break e;case Sc:s=11;break e;case Ec:s=14;break e;case wn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=yt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function ga(e,t,n,r){return e=yt(22,e,r,t),e.elementType=_h,e.lanes=n,e.stateNode={isHidden:!1},e}function El(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function Cl(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function z1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rl(0),this.expirationTimes=rl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rd(e,t,n,r,o,i,s,a,l){return e=new z1(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zc(i),e}function B1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Or,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function bv(e){if(!e)return zn;e=e._reactInternals;e:{if(xr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Je(n))return bm(e,n,t)}return t}function Pv(e,t,n,r,o,i,s,a,l){return e=rd(n,r,!0,e,o,i,s,a,l),e.context=bv(null),n=e.current,r=Ke(),o=Dn(n),i=tn(r,o),i.callback=t??null,jn(n,i,o),e.current.lanes=o,Ei(e,o,r),et(e,r),e}function ya(e,t,n,r){var o=t.current,i=Ke(),s=Dn(o);return n=bv(n),t.context===null?t.context=n:t.pendingContext=n,t=tn(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=jn(o,t,s),e!==null&&(Ot(e,o,s,i),hs(e,o,s)),s}function Xs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function tp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function od(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function U1(){return null}var Tv=typeof reportError=="function"?reportError:function(e){console.error(e)};function id(e){this._internalRoot=e}wa.prototype.render=id.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));ya(e,t,null,null)};wa.prototype.unmount=id.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pr(function(){ya(null,e,null,null)}),t[on]=null}};function wa(e){this._internalRoot=e}wa.prototype.unstable_scheduleHydration=function(e){if(e){var t=rm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sn.length&&t!==0&&t<Sn[n].priority;n++);Sn.splice(n,0,e),n===0&&im(e)}};function sd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function np(){}function W1(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Xs(s);i.call(u)}}var s=Pv(t,r,e,0,null,!1,!1,"",np);return e._reactRootContainer=s,e[on]=s.current,si(e.nodeType===8?e.parentNode:e),pr(),s}for(;
vendor: 5,149 bytes, line 40
40o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Xs(l);a.call(u)}}var l=rd(e,0,!1,null,null,!1,!1,"",np);return e._reactRootContainer=l,e[on]=l.current,si(e.nodeType===8?e.parentNode:e),pr(function(){ya(t,l,n,r)}),l}function Sa(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Xs(s);a.call(l)}}ya(t,s,e,o)}else s=W1(n,t,e,o,r);return Xs(s)}tm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Do(t.pendingLanes);n!==0&&(Pc(t,n|1),et(t,be()),!(ee&6)&&(ho=be()+500,Kn()))}break;case 13:pr(function(){var r=sn(e,1);if(r!==null){var o=Ke();Ot(r,e,1,o)}}),od(e,1)}};Tc=function(e){if(e.tag===13){var t=sn(e,134217728);if(t!==null){var n=Ke();Ot(t,e,134217728,n)}od(e,134217728)}};nm=function(e){if(e.tag===13){var t=Dn(e),n=sn(e,t);if(n!==null){var r=Ke();Ot(n,e,t,r)}od(e,t)}};rm=function(){return le};om=function(e,t){var n=le;try{return le=e,t()}finally{le=n}};ru=function(e,t,n){switch(t){case"input":if(Xl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=da(r);if(!o)throw Error(R(90));jh(r),Xl(r,o)}}}break;case"textarea":Dh(e,n);break;case"select":t=n.value,t!=null&&Ur(e,!!n.multiple,t,!1)}};Vh=Jc;Hh=pr;var V1={usingClientEntryPoint:!1,Events:[bi,jr,da,Uh,Wh,Jc]},Io={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},H1={bundleType:Io.bundleType,version:Io.version,rendererPackageName:Io.rendererPackageName,rendererConfig:Io.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Gh(e),e===null?null:e.stateNode},findFiberByHostInstance:Io.findFiberByHostInstance||U1,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 Yi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yi.isDisabled&&Yi.supportsFiber)try{aa=Yi.inject(H1),Wt=Yi}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V1;ft.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!sd(t))throw Error(R(200));return B1(e,t,null,n)};ft.createRoot=function(e,t){if(!sd(e))throw Error(R(299));var n=!1,r="",o=Tv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=rd(e,1,!1,null,null,n,!1,r,o),e[on]=t.current,si(e.nodeType===8?e.parentNode:e),new id(t)};ft.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Gh(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return pr(e)};ft.hydrate=function(e,t,n){if(!xa(t))throw Error(R(200));return Sa(null,e,t,!0,n)};ft.hydrateRoot=function(e,t,n){if(!sd(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Tv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Pv(t,null,e,1,n??null,o,!1,i,s),e[on]=t.current,si(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new wa(t)};ft.render=function(e,t,n){if(!xa(t))throw Error(R(200));return Sa(null,e,t,!1,n)};ft.unmountComponentAtNode=function(e){if(!xa(e))throw Error(R(40));return e._reactRootContainer?(pr(function(){Sa(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};ft.unstable_batchedUpdates=Jc;ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xa(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Sa(e,t,n,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function Nv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nv)}catch(e){console.error(e)}}Nv(),Nh.exports=ft;var Gn=Nh.exports;const Ea=hh(Gn);var kv,rp=Gn;kv=rp.createRoot,rp.hydrateRoot;const Q1=1,K1=1e6;let bl=0;function G1(){return bl=(bl+1)%Number.MAX_SAFE_INTEGER,bl.toString()}const Pl=new Map,op=e=>{if(Pl.has(e))return;const t=setTimeout(()=>{Pl.delete(e),Yo({type:"REMOVE_TOAST",toastId:e})},K1);Pl.set(e,t)},Y1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Q1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
40return n?op(n):e.toasts.forEach(r=>{op(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ss=[];let Es={toasts:[]};function Yo(e){Es=Y1(Es,e),Ss.forEach(t=>{t(Es)})}function X1({...e}){const t=G1(),n=o=>Yo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Yo({type:"DISMISS_TOAST",toastId:t});return Yo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Rv(){const[e,t]=c.useState(Es);return c.useEffect(()=>(Ss.push(t),()=>{const n=Ss.indexOf(t);n>-1&&Ss.splice(n,1)}),[e]),{...e,toast:X1,dismiss:n=>Yo({type:"DISMISS_TOAST",toastId:n})}}function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function q1(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ov(...e){return t=>e.forEach(n=>q1(n,t))}function re(...e){return c.useCallback(Ov(...e),e)}function xo(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),l=n.length;n=[...n,s];function u(p){const{scope:d,children:w,...y}=p,m=(d==null?void 0:d[e][l])||a,S=c.useMemo(()=>y,Object.values(y));return g.jsx(m.Provider,{value:S,children:w})}function f(p,d){const w=(d==null?void 0:d[e][l])||a,y=c.useContext(w);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Z1(o,...t)]}function Z1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var hr=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),i=o.find(J1);if(i){const s=i.props.children,a=o.map(l=>l===i?c.Children.count(s)>1?c.Children.only(null):c.isValidElement(s)?s.props.children:null:l);return g.jsx(Lu,{...r,ref:t,children:c.isValidElement(s)?c.cloneElement(s,void 0,a):null})}return g.jsx(Lu,{...r,ref:t,children:n})});hr.displayName="Slot";var Lu=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=tS(n);return c.cloneElement(n,{...eS(r,n.props),ref:t?Ov(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});Lu.displayName="SlotClone";var Av=({children:e})=>g.jsx(g.Fragment,{children:e});function J1(e){return c.isValidElement(e)&&e.type===Av}function eS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function tS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ad(e){const t=e+"CollectionProvider",[n,r]=xo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{const{scope:y,children:m}=w,S=_.useRef(null),v=_.useRef(new Map).current;return g.jsx(o,{scope:y,itemMap:v,collectionRef:S,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=_.forwardRef((w,y)=>{const{scope:m,children:S}=w,v=i(a,m),h=re(y,v.collectionRef);return g.jsx(hr,{ref:h,children:S})});l.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=_.forwardRef((w,y)=>{const{scope:m,children:S,...v}=w,h=_.useRef(null),x=re(y,h),E=i(u,m);return _.useEffect(()=>(E.itemMap.set(h,{ref:h,...v}),()=>void E.itemMap.delete(h))),g.jsx(hr,{[f]:"",ref:x,children:S})});p.displayName=u;function d(w){const y=i(e+"CollectionConsumer",w);return _.useCallback(()=>{const S=y.collectionRef.current;if(!S)return[];const v=Array.from(S.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,C)=>v.indexOf(E.ref.current)-v.indexOf(C.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},d,r]}
vendor: 4,354 bytes, line 40
40var nS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=nS.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?hr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ca(e,t){e&&Gn.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ld(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var rS="DismissableLayer",Du="dismissableLayer.update",oS="dismissableLayer.pointerDownOutside",iS="dismissableLayer.focusOutside",ip,Iv=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_v=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=c.useContext(Iv),[f,p]=c.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=c.useState({}),y=re(t,b=>p(b)),m=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(S),h=f?m.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=v,C=aS(b=>{const P=b.target,I=[...u.branches].some(O=>O.contains(P));!E||I||(o==null||o(b),s==null||s(b),b.defaultPrevented||a==null||a())},d),T=lS(b=>{const P=b.target;[...u.branches].some(O=>O.contains(P))||(i==null||i(b),s==null||s(b),b.defaultPrevented||a==null||a())},d);return ld(b=>{h===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},d),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ip=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),sp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ip)}},[f,d,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),sp())},[f,u]),c.useEffect(()=>{const b=()=>w({});return document.addEventListener(Du,b),()=>document.removeEventListener(Du,b)},[]),g.jsx(K.div,{...l,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,T.onFocusCapture),onBlurCapture:W(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,C.onPointerDownCapture)})});_v.displayName=rS;var sS="DismissableLayerBranch",Mv=c.forwardRef((e,t)=>{const n=c.useContext(Iv),r=c.useRef(null),o=re(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(K.div,{...e,ref:o})});Mv.displayName=sS;function aS(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){jv(oS,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lS(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&jv(iS,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sp(){const e=new CustomEvent(Du);document.dispatchEvent(e)}function jv(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ca(o,i):o.dispatchEvent(i)}var uS=_v,cS=Mv,Ce=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},dS="Portal",Lv=c.forwardRef((e,t)=>
40{var a;const{container:n,...r}=e,[o,i]=c.useState(!1);Ce(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ea.createPortal(g.jsx(K.div,{...r,ref:t}),s):null});Lv.displayName=dS;function fS(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ud=e=>{const{present:t,children:n}=e,r=pS(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=re(r.ref,hS(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null};ud.displayName="Presence";function pS(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,l]=fS(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Xi(r.current);i.current=a==="mounted"?u:"none"},[a]),Ce(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,w=Xi(u);e?l("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&d!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ce(()=>{if(t){const u=p=>{const w=Xi(r.current).includes(p.animationName);p.target===t&&w&&Gn.flushSync(()=>l("ANIMATION_END"))},f=p=>{p.target===t&&(i.current=Xi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Xi(e){return(e==null?void 0:e.animationName)||"none"}function hS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function mr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=mS({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Ae(n),l=c.useCallback(u=>{if(i){const p=typeof u=="function"?u(e):u;p!==e&&a(p)}else o(u)},[i,e,o,a]);return[s,l]}function mS({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),i=Ae(t);return c.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var vS="VisuallyHidden",Ti=c.forwardRef((e,t)=>g.jsx(K.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Ti.displayName=vS;var gS=Ti,cd="ToastProvider",[dd,yS,wS]=ad("Toast"),[Dv,Uk]=xo("Toast",[wS]),[xS,ba]=Dv(cd),Fv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=c.useState(null),[u,f]=c.useState(0),p=c.useRef(!1),d=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${cd}\`. Expected non-empty \`string\`.`),g.jsx(dd.Provider,{scope:t,children:g.jsx(xS,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:c.useCallback(()=>f(w=>w+1),[]),onToastRemove:c.useCallback(()=>f(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:d,children:s})})};Fv.displayName=cd;var $v="ToastViewport",SS=["F8"],Fu="toast.viewportPause",$u="toast.viewportResume",zv=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=SS,label:o="Notifications ({hotkey})",...i}=e,s=ba($v,n),a=yS(n),l=c.useRef(null),u=c.useRef(null),f=c.useRef(null),p=c.useRef(null),d=re(t,p,s.onViewportChange),w=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;c.useEffect(()=>{const S=v=>{var x;r.every(E=>v[E]||v.code===E)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[r]),c.useEffect(()=>{const S=l.current,v=p.current;if(y&&S&&v){const h=()=>{if(!s.isClosePausedRef.current){const T=new CustomEvent(Fu);v.dispatchEvent(T),s.isClosePausedRef.current=!0}},x=()=>
40{if(s.isClosePausedRef.current){const T=new CustomEvent($u);v.dispatchEvent(T),s.isClosePausedRef.current=!1}},E=T=>{!S.contains(T.relatedTarget)&&x()},C=()=>{S.contains(document.activeElement)||x()};return S.addEventListener("focusin",h),S.addEventListener("focusout",E),S.addEventListener("pointermove",h),S.addEventListener("pointerleave",C),window.addEventListener("blur",h),window.addEventListener("focus",x),()=>{S.removeEventListener("focusin",h),S.removeEventListener("focusout",E),S.removeEventListener("pointermove",h),S.removeEventListener("pointerleave",C),window.removeEventListener("blur",h),window.removeEventListener("focus",x)}}},[y,s.isClosePausedRef]);const m=c.useCallback(({tabbingDirection:S})=>{const h=a().map(x=>{const E=x.ref.current,C=[E,...MS(E)];return S==="forwards"?C:C.reverse()});return(S==="forwards"?h.reverse():h).flat()},[a]);return c.useEffect(()=>{const S=p.current;if(S){const v=h=>{var C,T,b;const x=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!x){const P=document.activeElement,I=h.shiftKey;if(h.target===S&&I){(C=u.current)==null||C.focus();return}const j=m({tabbingDirection:I?"backwards":"forwards"}),H=j.findIndex(M=>M===P);Tl(j.slice(H+1))?h.preventDefault():I?(T=u.current)==null||T.focus():(b=f.current)==null||b.focus()}};return S.addEventListener("keydown",v),()=>S.removeEventListener("keydown",v)}},[a,m]),g.jsxs(cS,{ref:l,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&g.jsx(zu,{ref:u,onFocusFromOutsideViewport:()=>{const S=m({tabbingDirection:"forwards"});Tl(S)}}),g.jsx(dd.Slot,{scope:n,children:g.jsx(K.ol,{tabIndex:-1,...i,ref:d})}),y&&g.jsx(zu,{ref:f,onFocusFromOutsideViewport:()=>{const S=m({tabbingDirection:"backwards"});Tl(S)}})]})});zv.displayName=$v;var Bv="ToastFocusProxy",zu=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ba(Bv,n);return g.jsx(Ti,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});zu.displayName=Bv;var Pa="Toast",ES="toast.swipeStart",CS="toast.swipeMove",bS="toast.swipeCancel",PS="toast.swipeEnd",Uv=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,l]=mr({prop:r,defaultProp:o,onChange:i});return g.jsx(ud,{present:n||a,children:g.jsx(kS,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Ae(e.onPause),onResume:Ae(e.onResume),onSwipeStart:W(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:W(e.onSwipeMove,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:W(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:W(e.onSwipeEnd,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});Uv.displayName=Pa;var[TS,NS]=Dv(Pa,{onClose(){}}),kS=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:d,onSwipeEnd:w,...y}=e,m=ba(Pa,n),[S,v]=c.useState(null),h=re(t,M=>v(M)),x=c.useRef(null),E=c.useRef(null),C=o||m.duration,T=c.useRef(0),b=c.useRef(C),P=c.useRef(0),{onToastAdd:I,onToastRemove:O}=m,z=Ae(()=>{var B;(S==null?void 0:S.contains(document.activeElement))&&((B=m.viewport)==null||B.focus()),s()}),j=c.useCallback(M=>
vendor: 4,513 bytes, line 40
40{!M||M===1/0||(window.clearTimeout(P.current),T.current=new Date().getTime(),P.current=window.setTimeout(z,M))},[z]);c.useEffect(()=>{const M=m.viewport;if(M){const B=()=>{j(b.current),u==null||u()},D=()=>{const Q=new Date().getTime()-T.current;b.current=b.current-Q,window.clearTimeout(P.current),l==null||l()};return M.addEventListener(Fu,D),M.addEventListener($u,B),()=>{M.removeEventListener(Fu,D),M.removeEventListener($u,B)}}},[m.viewport,C,l,u,j]),c.useEffect(()=>{i&&!m.isClosePausedRef.current&&j(C)},[i,C,m.isClosePausedRef,j]),c.useEffect(()=>(I(),()=>O()),[I,O]);const H=c.useMemo(()=>S?Yv(S):null,[S]);return m.viewport?g.jsxs(g.Fragment,{children:[H&&g.jsx(RS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),g.jsx(TS,{scope:n,onClose:z,children:Gn.createPortal(g.jsx(dd.ItemSlot,{scope:n,children:g.jsx(uS,{asChild:!0,onEscapeKeyDown:W(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||z(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(K.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:W(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:W(e.onPointerDown,M=>{M.button===0&&(x.current={x:M.clientX,y:M.clientY})}),onPointerMove:W(e.onPointerMove,M=>{if(!x.current)return;const B=M.clientX-x.current.x,D=M.clientY-x.current.y,Q=!!E.current,N=["left","right"].includes(m.swipeDirection),A=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,$=N?A(0,B):0,L=N?0:A(0,D),U=M.pointerType==="touch"?10:2,q={x:$,y:L},ie={originalEvent:M,delta:q};Q?(E.current=q,qi(CS,p,ie,{discrete:!1})):ap(q,m.swipeDirection,U)?(E.current=q,qi(ES,f,ie,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(B)>U||Math.abs(D)>U)&&(x.current=null)}),onPointerUp:W(e.onPointerUp,M=>{const B=E.current,D=M.target;if(D.hasPointerCapture(M.pointerId)&&D.releasePointerCapture(M.pointerId),E.current=null,x.current=null,B){const Q=M.currentTarget,N={originalEvent:M,delta:B};ap(B,m.swipeDirection,m.swipeThreshold)?qi(PS,w,N,{discrete:!0}):qi(bS,d,N,{discrete:!0}),Q.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),RS=e=>{const{__scopeToast:t,children:n,...r}=e,o=ba(Pa,t),[i,s]=c.useState(!1),[a,l]=c.useState(!1);return IS(()=>s(!0)),c.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:g.jsx(Lv,{asChild:!0,children:g.jsx(Ti,{...r,children:i&&g.jsxs(g.Fragment,{children:[o.label," ",n]})})})},OS="ToastTitle",Wv=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx(K.div,{...r,ref:t})});Wv.displayName=OS;var AS="ToastDescription",Vv=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx(K.div,{...r,ref:t})});Vv.displayName=AS;var Hv="ToastAction",Qv=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?g.jsx(Gv,{altText:n,asChild:!0,children:g.jsx(fd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Hv}\`. Expected non-empty \`string\`.`),null)});Qv.displayName=Hv;var Kv="ToastClose",fd=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=NS(Kv,n);return g.jsx(Gv,{asChild:!0,children:g.jsx(K.button,{type:"button",...r,ref:t,onClick:W(e.onClick,o.onClose)})})});fd.displayName=Kv;var Gv=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return g.jsx(K.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Yv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),_S(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Yv(r))}}),t}function qi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ca(o,i):o.dispatchEvent(i)}var ap=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function IS(e=()=>{}){const t=Ae(e);Ce(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}
vendor: 4,235 bytes, lines 40-70
40function _S(e){return e.nodeType===e.ELEMENT_NODE}function MS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var jS=Fv,Xv=zv,qv=Uv,Zv=Wv,Jv=Vv,eg=Qv,tg=fd;function ng(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ng(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ng(e))&&(r&&(r+=" "),r+=t);return r}const lp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,up=rg,Ta=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return up(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=i==null?void 0:i[u];if(f===null)return null;const d=lp(f)||lp(p);return o[u][d]}),a=n&&Object.entries(n).reduce((u,f)=>{let[p,d]=f;return d===void 0||(u[p]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:d,...w}=f;return Object.entries(w).every(y=>{let[m,S]=y;return Array.isArray(S)?S.includes({...i,...a}[m]):{...i,...a}[m]===S})?[...u,p,d]:u},[]);return up(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.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 LS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),og=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.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 DS={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.462.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 FS=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>c.createElement("svg",{ref:l,...DS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:og("lucide",o),...a},[...s.map(([u,f])=>c.createElement(u,f)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.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 Et=(e,t)=>{const n=c.forwardRef(({className:r,...o},i)=>c.createElement(FS,{ref:i,iconNode:t,className:og(`lucide-${LS(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.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 $S=Et("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 66 * @license lucide-react v0.462.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 cp=Et("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}
vendor: 8,801 bytes, lines 70-120
70],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/** 71 * @license lucide-react v0.462.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 zS=Et("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 76 * @license lucide-react v0.462.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 pd=Et("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 81 * @license lucide-react v0.462.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 ig=Et("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 86 * @license lucide-react v0.462.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 BS=Et("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 91 * @license lucide-react v0.462.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 US=Et("Copyright",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M14.83 14.83a4 4 0 1 1 0-5.66",key:"1i56pz"}]]);/** 96 * @license lucide-react v0.462.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 WS=Et("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 101 * @license lucide-react v0.462.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 VS=Et("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 106 * @license lucide-react v0.462.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 dp=Et("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 111 * @license lucide-react v0.462.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 HS=Et("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 116 * @license lucide-react v0.462.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 hd=Et("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),md="-",QS=e=>{const t=GS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(md);return a[0]===""&&a.length!==1&&a.shift(),sg(a,t)||KS(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},sg=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?sg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(md);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},fp=/^\[(.+)\]$/,KS=e=>{if(fp.test(e)){const t=fp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},GS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return XS(Object.entries(e.classGroups),n).forEach(([i,s])=>{Bu(s,r,i,t)}),r},Bu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:pp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(YS(o)){Bu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Bu(s,pp(t,i),n,r)})})},pp=(e,t)=>{let n=e;return t.split(md).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},YS=e=>e.isThemeGetter,XS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,qS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},ag="!",ZS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,f=0,p;for(let S=0;S<a.length;S++){let v=a[S];if(u===0){if(v===o&&(r||a.slice(S,S+i)===t)){l.push(a.slice(f,S)),f=S+i;continue}if(v==="/"){p=S;continue}}v==="["?u++:v==="]"&&u--}const d=l.length===0?a:a.substring(f),w=d.startsWith(ag),y=w?d.substring(1):d,m=p&&p>f?p-f:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:s}):s},JS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},eE=e=>({cache:qS(e.cacheSize),parseClassName:ZS(e),...QS(e)}),tE=/\s+/,nE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(tE);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:f,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:w}=n(u);let y=!!w,m=r(y?d.substring(0,w):d);if(!m){if(!y){a=u+(a.length>0?" "+a:a);continue}if(m=r(d),!m){a=u+(a.length>0?" "+a:a);continue}y=!1}const S=JS(f).join(":"),v=p?S+ag:S,h=v+m;if(i.includes(h))continue;i.push(h);const x=o(m,y);for(let E=0;E<x.length;++E){const C=x[E];i.push(v+C)}a=u+(a.length>0?" "+a:a)}return a};function rE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=lg(t))&&(r&&(r+=" "),r+=n);return r}const lg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=lg(e[r]))&&(n&&(n+=" "),n+=t);return n};function oE(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((f,p)=>p(f),e());return n=eE(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const f=nE(l,n);return o(l,f),f}return function(){return i(rE.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ug=/^\[(?:([a-z-]+):)?(.+)\]$/i,iE=/^\d+\/\d+$/,sE=new Set(["px","full","screen"]),aE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lE=/\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$/,uE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kt=e=>Gr(e)||sE.has(e)||iE.test(e),hn=e=>So(e,"length",wE),Gr=e=>!!e&&!Number.isNaN(Number(e)),Nl=e=>So(e,"number",Gr),_o=e=>!!e&&Number.isInteger(Number(e)),fE=e=>e.endsWith("%")&&Gr(e.slice(0,-1)),Y=e=>ug.test(e),mn=e=>aE.test(e),pE=new Set(["length","size","percentage"]),hE=e=>So(e,pE,cg),mE=e=>So(e,"position",cg),vE=new Set(["image","url"]),gE=e=>So(e,vE,SE),yE=e=>So(e,"",xE),Mo=()=>!0,So=(e,t,n)=>{const r=ug.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},wE=e=>lE.test(e)&&!uE.test(e),cg=()=>!1,xE=e=>cE.test(e),SE=e=>dE.test(e),EE=()=>{const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),i=pe("borderRadius"),s=pe("borderSpacing"),a=pe("borderWidth"),l=pe("contrast"),u=pe("grayscale"),f=pe("hueRotate"),p=pe("invert"),d=pe("gap"),w=pe("gradientColorStops"),y=pe("gradientColorStopPositions"),m=pe("inset"),S=pe("margin"),v=pe("opacity"),h=pe("padding"),x=pe("saturate"),E=pe("scale"),C=pe("sepia"),T=pe("skew"),b=pe("space"),P=pe("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",Y,t],j=()=>[Y,t],H=()=>["",Kt,hn],M=()=>["auto",Gr,Y],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",Y],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Gr,Y];return{cacheSize:500,separator:":",theme:{colors:[Mo],spacing:[Kt,hn],blur:["none","",mn,Y],brightness:L(),borderColor:[e],borderRadius:["n
120one","","full",mn,Y],borderSpacing:j(),borderWidth:H(),contrast:L(),grayscale:A(),hueRotate:L(),invert:A(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[fE,hn],inset:z(),margin:z(),opacity:L(),padding:j(),saturate:L(),scale:L(),sepia:A(),skew:L(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[mn]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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"],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:[...B(),Y]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_o,Y]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",_o,Y]}],"grid-cols":[{"grid-cols":[Mo]}],"col-start-end":[{col:["auto",{span:["full",_o,Y]},Y]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Mo]}],"row-start-end":[{row:["auto",{span:[_o,Y]},Y]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[mn]},mn]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mn,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Nl]}],"font-family":[{font:[Mo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",Gr,Nl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kt,hn]}],"underline-offset":[{"underline-offset":["auto",Kt,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),mE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 5,100 bytes, line 120
120],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Kt,Y]}],"outline-w":[{outline:[Kt,hn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Kt,hn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mn,yE]}],"shadow-color":[{shadow:[Mo]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",mn,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[_o,Y]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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"]}
vendor: 4,612 bytes, line 120
120],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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Kt,hn,Nl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},CE=oE(EE);function ue(...e){return CE(rg(e))}const bE=jS,dg=c.forwardRef(({className:e,...t},n)=>g.jsx(Xv,{ref:n,className:ue("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),...t}));dg.displayName=Xv.displayName;const PE=Ta("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"}}),fg=c.forwardRef(({className:e,variant:t,...n},r)=>g.jsx(qv,{ref:r,className:ue(PE({variant:t}),e),...n}));fg.displayName=qv.displayName;const TE=c.forwardRef(({className:e,...t},n)=>g.jsx(eg,{ref:n,className:ue("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}));TE.displayName=eg.displayName;const pg=c.forwardRef(({className:e,...t},n)=>g.jsx(tg,{ref:n,className:ue("absolute right-2 top-2 rounded-md p-1 text-foreground
120/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:g.jsx(hd,{className:"h-4 w-4"})}));pg.displayName=tg.displayName;const hg=c.forwardRef(({className:e,...t},n)=>g.jsx(Zv,{ref:n,className:ue("text-sm font-semibold",e),...t}));hg.displayName=Zv.displayName;const mg=c.forwardRef(({className:e,...t},n)=>g.jsx(Jv,{ref:n,className:ue("text-sm opacity-90",e),...t}));mg.displayName=Jv.displayName;function NE(){const{toasts:e}=Rv();return g.jsxs(bE,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return g.jsxs(fg,{...i,children:[g.jsxs("div",{className:"grid gap-1",children:[n&&g.jsx(hg,{children:n}),r&&g.jsx(mg,{children:r})]}),o,g.jsx(pg,{})]},t)}),g.jsx(dg,{})]})}var hp=["light","dark"],kE="(prefers-color-scheme: dark)",RE=c.createContext(void 0),OE={setTheme:e=>{},themes:[]},AE=()=>{var e;return(e=c.useContext(RE))!=null?e:OE};c.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let u=i==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?hp.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(y,m=!1,S=!0)=>{let v=s?s[y]:y,h=m?y+"|| ''":`'${v}'`,x="";return o&&S&&!m&&hp.includes(y)&&(x+=`d.style.colorScheme = '${y}';`),n==="class"?m||v?x+=`c.add(${h})`:x+="null":v&&(x+=`d[s](n,${h})`),x},w=e?`!function(){${f}${d(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${kE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}${u?"":"else{"+d(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}else{${d(i,!1,!1)};}${p}}catch(t){}}();`;return c.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:w}})});var IE=e=>{switch(e){case"success":return jE;case"info":return DE;case"warning":return LE;case"error":return FE;default:return null}},_E=Array(12).fill(0),ME=({visible:e})=>_.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},_.createElement("div",{className:"sonner-spinner"},_E.map((t,n)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),jE=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LE=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),DE=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),FE=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$E=()=>{let[e,t]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{t(document.hidden)};
120return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Uu=1,zE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Uu++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
120this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async i=>{if(UE(i)&&!i.ok){o=!1;let s=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:s,description:a})}else if(t.success!==void 0){o=!1;let s=typeof t.success=="function"?await t.success(i):t.success,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:s,description:a})}}).catch(async i=>{if(t.error!==void 0){o=!1;let s=typeof t.error=="function"?await t.error(i):t.error,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:s,description:a})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Uu++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},ot=new zE,BE=(e,t)=>{let n=(t==null?void 0:t.id)||Uu++;return ot.addToast({title:e,...t,id:n}),n},UE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",WE=BE,VE=()=>ot.toasts;Object.assign(WE,{success:ot.success,info:ot.info,warning:ot.warning,error:ot.error,custom:ot.custom,message:ot.message,promise:ot.promise,dismiss:ot.dismiss,loading:ot.loading},{getHistory:VE});function HE(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}HE(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
120left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
120:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 121`);function Zi(e){return e.label!==void 0}
121var QE=3,KE="32px",GE=4e3,YE=356,XE=14,qE=20,ZE=200;function JE(...e){return e.filter(Boolean).join(" ")}var eC=e=>{var t,n,r,o,i,s,a,l,u,f;let{invert:p,toast:d,unstyled:w,interacting:y,setHeights:m,visibleToasts:S,heights:v,index:h,toasts:x,expanded:E,removeToast:C,defaultRichColors:T,closeButton:b,style:P,cancelButtonStyle:I,actionButtonStyle:O,className:z="",descriptionClassName:j="",duration:H,position:M,gap:B,loadingIcon:D,expandByDefault:Q,classNames:N,icons:A,closeButtonAriaLabel:$="Close toast",pauseWhenPageIsHidden:L,cn:U}=e,[q,ie]=_.useState(!1),[ke,J]=_.useState(!1),[V,oe]=_.useState(!1),[xe,te]=_.useState(!1),[se,ne]=_.useState(0),[We,nt]=_.useState(0),dn=_.useRef(null),ht=_.useRef(null),qn=h===0,Ga=h+1<=S,Ie=d.type,Sr=d.dismissible!==!1,pw=d.className||"",hw=d.descriptionClassName||"",Oi=_.useMemo(()=>v.findIndex(G=>G.toastId===d.id)||0,[v,d.id]),mw=_.useMemo(()=>{var G;return(G=d.closeButton)!=null?G:b},[d.closeButton,b]),Ud=_.useMemo(()=>d.duration||H||GE,[d.duration,H]),Ya=_.useRef(0),Er=_.useRef(0),Wd=_.useRef(0),Cr=_.useRef(null),[Vd,vw]=M.split("-"),Hd=_.useMemo(()=>v.reduce((G,fe,ce)=>ce>=Oi?G:G+fe.height,0),[v,Oi]),Qd=$E(),gw=d.invert||p,Xa=Ie==="loading";Er.current=_.useMemo(()=>Oi*B+Hd,[Oi,Hd]),_.useEffect(()=>{ie(!0)},[]),_.useLayoutEffect(()=>{if(!q)return;let G=ht.current,fe=G.style.height;G.style.height="auto";let ce=G.getBoundingClientRect().height;G.style.height=fe,nt(ce),m(jt=>jt.find(Lt=>Lt.toastId===d.id)?jt.map(Lt=>Lt.toastId===d.id?{...Lt,height:ce}:Lt):[{toastId:d.id,height:ce,position:d.position},...jt])},[q,d.title,d.description,m,d.id]);let fn=_.useCallback(()=>{J(!0),ne(Er.current),m(G=>G.filter(fe=>fe.toastId!==d.id)),setTimeout(()=>{C(d)},ZE)},[d,C,m,Er]);_.useEffect(()=>{if(d.promise&&Ie==="loading"||d.duration===1/0||d.type==="loading")return;let G,fe=Ud;return E||y||L&&Qd?(()=>{if(Wd.current<Ya.current){let ce=new Date().getTime()-Ya.current;fe=fe-ce}Wd.current=new Date().getTime()})():fe!==1/0&&(Ya.current=new Date().getTime(),G=setTimeout(()=>{var ce;(ce=d.onAutoClose)==null||ce.call(d,d),fn()},fe)),()=>clearTimeout(G)},[E,y,Q,d,Ud,fn,d.promise,Ie,L,Qd]),_.useEffect(()=>{let G=ht.current;if(G){let fe=G.getBoundingClientRect().height;return nt(fe),m(ce=>[{toastId:d.id,height:fe,position:d.position},...ce]),()=>m(ce=>ce.filter(jt=>jt.toastId!==d.id))}},[m,d.id]),_.useEffect(()=>{d.delete&&fn()},[fn,d.delete]);function yw(){return A!=null&&A.loading?_.createElement("div",{className:"sonner-loader","data-visible":Ie==="loading"},A.loading):D?_.createElement("div",{className:"sonner-loader","data-visible":Ie==="loading"},D):_.createElement(ME,{visible:Ie==="loading"})}return _.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:ht,className:U(z,pw,N==null?void 0:N.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[Ie],(n=d==null?void 0:d.classNames)==null?void 0:n[Ie]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:T,"data-styled":!(d.jsx||d.unstyled||w),"data-mounted":q,"data-promise":!!d.promise,"data-removed":ke,"data-visible":Ga,"data-y-position":Vd,"data-x-position":vw,"data-index":h,"data-front":qn,"data-swiping":V,"data-dismissible":Sr,"data-type":Ie,"data-invert":gw,"data-swipe-out":xe,"data-expanded":!!(E||Q&&q),style:{"--index":h,"--toasts-before":h,"--z-index":x.length-h,"--offset":`${ke?se:Er.current}px`,"--initial-height":Q?"auto":`${We}px`,...P,...d.style},onPointerDown:G=>{Xa||!Sr||(dn.current=new Date,ne(Er.current),G.target.setPointerCapture(G.pointerId),G.target.tagName!=="BUTTON"&&(oe(!0),Cr.current={x:G.clientX,y:G.clientY}))},onPointerUp:()=>{var G,fe,ce,jt;if(xe||!Sr)return;Cr.current=null;let Lt=Number(((G=ht.current)==null?void 0:G.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Ai=new Date().getTime()-((fe=dn.current)==null?void 0:fe.getTime()),ww=Math.abs(Lt)/Ai;if(Math.abs(Lt)>=qE||ww>.11){ne(Er.current),(ce=d.onDismiss)==null||ce.call(d,d),fn(),te(!0);return}(jt=ht.current)==null||jt.style.setProperty("--swipe-amount","0px"),oe(!1)},onPointerMove:G=>{var fe;if(!Cr.current||!Sr)return;let ce=G.clientY-Cr.current.y,jt=G.clientX-Cr.current.x,Lt=(Vd==="top"?Math.min:Math.max)(0,ce),Ai=G.pointerType==="touch"?10:2;Math.abs(Lt)>Ai?(fe=ht.current)==null||fe.style.setProperty("--swipe-amount",`${ce}px`):Math.abs(jt)>Ai&&(Cr.current=null)}},mw&&!d.jsx?_.createElement("button",{"aria-label":$,"data-disabled":Xa,"data-close-button":!0,onClick:Xa||!Sr?()=>{}:()=>{var G;fn(),(G=d.onDismiss)==null||G.call(d,d)},className:U(N==null?void 0:N.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||_.isValidElement(d.title)?d.jsx||d.title:_.createElement(_.Fragment,null,Ie||d.icon||d.promise?_.createElement("div",{"data-icon":"",className:U(N==null?void 0:N.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||yw():null,d.type!=="loading"?d.icon||(A==null?void 0:A[Ie])||IE(Ie):null):null,_.createElement("div",{"data-content":"",className:U(N==null?void 0:N.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},_.createElement("div",{"data-title":"",className:U(N==null?void 0:N.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},d.title),d.description?_.createElement("div",{"data-description":"",className:U(j,hw,N==null?void 0:N.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},d.description):null),_.isValidElement(d.cancel)?d.cancel:d.cancel&&Zi(d.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||I,onClick:G=>{var fe,ce;Zi(d.cancel)&&Sr&&((ce=(fe=d.cancel).onClick)==null||ce.call(fe,G),fn())},className:U(N==null?void 0:N.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,_.isValidElement(d.action)?d.action:d.action&&Zi(d.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||O,onClick:G=>{var fe,ce;Zi(d.action)&&(G.defaultPrevented||((ce=(fe=d.action).onClick)==null||ce.call(fe,G),fn()))},className:U(N==null?void 0:N.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function mp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var tC=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:s,offset:a,theme:l="light",richColors:u,duration:f,style:p,visibleToasts:d=QE,toastOptions:w,dir:y=mp(),gap:m=XE,loadingIcon:S,icons:v,containerAriaLabel:h="Notifications",pauseWhenPageIsHidden:x,cn:E=JE}=e,[C,T]=_.useState([]),b=_.useMemo(()=>Array.from(new Set([n].concat(C.filter(L=>L.position).map(L=>L.position)))),[C,n]),[P,I]=_.useState([]),[O,z]=_.useState(!1),[j,H]=_.useState(!1),[M,B]=_.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
121k":"light"),D=_.useRef(null),Q=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=_.useRef(null),A=_.useRef(!1),$=_.useCallback(L=>{var U;(U=C.find(q=>q.id===L.id))!=null&&U.delete||ot.dismiss(L.id),T(q=>q.filter(({id:ie})=>ie!==L.id))},[C]);return _.useEffect(()=>ot.subscribe(L=>{if(L.dismiss){T(U=>U.map(q=>q.id===L.id?{...q,delete:!0}:q));return}setTimeout(()=>{Ea.flushSync(()=>{T(U=>{let q=U.findIndex(ie=>ie.id===L.id);return q!==-1?[...U.slice(0,q),{...U[q],...L},...U.slice(q+1)]:[L,...U]})})})}),[]),_.useEffect(()=>{if(l!=="system"){B(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:L})=>{B(L?"dark":"light")})},[l]),_.useEffect(()=>{C.length<=1&&z(!1)},[C]),_.useEffect(()=>{let L=U=>{var q,ie;r.every(ke=>U[ke]||U.code===ke)&&(z(!0),(q=D.current)==null||q.focus()),U.code==="Escape"&&(document.activeElement===D.current||(ie=D.current)!=null&&ie.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[r]),_.useEffect(()=>{if(D.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,A.current=!1)}},[D.current]),C.length?_.createElement("section",{"aria-label":`${h} ${Q}`,tabIndex:-1},b.map((L,U)=>{var q;let[ie,ke]=L.split("-");return _.createElement("ol",{key:L,dir:y==="auto"?mp():y,tabIndex:-1,ref:D,className:s,"data-sonner-toaster":!0,"data-theme":M,"data-y-position":ie,"data-x-position":ke,style:{"--front-toast-height":`${((q=P[0])==null?void 0:q.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||KE,"--width":`${YE}px`,"--gap":`${m}px`,...p},onBlur:J=>{A.current&&!J.currentTarget.contains(J.relatedTarget)&&(A.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||A.current||(A.current=!0,N.current=J.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{j||z(!1)},onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},C.filter(J=>!J.position&&U===0||J.position===L).map((J,V)=>{var oe,xe;return _.createElement(eC,{key:J.id,icons:v,index:V,toast:J,defaultRichColors:u,duration:(oe=w==null?void 0:w.duration)!=null?oe:f,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:t,visibleToasts:d,closeButton:(xe=w==null?void 0:w.closeButton)!=null?xe:i,interacting:j,position:L,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:$,toasts:C.filter(te=>te.position==J.position),heights:P.filter(te=>te.position==J.position),setHeights:I,expandByDefault:o,gap:m,loadingIcon:S,expanded:O,pauseWhenPageIsHidden:x,cn:E})}))})):null};const nC=({...e})=>{const{theme:t="system"}=AE();return g.jsx(tC,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function rC(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),l=n.length;n=[...n,s];const u=p=>{var v;const{scope:d,children:w,...y}=p,m=((v=d==null?void 0:d[e])==null?void 0:v[l])||a,S=c.useMemo(()=>y,Object.values(y));return g.jsx(m.Provider,{value:S,children:w})};u.displayName=i+"Provider";function f(p,d){var m;const w=((m=d==null?void 0:d[e])==null?void 0:m[l])||a,y=c.useContext(w);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,oC(o,...t)]}function oC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}
vendor: 14,144 bytes, line 121
121var iC="DismissableLayer",Wu="dismissableLayer.update",sC="dismissableLayer.pointerDownOutside",aC="dismissableLayer.focusOutside",vp,vg=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vd=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=c.useContext(vg),[f,p]=c.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=c.useState({}),y=re(t,b=>p(b)),m=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(S),h=f?m.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=v,C=cC(b=>{const P=b.target,I=[...u.branches].some(O=>O.contains(P));!E||I||(o==null||o(b),s==null||s(b),b.defaultPrevented||a==null||a())},d),T=dC(b=>{const P=b.target;[...u.branches].some(O=>O.contains(P))||(i==null||i(b),s==null||s(b),b.defaultPrevented||a==null||a())},d);return ld(b=>{h===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},d),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),gp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=vp)}},[f,d,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),gp())},[f,u]),c.useEffect(()=>{const b=()=>w({});return document.addEventListener(Wu,b),()=>document.removeEventListener(Wu,b)},[]),g.jsx(K.div,{...l,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,T.onFocusCapture),onBlurCapture:W(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,C.onPointerDownCapture)})});vd.displayName=iC;var lC="DismissableLayerBranch",uC=c.forwardRef((e,t)=>{const n=c.useContext(vg),r=c.useRef(null),o=re(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(K.div,{...e,ref:o})});uC.displayName=lC;function cC(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){gg(sC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function dC(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&gg(aC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function gp(){const e=new CustomEvent(Wu);document.dispatchEvent(e)}function gg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ca(o,i):o.dispatchEvent(i)}var fC=Ph.useId||(()=>{}),pC=0;function nn(e){const[t,n]=c.useState(fC());return Ce(()=>{n(r=>r??String(pC++))},[e]),t?`radix-${t}`:""}const hC=["top","right","bottom","left"],Bn=Math.min,at=Math.max,qs=Math.round,Ji=Math.floor,Un=e=>({x:e,y:e}),mC={left:"right",right:"left",bottom:"top",top:"bottom"},vC={start:"end",end:"start"};function Vu(e,t,n){return at(e,Bn(t,n))}function ln(e,t){return typeof e=="function"?e(t):e}function un(e){return e.split("-")[0]}function Eo(e){return e.split("-")[1]}function gd(e){return e==="x"?"y":"x"}function yd(e){return e==="y"?"height":"width"}function Wn(e){return["top","bottom"].includes(un(e))?"y":"x"}function wd(e){return gd(Wn(e))}function gC(e,t,n){n===void 0&&(n=!1);const r=Eo(e),o=wd(e),i=yd(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zs(s)),[s,Zs(s)]}function yC(e){const t=Zs(e);return[Hu(e),t,Hu(t)]}function Hu(e){return e.replace(/start|end/g,t=>vC[t])}function wC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function xC(e,t,n,r){const o=Eo(e);let i=wC(un(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Hu)))),i}function Zs(e){return e.replace(/left|right|bottom|top/g,t=>mC[t])}function SC(e){return{top:0,right:0,bottom:0,left:0,...e}}function yg(e){return typeof e!="number"?SC(e):{top:e,right:e,bottom:e,left:e}}function Js(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yp(e,t,n){let{reference:r,floating:o}=e;const i=Wn(t),s=wd(t),a=yd(s),l=un(t),u=i==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let w;switch(l){case"top":w={x:f,y:r.y-o.height};break;case"bottom":w={x:f,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:p};break;case"left":w={x:r.x-o.width,y:p};break;default:w={x:r.x,y:r.y}}switch(Eo(t)){case"start":w[s]-=d*(n&&u?-1:1);break;case"end":w[s]+=d*(n&&u?-1:1);break}return w}const EC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=yp(u,r,l),d=r,w={},y=0;for(let m=0;m<a.length;m++){const{name:S,fn:v}=a[m],{x:h,y:x,data:E,reset:C}=await v({x:f,y:p,initialPlacement:r,placement:d,strategy:o,middlewareData:w,rects:u,platform:s,elements:{reference:e,floating:t}});f=h??f,p=x??p,w={...w,[S]:{...w[S],...E}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:p}=yp(u,d,l)),m=-1)}return{x:f,y:p,placement:d,strategy:o,middlewareData:w}};async function mi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:d=!1,padding:w=0}=ln(t,e),y=yg(w),S=a[d?p==="floating"?"reference":"floating":p],v=Js(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),h=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Js(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:h,offsetParent:x,strategy:l}):h);return{top:(v.top-C.top+y.top)/E.y,bottom:(C.bottom-v.bottom+y.bottom)/E.y,left:(v.left-C.left+y.left)/E.x,right:(C.right-v.right+y.right)/E.x}}const CC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=ln(e,t)||{};if(u==null)return{};const p=yg(f),d={x:n,y:r},w=wd(o),y=yd(w),m=await s.getDimensions(u),S=w==="y",v=S?"top":"left",h=S?"bottom":"right",x=S?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[w]-d[w]-i.floating[y],C=d[w]-i.reference[w],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let b=T?T[x]:0;(!b||!await(s.isElement==null?void 0:s.isElement(T)))&&(b=a.floating[x]||i.floating[y]);const P=E/2-C/2,I=b/2-m[y]/2-1,O=Bn(p[v],I),z=Bn(p[h],I),j=O,H=b-m[y]-z,M=b/2-m[y]/2+P,B=Vu(j,M,H),D=!l.arrow&&Eo(o)!=null&&M!==B&&i.reference[y]/2-(M<j?O:z)-m[y]/2<0,Q=D?M<j?M-j:M-H:0;return{[w]:d[w]+Q,data:{[w]:B,centerOffset:M-B-Q,...D&&{alignmentOffset:Q}},reset:D}}}),bC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...S}=ln(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=un(o),h=Wn(a),x=un(a)===a,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(x||!m?[Zs(a)]:yC(a)),T=y!=="none";!d&&T&&C.push(...xC(a,m,y,E));const b=[a,...C],P=await mi(t,S),I=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&I.push(P[v]),p){const M=gC(o,s,E);I.push(P[M[0]],P[M[1]])}if(O=[...O,{placement:o,overflows:I}],!I.every(M=>M<=0)){var z,j;const M=(((z=i.flip)==null?void 0:z.index)||0)+1,B=b[M];if(B)return{data:{index:M,overflows:O},reset:{placement:B}};let D=(j=O.filter(Q=>Q.overflows[0]<=0).sort((Q,N)=>Q.overflows[1]-N.overflows[1])[0])==null?void 0:j.placement;if(!D)switch(w){case"bestFit":{var H;const Q=(H=O.filter(N=>{if(T){const A=Wn(N.placement);return A===h||A==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(A=>A>0).reduce((A,$)=>A+$,0)]).sort((N,A)=>N[1]-A[1])[0])==null?void 0:H[0];Q&&(D=Q);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function wp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xp(e){return hC.some(t=>e[t]>=0)}const PC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ln(e,t);switch(r){case"referenceHidden":{const i=await mi(t,{...o,elementContext:"reference"}),s=wp(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xp(s)}}}case"escaped":{const i=await mi(t,{...o,altBoundary:!0}),s=wp(i,n.floating);return{data:{escapedOffsets:s,escaped:xp(s)}}}default:return{}}}}};async function TC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=un(n),a=Eo(n),l=Wn(n)==="y",u=["left","top"].includes(s)?-1:1,f=i&&l?-1:1,p=ln(t,e);let{mainAxis:d,crossAxis:w,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(w=a==="end"?y*-1:y),l?{x:w*f,y:d*u}:{x:d*u,y:w*f}}const NC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await TC(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},kC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:S=>{let{x:v,y:h}=S;return{x:v,y:h}}},...l}=ln(e,t),u={x:n,y:r},f=await mi(t,l),p=Wn(un(o)),d=gd(p);let w=u[d],y=u[p];if(i){const S=d==="y"?"top":"left",v=d==="y"?"bottom":"right",h=w+f[S],x=w-f[v];w=Vu(h,w,x)}if(s){const S=p==="y"?"top":"left",v=p==="y"?"bottom":"right",h=y+f[S],x=y-f[v];y=Vu(h,y,x)}const m=a.fn({...t,[d]:w,[p]:y});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:i,[p]:s}}}}}},RC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ln(e,t),f={x:n,y:r},p=Wn(o),d=gd(p);let w=f[d],y=f[p];const m=ln(a,t),S=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+S.mainAxis,C=i.reference[d]+i.reference[x]-S.mainAxis;w<E?w=E:w>C&&(w=C)}if(u){var v,h;const x=d==="y"?"width":"height",E=["top","left"].includes(un(o)),C=i.reference[p]-i.floating[x]+(E&&((v=s.offset)==null?void 0:v[p])||0)+(E?0:S.crossAxis),T=i.reference[p]+i.reference[x]+(E?0:((h=s.offset)==null?void 0:h[p])||0)-(E?S.crossAxis:0);y<C?y=C:y>T&&(y=T)}return{[d]:w,[p]:y}}}},OC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=ln(e,t),f=await mi(t,u),p=un(o),d=Eo(o),w=Wn(o)==="y",{width:y,height:m}=i.floating;let S,v;p==="top"||p==="bottom"?(S=p,v=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=p,S=d==="end"?"top":"bottom");const h=m-f.top-f.bottom,x=y-f.left-f.right,E=Bn(m-f[S],h),C=Bn(y-f[v],x),T=!t.middlewareData.shift;let b=E,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=h),T&&!d){const O=at(f.left,0),z=at(f.right,0),j=at(f.top,0),H=at(f.bottom,0);w?P=y-2*(O!==0||z!==0?O+z:at(f.left,f.right)):b=m-2*(j!==0||H!==0?j+H:at(f.top,f.bottom))}await l({...t,availableWidth:P,availableHeight:b});const I=await s.getDimensions(a.floating);return y!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function Na(){return typeof window<"u"}function Co(e){return wg(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(wg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wg(e){return Na()?e instanceof Node||e instanceof ct(e).Node:!1}function It(e){return Na()?e instanceof Element||e instanceof ct(e).Element:!1}function Ht(e){return Na()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function Sp(e){return!Na()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function Ni(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function AC(e){return["table","td","th"].includes(Co(e))}function ka(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}
vendor: 4,846 bytes, line 121
121function xd(e){const t=Sd(),n=It(e)?_t(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function IC(e){let t=Vn(e);for(;Ht(t)&&!mo(t);){if(xd(t))return t;if(ka(t))return null;t=Vn(t)}return null}function Sd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mo(e){return["html","body","#document"].includes(Co(e))}function _t(e){return ct(e).getComputedStyle(e)}function Ra(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(Co(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sp(e)&&e.host||Qt(e);return Sp(t)?t.host:t}function xg(e){const t=Vn(e);return mo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ht(t)&&Ni(t)?t:xg(t)}function vi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=xg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ct(o);if(i){const a=Qu(s);return t.concat(s,s.visualViewport||[],Ni(o)?o:[],a&&n?vi(a):[])}return t.concat(o,vi(o,[],n))}function Qu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sg(e){const t=_t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ht(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=qs(n)!==i||qs(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ed(e){return It(e)?e:e.contextElement}function Yr(e){const t=Ed(e);if(!Ht(t))return Un(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Sg(t);let s=(i?qs(n.width):n.width)/r,a=(i?qs(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _C=Un(0);function Eg(e){const t=ct(e);return!Sd()||!t.visualViewport?_C:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function MC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function vr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ed(e);let s=Un(1);t&&(r?It(r)&&(s=Yr(r)):s=Yr(e));const a=MC(i,n,r)?Eg(i):Un(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(i){const d=ct(i),w=r&&It(r)?ct(r):r;let y=d,m=Qu(y);for(;m&&r&&w!==y;){const S=Yr(m),v=m.getBoundingClientRect(),h=_t(m),x=v.left+(m.clientLeft+parseFloat(h.paddingLeft))*S.x,E=v.top+(m.clientTop+parseFloat(h.paddingTop))*S.y;l*=S.x,u*=S.y,f*=S.x,p*=S.y,l+=x,u+=E,y=ct(m),m=Qu(y)}}return Js({width:f,height:p,x:l,y:u})}function jC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Qt(r),a=t?ka(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Un(1);const f=Un(0),p=Ht(r);if((p||!p&&!i)&&((Co(r)!=="body"||Ni(s))&&(l=Ra(r)),Ht(r))){const d=vr(r);u=Yr(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x,y:n.y*u.y-l.scrollTop*u.y+f.y}}function LC(e){return Array.from(e.getClientRects())}function Ku(e,t){const n=Ra(e).scrollLeft;return t?t.left+n:vr(Qt(e)).left+n}function DC(e){const t=Qt(e),n=Ra(e),r=e.ownerDocument.body,o=at(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=at(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ku(e);const a=-n.scrollTop;return _t(r).direction==="rtl"&&(s+=at(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function FC(e,t){const n=ct(e),r=Qt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Sd();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function $C(e,t){const n=vr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ht(e)?Yr(e):Un(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Ep(e,t,n){let r;if(t==="viewport")r=FC(e,n);else if(t==="document")r=DC(Qt(e));else if(It(t))r=$C(t,n);else{const o=Eg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Js(r)}function Cg(e,t){const n=Vn(e);return n===t||!It(n)||mo(n)?!1:_t(n).position==="fixed"||Cg(n,t)}function zC(e,t){const n=t.get(e);if(n)return n;let r=vi(e,[],!1).filter(a=>It(a)&&Co(a)!=="body"),o=null;const i=_t(e).position==="fixed";let s=i?Vn(e):e;for(;It(s)&&!mo(s);){const a=_t(s),l=xd(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ni(s)&&!l&&Cg(e,s))?r=r.filter(f=>f!==s):o=a,s=Vn(s)}return t.set(e,r),r}function BC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ka(t)?[]:zC(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const p=Ep(t,f,o);
vendor: 13,698 bytes, line 121
121return u.top=at(p.top,u.top),u.right=Bn(p.right,u.right),u.bottom=Bn(p.bottom,u.bottom),u.left=at(p.left,u.left),u},Ep(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function UC(e){const{width:t,height:n}=Sg(e);return{width:t,height:n}}function WC(e,t,n){const r=Ht(t),o=Qt(t),i=n==="fixed",s=vr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Un(0);if(r||!r&&!i)if((Co(t)!=="body"||Ni(o))&&(a=Ra(t)),r){const w=vr(t,!0,i,t);l.x=w.x+t.clientLeft,l.y=w.y+t.clientTop}else o&&(l.x=Ku(o));let u=0,f=0;if(o&&!r&&!i){const w=o.getBoundingClientRect();f=w.top+a.scrollTop,u=w.left+a.scrollLeft-Ku(o,w)}const p=s.left+a.scrollLeft-l.x-u,d=s.top+a.scrollTop-l.y-f;return{x:p,y:d,width:s.width,height:s.height}}function kl(e){return _t(e).position==="static"}function Cp(e,t){if(!Ht(e)||_t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function bg(e,t){const n=ct(e);if(ka(e))return n;if(!Ht(e)){let o=Vn(e);for(;o&&!mo(o);){if(It(o)&&!kl(o))return o;o=Vn(o)}return n}let r=Cp(e,t);for(;r&&AC(r)&&kl(r);)r=Cp(r,t);return r&&mo(r)&&kl(r)&&!xd(r)?n:r||IC(e)||n}const VC=async function(e){const t=this.getOffsetParent||bg,n=this.getDimensions,r=await n(e.floating);return{reference:WC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HC(e){return _t(e).direction==="rtl"}const QC={convertOffsetParentRelativeRectToViewportRelativeRect:jC,getDocumentElement:Qt,getClippingRect:BC,getOffsetParent:bg,getElementRects:VC,getClientRects:LC,getDimensions:UC,getScale:Yr,isElement:It,isRTL:HC};function KC(e,t){let n=null,r;const o=Qt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:f,width:p,height:d}=e.getBoundingClientRect();if(a||t(),!p||!d)return;const w=Ji(f),y=Ji(o.clientWidth-(u+p)),m=Ji(o.clientHeight-(f+d)),S=Ji(u),h={rootMargin:-w+"px "+-y+"px "+-m+"px "+-S+"px",threshold:at(0,Bn(1,l))||1};let x=!0;function E(C){const T=C[0].intersectionRatio;if(T!==l){if(!x)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(E,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,h)}n.observe(e)}return s(!0),i}function GC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ed(e),f=o||i?[...u?vi(u):[],...vi(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const p=u&&a?KC(u,n):null;let d=-1,w=null;s&&(w=new ResizeObserver(v=>{let[h]=v;h&&h.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=w)==null||x.observe(t)})),n()}),u&&!l&&w.observe(u),w.observe(t));let y,m=l?vr(e):null;l&&S();function S(){const v=vr(e);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,y=requestAnimationFrame(S)}return n(),()=>{var v;f.forEach(h=>{o&&h.removeEventListener("scroll",n),i&&h.removeEventListener("resize",n)}),p==null||p(),(v=w)==null||v.disconnect(),w=null,l&&cancelAnimationFrame(y)}}const YC=NC,XC=kC,qC=bC,ZC=OC,JC=PC,bp=CC,eb=RC,tb=(e,t,n)=>{const r=new Map,o={platform:QC,...n},i={...o.platform,_c:r};return EC(e,t,{...o,platform:i})};var Cs=typeof document<"u"?c.useLayoutEffect:c.useEffect;function ea(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 n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ea(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ea(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pp(e,t){const n=Pg(e);return Math.round(t*n)/n}function Rl(e){const t=c.useRef(e);return Cs(()=>{t.current=e}),t}function nb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,w]=c.useState(r);ea(d,r)||w(r);const[y,m]=c.useState(null),[S,v]=c.useState(null),h=c.useCallback(N=>{N!==T.current&&(T.current=N,m(N))},[]),x=c.useCallback(N=>{N!==b.current&&(b.current=N,v(N))},[]),E=i||y,C=s||S,T=c.useRef(null),b=c.useRef(null),P=c.useRef(f),I=l!=null,O=Rl(l),z=Rl(o),j=Rl(u),H=c.useCallback(()=>{if(!T.current||!b.current)return;const N={placement:t,strategy:n,middleware:d};z.current&&(N.platform=z.current),tb(T.current,b.current,N).then(A=>{const $={...A,isPositioned:j.current!==!1};M.current&&!ea(P.current,$)&&(P.current=$,Gn.flushSync(()=>{p($)}))})},[d,t,n,z,j]);Cs(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[u]);const M=c.useRef(!1);Cs(()=>(M.current=!0,()=>{M.current=!1}),[]),Cs(()=>{if(E&&(T.current=E),C&&(b.current=C),E&&C){if(O.current)return O.current(E,C,H);H()}},[E,C,H,O,I]);const B=c.useMemo(()=>({reference:T,floating:b,setReference:h,setFloating:x}),[h,x]),D=c.useMemo(()=>({reference:E,floating:C}),[E,C]),Q=c.useMemo(()=>{const N={position:n,left:0,top:0};if(!D.floating)return N;const A=Pp(D.floating,f.x),$=Pp(D.floating,f.y);return a?{...N,transform:"translate("+A+"px, "+$+"px)",...Pg(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:$}},[n,a,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:H,refs:B,elements:D,floatingStyles:Q}),[f,H,B,D,Q])}const rb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?bp({element:r.current,padding:o}).fn(n):{}:r?bp({element:r,padding:o}).fn(n):{}}}},ob=(e,t)=>({...YC(e),options:[e,t]}),ib=(e,t)=>({...XC(e),options:[e,t]}),sb=(e,t)=>({...eb(e),options:[e,t]}),ab=(e,t)=>({...qC(e),options:[e,t]}),lb=(e,t)=>({...ZC(e),options:[e,t]}),ub=(e,t)=>({...JC(e),options:[e,t]}),cb=(e,t)=>({...rb(e),options:[e,t]});var db="Arrow",Tg=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return g.jsx(K.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tg.displayName=db;var fb=Tg;function pb(e){const[t,n]=c.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Cd="Popper",[Ng,Oa]=xo(Cd),[hb,kg]=Ng(Cd),Rg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return g.jsx(hb,{scope:t,anchor:r,onAnchorChange:o,children:n})};Rg.displayName=Cd;var Og="PopperAnchor",Ag=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=kg(Og,n),s=c.useRef(null),a=re(t,s);return c.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:g.jsx(K.div,{...o,ref:a})});Ag.displayName=Og;var bd="PopperContent",[mb,vb]=Ng(bd),Ig=c.forwardRef((e,t)=>{var V,oe,xe,te,se,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:d=!1,updatePositionStrategy:w="optimized",onPlaced:y,...m}=e,S=kg(bd,n),[v,h]=c.useState(null),x=re(t,We=>h(We)),[E,C]=c.useState(null),T=pb(E),b=(T==null?void 0:T.width)??0,P=(T==null?void 0:T.height)??0,I=r+(i!=="center"?"-"+i:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},z=Array.isArray(u)?u:[u],j=z.length>0,H={padding:O,boundary:z.filter(yb),altBoundary:j},{refs:M,floatingStyles:B,placement:D,isPositioned:Q,middlewareData:N}=nb({strategy:"fixed",placement:I,whileElementsMounted:(...We)=>GC(...We,{animationFrame:w==="always"}),elements:{reference:S.anchor},middleware:[ob({mainAxis:o+P,alignmentAxis:s}),l&&ib({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?sb():void 0,...H}),l&&ab({...H}),lb({...H,apply:({elements:We,rects:nt,availableWidth:dn,availableHeight:ht})=>{const{width:qn,height:Ga}=nt.reference,Ie=We.floating.style;Ie.setProperty("--radix-popper-available-width",`${dn}px`),Ie.setProperty("--radix-popper-available-height",`${ht}px`),Ie.setProperty("--radix-popper-anchor-width",`${qn}px`),Ie.setProperty("--radix-popper-anchor-height",`${Ga}px`)}}),E&&cb({element:E,padding:a}),wb({arrowWidth:b,arrowHeight:P}),d&&ub({strategy:"referenceHidden",...H})]}),[A,$]=jg(D),L=Ae(y);Ce(()=>{Q&&(L==null||L())},[Q,L]);const U=(V=N.arrow)==null?void 0:V.x,q=(oe=N.arrow)==null?void 0:oe.y,ie=((xe=N.arrow)==null?void 0:xe.centerOffset)!==0,[ke,J]=c.useState();return Ce(()=>{v&&J(window.getComputedStyle(v).zIndex)},[v]),g.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:Q?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[(te=N.transformOrigin)==null?void 0:te.x,(se=N.transformOrigin)==null?void 0:se.y].join(" "),...((ne=N.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(mb,{scope:n,placedSide:A,onArrowChange:C,arrowX:U,arrowY:q,shouldHideArrow:ie,children:g.jsx(K.div,{"data-side":A,"data-align":$,...m,ref:x,style:{...m.style,animation:Q?void 0:"none"}})})})});Ig.displayName=bd;var _g="PopperArrow",gb={top:"bottom",right:"left",bottom:"top",left:"right"},Mg=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=vb(_g,r),s=gb[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(fb,{...o,ref:n,style:{...o.style,display:"block"}})})});Mg.displayName=_g;function yb(e){return e!==null}var wb=e=>({name:"transformOrigin",options:e,fn(t){var S,v,h;const{placement:n,rects:r,middlewareData:o}=t,s=((S=o.arrow)==null?void 0:S.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,f]=jg(n),p={start:"0%",center:"50%",end:"100%"}[f],d=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,w=(((h=o.arrow)==null?void 0:h.y)??0)+l/2;let y="",m="";return u==="bottom"?(y=s?p:`${d}px`,m=`${-l}px`):u==="top"?(y=s?p:`${d}px`,m=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,m=s?p:`${w}px`):u==="left"&&(y=`${r.floating.width+l}px`,m=s?p:`${w}px`),{data:{x:y,y:m}}}});function jg(e){const[t,n="center"]=e.split("-");return[t,n]}var Lg=Rg,Dg=Ag,Fg=Ig,$g=Mg,xb="Portal",zg=c.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=c.useState(!1);Ce(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ea.createPortal(g.jsx(K.div,{...r,ref:t}),s):null});zg.displayName=xb;function Sb(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var Bg=e=>{const{present:t,children:n}=e,r=Eb(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=re(r.ref,Cb(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null};Bg.displayName="Presence";function Eb(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,l]=Sb(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=es(r.current);i.current=a==="mounted"?u:"none"},[a]),Ce(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,w=es(u);e?l("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&d!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ce(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=w=>{const m=es(r.current).includes(w.animationName);if(w.target===t&&m&&(l("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},d=w=>{w.target===t&&(i.current=es(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function es(e){return(e==null?void 0:e.animationName)||"none"}function Cb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var[Aa,Wk]=rC("Tooltip",[Oa]),Ia=Oa(),Ug="TooltipProvider",bb=700,Gu="tooltip.open",[Pb,Pd]=Aa(Ug),Wg=e=>
vendor: 4,151 bytes, line 121
121{const{__scopeTooltip:t,delayDuration:n=bb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[s,a]=c.useState(!0),l=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),g.jsx(Pb,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(f=>{l.current=f},[]),disableHoverableContent:o,children:i})};Wg.displayName=Ug;var _a="Tooltip",[Tb,Ma]=Aa(_a),Vg=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Pd(_a,e.__scopeTooltip),u=Ia(t),[f,p]=c.useState(null),d=nn(),w=c.useRef(0),y=s??l.disableHoverableContent,m=a??l.delayDuration,S=c.useRef(!1),[v=!1,h]=mr({prop:r,defaultProp:o,onChange:b=>{b?(l.onOpen(),document.dispatchEvent(new CustomEvent(Gu))):l.onClose(),i==null||i(b)}}),x=c.useMemo(()=>v?S.current?"delayed-open":"instant-open":"closed",[v]),E=c.useCallback(()=>{window.clearTimeout(w.current),w.current=0,S.current=!1,h(!0)},[h]),C=c.useCallback(()=>{window.clearTimeout(w.current),w.current=0,h(!1)},[h]),T=c.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{S.current=!0,h(!0),w.current=0},m)},[m,h]);return c.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),g.jsx(Lg,{...u,children:g.jsx(Tb,{scope:t,contentId:d,open:v,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayed?T():E()},[l.isOpenDelayed,T,E]),onTriggerLeave:c.useCallback(()=>{y?C():(window.clearTimeout(w.current),w.current=0)},[C,y]),onOpen:E,onClose:C,disableHoverableContent:y,children:n})})};Vg.displayName=_a;var Yu="TooltipTrigger",Hg=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ma(Yu,n),i=Pd(Yu,n),s=Ia(n),a=c.useRef(null),l=re(t,a,o.onTriggerChange),u=c.useRef(!1),f=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),g.jsx(Dg,{asChild:!0,...s,children:g.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:W(e.onPointerMove,d=>{d.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:W(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:W(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:W(e.onBlur,o.onClose),onClick:W(e.onClick,o.onClose)})})});Hg.displayName=Yu;var Nb="TooltipPortal",[Vk,kb]=Aa(Nb,{forceMount:void 0}),vo="TooltipContent",Qg=c.forwardRef((e,t)=>{const n=kb(vo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Ma(vo,e.__scopeTooltip);return g.jsx(Bg,{present:r||s.open,children:s.disableHoverableContent?g.jsx(Kg,{side:o,...i,ref:t}):g.jsx(Rb,{side:o,...i,ref:t})})}),Rb=c.forwardRef((e,t)=>{const n=Ma(vo,e.__scopeTooltip),r=Pd(vo,e.__scopeTooltip),o=c.useRef(null),i=re(t,o),[s,a]=c.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,d=c.useCallback(()=>{a(null),p(!1)},[p]),w=c.useCallback((y,m)=>{const S=y.currentTarget,v={x:y.clientX,y:y.clientY},h=_b(v,S.getBoundingClientRect()),x=Mb(v,h),E=jb(m.getBoundingClientRect()),C=Db([...x,...E]);a(C),p(!0)},[p]);return c.useEffect(()=>()=>d(),[d]),c.useEffect(()=>{if(l&&f){const y=S=>w(S,f),m=S=>w(S,l);return l.addEventListener("pointerleave",y),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",m)}}},[l,f,w,d]),c.useEffect(()=>{if(s){const y=m=>{const S=m.target,v={x:m.clientX,y:m.clientY},h=(l==null?void 0:l.contains(S))||(f==null?void 0:f.contains(S)),x=!Lb(v,s);h?d():x&&(d(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,f,s,u,d]),g.jsx(Kg,{...e,ref:i})}),[Ob,Ab]=Aa(_a,{isInside:!1}),Kg=c.forwardRef((e,t)=>
vendor: 2,330 bytes, line 121
121{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Ma(vo,n),u=Ia(n),{onClose:f}=l;return c.useEffect(()=>(document.addEventListener(Gu,f),()=>document.removeEventListener(Gu,f)),[f]),c.useEffect(()=>{if(l.trigger){const p=d=>{const w=d.target;w!=null&&w.contains(l.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,f]),g.jsx(vd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:g.jsxs(Fg,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(Av,{children:r}),g.jsx(Ob,{scope:n,isInside:!0,children:g.jsx(gS,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Qg.displayName=vo;var Gg="TooltipArrow",Ib=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ia(n);return Ab(Gg,n).isInside?null:g.jsx($g,{...o,...r,ref:t})});Ib.displayName=Gg;function _b(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Mb(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function jb(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Lb(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,u=t[s].x,f=t[s].y;l>r!=f>r&&n<(u-a)*(r-l)/(f-l)+a&&(o=!o)}return o}function Db(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Fb(t)}
121function Fb(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $b=Wg,zb=Vg,Bb=Hg,Yg=Qg;const Ub=$b,Wb=zb,Vb=Bb,Xg=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>g.jsx(Yg,{ref:r,sideOffset:t,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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),...n}));Xg.displayName=Yg.displayName;var ja=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(){}},La=typeof window>"u"||"Deno"in globalThis;function Pt(){}function Hb(e,t){return typeof e=="function"?e(t):e}function Qb(e){return typeof e=="number"&&e>=0&&e!==1/0}function Kb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tp(e,t){return typeof e=="function"?e(t):e}function Gb(e,t){return typeof e=="function"?e(t):e}function Np(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Td(s,t.options))return!1}else if(!yi(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function kp(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(gi(t.options.mutationKey)!==gi(i))return!1}else if(!yi(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Td(e,t){return((t==null?void 0:t.queryKeyHashFn)||gi)(e)}function gi(e){return JSON.stringify(e,(t,n)=>Xu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function yi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!yi(e[n],t[n])):!1}function qg(e,t){if(e===t)return e;const n=Rp(e)&&Rp(t);if(n||Xu(e)&&Xu(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const f=n?u:i[u];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,l++):(a[f]=qg(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function Rp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xu(e){if(!Op(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Op(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Op(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yb(e){return new Promise(t=>{setTimeout(t,e)})}function Xb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qg(e,t):t}function qb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Zb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Zg=Symbol();function Jg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Zg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var rr,Cn,Zr,sh,Jb=(sh=class extends ja{constructor(){super();ae(this,rr);ae(this,Cn);ae(this,Zr);X(this,Zr,t=>{if(!La&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,Cn)||this.setEventListener(k(this,Zr))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Cn))==null||t.call(this),X(this,Cn,void 0))}setEventListener(t){var n;X(this,Zr,t),(n=k(this,Cn))==null||n.call(this),X(this,Cn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,rr)!==t&&(X(this,rr,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 19,456 bytes, line 121
121this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,rr)=="boolean"?k(this,rr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rr=new WeakMap,Cn=new WeakMap,Zr=new WeakMap,sh),ey=new Jb,Jr,bn,eo,ah,eP=(ah=class extends ja{constructor(){super();ae(this,Jr,!0);ae(this,bn);ae(this,eo);X(this,eo,t=>{if(!La&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,bn)||this.setEventListener(k(this,eo))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,bn))==null||t.call(this),X(this,bn,void 0))}setEventListener(t){var n;X(this,eo,t),(n=k(this,bn))==null||n.call(this),X(this,bn,t(this.setOnline.bind(this)))}setOnline(t){k(this,Jr)!==t&&(X(this,Jr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,Jr)}},Jr=new WeakMap,bn=new WeakMap,eo=new WeakMap,ah),ta=new eP;function tP(e){return Math.min(1e3*2**e,3e4)}function ty(e){return(e??"online")==="online"?ta.isOnline():!0}var ny=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ol(e){return e instanceof ny}function ry(e){let t=!1,n=0,r=!1,o,i,s;const a=new Promise((v,h)=>{i=v,s=h}),l=v=>{var h;r||(y(new ny(v)),(h=e.abort)==null||h.call(e))},u=()=>{t=!0},f=()=>{t=!1},p=()=>ey.isFocused()&&(e.networkMode==="always"||ta.isOnline())&&e.canRun(),d=()=>ty(e.networkMode)&&e.canRun(),w=v=>{var h;r||(r=!0,(h=e.onSuccess)==null||h.call(e,v),o==null||o(),i(v))},y=v=>{var h;r||(r=!0,(h=e.onError)==null||h.call(e,v),o==null||o(),s(v))},m=()=>new Promise(v=>{var h;o=x=>{(r||p())&&v(x)},(h=e.onPause)==null||h.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),S=()=>{if(r)return;let v;const h=n===0?e.initialPromise:void 0;try{v=h??e.fn()}catch(x){v=Promise.reject(x)}Promise.resolve(v).then(w).catch(x=>{var P;if(r)return;const E=e.retry??(La?0:3),C=e.retryDelay??tP,T=typeof C=="function"?C(n,x):C,b=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,x);if(t||!b){y(x);return}n++,(P=e.onFail)==null||P.call(e,n,x),Yb(T).then(()=>p()?void 0:m()).then(()=>{t?y(x):S()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:u,continueRetry:f,canStart:d,start:()=>(d()?S():m().then(S),a)}}function nP(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=a=>setTimeout(a,0);const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Qe=nP(),or,lh,oy=(lh=class{constructor(){ae(this,or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qb(this.gcTime)&&X(this,or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(La?1/0:5*60*1e3))}clearGcTimeout(){k(this,or)&&(clearTimeout(k(this,or)),X(this,or,void 0))}},or=new WeakMap,lh),to,no,mt,$e,wi,ir,Tt,Gt,uh,rP=(uh=class extends oy{constructor(t){super();ae(this,Tt);ae(this,to);ae(this,no);ae(this,mt);ae(this,$e);ae(this,wi);ae(this,ir);X(this,ir,!1),X(this,wi,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,mt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,to,iP(this.options)),this.state=t.state??k(this,to),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,$e))==null?void 0:t.promise}setOptions(t){this.options={...k(this,wi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,mt).remove(this)}setData(t,n){const r=Xb(this.state.data,t,this.options);return Le(this,Tt,Gt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,Tt,Gt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,$e))==null?void 0:r.promise;return(o=k(this,$e))==null||o.cancel(t),n?n.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,to))}isActive(){return this.observers.some(t=>Gb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Kb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,$e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,$e))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,$e)&&(k(this,ir)?k(this,$e).cancel({revert:!0}):k(this,$e).cancelRetry()),this.scheduleGc()),k(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Tt,Gt).call(this,{type:"invalidate"})}fetch(t,n){var l,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,$e))return k(this,$e).continueRetry(),k(this,$e).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(d=>d.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(X(this,ir,!0),r.signal)})},i=()=>{const p=Jg(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return o(d),X(this,ir,!1),this.options.persister?this.options.persister(p,d,this):p(d)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(s),(l=this.options.behavior)==null||l.onFetch(s,this),X(this,no,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&Le(this,Tt,Gt).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const a=p=>{var d,w,y,m;Ol(p)&&p.silent||Le(this,Tt,Gt).call(this,{type:"error",error:p}),Ol(p)||((w=(d=k(this,mt).config).onError)==null||w.call(d,p,this),(m=(y=k(this,mt).config).onSettled)==null||m.call(y,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return X(this,$e,ry({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var d,w,y,m;if(p===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(S){a(S);return}(w=(d=k(this,mt).config).onSuccess)==null||w.call(d,p,this),(m=(y=k(this,mt).config).onSettled)==null||m.call(y,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(p,d)=>{Le(this,Tt,Gt).call(this,{type:"failed",failureCount:p,error:d})},onPause:()=>{Le(this,Tt,Gt).call(this,{type:"pause"})},onContinue:()=>{Le(this,Tt,Gt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),k(this,$e).start()}},to=new WeakMap,no=new WeakMap,mt=new WeakMap,$e=new WeakMap,wi=new WeakMap,ir=new WeakMap,Tt=new WeakSet,Gt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...oP(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ol(o)&&o.revert&&k(this,no)?{...k(this,no),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,mt).notify({query:this,type:"updated",action:t})})},uh);function oP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ty(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function iP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var $t,ch,sP=(ch=class extends ja{constructor(t={}){super();ae(this,$t);this.config=t,X(this,$t,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Td(o,n);let s=this.get(i);return s||(s=new rP({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){k(this,$t).has(t.queryHash)||(k(this,$t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,$t).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,$t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,$t).get(t)}getAll(){return[...k(this,$t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Np(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Np(t,r)):n}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$t=new WeakMap,ch),zt,Ve,sr,Bt,vn,dh,aP=(dh=class extends oy{constructor(t){super();ae(this,Bt);ae(this,zt);ae(this,Ve);ae(this,sr);this.mutationId=t.mutationId,X(this,Ve,t.mutationCache),X(this,zt,[]),this.state=t.state||lP(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,zt).includes(t)||(k(this,zt).push(t),this.clearGcTimeout(),k(this,Ve).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,zt,k(this,zt).filter(n=>n!==t)),this.scheduleGc(),k(this,Ve).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,zt).length||(this.state.status==="pending"?this.scheduleGc():k(this,Ve).remove(this))}continue(){var t;return((t=k(this,sr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,u,f,p,d,w,y,m,S,v,h,x,E,C,T,b;X(this,sr,ry({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{Le(this,Bt,vn).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{Le(this,Bt,vn).call(this,{type:"pause"})},onContinue:()=>{Le(this,Bt,vn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Ve).canRun(this)}));const n=this.state.status==="pending",r=!k(this,sr).canStart();try{if(!n){Le(this,Bt,vn).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=k(this,Ve).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));I!==this.state.context&&Le(this,Bt,vn).call(this,{type:"pending",context:I,variables:t,isPaused:r})}const P=await k(this,sr).start();return await((u=(l=k(this,Ve).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,P,t,this.state.context)),await((w=(d=k(this,Ve).config).onSettled)==null?void 0:w.call(d,P,null,this.state.variables,this.state.context,this)),await((m=(y=this.options).onSettled)==null?void 0:m.call(y,P,null,t,this.state.context)),Le(this,Bt,vn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((v=(S=k(this,Ve).config).onError)==null?void 0:v.call(S,P,t,this.state.context,this)),await((x=(h=this.options).onError)==null?void 0:x.call(h,P,t,this.state.context)),await((C=(E=k(this,Ve).config).onSettled)==null?void 0:C.call(E,void 0,P,this.state.variables,this.state.context,this)),await((b=(T=this.options).onSettled)==null?void 0:b.call(T,void 0,P,t,this.state.context)),P}finally{Le(this,Bt,vn).call(this,{type:"error",error:P})}}finally{k(this,Ve).runNext(this)}}},zt=new WeakMap,Ve=new WeakMap,sr=new WeakMap,Bt=new WeakSet,vn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qe.batch(()=>{k(this,zt).forEach(r=>{r.onMutationUpdate(t)}),k(this,Ve).notify({mutation:this,type:"updated",action:t})})},dh);function lP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rt,xi,fh,uP=(fh=class extends ja{constructor(t={}){super();ae(this,rt);ae(this,xi);this.config=t,X(this,rt,new Map),X(this,xi,Date.now())}build(t,n,r){const o=new aP({mutationCache:this,mutationId:++Ii(this,xi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=ts(t),r=k(this,rt).get(n)??[];r.push(t),k(this,rt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=ts(t);if(k(this,rt).has(n)){const o=(r=k(this,rt).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?k(this,rt).delete(n):k(this,rt).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,rt).get(ts(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,rt).get(ts(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,rt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kp(n,r))}findAll(t={}){return this.getAll().filter(n=>kp(t,n))}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pt))))}},rt=new WeakMap,xi=new WeakMap,fh);function ts(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ap(e){return{onFetch:(t,n)=>{var f,p,d,w,y;const r=t.options,o=(d=(p=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:d.direction,i=((w=t.state.data)==null?void 0:w.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const S=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=Jg(t.options,t.fetchOptions),h=async(x,E,C)=>{if(m)return Promise.reject();if(E==null&&x.pages.length)return Promise.resolve(x);const T={queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};S(T);const b=await v(T),{maxPages:P}=t.options,I=C?Zb:qb;return{pages:I(x.pages,b,P),pageParams:I(x.pageParams,E,P)}};if(o&&i.length){const x=o==="backward",E=x?cP:Ip,C={pages:i,pageParams:s},T=E(r,C);a=await h(C,T,x)}else{const x=e??i.length;do{const E=l===0?s[0]??r.initialPageParam:Ip(r,a);if(l>0&&E==null)break;a=await h(a,E),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var m,S;return(S=(m=t.options).persister)==null?void 0:S.call(m,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ip(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function cP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Se,Pn,Tn,ro,oo,Nn,io,so,ph,dP=(ph=class{constructor(e={}){ae(this,Se);ae(this,Pn);ae(this,Tn);ae(this,ro);ae(this,oo);ae(this,Nn);ae(this,io);ae(this,so);X(this,Se,e.queryCache||new sP),X(this,Pn,e.mutationCache||new uP),X(this,Tn,e.defaultOptions||{}),X(this,ro,new Map),X(this,oo,new Map),X(this,Nn,0)}mount(){Ii(this,Nn)._++,k(this,Nn)===1&&(X(this,io,ey.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Se).onFocus())})),X(this,so,ta.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Se).onOnline())})))}unmount(){var e,t;Ii(this,Nn)._--,k(this,Nn)===0&&((e=k(this,io))==null||e.call(this),X(this,io,void 0),(t=k(this,so))==null||t.call(this),X(this,so,void 0))}isFetching(e){return k(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Pn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=k(this,Se).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Tp(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return k(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,Se).get(r.queryHash),i=o==null?void 0:o.state.data,s=Hb(t,i);if(s!==void 0)return k(this,Se).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Qe.batch(()=>k(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Se);Qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Se),r={type:"active",...e};return Qe.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Qe.batch(()=>k(this,Se).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Pt).catch(Pt)}invalidateQueries(e={},t={}){return Qe.batch(()=>
121{if(k(this,Se).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Qe.batch(()=>k(this,Se).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Se).build(this,t);return n.isStaleByTime(Tp(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=Ap(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}ensureInfiniteQueryData(e){return e.behavior=Ap(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ta.isOnline()?k(this,Pn).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Se)}getMutationCache(){return k(this,Pn)}getDefaultOptions(){return k(this,Tn)}setDefaultOptions(e){X(this,Tn,e)}setQueryDefaults(e,t){k(this,ro).set(gi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,ro).values()];let n={};return t.forEach(r=>{yi(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){k(this,oo).set(gi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,oo).values()];let n={};return t.forEach(r=>{yi(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Tn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Td(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.enabled!==!0&&t.queryFn===Zg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Tn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Se).clear(),k(this,Pn).clear()}},Se=new WeakMap,Pn=new WeakMap,Tn=new WeakMap,ro=new WeakMap,oo=new WeakMap,Nn=new WeakMap,io=new WeakMap,so=new WeakMap,ph),fP=c.createContext(void 0),pP=({client:e,children:t})=>(c.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(fP.Provider,{value:e,children:t}));/** 122 * @remix-run/router v1.19.2 123 * 124 * Copyright (c) Remix Software Inc. 125 * 126 * This source code is licensed under the MIT license found in the 127 * LICENSE.md file in the root directory of this source tree. 128 * 129 * @license MIT 130 */function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}var On;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(On||(On={}));const _p="popstate";function hP(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return qu("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:sy(o)}return vP(t,n,null,e)}function tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function iy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mP(){return Math.random().toString(36).substr(2,8)}function Mp(e,t){return{usr:e.state,key:e.key,idx:t}}function qu(e,t,n,r){return n===void 0&&(n=null),na({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Da(t):t,{state:n,key:t&&t.key||r||mP()})}function sy(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Da(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function vP(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=On.Pop,l=null,u=f();u==null&&(u=0,s.replaceState(na({},s.state,{idx:u}),""));function f(){return(s.state||{idx:null}).idx}function p(){a=On.Pop;let S=f(),v=S==null?null:S-u;u=S,l&&l({action:a,location:m.location,delta:v})}function d(S,v){a=On.Push;let h=qu(m.location,S,v);u=f()+1;let x=Mp(h,u),E=m.createHref(h);try{s.pushState(x,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}i&&l&&l({action:a,location:m.location,delta:1})}function w(S,v){a=On.Replace;let h=qu(m.location,S,v);u=f();let x=Mp(h,u),E=m.createHref(h);s.replaceState(x,"",E),i&&l&&l({action:a,location:m.location,delta:0})}function y(S){let v=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:sy(S);return h=h.replace(/ $/,"%20"),tt(v,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,v)}let m={get action(){return a},get location(){return e(o,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(_p,p),l=S,()=>{o.removeEventListener(_p,p),l=null}},createHref(S){return t(o,S)},createURL:y,encodeLocation(S){let v=y(S);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:w,go(S){return s.go(S)}};return m}var jp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jp||(jp={}));function gP(e,t,n){return n===void 0&&(n="/"),yP(e,t,n,!1)}function yP(e,t,n,r){let o=typeof t=="string"?Da(t):t,i=uy(o.pathname||"/",n);if(i==null)return null;let s=ay(e);wP(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=OP(i);a=kP(s[l],u,r)}return a}function ay(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(tt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
130id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Xr([r,l.relativePath]),f=n.concat(l);i.children&&i.children.length>0&&(tt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ay(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:TP(u,i.index),routesMeta:f})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of ly(i.path))o(i,s,l)}),t}function ly(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=ly(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function wP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:NP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xP=/^:[\w-]+$/,SP=3,EP=2,CP=1,bP=10,PP=-2,Lp=e=>e==="*";function TP(e,t){let n=e.split("/"),r=n.length;return n.some(Lp)&&(r+=PP),t&&(r+=EP),n.filter(o=>!Lp(o)).reduce((o,i)=>o+(xP.test(i)?SP:i===""?CP:bP),r)}function NP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function kP(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",p=Dp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),d=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=Dp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!p)return null;
vendor: 4,131 bytes, lines 130-139
130Object.assign(o,p.params),s.push({params:o,pathname:Xr([i,p.pathname]),pathnameBase:AP(Xr([i,p.pathnameBase])),route:d}),p.pathnameBase!=="/"&&(i=Xr([i,p.pathnameBase]))}return s}function Dp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=RP(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,f,p)=>{let{paramName:d,isOptional:w}=f;if(d==="*"){let m=a[p]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const y=a[p];return w&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function RP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),iy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function OP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return iy(!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 uy(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Xr=e=>e.join("/").replace(/\/\/+/g,"/"),AP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function IP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cy=["post","put","patch","delete"];new Set(cy);const _P=["get",...cy];new Set(_P);/** 131 * React Router v6.26.2 132 * 133 * Copyright (c) Remix Software Inc. 134 * 135 * This source code is licensed under the MIT license found in the 136 * LICENSE.md file in the root directory of this source tree. 137 * 138 * @license MIT 139 */function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ra.apply(this,arguments)}const MP=c.createContext(null),jP=c.createContext(null),dy=c.createContext(null),Fa=c.createContext(null),$a=c.createContext({outlet:null,matches:[],isDataRoute:!1}),fy=c.createContext(null);function Nd(){return c.useContext(Fa)!=null}function py(){return Nd()||tt(!1),c.useContext(Fa).location}function LP(e,t){return DP(e,t)}function DP(e,t,n,r){Nd()||tt(!1);let{navigator:o}=c.useContext(dy),{matches:i}=c.useContext($a),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=py(),f;if(t){var p;let S=typeof t=="string"?Da(t):t;l==="/"||(p=S.pathname)!=null&&p.startsWith(l)||tt(!1),f=S}else f=u;let d=f.pathname||"/",w=d;if(l!=="/"){let S=l.replace(/^\//,"").split("/");w="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=gP(e,{pathname:w}),m=UP(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:Xr([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:Xr([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&m?c.createElement(Fa.Provider,{value:{location:ra({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:On.Pop}},m):m}function FP(){let e=QP(),t=IP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application
139Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,null)}const $P=c.createElement(FP,null);class zP extends c.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?c.createElement($a.Provider,{value:this.props.routeContext},c.createElement(fy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BP(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(MP);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement($a.Provider,{value:t},r)}function UP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let f=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);f>=0||tt(!1),s=s.slice(0,Math.min(s.length,f+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<s.length;f++){let p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=f),p.route.id){let{loaderData:d,errors:w}=n,y=p.route.loader&&d[p.route.id]===void 0&&(!w||w[p.route.id]===void 0);if(p.route.lazy||y){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((f,p,d)=>{let w,y=!1,m=null,S=null;n&&(w=a&&p.route.id?a[p.route.id]:void 0,m=p.route.errorElement||$P,l&&(u<0&&d===0?(y=!0,S=null):u===d&&(y=!0,S=p.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,d+1)),h=()=>{let x;return w?x=m:y?x=S:p.route.Component?x=c.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=f,c.createElement(BP,{match:p,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||d===0)?c.createElement(zP,{location:n.location,revalidation:n.revalidation,component:m,error:w,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):h()},null)}var Zu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",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}(Zu||{});function WP(e){let t=c.useContext(jP);return t||tt(!1),t}function VP(e){let t=c.useContext($a);return t||tt(!1),t}function HP(e){let t=VP(),n=t.matches[t.matches.length-1];return n.route.id||tt(!1),n.route.id}function QP(){var e;let t=c.useContext(fy),n=WP(Zu.UseRouteError),r=HP(Zu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ju(e){tt(!1)}function KP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=On.Pop,navigator:i,static:s=!1,future:a}=e;Nd()&&tt(!1);let l=t.replace(/^\/*/,"/"),u=c.useMemo(()=>({basename:l,navigator:i,static:s,future:ra({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Da(r));let{pathname:f="/",search:p="",hash:d="",state:w=null,key:y="default"}=r,m=c.useMemo(()=>{let S=uy(f,l);return S==null?null:{location:{pathname:S,search:p,hash:d,state:w,key:y},navigationType:o}},[l,f,p,d,w,y,o]);return m==null?null:c.createElement(dy.Provider,{value:u},c.createElement(Fa.Provider,{children:n,value:m}))}function GP(e){let{children:t,location:n}=e;return LP(ec(t),n)}new Promise(()=>{});function ec(e,t){t===void 0&&(t=[]);let n=[];
139return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let i=[...t,o];if(r.type===c.Fragment){n.push.apply(n,ec(r.props.children,i));return}r.type!==Ju&&tt(!1),!r.props.index||!r.props.children||tt(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=ec(r.props.children,i)),n.push(s)}),n}/** 140 * React Router DOM v6.26.2 141 * 142 * Copyright (c) Remix Software Inc. 143 * 144 * This source code is licensed under the MIT license found in the 145 * LICENSE.md file in the root directory of this source tree. 146 * 147 * @license MIT 148 */const YP="6";try{window.__reactRouterVersion=YP}catch{}const XP="startTransition",Fp=Ph[XP];function qP(e){let{basename:t,children:n,future:r,window:o}=e,i=c.useRef();i.current==null&&(i.current=hP({window:o,v5Compat:!0}));let s=i.current,[a,l]=c.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},f=c.useCallback(p=>{u&&Fp?Fp(()=>l(p)):l(p)},[l,u]);return c.useLayoutEffect(()=>s.listen(f),[s,f]),c.createElement(KP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var $p;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($p||($p={}));var zp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zp||(zp={}));const hy=c.createContext(void 0),tc={"BUG-001":"ÐоиÑк по Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ авÑоÑÑ Ð¿ÑоизводиÑÑÑ ÑолÑко Ñ ÑÑÑÑом ÑегиÑÑÑа (наÑÑÑÐ°ÐµÑ REQ-001)","BUG-002":"ÐекоÑÑекÑное оÑобÑажение ÑиÑла книг пÑи ÑилÑÑÑаÑии по жанÑам (наÑÑÑÐ°ÐµÑ REQ-002)","BUG-003":"ÐоиÑк по ISBN не вÑÐ²Ð¾Ð´Ð¸Ñ ÑезÑлÑÑаÑов (наÑÑÑÐ°ÐµÑ REQ-001)","BUG-004":"ФилÑÑÑ Ð¿Ð¾ Ð³Ð¾Ð´Ñ Ð½Ðµ ÑабоÑÐ°ÐµÑ Ð¿Ñи акÑивном поиÑковом запÑоÑе (наÑÑÑÐ°ÐµÑ REQ-002)"},ZP={"BUG-001":"case-sensitive-search","BUG-002":"genre-count-mismatch","BUG-003":"isbn-search-failure","BUG-004":"year-filter-with-search"},JP=({children:e})=>{const{toast:t}=Rv(),[n,r]=c.useState(0),[o,i]=c.useState(0),[s,a]=c.useState([]),[l,u]=c.useState({}),[f,p]=c.useState({}),[d,w]=c.useState(0),[y,m]=c.useState({});c.useEffect(()=>{const E=localStorage.getItem("testCasesCount"),C=localStorage.getItem("bugsFound"),T=localStorage.getItem("bugsFoundIds"),b=localStorage.getItem("testCaseTypes"),P=localStorage.getItem("triggeredBugs"),I=localStorage.getItem("lastSearchedCount"),O=localStorage.getItem("discoveredTestCases");E&&r(parseInt(E)),C&&i(parseInt(C)),T&&a(JSON.parse(T)),b&&u(JSON.parse(b)),P&&p(JSON.parse(P)),I&&w(parseInt(I)),O&&m(JSON.parse(O))},[]),c.useEffect(()=>{localStorage.setItem("testCasesCount",n.toString()),localStorage.setItem("bugsFound",o.toString()),localStorage.setItem("bugsFoundIds",JSON.stringify(s)),localStorage.setItem("testCaseTypes",JSON.stringify(l)),localStorage.setItem("triggeredBugs",JSON.stringify(f)),localStorage.setItem("lastSearchedCount",d.toString()),localStorage.setItem("discoveredTestCases",JSON.stringify(y))},[n,o,s,l,f,d,y]);const S=E=>{var T;const C=(T=Object.entries(ZP).find(([b,P])=>P===E))==null?void 0:T[0];C&&!s.includes(C)&&(i(b=>b+1),a(b=>[...b,C]),t({title:"ÐбнаÑÑжен баг!",description:`ÐÑ Ð¾Ð±Ð½Ð°ÑÑжили пÑоблемÑ: ${tc[C]}`,variant:"default"}))},v=E=>{y[E]||(m(C=>({...C,[E]:!0})),r(C=>C+1),u(C=>({...C,[E]:!0})),S(E))},h=E=>{s.includes(E)||(i(C=>C+1),a(C=>[...C,E]),t({title:"ÐбнаÑÑжен баг!",description:`ÐÑ Ð¾Ð±Ð½Ð°ÑÑжили пÑоблемÑ: ${tc[E]}`,variant:"default"}))},x=()=>{r(0),i(0),a([]),u({}),p({}),w(0),m({}),localStorage.removeItem("testCasesCount"),localStorage.removeItem("bugsFound"),localStorage.removeItem("bugsFoundIds"),localStorage.removeItem("testCaseTypes"),localStorage.removeItem("triggeredBugs"),localStorage.removeItem("lastSearchedCount"),localStorage.removeItem("discoveredTestCases"),t({title:"ÐÑогÑеÑÑ ÑбÑоÑен",description:"ÐÑе найденнÑе баги и ÑÑаÑиÑÑика бÑли ÑбÑоÑенÑ.",variant:"default"})};return g.jsx(hy.Provider,{value:{testCasesCount:n,bugsFound:o,incrementTestCases:v,reportBug:h,bugsFoundIds:s,resetProgress:x},children:e})},ki=()=>{const e=c.useContext(hy);if(e===void 0)throw new Error("useTesting must be used within a TestingProvider");return e},eT=Ta("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 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 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Zt=c.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?hr:"button";return g.jsx(s,{className:ue(eT({variant:t,size:n,className:e})),ref:i,...o})});Zt.displayName="Button";function tT(e,t){const n=c.createContext(t),r=i=>{const{children:s,...a}=i,l=c.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function nT(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),l=n.length;n=[...n,s];const u=p=>{var v;const{scope:d,children:w,...y}=p,m=((v=d==null?void 0:d[e])==null?void 0:v[l])||a,S=c.useMemo(()=>y,Object.values(y));return g.jsx(m.Provider,{value:S,children:w})};u.displayName=i+"Provider";function f(p,d){var m;const w=((m=d==null?void 0:d[e])==null?void 0:m[l])||a,y=c.useContext(w);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,rT(o,...t)]}function rT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Al="focusScope.autoFocusOnMount",Il="focusScope.autoFocusOnUnmount",Bp={bubbles:!1,cancelable:!0},oT="FocusScope",kd=c.forwardRef((e,t)=>
vendor: 5,584 bytes, line 148
148{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=c.useState(null),u=Ae(o),f=Ae(i),p=c.useRef(null),d=re(t,m=>l(m)),w=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let m=function(x){if(w.paused||!a)return;const E=x.target;a.contains(E)?p.current=E:gn(p.current,{select:!0})},S=function(x){if(w.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||gn(p.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&gn(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",S);const h=new MutationObserver(v);return a&&h.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",S),h.disconnect()}}},[r,a,w.paused]),c.useEffect(()=>{if(a){Wp.add(w);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(Al,Bp);a.addEventListener(Al,u),a.dispatchEvent(v),v.defaultPrevented||(iT(cT(my(a)),{select:!0}),document.activeElement===m&&gn(a))}return()=>{a.removeEventListener(Al,u),setTimeout(()=>{const v=new CustomEvent(Il,Bp);a.addEventListener(Il,f),a.dispatchEvent(v),v.defaultPrevented||gn(m??document.body,{select:!0}),a.removeEventListener(Il,f),Wp.remove(w)},0)}}},[a,u,f,w]);const y=c.useCallback(m=>{if(!n&&!r||w.paused)return;const S=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(S&&v){const h=m.currentTarget,[x,E]=sT(h);x&&E?!m.shiftKey&&v===E?(m.preventDefault(),n&&gn(x,{select:!0})):m.shiftKey&&v===x&&(m.preventDefault(),n&&gn(E,{select:!0})):v===h&&m.preventDefault()}},[n,r,w.paused]);return g.jsx(K.div,{tabIndex:-1,...s,ref:d,onKeyDown:y})});kd.displayName=oT;function iT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gn(r,{select:t}),document.activeElement!==n)return}function sT(e){const t=my(e),n=Up(t,e),r=Up(t.reverse(),e);return[n,r]}function my(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Up(e,t){for(const n of e)if(!aT(n,{upTo:t}))return n}function aT(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 lT(e){return e instanceof HTMLInputElement&&"select"in e}function gn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&lT(e)&&t&&e.select()}}var Wp=uT();function uT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vp(e,t),e.unshift(t)},remove(t){var n;e=Vp(e,t),(n=e[0])==null||n.resume()}}}function Vp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cT(e){return e.filter(t=>t.tagName!=="A")}function dT(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var za=e=>{const{present:t,children:n}=e,r=fT(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=re(r.ref,pT(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null};za.displayName="Presence";function fT(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,l]=dT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=ns(r.current);i.current=a==="mounted"?u:"none"},[a]),Ce(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,w=ns(u);e?l("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&d!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ce(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=w=>{const m=ns(r.current).includes(w.animationName);if(w.target===t&&m&&(l("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},d=w=>{w.target===t&&(i.current=ns(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ns(e){return(e==null?void 0:e.animationName)||"none"}function pT(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _l=0;function hT(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hp()),document.body.insertAdjacentElement("beforeend",e[1]??Hp()),_l++,()=>{_l===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_l--}},[])}function Hp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,610 bytes, lines 148-163
148style.position="fixed",e.style.pointerEvents="none",e}var Be=function(){return Be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Be.apply(this,arguments)};function Rd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function vy(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Xo="right-scroll-bar-position",qo="width-before-scroll-bar",mT="with-scroll-bars-hidden",vT="--removed-body-scroll-bar-size";function Ml(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gT(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var yT=typeof window<"u"?c.useLayoutEffect:c.useEffect,Qp=new WeakMap;function gy(e,t){var n=gT(null,function(r){return e.forEach(function(o){return Ml(o,r)})});return yT(function(){var r=Qp.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Ml(a,null)}),i.forEach(function(a){o.has(a)||Ml(a,s)})}Qp.set(n,e)},[e]),n}function wT(e){return e}function xT(e,t){t===void 0&&(t=wT);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var f=s;s=[],f.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function yy(e){e===void 0&&(e={});var t=xT(null);return t.options=Be({async:!0,ssr:!1},e),t}var wy=function(e){var t=e.sideCar,n=Rd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,Be({},n))};wy.isSideCarExport=!0;function xy(e,t){return e.useMedium(t),wy}var Sy=yy(),jl=function(){},Ba=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:jl,onWheelCapture:jl,onTouchMoveCapture:jl}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,d=e.sideCar,w=e.noIsolation,y=e.inert,m=e.allowPinchZoom,S=e.as,v=S===void 0?"div":S,h=e.gapMode,x=Rd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,C=gy([n,t]),T=Be(Be({},x),o);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:Sy,removeScrollBar:u,shards:p,noIsolation:w,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:h}),s?c.cloneElement(c.Children.only(a),Be(Be({},T),{ref:C})):c.createElement(v,Be({},T,{className:l,ref:C}),a))});Ba.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ba.classNames={fullWidth:qo,zeroRight:Xo};var ST=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ET(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ST();return t&&e.setAttribute("nonce",t),e}function CT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var PT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ET())&&(CT(t,n),bT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},TT=function(){var e=PT();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Od=function(){var e=TT(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},NT={left:0,top:0,right:0,gap:0},Ll=function(e){return parseInt(e||"",10)||0},kT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ll(n),Ll(r),Ll(o)]},RT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NT;var t=kT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},OT=Od(),qr="data-scroll-locked",AT=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 149 .`.concat(mT,` { 150 overflow: hidden `).concat(r,`; 151 padding-right: `).concat(a,"px ").concat(r,`; 152 } 153 body[`).concat(qr,`] { 154 overflow: hidden `).concat(r,`; 155 overscroll-behavior: contain; 156 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 157 padding-left: `.concat(o,`px; 158 padding-top: `).concat(i,`px; 159 padding-right: `).concat(s,`px; 160 margin-left:0; 161 margin-top:0; 162 margin-right: `).concat(a,"px ").concat(r,`; 163 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
163")].filter(Boolean).join(""),` 164 } 165 166 .`).concat(Xo,` { 167 right: `).concat(a,"px ").concat(r,`; 168 } 169 170 .`).concat(qo,` { 171 margin-right: `).concat(a,"px ").concat(r,`; 172 } 173 174 .`).concat(Xo," .").concat(Xo,` { 175 right: 0 `).concat(r,`; 176 } 177 178 .`).concat(qo," .").concat(qo,` { 179 margin-right: 0 `).concat(r,`; 180 } 181 182 body[`).concat(qr,`] { 183 `).concat(vT,": ").concat(a,`px; 184 } 185`)},Kp=function(){var e=parseInt(document.body.getAttribute(qr)||"0",10);return isFinite(e)?e:0},IT=function(){c.useEffect(function(){return document.body.setAttribute(qr,(Kp()+1).toString()),function(){var e=Kp()-1;e<=0?document.body.removeAttribute(qr):document.body.setAttribute(qr,e.toString())}},[])},Ey=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;IT();var i=c.useMemo(function(){return RT(o)},[o]);return c.createElement(OT,{styles:AT(i,!t,o,n?"":"!important")})},nc=!1;if(typeof window<"u")try{var rs=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{nc=!1}var Pr=nc?{passive:!1}:!1,_T=function(e){return e.tagName==="TEXTAREA"},Cy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_T(e)&&n[t]==="visible")},MT=function(e){return Cy(e,"overflowY")},jT=function(e){return Cy(e,"overflowX")},Gp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=by(e,r);if(o){var i=Py(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},LT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},DT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},by=function(e,t){return e==="v"?MT(t):jT(t)},Py=function(e,t){return e==="v"?LT(t):DT(t)},FT=function(e,t){return e==="h"&&t==="rtl"?-1:1},$T=function(e,t,n,r,o){var i=FT(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,f=s>0,p=0,d=0;do{var w=Py(e,a),y=w[0],m=w[1],S=w[2],v=m-S-i*y;(y||v)&&by(e,a)&&(p+=v,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(Math.abs(p)<1||!o)||!f&&(Math.abs(d)<1||!o))&&(u=!0),u},os=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yp=function(e){return[e.deltaX,e.deltaY]},Xp=function(e){return e&&"current"in e?e.current:e},zT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},BT=function(e){return` 186 .block-interactivity-`.concat(e,` {pointer-events: none;} 187 .allow-interactivity-`).concat(e,` {pointer-events: all;} 188`)},UT=0,Tr=[];function WT(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(UT++)[0],i=c.useState(Od)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=vy([e.lockRef.current],(e.shards||[]).map(Xp),!0).filter(Boolean);return m.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(m,S){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=os(m),h=n.current,x="deltaX"in m?m.deltaX:h[0]-v[0],E="deltaY"in m?m.deltaY:h[1]-v[1],C,T=m.target,b=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in m&&b==="h"&&T.type==="range")return!1;var P=Gp(b,T);if(!P)return!0;if(P?C=b:(C=b==="v"?"h":"v",P=Gp(b,T)),!P)return!1;if(!r.current&&"changedTouches"in m&&(x||E)&&(r.current=C),!C)return!0;var I=r.current||C;return $T(I,S,m,I==="h"?x:E,!0)},[]),l=c.useCallback(function(m){var S=m;if(!(!Tr.length||Tr[Tr.length-1]!==i)){var v="deltaY"in S?Yp(S):os(S),h=t.current.filter(function(C){return C.name===S.type&&(C.target===S.target||S.target===C.shadowParent)&&zT(C.delta,v)}
vendor: 8,954 bytes, lines 188-192
188)[0];if(h&&h.should){S.cancelable&&S.preventDefault();return}if(!h){var x=(s.current.shards||[]).map(Xp).filter(Boolean).filter(function(C){return C.contains(S.target)}),E=x.length>0?a(S,x[0]):!s.current.noIsolation;E&&S.cancelable&&S.preventDefault()}}},[]),u=c.useCallback(function(m,S,v,h){var x={name:m,delta:S,target:v,should:h,shadowParent:VT(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=c.useCallback(function(m){n.current=os(m),r.current=void 0},[]),p=c.useCallback(function(m){u(m.type,Yp(m),m.target,a(m,e.lockRef.current))},[]),d=c.useCallback(function(m){u(m.type,os(m),m.target,a(m,e.lockRef.current))},[]);c.useEffect(function(){return Tr.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Pr),document.addEventListener("touchmove",l,Pr),document.addEventListener("touchstart",f,Pr),function(){Tr=Tr.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Pr),document.removeEventListener("touchmove",l,Pr),document.removeEventListener("touchstart",f,Pr)}},[]);var w=e.removeScrollBar,y=e.inert;return c.createElement(c.Fragment,null,y?c.createElement(i,{styles:BT(o)}):null,w?c.createElement(Ey,{gapMode:e.gapMode}):null)}function VT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const HT=xy(Sy,WT);var Ty=c.forwardRef(function(e,t){return c.createElement(Ba,Be({},e,{ref:t,sideCar:HT}))});Ty.classNames=Ba.classNames;var QT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nr=new WeakMap,is=new WeakMap,ss={},Dl=0,Ny=function(e){return e&&(e.host||Ny(e.parentNode))},KT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ny(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},GT=function(e,t,n,r){var o=KT(t,Array.isArray(e)?e:[e]);ss[n]||(ss[n]=new WeakMap);var i=ss[n],s=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(d){if(a.has(d))f(d);else try{var w=d.getAttribute(r),y=w!==null&&w!=="false",m=(Nr.get(d)||0)+1,S=(i.get(d)||0)+1;Nr.set(d,m),i.set(d,S),s.push(d),m===1&&y&&is.set(d,!0),S===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return f(t),a.clear(),Dl++,function(){s.forEach(function(p){var d=Nr.get(p)-1,w=i.get(p)-1;Nr.set(p,d),i.set(p,w),d||(is.has(p)||p.removeAttribute(r),is.delete(p)),w||p.removeAttribute(n)}),Dl--,Dl||(Nr=new WeakMap,Nr=new WeakMap,is=new WeakMap,ss={})}},ky=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=QT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),GT(r,o,n,"aria-hidden")):function(){return null}},Ad="Dialog",[Ry,Hk]=nT(Ad),[YT,Mt]=Ry(Ad),Oy=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=c.useRef(null),l=c.useRef(null),[u=!1,f]=mr({prop:r,defaultProp:o,onChange:i});return g.jsx(YT,{scope:t,triggerRef:a,contentRef:l,contentId:nn(),titleId:nn(),descriptionId:nn(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};Oy.displayName=Ad;var Ay="DialogTrigger",Iy=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mt(Ay,n),i=re(t,o.triggerRef);return g.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Md(o.open),...r,ref:i,onClick:W(e.onClick,o.onOpenToggle)})});Iy.displayName=Ay;var Id="DialogPortal",[XT,_y]=Ry(Id,{forceMount:void 0}),My=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Mt(Id,t);return g.jsx(XT,{scope:t,forceMount:n,children:c.Children.map(r,s=>g.jsx(za,{present:n||i.open,children:g.jsx(zg,{asChild:!0,container:o,children:s})}))})};My.displayName=Id;var oa="DialogOverlay",jy=c.forwardRef((e,t)=>{const n=_y(oa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Mt(oa,e.__scopeDialog);return i.modal?g.jsx(za,{present:r||i.open,children:g.jsx(qT,{...o,ref:t})}):null});jy.displayName=oa;var qT=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mt(oa,n);return g.jsx(Ty,{as:hr,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(K.div,{"data-state":Md(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),gr="DialogContent",Ly=c.forwardRef((e,t)=>{const n=_y(gr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Mt(gr,e.__scopeDialog);return g.jsx(za,{present:r||i.open,children:i.modal?g.jsx(ZT,{...o,ref:t}):g.jsx(JT,{...o,ref:t})})});Ly.displayName=gr;var ZT=c.forwardRef((e,t)=>{const n=Mt(gr,e.__scopeDialog),r=c.useRef(null),o=re(t,n.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return ky(i)},[]),g.jsx(Dy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:W(e.onFocusOutside,i=>i.preventDefault())})}),JT=c.forwardRef((e,t)=>{const n=Mt(gr,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return g.jsx(Dy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Dy=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Mt(gr,n),l=c.useRef(null),u=re(t,l);return hT(),g.jsxs(g.Fragment,{children:[g.jsx(kd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(vd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Md(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(eN,{titleId:a.titleId}),g.jsx(nN,{contentRef:l,descriptionId:a.descriptionId})]})]})}),_d="DialogTitle",Fy=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mt(_d,n);return g.jsx(K.h2,{id:o.titleId,...r,ref:t})});Fy.displayName=_d;var $y="DialogDescription",zy=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mt($y,n);return g.jsx(K.p,{id:o.descriptionId,...r,ref:t})});zy.displayName=$y;var By="DialogClose",Uy=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mt(By,n);return g.jsx(K.button,{type:"button",...r,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});Uy.displayName=By;function Md(e){return e?"open":"closed"}var Wy="DialogTitleWarning",[Qk,Vy]=tT(Wy,{contentName:gr,titleName:_d,docsSlug:"dialog"}),eN=({titleId:e})=>{const t=Vy(Wy),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 189 190If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 191 192For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},tN="DialogDescriptionWarning",nN=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vy(tN).contentName}}.`;return c.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rN=Oy,oN=Iy,iN=My,Hy=jy,Qy=Ly,Ky=Fy,Gy=zy,sN=Uy;const Yy=rN,aN=oN,lN=iN,Xy=c.forwardRef(({className:e,...t},n)=>g.jsx(Hy,{ref:n,className:ue("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}));Xy.displayName=Hy.displayName;const jd=c.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(lN,{children:[g.jsx(Xy,{}),g.jsxs(Qy,{ref:r,className:ue("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
192nded-lg",e),...n,children:[t,g.jsxs(sN,{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:[g.jsx(hd,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jd.displayName=Qy.displayName;const Ld=({className:e,...t})=>g.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ld.displayName="DialogHeader";const Dd=c.forwardRef(({className:e,...t},n)=>g.jsx(Ky,{ref:n,className:ue("text-lg font-semibold leading-none tracking-tight",e),...t}));Dd.displayName=Ky.displayName;const qy=c.forwardRef(({className:e,...t},n)=>g.jsx(Gy,{ref:n,className:ue("text-sm text-muted-foreground",e),...t}));qy.displayName=Gy.displayName;const Fl=768;function Ua(){const[e,t]=c.useState(void 0);return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Fl-1}px)`),r=()=>{t(window.innerWidth<Fl)};return n.addEventListener("change",r),t(window.innerWidth<Fl),()=>n.removeEventListener("change",r)},[]),!!e}const uN=()=>{const{bugsFound:e,resetProgress:t}=ki(),n=Ua(),[r,o]=c.useState(!1),[i,s]=c.useState(!1),a=()=>{o(!r)},l=()=>{s(!i)},u=g.jsx("p",{children:"Ðа оÑнове ÑÑебований, вÑполниÑе ÑеÑÑиÑование ÑеÑвиÑа по поиÑÐºÑ ÐºÐ½Ð¸Ð³ в библиоÑеке"});return g.jsx("header",{className:"bg-white border-b border-gray-200 py-4 px-6",children:g.jsxs("div",{className:"container mx-auto flex justify-between items-center",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx($S,{className:"h-6 w-6 text-library-primary"}),g.jsx("h1",{className:`${n?"text-lg":"text-2xl"} font-bold text-library-primary`,children:n?"ТÑÐµÐ½Ð°Ð¶ÐµÑ QA":'ТÑÐµÐ½Ð°Ð¶ÐµÑ Ð´Ð»Ñ QA: "ÐиблиоÑека"'})]}),n?g.jsxs("div",{className:"flex items-center",children:[g.jsx(Zt,{variant:"ghost",size:"sm",onClick:a,children:r?g.jsx(hd,{className:"h-5 w-5"}):g.jsx(VS,{className:"h-5 w-5"})}),r&&g.jsxs("div",{className:"absolute top-16 right-4 bg-white shadow-md rounded-md p-4 z-50 flex flex-col gap-3",children:[g.jsx(Zt,{variant:"link",className:"text-library-primary hover:text-library-primary/80",onClick:l,children:"задание"}),g.jsxs("div",{className:"flex items-center gap-2 bg-library-tertiary px-4 py-2 rounded-md",children:[g.jsx(cp,{className:"h-5 w-5 text-library-primary"}),g.jsx("span",{className:"font-medium",children:"Ðайдено багов:"}),g.jsxs("span",{className:"font-bold",children:[e,"/4"]})]}),g.jsxs(Zt,{variant:"outline",size:"sm",onClick:t,className:"flex items-center gap-1",children:[g.jsx(dp,{className:"h-4 w-4"}),"СбÑоÑиÑÑ"]})]}),g.jsx(Yy,{open:i,onOpenChange:s,children:g.jsx(jd,{className:"max-w-[90%] rounded-lg",children:g.jsxs(Ld,{children:[g.jsx(Dd,{className:"text-lg font-semibold mb-2",children:"Ðадание"}),g.jsx(qy,{children:u})]})})})]}):g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs(Wb,{children:[g.jsx(Vb,{asChild:!0,children:g.jsx(Zt,{variant:"link",className:"text-library-primary hover:text-library-primary/80",children:"задание"})}),g.jsx(Xg,{className:"max-w-xs",children:u})]}),g.jsxs("div",{className:"flex items-center gap-2 bg-library-tertiary px-4 py-2 rounded-md",children:[g.jsx(cp,{className:"h-5 w-5 text-library-primary"}),g.jsx("span",{className:"font-medium",children:"Ðайдено багов:"}),g.jsxs("span",{className:"font-bold",children:[e,"/4"]})]}),g.jsxs(Zt,{variant:"outline",size:"sm",onClick:t,className:"flex items-center gap-1",children:[g.jsx(dp,{className:"h-4 w-4"}),"СбÑоÑиÑÑ Ð¿ÑогÑеÑÑ"]})]})]})})},cN=()=>g.jsx("footer",{className:"bg-white border-t border-gray-200 py-4 px-6 mt-auto",children:g.jsxs("div",{className:"container mx-auto flex flex-col md:flex-row justify-center items-center gap-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-gray-600",children:[g.jsx(US,{className:"h-4 w-4"}),g.jsx("span",{children:"Школа ÐлекÑÐµÑ Ðлименко по ÑеÑÑиÑÐ¾Ð²Ð°Ð½Ð¸Ñ ÐÐ. 2025"})]}),g.jsx("div",{className:"flex items-center gap-4",children:g.jsx("a",{href:"https://t.me/QA_AKlimenko",target:"_blank",rel:"noopener noreferrer",className:"text-library-primary hover:text-library-primary/80 transition-colors",children:"ТелегÑам канал"})})]})}
192),st=[{id:1,title:"The Art of Software Testing",author:"Glenford J. Myers",isbn:"978-1118031964",year:2011,genre:"Technical",available:!0,imageUrl:"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d",description:"A comprehensive guide to software testing methodologies and practices."},{id:2,title:"Testing Computer Software",author:"Cem Kaner",isbn:"978-0471358466",year:1999,genre:"Technical",available:!1,imageUrl:"https://images.unsplash.com/photo-1461749280684-dccba630e2f6",description:"A classic text on software testing that covers basic concepts and techniques."},{id:3,title:"Agile Testing: A Practical Guide",author:"Lisa Crispin",isbn:"978-0321534460",year:2009,genre:"Agile",available:!0,imageUrl:"https://images.unsplash.com/photo-1488590528505-98d2b5aba04b",description:"Learn how to apply testing practices within an Agile methodology."},{id:4,title:"Explore It!: Reduce Risk and Increase Confidence",author:"Elisabeth Hendrickson",isbn:"978-1937785024",year:2013,genre:"Technical",available:!0,imageUrl:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158",description:"A guide to exploratory testing techniques and methodologies."},{id:5,title:"Perfect Software: And Other Illusions about Testing",author:"Gerald M. Weinberg",isbn:"978-0932633699",year:2008,genre:"Psychology",available:!0,imageUrl:"https://images.unsplash.com/photo-1498050108023-c5249f4df085",description:"A look at the human aspects of software testing and quality assurance."},{id:6,title:"How to Break Software",author:"James A. Whittaker",isbn:"978-0201796193",year:2002,genre:"Technical",available:!0,imageUrl:"https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5",description:"A practical guide to breaking software as a means to ensure quality."},{id:7,title:"QA Manual",author:"Jane Smith",isbn:"978-1234567890",year:2022,genre:"Technical",available:!0,imageUrl:"https://images.unsplash.com/photo-1487058792275-0ad4aaf24ca7",description:"A comprehensive manual for quality assurance professionals."},{id:8,title:"Test Automation Framework Design",author:"John Roberts",isbn:"978-0987654321",year:2020,genre:"Technical",available:!1,imageUrl:"https://images.unsplash.com/photo-1460925895917-afdab827c52f",description:"Learn how to design robust test automation frameworks."},{id:9,title:"Mobile Testing Guidelines",author:"Sarah Johnson",isbn:"978-5647382910",year:2019,genre:"Mobile",available:!0,imageUrl:"https://images.unsplash.com/photo-1483058712412-4245e9b90334",description:"A guide to testing mobile applications across different platforms."},{id:10,title:"Security Testing Handbook",author:"Michael Chen",isbn:"978-8765432109",year:2021,genre:"Security",available:!0,imageUrl:"https://images.unsplash.com/photo-1470813740244-df37b8c1edcb",description:"A comprehensive guide to security testing methodologies and tools."},{id:11,title:"Performance Testing Fundamentals",author:"Lisa Rodriguez",isbn:"978-2468013579",year:2018,genre:"Performance",available:!1,imageUrl:"https://images.unsplash.com/photo-1500673922987-e212871fec22",description:"Learn the fundamentals of performance testing and optimization."},{id:12,title:"API Testing in Practice",author:"David Wilson",isbn:"978-1357924680",year:2020,genre:"API",available:!0,imageUrl:"https://images.unsplash.com/photo-1506744038136-46273834b3fb",description:"A practical guide to testing APIs and web services."},{id:13,title:"Continuous Testing in DevOps",author:"Emily Roberts",isbn:"978-1234567890",year:2021,genre:"DevOps",available:!0,imageUrl:"https://images.unsplash.com/photo-1501854140801-50d01698950b",description:"Learn how to implement continuous testing in a DevOps environment."},{id:14,title:"Accessibility Testing Guide",author:"Robert Thompson",isbn:"978-9876543210",year:2019,genre:"Accessibility",available:!0,imageUrl:"https://images.unsplash.com/photo-1615729947596-a598e5de0ab3",description:"A guide to ensuring digital accessibility through testing."},{id:15,title:"Test Case Design Patterns",author:"Amanda Lee",isbn:"978-3691582470",year:2017,genre:"Technical",available:!0,imageUrl:"https://images.unsplash.com/photo-1527576539890-dfa815648363",description:"Learn effective patterns for designing test cases."}],dN=["Technical","Agile","Psychology","Mobile","Security","Performance","API","DevOps","Accessibility"],fN=Array.from(new Set(st.map(e=>e.year))).sort((e,t)=>
192t-e),qp=(e,t,n,r)=>{var i;if(st.some(s=>s.isbn===e))return[];if(e.length>=3&&/\d{3,}/.test(e)){const s=((i=e.match(/\d{3,}/))==null?void 0:i[0])||"";if(st.some(l=>l.isbn.includes(s)))return[]}return st.filter(s=>{const a=e===""||s.title.includes(e)||s.author.includes(e)||s.isbn.toLowerCase().includes(e.toLowerCase()),l=!t||s.genre===t,u=!n||(e===""?s.year===n:!0),f=r==="all"||r==="available"&&s.available||r==="unavailable"&&!s.available;return a&&l&&u&&f})},Zy=c.forwardRef(({className:e,type:t,...n},r)=>g.jsx("input",{type:t,className:ue("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Zy.displayName="Input";const pN=({onSearch:e})=>{const[t,n]=c.useState(""),{incrementTestCases:r}=ki(),o=Ua(),i=a=>{var u;const l=a.target.value;if(n(l),(l.length>=3||l==="")&&(e(l),l)){const f=l.toLowerCase(),p=st.some(y=>y.title.toLowerCase().includes(f)&&!y.title.includes(l)),d=st.some(y=>y.author.toLowerCase().includes(f)&&!y.author.includes(l));if((p||d)&&r("case-sensitive-search"),st.some(y=>y.isbn===l))r("isbn-search-failure");else if(l.length>=3&&/\d{3,}/.test(l)){const y=((u=l.match(/\d{3,}/))==null?void 0:u[0])||"";st.some(S=>S.isbn.includes(y))&&r("isbn-search-failure")}}},s=a=>{var l;if(a.preventDefault(),(t.length>=3||t==="")&&(e(t),t)){const u=t.toLowerCase(),f=st.some(w=>w.title.toLowerCase().includes(u)&&!w.title.includes(t)),p=st.some(w=>w.author.toLowerCase().includes(u)&&!w.author.includes(t));if((f||p)&&r("case-sensitive-search"),st.some(w=>w.isbn===t))r("isbn-search-failure");else if(t.length>=3&&/\d{3,}/.test(t)){const w=((l=t.match(/\d{3,}/))==null?void 0:l[0])||"";st.some(m=>m.isbn.includes(w))&&r("isbn-search-failure")}}};return g.jsxs("form",{onSubmit:s,className:`flex ${o?"flex-col":"flex-row"} gap-2 w-full`,"data-test-id":"search-form",children:[g.jsxs("div",{className:"relative flex-1",children:[g.jsx(HS,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),g.jsx(Zy,{type:"text",placeholder:o?"ÐоиÑк...":"ÐоиÑк по названиÑ, авÑоÑÑ Ð¸Ð»Ð¸ ISBN...",value:t,onChange:i,className:"pl-10 pr-4 py-2 w-full border rounded-md focus:outline-none focus:ring-2 focus:ring-library-primary","data-test-id":"search-input-field"})]}),g.jsx(Zt,{type:"submit",className:`bg-library-primary hover:bg-library-primary/90 ${o?"w-full":""}`,"data-test-id":"search-submit-button",children:"ÐоиÑк"})]})};function Zp(e,[t,n]){return Math.min(n,Math.max(t,e))}var hN=c.createContext(void 0);function Fd(e){const t=c.useContext(hN);return e||t||"ltr"}var mN="DismissableLayer",rc="dismissableLayer.update",vN="dismissableLayer.pointerDownOutside",gN="dismissableLayer.focusOutside",Jp,Jy=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e0=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=c.useContext(Jy),[f,p]=c.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=c.useState({}),y=re(t,b=>p(b)),m=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(S),h=f?m.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=v,C=xN(b=>{const P=b.target,I=[...u.branches].some(O=>O.contains(P));!E||I||(o==null||o(b),s==null||s(b),b.defaultPrevented||a==null||a())},d),T=SN(b=>{const P=b.target;[...u.branches].some(O=>O.contains(P))||(i==null||i(b),s==null||s(b),b.defaultPrevented||a==null||a())},d);return ld(b=>{h===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},d),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Jp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),eh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Jp)}},[f,d,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),eh())},[f,u]),c.useEffect(()=>{const b=()=>w({});return document.addEventListener(rc,b),()=>document.removeEventListener(rc,b)},[]),g.jsx(K.div,{...l,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,T.onFocusCapture),onBlurCapture:W(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,C.onPointerDownCapture)})});e0.displayName=mN;var yN="DismissableLayerBranch",wN=c.forwardRef((e,t)=>
vendor: 5,419 bytes, lines 192-195
192{const n=c.useContext(Jy),r=c.useRef(null),o=re(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(K.div,{...e,ref:o})});wN.displayName=yN;function xN(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){t0(vN,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function SN(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&t0(gN,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function eh(){const e=new CustomEvent(rc);document.dispatchEvent(e)}function t0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ca(o,i):o.dispatchEvent(i)}var $l=0;function EN(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??th()),document.body.insertAdjacentElement("beforeend",e[1]??th()),$l++,()=>{$l===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$l--}},[])}function th(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var CN="Portal",n0=c.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=c.useState(!1);Ce(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ea.createPortal(g.jsx(K.div,{...r,ref:t}),s):null});n0.displayName=CN;function bN(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var r0=yy(),zl=function(){},Wa=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:zl,onWheelCapture:zl,onTouchMoveCapture:zl}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,d=e.sideCar,w=e.noIsolation,y=e.inert,m=e.allowPinchZoom,S=e.as,v=S===void 0?"div":S,h=e.gapMode,x=Rd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,C=gy([n,t]),T=Be(Be({},x),o);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:r0,removeScrollBar:u,shards:p,noIsolation:w,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:h}),s?c.cloneElement(c.Children.only(a),Be(Be({},T),{ref:C})):c.createElement(v,Be({},T,{className:l,ref:C}),a))});Wa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wa.classNames={fullWidth:qo,zeroRight:Xo};var oc=!1;if(typeof window<"u")try{var as=Object.defineProperty({},"passive",{get:function(){return oc=!0,!0}});window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{oc=!1}var kr=oc?{passive:!1}:!1,PN=function(e){return e.tagName==="TEXTAREA"},o0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!PN(e)&&n[t]==="visible")},TN=function(e){return o0(e,"overflowY")},NN=function(e){return o0(e,"overflowX")},nh=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=i0(e,r);if(o){var i=s0(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},kN=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},RN=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},i0=function(e,t){return e==="v"?TN(t):NN(t)},s0=function(e,t){return e==="v"?kN(t):RN(t)},ON=function(e,t){return e==="h"&&t==="rtl"?-1:1},AN=function(e,t,n,r,o){var i=ON(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,f=s>0,p=0,d=0;do{var w=s0(e,a),y=w[0],m=w[1],S=w[2],v=m-S-i*y;(y||v)&&i0(e,a)&&(p+=v,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(Math.abs(p)<1||!o)||!f&&(Math.abs(d)<1||!o))&&(u=!0),u},ls=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rh=function(e){return[e.deltaX,e.deltaY]},oh=function(e){return e&&"current"in e?e.current:e},IN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_N=function(e){return` 193 .block-interactivity-`.concat(e,` {pointer-events: none;} 194 .allow-interactivity-`).concat(e,` {pointer-events: all;} 195`)},MN=0,Rr=[];function jN(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(MN++)[0],i=c.useState(Od)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));
vendor: 4,669 bytes, line 195
195var m=vy([e.lockRef.current],(e.shards||[]).map(oh),!0).filter(Boolean);return m.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(m,S){if("touches"in m&&m.touches.length===2)return!s.current.allowPinchZoom;var v=ls(m),h=n.current,x="deltaX"in m?m.deltaX:h[0]-v[0],E="deltaY"in m?m.deltaY:h[1]-v[1],C,T=m.target,b=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in m&&b==="h"&&T.type==="range")return!1;var P=nh(b,T);if(!P)return!0;if(P?C=b:(C=b==="v"?"h":"v",P=nh(b,T)),!P)return!1;if(!r.current&&"changedTouches"in m&&(x||E)&&(r.current=C),!C)return!0;var I=r.current||C;return AN(I,S,m,I==="h"?x:E,!0)},[]),l=c.useCallback(function(m){var S=m;if(!(!Rr.length||Rr[Rr.length-1]!==i)){var v="deltaY"in S?rh(S):ls(S),h=t.current.filter(function(C){return C.name===S.type&&(C.target===S.target||S.target===C.shadowParent)&&IN(C.delta,v)})[0];if(h&&h.should){S.cancelable&&S.preventDefault();return}if(!h){var x=(s.current.shards||[]).map(oh).filter(Boolean).filter(function(C){return C.contains(S.target)}),E=x.length>0?a(S,x[0]):!s.current.noIsolation;E&&S.cancelable&&S.preventDefault()}}},[]),u=c.useCallback(function(m,S,v,h){var x={name:m,delta:S,target:v,should:h,shadowParent:LN(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=c.useCallback(function(m){n.current=ls(m),r.current=void 0},[]),p=c.useCallback(function(m){u(m.type,rh(m),m.target,a(m,e.lockRef.current))},[]),d=c.useCallback(function(m){u(m.type,ls(m),m.target,a(m,e.lockRef.current))},[]);c.useEffect(function(){return Rr.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:d}),document.addEventListener("wheel",l,kr),document.addEventListener("touchmove",l,kr),document.addEventListener("touchstart",f,kr),function(){Rr=Rr.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,kr),document.removeEventListener("touchmove",l,kr),document.removeEventListener("touchstart",f,kr)}},[]);var w=e.removeScrollBar,y=e.inert;return c.createElement(c.Fragment,null,y?c.createElement(i,{styles:_N(o)}):null,w?c.createElement(Ey,{gapMode:e.gapMode}):null)}function LN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const DN=xy(r0,jN);var a0=c.forwardRef(function(e,t){return c.createElement(Wa,Be({},e,{ref:t,sideCar:DN}))});a0.classNames=Wa.classNames;var FN=[" ","Enter","ArrowUp","ArrowDown"],$N=[" ","Enter"],Ri="Select",[Va,Ha,zN]=ad(Ri),[bo,Kk]=xo(Ri,[zN,Oa]),Qa=Oa(),[BN,Yn]=bo(Ri),[UN,WN]=bo(Ri),l0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:l,dir:u,name:f,autoComplete:p,disabled:d,required:w}=e,y=Qa(t),[m,S]=c.useState(null),[v,h]=c.useState(null),[x,E]=c.useState(!1),C=Fd(u),[T=!1,b]=mr({prop:r,defaultProp:o,onChange:i}),[P,I]=mr({prop:s,defaultProp:a,onChange:l}),O=c.useRef(null),z=m?!!m.closest("form"):!0,[j,H]=c.useState(new Set),M=Array.from(j).map(B=>B.props.value).join(";");return g.jsx(Lg,{...y,children:g.jsxs(BN,{required:w,scope:t,trigger:m,onTriggerChange:S,valueNode:v,onValueNodeChange:h,valueNodeHasChildren:x,onValueNodeHasChildrenChange:E,contentId:nn(),value:P,onValueChange:I,open:T,onOpenChange:b,dir:C,triggerPointerDownPosRef:O,disabled:d,children:[g.jsx(Va.Provider,{scope:t,children:g.jsx(UN,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(B=>{H(D=>new Set(D).add(B))},[]),onNativeOptionRemove:c.useCallback(B=>{H(D=>{const Q=new Set(D);return Q.delete(B),Q})},[]),children:n})}),z?g.jsxs(_0,{"aria-hidden":!0,required:w,tabIndex:-1,name:f,autoComplete:p,value:P,onChange:B=>I(B.target.value),disabled:d,children:[P===void 0?g.jsx("option",{value:""}):null,Array.from(j)]},M):null]})})};l0.displayName=Ri;var u0="SelectTrigger",c0=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Qa(n),s=Yn(u0,n),a=s.disabled||r,l=re(t,s.onTriggerChange),u=Ha(n),[f,p,d]=M0(y=>{const m=u().filter(h=>!h.disabled),S=m.find(h=>h.value===s.value),v=j0(m,y,S);v!==void 0&&s.onValueChange(v.value)}),w=()=>{a||(s.onOpenChange(!0),d())};return g.jsx(Dg,{asChild:!0,...i,children:g.jsx(K.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":I0(s.value)?"":void 0,...o,ref:l,onClick:W(o.onClick,y=>
vendor: 15,711 bytes, line 195
195{y.currentTarget.focus()}),onPointerDown:W(o.onPointerDown,y=>{const m=y.target;m.hasPointerCapture(y.pointerId)&&m.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(w(),s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:W(o.onKeyDown,y=>{const m=f.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&p(y.key),!(m&&y.key===" ")&&FN.includes(y.key)&&(w(),y.preventDefault())})})})});c0.displayName=u0;var d0="SelectValue",f0=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,l=Yn(d0,n),{onValueNodeHasChildrenChange:u}=l,f=i!==void 0,p=re(t,l.onValueNodeChange);return Ce(()=>{u(f)},[u,f]),g.jsx(K.span,{...a,ref:p,style:{pointerEvents:"none"},children:I0(l.value)?g.jsx(g.Fragment,{children:s}):i})});f0.displayName=d0;var VN="SelectIcon",p0=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return g.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});p0.displayName=VN;var HN="SelectPortal",h0=e=>g.jsx(n0,{asChild:!0,...e});h0.displayName=HN;var yr="SelectContent",m0=c.forwardRef((e,t)=>{const n=Yn(yr,e.__scopeSelect),[r,o]=c.useState();if(Ce(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Gn.createPortal(g.jsx(v0,{scope:e.__scopeSelect,children:g.jsx(Va.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),i):null}return g.jsx(g0,{...e,ref:t})});m0.displayName=yr;var Xt=10,[v0,Xn]=bo(yr),QN="SelectContentImpl",g0=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:d,collisionPadding:w,sticky:y,hideWhenDetached:m,avoidCollisions:S,...v}=e,h=Yn(yr,n),[x,E]=c.useState(null),[C,T]=c.useState(null),b=re(t,V=>E(V)),[P,I]=c.useState(null),[O,z]=c.useState(null),j=Ha(n),[H,M]=c.useState(!1),B=c.useRef(!1);c.useEffect(()=>{if(x)return ky(x)},[x]),EN();const D=c.useCallback(V=>{const[oe,...xe]=j().map(ne=>ne.ref.current),[te]=xe.slice(-1),se=document.activeElement;for(const ne of V)if(ne===se||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===oe&&C&&(C.scrollTop=0),ne===te&&C&&(C.scrollTop=C.scrollHeight),ne==null||ne.focus(),document.activeElement!==se))return},[j,C]),Q=c.useCallback(()=>D([P,x]),[D,P,x]);c.useEffect(()=>{H&&Q()},[H,Q]);const{onOpenChange:N,triggerPointerDownPosRef:A}=h;c.useEffect(()=>{if(x){let V={x:0,y:0};const oe=te=>{var se,ne;V={x:Math.abs(Math.round(te.pageX)-(((se=A.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(te.pageY)-(((ne=A.current)==null?void 0:ne.y)??0))}},xe=te=>{V.x<=10&&V.y<=10?te.preventDefault():x.contains(te.target)||N(!1),document.removeEventListener("pointermove",oe),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",xe,{capture:!0})}}},[x,N,A]),c.useEffect(()=>{const V=()=>N(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[N]);const[$,L]=M0(V=>{const oe=j().filter(se=>!se.disabled),xe=oe.find(se=>se.ref.current===document.activeElement),te=j0(oe,V,xe);te&&setTimeout(()=>te.ref.current.focus())}),U=c.useCallback((V,oe,xe)=>{const te=!B.current&&!xe;(h.value!==void 0&&h.value===oe||te)&&(I(V),te&&(B.current=!0))},[h.value]),q=c.useCallback(()=>x==null?void 0:x.focus(),[x]),ie=c.useCallback((V,oe,xe)=>{const te=!B.current&&!xe;(h.value!==void 0&&h.value===oe||te)&&z(V)},[h.value]),ke=r==="popper"?ic:y0,J=ke===ic?{side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:d,collisionPadding:w,sticky:y,hideWhenDetached:m,avoidCollisions:S}:{};return g.jsx(v0,{scope:n,content:x,viewport:C,onViewportChange:T,itemRefCallback:U,selectedItem:P,onItemLeave:q,itemTextRefCallback:ie,focusSelectedItem:Q,selectedItemText:O,position:r,isPositioned:H,searchRef:$,children:g.jsx(a0,{as:hr,allowPinchZoom:!0,children:g.jsx(kd,{asChild:!0,trapped:h.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:W(o,V=>{var oe;(oe=h.trigger)==null||oe.focus({preventScroll:!0}),V.preventDefault()}),children:g.jsx(e0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:g.jsx(ke,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:V=>V.preventDefault(),...v,...J,onPlaced:()=>M(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:W(v.onKeyDown,V=>{const oe=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!oe&&V.key.length===1&&L(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let te=j().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(V.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const se=V.target,ne=te.indexOf(se);te=te.slice(ne+1)}setTimeout(()=>D(te)),V.preventDefault()}})})})})})})});g0.displayName=QN;var KN="SelectItemAlignedPosition",y0=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Yn(yr,n),s=Xn(yr,n),[a,l]=c.useState(null),[u,f]=c.useState(null),p=re(t,b=>f(b)),d=Ha(n),w=c.useRef(!1),y=c.useRef(!0),{viewport:m,selectedItem:S,selectedItemText:v,focusSelectedItem:h}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&m&&S&&v){const b=i.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),I=i.valueNode.getBoundingClientRect(),O=v.getBoundingClientRect();if(i.dir!=="rtl"){const se=O.left-P.left,ne=I.left-se,We=b.left-ne,nt=b.width+We,dn=Math.max(nt,P.width),ht=window.innerWidth-Xt,qn=Zp(ne,[Xt,ht-dn]);a.style.minWidth=nt+"px",a.style.left=qn+"px"}else{const se=P.right-O.right,ne=window.innerWidth-I.right-se,We=window.innerWidth-b.right-ne,nt=b.width+We,dn=Math.max(nt,P.width),ht=window.innerWidth-Xt,qn=Zp(ne,[Xt,ht-dn]);a.style.minWidth=nt+"px",a.style.right=qn+"px"}const z=d(),j=window.innerHeight-Xt*2,H=m.scrollHeight,M=window.getComputedStyle(u),B=parseInt(M.borderTopWidth,10),D=parseInt(M.paddingTop,10),Q=parseInt(M.borderBottomWidth,10),N=parseInt(M.paddingBottom,10),A=B+D+H+N+Q,$=Math.min(S.offsetHeight*5,A),L=window.getComputedStyle(m),U=parseInt(L.paddingTop,10),q=parseInt(L.paddingBottom,10),ie=b.top+b.height/2-Xt,ke=j-ie,J=S.offsetHeight/2,V=S.offsetTop+J,oe=B+D+V,xe=A-oe;if(oe<=ie){const se=S===z[z.length-1].ref.current;a.style.bottom="0px";const ne=u.clientHeight-m.offsetTop-m.offsetHeight,We=Math.max(ke,J+(se?q:0)+ne+Q),nt=oe+We;a.style.height=nt+"px"}else{const se=S===z[0].ref.current;a.style.top="0px";const We=Math.max(ie,B+m.offsetTop+(se?U:0)+J)+xe;a.style.height=We+"px",m.scrollTop=oe-ie+m.offsetTop}a.style.margin=`${Xt}px 0`,a.style.minHeight=$+"px",a.style.maxHeight=j+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[d,i.trigger,i.valueNode,a,u,m,S,v,i.dir,r]);Ce(()=>x(),[x]);const[E,C]=c.useState();Ce(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const T=c.useCallback(b=>{b&&y.current===!0&&(x(),h==null||h(),y.current=!1)},[x,h]);return g.jsx(YN,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:w,onScrollButtonChange:T,children:g.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:g.jsx(K.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});y0.displayName=KN;var GN="SelectPopperPosition",ic=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Xt,...i}=e,s=Qa(n);return g.jsx(Fg,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});ic.displayName=GN;var[YN,$d]=bo(yr,{}),sc="SelectViewport",w0=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Xn(sc,n),s=$d(sc,n),a=re(t,i.onViewportChange),l=c.useRef(0);return g.jsxs(g.Fragment,{children:[g.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:r}),g.jsx(Va.Slot,{scope:n,children:g.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:W(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&p){const w=Math.abs(l.current-f.scrollTop);if(w>0){const y=window.innerHeight-Xt*2,m=parseFloat(p.style.minHeight),S=parseFloat(p.style.height),v=Math.max(m,S);if(v<y){const h=v+w,x=Math.min(y,h),E=h-x;p.style.height=x+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});w0.displayName=sc;var x0="SelectGroup",[XN,qN]=bo(x0),ZN=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=nn();return g.jsx(XN,{scope:n,id:o,children:g.jsx(K.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ZN.displayName=x0;var S0="SelectLabel",E0=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qN(S0,n);return g.jsx(K.div,{id:o.id,...r,ref:t})});E0.displayName=S0;var ia="SelectItem",[JN,C0]=bo(ia),b0=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Yn(ia,n),l=Xn(ia,n),u=a.value===r,[f,p]=c.useState(i??""),[d,w]=c.useState(!1),y=re(t,v=>{var h;return(h=l.itemRefCallback)==null?void 0:h.call(l,v,r,o)}),m=nn(),S=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")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 g.jsx(JN,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:c.useCallback(v=>{p(h=>h||((v==null?void 0:v.textContent)??"").trim())},[]),children:g.jsx(Va.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:g.jsx(K.div,{role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:y,onFocus:W(s.onFocus,()=>w(!0)),onBlur:W(s.onBlur,()=>w(!1)),onPointerUp:W(s.onPointerUp,S),onPointerMove:W(s.onPointerMove,v=>{var h;o?(h=l.onItemLeave)==null||h.call(l):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(s.onPointerLeave,v=>{var h;v.currentTarget===document.activeElement&&((h=l.onItemLeave)==null||h.call(l))}),onKeyDown:W(s.onKeyDown,v=>{var x;((x=l.searchRef)==null?void 0:x.current)!==""&&v.key===" "||($N.includes(v.key)&&S(),v.key===" "&&v.preventDefault())})})})})});b0.displayName=ia;var $o="SelectItemText",P0=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Yn($o,n),a=Xn($o,n),l=C0($o,n),u=WN($o,n),[f,p]=c.useState(null),d=re(t,v=>p(v),l.onItemTextChange,v=>{var h;return(h=a.itemTextRefCallback)==null?void 0:h.call(a,v,l.value,l.disabled)}),w=f==null?void 0:f.textContent,y=c.useMemo(()=>g.jsx("option",{value:l.value,disabled:l.disabled,children:w},l.value),[l.disabled,l.value,w]),{onNativeOptionAdd:m,onNativeOptionRemove:S}=u;return Ce(()=>(m(y),()=>S(y)),[m,S,y]),g.jsxs(g.Fragment,{children:[g.jsx(K.span,{id:l.textId,...i,ref:d}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Gn.createPortal(i.children,s.valueNode):null]})});P0.displayName=$o;var T0="SelectItemIndicator",N0=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return C0(T0,n).isSelected?g.jsx(K.span,{"aria-hidden":!0,...r,ref:t}):null});N0.displayName=T0;var ac="SelectScrollUpButton",k0=c.forwardRef((e,t)=>{const n=Xn(ac,e.__scopeSelect),r=$d(ac,e.__scopeSelect),[o,i]=c.useState(!1),s=re(t,r.onScrollButtonChange);return Ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?g.jsx(O0,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});k0.displayName=ac;var lc="SelectScrollDownButton",R0=c.forwardRef((e,t)=>{const n=Xn(lc,e.__scopeSelect),r=$d(lc,e.__scopeSelect),[o,i]=c.useState(!1),s=re(t,r.onScrollButtonChange);return Ce(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;i(f)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?g.jsx(O0,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});R0.displayName=lc;var O0=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Xn("SelectScrollButton",n),s=c.useRef(null),a=Ha(n),l=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),Ce(()=>{var f;const u=a().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),g.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:W(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:W(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:W(o.onPointerLeave,()=>{l()})})}),ek="SelectSeparator",A0=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return g.jsx(K.div,{"aria-hidden":!0,...r,ref:t})});A0.displayName=ek;var uc="SelectArrow",tk=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qa(n),i=Yn(uc,n),s=Xn(uc,n);return i.open&&s.position==="popper"?g.jsx($g,{...o,...r,ref:t}):null});tk.displayName=uc;function I0(e){return e===""||e===void 0}var _0=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=c.useRef(null),i=re(t,o),s=bN(n);return c.useEffect(()=>{const a=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&f){const p=new Event("change",{bubbles:!0});f.call(a,n),a.dispatchEvent(p)}},[s,n]),g.jsx(Ti,{asChild:!0,children:g.jsx("select",{...r,ref:i,defaultValue:n})})});_0.displayName="BubbleSelect";function M0(e){const t=Ae(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(s=>{const a=n.current+s;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),i=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function j0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=nk(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function nk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rk=l0,L0=c0,ok=f0,ik=p0,sk=h0,D0=m0,ak=w0,F0=E0,$0=b0,lk=P0,uk=N0,z0=k0,B0=R0,U0=A0;const Bl=rk,Ul=ok,bs=c.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(L0,{ref:r,className:ue("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
195ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,g.jsx(ik,{asChild:!0,children:g.jsx(pd,{className:"h-4 w-4 opacity-50"})})]}));bs.displayName=L0.displayName;const W0=c.forwardRef(({className:e,...t},n)=>g.jsx(z0,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(ig,{className:"h-4 w-4"})}));W0.displayName=z0.displayName;const V0=c.forwardRef(({className:e,...t},n)=>g.jsx(B0,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(pd,{className:"h-4 w-4"})}));V0.displayName=B0.displayName;const Ps=c.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>g.jsx(sk,{children:g.jsxs(D0,{ref:o,className:ue("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",n==="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:n,...r,children:[g.jsx(W0,{}),g.jsx(ak,{className:ue("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(V0,{})]})}));Ps.displayName=D0.displayName;const ck=c.forwardRef(({className:e,...t},n)=>g.jsx(F0,{ref:n,className:ue("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));ck.displayName=F0.displayName;const yn=c.forwardRef(({className:e,children:t,...n},r)=>g.jsxs($0,{ref:r,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(uk,{children:g.jsx(zS,{className:"h-4 w-4"})})}),g.jsx(lk,{children:t})]}));yn.displayName=$0.displayName;const dk=c.forwardRef(({className:e,...t},n)=>g.jsx(U0,{ref:n,className:ue("-mx-1 my-1 h-px bg-muted",e),...t}));dk.displayName=U0.displayName;var fk="Label",H0=c.forwardRef((e,t)=>g.jsx(K.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));H0.displayName=fk;var Q0=H0;const pk=Ta("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ts=c.forwardRef(({className:e,...t},n)=>g.jsx(Q0,{ref:n,className:ue(pk(),e),...t}));Ts.displayName=Q0.displayName;const hk=({onGenreChange:e,onYearChange:t,onAvailabilityChange:n,selectedGenre:r,selectedYear:o,availability:i})=>{const{incrementTestCases:s}=ki(),[a,l]=c.useState(!1),u=Ua(),f=y=>{s("genre-count-mismatch"),e(y==="all"?null:y)},p=y=>{t(y==="all"?null:parseInt(y)),s("year-filter")},d=y=>{s("availability-filter"),n(y)},w=()=>{l(!a)};return g.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100","data-test-id":"filters-container",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4","data-test-id":"filters-header",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(WS,{className:"h-5 w-5 text-library-primary"}),g.jsx("h2",{className:"text-lg font-semibold",children:"ФилÑÑÑÑ"})]}),u&&g.jsx(Zt,{variant:"ghost",size:"sm",onClick:w,className:"p-1",children:a?g.jsx(pd,{className:"h-4 w-4"}):g.jsx(ig,{className:"h-4 w-4"})})]}),(!u||!a)&&g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4","data-test-id":"filters-grid",children:[g.jsxs("div",{className:"space-y-2","data-test-id":"genre-filter-container",children:[g.jsx(Ts,{htmlFor:"genre-filter","data-test-id":"genre-filter-label",children:"ÐанÑ"}),g.jsxs(Bl,{value:r||"all",onValueChange:f,children:[g.jsx(bs,{id:"genre-filter",className:"w-full","data-test-id":"genre-filter-trigger",children:g.jsx(Ul,{placeholder:"ÐÑбеÑиÑе жанÑ"})}),g.jsxs(Ps,{"data-test-id":"genre-filter-content",children:[g.jsx(yn,{value:"all","data-test-id":"genre-option-all-item",children:"ÐÑе жанÑÑ"}),dN.map((y,m)=>g.jsx(yn,{value:y,"data-test-id":`genre-option-${y.replace(/\s+/g,"-").toLowerCase()}`,children:y},y))]})]})]}),g.jsxs("div",{className:"space-y-2","data-test-id":"year-filter-container",children:[g.jsx(Ts,{htmlFor:"year-filter","data-test-id":"year-filter-label",children:"Ðод"}),g.jsxs(Bl,{value:(o==null?void 0:o.toString())||"all",onValueChange:p,children:[g.jsx(bs,{id:"year-filter",className:"w-full","data-test-id":"year-filter-trigger",children:g.jsx(Ul,{placeholder:"ÐÑбеÑиÑе год"})}),g.jsxs(Ps,{"data-test-id":"year-filter-content",children:[g.jsx(yn,{value:"all","data-test-id":"year-option-all-item",children:"ÐÑе годÑ"}),fN.map(y=>g.jsx(yn,{value:y.toString(),"data-test-id":`year-option-${y}`,children:y},y))]})]})]}),g.jsxs("div",{className:"space-y-2","data-test-id":"availability-filter-container",children:[g.jsx(Ts,{htmlFor:"availability-filter","data-test-id":"availability-filter-label",children:"ÐоÑÑÑпноÑÑÑ"}),g.jsxs(Bl,{value:i,onValueChange:d,children:[g.jsx(bs,{id:"availability-filter",className:"w-full","data-test-id":"availability-filter-trigger",children:g.jsx(Ul,{placeholder:"ÐоÑÑÑпноÑÑÑ"})}),g.jsxs(Ps,{"data-test-id":"availability-filter-content",children:[g.jsx(yn,{value:"all","data-test-id":"availability-option-all-item",children:"ÐÑе"}),g.jsx(yn,{value:"available","data-test-id":"availability-option-available-item",children:"ÐоÑÑÑпнÑе"}),g.jsx(yn,{value:"unavailable","data-test-id":"availability-option-unavailable-item",children:"ÐедоÑÑÑпнÑе"})]})]})]})]})]})},mk=Ta("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ih({className:e,variant:t,...n}){return g.jsx("div",{className:ue(mk({variant:t}),e),...n})}const vk=({book:e})=>g.jsxs("div",{className:"book-card bg-white rounded-lg overflow-hidden shadow-md border border-gray-100 transition-shadow hover:shadow-lg","data-test-id":`book-card-${e.id}`,children:[g.jsx("div",{className:"h-56 overflow-hidden","data-test-id":`book-image-container-${e.id}`,children:g.jsx("img",{src:e.imageUrl,alt:`Ðбложка ${e.title}`,className:"w-full h-full object-cover transition-transform hover:scale-105","data-test-id":`book-image-${e.id}`})}),g.jsxs("div",{className:"p-4 space-y-2","data-test-id":`book-content-${e.id}`,children:[g.jsxs("div",{className:"flex items-start justify-between","data-test-id":`book-header-${e.id}`,children:[g.jsx("h3",{className:"text-lg font-semibold line-clamp-1","data-test-id":`book-title-${e.id}`,children:e.title}),g.jsx(ih,{variant:e.available?"default":"outline",className:e.available?"bg-green-100 text-green-800 hover:bg-green-100":"border-red-300 text-red-800 hover:bg-red-50","data-test-id":`book-availability-${e.id}`,children:e.available?"ÐоÑÑÑпна":"ÐедоÑÑÑпна"})]}),g.jsxs("p",{className:"text-sm text-gray-600","data-test-id":`book-author-${e.id}`,children:["ÐвÑоÑ: ",e.author]}),g.jsxs("p",{className:"text-xs text-gray-500","data-test-id":`book-meta-${e.id}`,children:[g.jsx("span",{"data-test-id":`book-year-${e.id}`,children:e.year})," â¢",g.jsx("span",{"data-test-id":`book-genre-${e.id}`,children:e.genre})]}),g.jsxs(Yy,{children:[g.jsx(aN,{asChild:!0,children:g.jsx(Zt,{variant:"outline",className:"w-full mt-2","data-test-id":`book-detail
195s-button-${e.id}`,children:"ÐодÑобнее"})}),g.jsxs(jd,{className:"sm:max-w-md","data-test-id":`book-dialog-content-${e.id}`,children:[g.jsx(Ld,{"data-test-id":`book-dialog-header-${e.id}`,children:g.jsx(Dd,{"data-test-id":`book-dialog-title-${e.id}`,children:e.title})}),g.jsxs("div",{className:"space-y-4 py-4","data-test-id":`book-dialog-details-${e.id}`,children:[g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2","data-test-id":`book-dialog-author-container-${e.id}`,children:[g.jsx("span",{className:"font-medium text-gray-500",children:"ÐвÑоÑ:"}),g.jsx("span",{"data-test-id":`book-dialog-author-${e.id}`,children:e.author})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2","data-test-id":`book-dialog-isbn-container-${e.id}`,children:[g.jsx("span",{className:"font-medium text-gray-500",children:"ISBN:"}),g.jsx("span",{"data-test-id":`book-dialog-isbn-${e.id}`,children:e.isbn})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2","data-test-id":`book-dialog-year-container-${e.id}`,children:[g.jsx("span",{className:"font-medium text-gray-500",children:"Ðод:"}),g.jsx("span",{"data-test-id":`book-dialog-year-${e.id}`,children:e.year})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2","data-test-id":`book-dialog-genre-container-${e.id}`,children:[g.jsx("span",{className:"font-medium text-gray-500",children:"ÐанÑ:"}),g.jsx("span",{"data-test-id":`book-dialog-genre-${e.id}`,children:e.genre})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2","data-test-id":`book-dialog-availability-container-${e.id}`,children:[g.jsx("span",{className:"font-medium text-gray-500",children:"СÑаÑÑÑ:"}),g.jsx(ih,{variant:e.available?"default":"outline",className:e.available?"bg-green-100 text-green-800 hover:bg-green-100 w-fit":"border-red-300 text-red-800 hover:bg-red-50 w-fit","data-test-id":`book-dialog-availability-${e.id}`,children:e.available?"ÐоÑÑÑпна":"ÐедоÑÑÑпна"})]}),g.jsx("p",{className:"mt-4","data-test-id":`book-dialog-description-${e.id}`,children:e.description})]})]})]})]})]}),gk=({books:e})=>g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:e.length>0?e.map(t=>g.jsx(vk,{book:t},t.id)):g.jsxs("div",{className:"col-span-full text-center py-10",children:[g.jsx("p",{className:"text-gray-500",children:"ÐÐµÑ ÐºÐ½Ð¸Ð³, ÑооÑвеÑÑÑвÑÑÑиÑ
ваÑим кÑиÑеÑиÑм."}),g.jsx("p",{className:"text-gray-400 text-sm mt-2",children:"ÐопÑобÑйÑе измениÑÑ Ð¿Ð°ÑамеÑÑÑ Ð¿Ð¾Ð¸Ñка или ÑилÑÑÑÑ."})]})});var Wl="rovingFocusGroup.onEntryFocus",yk={bubbles:!1,cancelable:!0},Ka="RovingFocusGroup",[cc,K0,wk]=ad(Ka),[xk,G0]=xo(Ka,[wk]),[Sk,Ek]=xk(Ka),Y0=c.forwardRef((e,t)=>g.jsx(cc.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(cc.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(Ck,{...e,ref:t})})}));Y0.displayName=Ka;var Ck=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,d=c.useRef(null),w=re(t,d),y=Fd(i),[m=null,S]=mr({prop:s,defaultProp:a,onChange:l}),[v,h]=c.useState(!1),x=Ae(u),E=K0(n),C=c.useRef(!1),[T,b]=c.useState(0);return c.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(Wl,x),()=>P.removeEventListener(Wl,x)},[x]),g.jsx(Sk,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:m,onItemFocus:c.useCallback(P=>S(P),[S]),onItemShiftTab:c.useCallback(()=>h(!0),[]),onFocusableItemAdd:c.useCallback(()=>b(P=>P+1),[]),onFocusableItemRemove:c.useCallback(()=>b(P=>P-1),[]),children:g.jsx(K.div,{tabIndex:v||T===0?-1:0,"data-orientation":r,...p,ref:w,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{C.current=!0}),onFocus:W(e.onFocus,P=>{const I=!C.current;if(P.target===P.currentTarget&&I&&!v){const O=new CustomEvent(Wl,yk);if(P.currentTarget.dispatchEvent(O),!O.defaultPrevented){const z=E().filter(D=>D.focusable),j=z.find(D=>D.active),H=z.find(D=>
vendor: 5,059 bytes, line 195
195D.id===m),B=[j,H,...z].filter(Boolean).map(D=>D.ref.current);Z0(B,f)}}C.current=!1}),onBlur:W(e.onBlur,()=>h(!1))})})}),X0="RovingFocusGroupItem",q0=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=nn(),l=i||a,u=Ek(X0,n),f=u.currentTabStopId===l,p=K0(n),{onFocusableItemAdd:d,onFocusableItemRemove:w}=u;return c.useEffect(()=>{if(r)return d(),()=>w()},[r,d,w]),g.jsx(cc.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:g.jsx(K.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,y=>{r?u.onItemFocus(l):y.preventDefault()}),onFocus:W(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:W(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const m=Tk(y,u.orientation,u.dir);if(m!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let v=p().filter(h=>h.focusable).map(h=>h.ref.current);if(m==="last")v.reverse();else if(m==="prev"||m==="next"){m==="prev"&&v.reverse();const h=v.indexOf(y.currentTarget);v=u.loop?Nk(v,h+1):v.slice(h+1)}setTimeout(()=>Z0(v))}})})})});q0.displayName=X0;var bk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tk(e,t,n){const r=Pk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return bk[r]}function Z0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Nk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var kk=Y0,Rk=q0,zd="Tabs",[Ok,Gk]=xo(zd,[G0]),J0=G0(),[Ak,Bd]=Ok(zd),ew=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:l="automatic",...u}=e,f=Fd(a),[p,d]=mr({prop:r,onChange:o,defaultProp:i});return g.jsx(Ak,{scope:n,baseId:nn(),value:p,onValueChange:d,orientation:s,dir:f,activationMode:l,children:g.jsx(K.div,{dir:f,"data-orientation":s,...u,ref:t})})});ew.displayName=zd;var tw="TabsList",nw=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Bd(tw,n),s=J0(n);return g.jsx(kk,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:g.jsx(K.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});nw.displayName=tw;var rw="TabsTrigger",ow=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=Bd(rw,n),a=J0(n),l=aw(s.baseId,r),u=lw(s.baseId,r),f=r===s.value;return g.jsx(Rk,{asChild:!0,...a,focusable:!o,active:f,children:g.jsx(K.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:t,onMouseDown:W(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(r):p.preventDefault()}),onKeyDown:W(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(r)}),onFocus:W(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(r)})})})});ow.displayName=rw;var iw="TabsContent",sw=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,a=Bd(iw,n),l=aw(a.baseId,r),u=lw(a.baseId,r),f=r===a.value,p=c.useRef(f);return c.useEffect(()=>{const d=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(d)},[]),g.jsx(ud,{present:o||f,children:({present:d})=>g.jsx(K.div,{"data-state":f?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!d,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:d&&i})})});sw.displayName=iw;function aw(e,t){return`${e}-trigger-${t}`}function lw(e,t){return`${e}-content-${t}`}var Ik=ew,uw=nw,cw=ow,dw=sw;const _k=Ik,fw=c.forwardRef(({className:e,...t},n)=>g.jsx(uw,{ref:n,className:ue("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));fw.displayName=uw.displayName;const dc=c.forwardRef(({className:e,...t},n)=>g.jsx(cw,{ref:n,className:ue("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 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-sm",e),...t}));dc.displayName=cw.displayName;const fc=c.forwardRef(({className:e,...t},n)=>g.jsx(dw,{ref:n,className:ue("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));fc.displayName=dw.displayName;const Mk=[{id:"REQ-001",title:"ФÑнкÑионалÑноÑÑÑ Ð¿Ð¾Ð¸Ñка книг",description:"ÐолÑзоваÑели Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸Ð¼ÐµÑÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÑ Ð¸ÑкаÑÑ ÐºÐ½Ð¸Ð³Ð¸ по наÐ
195·Ð²Ð°Ð½Ð¸Ñ, авÑоÑÑ Ð¸Ð»Ð¸ ISBN.",acceptanceCriteria:["ÐоиÑк должен бÑÑÑ Ð½ÐµÑÑвÑÑвиÑелен к ÑегиÑÑÑÑ Ð´Ð»Ñ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ, авÑоÑа.","ÐÐ¾Ð»Ð¶Ð½Ñ Ð¿Ð¾Ð´Ð´ÐµÑживаÑÑÑÑ ÑаÑÑиÑнÑе ÑÐ¾Ð²Ð¿Ð°Ð´ÐµÐ½Ð¸Ñ (напÑимеÑ, поиÑк 'ÑеÑÑ' должен наÑ
одиÑÑ 'ТеÑÑиÑование').","ÐÑÑÑой поиÑк должен оÑобÑажаÑÑ Ð²Ñе книги.","ÐоиÑк должен вÑполнÑÑÑÑÑ ÑолÑко пÑи вводе минимÑм 3 Ñимволов.","РезÑлÑÑаÑÑ Ð¿Ð¾Ð¸Ñка Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÑÑÑÑÑ Ð² Ñежиме ÑеалÑного вÑемени по меÑе ввода полÑзоваÑелем.",'ÐÑи оÑÑÑÑÑÑвии книг в базе, ÑооÑвеÑÑÑвÑÑÑиÑ
запÑоÑам, вÑводиÑÑ ÑообÑение: "ÐÐµÑ ÐºÐ½Ð¸Ð³, ÑооÑвеÑÑÑвÑÑÑиÑ
ваÑим кÑиÑеÑиÑм. ÐопÑобÑйÑе измениÑÑ Ð¿Ð°ÑамеÑÑÑ Ð¿Ð¾Ð¸Ñка или ÑилÑÑÑÑ."']},{id:"REQ-002",title:"ФилÑÑÑаÑÐ¸Ñ ÐºÐ½Ð¸Ð³",description:"ÐолÑзоваÑели Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸Ð¼ÐµÑÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÑ ÑилÑÑÑоваÑÑ ÐºÐ½Ð¸Ð³Ð¸ по жанÑÑ, Ð³Ð¾Ð´Ñ Ð¸ доÑÑÑпноÑÑи.",acceptanceCriteria:["ФилÑÑÑ Ð¶Ð°Ð½Ñа должен оÑобÑажаÑÑ Ð²Ñе доÑÑÑпнÑе жанÑÑ Ð¸Ð· каÑалога книг.","ФилÑÑÑ Ð¿Ð¾ Ð³Ð¾Ð´Ñ Ð´Ð¾Ð»Ð¶ÐµÐ½ оÑобÑажаÑÑ Ð²Ñе годÑ, пÑиÑÑÑÑÑвÑÑÑие в каÑалоге книг.","ФилÑÑÑ Ð´Ð¾ÑÑÑпноÑÑи должен имеÑÑ Ð²Ð°ÑианÑÑ 'ÐÑе', 'ÐоÑÑÑпнÑе' и 'ÐедоÑÑÑпнÑе'.","ФилÑÑÑÑ Ð´Ð¾Ð»Ð¶Ð½Ñ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð¸ÑоваÑÑÑÑ Ñ ÑÑнкÑией поиÑка.","ÐеÑколÑко ÑилÑÑÑов Ð´Ð¾Ð»Ð¶Ð½Ñ ÑабоÑаÑÑ Ð²Ð¼ÐµÑÑе (логика Ð, а не ÐÐÐ)."]},{id:"REQ-003",title:"ÐÑобÑажение книг",description:"Ðниги Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¾ÑобÑажаÑÑÑÑ Ð² виде ÑеÑки каÑÑоÑек Ñ ÑооÑвеÑÑÑвÑÑÑей инÑоÑмаÑией.",acceptanceCriteria:["ÐÐ°Ð¶Ð´Ð°Ñ ÐºÐ°ÑÑоÑка книги должна оÑобÑажаÑÑ: название, авÑоÑа, год, Ð¶Ð°Ð½Ñ Ð¸ ÑÑаÑÑÑ Ð´Ð¾ÑÑÑпноÑÑи.","ÐаÑÑоÑки книг Ð´Ð¾Ð»Ð¶Ð½Ñ Ð²ÐºÐ»ÑÑаÑÑ ÑепÑезенÑаÑивное изобÑажение.","ÐаÑÑоÑки Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸Ð¼ÐµÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ 'ÐодÑобнее' Ð´Ð»Ñ Ð¿ÑоÑмоÑÑа дополниÑелÑной инÑоÑмаÑии.","СеÑка должна бÑÑÑ Ð°Ð´Ð°Ð¿Ñивной и подÑÑÑаиваÑÑÑÑ Ð¿Ð¾Ð´ ÑазнÑе ÑазмеÑÑ ÑкÑанов."]},{id:"REQ-004",title:"ЦелоÑÑноÑÑÑ Ð´Ð°Ð½Ð½ÑÑ
",description:"ÐÑе даннÑе о книгаÑ
Ð´Ð¾Ð»Ð¶Ð½Ñ Ð±ÑÑÑ ÑоÑнÑми и ÑоглаÑованнÑми.",acceptanceCriteria:["ÐомеÑа ISBN Ð´Ð¾Ð»Ð¶Ð½Ñ Ð±ÑÑÑ ÑникалÑнÑми Ð´Ð»Ñ Ð²ÑеÑ
книг.","ÐÑе обÑзаÑелÑнÑе Ð¿Ð¾Ð»Ñ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¿ÑиÑÑÑÑÑвоваÑÑ Ð´Ð»Ñ ÐºÐ°Ð¶Ð´Ð¾Ð¹ книги (без нÑлевÑÑ
знаÑений).","СÑаÑÑÑ Ð´Ð¾ÑÑÑпноÑÑи должен ÑоÑно оÑÑажаÑÑ, можно ли взÑÑÑ ÐºÐ½Ð¸Ð³Ñ Ð² библиоÑеке."]}],jk=()=>{const{bugsFoundIds:e}=ki(),t=e.map((n,r)=>({id:`BUG-${(r+1).toString().padStart(3,"0")}`,description:tc[n]}));return g.jsxs(_k,{defaultValue:"requirements",className:"w-full",children:[g.jsxs(fw,{className:"grid grid-cols-2",children:[g.jsx(dc,{value:"requirements",children:"ТÑебованиÑ"}),g.jsx(dc,{value:"bugs",children:"ÐÑвеÑÑ"})]}),g.jsxs(fc,{value:"requirements",className:"space-y-6 p-4",children:[g.jsx("div",{className:"bg-gray-50 p-4 rounded-md",children:g.jsx("p",{className:"text-sm text-gray-500 italic",children:"Ðиже пÑÐ¸Ð²ÐµÐ´ÐµÐ½Ñ ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ðº ÑиÑÑеме поиÑка библиоÑеки. ÐÑполÑзÑйÑе иÑ
Ð´Ð»Ñ ÑÑководÑÑва пÑи ÑеÑÑиÑовании и вÑÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð¿Ð¾ÑенÑиалÑнÑÑ
пÑоблем."})}),Mk.map(n=>g.jsxs("div",{className:"border rounded-md p-4 bg-white",children:[g.jsxs("div",{className:"flex justify-between items-start mb-2",children:[g.jsx("h3",{className:"font-bold text-lg",children:n.title}),g.jsx("span",{className:"text-sm bg-gray-100 rounded px-2 py-1",children:n.id})]}),g.jsx("p",{className:"mb-4 text-gray-700",children:n.description}),g.jsx("h4",{className:"font-semibold mb-2",children:"ÐÑиÑеÑии пÑиемки:"}),g.jsx("ul",{className:"list-disc pl-5 space-y-1",children:n.acceptanceCriteria.map((r,o)=>g.jsx("li",{className:"text-gray-700",children:r},o))})]},n.id))]}),g.jsxs(fc,{value:"bugs",className:"space-y-6 p-4",children:[g.jsx("div",{className:"bg-gray-50 p-4 rounded-md",children:g.jsxs("p",{className:"text-sm text-gray-500 italic",children:["СпÑÑÑаннÑе баги и ÑÐ°Ð·Ð±Ð¾Ñ ÑеÑÐµÐ½Ð¸Ñ Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ ÑÑежанеÑа ÑмоÑÑи на"," ",g.jsx("a",{href:"https://boosty.to/aklimenko",target:"_blank",rel:"noopener noreferrer",className:"text-library-primary hover:underline",children:"Boosty"})]})}),g.jsxs("div",{className:"grid gap-4",children:[t.map((n,r)=>g.jsx("div",{className:"border rounded-md p-4 bg-white",children:g.jsxs("div",{className:"flex items-start gap-2",children:[g.jsx(BS,{className:"h-5 w-5 text-green-500 mt-0.5"}),g.jsxs("div",{children:[g.jsx("div",{className:"flex items-center gap-2 mb-1",children:g.jsx("span",{className:"text-sm bg-gray-100 rounded px-2 py-1",children:n.id})}),g.jsx("p",{className:"text-gray-700",children:n.description})]})]})},r)),t.length===0&&g.jsx("div",{className:"border rounded-md p-4 bg-white text-gray-500 text-center",children:"Ðока не найдено ни одного бага"})]})]})]})},Lk=()=>{const[e,t]=c.useState(""),[n,r]=c.useState(null),[o,i]=c.useState(null),[s,a]=c.useState("all"),[l,u]=c.useState(qp("",null,null,"all")),[f,p]=c.useState(st.length),{incrementTestCases:d}=ki(),w=Ua(),y=x=>{t(x);const E=h(x,n,o,s);p(E.length)},m=x=>{r(x),h(e,x,o,s)},S=x=>{i(x),x&&e&&d("year-filter-with-search");const E=h(e,n,x,s);p(E.length)},v=x=>{a(x),d("availability-filter");const E=h(e,n,o,x);p(E.length)},h=(x,E,C,T)=>{const b=qp(x,E,C,T);return u(b),b};return g.jsx("div",{className:"container mx-auto p-6 space-y-6",children:g.jsxs("div",{className:`grid ${w?"grid-cols-1":"grid-cols-1 md:grid-cols-[2fr_1fr]"} gap-6`,children:[g.jsxs("div",{className:`${w?"order-1":"order-2 md:order-1"}`,children:[g.jsx(pN,{onSearch:y}),g.jsx("div",{className:"mt-6",children:g.jsx(hk,{onGenreChange:m,onYearChange:S,onAvailabilityChange:v,selectedGenre:n,selectedYear:o,availability:s})}),g.jsxs("div",{className:"mt-6",children:[g.jsxs("p",{className:"text-sm text-gray-500 mb-3",children:["Ðайдено ",f," книг"]}),g.jsx(gk,{books:l})]})]}),g.jsx("div",{className:`${w?"order-2":"order-1 md:order-2"} bg-white shadow-sm rounded-lg border border-gray-100`,children:g.jsx(jk,{})})]})})},Dk=()=>g.jsx(JP,{children:g.jsxs("div",{className:"min-h-screen bg-library-background flex flex-col overflow-x-hidden",children:[g.jsx(uN,{}),g.jsx("main",{className:"flex-1 overflow-y-auto",children:g.jsx(Lk,{})}),g.jsx(cN,{})]})}),Fk=()=>{const e=py();return c.useEffect(()=>{console.error("404 ÐÑибка: ÐолÑзоваÑÐµÐ»Ñ Ð¿Ð¾Ð¿ÑÑалÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð¾ÑÑÑп к неÑÑÑеÑÑвÑÑÑÐµÐ¼Ñ Ð¼Ð°ÑÑÑÑÑÑ:",e.pathname)},[e.pathname]),g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:g.jsxs("div",{className:"text-center",children:[g.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),g.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"УпÑ! СÑÑаниÑа не найдена"}),g.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"ÐеÑнÑÑÑÑÑ Ð½Ð° главнÑÑ"})]})})},$k=new dP,zk=()=>g.jsx(pP,{client:$k,children:g.jsxs(Ub,{children:[g.jsx(NE,{}),g.jsx(nC,{}),g.jsx(qP,{children:g.jsxs(GP,{children:[g.jsx(Ju,{path:"/",element:g.jsx(Dk,{})}),g.jsx(Ju,{path:"*",element:g.jsx(Fk,{})})]})})]})});kv(document.getElementById("root")).render(g.jsx(zk,{}));
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.