var yp=Object.create,Oh=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,pp=Object.getOwnPropertyNames,Sp=Object.getPrototypeOf,zh=Object.prototype.hasOwnProperty,_l=(i,c)=>()=>(c||(i((c={exports:{}}).exports,c),i=null),c.exports),xp=(i,c,r,f)=>{if(c&&typeof c=="object"||typeof c=="function")for(var s=pp(c),v=0,h=s.length,p;vc[A]).bind(null,p),enumerable:!(f=bp(c,p))||f.enumerable});return i},Rh=(i,c,r)=>(r=i!=null?yp(Sp(i)):{},xp(c||!i||!i.__esModule||!zh.call(i,"default")?Oh(r,"default",{value:i,enumerable:!0}):r,i)),Ep=_l((i=>{function c(q,ce){var ae=q.length;q.push(ce);e:for(;0>>1,K=q[xe];if(0>>1;xes(Pt,ae))vts(x,Pt)?(q[xe]=x,q[vt]=ae,xe=vt):(q[xe]=Pt,q[pt]=ae,xe=pt);else if(vts(x,ae))q[xe]=x,q[vt]=ae,xe=vt;else break e}}return ce}function s(q,ce){var ae=q.sortIndex-ce.sortIndex;return ae!==0?ae:q.id-ce.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var A=[],C=[],H=1,E=null,g=3,D=!1,G=!1,M=!1,L=!1,V=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Z(q){for(var ce=r(C);ce!==null;){if(ce.callback===null)f(C);else if(ce.startTime<=q)f(C),ce.sortIndex=ce.expirationTime,c(A,ce);else break;ce=r(C)}}function ue(q){if(M=!1,Z(q),!G)if(r(A)!==null)G=!0,ee||(ee=!0,se());else{var ce=r(C);ce!==null&&De(ue,ce.startTime-q)}}var ee=!1,W=-1,w=5,ne=-1;function He(){return L?!0:!(i.unstable_now()-neq&&He());){var xe=E.callback;if(typeof xe=="function"){E.callback=null,g=E.priorityLevel;var K=xe(E.expirationTime<=q);if(q=i.unstable_now(),typeof K=="function"){E.callback=K,Z(q),ce=!0;break t}E===r(A)&&f(A),Z(q)}else f(A);E=r(A)}if(E!==null)ce=!0;else{var Je=r(C);Je!==null&&De(ue,Je.startTime-q),ce=!1}}break e}finally{E=null,g=ae,D=!1}ce=void 0}}finally{ce?se():ee=!1}}}var se;if(typeof B=="function")se=function(){B(Ce)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,Fe=ke.port2;ke.port1.onmessage=Ce,se=function(){Fe.postMessage(null)}}else se=function(){V(Ce,0)};function De(q,ce){W=V(function(){q(i.unstable_now())},ce)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(q){q.callback=null},i.unstable_forceFrameRate=function(q){0>q||125xe?(q.sortIndex=ae,c(C,q),r(A)===null&&q===r(C)&&(M?(X(W),W=-1):M=!0,De(ue,ae-xe))):(q.sortIndex=K,c(A,q),G||D||(G=!0,ee||(ee=!0,se()))),q},i.unstable_shouldYield=He,i.unstable_wrapCallback=function(q){var ce=g;return function(){var ae=g;g=ce;try{return q.apply(this,arguments)}finally{g=ae}}}})),Tp=_l(((i,c)=>{c.exports=Ep()})),_p=_l((i=>{var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),H=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),D=Symbol.for("react.view_transition"),G=Symbol.iterator;function M(x){return x===null||typeof x!="object"?null:(x=G&&x[G]||x["@@iterator"],typeof x=="function"?x:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,X={};function B(x,Y,P){this.props=x,this.context=Y,this.refs=X,this.updater=P||L}B.prototype.isReactComponent={},B.prototype.setState=function(x,Y){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,Y,"setState")},B.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Z(){}Z.prototype=B.prototype;function ue(x,Y,P){this.props=x,this.context=Y,this.refs=X,this.updater=P||L}var ee=ue.prototype=new Z;ee.constructor=ue,V(ee,B.prototype),ee.isPureReactComponent=!0;var W=Array.isArray;function w(){}var ne={H:null,A:null,T:null,S:null},He=Object.prototype.hasOwnProperty;function Ce(x,Y,P){var te=P.ref;return{$$typeof:c,type:x,key:Y,ref:te!==void 0?te:null,props:P}}function se(x,Y){return Ce(x.type,Y,x.props)}function ke(x){return typeof x=="object"&&x!==null&&x.$$typeof===c}function Fe(x){var Y={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(P){return Y[P]})}var De=/\/+/g;function q(x,Y){return typeof x=="object"&&x!==null&&x.key!=null?Fe(""+x.key):Y.toString(36)}function ce(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(w,w):(x.status="pending",x.then(function(Y){x.status==="pending"&&(x.status="fulfilled",x.value=Y)},function(Y){x.status==="pending"&&(x.status="rejected",x.reason=Y)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function ae(x,Y,P,te,ie){var Se=typeof x;(Se==="undefined"||Se==="boolean")&&(x=null);var ye=!1;if(x===null)ye=!0;else switch(Se){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(x.$$typeof){case c:case r:ye=!0;break;case E:return ye=x._init,ae(ye(x._payload),Y,P,te,ie)}}if(ye)return ie=ie(x),ye=te===""?"."+q(x,0):te,W(ie)?(P="",ye!=null&&(P=ye.replace(De,"$&/")+"/"),ae(ie,Y,P,"",function(St){return St})):ie!=null&&(ke(ie)&&(ie=se(ie,P+(ie.key==null||x&&x.key===ie.key?"":(""+ie.key).replace(De,"$&/")+"/")+ye)),Y.push(ie)),1;ye=0;var $=te===""?".":te+":";if(W(x))for(var re=0;re{c.exports=_p()})),Np=_l((i=>{var c=hf();function r(E){var g="https://react.dev/errors/"+E;if(1{function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(f){console.error(f)}}r(),c.exports=Np()})),Cp=_l((i=>{var c=Tp(),r=hf(),f=Dh();function s(e){var t="https://react.dev/errors/"+e;if(1ta||(e.current=cr[ta],cr[ta]=null,ta--)}function Me(e,t){ta++,cr[ta]=e.current,e.current=t}var ol=rl(null),nu=rl(null),kl=rl(null),fi=rl(null);function di(e,t){switch(Me(kl,t),Me(nu,e),Me(ol,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?o0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=o0(t),e=s0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}at(ol),Me(ol,e)}function la(){at(ol),at(nu),at(kl)}function rr(e){var t=e.memoizedState;t!==null&&(Va._currentValue=t.memoizedState,Me(fi,e)),t=ol.current;var l=s0(t,e.type);t!==l&&(Me(nu,e),Me(ol,l))}function mi(e){nu.current===e&&(at(ol),at(nu)),fi.current===e&&(at(fi),Va._currentValue=St)}var or,jf;function Jl(e){if(or===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);or=t&&t[1]||"",jf=-1)":-1a||y[n]!==N[a]){var R=` `+y[n].replace(" at new "," at ");return e.displayName&&R.includes("")&&(R=R.replace("",e.displayName)),R}while(1<=n&&0<=a);break}}}finally{sr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jl(l):""}function Ry(e,t){switch(e.tag){case 26:case 27:case 5:return Jl(e.type);case 16:return Jl("Lazy");case 13:return e.child!==t&&t!==null?Jl("Suspense Fallback"):Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 15:return fr(e.type,!1);case 11:return fr(e.type.render,!1);case 1:return fr(e.type,!0);case 31:return Jl("Activity");case 30:return Jl("ViewTransition");default:return""}}function Mf(e){try{var t="",l=null;do t+=Ry(e,l),l=e,e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` `+n.stack}}var dr=Object.prototype.hasOwnProperty,mr=c.unstable_scheduleCallback,vr=c.unstable_cancelCallback,Dy=c.unstable_shouldYield,jy=c.unstable_requestPaint,zt=c.unstable_now,My=c.unstable_getCurrentPriorityLevel,wf=c.unstable_ImmediatePriority,Uf=c.unstable_UserBlockingPriority,vi=c.unstable_NormalPriority,wy=c.unstable_LowPriority,Hf=c.unstable_IdlePriority,Uy=c.log,Hy=c.unstable_setDisableYieldValue,au=null,Rt=null;function Il(e){if(typeof Uy=="function"&&Hy(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(au,e)}catch{}}var Dt=Math.clz32?Math.clz32:Yy,By=Math.log,Ly=Math.LN2;function Yy(e){return e>>>=0,e===0?32:31-(By(e)/Ly|0)|0}var hi=256,gi=262144,yi=4194304;function On(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function bi(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~u,n!==0?a=On(n):(o&=d,o!==0?a=On(o):l||(l=d&~e,l!==0&&(a=On(l))))):(d=n&~u,d!==0?a=On(d):o!==0?a=On(o):l||(l=n&~e,l!==0&&(a=On(l)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:a}function uu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bf(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0l;l++)t.push(e);return t}function iu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qy(e,t,l,n,a,u){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,N=e.hiddenUpdates;for(l=o&~l;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nr=!1;if(Ol)try{var fu={};Object.defineProperty(fu,"passive",{get:function(){Nr=!0}}),window.addEventListener("test",fu,fu),window.removeEventListener("test",fu,fu)}catch{Nr=!1}var $l=null,Cr=null,_i=null;function cd(){if(_i)return _i;var e,t=Cr,l=t.length,n,a="value"in $l?$l.value:$l.textContent,u=a.length;for(e=0;e=vu),md=" ",vd=!1;function hd(e,t){switch(e){case"keyup":return f1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function m1(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(vd=!0,md);case"textInput":return e=t.data,e===md&&vd?null:e;default:return null}}function v1(e,t){if(sa)return e==="compositionend"||!Dr&&hd(e,t)?(e=cd(),_i=Cr=$l=null,sa=!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"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nd(e,t){var l=_d(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=_d(l)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wr(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=wr(e.document)}return t}function Ur(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")}var E1=Ol&&"documentMode"in document&&11>=document.documentMode,fa=null,Hr=null,bu=null,Br=!1;function Od(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Br||fa==null||fa!==wr(n)||(n=fa,"selectionStart"in n&&Ur(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bu&&yu(bu,n)||(bu=n,n=zc(Hr,"onSelect"),0>=o,a-=o,fl=1<<32-Dt(t)+a|l<oe?(Ze=le,le=null):Ze=le.sibling;var Ee=T(_,le,O[oe],j);if(Ee===null){le===null&&(le=Ze);break}e&&le&&Ee.alternate===null&&t(_,le),S=u(Ee,S,oe),pe===null?k=Ee:pe.sibling=Ee,pe=Ee,le=Ze}if(oe===O.length)return l(_,le),me&&jl(_,oe),k;if(le===null){for(;oeoe?(Ze=le,le=null):Ze=le.sibling;var En=T(_,le,Ee.value,j);if(En===null){le===null&&(le=Ze);break}e&&le&&En.alternate===null&&t(_,le),S=u(En,S,oe),pe===null?k=En:pe.sibling=En,pe=En,le=Ze}if(Ee.done)return l(_,le),me&&jl(_,oe),k;if(le===null){for(;!Ee.done;oe++,Ee=O.next())Ee=U(_,Ee.value,j),Ee!==null&&(S=u(Ee,S,oe),pe===null?k=Ee:pe.sibling=Ee,pe=Ee);return me&&jl(_,oe),k}for(le=n(le);!Ee.done;oe++,Ee=O.next())Ee=z(le,_,oe,Ee.value,j),Ee!==null&&(e&&(Ze=Ee.alternate,Ze!==null&&le.delete(Ze.key===null?oe:Ze.key)),S=u(Ee,S,oe),pe===null?k=Ee:pe.sibling=Ee,pe=Ee);return e&&le.forEach(function(gp){return t(_,gp)}),me&&jl(_,oe),k}function de(_,S,O,j){if(typeof O=="object"&&O!==null&&O.type===se&&O.key===null&&O.props.ref===void 0&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case He:e:{for(var k=O.key;S!==null;){if(S.key===k){if(k=O.type,k===se){if(S.tag===7){l(_,S.sibling),j=a(S,O.props.children),ln(j,O),j.return=_,_=j;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Je&&qn(k)===S.type){l(_,S.sibling),j=a(S,O.props),ln(j,O),j.return=_,_=j;break e}l(_,S);break}else t(_,S);S=S.sibling}O.type===se?(j=wn(O.props.children,_.mode,j,O.key),ln(j,O),j.return=_,_=j):(j=wi(O.type,O.key,O.props,null,_.mode,j),ln(j,O),j.return=_,_=j)}return o(_);case Ce:e:{for(k=O.key;S!==null;){if(S.key===k)if(S.tag===4&&S.stateNode.containerInfo===O.containerInfo&&S.stateNode.implementation===O.implementation){l(_,S.sibling),j=a(S,O.children||[]),j.return=_,_=j;break e}else{l(_,S);break}else t(_,S);S=S.sibling}j=Qr(O,_.mode,j),j.return=_,_=j}return o(_);case Je:return O=qn(O),de(_,S,O,j)}if(ye(O))return Q(_,S,O,j);if(te(O)){if(k=te(O),typeof k!="function")throw Error(s(150));return O=k.call(O),F(_,S,O,j)}if(typeof O.then=="function")return de(_,S,Qi(O),j);if(O.$$typeof===q)return de(_,S,Gi(_,O),j);Zi(_,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,S!==null&&S.tag===6?(l(_,S.sibling),j=a(S,O),j.return=_,_=j):(l(_,S),j=Xr(O,_.mode,j),j.return=_,_=j),o(_)):l(_,S)}return function(_,S,O,j){try{_u=0;var k=de(_,S,O,j);return Sa=null,k}catch(le){if(le===pa||le===Vi)throw le;var pe=Et(29,le,null,_.mode);return pe.lanes=j,pe.return=_,pe}}}var Xn=Wd(!0),Pd=Wd(!1),nn=!1;function eo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function to(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function an(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function un(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(_e&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Mi(e),Hd(e,null,l),t}return ji(e,n,t,l),Mi(e)}function Nu(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Gf(e,l)}}function lo(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=o:u=u.next=o,l=l.next}while(l!==null);u===null?a=u=t:u=u.next=t}else a=u=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var no=!1;function Cu(){if(no){var e=ba;if(e!==null)throw e}}function Au(e,t,l,n){no=!1;var a=e.updateQueue;nn=!1;var u=a.firstBaseUpdate,o=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var y=d,N=y.next;y.next=null,o===null?u=N:o.next=N,o=y;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==o&&(d===null?R.firstBaseUpdate=N:d.next=N,R.lastBaseUpdate=y))}if(u!==null){var U=a.baseState;o=0,R=N=y=null,d=u;do{var T=d.lane&-536870913,z=T!==d.lane;if(z?(be&T)===T:(n&T)===T){T!==0&&T===Yn&&(no=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Q=e,F=d;T=t;var de=l;switch(F.tag){case 1:if(Q=F.payload,typeof Q=="function"){U=Q.call(de,U,T);break e}U=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=F.payload,T=typeof Q=="function"?Q.call(de,U,T):Q,T==null)break e;U=w({},U,T);break e;case 2:nn=!0}}T=d.callback,T!==null&&(e.flags|=64,z&&(e.flags|=8192),z=a.callbacks,z===null?a.callbacks=[T]:z.push(T))}else z={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(N=R=z,y=U):R=R.next=z,o|=T;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;z=d,d=z.next,z.next=null,a.lastBaseUpdate=z,a.shared.pending=null}}while(!0);R===null&&(y=U),a.baseState=y,a.firstBaseUpdate=N,a.lastBaseUpdate=R,u===null&&(a.shared.lanes=0),mn|=o,e.lanes=o,e.memoizedState=U}}function em(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function tm(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;eu?u:8;var o=$.T,d={};d.types=o!==null?o.types:null,$.T=d,_o(e,!1,t,l);try{var y=a(),N=$.S;N!==null&&N(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"?Du(e,t,M1(y,n),Lt(e)):Du(e,t,n,Lt(e))}catch(R){Du(e,t,{then:function(){},status:"rejected",reason:R},Lt())}finally{re.p=u,o!==null&&d.types!==null&&(o.types=d.types),$.T=o}}function Y1(){}function Eo(e,t,l,n){if(e.tag!==5)throw Error(s(476));var a=Mm(e).queue;jm(e,a,t,St,l===null?Y1:function(){return wm(e),l(n)})}function Mm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:St,baseState:St,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:St},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wm(e){var t=Mm(e);t.next===null&&(t=e.alternate.memoizedState),Du(e,t.next.queue,{},Lt())}function To(){return it(Va)}function Um(){return qe().memoizedState}function Hm(){return qe().memoizedState}function G1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=an(l);var n=un(t,e,l);n!==null&&(Ct(n,t,l),Nu(n,t,l)),t={cache:$r()},e.payload=t;return}t=t.return}}function q1(e,t,l){var n=Lt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},tc(e)?Lm(t,l):(l=qr(e,t,l,n),l!==null&&(Ct(l,e,n),Ym(l,t,n)))}function Bm(e,t,l){Du(e,t,l,Lt())}function Du(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(tc(e))Lm(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,d=u(o,l);if(a.hasEagerState=!0,a.eagerState=d,Mt(d,o))return ji(e,t,a,0),je===null&&Di(),!1}catch{}if(l=qr(e,t,a,n),l!==null)return Ct(l,e,n),Ym(l,t,n),!0}return!1}function _o(e,t,l,n){if(n={lane:2,revertLane:vs(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tc(e)){if(t)throw Error(s(479))}else t=qr(e,l,n,2),t!==null&&Ct(t,e,2)}function tc(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Lm(e,t){xa=Ji=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ym(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Gf(e,l)}}var lc={readContext:it,use:Fi,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye,useEffectEvent:Ye},Gm={readContext:it,use:Fi,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Tm,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Pi(4194308,4,Am.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){Pi(4,2,e,t)},useMemo:function(e,t){var l=gt();t=t===void 0?null:t;var n=e();if(Qn){Il(!0);try{e()}finally{Il(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=gt();if(l!==void 0){var a=l(t);if(Qn){Il(!0);try{l(t)}finally{Il(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=q1.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=yo(e);var t=e.queue,l=Bm.bind(null,fe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:So,useDeferredValue:function(e,t){return xo(gt(),e,t)},useTransition:function(){var e=yo(!1);return e=jm.bind(null,fe,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=fe,a=gt();if(me){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),je===null)throw Error(s(349));(be&127)!==0||cm(n,t,l)}a.memoizedState=l;var u={value:l,getSnapshot:t};return a.queue=u,Tm(om.bind(null,n,u,e),[e]),n.flags|=2048,Ta(9,{destroy:void 0},rm.bind(null,n,u,l,t),null),l},useId:function(){var e=gt(),t=je.identifierPrefix;if(me){var l=dl,n=fl;l=(n&~(1<<32-Dt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ii++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}u[ut]=t,u[xt]=n;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(st(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ll(t)}}return Ue(t),t.subtreeFlags&=-33554433,Bo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Ll(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=kl.current,ya(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=Pe,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||c0(e.nodeValue,l)),e||en(t,!0)}else e=Qu(e).createTextNode(n),e[ut]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=ya(t),l!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ut]=t}else Un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(wt(t),t):(wt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ya(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(s(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[ut]=t}else Un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(wt(t),t):(wt(t),null)}return wt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),rc(t,t.updateQueue),Ue(t),null);case 4:return la(),e===null&&n0(t.stateNode.containerInfo),t.flags|=67108864,Ue(t),null;case 10:return wl(t.type),Ue(t),null;case 19:if(co(t),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,u=n.rendering,u===null)if(a)Mu(n,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ki(e),u!==null){for(t.flags|=128,Mu(n,!1),e=u.updateQueue,t.updateQueue=e,rc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Bd(l,e),l=l.sibling;return Ou(t,rt.current&1|2),me&&jl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&zt()>Sc&&(t.flags|=128,a=!0,Mu(n,!1),t.lanes=4194304)}else{if(!a)if(e=ki(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,rc(t,e),Mu(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!u.alternate&&!me)return Ue(t),null}else 2*zt()-n.renderingStartTime>Sc&&l!==536870912&&(t.flags|=128,a=!0,Mu(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}if(n.tail!==null){e=n.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return n.rendering=e,n.tail=e.sibling,n.renderingStartTime=zt(),e.sibling=null,u=rt.current,u=a?u&1|2:u&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!l||me?Ou(t,u):(l=u,Me(ct,t),Me(rt,l),dt===null&&(dt=t)),me&&jl(t,n.treeForkCount),e}return Ue(t),null;case 22:case 23:return wt(t),uo(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&rc(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&at(Gn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wl(Ve),Ue(t),null;case 25:return null;case 30:return t.flags|=33554432,Ue(t),null}throw Error(s(156,t.tag))}function F1(e,t){switch(Zr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wl(Ve),la(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mi(t),null;case 31:if(t.memoizedState!==null){if(wt(t),t.alternate===null)throw Error(s(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return co(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return la(),null;case 10:return wl(t.type),null;case 22:case 23:return wt(t),uo(),e!==null&&at(Gn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wl(Ve),null;case 25:return null;default:return null}}function rv(e,t){switch(Zr(t),t.tag){case 3:wl(Ve),la();break;case 26:case 27:case 5:mi(t);break;case 4:la();break;case 31:t.memoizedState!==null&&wt(t);break;case 13:wt(t);break;case 19:co(t);break;case 10:wl(t.type);break;case 22:case 23:wt(t),uo(),e!==null&&at(Gn);break;case 24:wl(Ve)}}function wu(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var u=l.create,o=l.inst;n=u(),o.destroy=n}l=l.next}while(l!==a)}}catch(d){Oe(t,t.return,d)}}function sn(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){var o=n.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,a=t;var y=l,N=d;try{N()}catch(R){Oe(a,y,R)}}}n=n.next}while(n!==u)}}catch(R){Oe(t,t.return,R)}}function ov(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{tm(t,l)}catch(n){Oe(e,e.return,n)}}}function sv(e,t,l){l.props=Zn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Oe(e,t,n)}}function ml(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var a=e.stateNode,u=zl(e.memoizedProps,a);(a.ref===null||a.ref.name!==u)&&(a.ref=p0(u)),n=a.ref;break;case 7:if(e.stateNode===null){var o=new Yt(e);g(e.child,!1,Yb,o,void 0,void 0),e.stateNode=o}n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(d){Oe(e,t,d)}}function ot(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Oe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Oe(e,t,a)}else l.current=null}function oc(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l title"))),st(n,t,l),n[ut]=e,We(n),t=n;break e;case"link":if(u=H0("link","href",a).get(t+(l.href||""))){for(o=0;ode&&(o=de,de=F,F=o);var _=Nd(d,F),S=Nd(d,de);if(_&&S&&(z.rangeCount!==1||z.anchorNode!==_.node||z.anchorOffset!==_.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var O=U.createRange();O.setStart(_.node,_.offset),z.removeAllRanges(),F>de?(z.addRange(O),z.extend(S.node,S.offset)):(O.setEnd(S.node,S.offset),z.addRange(O))}}}}for(U=[],z=d;z=z.parentNode;)z.nodeType===1&&U.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;dl?32:l,$.T=null,l=as,as=null;var u=al,o=pl;if(Le=0,In=al=null,pl=0,(_e&6)!==0)throw Error(s(331));var d=_e;if(_e|=4,Mv(u.current),Rv(u,u.current,o,l),_e=d,qu(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(au,u)}catch{}return!0}finally{re.p=a,$.T=n,Jv(e,t)}}function Iv(e,t,l){t=Qt(l,t),t=Ao(e.stateNode,t,2),e=un(e,t,2),e!==null&&(iu(e,2),Sl(e))}function Oe(e,t,l){if(e.tag===3)Iv(e,e,l);else for(;t!==null;){if(t.tag===3){Iv(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(vn===null||!vn.has(n))){e=Qt(l,e),l=Zm(2),n=un(t,l,2),n!==null&&(Km(l,n,t,e),iu(n,2),Sl(n));break}}t=t.return}}function fs(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new tb;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(ts=!0,a.add(l),e=ob.bind(null,e,t,l),t.then(e,e))}function ob(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,je===e&&(be&l)===l&&((Ge===4||Ge===3&&(be&62914560)===be&&300>zt()-pc)&&(_e&2)===0?wa(e,0):bc|=l,za===be&&(za=0)),Sl(e)}function $v(e,t){t===0&&(t=Lf()),e=Mn(e,t),e!==null&&(iu(e,t),Sl(e))}function sb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$v(e,l)}function fb(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),$v(e,l)}function db(e,t){return mr(e,t)}var Ha=null,Ba=null,ds=!1,Ac=!1,ms=!1,gn=0;function Sl(e){e!==Ba&&e.next===null&&(Ba===null?Ha=Ba=e:Ba=Ba.next=e),Ac=!0,ds||(ds=!0,vb())}function qu(e,t){if(!ms&&Ac){ms=!0;do for(var l=!1,n=Ha;n!==null;){if(!t)if(e!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var o=n.suspendedLanes,d=n.pingedLanes;u=(1<<31-Dt(42|e)+1)-1,u&=a&~(o&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,e0(n,u))}else u=be,u=bi(n,n===je?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||uu(n,u)||(l=!0,e0(n,u));n=n.next}while(l);ms=!1}}function mb(){Fv()}function Fv(){Ac=ds=!1;var e=0;gn!==0&&Tb()&&(e=gn);for(var t=zt(),l=null,n=Ha;n!==null;){var a=n.next,u=Wv(n,t);u===0?(n.next=null,l===null?Ha=a:l.next=a,a===null&&(Ba=l)):(l=n,(e!==0||(u&3)!==0)&&(Ac=!0)),n=a}Le!==0&&Le!==5||qu(e,!1),gn!==0&&(gn=0)}function Wv(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes&-62914561;0d)break;var R=y.transferSize,U=y.initiatorType;R&&r0(U)&&(y=y.responseEnd,o+=R*(yjc){F.length=Q;break}O=new Promise(zb.bind(O)),F.push(O)}}}if(0"u"?null:document;function j0(e,t,l){var n=Ya;if(n&&typeof t=="string"&&t){var a=Vt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),D0.has(a)||(D0.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),st(t,"link",e),We(t),n.head.appendChild(t)))}}function Jb(e){Gl.D(e),j0("dns-prefetch",e,null)}function Ib(e,t){Gl.C(e,t),j0("preconnect",e,t)}function $b(e,t,l){Gl.L(e,t,l);var n=Ya;if(n&&e&&t){var a='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Vt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Vt(l.imageSizes)+'"]')):a+='[href="'+Vt(e)+'"]';var u=a;switch(t){case"style":u=Ga(e);break;case"script":u=qa(e)}if(!($t.has(u)||(e=w({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),$t.set(u,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Ku(u))||t==="script"&&n.querySelector(ku(u))))){var o=n.createElement("link");st(o,"link",e),t==="style"&&(o[pi]=!0,o.onload=o.onerror=function(){Kf(o)}),We(o),n.head.appendChild(o)}}}function Fb(e,t){Gl.m(e,t);var l=Ya;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Vt(n)+'"][href="'+Vt(e)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=qa(e)}if(!$t.has(u)&&(e=w({rel:"modulepreload",href:e},t),$t.set(u,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ku(u)))return}n=l.createElement("link"),st(n,"link",e),We(n),l.head.appendChild(n)}}}function Wb(e,t,l){Gl.S(e,t,l);var n=Ya;if(n&&e){var a=aa(n).hoistableStyles,u=Ga(e);t=t||"default";var o=a.get(u);if(!o){var d={loading:0,preload:null};if(o=n.querySelector(Ku(u)))d.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},l),(l=$t.get(u))&&Ms(e,l);var y=o=n.createElement("link");We(y),st(y,"link",e),y._p=new Promise(function(N,R){y.onload=N,y.onerror=R}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Rc(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:d},a.set(u,o)}}}function Pb(e,t){Gl.X(e,t);var l=Ya;if(l&&e){var n=aa(l).hoistableScripts,a=qa(e),u=n.get(a);u||(u=l.querySelector(ku(a)),u||(e=w({src:e,async:!0},t),(t=$t.get(a))&&ws(e,t),u=l.createElement("script"),We(u),st(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function ep(e,t){Gl.M(e,t);var l=Ya;if(l&&e){var n=aa(l).hoistableScripts,a=qa(e),u=n.get(a);u||(u=l.querySelector(ku(a)),u||(e=w({src:e,async:!0,type:"module"},t),(t=$t.get(a))&&ws(e,t),u=l.createElement("script"),We(u),st(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function M0(e,t,l,n){var a=(a=kl.current)?Zu(a):null;if(!a)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Ga(l.href),t=aa(a).hoistableStyles,n=t.get(l),n||(n={type:"style",instance:null,count:0,state:null},t.set(l,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ga(l.href);var u=aa(a).hoistableStyles,o=u.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=a.querySelector(Ku(e)))?u._p||(o.instance=u,o.state.loading=5):(u=$t.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},$t.set(e,u)),tp(a,e,u,o.state))),t&&n===null)throw Error(s(528,""));return o}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=qa(l),t=aa(a).hoistableScripts,n=t.get(l),n||(n={type:"script",instance:null,count:0,state:null},t.set(l,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ga(e){return'href="'+Vt(e)+'"'}function Ku(e){return'link[rel="stylesheet"]['+e+"]"}function w0(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function tp(e,t,l,n){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[pi]!==!0){n.loading=1;return}}else t=e.createElement("link"),t[pi]=!0,t.onload=t.onerror=Kf.bind(null,t),st(t,"link",l),We(t),e.head.appendChild(t);n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2})}function qa(e){return'[src="'+Vt(e)+'"]'}function ku(e){return"script[async]"+e}function U0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Vt(l.href)+'"]');if(n)return t.instance=n,We(n),n;var a=w({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),We(n),st(n,"style",a),Rc(n,l.precedence,e),t.instance=n;case"stylesheet":a=Ga(l.href);var u=e.querySelector(Ku(a));if(u)return t.state.loading|=4,t.instance=u,We(u),u;n=w0(l),(a=$t.get(a))&&Ms(n,a),u=(e.ownerDocument||e).createElement("link"),We(u);var o=u;return o._p=new Promise(function(d,y){o.onload=d,o.onerror=y}),st(u,"link",n),t.state.loading|=4,Rc(u,l.precedence,e),t.instance=u;case"script":return u=qa(l.src),(a=e.querySelector(ku(u)))?(t.instance=a,We(a),a):(n=l,(a=$t.get(u))&&(n=w({},l),ws(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),We(a),st(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Rc(n,l.precedence,e));return t.instance}function Rc(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,o=0;o title"):null)}function lp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function B0(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function L0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function G0(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Y0(t),e.suspenseyImages.push(t)),e=up.bind(e),t.decode().then(e,e))}function np(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Ga(n.href),u=t.querySelector(Ku(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,We(u);return}u=t.ownerDocument||t,n=w0(n),(a=$t.get(a))&&Ms(n,a),u=u.createElement("link"),We(u);var o=u;o._p=new Promise(function(d,y){o.onload=d,o.onerror=y}),st(u,"link",n),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var jc=0;function ap(e,t){return e.stylesheets&&e.count===0&&wc(e,e.stylesheets),0jc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function q0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)wc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Ju(){this.count--,q0(this)}function up(){this.imgCount--,q0(this)}var Mc=null;function wc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mc=new Map,t.forEach(ip,e),Mc=null,Ju.call(e))}function ip(e,t){if(!(t.state.loading&4)){var l=Mc.get(e);if(l)var n=l.get(null);else{l=new Map,Mc.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u{function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(f){console.error(f)}}r(),c.exports=Cp()})),Op=i=>i?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function zp(i,c,r=[]){if(c==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:Op(i),size:24,node:c,...r.length>0?{aliases:r}:{}}}var Rp=i=>{let c="",r=!1;for(const f of i){if(f==="-"||f==="_"||f<=" "){r=c.length>0;continue}c.length===0?c+=f.toLowerCase():c+=r?f.toUpperCase():f,r=!1}return c},Dp=i=>{const c=Rp(i);return c.charAt(0).toUpperCase()+c.slice(1)},Ws=(...i)=>i.filter((c,r,f)=>!!c&&c.trim()!==""&&f.indexOf(c)===r).join(" ").trim(),Fn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function qs(i){return i!=null}function jp(i,c={}){const r=c.attributeNames??{},f=E=>r[E]??E,s=i.size??i.width??Fn.width,v=i.size??i.height??Fn.height,h=i.aliases?.filter(E=>typeof E=="string"&&E.trim()!=="").map(E=>`lucide-${E}`)??[],p=[...i.name?[`lucide-${i.name}`]:[],...h],A=c.className?.split(" ").filter(Boolean)??[],C=c.includeDefaultClasses===!1?Ws(...A):Ws("lucide",...p,...A),H=c.absoluteStrokeWidth?Number(c.strokeWidth??Fn["stroke-width"])*Number(i.size??i.width??Fn.width)/Number(c.size??c.width??Fn.width):c.strokeWidth??Fn["stroke-width"];return["svg",{...Object.entries(Fn).reduce((E,[g,D])=>(E[f(g)]=D,E),{}),..."color"in c&&c.color&&{[f("stroke")]:c.color},..."size"in c&&qs(c.size)&&{[f("width")]:c.size,[f("height")]:c.size},..."width"in c&&qs(c.width)&&{[f("width")]:c.width},..."height"in c&&qs(c.height)&&{[f("height")]:c.height},[f("stroke-width")]:H,...C&&{[f("class")]:C},[f("viewBox")]:`0 0 ${s} ${v}`,...c.hasA11yProp===!1?{[f("aria-hidden")]:"true"}:{},..."attributes"in c&&c.attributes},i.node.map(E=>{const[g,D,G]=E,M=c.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...D}:D;return G?[g,M,G]:[g,M]})]}function Mp(i,c={}){return jp(i,{...c,attributeNames:{...c.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var wp=i=>{for(const c in i)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1},b=Rh(hf(),1),Up=(0,b.createContext)({}),Hp=()=>(0,b.useContext)(Up),Bp=(0,b.forwardRef)(({color:i,size:c,width:r,height:f,strokeWidth:s,absoluteStrokeWidth:v,nonScalingStroke:h,className:p="",children:A,iconNode:C=[],icon:H={node:C,aliases:[],size:24},...E},g)=>{const{size:D=24,strokeWidth:G=2,absoluteStrokeWidth:M=!1,nonScalingStroke:L=!1,color:V="currentColor",className:X=""}=Hp()??{},B=!!A||wp(E),[Z,ue,ee=[]]=Mp(H,{color:i??V,width:r??c??D,height:f??c??D,strokeWidth:s??G,absoluteStrokeWidth:v??M,nonScalingStroke:h??L,className:Ws(X,p),hasA11yProp:B,attributes:E});return(0,b.createElement)(Z,{ref:g,...ue},[...ee.map(([W,w])=>(0,b.createElement)(W,w)),...Array.isArray(A)?A:[A]])});function mt(i,c=[],r=[]){const f=typeof i=="string"?zp(i,c,r):i,s=(0,b.forwardRef)(({className:v,...h},p)=>(0,b.createElement)(Bp,{ref:p,icon:f,className:v,...h}));return f.name&&(s.displayName=Dp(f.name)),s}var jh={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};jh.node;var Lp=mt(jh),Mh={name:"calculator",size:24,node:[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]};Mh.node;var Yp=mt(Mh),wh={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};wh.node;var Gp=mt(wh),Uh={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};Uh.node;var qp=mt(Uh),Hh={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};Hh.node;var Vp=mt(Hh),Bh={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};Bh.node;var Xp=mt(Bh),Lh={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Lh.node;var Qp=mt(Lh),Yh={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Yh.node;var Zp=mt(Yh),Gh={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};Gh.node;var Pn=mt(Gh),qh={name:"share-2",size:24,node:[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]};qh.node;var Kp=mt(qh),Vh={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};Vh.node;var kp=mt(Vh),Xh={name:"shield-question-mark",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["shield-question"]};Xh.node;var Jp=mt(Xh),Qh={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};Qh.node;var Ip=mt(Qh),Zh={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};Zh.node;var $p=mt(Zh),Kh={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};Kh.node;var Fp=mt(Kh),kh={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};kh.node;var Wp=mt(kh),Pp=Ap();function Jh(i){var c,r,f="";if(typeof i=="string"||typeof i=="number")f+=i;else if(typeof i=="object")if(Array.isArray(i)){var s=i.length;for(c=0;c{const r=new Array(i.length+c.length);for(let f=0;f({classGroupId:i,validator:c}),$h=(i=new Map,c=null,r)=>({nextPart:i,validators:c,classGroupId:r}),Wc="-",eh=[],lS="arbitrary..",nS=i=>{const c=uS(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:f}=i;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return aS(h);const p=h.split(Wc),A=p[0]===""&&p.length>1?1:0;return Fh(p,A,c)},getConflictingClassGroupIds:(h,p)=>{if(p){const A=f[h],C=r[h];return A?C?eS(C,A):A:C||eh}return r[h]||eh}}},Fh=(i,c,r)=>{if(i.length-c===0)return r.classGroupId;const f=i[c],s=r.nextPart.get(f);if(s){const A=Fh(i,c+1,s);if(A)return A}const v=r.validators;if(v===null)return;const h=c===0?i.join(Wc):i.slice(c).join(Wc),p=v.length;for(let A=0;Ai.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const c=i.slice(1,-1),r=c.indexOf(":"),f=c.slice(0,r);return f?lS+f:void 0})(),uS=i=>{const{theme:c,classGroups:r}=i;return iS(r,c)},iS=(i,c)=>{const r=$h();for(const f in i){const s=i[f];gf(s,r,f,c)}return r},gf=(i,c,r,f)=>{const s=i.length;for(let v=0;v{if(typeof i=="string"){rS(i,c,r);return}if(typeof i=="function"){oS(i,c,r,f);return}sS(i,c,r,f)},rS=(i,c,r)=>{const f=i===""?c:Wh(c,i);f.classGroupId=r},oS=(i,c,r,f)=>{if(fS(i)){gf(i(f),c,r,f);return}c.validators===null&&(c.validators=[]),c.validators.push(tS(r,i))},sS=(i,c,r,f)=>{const s=Object.entries(i),v=s.length;for(let h=0;h{let r=i;const f=c.split(Wc),s=f.length;for(let v=0;v"isThemeGetter"in i&&i.isThemeGetter===!0,dS=i=>{if(i<1)return{get:()=>{},set:()=>{}};let c=0,r=Object.create(null),f=Object.create(null);const s=(v,h)=>{r[v]=h,c++,c>i&&(c=0,f=r,r=Object.create(null))};return{get(v){let h=r[v];if(h!==void 0)return h;if((h=f[v])!==void 0)return s(v,h),h},set(v,h){v in r?r[v]=h:s(v,h)}}},Ps="!",th=":",mS=[],lh=(i,c,r,f,s)=>({modifiers:i,hasImportantModifier:c,baseClassName:r,maybePostfixModifierPosition:f,isExternal:s}),vS=i=>{const{prefix:c,experimentalParseClassName:r}=i;let f=s=>{const v=[];let h=0,p=0,A=0,C;const H=s.length;for(let M=0;MA?C-A:void 0;return lh(v,D,g,G)};if(c){const s=c+th,v=f;f=h=>h.startsWith(s)?v(h.slice(s.length)):lh(mS,!1,h,void 0,!0)}if(r){const s=f;f=v=>r({className:v,parseClassName:s})}return f},hS=i=>{const c=new Map;return i.orderSensitiveModifiers.forEach((r,f)=>{c.set(r,1e6+f)}),r=>{const f=[];let s=[];for(let v=0;v0&&(s.sort(),f.push(...s),s=[]),f.push(h)):s.push(h)}return s.length>0&&(s.sort(),f.push(...s)),f}},gS=i=>({cache:dS(i.cacheSize),parseClassName:vS(i),sortModifiers:hS(i),postfixLookupClassGroupIds:yS(i),...nS(i)}),yS=i=>{const c=Object.create(null),r=i.postfixLookupClassGroups;if(r)for(let f=0;f{const{parseClassName:r,getClassGroupId:f,getConflictingClassGroupIds:s,sortModifiers:v,postfixLookupClassGroupIds:h}=c,p=[],A=i.trim().split(bS);let C="";for(let H=A.length-1;H>=0;H-=1){const E=A[H],{isExternal:g,modifiers:D,hasImportantModifier:G,baseClassName:M,maybePostfixModifierPosition:L}=r(E);if(g){C=E+(C.length>0?" "+C:C);continue}let V=!!L,X;if(V){X=f(M.substring(0,L));const W=X&&h[X]?f(M):void 0;W&&W!==X&&(X=W,V=!1)}else X=f(M);if(!X){if(!V){C=E+(C.length>0?" "+C:C);continue}if(X=f(M),!X){C=E+(C.length>0?" "+C:C);continue}V=!1}const B=D.length===0?"":D.length===1?D[0]:v(D).join(":"),Z=G?B+Ps:B,ue=Z+X;if(p.indexOf(ue)>-1)continue;p.push(ue);const ee=s(X,V);for(let W=0;W0?" "+C:C)}return C},SS=(...i)=>{let c=0,r,f,s="";for(;c{if(typeof i=="string")return i;let c,r="";for(let f=0;f{let r,f,s,v;const h=A=>{const C=c.reduce((H,E)=>E(H),i());return r=gS(C),f=r.cache.get,s=r.cache.set,v=p,p(A)},p=A=>{const C=f(A);if(C)return C;const H=pS(A,r);return s(A,H),H};return v=h,(...A)=>v(SS(...A))},ES=[],$e=i=>{const c=r=>r[i]||ES;return c.isThemeGetter=!0,c.themeKey=i,c},eg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NS=/\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$/,CS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,AS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=i=>TS.test(i),ve=i=>!!i&&!Number.isNaN(Number(i)),xl=i=>!!i&&Number.isInteger(Number(i)),Vs=i=>i.endsWith("%")&&ve(i.slice(0,-1)),ql=i=>_S.test(i),lg=()=>!0,zS=i=>NS.test(i)&&!CS.test(i),yf=()=>!1,RS=i=>AS.test(i),DS=i=>OS.test(i),jS=i=>!J(i)&&!I(i),MS=i=>i.startsWith("@container")&&(i[10]==="/"&&i[11]!==void 0||i[11]==="s"&&i[16]!==void 0&&i.startsWith("-size/",10)||i[11]==="n"&&i[18]!==void 0&&i.startsWith("-normal/",10)),wS=i=>An(i,ug,yf),J=i=>eg.test(i),Wn=i=>An(i,ig,zS),nh=i=>An(i,VS,ve),US=i=>An(i,rg,lg),HS=i=>An(i,cg,yf),ah=i=>An(i,ng,yf),BS=i=>An(i,ag,DS),qc=i=>An(i,og,RS),I=i=>tg.test(i),Wu=i=>ea(i,ig),LS=i=>ea(i,cg),uh=i=>ea(i,ng),YS=i=>ea(i,ug),GS=i=>ea(i,ag),Vc=i=>ea(i,og,!0),qS=i=>ea(i,rg,!0),An=(i,c,r)=>{const f=eg.exec(i);return f?f[1]?c(f[1]):r(f[2]):!1},ea=(i,c,r=!1)=>{const f=tg.exec(i);return f?f[1]?c(f[1]):r:!1},ng=i=>i==="position"||i==="percentage",ag=i=>i==="image"||i==="url",ug=i=>i==="length"||i==="size"||i==="bg-size",ig=i=>i==="length",VS=i=>i==="number",cg=i=>i==="family-name",rg=i=>i==="number"||i==="weight",og=i=>i==="shadow",XS=()=>{const i=$e("color"),c=$e("font"),r=$e("text"),f=$e("font-weight"),s=$e("tracking"),v=$e("leading"),h=$e("breakpoint"),p=$e("container"),A=$e("spacing"),C=$e("radius"),H=$e("shadow"),E=$e("inset-shadow"),g=$e("text-shadow"),D=$e("drop-shadow"),G=$e("blur"),M=$e("perspective"),L=$e("aspect"),V=$e("ease"),X=$e("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ue=()=>[...Z(),I,J],ee=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],w=()=>[I,J,A],ne=()=>[Tn,"full","auto",...w()],He=()=>[xl,"none","subgrid",I,J],Ce=()=>["auto",{span:["full",xl,I,J]},xl,I,J],se=()=>[xl,"auto",I,J],ke=()=>["auto","min","max","fr",I,J],Fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],De=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...w()],ce=()=>[Tn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],ae=()=>[p,Tn,"screen","full","dvw","lvw","svw","min","max","fit",...w()],xe=()=>[Tn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],K=()=>[i,I,J],Je=()=>[...Z(),uh,ah,{position:[I,J]}],pt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pt=()=>["auto","cover","contain",YS,wS,{size:[I,J]}],vt=()=>[Vs,Wu,Wn],x=()=>["","none","full",C,I,J],Y=()=>["",ve,Wu,Wn],P=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[ve,Vs,uh,ah],Se=()=>["","none",G,I,J],ye=()=>["none",ve,I,J],$=()=>["none",ve,I,J],re=()=>[ve,I,J],St=()=>[Tn,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ql],breakpoint:[ql],color:[lg],container:[ql],"drop-shadow":[ql],ease:["in","out","in-out"],font:[jS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ql],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ql],shadow:[ql],spacing:["px",ve],text:[ql],"text-shadow":[ql],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tn,J,I,L]}],container:["container"],"container-type":[{"@container":["","normal","size",I,J]}],"container-named":[MS],columns:[{columns:[ve,"auto",J,I,p]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ue()}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{"inset-s":ne(),start:ne()}],end:[{"inset-e":ne(),end:ne()}],"inset-bs":[{"inset-bs":ne()}],"inset-be":[{"inset-be":ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[xl,"auto",I,J]}],basis:[{basis:[Tn,"full","auto",p,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ve,Tn,"auto","initial","none",J]}],grow:[{grow:["",ve,I,J]}],shrink:[{shrink:["",ve,I,J]}],order:[{order:[xl,"first","last","none",I,J]}],"grid-cols":[{"grid-cols":He()}],"col-start-end":[{col:Ce()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":He()}],"row-start-end":[{row:Ce()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ke()}],"auto-rows":[{"auto-rows":ke()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...Fe(),"normal"]}],"justify-items":[{"justify-items":[...De(),"normal"]}],"justify-self":[{"justify-self":["auto",...De()]}],"align-content":[{content:["normal",...Fe()]}],"align-items":[{items:[...De(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...De(),{baseline:["","last"]}]}],"place-content":[{"place-content":Fe()}],"place-items":[{"place-items":[...De(),"baseline"]}],"place-self":[{"place-self":["auto",...De()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mbs:[{mbs:q()}],mbe:[{mbe:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[p,"screen",...ce()]}],"min-w":[{"min-w":[p,"screen","none",...ce()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[h]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh","none",...ce()]}],"font-size":[{text:["base",r,Wu,Wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[f,qS,US]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vs,J]}],"font-family":[{font:[LS,HS,c]}],"font-features":[{"font-features":[J]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,I,J]}],"line-clamp":[{"line-clamp":[ve,"none",I,nh]}],leading:[{leading:["none",v,...w()]}],"list-image":[{"list-image":["none",I,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:[ve,"from-font","auto",I,Wn]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ve,"auto",I,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[xl,I,J]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Je()}],"bg-repeat":[{bg:pt()}],"bg-size":[{bg:Pt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xl,I,J],radial:["",I,J],conic:["",xl,I,J]},GS,BS]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:vt()}],"gradient-via-pos":[{via:vt()}],"gradient-to-pos":[{to:vt()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-bs":[{"border-bs":Y()}],"border-w-be":[{"border-be":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...P(),"hidden","none"]}],"divide-style":[{divide:[...P(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...P(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ve,I,J]}],"outline-w":[{outline:["",ve,Wu,Wn]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","inner","none",H,Vc,qc]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",E,Vc,qc]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ve,Wn]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,Vc,qc]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ve,I,J]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[I,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Z()}],"mask-image-conic-pos":[{"mask-conic":[ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Je()}],"mask-repeat":[{mask:pt()}],"mask-size":[{mask:Pt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,J]}],filter:[{filter:["","none",I,J]}],blur:[{blur:Se()}],brightness:[{brightness:[ve,I,J]}],contrast:[{contrast:[ve,I,J]}],"drop-shadow":[{"drop-shadow":["","none",D,Vc,qc]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ve,I,J]}],"hue-rotate":[{"hue-rotate":[ve,I,J]}],invert:[{invert:["",ve,I,J]}],saturate:[{saturate:[ve,I,J]}],sepia:[{sepia:["",ve,I,J]}],"backdrop-filter":[{"backdrop-filter":["","none",I,J]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[ve,I,J]}],"backdrop-contrast":[{"backdrop-contrast":[ve,I,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ve,I,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ve,I,J]}],"backdrop-invert":[{"backdrop-invert":["",ve,I,J]}],"backdrop-opacity":[{"backdrop-opacity":[ve,I,J]}],"backdrop-saturate":[{"backdrop-saturate":[ve,I,J]}],"backdrop-sepia":[{"backdrop-sepia":["",ve,I,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",I,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ve,"initial",I,J]}],ease:[{ease:["linear","initial",V,I,J]}],delay:[{delay:[ve,I,J]}],animate:[{animate:["none",X,I,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,I,J]}],"perspective-origin":[{"perspective-origin":ue()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[I,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:ue()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],zoom:[{zoom:[xl,I,J]}],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":K()}],"scrollbar-track-color":[{"scrollbar-track":K()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I,J]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ve,Wu,Wn,nh]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QS=xS(XS);function ft(...i){return QS(Ih(i))}var Ia="https://your-domain.com",Nn="https://t.me/iishkogatewaybot?start=site",ni="/auth/telegram/start",ai="/api/pricing",ui=`${Ia}/v1`,sg="/chat/completions",ZS="/images/generations",ei="IISHKO GATEWAY",ef=[{label:"Главная",href:"/",page:"home"},{label:"Тарифы",href:"/pricing",page:"pricing"},{label:"Документация",href:"/docs",page:"docs"},{label:"О сервисе",href:"/about",page:"about"}],ii={home:{page:"home",title:"IISHKO GATEWAY — единый API-шлюз к AI-моделям",description:"Единый OpenAI-совместимый API-шлюз к моделям разных вендоров: один ключ, один баланс, прозрачная тарификация по множителям входа и выхода. Подключение через Telegram-бот.",canonical:`${Ia}/`,h1:"Единый API-доступ к AI-моделям"},pricing:{page:"pricing",title:"Тарифы и цены моделей — IISHKO GATEWAY",description:"Актуальные коэффициенты тарификации и цены моделей напрямую из /api/pricing. Без выдуманных сумм: множители входа и выхода либо цена за вызов с собственной единицей измерения.",canonical:`${Ia}/pricing`,h1:"Тарифы моделей"},docs:{page:"docs",title:"Документация и быстрый старт — IISHKO GATEWAY",description:"Как получить ключ, указать base URL и выполнить первый запрос к чату или генерации изображений через OpenAI-совместимый API шлюза IISHKO GATEWAY.",canonical:`${Ia}/docs`,h1:"Документация"},about:{page:"about",title:"О сервисе — IISHKO GATEWAY",description:"Что такое API-шлюз, какие задачи он решает, как устроена модель оплаты и как получить поддержку через Telegram.",canonical:`${Ia}/about`,h1:"О сервисе"},signin:{page:"signin",title:"Вход через Telegram — IISHKO GATEWAY",description:"Авторизация через Telegram-бот: получите API-ключ и доступ к консоли шлюза.",canonical:`${Ia}/sign-in`,h1:"Вход в шлюз",noindex:!0}},KS=Object.defineProperty,bf=(i,c)=>KS(i,"name",{value:c,configurable:!0});function tf(i,c){if(typeof i=="function")return i(c);i!=null&&(i.current=c)}bf(tf,"setRef");function fg(...i){return c=>{let r=!1;const f=i.map(s=>{const v=tf(s,c);return!r&&typeof v=="function"&&(r=!0),v});if(r)return()=>{for(let s=0;skS(i,"name",{value:c,configurable:!0});function Cn(i){const c=b.forwardRef((r,f)=>{let{children:s,...v}=r,h=null,p=!1;const A=[];lf(s)&&typeof Xc=="function"&&(s=Xc(s._payload)),b.Children.forEach(s,g=>{if(hg(g)){p=!0;const D=g;let G="child"in D.props?D.props.child:D.props.children;lf(G)&&typeof Xc=="function"&&(G=Xc(G._payload)),h=$S(D,G),A.push(h?.props?.children)}else A.push(g)}),h?h=b.cloneElement(h,void 0,A):!p&&b.Children.count(s)===1&&b.isValidElement(s)&&(h=s);const C=h?vg(h):void 0,H=At(f,C);if(!h){if(s||s===0)throw new Error(p?PS(i):WS(i));return s}const E=mg(v,h.props??{});return h.type!==b.Fragment&&(E.ref=f?H:C),b.cloneElement(h,E)});return c.displayName=`${i}.Slot`,c}Wt(Cn,"createSlot");var JS=Cn("Slot"),dg=Symbol.for("radix.slottable");function IS(i){const c=Wt(r=>"child"in r?r.children(r.child):r.children,"Slottable");return c.displayName=`${i}.Slottable`,c.__radixId=dg,c}Wt(IS,"createSlottable");var $S=Wt((i,c)=>{if("child"in i.props){const r=i.props.child;return b.isValidElement(r)?b.cloneElement(r,void 0,i.props.children(r.props.children)):null}return b.isValidElement(c)?c:null},"getSlottableElementFromSlottable");function mg(i,c){const r={...c};for(const f in c){const s=i[f],v=c[f];/^on[A-Z]/.test(f)?s&&v?r[f]=(...h)=>{const p=v(...h);return s(...h),p}:s&&(r[f]=s):f==="style"?r[f]={...s,...v}:f==="className"?r[f]=[s,v].filter(Boolean).join(" "):f==="aria-describedby"&&(r[f]=yg(v,s))}return{...i,...r}}Wt(mg,"mergeProps");function vg(i){let c=Object.getOwnPropertyDescriptor(i.props,"ref")?.get,r=c&&"isReactWarning"in c&&c.isReactWarning;return r?i.ref:(c=Object.getOwnPropertyDescriptor(i,"ref")?.get,r=c&&"isReactWarning"in c&&c.isReactWarning,r?i.props.ref:i.props.ref||i.ref)}Wt(vg,"getElementRef");function hg(i){return b.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===dg}Wt(hg,"isSlottable");var FS=Symbol.for("react.lazy");function lf(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===FS&&"_payload"in i&&gg(i._payload)}Wt(lf,"isLazyComponent");function gg(i){return typeof i=="object"&&i!==null&&"then"in i}Wt(gg,"isPromiseLike");function yg(...i){const c=new Set;for(const r of i)if(typeof r=="string")for(const f of String(r).trim().split(/\s+/))f&&c.add(f);return c.size>0?Array.from(c).join(" "):void 0}Wt(yg,"concatAriaDescribedby");var WS=Wt(i=>`${i} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),PS=Wt(i=>`${i} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Xc=b[" use ".trim().toString()],ih=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,ch=Ih,pf=(i,c)=>r=>{var f;if(c?.variants==null)return ch(i,r?.class,r?.className);const{variants:s,defaultVariants:v}=c,h=Object.keys(s).map(C=>{const H=r?.[C],E=v?.[C];if(H===null)return null;const g=ih(H)||ih(E);return s[C][g]}),p=r&&Object.entries(r).reduce((C,H)=>{let[E,g]=H;return g===void 0||(C[E]=g),C},{}),A=c==null||(f=c.compoundVariants)===null||f===void 0?void 0:f.reduce((C,H)=>{let{class:E,className:g,...D}=H;return Object.entries(D).every(G=>{let[M,L]=G;return Array.isArray(L)?L.includes({...v,...p}[M]):{...v,...p}[M]===L})?[...C,E,g]:C},[]);return ch(i,h,A,r?.class,r?.className)},ex=_l((i=>{var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function f(s,v,h){var p=null;if(h!==void 0&&(p=""+h),v.key!==void 0&&(p=""+v.key),"key"in v){h={};for(var A in v)A!=="key"&&(h[A]=v[A])}else h=v;return v=h.ref,{$$typeof:c,type:s,key:p,ref:v!==void 0?v:null,props:h}}i.Fragment=r,i.jsx=f,i.jsxs=f})),tx=_l(((i,c)=>{c.exports=ex()})),m=tx(),lx=pf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled: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/88",destructive:"bg-destructive text-white hover:bg-destructive/90",outline:"border border-input bg-transparent 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-5 text-sm",sm:"h-9 rounded-md px-3 text-sm",lg:"h-11 rounded-md px-7 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Tl=b.forwardRef(({className:i,variant:c,size:r,asChild:f=!1,...s},v)=>(0,m.jsx)(f?JS:"button",{className:ft(lx({variant:c,size:r}),i),ref:v,...s}));Tl.displayName="Button";var nx=Object.defineProperty,eu=(i,c)=>nx(i,"name",{value:c,configurable:!0}),bg=!!(typeof window<"u"&&window.document&&window.document.createElement);function il(i,c,{checkForDefaultPrevented:r=!0}={}){return eu(function(s){if(i?.(s),r===!1||!s||!s.defaultPrevented)return c?.(s)},"handleEvent")}eu(il,"composeEventHandlers");function ax(i){if(!bg)throw new Error("Cannot access window outside of the DOM");return i?.ownerDocument?.defaultView??window}eu(ax,"getOwnerWindow");function nf(i){if(!bg)throw new Error("Cannot access document outside of the DOM");return i?.ownerDocument??document}eu(nf,"getOwnerDocument");function pg(i,c=!1){const{activeElement:r}=nf(i);if(!r?.nodeName)return null;if(Sg(r)&&r.contentDocument)return pg(r.contentDocument.body,c);if(c){const f=r.getAttribute("aria-activedescendant");if(f){const s=nf(r).getElementById(f);if(s)return s}}return r}eu(pg,"getActiveElement");function Sg(i){return i.tagName==="IFRAME"}eu(Sg,"isFrame");var ux=Object.defineProperty,Ft=(i,c)=>ux(i,"name",{value:c,configurable:!0});function ix(i,c){const r=b.createContext(c);r.displayName=i+"Context";const f=Ft(v=>{const{children:h,...p}=v,A=b.useMemo(()=>p,Object.values(p));return(0,m.jsx)(r.Provider,{value:A,children:h})},"Provider");f.displayName=i+"Provider";function s(v,h={}){const{optional:p=!1}=h,A=b.useContext(r);if(A)return A;if(c!==void 0)return c;if(!p)throw new Error(`\`${v}\` must be used within \`${i}\``)}return Ft(s,"useContext"),[f,s]}Ft(ix,"createContext");function tu(i,c=[]){let r=[];function f(v,h){const p=b.createContext(h);p.displayName=v+"Context";const A=r.length;r=[...r,h];const C=Ft(E=>{const{scope:g,children:D,...G}=E,M=g?.[i]?.[A]||p,L=b.useMemo(()=>G,Object.values(G));return(0,m.jsx)(M.Provider,{value:L,children:D})},"Provider");C.displayName=v+"Provider";function H(E,g,D={}){const{optional:G=!1}=D,M=g?.[i]?.[A]||p,L=b.useContext(M);if(L)return L;if(h!==void 0)return h;if(!G)throw new Error(`\`${E}\` must be used within \`${v}\``)}return Ft(H,"useContext"),[C,H]}Ft(f,"createContext");const s=Ft(()=>{const v=r.map(h=>b.createContext(h));return Ft(function(p){const A=p?.[i]||v;return b.useMemo(()=>({[`__scope${i}`]:{...p,[i]:A}}),[p,A])},"useScope")},"createScope");return s.scopeName=i,[f,xg(s,...c)]}Ft(tu,"createContextScope");function xg(...i){const c=i[0];if(i.length===1)return c;const r=Ft(()=>{const f=i.map(s=>({useScope:s(),scopeName:s.scopeName}));return Ft(function(v){const h=f.reduce((p,{useScope:A,scopeName:C})=>{const H=A(v)[`__scope${C}`];return{...p,...H}},{});return b.useMemo(()=>({[`__scope${c.scopeName}`]:h}),[h])},"useComposedScopes")},"createScope");return r.scopeName=c.scopeName,r}Ft(xg,"composeContextScopes");var Zl=globalThis?.document?b.useLayoutEffect:()=>{},cx=Object.defineProperty,rx=(i,c)=>cx(i,"name",{value:c,configurable:!0}),ox=b[" useId ".trim().toString()]||(()=>{}),sx=0;function Fa(i){const[c,r]=b.useState(ox());return Zl(()=>{i||r(f=>f??String(sx++))},[i]),i||(c?`radix-${c}`:"")}rx(Fa,"useId");var fx=Object.defineProperty,dx=(i,c)=>fx(i,"name",{value:c,configurable:!0}),rh=b[" useEffectEvent ".trim().toString()],oh=b[" useInsertionEffect ".trim().toString()];function Eg(i){if(typeof rh=="function")return rh(i);const c=b.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof oh=="function"?oh(()=>{c.current=i}):Zl(()=>{c.current=i}),b.useMemo(()=>((...r)=>c.current?.(...r)),[])}dx(Eg,"useEffectEvent");var mx=Object.defineProperty,ci=(i,c)=>mx(i,"name",{value:c,configurable:!0}),vx=b[" useInsertionEffect ".trim().toString()]||Zl;function ri({prop:i,defaultProp:c,onChange:r=ci(()=>{},"onChange"),caller:f}){const[s,v,h]=Tg({defaultProp:c,onChange:r}),p=i!==void 0;return[p?i:s,b.useCallback(C=>{if(p){const H=_g(C)?C(i):C;H!==i&&h.current?.(H)}else v(C)},[p,i,v,h])]}ci(ri,"useControllableState");function Tg({defaultProp:i,onChange:c}){const[r,f]=b.useState(i),s=b.useRef(r),v=b.useRef(c);return vx(()=>{v.current=c},[c]),b.useEffect(()=>{s.current!==r&&(v.current?.(r),s.current=r)},[r,s]),[r,f,v]}ci(Tg,"useUncontrolledState");function _g(i){return typeof i=="function"}ci(_g,"isFunction");var sh=Symbol("RADIX:SYNC_STATE");function hx(i,c,r,f){const{prop:s,defaultProp:v,onChange:h,caller:p}=c,A=s!==void 0,C=Eg(h),H=[{...r,state:v}];f&&H.push(f);const[E,g]=b.useReducer((L,V)=>{if(V.type===sh)return{...L,state:V.state};const X=i(L,V);return A&&!Object.is(X.state,L.state)&&C(X.state),X},...H),D=E.state,G=b.useRef(D);b.useEffect(()=>{G.current!==D&&(G.current=D,A||C(D))},[D,G,A]);const M=b.useMemo(()=>s!==void 0?{...E,state:s}:E,[E,s]);return b.useEffect(()=>{A&&!Object.is(s,E.state)&&g({type:sh,state:s})},[s,E.state,A]),[M,g]}ci(hx,"useControllableStateReducer");var Ng=Rh(Dh(),1),gx=Object.defineProperty,yx=(i,c)=>gx(i,"name",{value:c,configurable:!0}),qt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((i,c)=>{const r=Cn(`Primitive.${c}`),f=b.forwardRef((s,v)=>{const{asChild:h,...p}=s,A=h?r:c;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(A,{...p,ref:v})});return f.displayName=`Primitive.${c}`,{...i,[c]:f}},{});function Cg(i,c){i&&Ng.flushSync(()=>i.dispatchEvent(c))}yx(Cg,"dispatchDiscreteCustomEvent");var bx=Object.defineProperty,px=(i,c)=>bx(i,"name",{value:c,configurable:!0});function Wa(i){const c=b.useRef(i);return b.useEffect(()=>{c.current=i}),b.useMemo(()=>((...r)=>c.current?.(...r)),[])}px(Wa,"useCallbackRef");var Sx=Object.defineProperty,lt=(i,c)=>Sx(i,"name",{value:c,configurable:!0}),af="dismissableLayer.update",xx="dismissableLayer.pointerDownOutside",Ex="dismissableLayer.focusOutside",fh,Ag=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Tx=b.forwardRef(lt(function(c,r){const{disableOutsidePointerEvents:f=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:v,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:A,onDismiss:C,...H}=c,E=b.useContext(Ag),[g,D]=b.useState(null),G=g?.ownerDocument??globalThis?.document,[,M]=b.useState({}),L=At(r,D),V=Array.from(E.layers),[X]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),B=X?V.indexOf(X):-1,Z=g?V.indexOf(g):-1,ue=E.layersWithOutsidePointerEventsDisabled.size>0,ee=Z>=B,W=b.useRef(!1),w=zg(se=>{h?.(se),A?.(se),se.defaultPrevented||C?.()},{ownerDocument:G,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:W,dismissableSurfaces:E.dismissableSurfaces,shouldHandlePointerDownOutside:b.useCallback(se=>{if(!(se instanceof Node))return!1;const ke=[...E.branches].some(Fe=>Fe.contains(se));return ee&&!ke},[E.branches,ee])}),ne=Rg(se=>{if(s&&W.current)return;const ke=se.target;[...E.branches].some(Fe=>Fe.contains(ke))||(p?.(se),A?.(se),se.defaultPrevented||C?.())},G),He=g?Z===V.length-1:!1,Ce=Wa(se=>{se.key==="Escape"&&(v?.(se),!se.defaultPrevented&&C&&(se.preventDefault(),C()))});return b.useEffect(()=>{if(He)return G.addEventListener("keydown",Ce,{capture:!0}),()=>G.removeEventListener("keydown",Ce,{capture:!0})},[G,He,Ce]),b.useEffect(()=>{if(g)return f&&(E.layersWithOutsidePointerEventsDisabled.size===0&&(fh=G.body.style.pointerEvents,G.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(g)),E.layers.add(g),uf(),()=>{f&&(E.layersWithOutsidePointerEventsDisabled.delete(g),E.layersWithOutsidePointerEventsDisabled.size===0&&(G.body.style.pointerEvents=fh))}},[g,G,f,E]),b.useEffect(()=>()=>{g&&(E.layers.delete(g),E.layersWithOutsidePointerEventsDisabled.delete(g),uf())},[g,E]),b.useEffect(()=>{const se=lt(()=>M({}),"handleUpdate");return document.addEventListener(af,se),()=>document.removeEventListener(af,se)},[]),(0,m.jsx)(qt.div,{...H,ref:L,style:{pointerEvents:ue?ee?"auto":"none":void 0,...c.style},onFocusCapture:il(c.onFocusCapture,ne.onFocusCapture),onBlurCapture:il(c.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:il(c.onPointerDownCapture,w.onPointerDownCapture)})},"DismissableLayer"));function Og(){const i=b.useContext(Ag),[c,r]=b.useState(null);return b.useEffect(()=>{if(c)return i.dismissableSurfaces.add(c),()=>{i.dismissableSurfaces.delete(c)}},[c,i.dismissableSurfaces]),r}lt(Og,"useDismissableLayerSurface");var _x=lt(()=>!0,"IS_TRUE");function zg(i,c){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:f=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:v,shouldHandlePointerDownOutside:h=_x}=c,p=Wa(i),A=b.useRef(!1),C=b.useRef(!1),H=b.useRef(new Map),E=b.useRef(()=>{});return b.useEffect(()=>{function g(){C.current=!1,s.current=!1,H.current.clear()}lt(g,"resetOutsideInteraction");function D(){return Array.from(H.current.values()).some(Boolean)}lt(D,"isOutsideInteractionIntercepted");function G(B){if(!C.current)return;const Z=B.target;Z instanceof Node&&[...v].some(ue=>ue.contains(Z))||H.current.set(B.type,!0),B.type==="click"&&window.setTimeout(()=>{C.current&&E.current()},0)}lt(G,"handleInteractionCapture");function M(B){C.current&&H.current.set(B.type,!1)}lt(M,"handleInteractionBubble");const L=lt(B=>{if(B.target&&!A.current){let Z=function(){r.removeEventListener("click",E.current);const ee=D();g(),ee||Sf(xx,p,ue,{discrete:!0})};if(lt(Z,"handleAndDispatchPointerDownOutsideEvent"),!h(B.target)){r.removeEventListener("click",E.current),g(),A.current=!1;return}const ue={originalEvent:B};C.current=!0,s.current=f&&B.button===0,H.current.clear(),!f||B.button!==0?Z():(r.removeEventListener("click",E.current),E.current=Z,r.addEventListener("click",E.current,{once:!0}))}else r.removeEventListener("click",E.current),g();A.current=!1},"handlePointerDown"),V=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const B of V)r.addEventListener(B,G,!0),r.addEventListener(B,M);const X=window.setTimeout(()=>{r.addEventListener("pointerdown",L)},0);return()=>{window.clearTimeout(X),r.removeEventListener("pointerdown",L),r.removeEventListener("click",E.current);for(const B of V)r.removeEventListener(B,G,!0),r.removeEventListener(B,M)}},[r,p,f,s,v,h]),{onPointerDownCapture:lt(()=>A.current=!0,"onPointerDownCapture")}}lt(zg,"usePointerDownOutside");function Rg(i,c=globalThis?.document){const r=Wa(i),f=b.useRef(!1);return b.useEffect(()=>{const s=lt(v=>{v.target&&!f.current&&Sf(Ex,r,{originalEvent:v},{discrete:!1})},"handleFocus");return c.addEventListener("focusin",s),()=>c.removeEventListener("focusin",s)},[c,r]),{onFocusCapture:lt(()=>f.current=!0,"onFocusCapture"),onBlurCapture:lt(()=>f.current=!1,"onBlurCapture")}}lt(Rg,"useFocusOutside");function uf(){const i=new CustomEvent(af);document.dispatchEvent(i)}lt(uf,"dispatchUpdate");function Sf(i,c,r,{discrete:f}){const s=r.originalEvent.target,v=new CustomEvent(i,{bubbles:!1,cancelable:!0,detail:r});c&&s.addEventListener(i,c,{once:!0}),f?Cg(s,v):s.dispatchEvent(v)}lt(Sf,"handleAndDispatchCustomEvent");var Nx=Object.defineProperty,Ke=(i,c)=>Nx(i,"name",{value:c,configurable:!0}),Xs="focusScope.autoFocusOnMount",Qs="focusScope.autoFocusOnUnmount",dh={bubbles:!1,cancelable:!0},Cx=b.forwardRef(Ke(function(c,r){const{loop:f=!1,trapped:s=!1,branches:v,onMountAutoFocus:h,onUnmountAutoFocus:p,...A}=c,[C,H]=b.useState(null),E=Wa(h),g=Wa(p),D=b.useRef(null),G=At(r,H),M=b.useRef(v);b.useEffect(()=>{M.current=v});const L=b.useCallback(B=>B?C?.contains(B)?!0:!!M.current?.some(Z=>Z.contains(B)):!1,[C]),V=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let B=function(W){if(V.paused||!C)return;const w=W.target;L(w)?D.current=w:Vl(D.current,{select:!0})},Z=function(W){if(V.paused||!C)return;const w=W.relatedTarget;w!==null&&(L(w)||Vl(D.current,{select:!0}))},ue=function(W){if(document.activeElement===document.body)for(const w of W)w.removedNodes.length>0&&Vl(C)};Ke(B,"handleFocusIn"),Ke(Z,"handleFocusOut"),Ke(ue,"handleMutations"),document.addEventListener("focusin",B),document.addEventListener("focusout",Z);const ee=new MutationObserver(ue);return C&&ee.observe(C,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",B),document.removeEventListener("focusout",Z),ee.disconnect()}}},[s,C,V.paused,L]),b.useEffect(()=>{if(C){mh.add(V);const B=document.activeElement;if(!C.contains(B)){const Z=new CustomEvent(Xs,dh);C.addEventListener(Xs,E),C.dispatchEvent(Z),Z.defaultPrevented||(wg(Yg(xf(C)),{select:!0}),document.activeElement===B&&Vl(C))}return()=>{C.removeEventListener(Xs,E),setTimeout(()=>{const Z=new CustomEvent(Qs,dh);C.addEventListener(Qs,g),C.dispatchEvent(Z),Z.defaultPrevented||Vl(B??document.body,{select:!0}),C.removeEventListener(Qs,g),mh.remove(V)},0)}}},[C,E,g,V]);const X=b.useCallback(B=>{if(!f&&!s||V.paused)return;const Z=B.key==="Tab"&&!B.altKey&&!B.ctrlKey&&!B.metaKey,ue=document.activeElement;if(Z&&ue){const ee=B.currentTarget,[W,w]=Ug(ee);W&&w?!B.shiftKey&&ue===w?(B.preventDefault(),f&&Vl(W,{select:!0})):B.shiftKey&&ue===W&&(B.preventDefault(),f&&Vl(w,{select:!0})):ue===ee&&B.preventDefault()}},[f,s,V.paused]);return(0,m.jsx)(qt.div,{tabIndex:-1,...A,ref:G,onKeyDown:X})},"FocusScope")),Dg=b.createContext(null);function jg({registry:i,children:c}){return i?(0,m.jsx)(Dg.Provider,{value:i,children:c}):c}Ke(jg,"FocusScopeBranchProvider");function Mg(){const[i,c]=b.useState([]);return{nodes:i,registry:b.useMemo(()=>({add:Ke(r=>c(f=>f.includes(r)?f:[...f,r]),"add"),remove:Ke(r=>c(f=>f.filter(s=>s!==r)),"remove")}),[])}}Ke(Mg,"useFocusScopeBranchRegistry");function Ax(i){const c=b.useContext(Dg);b.useEffect(()=>{if(!(!i||!c))return c.add(i),()=>c.remove(i)},[i,c])}Ke(Ax,"useFocusScopeBranch");function wg(i,{select:c=!1}={}){const r=document.activeElement;for(const f of i)if(Vl(f,{select:c}),document.activeElement!==r)return}Ke(wg,"focusFirst");function Ug(i){const c=xf(i);return[cf(c,i),cf(c.reverse(),i)]}Ke(Ug,"getTabbableEdges");function xf(i){const c=[],r=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:Ke(f=>{const s=f.tagName==="INPUT"&&f.type==="hidden";return f.disabled||f.hidden||s?NodeFilter.FILTER_SKIP:f.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)c.push(r.currentNode);return c}Ke(xf,"getTabbableCandidates");function cf(i,c){const r=typeof c.checkVisibility=="function"&&c.checkVisibility({checkVisibilityCSS:!0});for(const f of i)if(!(r?!f.checkVisibility({checkVisibilityCSS:!0}):Hg(f,{upTo:c})))return f}Ke(cf,"findVisible");function Hg(i,{upTo:c}){if(getComputedStyle(i).visibility==="hidden")return!0;for(;i;){if(c!==void 0&&i===c)return!1;if(getComputedStyle(i).display==="none")return!0;i=i.parentElement}return!1}Ke(Hg,"isHidden");function Bg(i){return i instanceof HTMLInputElement&&"select"in i}Ke(Bg,"isSelectableInput");function Vl(i,{select:c=!1}={}){if(i&&i.focus){const r=document.activeElement;i.focus({preventScroll:!0}),i!==r&&Bg(i)&&c&&i.select()}}Ke(Vl,"focus");var mh=Lg();function Lg(){let i=[];return{add(c){const r=i[0];c!==r&&r?.pause(),i=rf(i,c),i.unshift(c)},remove(c){i=rf(i,c),i[0]?.resume()}}}Ke(Lg,"createFocusScopesStack");function rf(i,c){const r=[...i],f=r.indexOf(c);return f!==-1&&r.splice(f,1),r}Ke(rf,"arrayRemove");function Yg(i){return i.filter(c=>c.tagName!=="A")}Ke(Yg,"removeLinks");var Ox=Object.defineProperty,zx=(i,c)=>Ox(i,"name",{value:c,configurable:!0}),Rx=b.forwardRef(zx(function(c,r){const{container:f,...s}=c,[v,h]=b.useState(!1);Zl(()=>h(!0),[]);const p=f||v&&globalThis?.document?.body;return p?Ng.createPortal((0,m.jsx)(qt.div,{...s,ref:r}),p):null},"Portal")),Dx=Object.defineProperty,Kl=(i,c)=>Dx(i,"name",{value:c,configurable:!0});function Gg(i,c){return b.useReducer((r,f)=>c[r][f]??r,i)}Kl(Gg,"useStateMachine");var Pc=Kl(i=>{const{present:c,children:r}=i,f=qg(c),s=typeof r=="function"?r({present:f.isPresent}):b.Children.only(r),v=Vg(f.ref,Xg(s));return typeof r=="function"||f.isPresent?b.cloneElement(s,{ref:v}):null},"Presence");function qg(i){const[c,r]=b.useState(),f=b.useRef(null),s=b.useRef(i),v=b.useRef("none"),h=b.useRef(void 0),[p,A]=Gg(i?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{p==="mounted"?(v.current=h.current??$a(f.current),h.current=void 0):v.current="none"},[p]),Zl(()=>{const C=f.current,H=s.current;if(H!==i){const E=v.current,g=$a(C);i?(h.current=g,A("MOUNT")):g==="none"||C?.display==="none"?A("UNMOUNT"):A(H&&E!==g?"ANIMATION_OUT":"UNMOUNT"),s.current=i}},[i,A]),Zl(()=>{if(c){let C;const H=c.ownerDocument.defaultView??window,E=Kl(D=>{const G=$a(f.current).includes(CSS.escape(D.animationName));if(D.target===c&&G&&(A("ANIMATION_END"),!s.current)){const M=c.style.animationFillMode;c.style.animationFillMode="forwards",C=H.setTimeout(()=>{c.style.animationFillMode==="forwards"&&(c.style.animationFillMode=M)})}},"handleAnimationEnd"),g=Kl(D=>{D.target===c&&(v.current=$a(f.current))},"handleAnimationStart");return c.addEventListener("animationstart",g),c.addEventListener("animationcancel",E),c.addEventListener("animationend",E),()=>{H.clearTimeout(C),c.removeEventListener("animationstart",g),c.removeEventListener("animationcancel",E),c.removeEventListener("animationend",E)}}else A("ANIMATION_END")},[c,A]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:b.useCallback(C=>{if(C){const H=getComputedStyle(C);f.current=H,h.current=$a(H)}else f.current=null;r(C)},[])}}Kl(qg,"usePresence");function of(i,c){if(typeof i=="function")return i(c);i!=null&&(i.current=c)}Kl(of,"setRef");function Vg(...i){const c=b.useRef(i);return c.current=i,b.useCallback(r=>{const f=c.current;let s=!1;const v=f.map(h=>{const p=of(h,r);return!s&&typeof p=="function"&&(s=!0),p});if(s)return()=>{for(let h=0;hjx(i,"name",{value:c,configurable:!0}),Qc=0,Za=null;function Mx(i){return Tf(),i.children}Ef(Mx,"FocusGuards");function Tf(){b.useEffect(()=>{Za||(Za={start:sf(),end:sf()});const{start:i,end:c}=Za;return document.body.firstElementChild!==i&&document.body.insertAdjacentElement("afterbegin",i),document.body.lastElementChild!==c&&document.body.insertAdjacentElement("beforeend",c),Qc++,()=>{Qc===1&&(Za?.start.remove(),Za?.end.remove(),Za=null),Qc=Math.max(0,Qc-1)}},[])}Ef(Tf,"useFocusGuards");function sf(){const i=document.createElement("span");return i.setAttribute("data-radix-focus-guard",""),i.tabIndex=0,i.style.outline="none",i.style.opacity="0",i.style.position="fixed",i.style.pointerEvents="none",i}Ef(sf,"createFocusGuard");var El=function(){return El=Object.assign||function(c){for(var r,f=1,s=arguments.length;f"u")return $x;var c=Fx(i),r=document.documentElement.clientWidth,f=window.innerWidth;return{left:c[0],top:c[1],right:c[2],gap:Math.max(0,f-r+c[2]-c[0])}},Px=kg(),ti="data-scroll-locked",e2=function(i,c,r,f){var s=i.left,v=i.top,h=i.right,p=i.gap;return r===void 0&&(r="margin"),` .`.concat(Ux,` { overflow: hidden `).concat(f,`; padding-right: `).concat(p,"px ").concat(f,`; } body[`).concat(ti,`] { overflow: hidden `).concat(f,`; overscroll-behavior: contain; `).concat([c&&"position: relative ".concat(f,";"),r==="margin"&&` padding-left: `.concat(s,`px; padding-top: `).concat(v,`px; padding-right: `).concat(h,`px; margin-left:0; margin-top:0; margin-right: `).concat(p,"px ").concat(f,`; `),r==="padding"&&"padding-right: ".concat(p,"px ").concat(f,";")].filter(Boolean).join(""),` } .`).concat(Ic,` { right: `).concat(p,"px ").concat(f,`; } .`).concat($c,` { margin-right: `).concat(p,"px ").concat(f,`; } .`).concat(Ic," .").concat(Ic,` { right: 0 `).concat(f,`; } .`).concat($c," .").concat($c,` { margin-right: 0 `).concat(f,`; } body[`).concat(ti,`] { `).concat(Hx,": ").concat(p,`px; } `)},gh=function(){var i=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(i)?i:0},t2=function(){b.useEffect(function(){return document.body.setAttribute(ti,(gh()+1).toString()),function(){var i=gh()-1;i<=0?document.body.removeAttribute(ti):document.body.setAttribute(ti,i.toString())}},[])},l2=function(i){var c=i.noRelative,r=i.noImportant,f=i.gapMode,s=f===void 0?"margin":f;t2();var v=b.useMemo(function(){return Wx(s)},[s]);return b.createElement(Px,{styles:e2(v,!c,s,r?"":"!important")})},ff=!1;if(typeof window<"u")try{var Zc=Object.defineProperty({},"passive",{get:function(){return ff=!0,!0}});window.addEventListener("test",Zc,Zc),window.removeEventListener("test",Zc,Zc)}catch{ff=!1}var Ka=ff?{passive:!1}:!1,n2=function(i){return i.tagName==="TEXTAREA"},Jg=function(i,c){if(!(i instanceof Element))return!1;var r=window.getComputedStyle(i);return r[c]!=="hidden"&&!(r.overflowY===r.overflowX&&!n2(i)&&r[c]==="visible")},a2=function(i){return Jg(i,"overflowY")},u2=function(i){return Jg(i,"overflowX")},yh=function(i,c){var r=c.ownerDocument,f=c;do{if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&(f=f.host),Ig(i,f)){var s=$g(i,f);if(s[1]>s[2])return!0}f=f.parentNode}while(f&&f!==r.body);return!1},i2=function(i){return[i.scrollTop,i.scrollHeight,i.clientHeight]},c2=function(i){return[i.scrollLeft,i.scrollWidth,i.clientWidth]},Ig=function(i,c){return i==="v"?a2(c):u2(c)},$g=function(i,c){return i==="v"?i2(c):c2(c)},r2=function(i,c){return i==="h"&&c==="rtl"?-1:1},o2=function(i,c,r,f,s){var v=r2(i,window.getComputedStyle(c).direction),h=v*f,p=r.target,A=c.contains(p),C=!1,H=h>0,E=0,g=0;do{if(!p)break;var D=$g(i,p),G=D[0],M=D[1]-D[2]-v*G;(G||M)&&Ig(i,p)&&(E+=M,g+=G);var L=p.parentNode;p=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!A&&p!==document.body||A&&(c.contains(p)||c===p));return(H&&(s&&Math.abs(E)<1||!s&&h>E)||!H&&(s&&Math.abs(g)<1||!s&&-h>g))&&(C=!0),C},Kc=function(i){return"changedTouches"in i?[i.changedTouches[0].clientX,i.changedTouches[0].clientY]:[0,0]},bh=function(i){return[i.deltaX,i.deltaY]},ph=function(i){return i&&"current"in i?i.current:i},s2=function(i,c){return i[0]===c[0]&&i[1]===c[1]},f2=function(i){return` .block-interactivity-`.concat(i,` {pointer-events: none;} .allow-interactivity-`).concat(i,` {pointer-events: all;} `)},d2=0,ka=[];function m2(i){var c=b.useRef([]),r=b.useRef([0,0]),f=b.useRef(),s=b.useState(d2++)[0],v=b.useState(kg)[0],h=b.useRef(i);b.useEffect(function(){h.current=i},[i]),b.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(s));var M=wx([i.lockRef.current],(i.shards||[]).map(ph),!0).filter(Boolean);return M.forEach(function(L){return L.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),M.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(s))})}}},[i.inert,i.lockRef.current,i.shards]);var p=b.useCallback(function(M,L){if("touches"in M&&M.touches.length===2||M.type==="wheel"&&M.ctrlKey)return!h.current.allowPinchZoom;var V=Kc(M),X=r.current,B="deltaX"in M?M.deltaX:X[0]-V[0],Z="deltaY"in M?M.deltaY:X[1]-V[1],ue,ee=M.target,W=Math.abs(B)>Math.abs(Z)?"h":"v";if("touches"in M&&W==="h"&&ee.type==="range")return!1;var w=window.getSelection(),ne=w&&w.anchorNode;if(ne&&(ne===ee||ne.contains(ee)))return!1;var He=yh(W,ee);if(!He)return!0;if(He?ue=W:(ue=W==="v"?"h":"v",He=yh(W,ee)),!He)return!1;if(!f.current&&"changedTouches"in M&&(B||Z)&&(f.current=ue),!ue)return!0;var Ce=f.current||ue;return o2(Ce,L,M,Ce==="h"?B:Z,!0)},[]),A=b.useCallback(function(M){var L=M;if(!(!ka.length||ka[ka.length-1]!==v)){var V="deltaY"in L?bh(L):Kc(L),X=c.current.filter(function(Z){return Z.name===L.type&&(Z.target===L.target||L.target===Z.shadowParent)&&s2(Z.delta,V)})[0];if(X&&X.should){L.cancelable&&L.preventDefault();return}if(!X){var B=(h.current.shards||[]).map(ph).filter(Boolean).filter(function(Z){return Z.contains(L.target)});(B.length>0?p(L,B[0]):!h.current.noIsolation)&&L.cancelable&&L.preventDefault()}}},[]),C=b.useCallback(function(M,L,V,X){var B={name:M,delta:L,target:V,should:X,shadowParent:v2(V)};c.current.push(B),setTimeout(function(){c.current=c.current.filter(function(Z){return Z!==B})},1)},[]),H=b.useCallback(function(M){r.current=Kc(M),f.current=void 0},[]),E=b.useCallback(function(M){C(M.type,bh(M),M.target,p(M,i.lockRef.current))},[]),g=b.useCallback(function(M){C(M.type,Kc(M),M.target,p(M,i.lockRef.current))},[]);b.useEffect(function(){return ka.push(v),i.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:g}),document.addEventListener("wheel",A,Ka),document.addEventListener("touchmove",A,Ka),document.addEventListener("touchstart",H,Ka),function(){ka=ka.filter(function(M){return M!==v}),document.removeEventListener("wheel",A,Ka),document.removeEventListener("touchmove",A,Ka),document.removeEventListener("touchstart",H,Ka)}},[]);var D=i.removeScrollBar,G=i.inert;return b.createElement(b.Fragment,null,G?b.createElement(v,{styles:f2(s)}):null,D?b.createElement(l2,{noRelative:i.noRelative,gapMode:i.gapMode}):null)}function v2(i){for(var c=null;i!==null;)i instanceof ShadowRoot&&(c=i.host,i=i.host),i=i.parentNode;return c}var h2=Xx(Kg,m2),Fg=b.forwardRef(function(i,c){return b.createElement(er,El({},i,{ref:c,sideCar:h2}))});Fg.classNames=er.classNames;var g2=function(i){return typeof document>"u"?null:(Array.isArray(i)?i[0]:i).ownerDocument.body},Ja=new WeakMap,kc=new WeakMap,Jc={},Js=0,Wg=function(i){return i&&(i.host||Wg(i.parentNode))},y2=function(i,c){return c.map(function(r){if(i.contains(r))return r;var f=Wg(r);return f&&i.contains(f)?f:(console.error("aria-hidden",r,"in not contained inside",i,". Doing nothing"),null)}).filter(function(r){return!!r})},b2=function(i,c,r,f){var s=y2(c,Array.isArray(i)?i:[i]);Jc[r]||(Jc[r]=new WeakMap);var v=Jc[r],h=[],p=new Set,A=new Set(s),C=function(E){!E||p.has(E)||(p.add(E),C(E.parentNode))};s.forEach(C);var H=function(E){!E||A.has(E)||Array.prototype.forEach.call(E.children,function(g){if(p.has(g))H(g);else try{var D=g.getAttribute(f),G=D!==null&&D!=="false",M=(Ja.get(g)||0)+1,L=(v.get(g)||0)+1;Ja.set(g,M),v.set(g,L),h.push(g),M===1&&G&&kc.set(g,!0),L===1&&g.setAttribute(r,"true"),G||g.setAttribute(f,"true")}catch(V){console.error("aria-hidden: cannot operate on ",g,V)}})};return H(c),p.clear(),Js++,function(){h.forEach(function(E){var g=Ja.get(E)-1,D=v.get(E)-1;Ja.set(E,g),v.set(E,D),g||(kc.has(E)||E.removeAttribute(f),kc.delete(E)),D||E.removeAttribute(r)}),Js--,Js||(Ja=new WeakMap,Ja=new WeakMap,kc=new WeakMap,Jc={})}},p2=function(i,c,r){r===void 0&&(r="data-aria-hidden");var f=Array.from(Array.isArray(i)?i:[i]),s=c||g2(i);return s?(f.push.apply(f,Array.from(s.querySelectorAll("[aria-live], script"))),b2(f,s,r,"aria-hidden")):function(){return null}},S2=Object.defineProperty,Ot=(i,c)=>S2(i,"name",{value:c,configurable:!0}),_f="Dialog",[Pg,QE]=tu(_f),[x2,cl]=Pg(_f),E2=Ot(i=>{const{__scopeDialog:c,children:r,open:f,defaultOpen:s,onOpenChange:v,modal:h=!0}=i,p=b.useRef(null),A=b.useRef(null),{nodes:C,registry:H}=Mg(),[E,g]=ri({prop:f,defaultProp:s??!1,onChange:v,caller:_f}),[D,G]=b.useState(0),[M,L]=b.useState(0);return(0,m.jsx)(x2,{scope:c,triggerRef:p,contentRef:A,contentId:Fa(),titleId:Fa(),descriptionId:Fa(),titlePresent:D>0,descriptionPresent:M>0,setTitleCount:G,setDescriptionCount:L,open:E,onOpenChange:g,onOpenToggle:b.useCallback(()=>g(V=>!V),[g]),modal:h,branchNodes:C,branchRegistry:H,children:r})},"Dialog"),T2="DialogTrigger",_2=b.forwardRef(Ot(function(c,r){const{__scopeDialog:f,...s}=c,v=cl(T2,f),h=At(r,v.triggerRef);return(0,m.jsx)(qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":v.open,"aria-controls":v.open?v.contentId:void 0,"data-state":tr(v.open),...s,ref:h,onClick:il(c.onClick,v.onOpenToggle)})},"DialogTrigger")),ey="DialogPortal",[N2,ty]=Pg(ey,{forceMount:void 0}),C2=Ot(i=>{const{__scopeDialog:c,forceMount:r,children:f,container:s}=i,v=cl(ey,c);return(0,m.jsx)(N2,{scope:c,forceMount:r,children:b.Children.map(f,h=>(0,m.jsx)(Pc,{present:r||v.open,children:(0,m.jsx)(Rx,{asChild:!0,container:s,children:h})}))})},"DialogPortal"),df="DialogOverlay",ly=b.forwardRef(Ot(function(c,r){const f=ty(df,c.__scopeDialog),{forceMount:s=f.forceMount,...v}=c,h=cl(df,c.__scopeDialog);return h.modal?(0,m.jsx)(Pc,{present:s||h.open,children:(0,m.jsx)(O2,{...v,ref:r})}):null},"DialogOverlay")),A2=Cn("DialogOverlay.RemoveScroll"),O2=b.forwardRef(Ot(function(c,r){const{__scopeDialog:f,...s}=c,v=cl(df,f),h=Og(),p=At(r,h);return(0,m.jsx)(Fg,{as:A2,allowPinchZoom:!0,shards:b.useMemo(()=>[v.contentRef,...v.branchNodes.map(A=>({current:A}))],[v.contentRef,v.branchNodes]),children:(0,m.jsx)(qt.div,{"data-state":tr(v.open),...s,ref:p,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),li="DialogContent",ny=b.forwardRef(Ot(function(c,r){const f=ty(li,c.__scopeDialog),{forceMount:s=f.forceMount,...v}=c,h=cl(li,c.__scopeDialog);return(0,m.jsx)(Pc,{present:s||h.open,children:h.modal?(0,m.jsx)(z2,{...v,ref:r}):(0,m.jsx)(R2,{...v,ref:r})})},"DialogContent")),z2=b.forwardRef(Ot(function(c,r){const f=cl(li,c.__scopeDialog),s=b.useRef(null),v=At(r,f.contentRef,s);return b.useEffect(()=>{const h=s.current;if(h)return p2(h)},[]),(0,m.jsx)(ay,{...c,ref:v,trapFocus:f.open,disableOutsidePointerEvents:f.open,onCloseAutoFocus:il(c.onCloseAutoFocus,h=>{h.preventDefault(),f.triggerRef.current?.focus()}),onPointerDownOutside:il(c.onPointerDownOutside,h=>{const p=h.detail.originalEvent,A=p.button===0&&p.ctrlKey===!0;(p.button===2||A)&&h.preventDefault()}),onFocusOutside:il(c.onFocusOutside,h=>h.preventDefault())})},"DialogContentModal")),R2=b.forwardRef(Ot(function(c,r){const f=cl(li,c.__scopeDialog),s=b.useRef(!1),v=b.useRef(!1);return(0,m.jsx)(ay,{...c,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:h=>{c.onCloseAutoFocus?.(h),h.defaultPrevented||(s.current||f.triggerRef.current?.focus(),h.preventDefault()),s.current=!1,v.current=!1},onInteractOutside:h=>{c.onInteractOutside?.(h),h.defaultPrevented||(s.current=!0,h.detail.originalEvent.type==="pointerdown"&&(v.current=!0));const p=h.target;f.triggerRef.current?.contains(p)&&h.preventDefault(),h.detail.originalEvent.type==="focusin"&&v.current&&h.preventDefault()}})},"DialogContentNonModal")),ay=b.forwardRef(Ot(function(c,r){const{__scopeDialog:f,trapFocus:s,onOpenAutoFocus:v,onCloseAutoFocus:h,"aria-describedby":p,children:A,...C}=c,H=cl(li,f);return Tf(),(0,m.jsx)(jg,{registry:H.branchRegistry,children:(0,m.jsx)(Cx,{asChild:!0,loop:!0,trapped:s,branches:H.branchNodes,onMountAutoFocus:v,onUnmountAutoFocus:h,children:(0,m.jsx)(Tx,{role:"dialog",id:H.contentId,"aria-labelledby":H.titlePresent?H.titleId:void 0,"aria-describedby":H.descriptionPresent?cy(p,H.descriptionId):p,"data-state":tr(H.open),...C,ref:r,deferPointerDownOutside:!0,onDismiss:()=>H.onOpenChange(!1),children:A})})})},"DialogContentImpl")),uy=b.forwardRef(Ot(function(c,r){const{__scopeDialog:f,...s}=c,v=cl("DialogTitle",f),{setTitleCount:h}=v;return Zl(()=>(h(p=>p+1),()=>h(p=>p-1)),[h]),(0,m.jsx)(qt.h2,{id:v.titleId,...s,ref:r})},"DialogTitle")),iy=b.forwardRef(Ot(function(c,r){const{__scopeDialog:f,...s}=c,v=cl("DialogDescription",f),{setDescriptionCount:h}=v;return Zl(()=>(h(p=>p+1),()=>h(p=>p-1)),[h]),(0,m.jsx)(qt.p,{id:v.descriptionId,...s,ref:r})},"DialogDescription")),D2="DialogClose",j2=b.forwardRef(Ot(function(c,r){const{__scopeDialog:f,...s}=c,v=cl(D2,f);return(0,m.jsx)(qt.button,{type:"button",...s,ref:r,onClick:il(c.onClick,()=>v.onOpenChange(!1))})},"DialogClose"));function cy(...i){const c=new Set;for(const r of i)if(typeof r=="string")for(const f of String(r).trim().split(/\s+/))f&&c.add(f);return c.size>0?Array.from(c).join(" "):void 0}Ot(cy,"concatAriaDescribedby");function tr(i){return i?"open":"closed"}Ot(tr,"getState");var M2=E2,w2=_2,ry=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)(ly,{ref:r,className:ft("fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...c}));ry.displayName=ly.displayName;var U2=pf("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"left"}}),oy=b.forwardRef(({side:i="left",className:c,children:r,...f},s)=>(0,m.jsxs)(C2,{children:[(0,m.jsx)(ry,{}),(0,m.jsxs)(ny,{ref:s,className:ft(U2({side:i}),"flex flex-col",c),...f,children:[r,(0,m.jsxs)(j2,{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",children:[(0,m.jsx)(Wp,{className:"h-5 w-5"}),(0,m.jsx)("span",{className:"sr-only",children:"Закрыть"})]})]})]}));oy.displayName=ny.displayName;var sy=({className:i,...c})=>(0,m.jsx)("div",{className:ft("flex flex-col space-y-2 text-left",i),...c});sy.displayName="SheetHeader";var fy=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)(uy,{ref:r,className:ft("text-lg font-semibold text-foreground",i),...c}));fy.displayName=uy.displayName;var dy=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)(iy,{ref:r,className:ft("text-sm text-muted-foreground",i),...c}));dy.displayName=iy.displayName;function Sh(i){return ft("text-sm transition-colors hover:text-foreground",i?"text-foreground font-medium":"text-muted-foreground")}function xh({size:i="sm"}){return(0,m.jsx)(Tl,{asChild:!0,size:i,children:(0,m.jsxs)("a",{href:ni,rel:"nofollow",children:[(0,m.jsx)(Pn,{"aria-hidden":"true"}),"Войти через Telegram"]})})}function H2({activePage:i}){return(0,m.jsx)("header",{className:"sticky top-0 z-40 w-full border-b border-border/70 bg-background/80 backdrop-blur",children:(0,m.jsxs)("div",{className:"container-x flex h-16 items-center justify-between gap-4",children:[(0,m.jsxs)("a",{href:"/",className:"flex items-center gap-2.5","aria-label":ei,children:[(0,m.jsx)("span",{className:"grid h-8 w-8 place-items-center rounded-lg bg-primary/15 text-primary",children:(0,m.jsx)(Pn,{className:"h-4 w-4","aria-hidden":"true"})}),(0,m.jsx)("span",{className:"text-sm font-semibold tracking-tight",children:ei})]}),(0,m.jsx)("nav",{className:"hidden items-center gap-8 md:flex","aria-label":"Основная навигация",children:ef.map(c=>(0,m.jsx)("a",{href:c.href,className:Sh(c.page===i),children:c.label},c.page))}),(0,m.jsx)("div",{className:"hidden md:block",children:(0,m.jsx)(xh,{})}),(0,m.jsx)("div",{className:"md:hidden",children:(0,m.jsxs)(M2,{children:[(0,m.jsx)(w2,{asChild:!0,children:(0,m.jsx)(Tl,{variant:"ghost",size:"icon","aria-label":"Открыть меню",children:(0,m.jsx)(Qp,{"aria-hidden":"true"})})}),(0,m.jsxs)(oy,{side:"left",className:"w-72 gap-6",children:[(0,m.jsxs)(sy,{children:[(0,m.jsx)(fy,{children:ei}),(0,m.jsx)(dy,{children:"Меню сайта"})]}),(0,m.jsxs)("nav",{className:"flex flex-col gap-4","aria-label":"Мобильная навигация",children:[ef.map(c=>(0,m.jsx)("a",{href:c.href,className:Sh(c.page===i),children:c.label},c.page)),(0,m.jsx)("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground",children:"Telegram-бот"}),(0,m.jsx)(xh,{size:"lg"})]})]})]})})]})})}function B2(){return(0,m.jsxs)("footer",{className:"border-t border-border/70 bg-card/40",children:[(0,m.jsxs)("div",{className:"container-x flex flex-col gap-8 py-12 sm:flex-row sm:justify-between",children:[(0,m.jsxs)("div",{className:"max-w-sm",children:[(0,m.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,m.jsx)("span",{className:"grid h-8 w-8 place-items-center rounded-lg bg-primary/15 text-primary",children:(0,m.jsx)(Pn,{className:"h-4 w-4","aria-hidden":"true"})}),(0,m.jsx)("span",{className:"text-sm font-semibold tracking-tight",children:ei})]}),(0,m.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:"OpenAI-совместимый API-шлюз к моделям разных вендоров. Подключение, ключи и поддержка — через Telegram-бота."})]}),(0,m.jsx)("nav",{className:"flex flex-col gap-3","aria-label":"Ссылки в подвале",children:ef.map(i=>(0,m.jsx)("a",{href:i.href,className:"text-sm text-muted-foreground hover:text-foreground",children:i.label},i.page))}),(0,m.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,m.jsx)("a",{href:ni,rel:"nofollow",className:"text-sm text-primary hover:underline",children:"Войти через Telegram"}),(0,m.jsx)("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground",children:"Telegram-бот"}),(0,m.jsx)("a",{href:"/api/pricing",className:"text-sm text-muted-foreground hover:text-foreground",children:"Цены (JSON)"})]})]}),(0,m.jsx)("div",{className:"container-x border-t border-border/60 py-6",children:(0,m.jsxs)("p",{className:"text-xs text-muted-foreground",children:["© ",ei,". Цены и модели — актуальные данные из /api/pricing."]})})]})}var L2=pf("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none",{variants:{variant:{default:"border-transparent bg-primary/15 text-primary",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-white",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function lr({className:i,variant:c,...r}){return(0,m.jsx)("div",{className:ft(L2({variant:c}),i),...r})}var Xl=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)("div",{ref:r,className:ft("rounded-xl border border-border bg-card text-card-foreground shadow-sm",i),...c}));Xl.displayName="Card";var oi=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)("div",{ref:r,className:ft("flex flex-col space-y-1.5 p-6",i),...c}));oi.displayName="CardHeader";var Pa=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)("h3",{ref:r,className:ft("text-lg font-semibold leading-none tracking-tight",i),...c}));Pa.displayName="CardTitle";var lu=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)("p",{ref:r,className:ft("text-sm text-muted-foreground",i),...c}));lu.displayName="CardDescription";var Ql=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)("div",{ref:r,className:ft("p-6 pt-0",i),...c}));Ql.displayName="CardContent";var Y2=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)("div",{ref:r,className:ft("flex items-center p-6 pt-0",i),...c}));Y2.displayName="CardFooter";function nr({title:i="Подключитесь за минуту",description:c="Откройте Telegram-бота, получите API-ключ и начните отправлять запросы через единый шлюз."}){return(0,m.jsx)("section",{className:"rounded-2xl border border-border bg-card p-8 sm:p-10",children:(0,m.jsxs)("div",{className:"flex flex-col gap-6 sm:flex-row sm:items-center sm:justify-between",children:[(0,m.jsxs)("div",{className:"max-w-xl",children:[(0,m.jsx)("h2",{className:"text-2xl font-semibold tracking-tight",children:i}),(0,m.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:c})]}),(0,m.jsxs)("div",{className:"flex shrink-0 flex-col gap-3 sm:flex-row",children:[(0,m.jsx)(Tl,{asChild:!0,size:"lg",children:(0,m.jsxs)("a",{href:ni,rel:"nofollow",children:[(0,m.jsx)(Pn,{"aria-hidden":"true"}),"Войти через Telegram"]})}),(0,m.jsx)(Tl,{asChild:!0,variant:"outline",size:"lg",children:(0,m.jsx)("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",children:"Открыть бота"})})]})]})})}var G2=[{icon:Vp,title:"Один эндпоинт",text:"Единый OpenAI-совместимый API вместо отдельных ключей и SDK для каждого вендора."},{icon:qp,title:"Прозрачная тарификация",text:"Стоимость по множителям входа и выхода либо по цене за вызов — как отдаёт upstream."},{icon:Ip,title:"Каталог моделей",text:"Чат и генерация изображений; список моделей и цен приходит напрямую из /api/pricing."},{icon:kp,title:"Ключи и баланс",text:"Выдача ключа, баланс и usage — в консоли после входа через Telegram-бота."}],q2=[`curl ${ui}${sg} \\`,' -H "Authorization: Bearer $GATEWAY_KEY" \\',' -H "Content-Type: application/json" \\'," -d '{",' "model": "<модель-из-/api/pricing>",',' "messages": [{ "role": "user", "content": "Привет" }]'," }'"].join(` `);function V2(){const i=ii.home;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("section",{className:"container-x flex flex-col items-start gap-6 py-20 sm:py-28",children:[(0,m.jsx)(lr,{variant:"secondary",children:"OpenAI-совместимый API-шлюз"}),(0,m.jsx)("h1",{className:"max-w-3xl text-4xl font-semibold leading-tight tracking-tight sm:text-5xl",children:i.h1}),(0,m.jsx)("p",{className:"max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg",children:i.description}),(0,m.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,m.jsx)(Tl,{asChild:!0,size:"lg",children:(0,m.jsxs)("a",{href:ni,rel:"nofollow",children:[(0,m.jsx)(Pn,{"aria-hidden":"true"}),"Войти через Telegram"]})}),(0,m.jsx)(Tl,{asChild:!0,variant:"outline",size:"lg",children:(0,m.jsx)("a",{href:"/pricing",children:"Смотреть тарифы"})})]})]}),(0,m.jsxs)("section",{className:"container-x pb-20",children:[(0,m.jsx)("h2",{className:"sr-only",children:"Преимущества"}),(0,m.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:G2.map(c=>(0,m.jsx)(Xl,{children:(0,m.jsxs)(Ql,{className:"pt-6",children:[(0,m.jsx)(c.icon,{className:"h-6 w-6 text-primary","aria-hidden":"true"}),(0,m.jsx)(Pa,{className:"mt-4 text-base",children:c.title}),(0,m.jsx)(lu,{className:"mt-2 leading-relaxed",children:c.text})]})},c.title))})]}),(0,m.jsxs)("section",{className:"container-x pb-20",children:[(0,m.jsx)("h2",{className:"sr-only",children:"Быстрый старт"}),(0,m.jsxs)("div",{className:"grid gap-4 lg:grid-cols-3",children:[(0,m.jsx)(Xl,{className:"min-w-0 lg:col-span-2",children:(0,m.jsxs)(Ql,{className:"space-y-4 p-6",children:[(0,m.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,m.jsx)($p,{className:"h-4 w-4","aria-hidden":"true"}),"Первый запрос через шлюз"]}),(0,m.jsx)("pre",{className:"overflow-x-auto rounded-lg border border-border bg-background p-4 text-xs leading-relaxed text-foreground",children:(0,m.jsx)("code",{children:q2})}),(0,m.jsx)("p",{className:"text-sm text-muted-foreground",children:"Подставьте base URL и ключ из консоли. Имя модели возьмите из актуального каталога на странице «Тарифы»."})]})}),(0,m.jsx)(Xl,{children:(0,m.jsxs)(Ql,{className:"space-y-3 p-6",children:[(0,m.jsx)(Pa,{className:"text-base",children:"Как начать"}),(0,m.jsxs)("ol",{className:"list-decimal space-y-2 pl-5 text-sm text-muted-foreground",children:[(0,m.jsx)("li",{children:"Откройте Telegram-бота."}),(0,m.jsx)("li",{children:"Получите API-ключ и доступ в консоль."}),(0,m.jsx)("li",{children:"Укажите base URL шлюза в вашем клиенте."}),(0,m.jsx)("li",{children:"Отправляйте запросы к нужной модели."})]})]})})]})]}),(0,m.jsx)("section",{className:"container-x pb-24",children:(0,m.jsx)(nr,{})})]})}var X2="ps-pricing";function Is(i){if(typeof i=="number"&&Number.isFinite(i))return i;if(typeof i=="string"&&i.trim()!==""){const c=Number(i);if(Number.isFinite(c))return c}return null}function $s(i){return Number.isInteger(i)&&Math.abs(i)<1e21?String(i):i.toFixed(4).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")}function Q2(i,c){if(c==null)return"";const r=i.find(f=>f.id===c);return r&&typeof r.name=="string"?r.name:""}function Z2(i){const c=i.billing_usage_schema;if(c&&typeof c=="object")for(const r of Object.values(c)){const f=r?.unitLabel;if(f&&typeof f.ru=="string"&&f.ru.length>0)return f.ru}return"запрос"}function K2(i){if(i.quota_type===1){const f=Is(i.model_price);return f==null?"—":`$${$s(f)} / ${Z2(i)}`}const c=Is(i.model_ratio),r=Is(i.completion_ratio);return c===0?"бесплатно":`вход ×${c==null?"—":$s(c)} · выход ×${r==null?"—":$s(r)}`}function k2(i){return typeof i=="object"&&i!==null&&typeof i.model_name=="string"}function J2(i){return typeof i=="object"&&i!==null&&typeof i.id=="number"}function my(i){if(typeof i!="object"||i===null)return null;const c=i;if(typeof c.error=="string")return{error:c.error};if(!Array.isArray(c.data))return null;const r=c.data.filter(k2);return r.some(f=>typeof f.model_name=="string")?{data:r,vendors:Array.isArray(c.vendors)?c.vendors.filter(J2):[],success:c.success===!0,pricing_version:typeof c.pricing_version=="string"?c.pricing_version:void 0}:null}function I2(i){const c=i.getElementById(X2);if(!c)return null;const r=c.textContent;if(!r||r.trim()==="")return null;try{return my(JSON.parse(r))}catch{return null}}var Eh={status:"loading",payload:null};function $2(){const[i,c]=(0,b.useState)(Eh),[r,f]=(0,b.useState)(0);return(0,b.useEffect)(()=>{let s=!1;if(r===0&&typeof document<"u"){const h=I2(document);if(h&&!s)return c(Th(h)),()=>{s=!0}}c(Eh);const v=new AbortController;return fetch(ai,{headers:{accept:"application/json"},signal:v.signal}).then(h=>h.ok?h.json():Promise.reject(new Error(String(h.status)))).then(h=>{if(s)return;const p=my(h);c(p?Th(p):{status:"error",payload:null})}).catch(()=>{s||c({status:"error",payload:null})}),()=>{s=!0,v.abort()}},[r]),{...i,reload:()=>f(s=>s+1)}}function Th(i){return i.error&&!i.data?{status:"error",payload:i}:{status:"ready",payload:i}}function F2(){const i=ii.pricing,{status:c,payload:r,reload:f}=$2(),[s,v]=(0,b.useState)(""),[h,p]=(0,b.useState)("all"),A=r?.data??[],C=r?.vendors??[],H=(0,b.useMemo)(()=>{const g=new Set(A.map(D=>D.vendor_id));return C.filter(D=>g.has(D.id))},[A,C]),E=(0,b.useMemo)(()=>{const g=s.trim().toLowerCase(),D=h==="all"?null:Number(h);return A.filter(G=>{const M=g===""||(G.model_name??"").toLowerCase().includes(g),L=D===null||G.vendor_id===D;return M&&L})},[A,s,h]);return(0,m.jsxs)("div",{className:"container-x py-14 sm:py-20",children:[(0,m.jsxs)("header",{className:"max-w-2xl",children:[(0,m.jsx)(lr,{variant:"secondary",children:"Актуальные данные /api/pricing"}),(0,m.jsx)("h1",{className:"mt-4 text-4xl font-semibold tracking-tight",children:i.h1}),(0,m.jsx)("p",{className:"mt-3 text-base leading-relaxed text-muted-foreground",children:i.description})]}),c==="loading"&&(0,m.jsx)(P2,{}),c==="error"&&(0,m.jsx)(eE,{message:r?.error,onRetry:f}),c==="ready"&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:"mt-8 flex flex-col gap-4 sm:flex-row sm:items-center",children:[(0,m.jsxs)("div",{className:"relative w-full sm:max-w-xs",children:[(0,m.jsx)(Zp,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),(0,m.jsx)("input",{type:"search",value:s,onChange:g=>v(g.target.value),placeholder:"Поиск модели","aria-label":"Поиск модели",className:"h-10 w-full rounded-lg border border-input bg-background pl-9 pr-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring"})]}),(0,m.jsxs)("label",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:["Вендор",(0,m.jsxs)("select",{value:h,onChange:g=>p(g.target.value),className:"h-10 rounded-lg border border-input bg-background px-3 text-sm text-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,m.jsx)("option",{value:"all",children:"Все"}),H.map(g=>(0,m.jsx)("option",{value:String(g.id),children:g.name},g.id))]})]}),(0,m.jsxs)("span",{"aria-live":"polite",className:"text-sm text-muted-foreground sm:ml-auto",children:["Показано ",E.length," из ",A.length]})]}),(0,m.jsx)(Xl,{className:"mt-6",children:(0,m.jsx)(Ql,{className:"p-0",children:(0,m.jsx)("div",{className:"overflow-x-auto",children:(0,m.jsxs)("table",{className:"w-full text-sm",children:[(0,m.jsx)("caption",{className:"sr-only",children:"Тарификация моделей из /api/pricing"}),(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{className:"border-b border-border text-left text-muted-foreground",children:[(0,m.jsx)("th",{scope:"col",className:"px-6 py-3 font-medium",children:"Модель"}),(0,m.jsx)("th",{scope:"col",className:"px-6 py-3 font-medium",children:"Вендор"}),(0,m.jsx)("th",{scope:"col",className:"px-6 py-3 font-medium",children:"Тарификация"})]})}),(0,m.jsxs)("tbody",{children:[E.map((g,D)=>(0,m.jsx)(W2,{row:g,vendors:C},D)),E.length===0&&(0,m.jsx)("tr",{children:(0,m.jsx)("td",{colSpan:3,className:"px-6 py-10 text-center text-muted-foreground",children:"Ничего не найдено по заданным фильтрам."})})]})]})})})}),(0,m.jsx)("p",{className:"mt-4 text-xs text-muted-foreground",children:"Значения тарификации берутся из ответа /api/pricing и не пересчитываются вручную. Множители указаны относительно базовой единицы upstream."})]}),(0,m.jsx)("div",{className:"mt-16",children:(0,m.jsx)(nr,{title:"Нужен ключ и баланс?",description:"Войдите через Telegram-бота, чтобы получить API-ключ и увидеть расход по каждой модели в консоли."})})]})}function W2({row:i,vendors:c}){return(0,m.jsxs)("tr",{className:"border-b border-border/60 last:border-0",children:[(0,m.jsx)("td",{className:"px-6 py-3 font-medium text-foreground",children:i.model_name??"—"}),(0,m.jsx)("td",{className:"px-6 py-3 text-muted-foreground",children:Q2(c??[],i.vendor_id)||"—"}),(0,m.jsx)("td",{className:"px-6 py-3 text-foreground",children:K2(i)})]})}function P2(){return(0,m.jsxs)("div",{className:"mt-10 flex flex-col gap-3",role:"status","aria-live":"polite",children:[(0,m.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,m.jsx)(Xp,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Загружаем актуальные цены…"]}),[0,1,2,3,4].map(i=>(0,m.jsx)("div",{className:"h-12 w-full animate-pulse rounded-lg border border-border bg-muted/40"},i))]})}function eE({message:i,onRetry:c}){return(0,m.jsxs)(Xl,{className:"mt-10 border-destructive/40",children:[(0,m.jsxs)(oi,{children:[(0,m.jsxs)("div",{className:"flex items-center gap-2 text-destructive",children:[(0,m.jsx)(Fp,{className:"h-5 w-5","aria-hidden":"true"}),(0,m.jsx)(Pa,{className:"text-base",children:"Цены временно недоступны"})]}),(0,m.jsx)(lu,{children:i??"Не удалось получить данные /api/pricing. Попробуйте обновить."})]}),(0,m.jsx)(Ql,{children:(0,m.jsx)(Tl,{variant:"outline",onClick:c,children:"Обновить"})})]})}var tE=Object.defineProperty,nt=(i,c)=>tE(i,"name",{value:c,configurable:!0});function vy(i){const c=i+"CollectionProvider",[r,f]=tu(c),[s,v]=r(c,{collectionRef:{current:null},itemMap:new Map}),h=nt(M=>{const{scope:L,children:V}=M,X=b.useRef(null),B=b.useRef(new Map).current;return(0,m.jsx)(s,{scope:L,itemMap:B,collectionRef:X,children:V})},"CollectionProvider");h.displayName=c;const p=i+"CollectionSlot",A=Cn(p),C=b.forwardRef((M,L)=>{const{scope:V,children:X}=M,B=v(p,V),Z=At(L,B.collectionRef);return(0,m.jsx)(A,{ref:Z,children:X})});C.displayName=p;const H=i+"CollectionItemSlot",E="data-radix-collection-item",g=Cn(H),D=b.forwardRef((M,L)=>{const{scope:V,children:X,...B}=M,Z=b.useRef(null),ue=At(L,Z),ee=v(H,V);return b.useEffect(()=>(ee.itemMap.set(Z,{ref:Z,...B}),()=>{ee.itemMap.delete(Z)})),(0,m.jsx)(g,{[E]:"",ref:ue,children:X})});D.displayName=H;function G(M){const L=v(i+"CollectionConsumer",M);return b.useCallback(()=>{const V=L.collectionRef.current;if(!V)return[];const X=Array.from(V.querySelectorAll(`[${E}]`));return Array.from(L.itemMap.values()).sort((B,Z)=>X.indexOf(B.ref.current)-X.indexOf(Z.ref.current))},[L.collectionRef,L.itemMap])}return nt(G,"useCollection"),[{Provider:h,Slot:C,ItemSlot:D},G,f]}nt(vy,"createCollection");var _h=new WeakMap,Fs=class _n extends Map{static{nt(this,"OrderedDict")}#e;constructor(c){super(c),this.#e=[...super.keys()],_h.set(this,!0)}set(c,r){return _h.get(this)&&(this.has(c)?this.#e[this.#e.indexOf(c)]=c:this.#e.push(c)),super.set(c,r),this}insert(c,r,f){const s=this.has(r),v=this.#e.length,h=Nf(c);let p=h>=0?h:v+h;const A=p<0||p>=v?-1:p;if(A===this.size||s&&A===this.size-1||A===-1)return this.set(r,f),this;const C=this.size+(s?0:1);h<0&&p++;const H=[...this.#e];let E,g=!1;for(let D=p;D=this.size&&(s=this.size-1),this.at(s)}keyFrom(c,r){const f=this.indexOf(c);if(f===-1)return;let s=f+r;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(c,r){let f=0;for(const s of this){if(Reflect.apply(c,r,[s,f,this]))return s;f++}}findIndex(c,r){let f=0;for(const s of this){if(Reflect.apply(c,r,[s,f,this]))return f;f++}return-1}filter(c,r){const f=[];let s=0;for(const v of this)Reflect.apply(c,r,[v,s,this])&&f.push(v),s++;return new _n(f)}map(c,r){const f=[];let s=0;for(const v of this)f.push([v[0],Reflect.apply(c,r,[v,s,this])]),s++;return new _n(f)}reduce(...c){const[r,f]=c;let s=0,v=f??this.at(0);for(const h of this)s===0&&c.length===1?v=h:v=Reflect.apply(r,this,[v,h,s,this]),s++;return v}reduceRight(...c){const[r,f]=c;let s=f??this.at(-1);for(let v=this.size-1;v>=0;v--){const h=this.at(v);v===this.size-1&&c.length===1?s=h:s=Reflect.apply(r,this,[s,h,v,this])}return s}toSorted(c){const r=[...this.entries()].sort(c);return new _n(r)}toReversed(){const c=new _n;for(let r=this.size-1;r>=0;r--){const f=this.keyAt(r),s=this.get(f);c.set(f,s)}return c}toSpliced(...c){const r=[...this.entries()];return r.splice(...c),new _n(r)}slice(c,r){const f=new _n;let s=this.size-1;if(c===void 0)return f;c<0&&(c=c+this.size),r!==void 0&&r>0&&(s=r-1);for(let v=c;v<=s;v++){const h=this.keyAt(v),p=this.get(h);f.set(h,p)}return f}every(c,r){let f=0;for(const s of this){if(!Reflect.apply(c,r,[s,f,this]))return!1;f++}return!0}some(c,r){let f=0;for(const s of this){if(Reflect.apply(c,r,[s,f,this]))return!0;f++}return!1}};function Fc(i,c){if("at"in Array.prototype)return Array.prototype.at.call(i,c);const r=hy(i,c);return r===-1?void 0:i[r]}nt(Fc,"at");function hy(i,c){const r=i.length,f=Nf(c),s=f>=0?f:r+f;return s<0||s>=r?-1:s}nt(hy,"toSafeIndex");function Nf(i){return i!==i||i===0?0:Math.trunc(i)}nt(Nf,"toSafeInteger");function lE(i){const c=i+"CollectionProvider",[r,f]=tu(c),[s,v]=r(c,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Fs,setItemMap:nt(()=>{},"setItemMap")}),h=nt(({state:X,...B})=>X?(0,m.jsx)(A,{...B,state:X}):(0,m.jsx)(p,{...B}),"CollectionProvider");h.displayName=c;const p=nt(X=>{const B=L();return(0,m.jsx)(A,{...X,state:B})},"CollectionInit");p.displayName=c+"Init";const A=nt(X=>{const{scope:B,children:Z,state:ue}=X,ee=b.useRef(null),[W,w]=b.useState(null),ne=At(ee,w),[He,Ce]=ue;return b.useEffect(()=>{if(!W)return;const se=by(()=>{});return se.observe(W,{childList:!0,subtree:!0}),()=>{se.disconnect()}},[W]),(0,m.jsx)(s,{scope:B,itemMap:He,setItemMap:Ce,collectionRef:ne,collectionRefObject:ee,collectionElement:W,children:Z})},"CollectionProviderImpl");A.displayName=c+"Impl";const C=i+"CollectionSlot",H=Cn(C),E=b.forwardRef((X,B)=>{const{scope:Z,children:ue}=X,ee=v(C,Z),W=At(B,ee.collectionRef);return(0,m.jsx)(H,{ref:W,children:ue})});E.displayName=C;const g=i+"CollectionItemSlot",D="data-radix-collection-item",G=Cn(g),M=b.forwardRef((X,B)=>{const{scope:Z,children:ue,...ee}=X,W=b.useRef(null),[w,ne]=b.useState(null),He=At(B,W,ne),{setItemMap:Ce}=v(g,Z),se=b.useRef(ee);gy(se.current,ee)||(se.current=ee);const ke=se.current;return b.useEffect(()=>{const Fe=ke;return Ce(De=>w?De.has(w)?De.set(w,{...Fe,element:w}).toSorted(mf):(De.set(w,{...Fe,element:w}),De.toSorted(mf)):De),()=>{Ce(De=>!w||!De.has(w)?De:(De.delete(w),new Fs(De)))}},[w,ke,Ce]),(0,m.jsx)(G,{[D]:"",ref:He,children:ue})});M.displayName=g;function L(){return b.useState(new Fs)}nt(L,"useInitCollection");function V(X){const{itemMap:B}=v(i+"CollectionConsumer",X);return B}return nt(V,"useCollection"),[{Provider:h,Slot:E,ItemSlot:M},{createCollectionScope:f,useCollection:V,useInitCollection:L}]}nt(lE,"createCollection");function gy(i,c){if(i===c)return!0;if(typeof i!="object"||typeof c!="object"||i==null||c==null)return!1;const r=Object.keys(i),f=Object.keys(c);if(r.length!==f.length)return!1;for(const s of r)if(!Object.prototype.hasOwnProperty.call(c,s)||i[s]!==c[s])return!1;return!0}nt(gy,"shallowEqual");function yy(i,c){return!!(c.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING)}nt(yy,"isElementPreceding");function mf(i,c){return!i[1].element||!c[1].element?0:yy(i[1].element,c[1].element)?-1:1}nt(mf,"sortByDocumentPosition");function by(i){return new MutationObserver(c=>{for(const r of c)if(r.type==="childList"){i();return}})}nt(by,"getChildListObserver");var nE=Object.defineProperty,si=(i,c)=>nE(i,"name",{value:c,configurable:!0}),Cf="Collapsible",[aE,py]=tu(Cf),[uE,Af]=aE(Cf),iE=b.forwardRef(si(function(c,r){const{__scopeCollapsible:f,open:s,defaultOpen:v,disabled:h,onOpenChange:p,...A}=c,[C,H]=ri({prop:s,defaultProp:v??!1,onChange:p,caller:Cf});return(0,m.jsx)(uE,{scope:f,disabled:h,contentId:Fa(),open:C,onOpenToggle:b.useCallback(()=>H(E=>!E),[H]),children:(0,m.jsx)(qt.div,{"data-state":ar(C),"data-disabled":h?"":void 0,...A,ref:r})})},"Collapsible")),cE="CollapsibleTrigger",rE=b.forwardRef(si(function(c,r){const{__scopeCollapsible:f,...s}=c,v=Af(cE,f);return(0,m.jsx)(qt.button,{type:"button","aria-controls":v.open?v.contentId:void 0,"aria-expanded":v.open||!1,"data-state":ar(v.open),"data-disabled":v.disabled?"":void 0,disabled:v.disabled,...s,ref:r,onClick:il(c.onClick,v.onOpenToggle)})},"CollapsibleTrigger")),Sy="CollapsibleContent",oE=b.forwardRef(si(function(c,r){const{forceMount:f,...s}=c,v=Af(Sy,c.__scopeCollapsible);return(0,m.jsx)(Pc,{present:f||v.open,children:({present:h})=>(0,m.jsx)(sE,{...s,ref:r,present:h})})},"CollapsibleContent")),sE=b.forwardRef(si(function(c,r){const{__scopeCollapsible:f,present:s,children:v,...h}=c,p=Af(Sy,f),[A,C]=b.useState(s),H=b.useRef(null),E=At(r,H),g=b.useRef(0),D=g.current,G=b.useRef(0),M=G.current,L=p.open||A,V=b.useRef(L),X=b.useRef(void 0);return b.useEffect(()=>{const B=requestAnimationFrame(()=>V.current=!1);return()=>cancelAnimationFrame(B)},[]),Zl(()=>{const B=H.current;if(B){X.current=X.current||{transitionDuration:B.style.transitionDuration,animationName:B.style.animationName},B.style.transitionDuration="0s",B.style.animationName="none";const Z=B.getBoundingClientRect();g.current=Z.height,G.current=Z.width,V.current||(B.style.transitionDuration=X.current.transitionDuration,B.style.animationName=X.current.animationName),C(s)}},[p.open,s]),(0,m.jsx)(qt.div,{"data-state":ar(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!L,...h,ref:E,style:{"--radix-collapsible-content-height":D?`${D}px`:void 0,"--radix-collapsible-content-width":M?`${M}px`:void 0,...c.style},children:L&&v})},"CollapsibleContentImpl"));function ar(i){return i?"open":"closed"}si(ar,"getState");var fE=Object.defineProperty,dE=(i,c)=>fE(i,"name",{value:c,configurable:!0}),mE={LTR:"ltr",RTL:"rtl"},vE=b.createContext(void 0);function xy(i){const c=b.useContext(vE);return i||c||mE.LTR}dE(xy,"useDirection");var hE=Object.defineProperty,Gt=(i,c)=>hE(i,"name",{value:c,configurable:!0}),gE={Single:"single",Multiple:"multiple"},Pu={Vertical:"vertical",Horizontal:"horizontal"},yE={LTR:"ltr",RTL:"rtl"},Nl="Accordion",bE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Of,pE,SE]=vy(Nl),[ur,ZE]=tu(Nl,[SE,py]),zf=py(),xE=b.forwardRef(Gt(function(c,r){const{type:f,...s}=c,v=s,h=s;return(0,m.jsx)(Of.Provider,{scope:c.__scopeAccordion,children:f===gE.Multiple?(0,m.jsx)(NE,{...h,ref:r}):(0,m.jsx)(_E,{...v,ref:r})})},"Accordion")),[Ey,EE]=ur(Nl),[Ty,TE]=ur(Nl,{collapsible:!1}),_E=b.forwardRef(Gt(function(c,r){const{value:f,defaultValue:s,onValueChange:v=Gt(()=>{},"onValueChange"),collapsible:h=!1,...p}=c,[A,C]=ri({prop:f,defaultProp:s??"",onChange:v,caller:Nl});return(0,m.jsx)(Ey,{scope:c.__scopeAccordion,value:b.useMemo(()=>A?[A]:[],[A]),onItemOpen:C,onItemClose:b.useCallback(()=>h&&C(""),[h,C]),children:(0,m.jsx)(Ty,{scope:c.__scopeAccordion,collapsible:h,children:(0,m.jsx)(_y,{...p,ref:r})})})},"AccordionImplSingle")),NE=b.forwardRef(Gt(function(c,r){const{value:f,defaultValue:s,onValueChange:v=Gt(()=>{},"onValueChange"),...h}=c,[p,A]=ri({prop:f,defaultProp:s??[],onChange:v,caller:Nl}),C=b.useCallback(E=>A((g=[])=>[...g,E]),[A]),H=b.useCallback(E=>A((g=[])=>g.filter(D=>D!==E)),[A]);return(0,m.jsx)(Ey,{scope:c.__scopeAccordion,value:p,onItemOpen:C,onItemClose:H,children:(0,m.jsx)(Ty,{scope:c.__scopeAccordion,collapsible:!0,children:(0,m.jsx)(_y,{...h,ref:r})})})},"AccordionImplMultiple")),[CE,ir]=ur(Nl),_y=b.forwardRef(Gt(function(c,r){const{__scopeAccordion:f,disabled:s,dir:v,orientation:h=Pu.Vertical,...p}=c,A=b.useRef(null),C=At(A,r),H=pE(f),E=xy(v)===yE.LTR,g=il(c.onKeyDown,D=>{if(!bE.includes(D.key))return;const G=D.target,M=H().filter(W=>!W.ref.current?.disabled),L=M.findIndex(W=>W.ref.current===G),V=M.length;if(L===-1)return;D.preventDefault();let X=L;const B=0,Z=V-1,ue=Gt(()=>{X=L+1,X>Z&&(X=B)},"moveNext"),ee=Gt(()=>{X=L-1,X{g?p.onItemOpen(s):p.onItemClose(s)}})})},"AccordionItem")),zE="AccordionHeader",RE=b.forwardRef(Gt(function(c,r){const{__scopeAccordion:f,...s}=c,v=ir(Nl,f),h=Rf(zE,f);return(0,m.jsx)(qt.h3,{"data-orientation":v.orientation,"data-state":Df(h.open),"data-disabled":h.disabled?"":void 0,...s,ref:r})},"AccordionHeader")),Nh="AccordionTrigger",Ny=b.forwardRef(Gt(function(c,r){const{__scopeAccordion:f,...s}=c,v=ir(Nl,f),h=Rf(Nh,f),p=TE(Nh,f),A=zf(f);return(0,m.jsx)(Of.ItemSlot,{scope:f,children:(0,m.jsx)(rE,{"aria-disabled":h.open&&!p.collapsible||void 0,"data-orientation":v.orientation,id:h.triggerId,...A,...s,ref:r})})},"AccordionTrigger")),DE="AccordionContent",Cy=b.forwardRef(Gt(function(c,r){const{__scopeAccordion:f,...s}=c,v=ir(Nl,f),h=Rf(DE,f),p=zf(f);return(0,m.jsx)(oE,{role:"region","aria-labelledby":h.triggerId,"data-orientation":v.orientation,...p,...s,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...c.style}})},"AccordionContent"));function Df(i){return i?"open":"closed"}Gt(Df,"getState");var jE=xE,Ay=b.forwardRef(({className:i,...c},r)=>(0,m.jsx)(OE,{ref:r,className:ft("border-b",i),...c}));Ay.displayName="AccordionItem";var Oy=b.forwardRef(({className:i,children:c,...r},f)=>(0,m.jsx)(RE,{className:"flex",children:(0,m.jsxs)(Ny,{ref:f,className:ft("flex flex-1 items-center justify-between gap-4 py-4 text-left text-base font-medium transition-all hover:text-primary [&[data-state=open]>svg]:rotate-180",i),...r,children:[c,(0,m.jsx)(Gp,{className:"h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Oy.displayName=Ny.displayName;var zy=b.forwardRef(({className:i,children:c,...r},f)=>(0,m.jsx)(Cy,{ref:f,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:(0,m.jsx)("div",{className:ft("pb-4 pt-0 leading-relaxed text-muted-foreground",i),children:c})}));zy.displayName=Cy.displayName;var ME=[`POST ${ui}${sg}`,"Authorization: Bearer $GATEWAY_KEY","Content-Type: application/json","","{",' "model": "<модель-из-/api/pricing>",',' "messages": [',' { "role": "system", "content": "Ты полезный ассистент." },',' { "role": "user", "content": "Кратко объясни, что такое API-шлюз." }'," ]","}"].join(` `),wE=[`POST ${ui}${ZS}`,"Authorization: Bearer $GATEWAY_KEY","Content-Type: application/json","","{",' "model": "<модель-генерации-из-/api/pricing>",',' "prompt": "Фотореалистичный закат над горами",',' "n": 1',"}"].join(` `),UE=[{q:"Где взять API-ключ?",a:"Откройте Telegram-бота — ключ и доступ к консоли выдаются после входа. Ключ отображается в консоли, там же виден баланс и расход."},{q:"Какой base URL указывать?",a:`Используйте ${ui} как base URL OpenAI-совместимого клиента. Эндпоинты чата и генерации изображений — ниже в примерах.`},{q:"Как узнать цену модели?",a:"Все коэффициенты и цены приходят из "+ai+" и показаны на странице «Тарифы». Мы не пересчитываем и не добавляем свои значения."},{q:"Какие форматы запросов поддерживаются?",a:"Шлюз отдаёт OpenAI-совместимые эндпоинты: /v1/chat/completions и /v1/images/generations. Полный список эндпоинтов указан в поле supported_endpoint ответа /api/pricing."},{q:"Что если цены не загрузились?",a:"Страница «Тарифы» покажет состояние ошибки с кнопкой обновления. Данные вернутся автоматически, как только /api/pricing снова будет доступен."}];function Ch({label:i,code:c}){return(0,m.jsxs)(Xl,{className:"min-w-0",children:[(0,m.jsxs)(oi,{children:[(0,m.jsx)(Pa,{className:"text-base",children:i}),(0,m.jsx)(lu,{children:"Пример запроса через шлюз."})]}),(0,m.jsx)(Ql,{children:(0,m.jsx)("pre",{className:"overflow-x-auto rounded-lg border border-border bg-background p-4 text-xs leading-relaxed",children:(0,m.jsx)("code",{children:c})})})]})}function HE(){const i=ii.docs;return(0,m.jsxs)("div",{className:"container-x py-14 sm:py-20",children:[(0,m.jsxs)("header",{className:"max-w-2xl",children:[(0,m.jsx)(lr,{variant:"secondary",children:"Быстрый старт"}),(0,m.jsx)("h1",{className:"mt-4 text-4xl font-semibold tracking-tight",children:i.h1}),(0,m.jsx)("p",{className:"mt-3 text-base leading-relaxed text-muted-foreground",children:i.description})]}),(0,m.jsxs)("section",{className:"mt-12 grid gap-4 lg:grid-cols-2",children:[(0,m.jsx)(Ch,{label:"Чат (OpenAI-совместимый)",code:ME}),(0,m.jsx)(Ch,{label:"Генерация изображений",code:wE})]}),(0,m.jsxs)("section",{className:"mt-12 max-w-3xl",children:[(0,m.jsx)("h2",{className:"text-2xl font-semibold tracking-tight",children:"Шаги подключения"}),(0,m.jsxs)("ol",{className:"mt-4 list-decimal space-y-3 pl-5 text-sm leading-relaxed text-muted-foreground",children:[(0,m.jsxs)("li",{children:["Откройте бота и получите API-ключ: ",(0,m.jsx)("a",{href:Nn,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:Nn}),"."]}),(0,m.jsxs)("li",{children:["В клиенте укажите base URL ",(0,m.jsx)("code",{className:"break-all rounded bg-muted px-1.5 py-0.5 text-foreground",children:ui})," и заголовок ",(0,m.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-foreground",children:"Authorization: Bearer …"}),"."]}),(0,m.jsxs)("li",{children:["Возьмите имя модели из ответа ",(0,m.jsx)("code",{className:"break-all rounded bg-muted px-1.5 py-0.5 text-foreground",children:ai})," или со страницы «Тарифы»."]}),(0,m.jsx)("li",{children:"Отправьте запрос к нужному эндпоинту и проверьте расход в консоли."})]})]}),(0,m.jsxs)("section",{className:"mt-12 max-w-3xl",children:[(0,m.jsx)("h2",{className:"text-2xl font-semibold tracking-tight",children:"Частые вопросы"}),(0,m.jsx)(jE,{type:"single",collapsible:!0,className:"mt-4",children:UE.map((c,r)=>(0,m.jsxs)(Ay,{value:`faq-${r}`,children:[(0,m.jsx)(Oy,{children:c.q}),(0,m.jsx)(zy,{children:c.a})]},c.q))})]}),(0,m.jsx)("div",{className:"mt-16",children:(0,m.jsx)(nr,{})})]})}var BE=[{icon:Kp,title:"Одна точка входа",text:"Вместо набора разных SDK и ключей — единый OpenAI-совместимый интерфейс к моделям нескольких вендоров."},{icon:Yp,title:"Честная тарификация",text:`Цены берутся из ${ai} без ручных надбавок: либо множители входа/выхода, либо цена за вызов с единицей upstream.`},{icon:Lp,title:"Вход через бота",text:"Аккаунт, ключ и консоль связаны с Telegram-ботом — без отдельных паролей и форм регистрации."}];function LE(){const i=ii.about;return(0,m.jsxs)("div",{className:"container-x py-14 sm:py-20",children:[(0,m.jsxs)("header",{className:"max-w-2xl",children:[(0,m.jsx)(lr,{variant:"secondary",children:"О сервисе"}),(0,m.jsx)("h1",{className:"mt-4 text-4xl font-semibold tracking-tight",children:i.h1}),(0,m.jsx)("p",{className:"mt-3 text-base leading-relaxed text-muted-foreground",children:i.description})]}),(0,m.jsxs)("section",{className:"mt-12 max-w-3xl space-y-4 text-sm leading-relaxed text-muted-foreground",children:[(0,m.jsx)("p",{children:"IISHKO GATEWAY — это API-шлюз: промежуточный слой между вашим приложением и моделями разных поставщиков. Вы отправляете обычные OpenAI-совместимые запросы на один base URL, а шлюз маршрутизирует их к нужной модели, ведёт ключи, баланс и учёт расхода."}),(0,m.jsxs)("p",{children:["Каталог моделей и цены динамические: они приходят из ответа ",ai," и отображаются на странице «Тарифы» без изменений. Страница ничего не придумывает и не пересчитывает суммы вручную."]}),(0,m.jsx)("p",{children:"Подключение и поддержка идут через Telegram-бота. Это упрощает выдачу ключа и вход в консоль: отдельной формы регистрации с паролем на публичном сайте нет."})]}),(0,m.jsx)("section",{className:"mt-12 grid gap-4 sm:grid-cols-3",children:BE.map(c=>(0,m.jsxs)(Xl,{children:[(0,m.jsxs)(oi,{children:[(0,m.jsx)(c.icon,{className:"h-6 w-6 text-primary","aria-hidden":"true"}),(0,m.jsx)(Pa,{className:"mt-2 text-base",children:c.title})]}),(0,m.jsx)(Ql,{children:(0,m.jsx)(lu,{className:"leading-relaxed",children:c.text})})]},c.title))}),(0,m.jsxs)("section",{className:"mt-12 max-w-3xl",children:[(0,m.jsx)("h2",{className:"text-2xl font-semibold tracking-tight",children:"Контакты"}),(0,m.jsxs)("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:["Вопросы по подключению, ключам и тарифам — в Telegram-боте:"," ",(0,m.jsx)("a",{href:Nn,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:Nn}),"."]})]}),(0,m.jsx)("div",{className:"mt-16",children:(0,m.jsx)(nr,{title:"Готовы начать?",description:"Откройте бота, получите ключ и отправьте первый запрос через шлюз."})})]})}function YE(){const i=ii.signin;return(0,m.jsx)("div",{className:"container-x flex min-h-[70vh] items-center justify-center py-16",children:(0,m.jsxs)(Xl,{className:"w-full max-w-md",children:[(0,m.jsxs)(oi,{className:"text-center",children:[(0,m.jsx)("div",{className:"mx-auto grid h-12 w-12 place-items-center rounded-xl bg-primary/15 text-primary",children:(0,m.jsx)(Pn,{className:"h-6 w-6","aria-hidden":"true"})}),(0,m.jsx)("h1",{className:"mt-4 text-2xl font-semibold leading-none tracking-tight",children:i.h1}),(0,m.jsx)(lu,{className:"mt-2 leading-relaxed",children:"Вход через Telegram-бота. Отдельной формы с паролем нет — ключ и консоль выдаются ботом."})]}),(0,m.jsxs)(Ql,{className:"flex flex-col gap-3",children:[(0,m.jsx)(Tl,{asChild:!0,size:"lg",className:"w-full",children:(0,m.jsxs)("a",{href:ni,rel:"nofollow",children:[(0,m.jsx)(Pn,{"aria-hidden":"true"}),"Войти через Telegram"]})}),(0,m.jsx)(Tl,{asChild:!0,variant:"outline",size:"lg",className:"w-full",children:(0,m.jsx)("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",children:"Открыть бота"})}),(0,m.jsxs)("p",{className:"mt-2 flex items-center justify-center gap-2 text-xs text-muted-foreground",children:[(0,m.jsx)(Jp,{className:"h-4 w-4","aria-hidden":"true"}),"После входа вы окажетесь в консоли с API-ключом и балансом."]})]})]})})}function GE({page:i}){return(0,m.jsxs)("div",{className:"flex min-h-screen flex-col bg-background text-foreground",children:[(0,m.jsx)(H2,{activePage:i}),(0,m.jsx)("main",{className:"flex-1",children:qE(i)}),(0,m.jsx)(B2,{})]})}function qE(i){switch(i){case"pricing":return(0,m.jsx)(F2,{});case"docs":return(0,m.jsx)(HE,{});case"about":return(0,m.jsx)(LE,{});case"signin":return(0,m.jsx)(YE,{});default:return(0,m.jsx)(V2,{})}}var VE=["home","pricing","docs","about","signin"];function XE(){const i=document.getElementById("root")?.dataset.page??"home";return VE.includes(i)?i:"home"}var Ah=document.getElementById("root");Ah&&(0,Pp.hydrateRoot)(Ah,(0,m.jsx)(GE,{page:XE()}));