@dsrcjs/ai-widget 0.0.0-stage → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +64 -0
- package/README.md +296 -2
- package/dist/ai-dana-chat.js +76 -0
- package/dist/avatar/model.d.ts +12 -0
- package/dist/drag.d.ts +44 -0
- package/dist/echarts-B6eiFnZN.js +18 -0
- package/dist/i18n.d.ts +287 -0
- package/dist/index-D2Riqtpn.js +19 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +1 -0
- package/dist/markdown-impl-Cu_bBFxI.js +34 -0
- package/dist/stream-entry-CNdFWIwY.js +8 -0
- package/dist/theme.d.ts +82 -0
- package/package.json +36 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var Wm=Object.defineProperty,Um=(r,a,o)=>a in r?Wm(r,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[a]=o,Jn=(r,a,o)=>Um(r,typeof a!="symbol"?a+"":a,o);function Qm(r,a){for(var o=0;o<a.length;o++){const i=a[o];if(typeof i!="string"&&!Array.isArray(i)){for(const d in i)if(d!=="default"&&!(d in r)){const p=Object.getOwnPropertyDescriptor(i,d);p&&Object.defineProperty(r,d,p.get?p:{enumerable:!0,get:()=>i[d]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function Ju(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ep={exports:{}},ea={},tp={exports:{}},Se={},rp;function Km(){if(rp)return Se;rp=1;var r=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),k=Symbol.iterator;function S(w){return w===null||typeof w!="object"?null:(w=k&&w[k]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function M(w,P,le){this.props=w,this.context=P,this.refs=_,this.updater=le||E}M.prototype.isReactComponent={},M.prototype.setState=function(w,P){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,P,"setState")},M.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function $(){}$.prototype=M.prototype;function X(w,P,le){this.props=w,this.context=P,this.refs=_,this.updater=le||E}var ae=X.prototype=new $;ae.constructor=X,C(ae,M.prototype),ae.isPureReactComponent=!0;var G=Array.isArray,D=Object.prototype.hasOwnProperty,te={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function re(w,P,le){var H,ie={},de=null,je=null;if(P!=null)for(H in P.ref!==void 0&&(je=P.ref),P.key!==void 0&&(de=""+P.key),P)D.call(P,H)&&!Z.hasOwnProperty(H)&&(ie[H]=P[H]);var ke=arguments.length-2;if(ke===1)ie.children=le;else if(1<ke){for(var ve=Array(ke),We=0;We<ke;We++)ve[We]=arguments[We+2];ie.children=ve}if(w&&w.defaultProps)for(H in ke=w.defaultProps,ke)ie[H]===void 0&&(ie[H]=ke[H]);return{$$typeof:r,type:w,key:de,ref:je,props:ie,_owner:te.current}}function be(w,P){return{$$typeof:r,type:w.type,key:P,ref:w.ref,props:w.props,_owner:w._owner}}function Q(w){return typeof w=="object"&&w!==null&&w.$$typeof===r}function fe(w){var P={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(le){return P[le]})}var W=/\/+/g;function U(w,P){return typeof w=="object"&&w!==null&&w.key!=null?fe(""+w.key):P.toString(36)}function me(w,P,le,H,ie){var de=typeof w;(de==="undefined"||de==="boolean")&&(w=null);var je=!1;if(w===null)je=!0;else switch(de){case"string":case"number":je=!0;break;case"object":switch(w.$$typeof){case r:case a:je=!0}}if(je)return je=w,ie=ie(je),w=H===""?"."+U(je,0):H,G(ie)?(le="",w!=null&&(le=w.replace(W,"$&/")+"/"),me(ie,P,le,"",function(We){return We})):ie!=null&&(Q(ie)&&(ie=be(ie,le+(!ie.key||je&&je.key===ie.key?"":(""+ie.key).replace(W,"$&/")+"/")+w)),P.push(ie)),1;if(je=0,H=H===""?".":H+":",G(w))for(var ke=0;ke<w.length;ke++){de=w[ke];var ve=H+U(de,ke);je+=me(de,P,le,ve,ie)}else if(ve=S(w),typeof ve=="function")for(w=ve.call(w),ke=0;!(de=w.next()).done;)de=de.value,ve=H+U(de,ke++),je+=me(de,P,le,ve,ie);else if(de==="object")throw P=String(w),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.");return je}function _e(w,P,le){if(w==null)return w;var H=[],ie=0;return me(w,H,"","",function(de){return P.call(le,de,ie++)}),H}function xe(w){if(w._status===-1){var P=w._result;P=P(),P.then(function(le){(w._status===0||w._status===-1)&&(w._status=1,w._result=le)},function(le){(w._status===0||w._status===-1)&&(w._status=2,w._result=le)}),w._status===-1&&(w._status=0,w._result=P)}if(w._status===1)return w._result.default;throw w._result}var ye={current:null},q={transition:null},R={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:q,ReactCurrentOwner:te};function T(){throw Error("act(...) is not supported in production builds of React.")}return Se.Children={map:_e,forEach:function(w,P,le){_e(w,function(){P.apply(this,arguments)},le)},count:function(w){var P=0;return _e(w,function(){P++}),P},toArray:function(w){return _e(w,function(P){return P})||[]},only:function(w){if(!Q(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},Se.Component=M,Se.Fragment=o,Se.Profiler=d,Se.PureComponent=X,Se.StrictMode=i,Se.Suspense=m,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,Se.act=T,Se.cloneElement=function(w,P,le){if(w==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+w+".");var H=C({},w.props),ie=w.key,de=w.ref,je=w._owner;if(P!=null){if(P.ref!==void 0&&(de=P.ref,je=te.current),P.key!==void 0&&(ie=""+P.key),w.type&&w.type.defaultProps)var ke=w.type.defaultProps;for(ve in P)D.call(P,ve)&&!Z.hasOwnProperty(ve)&&(H[ve]=P[ve]===void 0&&ke!==void 0?ke[ve]:P[ve])}var ve=arguments.length-2;if(ve===1)H.children=le;else if(1<ve){ke=Array(ve);for(var We=0;We<ve;We++)ke[We]=arguments[We+2];H.children=ke}return{$$typeof:r,type:w.type,key:ie,ref:de,props:H,_owner:je}},Se.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},w.Provider={$$typeof:p,_context:w},w.Consumer=w},Se.createElement=re,Se.createFactory=function(w){var P=re.bind(null,w);return P.type=w,P},Se.createRef=function(){return{current:null}},Se.forwardRef=function(w){return{$$typeof:g,render:w}},Se.isValidElement=Q,Se.lazy=function(w){return{$$typeof:x,_payload:{_status:-1,_result:w},_init:xe}},Se.memo=function(w,P){return{$$typeof:b,type:w,compare:P===void 0?null:P}},Se.startTransition=function(w){var P=q.transition;q.transition={};try{w()}finally{q.transition=P}},Se.unstable_act=T,Se.useCallback=function(w,P){return ye.current.useCallback(w,P)},Se.useContext=function(w){return ye.current.useContext(w)},Se.useDebugValue=function(){},Se.useDeferredValue=function(w){return ye.current.useDeferredValue(w)},Se.useEffect=function(w,P){return ye.current.useEffect(w,P)},Se.useId=function(){return ye.current.useId()},Se.useImperativeHandle=function(w,P,le){return ye.current.useImperativeHandle(w,P,le)},Se.useInsertionEffect=function(w,P){return ye.current.useInsertionEffect(w,P)},Se.useLayoutEffect=function(w,P){return ye.current.useLayoutEffect(w,P)},Se.useMemo=function(w,P){return ye.current.useMemo(w,P)},Se.useReducer=function(w,P,le){return ye.current.useReducer(w,P,le)},Se.useRef=function(w){return ye.current.useRef(w)},Se.useState=function(w){return ye.current.useState(w)},Se.useSyncExternalStore=function(w,P,le){return ye.current.useSyncExternalStore(w,P,le)},Se.useTransition=function(){return ye.current.useTransition()},Se.version="18.3.1",Se}var np;function Wi(){return np||(np=1,tp.exports=Km()),tp.exports}var ap;function Xm(){if(ap)return ea;ap=1;var r=Wi(),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function f(g,m,b){var x,k={},S=null,E=null;b!==void 0&&(S=""+b),m.key!==void 0&&(S=""+m.key),m.ref!==void 0&&(E=m.ref);for(x in m)i.call(m,x)&&!p.hasOwnProperty(x)&&(k[x]=m[x]);if(g&&g.defaultProps)for(x in m=g.defaultProps,m)k[x]===void 0&&(k[x]=m[x]);return{$$typeof:a,type:g,key:S,ref:E,props:k,_owner:d.current}}return ea.Fragment=o,ea.jsx=f,ea.jsxs=f,ea}var op;function Gm(){return op||(op=1,ep.exports=Xm()),ep.exports}var c=Gm(),v=Wi();const Zm=Ju(v),Ym=Qm({__proto__:null,default:Zm},[v]);var Lo={},Ui={exports:{}},lt={},lp={exports:{}},ip={},sp;function Jm(){return sp||(sp=1,(function(r){function a(q,R){var T=q.length;q.push(R);e:for(;0<T;){var w=T-1>>>1,P=q[w];if(0<d(P,R))q[w]=R,q[T]=P,T=w;else break e}}function o(q){return q.length===0?null:q[0]}function i(q){if(q.length===0)return null;var R=q[0],T=q.pop();if(T!==R){q[0]=T;e:for(var w=0,P=q.length,le=P>>>1;w<le;){var H=2*(w+1)-1,ie=q[H],de=H+1,je=q[de];if(0>d(ie,T))de<P&&0>d(je,ie)?(q[w]=je,q[de]=T,w=de):(q[w]=ie,q[H]=T,w=H);else if(de<P&&0>d(je,T))q[w]=je,q[de]=T,w=de;else break e}}return R}function d(q,R){var T=q.sortIndex-R.sortIndex;return T!==0?T:q.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;r.unstable_now=function(){return p.now()}}else{var f=Date,g=f.now();r.unstable_now=function(){return f.now()-g}}var m=[],b=[],x=1,k=null,S=3,E=!1,C=!1,_=!1,M=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ae(q){for(var R=o(b);R!==null;){if(R.callback===null)i(b);else if(R.startTime<=q)i(b),R.sortIndex=R.expirationTime,a(m,R);else break;R=o(b)}}function G(q){if(_=!1,ae(q),!C)if(o(m)!==null)C=!0,xe(D);else{var R=o(b);R!==null&&ye(G,R.startTime-q)}}function D(q,R){C=!1,_&&(_=!1,$(re),re=-1),E=!0;var T=S;try{for(ae(R),k=o(m);k!==null&&(!(k.expirationTime>R)||q&&!fe());){var w=k.callback;if(typeof w=="function"){k.callback=null,S=k.priorityLevel;var P=w(k.expirationTime<=R);R=r.unstable_now(),typeof P=="function"?k.callback=P:k===o(m)&&i(m),ae(R)}else i(m);k=o(m)}if(k!==null)var le=!0;else{var H=o(b);H!==null&&ye(G,H.startTime-R),le=!1}return le}finally{k=null,S=T,E=!1}}var te=!1,Z=null,re=-1,be=5,Q=-1;function fe(){return!(r.unstable_now()-Q<be)}function W(){if(Z!==null){var q=r.unstable_now();Q=q;var R=!0;try{R=Z(!0,q)}finally{R?U():(te=!1,Z=null)}}else te=!1}var U;if(typeof X=="function")U=function(){X(W)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,_e=me.port2;me.port1.onmessage=W,U=function(){_e.postMessage(null)}}else U=function(){M(W,0)};function xe(q){Z=q,te||(te=!0,U())}function ye(q,R){re=M(function(){q(r.unstable_now())},R)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(q){q.callback=null},r.unstable_continueExecution=function(){C||E||(C=!0,xe(D))},r.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):be=0<q?Math.floor(1e3/q):5},r.unstable_getCurrentPriorityLevel=function(){return S},r.unstable_getFirstCallbackNode=function(){return o(m)},r.unstable_next=function(q){switch(S){case 1:case 2:case 3:var R=3;break;default:R=S}var T=S;S=R;try{return q()}finally{S=T}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(q,R){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var T=S;S=q;try{return R()}finally{S=T}},r.unstable_scheduleCallback=function(q,R,T){var w=r.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?w+T:w):T=w,q){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=T+P,q={id:x++,callback:R,priorityLevel:q,startTime:T,expirationTime:P,sortIndex:-1},T>w?(q.sortIndex=T,a(b,q),o(m)===null&&q===o(b)&&(_?($(re),re=-1):_=!0,ye(G,T-w))):(q.sortIndex=P,a(m,q),C||E||(C=!0,xe(D))),q},r.unstable_shouldYield=fe,r.unstable_wrapCallback=function(q){var R=S;return function(){var T=S;S=R;try{return q.apply(this,arguments)}finally{S=T}}}})(ip)),ip}var cp;function eb(){return cp||(cp=1,lp.exports=Jm()),lp.exports}var dp;function tb(){if(dp)return lt;dp=1;var r=Wi(),a=eb();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,d={};function p(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(d[e]=t,e=0;e<t.length;e++)i.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,b=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},k={};function S(e){return m.call(k,e)?!0:m.call(x,e)?!1:b.test(e)?k[e]=!0:(x[e]=!0,!1)}function E(e,t,n,l){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,t,n,l){if(t===null||typeof t>"u"||E(e,t,n,l))return!0;if(l)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,l,s,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new _(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new _(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($,X);M[t]=new _(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($,X);M[t]=new _(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($,X);M[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function ae(e,t,n,l){var s=M.hasOwnProperty(t)?M[t]:null;(s!==null?s.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(C(t,n,s,l)&&(n=null),l||s===null?S(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,l=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,l?e.setAttributeNS(l,t,n):e.setAttribute(t,n))))}var G=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),te=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),re=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),fe=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),q=Symbol.iterator;function R(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var T=Object.assign,w;function P(e){if(w===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);w=t&&t[1]||""}return`
|
|
2
|
+
`+w+e}var le=!1;function H(e,t){if(!e||le)return"";le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(I){var l=I}Reflect.construct(e,[],t)}else{try{t.call()}catch(I){l=I}e.call(t.prototype)}else{try{throw Error()}catch(I){l=I}e()}}catch(I){if(I&&l&&typeof I.stack=="string"){for(var s=I.stack.split(`
|
|
3
|
+
`),u=l.stack.split(`
|
|
4
|
+
`),h=s.length-1,y=u.length-1;1<=h&&0<=y&&s[h]!==u[y];)y--;for(;1<=h&&0<=y;h--,y--)if(s[h]!==u[y]){if(h!==1||y!==1)do if(h--,y--,0>y||s[h]!==u[y]){var j=`
|
|
5
|
+
`+s[h].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=h&&0<=y);break}}}finally{le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P(e):""}function ie(e){switch(e.tag){case 5:return P(e.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1),e;case 11:return e=H(e.type.render,!1),e;case 1:return e=H(e.type,!0),e;default:return""}}function de(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Z:return"Fragment";case te:return"Portal";case be:return"Profiler";case re:return"StrictMode";case U:return"Suspense";case me:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fe:return(e.displayName||"Context")+".Consumer";case Q:return(e._context.displayName||"Context")+".Provider";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case xe:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(t);case 8:return t===re?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function We(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(h){l=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(h){l=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function va(e){e._valueTracker||(e._valueTracker=We(e))}function ac(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=ve(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ya(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jo(e,t){var n=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function oc(e,t){var n=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;n=ke(t.value!=null?t.value:n),e._wrapperState={initialChecked:l,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lc(e,t){t=t.checked,t!=null&&ae(e,"checked",t,!1)}function el(e,t){lc(e,t);var n=ke(t.value),l=t.type;if(n!=null)l==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&tl(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ic(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tl(e,t,n){(t!=="number"||ya(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hn=Array.isArray;function Tr(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+ke(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function rl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return T({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(hn(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function cc(e,t){var n=ke(t.value),l=ke(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),l!=null&&(e.defaultValue=""+l)}function dc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wa,pc=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,l,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,l,s)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wa=wa||document.createElement("div"),wa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xh=["Webkit","ms","Moz","O"];Object.keys(mn).forEach(function(e){Xh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mn[t]=mn[e]})});function fc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mn.hasOwnProperty(e)&&mn[e]?(""+t).trim():t+"px"}function hc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var l=n.indexOf("--")===0,s=fc(n,t[n],l);n==="float"&&(n="cssFloat"),l?e.setProperty(n,s):e[n]=s}}var Gh=T({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function al(e,t){if(t){if(Gh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function ol(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ll=null;function il(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sl=null,Ar=null,Fr=null;function gc(e){if(e=Dn(e)){if(typeof sl!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Ba(t),sl(e.stateNode,e.type,t))}}function mc(e){Ar?Fr?Fr.push(e):Fr=[e]:Ar=e}function bc(){if(Ar){var e=Ar,t=Fr;if(Fr=Ar=null,gc(e),t)for(e=0;e<t.length;e++)gc(t[e])}}function xc(e,t){return e(t)}function vc(){}var cl=!1;function yc(e,t,n){if(cl)return e(t,n);cl=!0;try{return xc(e,t,n)}finally{cl=!1,(Ar!==null||Fr!==null)&&(vc(),bc())}}function bn(e,t){var n=e.stateNode;if(n===null)return null;var l=Ba(n);if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var dl=!1;if(g)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){dl=!0}}),window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch{dl=!1}function Zh(e,t,n,l,s,u,h,y,j){var I=Array.prototype.slice.call(arguments,3);try{t.apply(n,I)}catch(F){this.onError(F)}}var vn=!1,ka=null,Sa=!1,ul=null,Yh={onError:function(e){vn=!0,ka=e}};function Jh(e,t,n,l,s,u,h,y,j){vn=!1,ka=null,Zh.apply(Yh,arguments)}function eg(e,t,n,l,s,u,h,y,j){if(Jh.apply(this,arguments),vn){if(vn){var I=ka;vn=!1,ka=null}else throw Error(o(198));Sa||(Sa=!0,ul=I)}}function gr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function wc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function kc(e){if(gr(e)!==e)throw Error(o(188))}function tg(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return kc(s),e;if(u===l)return kc(s),t;u=u.sibling}throw Error(o(188))}if(n.return!==l.return)n=s,l=u;else{for(var h=!1,y=s.child;y;){if(y===n){h=!0,n=s,l=u;break}if(y===l){h=!0,l=s,n=u;break}y=y.sibling}if(!h){for(y=u.child;y;){if(y===n){h=!0,n=u,l=s;break}if(y===l){h=!0,l=u,n=s;break}y=y.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function Sc(e){return e=tg(e),e!==null?jc(e):null}function jc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jc(e);if(t!==null)return t;e=e.sibling}return null}var Nc=a.unstable_scheduleCallback,_c=a.unstable_cancelCallback,rg=a.unstable_shouldYield,ng=a.unstable_requestPaint,Fe=a.unstable_now,ag=a.unstable_getCurrentPriorityLevel,pl=a.unstable_ImmediatePriority,Ec=a.unstable_UserBlockingPriority,ja=a.unstable_NormalPriority,og=a.unstable_LowPriority,zc=a.unstable_IdlePriority,Na=null,Lt=null;function lg(e){if(Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Na,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:cg,ig=Math.log,sg=Math.LN2;function cg(e){return e>>>=0,e===0?32:31-(ig(e)/sg|0)|0}var _a=64,Ea=4194304;function yn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function za(e,t){var n=e.pendingLanes;if(n===0)return 0;var l=0,s=e.suspendedLanes,u=e.pingedLanes,h=n&268435455;if(h!==0){var y=h&~s;y!==0?l=yn(y):(u&=h,u!==0&&(l=yn(u)))}else h=n&~s,h!==0?l=yn(h):u!==0&&(l=yn(u));if(l===0)return 0;if(t!==0&&t!==l&&(t&s)===0&&(s=l&-l,u=t&-t,s>=u||s===16&&(u&4194240)!==0))return t;if((l&4)!==0&&(l|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)n=31-wt(t),s=1<<n,l|=e[n],t&=~s;return l}function dg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ug(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes;0<u;){var h=31-wt(u),y=1<<h,j=s[h];j===-1?((y&n)===0||(y&l)!==0)&&(s[h]=dg(y,t)):j<=t&&(e.expiredLanes|=y),u&=~y}}function fl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cc(){var e=_a;return _a<<=1,(_a&4194240)===0&&(_a=64),e}function hl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function pg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-wt(n),u=1<<s;t[s]=0,l[s]=-1,e[s]=-1,n&=~u}}function gl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-wt(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}var ze=0;function Lc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Mc,ml,Ic,Pc,Rc,bl=!1,Ca=[],Ut=null,Qt=null,Kt=null,kn=new Map,Sn=new Map,Xt=[],fg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Tc(e,t){switch(e){case"focusin":case"focusout":Ut=null;break;case"dragenter":case"dragleave":Qt=null;break;case"mouseover":case"mouseout":Kt=null;break;case"pointerover":case"pointerout":kn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sn.delete(t.pointerId)}}function jn(e,t,n,l,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Dn(t),t!==null&&ml(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function hg(e,t,n,l,s){switch(t){case"focusin":return Ut=jn(Ut,e,t,n,l,s),!0;case"dragenter":return Qt=jn(Qt,e,t,n,l,s),!0;case"mouseover":return Kt=jn(Kt,e,t,n,l,s),!0;case"pointerover":var u=s.pointerId;return kn.set(u,jn(kn.get(u)||null,e,t,n,l,s)),!0;case"gotpointercapture":return u=s.pointerId,Sn.set(u,jn(Sn.get(u)||null,e,t,n,l,s)),!0}return!1}function Ac(e){var t=mr(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=wc(n),t!==null){e.blockedOn=t,Rc(e.priority,function(){Ic(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function La(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ll=l,n.target.dispatchEvent(l),ll=null}else return t=Dn(n),t!==null&&ml(t),e.blockedOn=n,!1;t.shift()}return!0}function Fc(e,t,n){La(e)&&n.delete(t)}function gg(){bl=!1,Ut!==null&&La(Ut)&&(Ut=null),Qt!==null&&La(Qt)&&(Qt=null),Kt!==null&&La(Kt)&&(Kt=null),kn.forEach(Fc),Sn.forEach(Fc)}function Nn(e,t){e.blockedOn===t&&(e.blockedOn=null,bl||(bl=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,gg)))}function _n(e){function t(s){return Nn(s,e)}if(0<Ca.length){Nn(Ca[0],e);for(var n=1;n<Ca.length;n++){var l=Ca[n];l.blockedOn===e&&(l.blockedOn=null)}}for(Ut!==null&&Nn(Ut,e),Qt!==null&&Nn(Qt,e),Kt!==null&&Nn(Kt,e),kn.forEach(t),Sn.forEach(t),n=0;n<Xt.length;n++)l=Xt[n],l.blockedOn===e&&(l.blockedOn=null);for(;0<Xt.length&&(n=Xt[0],n.blockedOn===null);)Ac(n),n.blockedOn===null&&Xt.shift()}var Dr=G.ReactCurrentBatchConfig,Ma=!0;function mg(e,t,n,l){var s=ze,u=Dr.transition;Dr.transition=null;try{ze=1,xl(e,t,n,l)}finally{ze=s,Dr.transition=u}}function bg(e,t,n,l){var s=ze,u=Dr.transition;Dr.transition=null;try{ze=4,xl(e,t,n,l)}finally{ze=s,Dr.transition=u}}function xl(e,t,n,l){if(Ma){var s=vl(e,t,n,l);if(s===null)Al(e,t,l,Ia,n),Tc(e,l);else if(hg(s,e,t,n,l))l.stopPropagation();else if(Tc(e,l),t&4&&-1<fg.indexOf(e)){for(;s!==null;){var u=Dn(s);if(u!==null&&Mc(u),u=vl(e,t,n,l),u===null&&Al(e,t,l,Ia,n),u===s)break;s=u}s!==null&&l.stopPropagation()}else Al(e,t,l,null,n)}}var Ia=null;function vl(e,t,n,l){if(Ia=null,e=il(l),e=mr(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ia=e,null}function Dc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ag()){case pl:return 1;case Ec:return 4;case ja:case og:return 16;case zc:return 536870912;default:return 16}default:return 16}}var Gt=null,yl=null,Pa=null;function Oc(){if(Pa)return Pa;var e,t=yl,n=t.length,l,s="value"in Gt?Gt.value:Gt.textContent,u=s.length;for(e=0;e<n&&t[e]===s[e];e++);var h=n-e;for(l=1;l<=h&&t[n-l]===s[u-l];l++);return Pa=s.slice(e,1<l?1-l:void 0)}function Ra(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ta(){return!0}function $c(){return!1}function it(e){function t(n,l,s,u,h){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ta:$c,this.isPropagationStopped=$c,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ta)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ta)},persist:function(){},isPersistent:Ta}),t}var Or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wl=it(Or),En=T({},Or,{view:0,detail:0}),xg=it(En),kl,Sl,zn,Aa=T({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zn&&(zn&&e.type==="mousemove"?(kl=e.screenX-zn.screenX,Sl=e.screenY-zn.screenY):Sl=kl=0,zn=e),kl)},movementY:function(e){return"movementY"in e?e.movementY:Sl}}),qc=it(Aa),vg=T({},Aa,{dataTransfer:0}),yg=it(vg),wg=T({},En,{relatedTarget:0}),jl=it(wg),kg=T({},Or,{animationName:0,elapsedTime:0,pseudoElement:0}),Sg=it(kg),jg=T({},Or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ng=it(jg),_g=T({},Or,{data:0}),Vc=it(_g),Eg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cg[e])?!!t[e]:!1}function Nl(){return Lg}var Mg=T({},En,{key:function(e){if(e.key){var t=Eg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ra(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nl,charCode:function(e){return e.type==="keypress"?Ra(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ra(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ig=it(Mg),Pg=T({},Aa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hc=it(Pg),Rg=T({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nl}),Tg=it(Rg),Ag=T({},Or,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fg=it(Ag),Dg=T({},Aa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Og=it(Dg),$g=[9,13,27,32],_l=g&&"CompositionEvent"in window,Cn=null;g&&"documentMode"in document&&(Cn=document.documentMode);var qg=g&&"TextEvent"in window&&!Cn,Bc=g&&(!_l||Cn&&8<Cn&&11>=Cn),Wc=" ",Uc=!1;function Qc(e,t){switch(e){case"keyup":return $g.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function Vg(e,t){switch(e){case"compositionend":return Kc(t);case"keypress":return t.which!==32?null:(Uc=!0,Wc);case"textInput":return e=t.data,e===Wc&&Uc?null:e;default:return null}}function Hg(e,t){if($r)return e==="compositionend"||!_l&&Qc(e,t)?(e=Oc(),Pa=yl=Gt=null,$r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bc&&t.locale!=="ko"?null:t.data;default:return null}}var Bg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bg[e.type]:t==="textarea"}function Gc(e,t,n,l){mc(l),t=qa(t,"onChange"),0<t.length&&(n=new wl("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ln=null,Mn=null;function Wg(e){hd(e,0)}function Fa(e){var t=Wr(e);if(ac(t))return e}function Ug(e,t){if(e==="change")return t}var Zc=!1;if(g){var El;if(g){var zl="oninput"in document;if(!zl){var Yc=document.createElement("div");Yc.setAttribute("oninput","return;"),zl=typeof Yc.oninput=="function"}El=zl}else El=!1;Zc=El&&(!document.documentMode||9<document.documentMode)}function Jc(){Ln&&(Ln.detachEvent("onpropertychange",ed),Mn=Ln=null)}function ed(e){if(e.propertyName==="value"&&Fa(Mn)){var t=[];Gc(t,Mn,e,il(e)),yc(Wg,t)}}function Qg(e,t,n){e==="focusin"?(Jc(),Ln=t,Mn=n,Ln.attachEvent("onpropertychange",ed)):e==="focusout"&&Jc()}function Kg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fa(Mn)}function Xg(e,t){if(e==="click")return Fa(t)}function Gg(e,t){if(e==="input"||e==="change")return Fa(t)}function Zg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:Zg;function In(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!m.call(t,s)||!kt(e[s],t[s]))return!1}return!0}function td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rd(e,t){var n=td(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=td(n)}}function nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ad(){for(var e=window,t=ya();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ya(e.document)}return t}function Cl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yg(e){var t=ad(),n=e.focusedElem,l=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nd(n.ownerDocument.documentElement,n)){if(l!==null&&Cl(n)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,u=Math.min(l.start,s);l=l.end===void 0?u:Math.min(l.end,s),!e.extend&&u>l&&(s=l,l=u,u=s),s=rd(n,u);var h=rd(n,l);s&&h&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),u>l?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jg=g&&"documentMode"in document&&11>=document.documentMode,qr=null,Ll=null,Pn=null,Ml=!1;function od(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ml||qr==null||qr!==ya(l)||(l=qr,"selectionStart"in l&&Cl(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Pn&&In(Pn,l)||(Pn=l,l=qa(Ll,"onSelect"),0<l.length&&(t=new wl("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=qr)))}function Da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vr={animationend:Da("Animation","AnimationEnd"),animationiteration:Da("Animation","AnimationIteration"),animationstart:Da("Animation","AnimationStart"),transitionend:Da("Transition","TransitionEnd")},Il={},ld={};g&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),"TransitionEvent"in window||delete Vr.transitionend.transition);function Oa(e){if(Il[e])return Il[e];if(!Vr[e])return e;var t=Vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ld)return Il[e]=t[n];return e}var id=Oa("animationend"),sd=Oa("animationiteration"),cd=Oa("animationstart"),dd=Oa("transitionend"),ud=new Map,pd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zt(e,t){ud.set(e,t),p(t,[e])}for(var Pl=0;Pl<pd.length;Pl++){var Rl=pd[Pl],em=Rl.toLowerCase(),tm=Rl[0].toUpperCase()+Rl.slice(1);Zt(em,"on"+tm)}Zt(id,"onAnimationEnd"),Zt(sd,"onAnimationIteration"),Zt(cd,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(dd,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rn));function fd(e,t,n){var l=e.type||"unknown-event";e.currentTarget=n,eg(l,t,void 0,e),e.currentTarget=null}function hd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var h=l.length-1;0<=h;h--){var y=l[h],j=y.instance,I=y.currentTarget;if(y=y.listener,j!==u&&s.isPropagationStopped())break e;fd(s,y,I),u=j}else for(h=0;h<l.length;h++){if(y=l[h],j=y.instance,I=y.currentTarget,y=y.listener,j!==u&&s.isPropagationStopped())break e;fd(s,y,I),u=j}}}if(Sa)throw e=ul,Sa=!1,ul=null,e}function Le(e,t){var n=t[Vl];n===void 0&&(n=t[Vl]=new Set);var l=e+"__bubble";n.has(l)||(gd(t,e,2,!1),n.add(l))}function Tl(e,t,n){var l=0;t&&(l|=4),gd(n,e,l,t)}var $a="_reactListening"+Math.random().toString(36).slice(2);function Tn(e){if(!e[$a]){e[$a]=!0,i.forEach(function(n){n!=="selectionchange"&&(rm.has(n)||Tl(n,!1,e),Tl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$a]||(t[$a]=!0,Tl("selectionchange",!1,t))}}function gd(e,t,n,l){switch(Dc(t)){case 1:var s=mg;break;case 4:s=bg;break;default:s=xl}n=s.bind(null,t,n,e),s=void 0,!dl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Al(e,t,n,l,s){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var y=l.stateNode.containerInfo;if(y===s||y.nodeType===8&&y.parentNode===s)break;if(h===4)for(h=l.return;h!==null;){var j=h.tag;if((j===3||j===4)&&(j=h.stateNode.containerInfo,j===s||j.nodeType===8&&j.parentNode===s))return;h=h.return}for(;y!==null;){if(h=mr(y),h===null)return;if(j=h.tag,j===5||j===6){l=u=h;continue e}y=y.parentNode}}l=l.return}yc(function(){var I=u,F=il(n),O=[];e:{var A=ud.get(e);if(A!==void 0){var K=wl,ee=e;switch(e){case"keypress":if(Ra(n)===0)break e;case"keydown":case"keyup":K=Ig;break;case"focusin":ee="focus",K=jl;break;case"focusout":ee="blur",K=jl;break;case"beforeblur":case"afterblur":K=jl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=yg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Tg;break;case id:case sd:case cd:K=Sg;break;case dd:K=Fg;break;case"scroll":K=xg;break;case"wheel":K=Og;break;case"copy":case"cut":case"paste":K=Ng;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Hc}var ne=(t&4)!==0,De=!ne&&e==="scroll",z=ne?A!==null?A+"Capture":null:A;ne=[];for(var N=I,L;N!==null;){L=N;var V=L.stateNode;if(L.tag===5&&V!==null&&(L=V,z!==null&&(V=bn(N,z),V!=null&&ne.push(An(N,V,L)))),De)break;N=N.return}0<ne.length&&(A=new K(A,ee,null,n,F),O.push({event:A,listeners:ne}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",A&&n!==ll&&(ee=n.relatedTarget||n.fromElement)&&(mr(ee)||ee[Tt]))break e;if((K||A)&&(A=F.window===F?F:(A=F.ownerDocument)?A.defaultView||A.parentWindow:window,K?(ee=n.relatedTarget||n.toElement,K=I,ee=ee?mr(ee):null,ee!==null&&(De=gr(ee),ee!==De||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(K=null,ee=I),K!==ee)){if(ne=qc,V="onMouseLeave",z="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ne=Hc,V="onPointerLeave",z="onPointerEnter",N="pointer"),De=K==null?A:Wr(K),L=ee==null?A:Wr(ee),A=new ne(V,N+"leave",K,n,F),A.target=De,A.relatedTarget=L,V=null,mr(F)===I&&(ne=new ne(z,N+"enter",ee,n,F),ne.target=L,ne.relatedTarget=De,V=ne),De=V,K&&ee)t:{for(ne=K,z=ee,N=0,L=ne;L;L=Hr(L))N++;for(L=0,V=z;V;V=Hr(V))L++;for(;0<N-L;)ne=Hr(ne),N--;for(;0<L-N;)z=Hr(z),L--;for(;N--;){if(ne===z||z!==null&&ne===z.alternate)break t;ne=Hr(ne),z=Hr(z)}ne=null}else ne=null;K!==null&&md(O,A,K,ne,!1),ee!==null&&De!==null&&md(O,De,ee,ne,!0)}}e:{if(A=I?Wr(I):window,K=A.nodeName&&A.nodeName.toLowerCase(),K==="select"||K==="input"&&A.type==="file")var oe=Ug;else if(Xc(A))if(Zc)oe=Gg;else{oe=Kg;var ue=Qg}else(K=A.nodeName)&&K.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(oe=Xg);if(oe&&(oe=oe(e,I))){Gc(O,oe,n,F);break e}ue&&ue(e,A,I),e==="focusout"&&(ue=A._wrapperState)&&ue.controlled&&A.type==="number"&&tl(A,"number",A.value)}switch(ue=I?Wr(I):window,e){case"focusin":(Xc(ue)||ue.contentEditable==="true")&&(qr=ue,Ll=I,Pn=null);break;case"focusout":Pn=Ll=qr=null;break;case"mousedown":Ml=!0;break;case"contextmenu":case"mouseup":case"dragend":Ml=!1,od(O,n,F);break;case"selectionchange":if(Jg)break;case"keydown":case"keyup":od(O,n,F)}var pe;if(_l)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else $r?Qc(e,n)&&(he="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(he="onCompositionStart");he&&(Bc&&n.locale!=="ko"&&($r||he!=="onCompositionStart"?he==="onCompositionEnd"&&$r&&(pe=Oc()):(Gt=F,yl="value"in Gt?Gt.value:Gt.textContent,$r=!0)),ue=qa(I,he),0<ue.length&&(he=new Vc(he,e,null,n,F),O.push({event:he,listeners:ue}),pe?he.data=pe:(pe=Kc(n),pe!==null&&(he.data=pe)))),(pe=qg?Vg(e,n):Hg(e,n))&&(I=qa(I,"onBeforeInput"),0<I.length&&(F=new Vc("onBeforeInput","beforeinput",null,n,F),O.push({event:F,listeners:I}),F.data=pe))}hd(O,t)})}function An(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qa(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,u=s.stateNode;s.tag===5&&u!==null&&(s=u,u=bn(e,n),u!=null&&l.unshift(An(e,u,s)),u=bn(e,t),u!=null&&l.push(An(e,u,s))),e=e.return}return l}function Hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function md(e,t,n,l,s){for(var u=t._reactName,h=[];n!==null&&n!==l;){var y=n,j=y.alternate,I=y.stateNode;if(j!==null&&j===l)break;y.tag===5&&I!==null&&(y=I,s?(j=bn(n,u),j!=null&&h.unshift(An(n,j,y))):s||(j=bn(n,u),j!=null&&h.push(An(n,j,y)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var nm=/\r\n?/g,am=/\u0000|\uFFFD/g;function bd(e){return(typeof e=="string"?e:""+e).replace(nm,`
|
|
6
|
+
`).replace(am,"")}function Va(e,t,n){if(t=bd(t),bd(e)!==t&&n)throw Error(o(425))}function Ha(){}var Fl=null,Dl=null;function Ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $l=typeof setTimeout=="function"?setTimeout:void 0,om=typeof clearTimeout=="function"?clearTimeout:void 0,xd=typeof Promise=="function"?Promise:void 0,lm=typeof queueMicrotask=="function"?queueMicrotask:typeof xd<"u"?function(e){return xd.resolve(null).then(e).catch(im)}:$l;function im(e){setTimeout(function(){throw e})}function ql(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(l===0){e.removeChild(s),_n(t);return}l--}else n!=="$"&&n!=="$?"&&n!=="$!"||l++;n=s}while(n);_n(t)}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Br=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Br,Fn="__reactProps$"+Br,Tt="__reactContainer$"+Br,Vl="__reactEvents$"+Br,sm="__reactListeners$"+Br,cm="__reactHandles$"+Br;function mr(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vd(e);e!==null;){if(n=e[Mt])return n;e=vd(e)}return t}e=n,n=e.parentNode}return null}function Dn(e){return e=e[Mt]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ba(e){return e[Fn]||null}var Hl=[],Ur=-1;function Jt(e){return{current:e}}function Me(e){0>Ur||(e.current=Hl[Ur],Hl[Ur]=null,Ur--)}function Ce(e,t){Ur++,Hl[Ur]=e.current,e.current=t}var er={},Ke=Jt(er),tt=Jt(!1),br=er;function Qr(e,t){var n=e.type.contextTypes;if(!n)return er;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var s={},u;for(u in n)s[u]=t[u];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function rt(e){return e=e.childContextTypes,e!=null}function Wa(){Me(tt),Me(Ke)}function yd(e,t,n){if(Ke.current!==er)throw Error(o(168));Ce(Ke,t),Ce(tt,n)}function wd(e,t,n){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return n;l=l.getChildContext();for(var s in l)if(!(s in t))throw Error(o(108,je(e)||"Unknown",s));return T({},n,l)}function Ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||er,br=Ke.current,Ce(Ke,e),Ce(tt,tt.current),!0}function kd(e,t,n){var l=e.stateNode;if(!l)throw Error(o(169));n?(e=wd(e,t,br),l.__reactInternalMemoizedMergedChildContext=e,Me(tt),Me(Ke),Ce(Ke,e)):Me(tt),Ce(tt,n)}var At=null,Qa=!1,Bl=!1;function Sd(e){At===null?At=[e]:At.push(e)}function dm(e){Qa=!0,Sd(e)}function tr(){if(!Bl&&At!==null){Bl=!0;var e=0,t=ze;try{var n=At;for(ze=1;e<n.length;e++){var l=n[e];do l=l(!0);while(l!==null)}At=null,Qa=!1}catch(s){throw At!==null&&(At=At.slice(e+1)),Nc(pl,tr),s}finally{ze=t,Bl=!1}}return null}var Kr=[],Xr=0,Ka=null,Xa=0,ft=[],ht=0,xr=null,Ft=1,Dt="";function vr(e,t){Kr[Xr++]=Xa,Kr[Xr++]=Ka,Ka=e,Xa=t}function jd(e,t,n){ft[ht++]=Ft,ft[ht++]=Dt,ft[ht++]=xr,xr=e;var l=Ft;e=Dt;var s=32-wt(l)-1;l&=~(1<<s),n+=1;var u=32-wt(t)+s;if(30<u){var h=s-s%5;u=(l&(1<<h)-1).toString(32),l>>=h,s-=h,Ft=1<<32-wt(t)+s|n<<s|l,Dt=u+e}else Ft=1<<u|n<<s|l,Dt=e}function Wl(e){e.return!==null&&(vr(e,1),jd(e,1,0))}function Ul(e){for(;e===Ka;)Ka=Kr[--Xr],Kr[Xr]=null,Xa=Kr[--Xr],Kr[Xr]=null;for(;e===xr;)xr=ft[--ht],ft[ht]=null,Dt=ft[--ht],ft[ht]=null,Ft=ft[--ht],ft[ht]=null}var st=null,ct=null,Pe=!1,St=null;function Nd(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function _d(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,ct=Yt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xr!==null?{id:Ft,overflow:Dt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,ct=null,!0):!1;default:return!1}}function Ql(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kl(e){if(Pe){var t=ct;if(t){var n=t;if(!_d(e,t)){if(Ql(e))throw Error(o(418));t=Yt(n.nextSibling);var l=st;t&&_d(e,t)?Nd(l,n):(e.flags=e.flags&-4097|2,Pe=!1,st=e)}}else{if(Ql(e))throw Error(o(418));e.flags=e.flags&-4097|2,Pe=!1,st=e}}}function Ed(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function Ga(e){if(e!==st)return!1;if(!Pe)return Ed(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ol(e.type,e.memoizedProps)),t&&(t=ct)){if(Ql(e))throw zd(),Error(o(418));for(;t;)Nd(e,t),t=Yt(t.nextSibling)}if(Ed(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ct=Yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=st?Yt(e.stateNode.nextSibling):null;return!0}function zd(){for(var e=ct;e;)e=Yt(e.nextSibling)}function Gr(){ct=st=null,Pe=!1}function Xl(e){St===null?St=[e]:St.push(e)}var um=G.ReactCurrentBatchConfig;function On(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var l=n.stateNode}if(!l)throw Error(o(147,e));var s=l,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(h){var y=s.refs;h===null?delete y[u]:y[u]=h},t._stringRef=u,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Za(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cd(e){var t=e._init;return t(e._payload)}function Ld(e){function t(z,N){if(e){var L=z.deletions;L===null?(z.deletions=[N],z.flags|=16):L.push(N)}}function n(z,N){if(!e)return null;for(;N!==null;)t(z,N),N=N.sibling;return null}function l(z,N){for(z=new Map;N!==null;)N.key!==null?z.set(N.key,N):z.set(N.index,N),N=N.sibling;return z}function s(z,N){return z=cr(z,N),z.index=0,z.sibling=null,z}function u(z,N,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<N?(z.flags|=2,N):L):(z.flags|=2,N)):(z.flags|=1048576,N)}function h(z){return e&&z.alternate===null&&(z.flags|=2),z}function y(z,N,L,V){return N===null||N.tag!==6?(N=Oi(L,z.mode,V),N.return=z,N):(N=s(N,L),N.return=z,N)}function j(z,N,L,V){var oe=L.type;return oe===Z?F(z,N,L.props.children,V,L.key):N!==null&&(N.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===xe&&Cd(oe)===N.type)?(V=s(N,L.props),V.ref=On(z,N,L),V.return=z,V):(V=ko(L.type,L.key,L.props,null,z.mode,V),V.ref=On(z,N,L),V.return=z,V)}function I(z,N,L,V){return N===null||N.tag!==4||N.stateNode.containerInfo!==L.containerInfo||N.stateNode.implementation!==L.implementation?(N=$i(L,z.mode,V),N.return=z,N):(N=s(N,L.children||[]),N.return=z,N)}function F(z,N,L,V,oe){return N===null||N.tag!==7?(N=Er(L,z.mode,V,oe),N.return=z,N):(N=s(N,L),N.return=z,N)}function O(z,N,L){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Oi(""+N,z.mode,L),N.return=z,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case D:return L=ko(N.type,N.key,N.props,null,z.mode,L),L.ref=On(z,null,N),L.return=z,L;case te:return N=$i(N,z.mode,L),N.return=z,N;case xe:var V=N._init;return O(z,V(N._payload),L)}if(hn(N)||R(N))return N=Er(N,z.mode,L,null),N.return=z,N;Za(z,N)}return null}function A(z,N,L,V){var oe=N!==null?N.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return oe!==null?null:y(z,N,""+L,V);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case D:return L.key===oe?j(z,N,L,V):null;case te:return L.key===oe?I(z,N,L,V):null;case xe:return oe=L._init,A(z,N,oe(L._payload),V)}if(hn(L)||R(L))return oe!==null?null:F(z,N,L,V,null);Za(z,L)}return null}function K(z,N,L,V,oe){if(typeof V=="string"&&V!==""||typeof V=="number")return z=z.get(L)||null,y(N,z,""+V,oe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case D:return z=z.get(V.key===null?L:V.key)||null,j(N,z,V,oe);case te:return z=z.get(V.key===null?L:V.key)||null,I(N,z,V,oe);case xe:var ue=V._init;return K(z,N,L,ue(V._payload),oe)}if(hn(V)||R(V))return z=z.get(L)||null,F(N,z,V,oe,null);Za(N,V)}return null}function ee(z,N,L,V){for(var oe=null,ue=null,pe=N,he=N=0,Be=null;pe!==null&&he<L.length;he++){pe.index>he?(Be=pe,pe=null):Be=pe.sibling;var Ee=A(z,pe,L[he],V);if(Ee===null){pe===null&&(pe=Be);break}e&&pe&&Ee.alternate===null&&t(z,pe),N=u(Ee,N,he),ue===null?oe=Ee:ue.sibling=Ee,ue=Ee,pe=Be}if(he===L.length)return n(z,pe),Pe&&vr(z,he),oe;if(pe===null){for(;he<L.length;he++)pe=O(z,L[he],V),pe!==null&&(N=u(pe,N,he),ue===null?oe=pe:ue.sibling=pe,ue=pe);return Pe&&vr(z,he),oe}for(pe=l(z,pe);he<L.length;he++)Be=K(pe,z,he,L[he],V),Be!==null&&(e&&Be.alternate!==null&&pe.delete(Be.key===null?he:Be.key),N=u(Be,N,he),ue===null?oe=Be:ue.sibling=Be,ue=Be);return e&&pe.forEach(function(dr){return t(z,dr)}),Pe&&vr(z,he),oe}function ne(z,N,L,V){var oe=R(L);if(typeof oe!="function")throw Error(o(150));if(L=oe.call(L),L==null)throw Error(o(151));for(var ue=oe=null,pe=N,he=N=0,Be=null,Ee=L.next();pe!==null&&!Ee.done;he++,Ee=L.next()){pe.index>he?(Be=pe,pe=null):Be=pe.sibling;var dr=A(z,pe,Ee.value,V);if(dr===null){pe===null&&(pe=Be);break}e&&pe&&dr.alternate===null&&t(z,pe),N=u(dr,N,he),ue===null?oe=dr:ue.sibling=dr,ue=dr,pe=Be}if(Ee.done)return n(z,pe),Pe&&vr(z,he),oe;if(pe===null){for(;!Ee.done;he++,Ee=L.next())Ee=O(z,Ee.value,V),Ee!==null&&(N=u(Ee,N,he),ue===null?oe=Ee:ue.sibling=Ee,ue=Ee);return Pe&&vr(z,he),oe}for(pe=l(z,pe);!Ee.done;he++,Ee=L.next())Ee=K(pe,z,he,Ee.value,V),Ee!==null&&(e&&Ee.alternate!==null&&pe.delete(Ee.key===null?he:Ee.key),N=u(Ee,N,he),ue===null?oe=Ee:ue.sibling=Ee,ue=Ee);return e&&pe.forEach(function(Bm){return t(z,Bm)}),Pe&&vr(z,he),oe}function De(z,N,L,V){if(typeof L=="object"&&L!==null&&L.type===Z&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case D:e:{for(var oe=L.key,ue=N;ue!==null;){if(ue.key===oe){if(oe=L.type,oe===Z){if(ue.tag===7){n(z,ue.sibling),N=s(ue,L.props.children),N.return=z,z=N;break e}}else if(ue.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===xe&&Cd(oe)===ue.type){n(z,ue.sibling),N=s(ue,L.props),N.ref=On(z,ue,L),N.return=z,z=N;break e}n(z,ue);break}else t(z,ue);ue=ue.sibling}L.type===Z?(N=Er(L.props.children,z.mode,V,L.key),N.return=z,z=N):(V=ko(L.type,L.key,L.props,null,z.mode,V),V.ref=On(z,N,L),V.return=z,z=V)}return h(z);case te:e:{for(ue=L.key;N!==null;){if(N.key===ue)if(N.tag===4&&N.stateNode.containerInfo===L.containerInfo&&N.stateNode.implementation===L.implementation){n(z,N.sibling),N=s(N,L.children||[]),N.return=z,z=N;break e}else{n(z,N);break}else t(z,N);N=N.sibling}N=$i(L,z.mode,V),N.return=z,z=N}return h(z);case xe:return ue=L._init,De(z,N,ue(L._payload),V)}if(hn(L))return ee(z,N,L,V);if(R(L))return ne(z,N,L,V);Za(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,N!==null&&N.tag===6?(n(z,N.sibling),N=s(N,L),N.return=z,z=N):(n(z,N),N=Oi(L,z.mode,V),N.return=z,z=N),h(z)):n(z,N)}return De}var Zr=Ld(!0),Md=Ld(!1),Ya=Jt(null),Ja=null,Yr=null,Gl=null;function Zl(){Gl=Yr=Ja=null}function Yl(e){var t=Ya.current;Me(Ya),e._currentValue=t}function Jl(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Jr(e,t){Ja=e,Gl=Yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nt=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Gl!==e)if(e={context:e,memoizedValue:t,next:null},Yr===null){if(Ja===null)throw Error(o(308));Yr=e,Ja.dependencies={lanes:0,firstContext:e}}else Yr=Yr.next=e;return t}var yr=null;function ei(e){yr===null?yr=[e]:yr.push(e)}function Id(e,t,n,l){var s=t.interleaved;return s===null?(n.next=n,ei(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ot(e,l)}function Ot(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nr(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,Ot(e,n)}return s=l.interleaved,s===null?(t.next=t,ei(l)):(t.next=s.next,s.next=t),l.interleaved=t,Ot(e,n)}function eo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,gl(e,n)}}function Rd(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?s=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:l.shared,effects:l.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function to(e,t,n,l){var s=e.updateQueue;rr=!1;var u=s.firstBaseUpdate,h=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var j=y,I=j.next;j.next=null,h===null?u=I:h.next=I,h=j;var F=e.alternate;F!==null&&(F=F.updateQueue,y=F.lastBaseUpdate,y!==h&&(y===null?F.firstBaseUpdate=I:y.next=I,F.lastBaseUpdate=j))}if(u!==null){var O=s.baseState;h=0,F=I=j=null,y=u;do{var A=y.lane,K=y.eventTime;if((l&A)===A){F!==null&&(F=F.next={eventTime:K,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var ee=e,ne=y;switch(A=t,K=n,ne.tag){case 1:if(ee=ne.payload,typeof ee=="function"){O=ee.call(K,O,A);break e}O=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ne.payload,A=typeof ee=="function"?ee.call(K,O,A):ee,A==null)break e;O=T({},O,A);break e;case 2:rr=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,A=s.effects,A===null?s.effects=[y]:A.push(y))}else K={eventTime:K,lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},F===null?(I=F=K,j=O):F=F.next=K,h|=A;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;A=y,y=A.next,A.next=null,s.lastBaseUpdate=A,s.shared.pending=null}}while(!0);if(F===null&&(j=O),s.baseState=j,s.firstBaseUpdate=I,s.lastBaseUpdate=F,t=s.shared.interleaved,t!==null){s=t;do h|=s.lane,s=s.next;while(s!==t)}else u===null&&(s.shared.lanes=0);Sr|=h,e.lanes=h,e.memoizedState=O}}function Td(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],s=l.callback;if(s!==null){if(l.callback=null,l=n,typeof s!="function")throw Error(o(191,s));s.call(l)}}}var $n={},It=Jt($n),qn=Jt($n),Vn=Jt($n);function wr(e){if(e===$n)throw Error(o(174));return e}function ri(e,t){switch(Ce(Vn,t),Ce(qn,e),Ce(It,$n),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nl(t,e)}Me(It),Ce(It,t)}function en(){Me(It),Me(qn),Me(Vn)}function Ad(e){wr(Vn.current);var t=wr(It.current),n=nl(t,e.type);t!==n&&(Ce(qn,e),Ce(It,n))}function ni(e){qn.current===e&&(Me(It),Me(qn))}var Re=Jt(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ai=[];function oi(){for(var e=0;e<ai.length;e++)ai[e]._workInProgressVersionPrimary=null;ai.length=0}var no=G.ReactCurrentDispatcher,li=G.ReactCurrentBatchConfig,kr=0,Te=null,$e=null,Ve=null,ao=!1,Hn=!1,Bn=0,pm=0;function Xe(){throw Error(o(321))}function ii(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kt(e[n],t[n]))return!1;return!0}function si(e,t,n,l,s,u){if(kr=u,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,no.current=e===null||e.memoizedState===null?mm:bm,e=n(l,s),Hn){u=0;do{if(Hn=!1,Bn=0,25<=u)throw Error(o(301));u+=1,Ve=$e=null,t.updateQueue=null,no.current=xm,e=n(l,s)}while(Hn)}if(no.current=io,t=$e!==null&&$e.next!==null,kr=0,Ve=$e=Te=null,ao=!1,t)throw Error(o(300));return e}function ci(){var e=Bn!==0;return Bn=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Te.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function mt(){if($e===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Ve===null?Te.memoizedState:Ve.next;if(t!==null)Ve=t,$e=e;else{if(e===null)throw Error(o(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Ve===null?Te.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Wn(e,t){return typeof t=="function"?t(e):t}function di(e){var t=mt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=$e,s=l.baseQueue,u=n.pending;if(u!==null){if(s!==null){var h=s.next;s.next=u.next,u.next=h}l.baseQueue=s=u,n.pending=null}if(s!==null){u=s.next,l=l.baseState;var y=h=null,j=null,I=u;do{var F=I.lane;if((kr&F)===F)j!==null&&(j=j.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),l=I.hasEagerState?I.eagerState:e(l,I.action);else{var O={lane:F,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};j===null?(y=j=O,h=l):j=j.next=O,Te.lanes|=F,Sr|=F}I=I.next}while(I!==null&&I!==u);j===null?h=l:j.next=y,kt(l,t.memoizedState)||(nt=!0),t.memoizedState=l,t.baseState=h,t.baseQueue=j,n.lastRenderedState=l}if(e=n.interleaved,e!==null){s=e;do u=s.lane,Te.lanes|=u,Sr|=u,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ui(e){var t=mt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var h=s=s.next;do u=e(u,h.action),h=h.next;while(h!==s);kt(u,t.memoizedState)||(nt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function Fd(){}function Dd(e,t){var n=Te,l=mt(),s=t(),u=!kt(l.memoizedState,s);if(u&&(l.memoizedState=s,nt=!0),l=l.queue,pi(qd.bind(null,n,l,e),[e]),l.getSnapshot!==t||u||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Un(9,$d.bind(null,n,l,s,t),void 0,null),He===null)throw Error(o(349));(kr&30)!==0||Od(n,t,s)}return s}function Od(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $d(e,t,n,l){t.value=n,t.getSnapshot=l,Vd(t)&&Hd(e)}function qd(e,t,n){return n(function(){Vd(t)&&Hd(e)})}function Vd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function Hd(e){var t=Ot(e,1);t!==null&&Et(t,e,1,-1)}function Bd(e){var t=Pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t.queue=e,e=e.dispatch=gm.bind(null,Te,e),[t.memoizedState,e]}function Un(e,t,n,l){return e={tag:e,create:t,destroy:n,deps:l,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e)),e}function Wd(){return mt().memoizedState}function oo(e,t,n,l){var s=Pt();Te.flags|=e,s.memoizedState=Un(1|t,n,void 0,l===void 0?null:l)}function lo(e,t,n,l){var s=mt();l=l===void 0?null:l;var u=void 0;if($e!==null){var h=$e.memoizedState;if(u=h.destroy,l!==null&&ii(l,h.deps)){s.memoizedState=Un(t,n,u,l);return}}Te.flags|=e,s.memoizedState=Un(1|t,n,u,l)}function Ud(e,t){return oo(8390656,8,e,t)}function pi(e,t){return lo(2048,8,e,t)}function Qd(e,t){return lo(4,2,e,t)}function Kd(e,t){return lo(4,4,e,t)}function Xd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gd(e,t,n){return n=n!=null?n.concat([e]):null,lo(4,4,Xd.bind(null,t,e),n)}function fi(){}function Zd(e,t){var n=mt();t=t===void 0?null:t;var l=n.memoizedState;return l!==null&&t!==null&&ii(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Yd(e,t){var n=mt();t=t===void 0?null:t;var l=n.memoizedState;return l!==null&&t!==null&&ii(t,l[1])?l[0]:(e=e(),n.memoizedState=[e,t],e)}function Jd(e,t,n){return(kr&21)===0?(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=n):(kt(n,t)||(n=Cc(),Te.lanes|=n,Sr|=n,e.baseState=!0),t)}function fm(e,t){var n=ze;ze=n!==0&&4>n?n:4,e(!0);var l=li.transition;li.transition={};try{e(!1),t()}finally{ze=n,li.transition=l}}function eu(){return mt().memoizedState}function hm(e,t,n){var l=ir(e);if(n={lane:l,action:n,hasEagerState:!1,eagerState:null,next:null},tu(e))ru(t,n);else if(n=Id(e,t,n,l),n!==null){var s=Je();Et(n,e,l,s),nu(n,t,l)}}function gm(e,t,n){var l=ir(e),s={lane:l,action:n,hasEagerState:!1,eagerState:null,next:null};if(tu(e))ru(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,y=u(h,n);if(s.hasEagerState=!0,s.eagerState=y,kt(y,h)){var j=t.interleaved;j===null?(s.next=s,ei(t)):(s.next=j.next,j.next=s),t.interleaved=s;return}}catch{}n=Id(e,t,s,l),n!==null&&(s=Je(),Et(n,e,l,s),nu(n,t,l))}}function tu(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function ru(e,t){Hn=ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nu(e,t,n){if((n&4194240)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,gl(e,n)}}var io={readContext:gt,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useInsertionEffect:Xe,useLayoutEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useMutableSource:Xe,useSyncExternalStore:Xe,useId:Xe,unstable_isNewReconciler:!1},mm={readContext:gt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oo(4194308,4,Xd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var l=Pt();return t=n!==void 0?n(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=hm.bind(null,Te,e),[l.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Bd,useDebugValue:fi,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Bd(!1),t=e[0];return e=fm.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var l=Te,s=Pt();if(Pe){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),He===null)throw Error(o(349));(kr&30)!==0||Od(l,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,Ud(qd.bind(null,l,u,e),[e]),l.flags|=2048,Un(9,$d.bind(null,l,u,n,t),void 0,null),n},useId:function(){var e=Pt(),t=He.identifierPrefix;if(Pe){var n=Dt,l=Ft;n=(l&~(1<<32-wt(l)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=pm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},bm={readContext:gt,useCallback:Zd,useContext:gt,useEffect:pi,useImperativeHandle:Gd,useInsertionEffect:Qd,useLayoutEffect:Kd,useMemo:Yd,useReducer:di,useRef:Wd,useState:function(){return di(Wn)},useDebugValue:fi,useDeferredValue:function(e){var t=mt();return Jd(t,$e.memoizedState,e)},useTransition:function(){var e=di(Wn)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Dd,useId:eu,unstable_isNewReconciler:!1},xm={readContext:gt,useCallback:Zd,useContext:gt,useEffect:pi,useImperativeHandle:Gd,useInsertionEffect:Qd,useLayoutEffect:Kd,useMemo:Yd,useReducer:ui,useRef:Wd,useState:function(){return ui(Wn)},useDebugValue:fi,useDeferredValue:function(e){var t=mt();return $e===null?t.memoizedState=e:Jd(t,$e.memoizedState,e)},useTransition:function(){var e=ui(Wn)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Dd,useId:eu,unstable_isNewReconciler:!1};function jt(e,t){if(e&&e.defaultProps){t=T({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hi(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var so={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Je(),s=ir(e),u=$t(l,s);u.payload=t,n!=null&&(u.callback=n),t=nr(e,u,s),t!==null&&(Et(t,e,s,l),eo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Je(),s=ir(e),u=$t(l,s);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=nr(e,u,s),t!==null&&(Et(t,e,s,l),eo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),l=ir(e),s=$t(n,l);s.tag=2,t!=null&&(s.callback=t),t=nr(e,s,l),t!==null&&(Et(t,e,l,n),eo(t,e,l))}};function au(e,t,n,l,s,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,h):t.prototype&&t.prototype.isPureReactComponent?!In(n,l)||!In(s,u):!0}function ou(e,t,n){var l=!1,s=er,u=t.contextType;return typeof u=="object"&&u!==null?u=gt(u):(s=rt(t)?br:Ke.current,l=t.contextTypes,u=(l=l!=null)?Qr(e,s):er),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=so,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=u),t}function lu(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&so.enqueueReplaceState(t,t.state,null)}function gi(e,t,n,l){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},ti(e);var u=t.contextType;typeof u=="object"&&u!==null?s.context=gt(u):(u=rt(t)?br:Ke.current,s.context=Qr(e,u)),s.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(hi(e,t,u,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&so.enqueueReplaceState(s,s.state,null),to(e,n,s,l),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function tn(e,t){try{var n="",l=t;do n+=ie(l),l=l.return;while(l);var s=n}catch(u){s=`
|
|
7
|
+
Error generating stack: `+u.message+`
|
|
8
|
+
`+u.stack}return{value:e,source:t,stack:s,digest:null}}function mi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vm=typeof WeakMap=="function"?WeakMap:Map;function iu(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var l=t.value;return n.callback=function(){mo||(mo=!0,Mi=l),bi(e,t)},n}function su(e,t,n){n=$t(-1,n),n.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var s=t.value;n.payload=function(){return l(s)},n.callback=function(){bi(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){bi(e,t),typeof l!="function"&&(or===null?or=new Set([this]):or.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),n}function cu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new vm;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(s.add(n),e=Pm.bind(null,e,t,n),t.then(e,e))}function du(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function uu(e,t,n,l,s){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=$t(-1,1),t.tag=2,nr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=s,e)}var ym=G.ReactCurrentOwner,nt=!1;function Ye(e,t,n,l){t.child=e===null?Md(t,null,n,l):Zr(t,e.child,n,l)}function pu(e,t,n,l,s){n=n.render;var u=t.ref;return Jr(t,s),l=si(e,t,n,l,u,s),n=ci(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,qt(e,t,s)):(Pe&&n&&Wl(t),t.flags|=1,Ye(e,t,l,s),t.child)}function fu(e,t,n,l,s){if(e===null){var u=n.type;return typeof u=="function"&&!Di(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,hu(e,t,u,l,s)):(e=ko(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&s)===0){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:In,n(h,l)&&e.ref===t.ref)return qt(e,t,s)}return t.flags|=1,e=cr(u,l),e.ref=t.ref,e.return=t,t.child=e}function hu(e,t,n,l,s){if(e!==null){var u=e.memoizedProps;if(In(u,l)&&e.ref===t.ref)if(nt=!1,t.pendingProps=l=u,(e.lanes&s)!==0)(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,qt(e,t,s)}return xi(e,t,n,l,s)}function gu(e,t,n){var l=t.pendingProps,s=l.children,u=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(nn,dt),dt|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(nn,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=u!==null?u.baseLanes:n,Ce(nn,dt),dt|=l}else u!==null?(l=u.baseLanes|n,t.memoizedState=null):l=n,Ce(nn,dt),dt|=l;return Ye(e,t,s,n),t.child}function mu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xi(e,t,n,l,s){var u=rt(n)?br:Ke.current;return u=Qr(t,u),Jr(t,s),n=si(e,t,n,l,u,s),l=ci(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,qt(e,t,s)):(Pe&&l&&Wl(t),t.flags|=1,Ye(e,t,n,s),t.child)}function bu(e,t,n,l,s){if(rt(n)){var u=!0;Ua(t)}else u=!1;if(Jr(t,s),t.stateNode===null)uo(e,t),ou(t,n,l),gi(t,n,l,s),l=!0;else if(e===null){var h=t.stateNode,y=t.memoizedProps;h.props=y;var j=h.context,I=n.contextType;typeof I=="object"&&I!==null?I=gt(I):(I=rt(n)?br:Ke.current,I=Qr(t,I));var F=n.getDerivedStateFromProps,O=typeof F=="function"||typeof h.getSnapshotBeforeUpdate=="function";O||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==l||j!==I)&&lu(t,h,l,I),rr=!1;var A=t.memoizedState;h.state=A,to(t,l,h,s),j=t.memoizedState,y!==l||A!==j||tt.current||rr?(typeof F=="function"&&(hi(t,n,F,l),j=t.memoizedState),(y=rr||au(t,n,y,l,A,j,I))?(O||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=j),h.props=l,h.state=j,h.context=I,l=y):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{h=t.stateNode,Pd(e,t),y=t.memoizedProps,I=t.type===t.elementType?y:jt(t.type,y),h.props=I,O=t.pendingProps,A=h.context,j=n.contextType,typeof j=="object"&&j!==null?j=gt(j):(j=rt(n)?br:Ke.current,j=Qr(t,j));var K=n.getDerivedStateFromProps;(F=typeof K=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==O||A!==j)&&lu(t,h,l,j),rr=!1,A=t.memoizedState,h.state=A,to(t,l,h,s);var ee=t.memoizedState;y!==O||A!==ee||tt.current||rr?(typeof K=="function"&&(hi(t,n,K,l),ee=t.memoizedState),(I=rr||au(t,n,I,l,A,ee,j)||!1)?(F||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,ee,j),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,ee,j)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=ee),h.props=l,h.state=ee,h.context=j,l=I):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return vi(e,t,n,l,u,s)}function vi(e,t,n,l,s,u){mu(e,t);var h=(t.flags&128)!==0;if(!l&&!h)return s&&kd(t,n,!1),qt(e,t,u);l=t.stateNode,ym.current=t;var y=h&&typeof n.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&h?(t.child=Zr(t,e.child,null,u),t.child=Zr(t,null,y,u)):Ye(e,t,y,u),t.memoizedState=l.state,s&&kd(t,n,!0),t.child}function xu(e){var t=e.stateNode;t.pendingContext?yd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yd(e,t.context,!1),ri(e,t.containerInfo)}function vu(e,t,n,l,s){return Gr(),Xl(s),t.flags|=256,Ye(e,t,n,l),t.child}var yi={dehydrated:null,treeContext:null,retryLane:0};function wi(e){return{baseLanes:e,cachePool:null,transitions:null}}function yu(e,t,n){var l=t.pendingProps,s=Re.current,u=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(s&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ce(Re,s&1),e===null)return Kl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(h=l.children,e=l.fallback,u?(l=t.mode,u=t.child,h={mode:"hidden",children:h},(l&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=h):u=So(h,l,0,null),e=Er(e,l,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=wi(n),t.memoizedState=yi,e):ki(t,h));if(s=e.memoizedState,s!==null&&(y=s.dehydrated,y!==null))return wm(e,t,h,l,y,s,n);if(u){u=l.fallback,h=t.mode,s=e.child,y=s.sibling;var j={mode:"hidden",children:l.children};return(h&1)===0&&t.child!==s?(l=t.child,l.childLanes=0,l.pendingProps=j,t.deletions=null):(l=cr(s,j),l.subtreeFlags=s.subtreeFlags&14680064),y!==null?u=cr(y,u):(u=Er(u,h,n,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,h=e.child.memoizedState,h=h===null?wi(n):{baseLanes:h.baseLanes|n,cachePool:null,transitions:h.transitions},u.memoizedState=h,u.childLanes=e.childLanes&~n,t.memoizedState=yi,l}return u=e.child,e=u.sibling,l=cr(u,{mode:"visible",children:l.children}),(t.mode&1)===0&&(l.lanes=n),l.return=t,l.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=l,t.memoizedState=null,l}function ki(e,t){return t=So({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function co(e,t,n,l){return l!==null&&Xl(l),Zr(t,e.child,null,n),e=ki(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wm(e,t,n,l,s,u,h){if(n)return t.flags&256?(t.flags&=-257,l=mi(Error(o(422))),co(e,t,h,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=l.fallback,s=t.mode,l=So({mode:"visible",children:l.children},s,0,null),u=Er(u,s,h,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&1)!==0&&Zr(t,e.child,null,h),t.child.memoizedState=wi(h),t.memoizedState=yi,u);if((t.mode&1)===0)return co(e,t,h,null);if(s.data==="$!"){if(l=s.nextSibling&&s.nextSibling.dataset,l)var y=l.dgst;return l=y,u=Error(o(419)),l=mi(u,l,void 0),co(e,t,h,l)}if(y=(h&e.childLanes)!==0,nt||y){if(l=He,l!==null){switch(h&-h){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=(s&(l.suspendedLanes|h))!==0?0:s,s!==0&&s!==u.retryLane&&(u.retryLane=s,Ot(e,s),Et(l,e,s,-1))}return Fi(),l=mi(Error(o(421))),co(e,t,h,l)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Rm.bind(null,e),s._reactRetry=t,null):(e=u.treeContext,ct=Yt(s.nextSibling),st=t,Pe=!0,St=null,e!==null&&(ft[ht++]=Ft,ft[ht++]=Dt,ft[ht++]=xr,Ft=e.id,Dt=e.overflow,xr=t),t=ki(t,l.children),t.flags|=4096,t)}function wu(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Jl(e.return,t,n)}function Si(e,t,n,l,s){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=s)}function ku(e,t,n){var l=t.pendingProps,s=l.revealOrder,u=l.tail;if(Ye(e,t,l.children,n),l=Re.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wu(e,n,t);else if(e.tag===19)wu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(Ce(Re,l),(t.mode&1)===0)t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Si(t,!1,s,n,u);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&ro(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Si(t,!0,n,null,u);break;case"together":Si(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function uo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=cr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function km(e,t,n){switch(t.tag){case 3:xu(t),Gr();break;case 5:Ad(t);break;case 1:rt(t.type)&&Ua(t);break;case 4:ri(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,s=t.memoizedProps.value;Ce(Ya,l._currentValue),l._currentValue=s;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Ce(Re,Re.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?yu(e,t,n):(Ce(Re,Re.current&1),e=qt(e,t,n),e!==null?e.sibling:null);Ce(Re,Re.current&1);break;case 19:if(l=(n&t.childLanes)!==0,(e.flags&128)!==0){if(l)return ku(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ce(Re,Re.current),l)break;return null;case 22:case 23:return t.lanes=0,gu(e,t,n)}return qt(e,t,n)}var Su,ji,ju,Nu;Su=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ji=function(){},ju=function(e,t,n,l){var s=e.memoizedProps;if(s!==l){e=t.stateNode,wr(It.current);var u=null;switch(n){case"input":s=Jo(e,s),l=Jo(e,l),u=[];break;case"select":s=T({},s,{value:void 0}),l=T({},l,{value:void 0}),u=[];break;case"textarea":s=rl(e,s),l=rl(e,l),u=[];break;default:typeof s.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Ha)}al(n,l);var h;n=null;for(I in s)if(!l.hasOwnProperty(I)&&s.hasOwnProperty(I)&&s[I]!=null)if(I==="style"){var y=s[I];for(h in y)y.hasOwnProperty(h)&&(n||(n={}),n[h]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(d.hasOwnProperty(I)?u||(u=[]):(u=u||[]).push(I,null));for(I in l){var j=l[I];if(y=s?.[I],l.hasOwnProperty(I)&&j!==y&&(j!=null||y!=null))if(I==="style")if(y){for(h in y)!y.hasOwnProperty(h)||j&&j.hasOwnProperty(h)||(n||(n={}),n[h]="");for(h in j)j.hasOwnProperty(h)&&y[h]!==j[h]&&(n||(n={}),n[h]=j[h])}else n||(u||(u=[]),u.push(I,n)),n=j;else I==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,y=y?y.__html:void 0,j!=null&&y!==j&&(u=u||[]).push(I,j)):I==="children"?typeof j!="string"&&typeof j!="number"||(u=u||[]).push(I,""+j):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(d.hasOwnProperty(I)?(j!=null&&I==="onScroll"&&Le("scroll",e),u||y===j||(u=[])):(u=u||[]).push(I,j))}n&&(u=u||[]).push("style",n);var I=u;(t.updateQueue=I)&&(t.flags|=4)}},Nu=function(e,t,n,l){n!==l&&(t.flags|=4)};function Qn(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&14680064,l|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Sm(e,t,n){var l=t.pendingProps;switch(Ul(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return rt(t.type)&&Wa(),Ge(t),null;case 3:return l=t.stateNode,en(),Me(tt),Me(Ke),oi(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,St!==null&&(Ri(St),St=null))),ji(e,t),Ge(t),null;case 5:ni(t);var s=wr(Vn.current);if(n=t.type,e!==null&&t.stateNode!=null)ju(e,t,n,l,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ge(t),null}if(e=wr(It.current),Ga(t)){l=t.stateNode,n=t.type;var u=t.memoizedProps;switch(l[Mt]=t,l[Fn]=u,e=(t.mode&1)!==0,n){case"dialog":Le("cancel",l),Le("close",l);break;case"iframe":case"object":case"embed":Le("load",l);break;case"video":case"audio":for(s=0;s<Rn.length;s++)Le(Rn[s],l);break;case"source":Le("error",l);break;case"img":case"image":case"link":Le("error",l),Le("load",l);break;case"details":Le("toggle",l);break;case"input":oc(l,u),Le("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!u.multiple},Le("invalid",l);break;case"textarea":sc(l,u),Le("invalid",l)}al(n,u),s=null;for(var h in u)if(u.hasOwnProperty(h)){var y=u[h];h==="children"?typeof y=="string"?l.textContent!==y&&(u.suppressHydrationWarning!==!0&&Va(l.textContent,y,e),s=["children",y]):typeof y=="number"&&l.textContent!==""+y&&(u.suppressHydrationWarning!==!0&&Va(l.textContent,y,e),s=["children",""+y]):d.hasOwnProperty(h)&&y!=null&&h==="onScroll"&&Le("scroll",l)}switch(n){case"input":va(l),ic(l,u,!0);break;case"textarea":va(l),dc(l);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(l.onclick=Ha)}l=s,t.updateQueue=l,l!==null&&(t.flags|=4)}else{h=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=h.createElement(n,{is:l.is}):(e=h.createElement(n),n==="select"&&(h=e,l.multiple?h.multiple=!0:l.size&&(h.size=l.size))):e=h.createElementNS(e,n),e[Mt]=t,e[Fn]=l,Su(e,t,!1,!1),t.stateNode=e;e:{switch(h=ol(n,l),n){case"dialog":Le("cancel",e),Le("close",e),s=l;break;case"iframe":case"object":case"embed":Le("load",e),s=l;break;case"video":case"audio":for(s=0;s<Rn.length;s++)Le(Rn[s],e);s=l;break;case"source":Le("error",e),s=l;break;case"img":case"image":case"link":Le("error",e),Le("load",e),s=l;break;case"details":Le("toggle",e),s=l;break;case"input":oc(e,l),s=Jo(e,l),Le("invalid",e);break;case"option":s=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},s=T({},l,{value:void 0}),Le("invalid",e);break;case"textarea":sc(e,l),s=rl(e,l),Le("invalid",e);break;default:s=l}al(n,s),y=s;for(u in y)if(y.hasOwnProperty(u)){var j=y[u];u==="style"?hc(e,j):u==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&pc(e,j)):u==="children"?typeof j=="string"?(n!=="textarea"||j!=="")&&gn(e,j):typeof j=="number"&&gn(e,""+j):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(d.hasOwnProperty(u)?j!=null&&u==="onScroll"&&Le("scroll",e):j!=null&&ae(e,u,j,h))}switch(n){case"input":va(e),ic(e,l,!1);break;case"textarea":va(e),dc(e);break;case"option":l.value!=null&&e.setAttribute("value",""+ke(l.value));break;case"select":e.multiple=!!l.multiple,u=l.value,u!=null?Tr(e,!!l.multiple,u,!1):l.defaultValue!=null&&Tr(e,!!l.multiple,l.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Ha)}switch(n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)Nu(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(n=wr(Vn.current),wr(It.current),Ga(t)){if(l=t.stateNode,n=t.memoizedProps,l[Mt]=t,(u=l.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:Va(l.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Va(l.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else l=(n.nodeType===9?n:n.ownerDocument).createTextNode(l),l[Mt]=t,t.stateNode=l}return Ge(t),null;case 13:if(Me(Re),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&ct!==null&&(t.mode&1)!==0&&(t.flags&128)===0)zd(),Gr(),t.flags|=98560,u=!1;else if(u=Ga(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Mt]=t}else Gr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),u=!1}else St!==null&&(Ri(St),St=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Re.current&1)!==0?qe===0&&(qe=3):Fi())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return en(),ji(e,t),e===null&&Tn(t.stateNode.containerInfo),Ge(t),null;case 10:return Yl(t.type._context),Ge(t),null;case 17:return rt(t.type)&&Wa(),Ge(t),null;case 19:if(Me(Re),u=t.memoizedState,u===null)return Ge(t),null;if(l=(t.flags&128)!==0,h=u.rendering,h===null)if(l)Qn(u,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=ro(e),h!==null){for(t.flags|=128,Qn(u,!1),l=h.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=n,n=t.child;n!==null;)u=n,e=l,u.flags&=14680066,h=u.alternate,h===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=h.childLanes,u.lanes=h.lanes,u.child=h.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=h.memoizedProps,u.memoizedState=h.memoizedState,u.updateQueue=h.updateQueue,u.type=h.type,e=h.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Re,Re.current&1|2),t.child}e=e.sibling}u.tail!==null&&Fe()>an&&(t.flags|=128,l=!0,Qn(u,!1),t.lanes=4194304)}else{if(!l)if(e=ro(h),e!==null){if(t.flags|=128,l=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qn(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Pe)return Ge(t),null}else 2*Fe()-u.renderingStartTime>an&&n!==1073741824&&(t.flags|=128,l=!0,Qn(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(n=u.last,n!==null?n.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Fe(),t.sibling=null,n=Re.current,Ce(Re,l?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return Ai(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&(t.mode&1)!==0?(dt&1073741824)!==0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function jm(e,t){switch(Ul(t),t.tag){case 1:return rt(t.type)&&Wa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return en(),Me(tt),Me(Ke),oi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ni(t),null;case 13:if(Me(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(Re),null;case 4:return en(),null;case 10:return Yl(t.type._context),null;case 22:case 23:return Ai(),null;case 24:return null;default:return null}}var po=!1,Ze=!1,Nm=typeof WeakSet=="function"?WeakSet:Set,Y=null;function rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(l){Ae(e,t,l)}else n.current=null}function _u(e,t,n){try{n()}catch(l){Ae(e,t,l)}}var Eu=!1;function _m(e,t){if(Fl=Ma,e=ad(),Cl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,y=-1,j=-1,I=0,F=0,O=e,A=null;t:for(;;){for(var K;O!==n||s!==0&&O.nodeType!==3||(y=h+s),O!==u||l!==0&&O.nodeType!==3||(j=h+l),O.nodeType===3&&(h+=O.nodeValue.length),(K=O.firstChild)!==null;)A=O,O=K;for(;;){if(O===e)break t;if(A===n&&++I===s&&(y=h),A===u&&++F===l&&(j=h),(K=O.nextSibling)!==null)break;O=A,A=O.parentNode}O=K}n=y===-1||j===-1?null:{start:y,end:j}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dl={focusedElem:e,selectionRange:n},Ma=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var ne=ee.memoizedProps,De=ee.memoizedState,z=t.stateNode,N=z.getSnapshotBeforeUpdate(t.elementType===t.type?ne:jt(t.type,ne),De);z.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var L=t.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(V){Ae(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return ee=Eu,Eu=!1,ee}function Kn(e,t,n){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var s=l=l.next;do{if((s.tag&e)===e){var u=s.destroy;s.destroy=void 0,u!==void 0&&_u(t,n,u)}s=s.next}while(s!==l)}}function fo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var l=n.create;n.destroy=l()}n=n.next}while(n!==t)}}function Ni(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function zu(e){var t=e.alternate;t!==null&&(e.alternate=null,zu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Fn],delete t[Vl],delete t[sm],delete t[cm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cu(e){return e.tag===5||e.tag===3||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _i(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ha));else if(l!==4&&(e=e.child,e!==null))for(_i(e,t,n),e=e.sibling;e!==null;)_i(e,t,n),e=e.sibling}function Ei(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(Ei(e,t,n),e=e.sibling;e!==null;)Ei(e,t,n),e=e.sibling}var Ue=null,Nt=!1;function ar(e,t,n){for(n=n.child;n!==null;)Mu(e,t,n),n=n.sibling}function Mu(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Na,n)}catch{}switch(n.tag){case 5:Ze||rn(n,t);case 6:var l=Ue,s=Nt;Ue=null,ar(e,t,n),Ue=l,Nt=s,Ue!==null&&(Nt?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Nt?(e=Ue,n=n.stateNode,e.nodeType===8?ql(e.parentNode,n):e.nodeType===1&&ql(e,n),_n(e)):ql(Ue,n.stateNode));break;case 4:l=Ue,s=Nt,Ue=n.stateNode.containerInfo,Nt=!0,ar(e,t,n),Ue=l,Nt=s;break;case 0:case 11:case 14:case 15:if(!Ze&&(l=n.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){s=l=l.next;do{var u=s,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&_u(n,t,h),s=s.next}while(s!==l)}ar(e,t,n);break;case 1:if(!Ze&&(rn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=n.memoizedProps,l.state=n.memoizedState,l.componentWillUnmount()}catch(y){Ae(n,t,y)}ar(e,t,n);break;case 21:ar(e,t,n);break;case 22:n.mode&1?(Ze=(l=Ze)||n.memoizedState!==null,ar(e,t,n),Ze=l):ar(e,t,n);break;default:ar(e,t,n)}}function Iu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nm),t.forEach(function(l){var s=Tm.bind(null,e,l);n.has(l)||(n.add(l),l.then(s,s))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l];try{var u=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 5:Ue=y.stateNode,Nt=!1;break e;case 3:Ue=y.stateNode.containerInfo,Nt=!0;break e;case 4:Ue=y.stateNode.containerInfo,Nt=!0;break e}y=y.return}if(Ue===null)throw Error(o(160));Mu(u,h,s),Ue=null,Nt=!1;var j=s.alternate;j!==null&&(j.return=null),s.return=null}catch(I){Ae(s,t,I)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pu(t,e),t=t.sibling}function Pu(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),Rt(e),l&4){try{Kn(3,e,e.return),fo(3,e)}catch(ne){Ae(e,e.return,ne)}try{Kn(5,e,e.return)}catch(ne){Ae(e,e.return,ne)}}break;case 1:_t(t,e),Rt(e),l&512&&n!==null&&rn(n,n.return);break;case 5:if(_t(t,e),Rt(e),l&512&&n!==null&&rn(n,n.return),e.flags&32){var s=e.stateNode;try{gn(s,"")}catch(ne){Ae(e,e.return,ne)}}if(l&4&&(s=e.stateNode,s!=null)){var u=e.memoizedProps,h=n!==null?n.memoizedProps:u,y=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{y==="input"&&u.type==="radio"&&u.name!=null&&lc(s,u),ol(y,h);var I=ol(y,u);for(h=0;h<j.length;h+=2){var F=j[h],O=j[h+1];F==="style"?hc(s,O):F==="dangerouslySetInnerHTML"?pc(s,O):F==="children"?gn(s,O):ae(s,F,O,I)}switch(y){case"input":el(s,u);break;case"textarea":cc(s,u);break;case"select":var A=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!u.multiple;var K=u.value;K!=null?Tr(s,!!u.multiple,K,!1):A!==!!u.multiple&&(u.defaultValue!=null?Tr(s,!!u.multiple,u.defaultValue,!0):Tr(s,!!u.multiple,u.multiple?[]:"",!1))}s[Fn]=u}catch(ne){Ae(e,e.return,ne)}}break;case 6:if(_t(t,e),Rt(e),l&4){if(e.stateNode===null)throw Error(o(162));s=e.stateNode,u=e.memoizedProps;try{s.nodeValue=u}catch(ne){Ae(e,e.return,ne)}}break;case 3:if(_t(t,e),Rt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{_n(t.containerInfo)}catch(ne){Ae(e,e.return,ne)}break;case 4:_t(t,e),Rt(e);break;case 13:_t(t,e),Rt(e),s=e.child,s.flags&8192&&(u=s.memoizedState!==null,s.stateNode.isHidden=u,!u||s.alternate!==null&&s.alternate.memoizedState!==null||(Li=Fe())),l&4&&Iu(e);break;case 22:if(F=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(I=Ze)||F,_t(t,e),Ze=I):_t(t,e),Rt(e),l&8192){if(I=e.memoizedState!==null,(e.stateNode.isHidden=I)&&!F&&(e.mode&1)!==0)for(Y=e,F=e.child;F!==null;){for(O=Y=F;Y!==null;){switch(A=Y,K=A.child,A.tag){case 0:case 11:case 14:case 15:Kn(4,A,A.return);break;case 1:rn(A,A.return);var ee=A.stateNode;if(typeof ee.componentWillUnmount=="function"){l=A,n=A.return;try{t=l,ee.props=t.memoizedProps,ee.state=t.memoizedState,ee.componentWillUnmount()}catch(ne){Ae(l,n,ne)}}break;case 5:rn(A,A.return);break;case 22:if(A.memoizedState!==null){Au(O);continue}}K!==null?(K.return=A,Y=K):Au(O)}F=F.sibling}e:for(F=null,O=e;;){if(O.tag===5){if(F===null){F=O;try{s=O.stateNode,I?(u=s.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(y=O.stateNode,j=O.memoizedProps.style,h=j!=null&&j.hasOwnProperty("display")?j.display:null,y.style.display=fc("display",h))}catch(ne){Ae(e,e.return,ne)}}}else if(O.tag===6){if(F===null)try{O.stateNode.nodeValue=I?"":O.memoizedProps}catch(ne){Ae(e,e.return,ne)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;F===O&&(F=null),O=O.return}F===O&&(F=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:_t(t,e),Rt(e),l&4&&Iu(e);break;case 21:break;default:_t(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cu(n)){var l=n;break e}n=n.return}throw Error(o(160))}switch(l.tag){case 5:var s=l.stateNode;l.flags&32&&(gn(s,""),l.flags&=-33);var u=Lu(e);Ei(e,u,s);break;case 3:case 4:var h=l.stateNode.containerInfo,y=Lu(e);_i(e,y,h);break;default:throw Error(o(161))}}catch(j){Ae(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Em(e,t,n){Y=e,Ru(e)}function Ru(e,t,n){for(var l=(e.mode&1)!==0;Y!==null;){var s=Y,u=s.child;if(s.tag===22&&l){var h=s.memoizedState!==null||po;if(!h){var y=s.alternate,j=y!==null&&y.memoizedState!==null||Ze;y=po;var I=Ze;if(po=h,(Ze=j)&&!I)for(Y=s;Y!==null;)h=Y,j=h.child,h.tag===22&&h.memoizedState!==null?Fu(s):j!==null?(j.return=h,Y=j):Fu(s);for(;u!==null;)Y=u,Ru(u),u=u.sibling;Y=s,po=y,Ze=I}Tu(e)}else(s.subtreeFlags&8772)!==0&&u!==null?(u.return=s,Y=u):Tu(e)}}function Tu(e){for(;Y!==null;){var t=Y;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ze||fo(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!Ze)if(n===null)l.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:jt(t.type,n.memoizedProps);l.componentDidUpdate(s,n.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Td(t,u,l);break;case 3:var h=t.updateQueue;if(h!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Td(t,h,n)}break;case 5:var y=t.stateNode;if(n===null&&t.flags&4){n=y;var j=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&n.focus();break;case"img":j.src&&(n.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var I=t.alternate;if(I!==null){var F=I.memoizedState;if(F!==null){var O=F.dehydrated;O!==null&&_n(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ze||t.flags&512&&Ni(t)}catch(A){Ae(t,t.return,A)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Au(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Fu(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{fo(4,t)}catch(j){Ae(t,n,j)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var s=t.return;try{l.componentDidMount()}catch(j){Ae(t,s,j)}}var u=t.return;try{Ni(t)}catch(j){Ae(t,u,j)}break;case 5:var h=t.return;try{Ni(t)}catch(j){Ae(t,h,j)}}}catch(j){Ae(t,t.return,j)}if(t===e){Y=null;break}var y=t.sibling;if(y!==null){y.return=t.return,Y=y;break}Y=t.return}}var zm=Math.ceil,ho=G.ReactCurrentDispatcher,zi=G.ReactCurrentOwner,bt=G.ReactCurrentBatchConfig,Ne=0,He=null,Oe=null,Qe=0,dt=0,nn=Jt(0),qe=0,Xn=null,Sr=0,go=0,Ci=0,Gn=null,at=null,Li=0,an=1/0,Vt=null,mo=!1,Mi=null,or=null,bo=!1,lr=null,xo=0,Zn=0,Ii=null,vo=-1,yo=0;function Je(){return(Ne&6)!==0?Fe():vo!==-1?vo:vo=Fe()}function ir(e){return(e.mode&1)===0?1:(Ne&2)!==0&&Qe!==0?Qe&-Qe:um.transition!==null?(yo===0&&(yo=Cc()),yo):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Dc(e.type)),e)}function Et(e,t,n,l){if(50<Zn)throw Zn=0,Ii=null,Error(o(185));wn(e,n,l),((Ne&2)===0||e!==He)&&(e===He&&((Ne&2)===0&&(go|=n),qe===4&&sr(e,Qe)),ot(e,l),n===1&&Ne===0&&(t.mode&1)===0&&(an=Fe()+500,Qa&&tr()))}function ot(e,t){var n=e.callbackNode;ug(e,t);var l=za(e,e===He?Qe:0);if(l===0)n!==null&&_c(n),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(n!=null&&_c(n),t===1)e.tag===0?dm(Ou.bind(null,e)):Sd(Ou.bind(null,e)),lm(function(){(Ne&6)===0&&tr()}),n=null;else{switch(Lc(l)){case 1:n=pl;break;case 4:n=Ec;break;case 16:n=ja;break;case 536870912:n=zc;break;default:n=ja}n=Qu(n,Du.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Du(e,t){if(vo=-1,yo=0,(Ne&6)!==0)throw Error(o(327));var n=e.callbackNode;if(on()&&e.callbackNode!==n)return null;var l=za(e,e===He?Qe:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||t)t=wo(e,l);else{t=l;var s=Ne;Ne|=2;var u=qu();(He!==e||Qe!==t)&&(Vt=null,an=Fe()+500,Nr(e,t));do try{Mm();break}catch(y){$u(e,y)}while(!0);Zl(),ho.current=u,Ne=s,Oe!==null?t=0:(He=null,Qe=0,t=qe)}if(t!==0){if(t===2&&(s=fl(e),s!==0&&(l=s,t=Pi(e,s))),t===1)throw n=Xn,Nr(e,0),sr(e,l),ot(e,Fe()),n;if(t===6)sr(e,l);else{if(s=e.current.alternate,(l&30)===0&&!Cm(s)&&(t=wo(e,l),t===2&&(u=fl(e),u!==0&&(l=u,t=Pi(e,u))),t===1))throw n=Xn,Nr(e,0),sr(e,l),ot(e,Fe()),n;switch(e.finishedWork=s,e.finishedLanes=l,t){case 0:case 1:throw Error(o(345));case 2:_r(e,at,Vt);break;case 3:if(sr(e,l),(l&130023424)===l&&(t=Li+500-Fe(),10<t)){if(za(e,0)!==0)break;if(s=e.suspendedLanes,(s&l)!==l){Je(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=$l(_r.bind(null,e,at,Vt),t);break}_r(e,at,Vt);break;case 4:if(sr(e,l),(l&4194240)===l)break;for(t=e.eventTimes,s=-1;0<l;){var h=31-wt(l);u=1<<h,h=t[h],h>s&&(s=h),l&=~u}if(l=s,l=Fe()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*zm(l/1960))-l,10<l){e.timeoutHandle=$l(_r.bind(null,e,at,Vt),l);break}_r(e,at,Vt);break;case 5:_r(e,at,Vt);break;default:throw Error(o(329))}}}return ot(e,Fe()),e.callbackNode===n?Du.bind(null,e):null}function Pi(e,t){var n=Gn;return e.current.memoizedState.isDehydrated&&(Nr(e,t).flags|=256),e=wo(e,t),e!==2&&(t=at,at=n,t!==null&&Ri(t)),e}function Ri(e){at===null?at=e:at.push.apply(at,e)}function Cm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var l=0;l<n.length;l++){var s=n[l],u=s.getSnapshot;s=s.value;try{if(!kt(u(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sr(e,t){for(t&=~Ci,t&=~go,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),l=1<<n;e[n]=-1,t&=~l}}function Ou(e){if((Ne&6)!==0)throw Error(o(327));on();var t=za(e,0);if((t&1)===0)return ot(e,Fe()),null;var n=wo(e,t);if(e.tag!==0&&n===2){var l=fl(e);l!==0&&(t=l,n=Pi(e,l))}if(n===1)throw n=Xn,Nr(e,0),sr(e,t),ot(e,Fe()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_r(e,at,Vt),ot(e,Fe()),null}function Ti(e,t){var n=Ne;Ne|=1;try{return e(t)}finally{Ne=n,Ne===0&&(an=Fe()+500,Qa&&tr())}}function jr(e){lr!==null&&lr.tag===0&&(Ne&6)===0&&on();var t=Ne;Ne|=1;var n=bt.transition,l=ze;try{if(bt.transition=null,ze=1,e)return e()}finally{ze=l,bt.transition=n,Ne=t,(Ne&6)===0&&tr()}}function Ai(){dt=nn.current,Me(nn)}function Nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,om(n)),Oe!==null)for(n=Oe.return;n!==null;){var l=n;switch(Ul(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Wa();break;case 3:en(),Me(tt),Me(Ke),oi();break;case 5:ni(l);break;case 4:en();break;case 13:Me(Re);break;case 19:Me(Re);break;case 10:Yl(l.type._context);break;case 22:case 23:Ai()}n=n.return}if(He=e,Oe=e=cr(e.current,null),Qe=dt=t,qe=0,Xn=null,Ci=go=Sr=0,at=Gn=null,yr!==null){for(t=0;t<yr.length;t++)if(n=yr[t],l=n.interleaved,l!==null){n.interleaved=null;var s=l.next,u=n.pending;if(u!==null){var h=u.next;u.next=s,l.next=h}n.pending=l}yr=null}return e}function $u(e,t){do{var n=Oe;try{if(Zl(),no.current=io,ao){for(var l=Te.memoizedState;l!==null;){var s=l.queue;s!==null&&(s.pending=null),l=l.next}ao=!1}if(kr=0,Ve=$e=Te=null,Hn=!1,Bn=0,zi.current=null,n===null||n.return===null){qe=1,Xn=t,Oe=null;break}e:{var u=e,h=n.return,y=n,j=t;if(t=Qe,y.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var I=j,F=y,O=F.tag;if((F.mode&1)===0&&(O===0||O===11||O===15)){var A=F.alternate;A?(F.updateQueue=A.updateQueue,F.memoizedState=A.memoizedState,F.lanes=A.lanes):(F.updateQueue=null,F.memoizedState=null)}var K=du(h);if(K!==null){K.flags&=-257,uu(K,h,y,u,t),K.mode&1&&cu(u,I,t),t=K,j=I;var ee=t.updateQueue;if(ee===null){var ne=new Set;ne.add(j),t.updateQueue=ne}else ee.add(j);break e}else{if((t&1)===0){cu(u,I,t),Fi();break e}j=Error(o(426))}}else if(Pe&&y.mode&1){var De=du(h);if(De!==null){(De.flags&65536)===0&&(De.flags|=256),uu(De,h,y,u,t),Xl(tn(j,y));break e}}u=j=tn(j,y),qe!==4&&(qe=2),Gn===null?Gn=[u]:Gn.push(u),u=h;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var z=iu(u,j,t);Rd(u,z);break e;case 1:y=j;var N=u.type,L=u.stateNode;if((u.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(or===null||!or.has(L)))){u.flags|=65536,t&=-t,u.lanes|=t;var V=su(u,y,t);Rd(u,V);break e}}u=u.return}while(u!==null)}Hu(n)}catch(oe){t=oe,Oe===n&&n!==null&&(Oe=n=n.return);continue}break}while(!0)}function qu(){var e=ho.current;return ho.current=io,e===null?io:e}function Fi(){(qe===0||qe===3||qe===2)&&(qe=4),He===null||(Sr&268435455)===0&&(go&268435455)===0||sr(He,Qe)}function wo(e,t){var n=Ne;Ne|=2;var l=qu();(He!==e||Qe!==t)&&(Vt=null,Nr(e,t));do try{Lm();break}catch(s){$u(e,s)}while(!0);if(Zl(),Ne=n,ho.current=l,Oe!==null)throw Error(o(261));return He=null,Qe=0,qe}function Lm(){for(;Oe!==null;)Vu(Oe)}function Mm(){for(;Oe!==null&&!rg();)Vu(Oe)}function Vu(e){var t=Uu(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?Hu(e):Oe=t,zi.current=null}function Hu(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Sm(n,t,dt),n!==null){Oe=n;return}}else{if(n=jm(n,t),n!==null){n.flags&=32767,Oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qe=6,Oe=null;return}}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);qe===0&&(qe=5)}function _r(e,t,n){var l=ze,s=bt.transition;try{bt.transition=null,ze=1,Im(e,t,n,l)}finally{bt.transition=s,ze=l}return null}function Im(e,t,n,l){do on();while(lr!==null);if((Ne&6)!==0)throw Error(o(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(pg(e,u),e===He&&(Oe=He=null,Qe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||bo||(bo=!0,Qu(ja,function(){return on(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=bt.transition,bt.transition=null;var h=ze;ze=1;var y=Ne;Ne|=4,zi.current=null,_m(e,n),Pu(n,e),Yg(Dl),Ma=!!Fl,Dl=Fl=null,e.current=n,Em(n),ng(),Ne=y,ze=h,bt.transition=u}else e.current=n;if(bo&&(bo=!1,lr=e,xo=s),u=e.pendingLanes,u===0&&(or=null),lg(n.stateNode),ot(e,Fe()),t!==null)for(l=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],l(s.value,{componentStack:s.stack,digest:s.digest});if(mo)throw mo=!1,e=Mi,Mi=null,e;return(xo&1)!==0&&e.tag!==0&&on(),u=e.pendingLanes,(u&1)!==0?e===Ii?Zn++:(Zn=0,Ii=e):Zn=0,tr(),null}function on(){if(lr!==null){var e=Lc(xo),t=bt.transition,n=ze;try{if(bt.transition=null,ze=16>e?16:e,lr===null)var l=!1;else{if(e=lr,lr=null,xo=0,(Ne&6)!==0)throw Error(o(331));var s=Ne;for(Ne|=4,Y=e.current;Y!==null;){var u=Y,h=u.child;if((Y.flags&16)!==0){var y=u.deletions;if(y!==null){for(var j=0;j<y.length;j++){var I=y[j];for(Y=I;Y!==null;){var F=Y;switch(F.tag){case 0:case 11:case 15:Kn(8,F,u)}var O=F.child;if(O!==null)O.return=F,Y=O;else for(;Y!==null;){F=Y;var A=F.sibling,K=F.return;if(zu(F),F===I){Y=null;break}if(A!==null){A.return=K,Y=A;break}Y=K}}}var ee=u.alternate;if(ee!==null){var ne=ee.child;if(ne!==null){ee.child=null;do{var De=ne.sibling;ne.sibling=null,ne=De}while(ne!==null)}}Y=u}}if((u.subtreeFlags&2064)!==0&&h!==null)h.return=u,Y=h;else e:for(;Y!==null;){if(u=Y,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Kn(9,u,u.return)}var z=u.sibling;if(z!==null){z.return=u.return,Y=z;break e}Y=u.return}}var N=e.current;for(Y=N;Y!==null;){h=Y;var L=h.child;if((h.subtreeFlags&2064)!==0&&L!==null)L.return=h,Y=L;else e:for(h=N;Y!==null;){if(y=Y,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:fo(9,y)}}catch(oe){Ae(y,y.return,oe)}if(y===h){Y=null;break e}var V=y.sibling;if(V!==null){V.return=y.return,Y=V;break e}Y=y.return}}if(Ne=s,tr(),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Na,e)}catch{}l=!0}return l}finally{ze=n,bt.transition=t}}return!1}function Bu(e,t,n){t=tn(n,t),t=iu(e,t,1),e=nr(e,t,1),t=Je(),e!==null&&(wn(e,1,t),ot(e,t))}function Ae(e,t,n){if(e.tag===3)Bu(e,e,n);else for(;t!==null;){if(t.tag===3){Bu(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(or===null||!or.has(l))){e=tn(n,e),e=su(t,e,1),t=nr(t,e,1),e=Je(),t!==null&&(wn(t,1,e),ot(t,e));break}}t=t.return}}function Pm(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Qe&n)===n&&(qe===4||qe===3&&(Qe&130023424)===Qe&&500>Fe()-Li?Nr(e,0):Ci|=n),ot(e,t)}function Wu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ea,Ea<<=1,(Ea&130023424)===0&&(Ea=4194304)));var n=Je();e=Ot(e,t),e!==null&&(wn(e,t,n),ot(e,n))}function Rm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wu(e,n)}function Tm(e,t){var n=0;switch(e.tag){case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(o(314))}l!==null&&l.delete(t),Wu(e,n)}var Uu;Uu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)nt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return nt=!1,km(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,Pe&&(t.flags&1048576)!==0&&jd(t,Xa,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;uo(e,t),e=t.pendingProps;var s=Qr(t,Ke.current);Jr(t,n),s=si(null,t,l,e,s,n);var u=ci();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(l)?(u=!0,Ua(t)):u=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ti(t),s.updater=so,t.stateNode=s,s._reactInternals=t,gi(t,l,e,n),t=vi(null,t,l,!0,u,n)):(t.tag=0,Pe&&u&&Wl(t),Ye(null,t,s,n),t=t.child),t;case 16:l=t.elementType;e:{switch(uo(e,t),e=t.pendingProps,s=l._init,l=s(l._payload),t.type=l,s=t.tag=Fm(l),e=jt(l,e),s){case 0:t=xi(null,t,l,e,n);break e;case 1:t=bu(null,t,l,e,n);break e;case 11:t=pu(null,t,l,e,n);break e;case 14:t=fu(null,t,l,jt(l.type,e),n);break e}throw Error(o(306,l,""))}return t;case 0:return l=t.type,s=t.pendingProps,s=t.elementType===l?s:jt(l,s),xi(e,t,l,s,n);case 1:return l=t.type,s=t.pendingProps,s=t.elementType===l?s:jt(l,s),bu(e,t,l,s,n);case 3:e:{if(xu(t),e===null)throw Error(o(387));l=t.pendingProps,u=t.memoizedState,s=u.element,Pd(e,t),to(t,l,null,n);var h=t.memoizedState;if(l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){s=tn(Error(o(423)),t),t=vu(e,t,l,n,s);break e}else if(l!==s){s=tn(Error(o(424)),t),t=vu(e,t,l,n,s);break e}else for(ct=Yt(t.stateNode.containerInfo.firstChild),st=t,Pe=!0,St=null,n=Md(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),l===s){t=qt(e,t,n);break e}Ye(e,t,l,n)}t=t.child}return t;case 5:return Ad(t),e===null&&Kl(t),l=t.type,s=t.pendingProps,u=e!==null?e.memoizedProps:null,h=s.children,Ol(l,s)?h=null:u!==null&&Ol(l,u)&&(t.flags|=32),mu(e,t),Ye(e,t,h,n),t.child;case 6:return e===null&&Kl(t),null;case 13:return yu(e,t,n);case 4:return ri(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Zr(t,null,l,n):Ye(e,t,l,n),t.child;case 11:return l=t.type,s=t.pendingProps,s=t.elementType===l?s:jt(l,s),pu(e,t,l,s,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,s=t.pendingProps,u=t.memoizedProps,h=s.value,Ce(Ya,l._currentValue),l._currentValue=h,u!==null)if(kt(u.value,h)){if(u.children===s.children&&!tt.current){t=qt(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){h=u.child;for(var j=y.firstContext;j!==null;){if(j.context===l){if(u.tag===1){j=$t(-1,n&-n),j.tag=2;var I=u.updateQueue;if(I!==null){I=I.shared;var F=I.pending;F===null?j.next=j:(j.next=F.next,F.next=j),I.pending=j}}u.lanes|=n,j=u.alternate,j!==null&&(j.lanes|=n),Jl(u.return,n,t),y.lanes|=n;break}j=j.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(o(341));h.lanes|=n,y=h.alternate,y!==null&&(y.lanes|=n),Jl(h,n,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}Ye(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,l=t.pendingProps.children,Jr(t,n),s=gt(s),l=l(s),t.flags|=1,Ye(e,t,l,n),t.child;case 14:return l=t.type,s=jt(l,t.pendingProps),s=jt(l.type,s),fu(e,t,l,s,n);case 15:return hu(e,t,t.type,t.pendingProps,n);case 17:return l=t.type,s=t.pendingProps,s=t.elementType===l?s:jt(l,s),uo(e,t),t.tag=1,rt(l)?(e=!0,Ua(t)):e=!1,Jr(t,n),ou(t,l,s),gi(t,l,s,n),vi(null,t,l,!0,e,n);case 19:return ku(e,t,n);case 22:return gu(e,t,n)}throw Error(o(156,t.tag))};function Qu(e,t){return Nc(e,t)}function Am(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,l){return new Am(e,t,n,l)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fm(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===W)return 11;if(e===_e)return 14}return 2}function cr(e,t){var n=e.alternate;return n===null?(n=xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ko(e,t,n,l,s,u){var h=2;if(l=e,typeof e=="function")Di(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case Z:return Er(n.children,s,u,t);case re:h=8,s|=8;break;case be:return e=xt(12,n,t,s|2),e.elementType=be,e.lanes=u,e;case U:return e=xt(13,n,t,s),e.elementType=U,e.lanes=u,e;case me:return e=xt(19,n,t,s),e.elementType=me,e.lanes=u,e;case ye:return So(n,s,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:h=10;break e;case fe:h=9;break e;case W:h=11;break e;case _e:h=14;break e;case xe:h=16,l=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=xt(h,n,t,s),t.elementType=e,t.type=l,t.lanes=u,t}function Er(e,t,n,l){return e=xt(7,e,l,t),e.lanes=n,e}function So(e,t,n,l){return e=xt(22,e,l,t),e.elementType=ye,e.lanes=n,e.stateNode={isHidden:!1},e}function Oi(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function $i(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dm(e,t,n,l,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hl(0),this.expirationTimes=hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hl(0),this.identifierPrefix=l,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function qi(e,t,n,l,s,u,h,y,j){return e=new Dm(e,t,n,y,j),t===1?(t=1,u===!0&&(t|=8)):t=0,u=xt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:l,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ti(u),e}function Om(e,t,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:te,key:l==null?null:""+l,children:e,containerInfo:t,implementation:n}}function Ku(e){if(!e)return er;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var n=e.type;if(rt(n))return wd(e,n,t)}return t}function Xu(e,t,n,l,s,u,h,y,j){return e=qi(n,l,!0,e,s,u,h,y,j),e.context=Ku(null),n=e.current,l=Je(),s=ir(n),u=$t(l,s),u.callback=t??null,nr(n,u,s),e.current.lanes=s,wn(e,s,l),ot(e,l),e}function jo(e,t,n,l){var s=t.current,u=Je(),h=ir(s);return n=Ku(n),t.context===null?t.context=n:t.pendingContext=n,t=$t(u,h),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=nr(s,t,h),e!==null&&(Et(e,s,h,u),eo(e,s,h)),h}function No(e){return e=e.current,e.child?(e.child.tag,e.child.stateNode):null}function Gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vi(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}function $m(){return null}var Zu=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hi(e){this._internalRoot=e}_o.prototype.render=Hi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));jo(e,t,null,null)},_o.prototype.unmount=Hi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jr(function(){jo(null,e,null,null)}),t[Tt]=null}};function _o(e){this._internalRoot=e}_o.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xt.length&&t!==0&&t<Xt[n].priority;n++);Xt.splice(n,0,e),n===0&&Ac(e)}};function Bi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yu(){}function qm(e,t,n,l,s){if(s){if(typeof l=="function"){var u=l;l=function(){var I=No(h);u.call(I)}}var h=Xu(t,l,e,0,null,!1,!1,"",Yu);return e._reactRootContainer=h,e[Tt]=h.current,Tn(e.nodeType===8?e.parentNode:e),jr(),h}for(;s=e.lastChild;)e.removeChild(s);if(typeof l=="function"){var y=l;l=function(){var I=No(j);y.call(I)}}var j=qi(e,0,!1,null,null,!1,!1,"",Yu);return e._reactRootContainer=j,e[Tt]=j.current,Tn(e.nodeType===8?e.parentNode:e),jr(function(){jo(t,j,n,l)}),j}function zo(e,t,n,l,s){var u=n._reactRootContainer;if(u){var h=u;if(typeof s=="function"){var y=s;s=function(){var j=No(h);y.call(j)}}jo(t,h,e,s)}else h=qm(n,t,e,s,l);return No(h)}Mc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yn(t.pendingLanes);n!==0&&(gl(t,n|1),ot(t,Fe()),(Ne&6)===0&&(an=Fe()+500,tr()))}break;case 13:jr(function(){var l=Ot(e,1);if(l!==null){var s=Je();Et(l,e,1,s)}}),Vi(e,1)}},ml=function(e){if(e.tag===13){var t=Ot(e,134217728);if(t!==null){var n=Je();Et(t,e,134217728,n)}Vi(e,134217728)}},Ic=function(e){if(e.tag===13){var t=ir(e),n=Ot(e,t);if(n!==null){var l=Je();Et(n,e,t,l)}Vi(e,t)}},Pc=function(){return ze},Rc=function(e,t){var n=ze;try{return ze=e,t()}finally{ze=n}},sl=function(e,t,n){switch(t){case"input":if(el(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=Ba(l);if(!s)throw Error(o(90));ac(l),el(l,s)}}}break;case"textarea":cc(e,n);break;case"select":t=n.value,t!=null&&Tr(e,!!n.multiple,t,!1)}},xc=Ti,vc=jr;var Vm={usingClientEntryPoint:!1,Events:[Dn,Wr,Ba,mc,bc,Ti]},Yn={findFiberByHostInstance:mr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hm={bundleType:Yn.bundleType,version:Yn.version,rendererPackageName:Yn.rendererPackageName,rendererConfig:Yn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sc(e),e===null?null:e.stateNode},findFiberByHostInstance:Yn.findFiberByHostInstance||$m,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Co.isDisabled&&Co.supportsFiber)try{Na=Co.inject(Hm),Lt=Co}catch{}}return lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vm,lt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bi(t))throw Error(o(200));return Om(e,t,null,n)},lt.createRoot=function(e,t){if(!Bi(e))throw Error(o(299));var n=!1,l="",s=Zu;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=qi(e,1,!1,null,null,n,!1,l,s),e[Tt]=t.current,Tn(e.nodeType===8?e.parentNode:e),new Hi(t)},lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Sc(t),e=e===null?null:e.stateNode,e},lt.flushSync=function(e){return jr(e)},lt.hydrate=function(e,t,n){if(!Eo(t))throw Error(o(200));return zo(null,e,t,!0,n)},lt.hydrateRoot=function(e,t,n){if(!Bi(e))throw Error(o(405));var l=n!=null&&n.hydratedSources||null,s=!1,u="",h=Zu;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(h=n.onRecoverableError)),t=Xu(t,null,e,1,n??null,s,!1,u,h),e[Tt]=t.current,Tn(e),l)for(e=0;e<l.length;e++)n=l[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new _o(t)},lt.render=function(e,t,n){if(!Eo(t))throw Error(o(200));return zo(null,e,t,!1,n)},lt.unmountComponentAtNode=function(e){if(!Eo(e))throw Error(o(40));return e._reactRootContainer?(jr(function(){zo(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1},lt.unstable_batchedUpdates=Ti,lt.unstable_renderSubtreeIntoContainer=function(e,t,n,l){if(!Eo(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return zo(e,t,n,!1,l)},lt.version="18.3.1-next-f1338f8080-20240426",lt}var up;function rb(){if(up)return Ui.exports;up=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(a){console.error(a)}}return r(),Ui.exports=tb(),Ui.exports}var pp;function nb(){if(pp)return Lo;pp=1;var r=rb();return Lo.createRoot=r.createRoot,Lo.hydrateRoot=r.hydrateRoot,Lo}var ab=nb();const ob=".aid-root{color-scheme:light;--background: 0 0% 100%;--background-secondary: 210, 40%, 96%;--foreground: 222.2 47.4% 11.2%;--foreground-secondary: 253, 40%, 16%;--scroll: 0, 0%, 78%;--sidebar-menu-background: 202, 100%, 18%;--sidebar: 210, 40%, 96%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 42%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--primary: 201, 100%, 29%;--primary-text: 201, 100%, 29%;--primary-foreground: 210, 40%, 96%;--primary-hovered: 202, 54%, 67%;--primary-pressed: 202, 100%, 18%;--disabled: 223, 8%, 18%, .15;--disabled-foreground: 223, 8%, 18%, .65;--main: 252, 39%, 16%;--main-foreground: 210, 40%, 96%;--secondary: 201, 95%, 36%, .1;--secondary-foreground: 201, 100%, 29%, 1;--secondary-hovered: 202, 54%, 67%;--secondary-pressed: 202, 100%, 18%;--accent: 223, 8%, 18%, .06;--accent-foreground: 223, 8%, 18%, 1;--destructive: 359, 84%, 50%, 1;--destructive-foreground: 0, 0%, 100%, 1;--destructive-background: 359, 84%, 50%, .1;--destructive-hovered: 359, 84%, 58%, 1;--destructive-pressed: 359, 84%, 44%, 1;--ring: 215 20.2% 65.1%;--radius: 12px;--header-height: 64px;--table-radius: 10px;--table-background: 202, 100%, 18%;--table-header-background: 223, 8%, 18%;--table-header-opacity: .02;--table-background-hover: 223, 8%, 18%;--chart-card: 210, 27%, 95%;--filled-filter: 343, 79%, 45%;--success: 100.24, 76.58%, 43.53%;--warning: 39.91, 95.83%, 52.94%;--error: 359, 84%, 50%;--processing: 201.2, 100%, 29.41%;--success-background: 90, 100%, 96%;--warning-background: 50, 100%, 95%, 1;--error-background: 8, 100%, 97%, 1;--processing-background: 204, 42%, 95%, 1;--default-background: 223, 8%, 18%, .02;--transfer-hovered: 223, 8%, 18%, .04;--transfer-selected: 204, 42%, 95%;--transfer-selected-hovered: 203, 55%, 91%;--toast-background: 204, 42%, 95%;--toast-border: 202, 55%, 85%;--toast-success-background: 90, 100%, 96%;--toast-success-border: 94, 70%, 74%;--toast-error-background: 8, 100%, 97%;--toast-error-border: 5, 100%, 89%, 1;--toast-warning-background: 50, 100%, 95%;--toast-warning-border: 46, 100%, 78%;--toast-info-background: 204, 42%, 95%;--toast-info-border: 202, 55%, 85%;--custom-magenta: 330 84% 33%;--custom-peach: 36 100% 94%;--custom-orange-soft: 18 100% 63%;--custom-orange-strong: 27, 95%, 55%;--chart-stroke: 0, 0%, 0%;--gray-soft: 220, 27%, 92%;--gray-softer: 0 0% 95%}.aid-root.dark{color-scheme:dark;--background: 222 47% 11%;--background-secondary: 217, 33%, 17%;--foreground: 210 40% 98%;--foreground-secondary: 210, 40%, 90%;--scroll: 215, 14%, 34%;--sidebar-menu-background: 222, 47%, 11%;--sidebar: 217, 33%, 17%;--muted: 217 33% 17%;--muted-foreground: 215 20.2% 65.1%;--popover: 222 47% 11%;--popover-foreground: 210 40% 98%;--border: 217 33% 25%;--input: 217 33% 25%;--card: 222 47% 11%;--card-foreground: 210 40% 98%;--primary: 201, 100%, 35%;--primary-text: 201, 90%, 60%;--primary-foreground: 210, 40%, 98%;--primary-hovered: 201, 100%, 39%;--primary-pressed: 201, 100%, 29%;--disabled: 215, 14%, 34%, .2;--disabled-foreground: 210, 40%, 90%, .5;--main: 210, 40%, 90%;--main-foreground: 222, 47%, 11%;--secondary: 201, 95%, 40%, .2;--secondary-foreground: 201, 100%, 70%, 1;--secondary-hovered: 201, 90%, 75%;--secondary-pressed: 201, 100%, 60%;--accent: 210, 40%, 90%, .1;--accent-foreground: 210, 40%, 90%, 1;--destructive: 0, 100%, 65%, 1;--destructive-foreground: 210, 40%, 98%, 1;--destructive-background: 359, 100%, 65%, .1;--destructive-hovered: 0, 100%, 70%, 1;--destructive-pressed: 0, 100%, 60%, 1;--ring: 215 20.2% 50%;--radius: 12px;--header-height: 64px;--table-radius: 10px;--table-background: 222, 47%, 15%;--table-header-background: 0, 0%, 100%;--table-header-opacity: .04;--table-background-hover: 0, 0%, 100%;--chart-card: 210, 25%, 18%;--filled-filter: 343, 79%, 55%;--success: 100.24, 76.58%, 43.53%;--warning: 39.91, 95.83%, 52.94%;--error: 359.33, 100%, 65.1%;--processing: 201, 90%, 60%;--success-background: 100, 77%, 44%, .12;--warning-background: 40, 96%, 53%, .12;--error-background: 359, 100%, 65%, .12;--processing-background: 201, 90%, 60%, .12;--default-background: 0, 0%, 100%, .04;--transfer-hovered: 0, 0%, 100%, .06;--transfer-selected: 201, 95%, 40%, .2;--transfer-selected-hovered: 201, 95%, 40%, .3;--toast-background: 222, 47%, 15%;--toast-border: 217, 33%, 25%;--toast-success-background: 142, 70%, 15%;--toast-success-border: 142, 70%, 25%;--toast-error-background: 0, 70%, 15%;--toast-error-border: 0, 70%, 25%;--toast-warning-background: 48, 70%, 15%;--toast-warning-border: 48, 70%, 25%;--toast-info-background: 201, 70%, 15%;--toast-info-border: 201, 70%, 25%;--custom-magenta: 330 84% 33%;--custom-peach: 36 100% 94%;--custom-orange-soft: 18 100% 63%;--custom-orange-strong: 27, 95%, 55%;--chart-stroke: 0, 0%, 100%;--gray-soft: 217, 33%, 22%;--gray-softer: 217 33% 17%}.aid-root{--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}",Qi=25,lb={ru:"ru-RU",kk:"kk-KZ",en:"en-US"};function zt(r,a,o){return r===null?"\u2014":new Intl.NumberFormat(lb[a],{minimumFractionDigits:o,maximumFractionDigits:o}).format(r).replace(new RegExp("\\u202F","g"),"\xA0")}const Ki=r=>typeof r=="number"&&Number.isFinite(r)?r:null;function ib(r,a,o){const i=o==="asc"?1:-1,d=a.type==="number"||a.type==="integer",p=[],f=[];for(const g of r){const m=g[a.key];((d?Ki(m)===null:m==null)?f:p).push(g)}return p.sort((g,m)=>d?i*((Ki(g[a.key])??0)-(Ki(m[a.key])??0)):i*String(g[a.key]).localeCompare(String(m[a.key]))),[...p,...f]}function sb(r,a){let o=r.data;const i=a.query?.trim().toLowerCase();if(i){const x=r.columns.filter(k=>k.type==="string").map(k=>k.key);o=o.filter(k=>x.some(S=>String(k[S]??"").toLowerCase().includes(i)))}const d=r.columns.find(x=>x.key===a.sortKey);d&&(o=ib(o,d,a.dir??"asc"));const p=o.length,f=Math.max(1,Math.ceil(p/Qi)),g=Math.min(Math.max(1,Math.trunc(a.page)||1),f),m=(g-1)*Qi,b=o.slice(m,m+Qi);return{rows:b,page:g,pages:f,from:p===0?0:m+1,to:m+b.length,total:p}}function cb(r){return r.split(`
|
|
9
|
+
`).map(a=>{const o=a.trim();return o.startsWith("|")?/^\|[\s:|-]+\|?$/.test(o)?null:o.replace(/^\||\|$/g,"").split("|").map(i=>i.trim()).join(" \u2014 "):a}).filter(a=>a!==null).join(`
|
|
10
|
+
`).replace(/^\s{0,3}#+\s*/gm,"").replace(/[*_`]/g,"").trim()}function db(r){const a=r.blocks.find(i=>i.kind==="plan"),o=[];return a&&a.passport.length>0&&o.push(a.passport.join(`
|
|
11
|
+
`)),o.push(cb(r.content)),a?.source&&o.push(`\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: ${a.source.name}`),o.join(`
|
|
12
|
+
|
|
13
|
+
`)}function fp(r,a){return a.isLastInBranch?a.now.getTime()>Date.parse(r.expires_at)?"expired":"open":"answered"}function ub(r,a){const o=a.trim().toLowerCase();return o?r.filter(i=>i.label.toLowerCase().includes(o)):r}function ta(r){return[...new Set(r.data.map(a=>a.period))].sort((a,o)=>a.localeCompare(o,void 0,{numeric:!0}))}const hp=r=>r.value_kind!=="level",gp=(r,a)=>{const o=ta(r),i=o.indexOf(a);return i>0?o[i-1]:void 0},mp=(r,a)=>r.national?.period===a?r.national.value:null,pb=r=>{if(r.length===0)return null;const a=[...r].sort((i,d)=>i-d),o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o])/2},fb=r=>[r.territory_code??r.territory_name,r.item].filter(a=>!!a).join("|"),hb=r=>[r.territory_name??r.territory_code,r.item].filter(a=>!!a).join(", ");function Xi(r,a){const o=new Map;for(const i of r.data)i.period===a&&o.set(fb(i),{name:hb(i),value:i.value});return o}function gb(r,a,o){return a===null||o===null||o===void 0?null:hp(r)?a-o:o<=0?null:(a/o-1)*100}const bp=r=>r!==null&&Number.isFinite(r)?r:null;function mb(r,a){const o=Xi(r,a.period),i=gp(r,a.period),d=i?Xi(r,i):void 0,p=[...o.values()].map(m=>m.value).filter(m=>m!==null),f=p.reduce((m,b)=>m+b,0),g=a.base==="national"?mp(r,a.period):pb(p);return[...o].map(([m,{name:b,value:x}])=>{const k=bp(d?gb(r,x,d.get(m)?.value):null);let S=x;a.mode==="deviation"?S=x===null||g===null?null:x-g:a.mode==="change"&&(S=k);const E=r.value_kind==="level"&&x!==null&&f!==0?x/f*100:null;return{key:m,name:b,value:x,display:bp(S),share:E,delta:k}}).sort((m,b)=>m.display===null||b.display===null?+(m.display===null)-+(b.display===null):b.display-m.display)}function bb(r,a){return{deviation:[...Xi(r,a).values()].filter(o=>o.value!==null).length>=2,national:mp(r,a)!==null,change:gp(r,a)!==void 0}}function xb(r,a){return a==="value"?r.unit.label:hp(r)?"\u043F.\u043F.":a==="deviation"?r.unit.label:"%"}function vb(r){const a=r.filter(Number.isFinite);if(a.length<2)return!0;const o=Math.max(...a),i=Math.min(...a);return o<=0||o===i?!0:(o-i)/o>=.2}function xp(r){switch(r){case"pdf":return"report";case"docx":return"document";case"pptx":return"presentation";case"xlsx":return"excel";case"csv":return"csv"}}const vt=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),se=r=>typeof r=="string",Ht=r=>typeof r=="number"&&Number.isFinite(r),Gi=r=>r===null||se(r),yt=(r,a)=>Array.isArray(r)&&r.every(o=>vt(o)&&a(o)),Mo=r=>Array.isArray(r)&&r.every(se),yb=["self","regions","districts"],wb=["string","number","integer","period"],kb=["indicator","territory","topic","period","scope","plan_confirm"];function Sb(r){const{period:a}=r;return yt(r.indicators,o=>se(o.id)&&se(o.name)&&se(o.unit))&&yt(r.alternatives,o=>se(o.id)&&se(o.name))&&yt(r.territories,o=>se(o.code)&&se(o.name))&&se(r.scope)&&yb.includes(r.scope)&&vt(a)&&se(a.label)&&typeof a.substituted=="boolean"&&Gi(a.reason)&&se(r.breakdown)&&Mo(r.passport)&&(r.source===void 0||vt(r.source)&&se(r.source.name))&&(r.methodology===void 0||vt(r.methodology)&&se(r.methodology.title)&&se(r.methodology.url))}function jb(r){return se(r.section_id)&&yt(r.columns,a=>se(a.key)&&se(a.title)&&se(a.type)&&wb.includes(a.type))&&yt(r.data,()=>!0)&&typeof r.truncated=="boolean"&&Ht(r.total_rows)}function Nb(r){return se(r.topic)&&yt(r.sections,a=>se(a.id)&&Mo(a.path)&&Ht(a.count))&&yt(r.indicators,a=>se(a.entity_id)&&se(a.name)&&se(a.unit)&&se(a.years)&&se(a.section))&&Ht(r.total)&&Mo(r.examples)}function _b(r){return se(r.id)&&se(r.type)&&kb.includes(r.type)&&se(r.slot)&&se(r.question)&&yt(r.options,a=>se(a.value)&&se(a.label)&&Gi(a.hint))&&Gi(r.default)&&typeof r.allow_free_text=="boolean"&&Ht(r.round)&&se(r.expires_at)}const Eb=["regional","trend","breakdown","multi"],zb=["level","percent","index","rate"],Cb=["pdf","docx","pptx","xlsx","csv"],Lb=["queued","running","done","failed","expired"],vp=["territory_code","territory_name","item"],ra=r=>r==null,ln=r=>ra(r)||se(r),Mb=r=>se(r.period)&&(r.value===null||Ht(r.value))&&vp.every(a=>ln(r[a])),Ib=r=>vt(r)&&se(r.title)&&se(r.url);function Pb(r){return ra(r)?!0:!vt(r)||!ln(r.label)?!1:ra(r.editions)?!0:vt(r.editions)&&Object.values(r.editions).every(Ib)}function Rb(r){const{unit:a,national:o}=r;return se(r.id)&&se(r.title)&&se(r.shape)&&Eb.includes(r.shape)&&vt(a)&&se(a.code)&&se(a.label)&&se(r.value_kind)&&zb.includes(r.value_kind)&&Ht(r.decimals)&&se(r.freq)&&se(r.period)&&se(r.latest_period)&&yt(r.data,Mb)&&(ra(o)||vt(o)&&se(o.period)&&Ht(o.value))&&yt(r.kpis,i=>se(i.label)&&se(i.value)&&ln(i.sub)&&ln(i.tone))&&Mo(r.findings)&&typeof r.truncated=="boolean"&&Ht(r.total_rows)&&Pb(r.methodology)&&ln(r.source_url)&&ln(r.source_name)}function Tb(r){const a={...r};for(const o of vp)a[o]===null&&delete a[o];return a}function Ab(r){if(!se(r.title)||!Array.isArray(r.sections))return;const a=r.sections.filter(o=>vt(o)&&Rb(o)).map(o=>({...o,national:o.national??null,data:o.data.map(Tb)}));if(a.length!==0)return{kind:"dashboard",title:r.title,auto_open:r.auto_open===!0,sections:a}}const yp=r=>se(r.format)&&Cb.includes(r.format)&&se(r.filename)&&se(r.title)&&se(r.download_url)&&Ht(r.size_bytes);function Fb(r){const{error:a}=r;return se(r.job_id)&&se(r.status)&&Lb.includes(r.status)&&yt(r.files,yp)&&(ra(a)||vt(a)&&se(a.code)&&se(a.message))}function wp(r){if(vt(r))switch(r.kind){case"plan":return Sb(r)?r:void 0;case"table":return jb(r)?r:void 0;case"catalog":return Nb(r)?r:void 0;case"clarification":return _b(r)?r:void 0;case"dashboard":return Ab(r);case"export":return yt(r.files,yp)?r:void 0;case"report":return Fb(r)?r:void 0;default:return}}const Zi="/chat/stream",Db=100;class et extends Error{constructor(a,o,i=null){super(o),Jn(this,"status"),Jn(this,"code"),Jn(this,"body"),this.name="ApiError",this.status=a,this.code=o,this.body=i}get resetAt(){const a=this.body;if(a&&typeof a=="object"&&"reset_at"in a&&typeof a.reset_at=="string")return a.reset_at}}function Ob(r,a){if(r&&typeof r=="object"){if("detail"in r&&typeof r.detail=="string"&&r.detail)return r.detail;if("errors"in r&&Array.isArray(r.errors)){const o=r.errors[0];if(o&&typeof o=="object"&&"code"in o&&typeof o.code=="string"&&o.code)return o.code}}return`http_${a}`}async function $b(r){const a=await r.text();if(!a)return null;try{return JSON.parse(a)}catch{return null}}async function Yi(r){const a=await $b(r);return new et(r.status,Ob(a,r.status),a)}const qb=["\u041E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435: ","\u041A\u0430\u043A \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C: "],Vb="\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0434\u0438\u0430\u043B\u043E\u0433:",kp=`
|
|
14
|
+
\u041D\u043E\u0432\u044B\u0439 \u0432\u043E\u043F\u0440\u043E\u0441: `;function Hb(r){let a=r;if(qb.some(o=>a.startsWith(o))){const o=a.indexOf(`
|
|
15
|
+
|
|
16
|
+
`);o!==-1&&(a=a.slice(o+2))}if(a.startsWith(Vb)){const o=a.lastIndexOf(kp);o!==-1&&(a=a.slice(o+kp.length))}return a}const Bb=["streaming","done","stopped","error"];function Wb(r){return{...typeof r.id=="string"?{id:r.id}:{},node:typeof r.node=="string"?r.node:"",status:r.status==="running"?"running":"done",attempt:typeof r.attempt=="number"?r.attempt:1,...typeof r.durationMs=="number"?{durationMs:r.durationMs}:{},...typeof r.label=="string"?{label:r.label}:{},...typeof r.total=="number"||r.total===null?{total:r.total}:{},...typeof r.startedAt=="number"?{startedAt:r.startedAt}:{}}}function Sp(r){return{id:r.id,parentId:r.parent_id,role:r.role==="user"?"user":"assistant",content:r.role==="user"?Hb(r.content):r.content,mode:r.mode,status:Bb.find(a=>a===r.status)??"done",steps:r.steps.map(Wb),durationMs:r.duration_ms,rating:r.rating,feedback:r.feedback,feedbackReason:r.feedback_reason??"",attachments:r.attachments??[],blocks:(r.blocks??[]).flatMap(a=>{const o=wp(a);return o!=null?[o]:[]}),createdAt:r.created_at}}const Ub=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Io=r=>Ub.test(r);class jp extends Error{constructor(a){super(a),this.name="StreamFailure"}}const Qb=(r,a)=>Date.parse(r.createdAt)-Date.parse(a.createdAt)||(r.id<a.id?-1:r.id>a.id?1:0);function Np(r){const a=new Map,o=new Map;for(const i of r){a.set(i.id,i);const d=o.get(i.parentId);d?d.push(i):o.set(i.parentId,[i])}for(const i of o.values())i.sort(Qb);return{byId:a,children:o}}function Kb(r,a){const o=[],i=new Set;let d=r.byId.get(a);for(;d&&!i.has(d.id);)i.add(d.id),o.push(d),d=d.parentId===null?void 0:r.byId.get(d.parentId);return o.reverse()}function _p(r,a){if(!r.byId.has(a))return null;let o=a;for(;;){const i=r.children.get(o),d=i?.[i.length-1];if(!d)return o;o=d.id}}function Xb(r,a){const o=r.byId.get(a);if(!o)return{list:[],position:-1};const i=r.children.get(o.parentId)??[];return{list:i,position:i.findIndex(d=>d.id===a)}}function Ep(r,a){if(a&&r.byId.has(a))return a;const o=r.children.get(null),i=o?.[o.length-1];return i?_p(r,i.id):null}let Gb=0;const Zb=r=>`temp-${r}-${Date.now().toString(36)}-${(Gb++).toString(36)}`;function Ji(r,a,o){return{id:Zb(r==="user"?"user":"stream"),parent_id:o,role:r,content:"",mode:a,status:r==="user"?"done":"streaming",steps:[],duration_ms:null,rating:null,feedback:"",created_at:new Date().toISOString()}}function Yb(r){return!r||r.messages.length===0?null:Ep(Np(r.messages.map(Sp)),r.current_leaf_id)}function Jb(r,a){if(r.regenerateOf!=null){const d=a?.messages.find(p=>p.id===r.regenerateOf);return{assistant:Ji("assistant",r.mode,d?.parent_id??null)}}const o=r.parentId===void 0?Yb(a):r.parentId||null,i={...Ji("user",r.mode,o),content:r.query,...r.file?{attachments:[{name:r.file.name,url:""}]}:{}};return{user:i,assistant:Ji("assistant",r.mode,i.id)}}function e0(r,a,o){const i=new Map([[a.assistantId,o.assistantMessageId]]);a.userId!=null&&i.set(a.userId,o.userMessageId);const d=p=>p!=null?i.get(p)??p:p;return{...r,id:o.threadId,current_leaf_id:d(r.current_leaf_id),messages:r.messages.map(p=>i.has(p.id)||p.parent_id!=null&&i.has(p.parent_id)?{...p,id:d(p.id)??p.id,parent_id:d(p.parent_id)}:p)}}function t0(r,a){return{...r,content:a.text,steps:a.steps.map(o=>({...o})),...a.attachments.length>0?{attachments:a.attachments}:{},...a.blocks.length>0?{blocks:a.blocks.map(o=>({...o}))}:{}}}function r0(r,a,o,i){const d={...r,status:a,duration_ms:Date.now()-i};return a==="error"&&!r.content?{...d,content:o}:d}const n0=["thread_busy","mode_overloaded","daily_limit","rate_limit","concurrency_limit","file_too_large","file_not_allowed","invalid_query","invalid_parent","mode_not_found","thread_not_found","interrupted"],a0=r=>n0.includes(r);function o0(r){if(r instanceof et)return r.code;if(r instanceof jp)return r.message}function Po(r){const a=o0(r);return a!=null&&a0(a)?{kind:"code",code:a}:r instanceof et?{kind:"status",status:r.status}:{kind:"generic"}}async function Ro(r,a,o={}){const i=o.method??"GET",d=new Headers(o.headers),p=await r.headers?.({method:i})??{};for(const[f,g]of Object.entries(p))d.set(f,g);return(r.fetch??fetch)(`${r.baseUrl}${a}`,{...o,method:i,headers:d,...r.credentials?{credentials:r.credentials}:{}})}const zp="text/event-stream";function l0({query:r,mode:a,file:o,parentId:i,regenerateOf:d,clarification:p},f){const g=new FormData;return g.set("mode",a),d==null&&g.set("query",r),f!=null&&g.set("thread_id",f),i!==void 0&&g.set("parent_id",i),d!=null&&g.set("regenerate_of",d),o&&g.set("file",o),p&&g.set("clarification",JSON.stringify(p)),g}function i0(r,a,o){return Ro(r,Zi,{method:"POST",body:a,headers:{Accept:zp},signal:o})}function s0(r,a,o){return Ro(r,`${Zi}/${a}`,{headers:{Accept:zp},signal:o})}async function c0(r,a){const o=await Ro(r,`${Zi}/${a}/stop`,{method:"POST"});if(!o.ok)throw await Yi(o)}async function d0(r){if(!r.ok)throw await Yi(r);if(r.body==null)throw new Error("empty_stream");return r.body}const u0=45,p0=7,f0=.1,h0=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function g0(r,a){const o=r.charCodeAt(a-1);return o>=55296&&o<=56319?a+1:a}function m0(r,a){const[o,i]=v.useState(()=>r.length),d=v.useRef(o),p=v.useRef(r),f=v.useRef(null),g=v.useRef(null),[m]=v.useState(h0),b=a&&!m;return v.useLayoutEffect(()=>{p.current=r},[r]),v.useEffect(()=>{if(!b){d.current=p.current.length;return}if(d.current>r.length&&(d.current=r.length,i(r.length)),f.current!=null||d.current>=r.length)return;const x=k=>{const S=p.current,E=g.current;g.current=k;const C=E==null?1/60:Math.min((k-E)/1e3,f0),_=S.length-d.current;if(_<=0){f.current=null,g.current=null;return}const M=Math.max(1,Math.round(Math.max(u0*C,_*Math.min(1,p0*C)))),$=Math.min(S.length,g0(S,d.current+M));d.current=$,i($),f.current=requestAnimationFrame(x)};f.current=requestAnimationFrame(x)},[r,b]),v.useEffect(()=>()=>{f.current!=null&&cancelAnimationFrame(f.current),f.current=null},[]),v.useEffect(()=>{b||f.current==null||(cancelAnimationFrame(f.current),f.current=null,g.current=null)},[b]),b?o>=r.length?r:r.slice(0,o):r}const es="/api/v1/widget",Cp="aid_visitor",Lp=4e3,ts=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,b0=()=>{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();const r=new Uint8Array(16);crypto.getRandomValues(r),r[6]=(r[6]??0)&15|64,r[8]=(r[8]??0)&63|128;const a=Array.from(r,o=>o.toString(16).padStart(2,"0")).join("");return`${a.slice(0,8)}-${a.slice(8,12)}-${a.slice(12,16)}-${a.slice(16,20)}-${a.slice(20)}`},x0=(r,a)=>{if(r&&ts.test(r))return r;try{const i=a?.getItem(Cp);if(i&&ts.test(i))return i}catch{}const o=b0();try{a?.setItem(Cp,o)}catch{}return o},v0=/\/api\/v1\/attachments\/([0-9a-f-]{36})\/?(?:[?#].*)?$/i,rs=(r,a)=>{const o=v0.exec(r);if(!o?.[1]){const i=/\/api\/v1\/widget\/attachments\/([0-9a-f-]{36})\/?$/i.exec(r);return i?.[1]?`${ns(a)}/attachments/${i[1]}`:null}return`${ns(a)}/attachments/${o[1]}`},ns=r=>`${r.replace(/\/+$/,"")}${es}`,y0=r=>{const a={};if(!r||typeof r!="object")return a;const o=E=>{const C=r[E];return typeof C=="string"&&C?C:void 0},i=o("primary"),d=o("font"),p=o("logoUrl"),f=o("title"),g=o("scheme");i&&(a.primary=i),d&&(a.font=d),p&&(a.logoUrl=p),f&&(a.title=f),(g==="light"||g==="dark"||g==="auto")&&(a.scheme=g);const m=o("launcher");(m==="icon"||m==="label")&&(a.launcher=m);const b=o("launcherLabel");b&&(a.launcherLabel=b);const x=o("launcherShape");(x==="circle"||x==="rounded"||x==="square")&&(a.launcherShape=x),(typeof r.radius=="number"||typeof r.radius=="string"&&r.radius)&&(a.radius=r.radius);for(const E of["background","foreground","bubble","border"]){const C=o(E);C&&(a[E]=C)}const k=E=>{const C=r[E],_=typeof C=="number"?C:typeof C=="string"&&C?Number(C):NaN;return Number.isFinite(_)?_:void 0};for(const E of["windowWidth","windowHeight","offsetX","offsetY"]){const C=k(E);C!==void 0&&(a[E]=C)}const S=o("position");return(S==="bottom-right"||S==="bottom-left")&&(a.position=S),a},Mp=r=>{throw r instanceof et||r instanceof Error&&r.name==="AbortError"?r:new et(0,"network",null)},w0=({apiUrl:r,siteKey:a,visitorId:o,fetch:i})=>{const d={baseUrl:ns(r),headers:()=>({"X-Visitor-Id":o,...a?{"X-Widget-Key":a}:{}}),credentials:"omit",...i?{fetch:i}:{}},p=async(m,b={})=>{const x=await Ro(d,m,b).catch(Mp);if(!x.ok)throw await Yi(x);return x},f=async(m,b)=>(await p(m,b)).json(),g=(m,b)=>({method:m,headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});return{transport:d,apiUrl:r,config:()=>f("/config"),health:()=>f("/modes/health"),threads:()=>f("/threads?limit=50"),thread:m=>f(`/threads/${m}`),setLeaf:async(m,b)=>{await p(`/threads/${m}`,g("PATCH",{current_leaf_id:b}))},deleteThread:async m=>{await p(`/threads/${m}`,{method:"DELETE"})},rate:async(m,b)=>{await p(`/messages/${m}/rating`,g("POST",{rating:b}))},feedback:async(m,b,x)=>{await p(`/messages/${m}/feedback`,g("POST",x?{feedback:b,reason:x}:{feedback:b}))},stop:m=>c0(d,m).catch(Mp),createReport:(m,b)=>f(`/messages/${m}/report`,g("POST",{language:b})),reportStatus:m=>ts.test(m)?f(`/report-jobs/${m}`):Promise.reject(new et(0,"bad_job_id",null)),request:m=>p(m),attachment:async m=>{const b=rs(m,r);if(!b)throw new et(0,"not_attachment",null);const x=b.slice(d.baseUrl.length),k=await(await p(x)).blob();return URL.createObjectURL(k)}}},as=["kk","ru","en"],k0=r=>as.includes(r),Ip=r=>{const a=[r,typeof document<"u"?document.documentElement.lang:void 0,typeof navigator<"u"?navigator.language:void 0];for(const o of a){const i=o?.toLowerCase().split("-")[0];if(k0(i))return i}return"ru"},Pp={title:"AI-Dana",open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0447\u0430\u0442",unreadAnswers:"\u043D\u043E\u0432\u044B\u0445 \u043E\u0442\u0432\u0435\u0442\u043E\u0432: {count}",ask:"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",history:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F",closeHistory:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u044E",newChat:"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442",untitled:"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442",historyEmpty:"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0447\u0430\u0442\u043E\u0432",historyError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u044E",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",deleteConfirm:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0447\u0430\u0442?",deleteYes:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",deleteNo:"\u041E\u0442\u043C\u0435\u043D\u0430",deleteError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0447\u0430\u0442",modeLabel:"\u0420\u0435\u0436\u0438\u043C \u043E\u0442\u0432\u0435\u0442\u0430","health.idle":"\u0421\u0432\u043E\u0431\u043E\u0434\u0435\u043D","health.busy":"\u0417\u0430\u043D\u044F\u0442","health.unavailable":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",placeholder:"\u0421\u043F\u0440\u043E\u0441\u0438\u0442\u0435 \u0447\u0442\u043E \u0443\u0433\u043E\u0434\u043D\u043E",inputLabel:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",send:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",stop:"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",attach:"\u041F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0444\u0430\u0439\u043B",attachOne:"\u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0444\u0430\u0439\u043B",attachHint:"\u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u043E\u0434\u0438\u043D \u0444\u0430\u0439\u043B: XLS, XLSX, CSV, TXT \u0438\u043B\u0438 MD \u0434\u043E {size} \u041C\u0411",disclaimer:"\u0418\u0418 \u043C\u043E\u0436\u0435\u0442 \u043E\u0448\u0438\u0431\u0430\u0442\u044C\u0441\u044F \u2014 \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0432\u0430\u0436\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E",removeFile:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B",counter:"{count} / {max}",counterLimit:"\u0414\u043E\u0441\u0442\u0438\u0433\u043D\u0443\u0442 \u043F\u0440\u0435\u0434\u0435\u043B \u0437\u043D\u0430\u043A\u043E\u0432",counterOver:"\u041F\u0440\u0435\u0432\u044B\u0448\u0435\u043D \u043F\u0440\u0435\u0434\u0435\u043B \u0437\u043D\u0430\u043A\u043E\u0432",fileTooLarge:"\u0424\u0430\u0439\u043B \xAB{name}\xBB \u0431\u043E\u043B\u044C\u0448\u0435 {size} \u041C\u0411",fileType:"\u0424\u0430\u0439\u043B \xAB{name}\xBB \u043D\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442. \u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C XLS, XLSX, CSV, TXT \u0438\u043B\u0438 MD",modeUnavailable:"\u0420\u0435\u0436\u0438\u043C \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439",greeting:"\u0427\u0435\u043C \u043C\u043E\u0433\u0443 \u043F\u043E\u043C\u043E\u0447\u044C?",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430\u2026",configError:"\u0427\u0430\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",overloaded:"\u0421\u0435\u0440\u0432\u0438\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",dismiss:"\u0421\u043A\u0440\u044B\u0442\u044C",scrollDown:"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u044C \u0432\u043D\u0438\u0437",settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","settings.language":"\u042F\u0437\u044B\u043A","settings.theme":"\u0422\u0435\u043C\u0430","settings.themeLight":"\u0421\u0432\u0435\u0442\u043B\u0430\u044F","settings.themeDark":"\u0422\u0451\u043C\u043D\u0430\u044F","settings.themeAuto":"\u041A\u0430\u043A \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435","settings.model":"\u041C\u043E\u0434\u0435\u043B\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","settings.modelHint":"\u0421 \u043D\u0435\u0451 \u043D\u0430\u0447\u0438\u043D\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u043D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442","settings.shortcuts":"\u0413\u043E\u0440\u044F\u0447\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438","shortcut.search":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0447\u0430\u0442\u0430\u043C","shortcut.newChat":"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442","shortcut.sidebar":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0438\u043B\u0438 \u0441\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C","shortcut.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E",search:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0447\u0430\u0442\u0430\u043C",searchEmpty:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",collapseSidebar:"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",expandSidebar:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043D\u0430 \u0432\u0441\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443",shrink:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",examples:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432","examples.whatCanDo":"\u0427\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0441\u0434\u0435\u043B\u0430\u0442\u044C","group.pinned":"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435","group.today":"\u0421\u0435\u0433\u043E\u0434\u043D\u044F","group.yesterday":"\u0412\u0447\u0435\u0440\u0430","group.week":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 7 \u0434\u043D\u0435\u0439","group.earlier":"\u0420\u0430\u043D\u0435\u0435","errors.thread_busy":"AI-Dana \u0435\u0449\u0451 \u043E\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0432 \u044D\u0442\u043E\u043C \u0447\u0430\u0442\u0435. \u0414\u043E\u0436\u0434\u0438\u0442\u0435\u0441\u044C \u043E\u0442\u0432\u0435\u0442\u0430 \u0438\u043B\u0438 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0435\u0433\u043E.","errors.mode_overloaded":"AI-Dana \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0447\u0443\u0442\u044C \u043F\u043E\u0437\u0436\u0435","errors.daily_limit":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043D\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D","errors.rate_limit":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u043E\u0434\u0440\u044F\u0434. \u041F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043C\u0438\u043D\u0443\u0442\u0443.","errors.ip_limit":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0438\u0437 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u0441\u0435\u0433\u043E\u0434\u043D\u044F. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0432\u0442\u0440\u0430.","errors.concurrency_limit":"\u0414\u043E\u0436\u0434\u0438\u0442\u0435\u0441\u044C \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u043E\u0442\u0432\u0435\u0442\u0430","errors.file_too_large":"\u0424\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439","errors.file_not_allowed":"\u042D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C. \u041F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 XLS, XLSX, CSV, TXT \u0438 MD","errors.invalid_query":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u0443\u0441\u0442\u043E\u0435 \u0438\u043B\u0438 \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043B\u0438\u043D\u043D\u043E\u0435","errors.invalid_parent":"\u042D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435\u043B\u044C\u0437\u044F \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C","errors.mode_not_found":"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0440\u0435\u0436\u0438\u043C.","errors.thread_not_found":"\u0427\u0430\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","errors.interrupted":"\u041E\u0442\u0432\u0435\u0442 \u043F\u0440\u0435\u0440\u0432\u0430\u043D","errors.code":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043E\u0442\u0432\u0435\u0442 (\u043A\u043E\u0434 {code}).","errors.generic":"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","errors.network":"\u041D\u0435\u0442 \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435.","agent.thinking":"\u0414\u0443\u043C\u0430\u044E\u2026","agent.done":"\u0413\u043E\u0442\u043E\u0432\u043E","agent.stopped":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E","agent.stopping":"\u041E\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u044E\u2026","agent.failed":"\u043D\u0435 \u0441\u043C\u043E\u0433\u043B\u0430","agent.interrupted":"\u041E\u0442\u0432\u0435\u0442 \u043F\u0440\u0435\u0440\u0432\u0430\u043D","agent.answerStopped":"\u041E\u0442\u0432\u0435\u0442 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D. \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0432\u043E\u043F\u0440\u043E\u0441 \u0437\u0430\u043D\u043E\u0432\u043E, \u0435\u0441\u043B\u0438 \u043D\u0443\u0436\u043D\u043E","agent.seconds":"{value} \u0441","agent.attempt":"\u043F\u043E\u043F\u044B\u0442\u043A\u0430 {count}","agent.showSteps":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0448\u0430\u0433\u0438","agent.hideSteps":"\u0421\u043A\u0440\u044B\u0442\u044C \u0448\u0430\u0433\u0438","steps.router":"\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.context_builder":"\u0418\u0449\u0443 \u043D\u0443\u0436\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435","steps.sql_architect":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u0440\u0430\u0441\u0447\u0451\u0442","steps.executor":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","steps.responder":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u043E\u0442\u0432\u0435\u0442","steps.rag":"\u0418\u0449\u0443 \u0432 \u0441\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u044B\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430\u0445","steps.sql":"\u0418\u0449\u0443 \u0434\u0430\u043D\u043D\u044B\u0435 \u0432 \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u0445 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0430\u0445","steps.document":"\u0427\u0438\u0442\u0430\u044E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","steps.understand":"\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.search_law":"\u0418\u0449\u0443 \u0432 \u0437\u0430\u043A\u043E\u043D\u0430\u0445","steps.run_sql":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","steps.run_query":"\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0434\u0430\u043D\u043D\u044B\u0435","steps.data":"\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0434\u0430\u043D\u043D\u044B\u0435","steps.lookup_taxpayer":"\u0418\u0449\u0443 \u043D\u0430\u043B\u043E\u0433\u043E\u043F\u043B\u0430\u0442\u0435\u043B\u044C\u0449\u0438\u043A\u0430","steps.find_taxpayer":"\u0418\u0449\u0443 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u044E \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044E","steps.ask_clarification":"\u0423\u0442\u043E\u0447\u043D\u044F\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.answer":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u043E\u0442\u0432\u0435\u0442","steps.unknown":"\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u043D\u0430\u0434 \u043E\u0442\u0432\u0435\u0442\u043E\u043C",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",copied:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C",regenerate:"\u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",edit:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",editLabel:"\u0422\u0435\u043A\u0441\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",actionsLabel:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C",rate:"\u041E\u0446\u0435\u043D\u0438\u0442\u044C \u043D\u0430 {count} \u0438\u0437 5",ratingError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043E\u0446\u0435\u043D\u043A\u0443",feedbackOpen:"\u041E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432",feedbackEdit:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432",feedbackLabel:"\u041E\u0442\u0437\u044B\u0432 \u043E\u0431 \u043E\u0442\u0432\u0435\u0442\u0435",feedbackPlaceholder:"\u0427\u0442\u043E \u0431\u044B\u043B\u043E \u043D\u0435 \u0442\u0430\u043A \u0441 \u043E\u0442\u0432\u0435\u0442\u043E\u043C?",save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","branch.label":"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B","branch.prev":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442","branch.next":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442","branch.error":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442","limit.remaining":"\u0421\u0435\u0433\u043E\u0434\u043D\u044F \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C {count} \u0438\u0437 {limit} \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439","limit.exhausted":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043D\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D","limit.until":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D. \u041D\u043E\u0432\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u2014 \u043F\u043E\u0441\u043B\u0435 {time}.","blocks.data":"\u0414\u0430\u043D\u043D\u044B\u0435","blocks.hideData":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435","blocks.methodology":"\u041C\u0435\u0442\u043E\u0434\u043E\u043B\u043E\u0433\u0438\u044F","blocks.passport":"\u0427\u0442\u043E \u043F\u043E\u0441\u0447\u0438\u0442\u0430\u043D\u043E","blocks.indicator":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044C","blocks.territory":"\u0422\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F","blocks.period":"\u041F\u0435\u0440\u0438\u043E\u0434","blocks.breakdown":"\u0420\u0430\u0437\u0440\u0435\u0437","blocks.breakdown.sex":"\u043F\u043E \u043F\u043E\u043B\u0443","blocks.breakdown.age":"\u043F\u043E \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0443","blocks.breakdown.urban_rural":"\u0433\u043E\u0440\u043E\u0434 \u0438 \u0441\u0435\u043B\u043E","blocks.breakdown.activity":"\u043F\u043E \u0432\u0438\u0434\u0430\u043C \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438","blocks.breakdown.item":"\u043F\u043E \u0442\u043E\u0432\u0430\u0440\u0430\u043C","blocks.substituted":"\u043F\u043E\u0434\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430","blocks.alternatives":"\u041F\u043E\u0445\u043E\u0436\u0438\u0435 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","blocks.table":"\u0422\u0430\u0431\u043B\u0438\u0446\u0430 \u0434\u0430\u043D\u043D\u044B\u0445","blocks.tableSearch":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0442\u0430\u0431\u043B\u0438\u0446\u0435\u2026","blocks.tableEmpty":"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445","blocks.page":"{a} \u0438\u0437 {b}","blocks.prevPage":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","blocks.nextPage":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","blocks.truncated":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u044B \u043F\u0435\u0440\u0432\u044B\u0435 {n} \u0441\u0442\u0440\u043E\u043A \u2014 \u043F\u043E\u043B\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0432 Excel","blocks.catalogMore":"\u2026\u0438 \u0435\u0449\u0451 {count} \u0432 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0435","blocks.catalogExamples":"\u041C\u043E\u0436\u043D\u043E \u0441\u043F\u0440\u043E\u0441\u0438\u0442\u044C","blocks.options":"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B \u043E\u0442\u0432\u0435\u0442\u0430","blocks.default":"\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","blocks.freeTextHint":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0438\u043B\u0438 \u043D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043E\u0439 \u0432 \u043F\u043E\u043B\u0435 \u043D\u0438\u0436\u0435","blocks.findOption":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435\u2026","blocks.chosen":"\u0412\u044B\u0431\u0440\u0430\u043D\u043E: {label}","blocks.continue":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","blocks.cancelPlan":"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C","blocks.expired":"\u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u043B\u043E","blocks.askAgain":"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441 \u0437\u0430\u043D\u043E\u0432\u043E","blocks.dashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","blocks.hideDashboard":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0430\u0448\u0431\u043E\u0440\u0434","chart.kinds":"\u0412\u0438\u0434 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u044B","chart.kind.bar":"\u041F\u043E\u043B\u043E\u0441\u044B","chart.kind.column":"\u0421\u0442\u043E\u043B\u0431\u0446\u044B","chart.kind.pie":"\u041A\u0440\u0443\u0433\u043E\u0432\u0430\u044F","chart.kind.line":"\u041B\u0438\u043D\u0438\u0438","chart.kind.area":"\u041E\u0431\u043B\u0430\u0441\u0442\u0438","chart.national":"\u0420\u041A {value}","chart.top":"\u0422\u043E\u043F-{n} \u0438\u0437 {total} \u2014 \u0432\u0441\u0451 \u0432 \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0435","chart.label":"{title}, {period}","files.list":"\u0424\u0430\u0439\u043B\u044B","files.report":"\u0413\u043E\u0442\u043E\u0432\u044B\u0439 \u043E\u0442\u0447\u0451\u0442","files.document":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","files.presentation":"\u041F\u0440\u0435\u0437\u0435\u043D\u0442\u0430\u0446\u0438\u044F","files.excel":"\u0414\u0430\u043D\u043D\u044B\u0435 Excel","files.csv":"\u0414\u0430\u043D\u043D\u044B\u0435 CSV","files.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0444\u0430\u0439\u043B","report.create":"\u0421\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442","report.pending":"\u0424\u0430\u0439\u043B\u044B \u043E\u0442\u0447\u0451\u0442\u0430 \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u044E\u0442\u0441\u044F\u2026","report.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B\u044B \u043E\u0442\u0447\u0451\u0442\u0430","report.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","report.expired":"\u0421\u0440\u043E\u043A \u0444\u0430\u0439\u043B\u043E\u0432 \u0438\u0441\u0442\u0451\u043A","dashboard.eyebrow":"\u0410\u043D\u0430\u043B\u0438\u0442\u0438\u043A\u0430","dashboard.label":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.sections":"\u0420\u0430\u0437\u0434\u0435\u043B\u044B \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0430","dashboard.regions":"\u0440\u0435\u0433\u0438\u043E\u043D\u043E\u0432: {n}","dashboard.items":"\u043F\u043E\u0437\u0438\u0446\u0438\u0439: {n}","dashboard.openSource":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0435","dashboard.methodology":"\u041C\u0435\u0442\u043E\u0434\u043E\u043B\u043E\u0433\u0438\u044F","dashboard.fullscreen":"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D","dashboard.collapse":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C","dashboard.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","dashboard.chatTab":"\u0427\u0430\u0442","dashboard.dashboardTab":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.view":"\u0427\u0430\u0442 \u0438\u043B\u0438 \u0434\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.region":"\u0420\u0435\u0433\u0438\u043E\u043D","dashboard.allRegions":"\u0412\u0441\u0435 \u0440\u0435\u0433\u0438\u043E\u043D\u044B","dashboard.period":"\u041F\u0435\u0440\u0438\u043E\u0434","dashboard.mode.label":"\u0420\u0435\u0436\u0438\u043C","dashboard.mode.value":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435","dashboard.mode.deviation":"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0435","dashboard.mode.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","dashboard.base.label":"\u0411\u0430\u0437\u0430 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F","dashboard.base.median":"\u043E\u0442 \u043C\u0435\u0434\u0438\u0430\u043D\u044B","dashboard.base.national":"\u043E\u0442 \u0420\u041A","dashboard.noPrevious":"\u041D\u0435\u0442 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430","dashboard.noNational":"\u041D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u0441\u0442\u0440\u0430\u043D\u0435 \u0437\u0430 \u044D\u0442\u043E\u0442 \u043F\u0435\u0440\u0438\u043E\u0434","dashboard.fewRegions":"\u041D\u0443\u0436\u043D\u043E \u0445\u043E\u0442\u044F \u0431\u044B \u0434\u0432\u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F","dashboard.ranking":"\u0420\u0435\u0439\u0442\u0438\u043D\u0433","dashboard.trend":"\u0414\u0438\u043D\u0430\u043C\u0438\u043A\u0430","dashboard.findings":"\u0412\u044B\u0432\u043E\u0434\u044B","dashboard.data":"\u0414\u0430\u043D\u043D\u044B\u0435","dashboard.kpis":"\u041A\u043B\u044E\u0447\u0435\u0432\u044B\u0435 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","dashboard.table.rank":"\u2116","dashboard.table.position":"\u041F\u043E\u0437\u0438\u0446\u0438\u044F","dashboard.table.value":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435, {unit}","dashboard.table.share":"\u0414\u043E\u043B\u044F, %","dashboard.table.deviation":"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0435, {unit}","dashboard.table.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435, {unit}","dashboard.source":"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: {name}","dashboard.points":"\u043F.\u043F.","dashboard.kpi.national":"\u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","dashboard.kpi.max":"\u041C\u0430\u043A\u0441\u0438\u043C\u0443\u043C","dashboard.kpi.min":"\u041C\u0438\u043D\u0438\u043C\u0443\u043C","dashboard.kpi.median":"\u041C\u0435\u0434\u0438\u0430\u043D\u0430 \u043F\u043E \u0440\u0435\u0433\u0438\u043E\u043D\u0430\u043C","dashboard.kpi.spread":"\u0420\u0430\u0437\u043C\u0430\u0445","dashboard.kpi.gap":"\u0420\u0430\u0437\u0440\u044B\u0432","dashboard.kpi.last":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","dashboard.kpi.first":"\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430","dashboard.kpi.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","dashboard.kpi.place":"\u041C\u0435\u0441\u0442\u043E","dashboard.kpi.placeOf":"{n} \u0438\u0437 {m}","dashboard.kpi.deviation":"\u041E\u0442\u043A\u043B. \u043E\u0442 \u043C\u0435\u0434\u0438\u0430\u043D\u044B","dashboard.kpi.previous":"\u041A \u043F\u0440\u043E\u0448\u043B\u043E\u043C\u0443 \u043F\u0435\u0440\u0438\u043E\u0434\u0443","steps.counter":"{done} \u0438\u0437 {total}","feedback.reasonsLabel":"\u0427\u0442\u043E \u043D\u0435 \u0442\u0430\u043A?","feedback.reason.wrong_number":"\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0446\u0438\u0444\u0440\u0430","feedback.reason.wrong_indicator":"\u041D\u0435 \u0442\u043E\u0442 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044C","feedback.reason.wrong_territory":"\u041D\u0435 \u0442\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F","feedback.reason.wrong_period":"\u041D\u0435 \u0442\u043E\u0442 \u043F\u0435\u0440\u0438\u043E\u0434","feedback.reason.not_answered":"\u041D\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u0430 \u043D\u0430 \u0432\u043E\u043F\u0440\u043E\u0441","feedback.reason.language":"\u042F\u0437\u044B\u043A \u043E\u0442\u0432\u0435\u0442\u0430","feedback.reason.slow":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043E\u043B\u0433\u043E","feedback.reason.other":"\u0414\u0440\u0443\u0433\u043E\u0435","intro.title":"\u041F\u0435\u0440\u0435\u0434 \u043D\u0430\u0447\u0430\u043B\u043E\u043C","intro.continue":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: {name}","shell.siteBlocked":"\u0427\u0430\u0442 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043D\u0430 \u044D\u0442\u043E\u043C \u0441\u0430\u0439\u0442\u0435","shell.siteBlockedHint":"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u0441\u0430\u0439\u0442\u0430 \u0435\u0449\u0451 \u043D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u043B AI-Dana \u0438\u043B\u0438 \u0434\u043E\u0441\u0442\u0443\u043F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D.","modes.none":"\u0420\u0435\u0436\u0438\u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.","attachment.sending":"\u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442\u0441\u044F","agent.steps":"\u0428\u0430\u0433\u0438","agent.unfinished":"\u043D\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D",rateGroup:"\u041E\u0446\u0435\u043D\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430","blocks.catalogTitle":"\u041A\u0430\u0442\u0430\u043B\u043E\u0433: {topic}","blocks.catalogSections":"\u0420\u0430\u0437\u0434\u0435\u043B\u044B","blocks.catalogIndicators":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","blocks.catalogSendHint":"\u0412\u043E\u043F\u0440\u043E\u0441 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u0441\u044F \u0441\u0440\u0430\u0437\u0443 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0431\u043E\u0440\u0430","blocks.clarification":"\u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435","files.expired":"\u0421\u0440\u043E\u043A \u0444\u0430\u0439\u043B\u0430 \u0438\u0441\u0442\u0451\u043A","files.notFound":"\u0424\u0430\u0439\u043B \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","files.unavailable":"\u0424\u0430\u0439\u043B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D"},S0={title:"AI-Dana",open:"\u0427\u0430\u0442\u0442\u044B \u0430\u0448\u0443",unreadAnswers:"\u0436\u0430\u04A3\u0430 \u0436\u0430\u0443\u0430\u043F\u0442\u0430\u0440: {count}",ask:"\u0421\u04B1\u0440\u0430\u049B \u049B\u043E\u044E",close:"\u0416\u0430\u0431\u0443",history:"\u0422\u0430\u0440\u0438\u0445",closeHistory:"\u0422\u0430\u0440\u0438\u0445\u0442\u044B \u0436\u0430\u0441\u044B\u0440\u0443",newChat:"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442",untitled:"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442",historyEmpty:"\u04D8\u0437\u0456\u0440\u0433\u0435 \u0447\u0430\u0442\u0442\u0430\u0440 \u0436\u043E\u049B",historyError:"\u0422\u0430\u0440\u0438\u0445\u0442\u044B \u0436\u04AF\u043A\u0442\u0435\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",delete:"\u0416\u043E\u044E",deleteConfirm:"\u0427\u0430\u0442\u0442\u044B \u0436\u043E\u044E \u043A\u0435\u0440\u0435\u043A \u043F\u0435?",deleteYes:"\u0416\u043E\u044E",deleteNo:"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443",deleteError:"\u0427\u0430\u0442\u0442\u044B \u0436\u043E\u044E \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",modeLabel:"\u0416\u0430\u0443\u0430\u043F \u0440\u0435\u0436\u0438\u043C\u0456","health.idle":"\u0411\u043E\u0441","health.busy":"\u0411\u043E\u0441 \u0435\u043C\u0435\u0441","health.unavailable":"\u049A\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437",placeholder:"\u041A\u0435\u0437 \u043A\u0435\u043B\u0433\u0435\u043D \u043D\u04D9\u0440\u0441\u0435\u043D\u0456 \u0441\u04B1\u0440\u0430\u04A3\u044B\u0437",inputLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430",send:"\u0416\u0456\u0431\u0435\u0440\u0443",stop:"\u0422\u043E\u049B\u0442\u0430\u0442\u0443",attach:"\u0424\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443",attachOne:"\u0422\u0435\u043A \u0431\u0456\u0440 \u0444\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B",attachHint:"\u0411\u0456\u0440 \u0444\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B: XLS, XLSX, CSV, TXT \u043D\u0435\u043C\u0435\u0441\u0435 MD, {size} \u041C\u0411-\u049B\u0430 \u0434\u0435\u0439\u0456\u043D",disclaimer:"\u0416\u0418 \u049B\u0430\u0442\u0435\u043B\u0435\u0441\u0443\u0456 \u043C\u04AF\u043C\u043A\u0456\u043D \u2014 \u043C\u0430\u04A3\u044B\u0437\u0434\u044B \u0430\u049B\u043F\u0430\u0440\u0430\u0442\u0442\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u04A3\u0456\u0437",removeFile:"\u0424\u0430\u0439\u043B\u0434\u044B \u0436\u043E\u044E",counter:"{count} / {max}",counterLimit:"\u0422\u0430\u04A3\u0431\u0430 \u0448\u0435\u0433\u0456\u043D\u0435 \u0436\u0435\u0442\u0442\u0456\u04A3\u0456\u0437",counterOver:"\u0422\u0430\u04A3\u0431\u0430 \u0448\u0435\u0433\u0456\u043D\u0435\u043D \u0430\u0441\u044B\u043F \u043A\u0435\u0442\u0442\u0456\u04A3\u0456\u0437",fileTooLarge:"\xAB{name}\xBB \u0444\u0430\u0439\u043B\u044B {size} \u041C\u0411-\u0442\u0430\u043D \u04AF\u043B\u043A\u0435\u043D",fileType:"\xAB{name}\xBB \u0444\u0430\u0439\u043B\u044B \u0436\u0430\u0440\u0430\u043C\u0430\u0439\u0434\u044B. XLS, XLSX, CSV, TXT \u043D\u0435\u043C\u0435\u0441\u0435 MD \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B",modeUnavailable:"\u0420\u0435\u0436\u0438\u043C \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437, \u0431\u0430\u0441\u049B\u0430\u0441\u044B\u043D \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437",greeting:"\u049A\u0430\u043B\u0430\u0439 \u043A\u04E9\u043C\u0435\u043A\u0442\u0435\u0441\u0435 \u0430\u043B\u0430\u043C\u044B\u043D?",loading:"\u0416\u04AF\u043A\u0442\u0435\u043B\u0443\u0434\u0435\u2026",configError:"\u0427\u0430\u0442 \u0443\u0430\u049B\u044B\u0442\u0448\u0430 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437",overloaded:"\u049A\u044B\u0437\u043C\u0435\u0442 \u049B\u0430\u0437\u0456\u0440 \u0448\u0430\u043C\u0430\u0434\u0430\u043D \u0442\u044B\u0441 \u0436\u04AF\u043A\u0442\u0435\u043B\u0433\u0435\u043D. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",retry:"\u049A\u0430\u0439\u0442\u0430\u043B\u0430\u0443",dismiss:"\u0416\u0430\u0441\u044B\u0440\u0443",scrollDown:"\u0422\u04E9\u043C\u0435\u043D\u0433\u0435 \u0430\u0439\u043D\u0430\u043B\u0434\u044B\u0440\u0443",settings:"\u0411\u0430\u043F\u0442\u0430\u0443\u043B\u0430\u0440","settings.language":"\u0422\u0456\u043B","settings.theme":"\u0422\u0430\u049B\u044B\u0440\u044B\u043F","settings.themeLight":"\u0410\u0448\u044B\u049B","settings.themeDark":"\u049A\u0430\u0440\u0430\u04A3\u0493\u044B","settings.themeAuto":"\u0416\u04AF\u0439\u0435\u0434\u0435\u0433\u0456\u0434\u0435\u0439","settings.model":"\u04D8\u0434\u0435\u043F\u043A\u0456 \u043C\u043E\u0434\u0435\u043B\u044C","settings.modelHint":"\u04D8\u0440 \u0436\u0430\u04A3\u0430 \u0447\u0430\u0442 \u043E\u0441\u044B\u0434\u0430\u043D \u0431\u0430\u0441\u0442\u0430\u043B\u0430\u0434\u044B","settings.shortcuts":"\u0416\u044B\u043B\u0434\u0430\u043C \u043F\u0435\u0440\u043D\u0435\u043B\u0435\u0440","shortcut.search":"\u0427\u0430\u0442\u0442\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443","shortcut.newChat":"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442","shortcut.sidebar":"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u0443 \u043D\u0435 \u0436\u0430\u0441\u044B\u0440\u0443","shortcut.close":"\u0422\u0435\u0440\u0435\u0437\u0435\u043D\u0456 \u0436\u0430\u0431\u0443",search:"\u0427\u0430\u0442\u0442\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443",searchEmpty:"\u0415\u0448\u0442\u0435\u04A3\u0435 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B",collapseSidebar:"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u0436\u0430\u0441\u044B\u0440\u0443",expandSidebar:"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u0443",expand:"\u0411\u04AF\u043A\u0456\u043B \u0431\u0435\u0442\u043A\u0435 \u0436\u0430\u044E",shrink:"\u041A\u0456\u0448\u0456\u0440\u0435\u0439\u0442\u0443",examples:"\u0421\u04B1\u0440\u0430\u0443 \u043C\u044B\u0441\u0430\u043B\u0434\u0430\u0440\u044B","examples.whatCanDo":"\u041D\u0435 \u0456\u0441\u0442\u0435\u0439 \u0430\u043B\u0430\u0441\u044B\u0437","group.pinned":"\u0411\u0435\u043A\u0456\u0442\u0456\u043B\u0433\u0435\u043D\u0434\u0435\u0440","group.today":"\u0411\u04AF\u0433\u0456\u043D","group.yesterday":"\u041A\u0435\u0448\u0435","group.week":"\u0421\u043E\u04A3\u0493\u044B 7 \u043A\u04AF\u043D","group.earlier":"\u0411\u04B1\u0440\u044B\u043D\u044B\u0440\u0430\u049B","errors.thread_busy":"AI-Dana \u0431\u04B1\u043B \u0447\u0430\u0442\u0442\u0430 \u04D9\u043B\u0456 \u0436\u0430\u0443\u0430\u043F \u0431\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440. \u0416\u0430\u0443\u0430\u043F\u0442\u044B \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u04A3\u044B\u0437.","errors.mode_overloaded":"AI-Dana \u049B\u0430\u0437\u0456\u0440 \u0448\u0430\u043C\u0430\u0434\u0430\u043D \u0442\u044B\u0441 \u0436\u04AF\u043A\u0442\u0435\u043B\u0433\u0435\u043D, \u0441\u04D9\u043B \u043A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437","errors.daily_limit":"\u0411\u04AF\u0433\u0456\u043D\u0433\u0456 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B","errors.rate_limit":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440 \u0442\u044B\u043C \u0436\u0438\u0456 \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0434\u0456. \u0411\u0456\u0440 \u043C\u0438\u043D\u0443\u0442 \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437.","errors.ip_limit":"\u0411\u04AF\u0433\u0456\u043D \u0441\u0456\u0437\u0434\u0456\u04A3 \u0436\u0435\u043B\u0456\u04A3\u0456\u0437\u0434\u0435\u043D \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440 \u0442\u044B\u043C \u043A\u04E9\u043F \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0434\u0456. \u0415\u0440\u0442\u0435\u04A3 \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.","errors.concurrency_limit":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u0436\u0430\u0443\u0430\u043F\u0442\u044B\u04A3 \u0430\u044F\u049B\u0442\u0430\u043B\u0443\u044B\u043D \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437","errors.file_too_large":"\u0424\u0430\u0439\u043B \u0442\u044B\u043C \u04AF\u043B\u043A\u0435\u043D","errors.file_not_allowed":"\u0411\u04B1\u043B \u0444\u0430\u0439\u043B\u0434\u044B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u043C\u0430\u0439\u0434\u044B. XLS, XLSX, CSV, TXT \u0436\u04D9\u043D\u0435 MD \u0436\u0430\u0440\u0430\u0439\u0434\u044B","errors.invalid_query":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u0431\u043E\u0441 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u044B\u043C \u04B1\u0437\u044B\u043D","errors.invalid_parent":"\u0411\u04B1\u043B \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u0435\u043D\u0434\u0456 \u04E9\u0437\u0433\u0435\u0440\u0442\u0443\u0433\u0435 \u0431\u043E\u043B\u043C\u0430\u0439\u0434\u044B","errors.mode_not_found":"\u0422\u0430\u04A3\u0434\u0430\u043B\u0493\u0430\u043D \u0440\u0435\u0436\u0438\u043C \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437. \u0411\u0430\u0441\u049B\u0430 \u0440\u0435\u0436\u0438\u043C\u0434\u0456 \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437.","errors.thread_not_found":"\u0427\u0430\u0442 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B","errors.interrupted":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0437\u0456\u043B\u0434\u0456","errors.code":"\u0416\u0430\u0443\u0430\u043F \u0430\u043B\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B (\u043A\u043E\u0434 {code}).","errors.generic":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u0436\u0456\u0431\u0435\u0440\u0443 \u043A\u0435\u0437\u0456\u043D\u0434\u0435 \u049B\u0430\u0442\u0435 \u043E\u0440\u044B\u043D \u0430\u043B\u0434\u044B.","errors.network":"\u0421\u0435\u0440\u0432\u0435\u0440\u043C\u0435\u043D \u0431\u0430\u0439\u043B\u0430\u043D\u044B\u0441 \u0436\u043E\u049B. \u049A\u043E\u0441\u044B\u043B\u044B\u043C\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u04A3\u0456\u0437.","agent.thinking":"\u041E\u0439\u043B\u0430\u043D\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","agent.done":"\u0414\u0430\u0439\u044B\u043D","agent.stopped":"\u0422\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0434\u044B","agent.stopping":"\u0422\u043E\u049B\u0442\u0430\u0442\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","agent.failed":"\u0430\u043B\u043C\u0430\u0434\u044B","agent.interrupted":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0437\u0456\u043B\u0434\u0456","agent.answerStopped":"\u0416\u0430\u0443\u0430\u043F \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0434\u044B. \u049A\u0430\u0436\u0435\u0442 \u0431\u043E\u043B\u0441\u0430, \u0441\u04B1\u0440\u0430\u049B\u0442\u044B \u049B\u0430\u0439\u0442\u0430 \u049B\u043E\u0439\u044B\u04A3\u044B\u0437","agent.seconds":"{value} \u0441","agent.attempt":"{count}-\u04D9\u0440\u0435\u043A\u0435\u0442","agent.showSteps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u043A\u04E9\u0440\u0441\u0435\u0442\u0443","agent.hideSteps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u0436\u0430\u0441\u044B\u0440\u0443","steps.router":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.context_builder":"\u049A\u0430\u0436\u0435\u0442 \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.sql_architect":"\u0415\u0441\u0435\u043F\u0442\u0435\u0443\u0434\u0456 \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.executor":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.responder":"\u0416\u0430\u0443\u0430\u043F \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.rag":"\u0410\u043D\u044B\u049B\u0442\u0430\u043C\u0430\u043B\u044B\u049B \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0434\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.sql":"\u0410\u0448\u044B\u049B \u0434\u0435\u0440\u0435\u043A\u043A\u04E9\u0437\u0434\u0435\u0440\u0434\u0435\u043D \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.document":"\u049A\u04B1\u0436\u0430\u0442\u0442\u044B \u043E\u049B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.understand":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.search_law":"\u0417\u0430\u04A3\u043D\u0430\u043C\u0430\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.run_sql":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.run_query":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.lookup_taxpayer":"\u0421\u0430\u043B\u044B\u049B \u0442\u04E9\u043B\u0435\u0443\u0448\u0456\u043D\u0456 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.find_taxpayer":"\u041A\u043E\u043C\u043F\u0430\u043D\u0438\u044F\u043D\u044B \u0430\u0442\u0430\u0443\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.ask_clarification":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u043D\u0430\u049B\u0442\u044B\u043B\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.answer":"\u0416\u0430\u0443\u0430\u043F \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.unknown":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0441\u0442\u0456\u043D\u0434\u0435 \u0436\u04B1\u043C\u044B\u0441 \u0456\u0441\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D",copy:"\u041A\u04E9\u0448\u0456\u0440\u0443",copied:"\u041A\u04E9\u0448\u0456\u0440\u0456\u043B\u0434\u0456",download:"\u0416\u04AF\u043A\u0442\u0435\u0443",regenerate:"\u049A\u0430\u0439\u0442\u0430 \u0436\u0430\u0443\u0430\u043F \u0431\u0435\u0440\u0443",edit:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u04E9\u0437\u0433\u0435\u0440\u0442\u0443",editLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043C\u04D9\u0442\u0456\u043D\u0456",cancel:"\u0411\u043E\u043B\u0434\u044B\u0440\u043C\u0430\u0443",actionsLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u04D9\u0440\u0435\u043A\u0435\u0442\u0442\u0435\u0440\u0456",rate:"5-\u0442\u0435\u043D {count} \u0434\u0435\u043F \u0431\u0430\u0493\u0430\u043B\u0430\u0443",ratingError:"\u0411\u0430\u0493\u0430\u043D\u044B \u0441\u0430\u049B\u0442\u0430\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",feedbackOpen:"\u041F\u0456\u043A\u0456\u0440 \u049B\u0430\u043B\u0434\u044B\u0440\u0443",feedbackEdit:"\u041F\u0456\u043A\u0456\u0440\u0434\u0456 \u04E9\u0437\u0433\u0435\u0440\u0442\u0443",feedbackLabel:"\u0416\u0430\u0443\u0430\u043F \u0442\u0443\u0440\u0430\u043B\u044B \u043F\u0456\u043A\u0456\u0440",feedbackPlaceholder:"\u0416\u0430\u0443\u0430\u043F\u0442\u044B\u04A3 \u049B\u0430\u0439 \u0436\u0435\u0440\u0456 \u0434\u04B1\u0440\u044B\u0441 \u0435\u043C\u0435\u0441?",save:"\u0421\u0430\u049B\u0442\u0430\u0443","branch.label":"\u041D\u04B1\u0441\u049B\u0430\u043B\u0430\u0440","branch.prev":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043D\u04B1\u0441\u049B\u0430","branch.next":"\u041A\u0435\u043B\u0435\u0441\u0456 \u043D\u04B1\u0441\u049B\u0430","branch.error":"\u041D\u04B1\u0441\u049B\u0430\u043D\u044B \u0430\u0443\u044B\u0441\u0442\u044B\u0440\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","limit.remaining":"\u0411\u04AF\u0433\u0456\u043D {limit} \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B\u04A3 {count} \u049B\u0430\u043B\u0434\u044B","limit.exhausted":"\u0411\u04AF\u0433\u0456\u043D\u0433\u0456 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B","limit.until":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B. \u0416\u0430\u04A3\u0430 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440\u0434\u044B {time} \u043A\u0435\u0439\u0456\u043D \u0436\u0456\u0431\u0435\u0440\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B.","blocks.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440","blocks.hideData":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0436\u0430\u0441\u044B\u0440\u0443","blocks.methodology":"\u04D8\u0434\u0456\u0441\u0442\u0435\u043C\u0435","blocks.passport":"\u041D\u0435 \u0435\u0441\u0435\u043F\u0442\u0435\u043B\u0434\u0456","blocks.indicator":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448","blocks.territory":"\u0410\u0443\u043C\u0430\u049B","blocks.period":"\u041A\u0435\u0437\u0435\u04A3","blocks.breakdown":"\u049A\u0438\u043C\u0430","blocks.breakdown.sex":"\u0436\u044B\u043D\u044B\u0441\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.age":"\u0436\u0430\u0441\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.urban_rural":"\u049B\u0430\u043B\u0430 \u0436\u04D9\u043D\u0435 \u0430\u0443\u044B\u043B","blocks.breakdown.activity":"\u049B\u044B\u0437\u043C\u0435\u0442 \u0442\u04AF\u0440\u043B\u0435\u0440\u0456 \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.item":"\u0442\u0430\u0443\u0430\u0440\u043B\u0430\u0440 \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.substituted":"\u0430\u043B\u043C\u0430\u0441\u0442\u044B\u0440\u044B\u043B\u0434\u044B","blocks.alternatives":"\u04B0\u049B\u0441\u0430\u0441 \u043A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","blocks.table":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u043A\u0435\u0441\u0442\u0435\u0441\u0456","blocks.tableSearch":"\u041A\u0435\u0441\u0442\u0435\u0434\u0435\u043D \u0456\u0437\u0434\u0435\u0443\u2026","blocks.tableEmpty":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u0436\u043E\u049B","blocks.page":"{b} \u0456\u0448\u0456\u043D\u0435\u043D {a}","blocks.prevPage":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u0431\u0435\u0442","blocks.nextPage":"\u041A\u0435\u043B\u0435\u0441\u0456 \u0431\u0435\u0442","blocks.truncated":"\u0410\u043B\u0493\u0430\u0448\u049B\u044B {n} \u0436\u043E\u043B \u043A\u04E9\u0440\u0441\u0435\u0442\u0456\u043B\u0434\u0456 \u2014 \u0442\u043E\u043B\u044B\u049B \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440 Excel-\u0434\u0435","blocks.catalogMore":"\u2026\u0436\u04D9\u043D\u0435 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0442\u0430 \u0442\u0430\u0493\u044B {count}","blocks.catalogExamples":"\u0421\u04B1\u0440\u0430\u0443\u0493\u0430 \u0431\u043E\u043B\u0430\u0434\u044B","blocks.options":"\u0416\u0430\u0443\u0430\u043F \u043D\u04B1\u0441\u049B\u0430\u043B\u0430\u0440\u044B","blocks.default":"\u04D9\u0434\u0435\u043F\u043A\u0456","blocks.freeTextHint":"\u041D\u04B1\u0441\u049B\u0430\u043D\u044B \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u04E9\u0440\u0456\u0441\u043A\u0435 \u04E9\u0437\u0456\u04A3\u0456\u0437\u0434\u0456\u043A\u0456\u043D \u0436\u0430\u0437\u044B\u04A3\u044B\u0437","blocks.findOption":"\u0422\u0456\u0437\u0456\u043C\u043D\u0435\u043D \u0456\u0437\u0434\u0435\u0443\u2026","blocks.chosen":"\u0422\u0430\u04A3\u0434\u0430\u043B\u0434\u044B: {label}","blocks.continue":"\u0416\u0430\u043B\u0493\u0430\u0441\u0442\u044B\u0440\u0443","blocks.cancelPlan":"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443","blocks.expired":"\u041D\u0430\u049B\u0442\u044B\u043B\u0430\u0443\u0434\u044B\u04A3 \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","blocks.askAgain":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u049B\u0430\u0439\u0442\u0430 \u049B\u043E\u044E","blocks.dashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u044B \u0430\u0448\u0443","blocks.hideDashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u044B \u0436\u0430\u0441\u044B\u0440\u0443","chart.kinds":"\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0442\u04AF\u0440\u0456","chart.kind.bar":"\u0416\u043E\u043B\u0430\u049B\u0442\u0430\u0440","chart.kind.column":"\u0411\u0430\u0493\u0430\u043D\u0434\u0430\u0440","chart.kind.pie":"\u0414\u04E9\u04A3\u0433\u0435\u043B\u0435\u043A","chart.kind.line":"\u0421\u044B\u0437\u044B\u049B\u0442\u0430\u0440","chart.kind.area":"\u0410\u0439\u043C\u0430\u049B\u0442\u0430\u0440","chart.national":"\u049A\u0420 {value}","chart.top":"\u04AE\u0437\u0434\u0456\u043A {n}, \u0431\u0430\u0440\u043B\u044B\u0493\u044B {total} \u2014 \u0442\u043E\u043B\u044B\u0493\u044B \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u0430","chart.label":"{title}, {period}","files.list":"\u0424\u0430\u0439\u043B\u0434\u0430\u0440","files.report":"\u0414\u0430\u0439\u044B\u043D \u0435\u0441\u0435\u043F","files.document":"\u04E8\u04A3\u0434\u0435\u043B\u0435\u0442\u0456\u043D \u049B\u04B1\u0436\u0430\u0442","files.presentation":"\u0422\u0430\u043D\u044B\u0441\u0442\u044B\u0440\u044B\u043B\u044B\u043C","files.excel":"Excel \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0456","files.csv":"CSV \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0456","files.failed":"\u0424\u0430\u0439\u043B\u0434\u044B \u0436\u04AF\u043A\u0442\u0435\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","report.create":"\u0415\u0441\u0435\u043F \u049B\u04B1\u0440\u0443","report.pending":"\u0415\u0441\u0435\u043F \u0444\u0430\u0439\u043B\u0434\u0430\u0440\u044B \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043B\u0443\u0434\u0430\u2026","report.failed":"\u0415\u0441\u0435\u043F \u0444\u0430\u0439\u043B\u0434\u0430\u0440\u044B\u043D \u049B\u04B1\u0440\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","report.retry":"\u049A\u0430\u0439\u0442\u0430\u043B\u0430\u0443","report.expired":"\u0424\u0430\u0439\u043B\u0434\u0430\u0440\u0434\u044B\u04A3 \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","dashboard.eyebrow":"\u0422\u0430\u043B\u0434\u0430\u0443","dashboard.label":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0442\u0430\u049B\u0442\u0430\u0441\u044B","dashboard.sections":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0431\u04E9\u043B\u0456\u043C\u0434\u0435\u0440\u0456","dashboard.regions":"\u04E9\u04A3\u0456\u0440\u043B\u0435\u0440: {n}","dashboard.items":"\u043F\u043E\u0437\u0438\u0446\u0438\u044F\u043B\u0430\u0440: {n}","dashboard.openSource":"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437\u0434\u0435 \u0430\u0448\u0443","dashboard.methodology":"\u04D8\u0434\u0456\u0441\u0442\u0435\u043C\u0435","dashboard.fullscreen":"\u0422\u043E\u043B\u044B\u049B \u044D\u043A\u0440\u0430\u043D","dashboard.collapse":"\u041A\u0456\u0448\u0456\u0440\u0435\u0439\u0442\u0443","dashboard.close":"\u0416\u0430\u0431\u0443","dashboard.chatTab":"\u0421\u04B1\u0445\u0431\u0430\u0442","dashboard.dashboardTab":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0442\u0430\u049B\u0442\u0430\u0441\u044B","dashboard.view":"\u0421\u04B1\u0445\u0431\u0430\u0442 \u043D\u0435\u043C\u0435\u0441\u0435 \u0434\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.region":"\u04E8\u04A3\u0456\u0440","dashboard.allRegions":"\u0411\u0430\u0440\u043B\u044B\u049B \u04E9\u04A3\u0456\u0440\u043B\u0435\u0440","dashboard.period":"\u041A\u0435\u0437\u0435\u04A3","dashboard.mode.label":"\u041A\u04E9\u0440\u0456\u043D\u0456\u0441","dashboard.mode.value":"\u041C\u04D9\u043D","dashboard.mode.deviation":"\u0410\u0443\u044B\u0442\u049B\u0443","dashboard.mode.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441","dashboard.base.label":"\u0410\u0443\u044B\u0442\u049B\u0443 \u0431\u0430\u0437\u0430\u0441\u044B","dashboard.base.median":"\u043C\u0435\u0434\u0438\u0430\u043D\u0430\u0434\u0430\u043D","dashboard.base.national":"\u049A\u0420-\u0434\u0430\u043D","dashboard.noPrevious":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043A\u0435\u0437\u0435\u04A3 \u0436\u043E\u049B","dashboard.noNational":"\u0411\u04B1\u043B \u043A\u0435\u0437\u0435\u04A3\u0433\u0435 \u0435\u043B \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u043C\u04D9\u043D \u0436\u043E\u049B","dashboard.fewRegions":"\u041A\u0435\u043C\u0456\u043D\u0434\u0435 \u0435\u043A\u0456 \u043C\u04D9\u043D \u049B\u0430\u0436\u0435\u0442","dashboard.ranking":"\u041E\u0440\u044B\u043D\u0434\u0430\u0440 \u0440\u0435\u0439\u0442\u0438\u043D\u0433\u0456","dashboard.trend":"\u0421\u0435\u0440\u043F\u0456\u043D","dashboard.findings":"\u049A\u043E\u0440\u044B\u0442\u044B\u043D\u0434\u044B\u043B\u0430\u0440","dashboard.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440","dashboard.kpis":"\u041D\u0435\u0433\u0456\u0437\u0433\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","dashboard.table.rank":"\u2116","dashboard.table.position":"\u0410\u0442\u0430\u0443\u044B","dashboard.table.value":"\u041C\u04D9\u043D\u0456, {unit}","dashboard.table.share":"\u04AE\u043B\u0435\u0441\u0456, %","dashboard.table.deviation":"\u0410\u0443\u044B\u0442\u049B\u0443, {unit}","dashboard.table.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441, {unit}","dashboard.source":"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437: {name}","dashboard.points":"\u043F.\u0442.","dashboard.kpi.national":"\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","dashboard.kpi.max":"\u0415\u04A3 \u0436\u043E\u0493\u0430\u0440\u044B","dashboard.kpi.min":"\u0415\u04A3 \u0442\u04E9\u043C\u0435\u043D","dashboard.kpi.median":"\u04E8\u04A3\u0456\u0440\u043B\u0435\u0440 \u043C\u0435\u0434\u0438\u0430\u043D\u0430\u0441\u044B","dashboard.kpi.spread":"\u049A\u04B1\u043B\u0430\u0448","dashboard.kpi.gap":"\u0410\u043B\u0448\u0430\u049B\u0442\u044B\u049B","dashboard.kpi.last":"\u0421\u043E\u04A3\u0493\u044B \u043C\u04D9\u043D","dashboard.kpi.first":"\u041A\u0435\u0437\u0435\u04A3 \u0431\u0430\u0441\u044B","dashboard.kpi.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441","dashboard.kpi.place":"\u041E\u0440\u044B\u043D","dashboard.kpi.placeOf":"{m} \u0456\u0448\u0456\u043D\u0435\u043D {n}","dashboard.kpi.deviation":"\u041C\u0435\u0434\u0438\u0430\u043D\u0430\u0434\u0430\u043D \u0430\u0443\u044B\u0442\u049B\u0443","dashboard.kpi.previous":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043A\u0435\u0437\u0435\u04A3\u0433\u0435","steps.counter":"{total} \u0456\u0448\u0456\u043D\u0435\u043D {done}","feedback.reasonsLabel":"\u041D\u0435 \u049B\u0430\u0442\u0435 \u0431\u043E\u043B\u0434\u044B?","feedback.reason.wrong_number":"\u0421\u0430\u043D \u049B\u0430\u0442\u0435","feedback.reason.wrong_indicator":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448 \u0431\u0430\u0441\u049B\u0430","feedback.reason.wrong_territory":"\u0410\u0443\u043C\u0430\u049B \u0431\u0430\u0441\u049B\u0430","feedback.reason.wrong_period":"\u041A\u0435\u0437\u0435\u04A3 \u0431\u0430\u0441\u049B\u0430","feedback.reason.not_answered":"\u0421\u04B1\u0440\u0430\u049B\u049B\u0430 \u0436\u0430\u0443\u0430\u043F \u0436\u043E\u049B","feedback.reason.language":"\u0416\u0430\u0443\u0430\u043F \u0442\u0456\u043B\u0456","feedback.reason.slow":"\u0422\u044B\u043C \u04B1\u0437\u0430\u049B","feedback.reason.other":"\u0411\u0430\u0441\u049B\u0430","intro.title":"\u0411\u0430\u0441\u0442\u0430\u043C\u0430\u0441 \u0431\u04B1\u0440\u044B\u043D","intro.continue":"\u0416\u0430\u043B\u0493\u0430\u0441\u0442\u044B\u0440\u0443",source:"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437: {name}","shell.siteBlocked":"\u0411\u04B1\u043B \u0441\u0430\u0439\u0442\u0442\u0430 \u0447\u0430\u0442 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437","shell.siteBlockedHint":"\u0421\u0430\u0439\u0442 \u0438\u0435\u0441\u0456 AI-Dana-\u043D\u044B \u04D9\u043B\u0456 \u049B\u043E\u0441\u043F\u0430\u0493\u0430\u043D \u043D\u0435\u043C\u0435\u0441\u0435 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0434\u0456\u043B\u0456\u043A \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0493\u0430\u043D.","modes.none":"\u0416\u0430\u0443\u0430\u043F \u0440\u0435\u0436\u0438\u043C\u0434\u0435\u0440\u0456 \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.","attachment.sending":"\u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0443\u0434\u0435","agent.steps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440","agent.unfinished":"\u0430\u044F\u049B\u0442\u0430\u043B\u043C\u0430\u0434\u044B",rateGroup:"\u0416\u0430\u0443\u0430\u043F\u0442\u044B \u0431\u0430\u0493\u0430\u043B\u0430\u0443","blocks.catalogTitle":"\u041A\u0430\u0442\u0430\u043B\u043E\u0433: {topic}","blocks.catalogSections":"\u0411\u04E9\u043B\u0456\u043C\u0434\u0435\u0440","blocks.catalogIndicators":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","blocks.catalogSendHint":"\u0421\u04B1\u0440\u0430\u049B \u0442\u0430\u04A3\u0434\u0430\u043B\u0493\u0430\u043D \u0431\u043E\u0439\u0434\u0430 \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0435\u0434\u0456","blocks.clarification":"\u041D\u0430\u049B\u0442\u044B\u043B\u0430\u0443","files.expired":"\u0424\u0430\u0439\u043B \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","files.notFound":"\u0424\u0430\u0439\u043B \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B","files.unavailable":"\u0424\u0430\u0439\u043B \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437"},j0={title:"AI-Dana",open:"Open chat",unreadAnswers:"new answers: {count}",ask:"Ask a question",close:"Close",history:"History",closeHistory:"Hide history",newChat:"New chat",untitled:"New chat",historyEmpty:"No chats yet",historyError:"Could not load the history",delete:"Delete",deleteConfirm:"Delete this chat?",deleteYes:"Delete",deleteNo:"Cancel",deleteError:"Could not delete the chat",modeLabel:"Answer mode","health.idle":"Available","health.busy":"Busy","health.unavailable":"Unavailable",placeholder:"Ask anything",inputLabel:"Message",send:"Send",stop:"Stop",attach:"Attach file",attachOne:"Only one file can be attached",attachHint:"You can attach one file: XLS, XLSX, CSV, TXT or MD, up to {size} MB",disclaimer:"AI can make mistakes \u2014 check important information",removeFile:"Remove file",counter:"{count} / {max}",counterLimit:"Character limit reached",counterOver:"Character limit exceeded",fileTooLarge:"File \u201C{name}\u201D is larger than {size} MB",fileType:"File \u201C{name}\u201D is not supported. You can attach XLS, XLSX, CSV, TXT or MD",modeUnavailable:"This mode is unavailable right now, choose another one",greeting:"How can I help?",loading:"Loading\u2026",configError:"The chat is temporarily unavailable",overloaded:"The service is overloaded right now. Please try again later.",retry:"Retry",dismiss:"Dismiss",scrollDown:"Scroll to bottom",settings:"Settings","settings.language":"Language","settings.theme":"Theme","settings.themeLight":"Light","settings.themeDark":"Dark","settings.themeAuto":"System","settings.model":"Default model","settings.modelHint":"Every new chat starts with it","settings.shortcuts":"Keyboard shortcuts","shortcut.search":"Search chats","shortcut.newChat":"New chat","shortcut.sidebar":"Show or hide the sidebar","shortcut.close":"Close the window",search:"Search chats",searchEmpty:"Nothing found",collapseSidebar:"Hide sidebar",expandSidebar:"Show sidebar",expand:"Expand to the whole page",shrink:"Shrink",examples:"Example queries","examples.whatCanDo":"What you can do","group.pinned":"Pinned","group.today":"Today","group.yesterday":"Yesterday","group.week":"Previous 7 days","group.earlier":"Earlier","errors.thread_busy":"AI-Dana is still answering in this chat. Wait for the answer or stop it.","errors.mode_overloaded":"AI-Dana is overloaded right now, please try again a bit later","errors.daily_limit":"You have used up today's message limit","errors.rate_limit":"Too many messages in a row. Please wait a minute.","errors.ip_limit":"Too many messages from your network today. Please try again tomorrow.","errors.concurrency_limit":"Wait for the previous answer to finish","errors.file_too_large":"The file is too large","errors.file_not_allowed":"This file cannot be attached. XLS, XLSX, CSV, TXT and MD are allowed","errors.invalid_query":"The message is empty or too long","errors.invalid_parent":"This message can no longer be changed","errors.mode_not_found":"The selected mode is unavailable right now. Choose another mode.","errors.thread_not_found":"Chat not found","errors.interrupted":"The answer was interrupted","errors.code":"Could not get an answer (code {code}).","errors.generic":"Something went wrong while sending the message.","errors.network":"No connection to the server. Check your network.","agent.thinking":"Thinking\u2026","agent.done":"Done","agent.stopped":"Stopped","agent.stopping":"Stopping\u2026","agent.failed":"couldn\u2019t","agent.interrupted":"Answer interrupted","agent.answerStopped":"Answer stopped. Ask again if needed","agent.seconds":"{value} s","agent.attempt":"attempt {count}","agent.showSteps":"Show steps","agent.hideSteps":"Hide steps","steps.router":"Understanding the question","steps.context_builder":"Looking for the data","steps.sql_architect":"Preparing the calculation","steps.executor":"Calculating the figures","steps.responder":"Preparing the answer","steps.rag":"Looking in reference materials","steps.sql":"Looking for data in open sources","steps.document":"Reading the document","steps.understand":"Understanding the question","steps.search_law":"Searching the law","steps.run_sql":"Calculating the figures","steps.run_query":"Getting the data","steps.data":"Getting the data","steps.lookup_taxpayer":"Looking up the taxpayer","steps.find_taxpayer":"Finding the company by name","steps.ask_clarification":"Clarifying the question","steps.answer":"Preparing the answer","steps.unknown":"Working on the answer",copy:"Copy",copied:"Copied",download:"Download",regenerate:"Regenerate",edit:"Edit message",editLabel:"Message text",cancel:"Cancel",actionsLabel:"Message actions",rate:"Rate {count} out of 5",ratingError:"Could not save the rating",feedbackOpen:"Leave feedback",feedbackEdit:"Edit feedback",feedbackLabel:"Feedback on the answer",feedbackPlaceholder:"What was wrong with the answer?",save:"Save","branch.label":"Versions","branch.prev":"Previous version","branch.next":"Next version","branch.error":"Could not switch the version","limit.remaining":"{count} of {limit} messages left today","limit.exhausted":"You have used up today's message limit","limit.until":"Message limit reached. You can write again after {time}.","blocks.data":"Data","blocks.hideData":"Hide data","blocks.methodology":"Methodology","blocks.passport":"What was calculated","blocks.indicator":"Indicator","blocks.territory":"Territory","blocks.period":"Period","blocks.breakdown":"Breakdown","blocks.breakdown.sex":"by sex","blocks.breakdown.age":"by age","blocks.breakdown.urban_rural":"urban and rural","blocks.breakdown.activity":"by economic activity","blocks.breakdown.item":"by item","blocks.substituted":"substituted","blocks.alternatives":"Similar indicators","blocks.table":"Data table","blocks.tableSearch":"Search the table\u2026","blocks.tableEmpty":"No data","blocks.page":"{a} of {b}","blocks.prevPage":"Previous page","blocks.nextPage":"Next page","blocks.truncated":"Showing the first {n} rows \u2014 full data in Excel","blocks.catalogMore":"\u2026and {count} more in the catalog","blocks.catalogExamples":"You can ask","blocks.options":"Answer options","blocks.default":"default","blocks.freeTextHint":"Choose an option or type your own below","blocks.findOption":"Find in the list\u2026","blocks.chosen":"Selected: {label}","blocks.continue":"Continue","blocks.cancelPlan":"Cancel","blocks.expired":"This clarification has expired","blocks.askAgain":"Ask the question again","blocks.dashboard":"Dashboard","blocks.hideDashboard":"Hide dashboard","chart.kinds":"Chart type","chart.kind.bar":"Bars","chart.kind.column":"Columns","chart.kind.pie":"Pie","chart.kind.line":"Lines","chart.kind.area":"Areas","chart.national":"KZ {value}","chart.top":"Top {n} of {total} \u2014 all in the dashboard","chart.label":"{title}, {period}","files.list":"Files","files.report":"Final report","files.document":"Editable document","files.presentation":"Presentation","files.excel":"Excel data","files.csv":"CSV data","files.failed":"Could not download the file","report.create":"Generate report","report.pending":"Report files are being prepared\u2026","report.failed":"Could not generate the report files","report.retry":"Retry","report.expired":"The files have expired","dashboard.eyebrow":"Analytics","dashboard.label":"Dashboard","dashboard.sections":"Dashboard sections","dashboard.regions":"regions: {n}","dashboard.items":"items: {n}","dashboard.openSource":"Open in source","dashboard.methodology":"Methodology","dashboard.fullscreen":"Full screen","dashboard.collapse":"Collapse","dashboard.close":"Close","dashboard.chatTab":"Chat","dashboard.dashboardTab":"Dashboard","dashboard.view":"Chat or dashboard","dashboard.region":"Region","dashboard.allRegions":"All regions","dashboard.period":"Period","dashboard.mode.label":"Mode","dashboard.mode.value":"Value","dashboard.mode.deviation":"Deviation","dashboard.mode.change":"Change","dashboard.base.label":"Deviation base","dashboard.base.median":"from median","dashboard.base.national":"from KZ","dashboard.noPrevious":"No previous period","dashboard.noNational":"No national value for this period","dashboard.fewRegions":"At least two values are needed","dashboard.ranking":"Ranking","dashboard.trend":"Trend","dashboard.findings":"Findings","dashboard.data":"Data","dashboard.kpis":"Key figures","dashboard.table.rank":"#","dashboard.table.position":"Item","dashboard.table.value":"Value, {unit}","dashboard.table.share":"Share, %","dashboard.table.deviation":"Deviation, {unit}","dashboard.table.change":"Change, {unit}","dashboard.source":"Source: {name}","dashboard.points":"p.p.","dashboard.kpi.national":"Republic of Kazakhstan","dashboard.kpi.max":"Maximum","dashboard.kpi.min":"Minimum","dashboard.kpi.median":"Regional median","dashboard.kpi.spread":"Range","dashboard.kpi.gap":"Gap","dashboard.kpi.last":"Latest value","dashboard.kpi.first":"Start of period","dashboard.kpi.change":"Change","dashboard.kpi.place":"Rank","dashboard.kpi.placeOf":"{n} of {m}","dashboard.kpi.deviation":"Deviation from median","dashboard.kpi.previous":"vs previous period","steps.counter":"{done} of {total}","feedback.reasonsLabel":"What went wrong?","feedback.reason.wrong_number":"Wrong number","feedback.reason.wrong_indicator":"Wrong indicator","feedback.reason.wrong_territory":"Wrong territory","feedback.reason.wrong_period":"Wrong period","feedback.reason.not_answered":"Question not answered","feedback.reason.language":"Answer language","feedback.reason.slow":"Too slow","feedback.reason.other":"Other","intro.title":"Before you start","intro.continue":"Continue",source:"Source: {name}","shell.siteBlocked":"The chat is not available on this site","shell.siteBlockedHint":"The site owner has not connected AI-Dana yet or access is suspended.","modes.none":"Answer modes are unavailable right now. Please try again later.","attachment.sending":"sending","agent.steps":"Steps","agent.unfinished":"not finished",rateGroup:"Rate the answer","blocks.catalogTitle":"Catalog: {topic}","blocks.catalogSections":"Sections","blocks.catalogIndicators":"Indicators","blocks.catalogSendHint":"The question is sent as soon as you pick it","blocks.clarification":"Clarification","files.expired":"The file has expired","files.notFound":"File not found","files.unavailable":"File unavailable"},N0={kk:S0,ru:Pp,en:j0},Ct=(r,a,o)=>{const i=N0[r][a];return o?i.replace(/\{(\w+)\}/g,(d,p)=>String(o[p]??d)):i},_0=r=>r in Pp,na=(r,a)=>{if(!r)return"";for(const o of[r[a],r.ru,...Object.values(r)])if(o)return o;return""},Rp="aid_prefs",E0=["light","dark","auto"],Tp=r=>{try{const a=JSON.parse(r?.getItem(Rp)??"{}"),o={};return as.includes(a.lang)&&(o.lang=a.lang),E0.includes(a.scheme)&&(o.scheme=a.scheme),o}catch{return{}}},z0=(r,a)=>{try{r?.setItem(Rp,JSON.stringify(a))}catch{}},Ap=({scheme:r})=>r?{scheme:r}:{},C0=(r,a,o)=>a?!o||r.expanded?r:{expanded:!0,byDashboard:!0}:r.byDashboard?{expanded:!1,byDashboard:!1}:r,os=v.createContext(null),ls=()=>{const r=v.useContext(os);if(!r)throw new Error("usePrefs outside PrefsContext");return r},L0=r=>{let a=r;const o=new Set;return{get:()=>a,set:i=>{a={...a,...i};for(const d of o)d()},subscribe:i=>(o.add(i),()=>o.delete(i))}},M0='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--aid-c-border)}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--aid-c-font);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important;margin-right:auto!important;margin-left:auto!important;padding-right:32px!important;padding-left:32px!important}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:32px;padding-left:32px}@media(min-width:1400px){.\\!container{max-width:1400px!important}.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-\\[3px\\]{inset:3px}.inset-y-0{top:0;bottom:0}.bottom-3{bottom:12px}.bottom-\\[3\\.2rem\\]{bottom:51.2px}.bottom-\\[calc\\(100\\%\\+6px\\)\\]{bottom:calc(100% + 6px)}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.left-\\[11px\\]{left:11px}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1\\/2{top:50%}.top-\\[calc\\(100\\%\\+6px\\)\\]{top:calc(100% + 6px)}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.m-0{margin:0}.mx-1\\.5{margin-left:6px;margin-right:6px}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\.5{margin-top:2px;margin-bottom:2px}.my-4{margin-top:16px;margin-bottom:16px}.-ml-2{margin-left:-8px}.mb-2{margin-bottom:8px}.ml-0\\.5{margin-left:2px}.ml-1\\.5{margin-left:6px}.mr-1{margin-right:4px}.mr-auto{margin-right:auto}.mt-0\\.5{margin-top:2px}.mt-1{margin-top:4px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-\\[18px\\]{margin-top:18px}.mt-px{margin-top:1px}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-10{width:40px;height:40px}.size-2{width:8px;height:8px}.size-3{width:12px;height:12px}.size-3\\.5{width:14px;height:14px}.size-4{width:16px;height:16px}.size-6{width:24px;height:24px}.size-7{width:28px;height:28px}.size-8{width:32px;height:32px}.size-9{width:36px;height:36px}.size-\\[26px\\]{width:26px;height:26px}.size-\\[30px\\]{width:30px;height:30px}.size-\\[34px\\]{width:34px;height:34px}.size-\\[52px\\]{width:52px;height:52px}.h-10{height:40px}.h-3{height:12px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[11px\\]{height:11px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[22px\\]{height:22px}.h-\\[30px\\]{height:30px}.h-\\[38px\\]{height:38px}.h-full{height:100%}.h-side-head{height:var(--aid-c-side-head-height)}.h-toolbar{height:var(--aid-c-toolbar-height)}.max-h-56{max-height:224px}.max-h-\\[28rem\\]{max-height:448px}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-10{min-height:40px}.min-h-11{min-height:44px}.min-h-6{min-height:24px}.min-h-7{min-height:28px}.min-h-8{min-height:32px}.min-h-9{min-height:36px}.min-h-\\[30px\\]{min-height:30px}.min-h-\\[34px\\]{min-height:34px}.min-h-\\[76px\\]{min-height:76px}.w-1\\/2{width:50%}.w-10{width:40px}.w-8{width:32px}.w-\\[18px\\]{width:18px}.w-\\[340px\\]{width:340px}.w-\\[62\\%\\]{width:62%}.w-\\[7px\\]{width:7px}.w-\\[max-content\\]{width:-moz-max-content;width:max-content}.w-\\[min\\(400px\\,100\\%\\)\\]{width:min(400px,100%)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-side{width:var(--aid-c-side-width)}.w-side-over{width:var(--aid-c-side-over-width)}.min-w-0{min-width:0px}.min-w-16{min-width:64px}.min-w-24{min-width:96px}.min-w-32{min-width:128px}.min-w-4{min-width:16px}.min-w-40{min-width:160px}.min-w-5{min-width:20px}.min-w-\\[220px\\]{min-width:220px}.min-w-\\[22px\\]{min-width:22px}.min-w-\\[30px\\]{min-width:30px}.min-w-\\[480px\\]{min-width:480px}.min-w-full{min-width:100%}.max-w-60{max-width:240px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[340px\\]{max-width:340px}.max-w-\\[420px\\]{max-width:420px}.max-w-\\[440px\\]{max-width:440px}.max-w-\\[520px\\]{max-width:520px}.max-w-\\[640px\\]{max-width:640px}.max-w-\\[78\\%\\]{max-width:78%}.max-w-\\[820px\\]{max-width:820px}.max-w-\\[844px\\]{max-width:844px}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 32px)}.max-w-\\[min\\(360px\\,100\\%\\)\\]{max-width:min(360px,100%)}.max-w-\\[min\\(360px\\,80vw\\)\\]{max-width:min(360px,80vw)}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: 8px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[3px\\]{--tw-translate-y: 3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[repeat\\(auto-fit\\,minmax\\(9\\.5rem\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fit,minmax(152px,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:2px}.gap-1{gap:4px}.gap-1\\.5{gap:6px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.gap-3\\.5{gap:14px}.gap-4{gap:16px}.gap-5{gap:20px}.gap-\\[22px\\]{gap:22px}.gap-\\[3px\\]{gap:3px}.gap-\\[7px\\]{gap:7px}.gap-px{gap:1px}.gap-x-3\\.5{-moz-column-gap:14px;column-gap:14px}.gap-y-1{row-gap:4px}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:var(--aid-c-radius)}.rounded-2xl{border-radius:16px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[14px\\]{border-radius:14px}.rounded-\\[18px\\]{border-radius:18px}.rounded-\\[22\\.5\\%\\]{border-radius:22.5%}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[7px\\]{border-radius:7px}.rounded-\\[calc\\(var\\(--aid-c-radius\\)\\+6px\\)\\]{border-radius:calc(var(--aid-c-radius) + 6px)}.rounded-aid-field{border-radius:var(--aid-c-radius-field)}.rounded-aid-window{border-radius:var(--aid-c-radius-window)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--aid-c-radius)}.rounded-md{border-radius:calc(var(--aid-c-radius) - 2px)}.rounded-sm{border-radius:calc(var(--aid-c-radius) - 4px)}.rounded-xl{border-radius:12px}.rounded-br-\\[6px\\]{border-bottom-right-radius:6px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[1\\.5px\\]{border-width:1.5px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-\\[3px\\]{border-left-width:3px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-border{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-border) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-current{border-color:currentColor}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\\/30{border-color:hsl(var(--destructive) / .3)}.border-error\\/30{border-color:hsl(var(--error),.3)}.border-error\\/35{border-color:hsl(var(--error),.35)}.border-input{border-color:hsl(var(--input))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-primary{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-primary-30{border-color:color-mix(in srgb,var(--aid-c-primary) 30%,transparent)}.border-primary-35{border-color:color-mix(in srgb,var(--aid-c-primary) 35%,transparent)}.border-primary-50{border-color:color-mix(in srgb,var(--aid-c-primary) 50%,transparent)}.border-primary-pressed{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-processing\\/25{border-color:hsl(var(--processing),.25)}.border-warning\\/40{border-color:hsl(var(--warning),.4)}.border-r-transparent{border-right-color:transparent}.bg-\\[\\#F3F5FA\\]{--tw-bg-opacity: 1;background-color:rgb(243 245 250 / var(--tw-bg-opacity, 1))}.bg-\\[hsl\\(var\\(--chart-card\\)\\)\\]{background-color:hsl(var(--chart-card))}.bg-accent{background-color:hsl(var(--accent))}.bg-background{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-border{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-border) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-card{background-color:hsl(var(--card))}.bg-current{background-color:currentColor}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive-background{background-color:hsla(var(--destructive-background))}.bg-destructive-pressed{background-color:hsl(var(--destructive-pressed))}.bg-error-background{background-color:hsla(var(--error-background))}.bg-file-csv{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-csv)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-doc{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-doc)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-other{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-other)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-pdf{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-pdf)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-ppt{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-ppt)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-xls{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-xls)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-foreground{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-hl{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--hl)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-busy{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-busy)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-down{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-down)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-idle{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-idle)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-muted{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-muted-foreground\\/40{background-color:hsl(var(--muted-foreground) / .4)}.bg-muted\\/60{background-color:color-mix(in srgb,var(--aid-c-muted) 60%,transparent)}.bg-primary{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-primary-pressed{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-processing-background{background-color:hsla(var(--processing-background))}.bg-scrim{background-color:var(--scrim)}.bg-secondary{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-secondary) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-transparent{background-color:transparent}.bg-warning-background{background-color:hsla(var(--warning-background))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-3\\.5{padding:14px}.p-4{padding:16px}.p-6{padding:24px}.p-8{padding:32px}.px-0{padding-left:0;padding-right:0}.px-0\\.5{padding-left:2px;padding-right:2px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-3\\.5{padding-left:14px;padding-right:14px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-\\[18px\\]{padding-left:18px;padding-right:18px}.px-\\[5px\\]{padding-left:5px;padding-right:5px}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2{padding-top:8px;padding-bottom:8px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-3{padding-top:12px;padding-bottom:12px}.py-3\\.5{padding-top:14px;padding-bottom:14px}.py-6{padding-top:24px;padding-bottom:24px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-2{padding-bottom:8px}.pb-2\\.5{padding-bottom:10px}.pb-3{padding-bottom:12px}.pb-4{padding-bottom:16px}.pb-5{padding-bottom:20px}.pb-\\[18px\\]{padding-bottom:18px}.pl-0\\.5{padding-left:2px}.pl-2{padding-left:8px}.pl-2\\.5{padding-left:10px}.pl-3{padding-left:12px}.pl-3\\.5{padding-left:14px}.pl-4{padding-left:16px}.pl-5{padding-left:20px}.pl-\\[18px\\]{padding-left:18px}.pl-\\[22px\\]{padding-left:22px}.pl-\\[34px\\]{padding-left:34px}.pr-1\\.5{padding-right:6px}.pr-2{padding-right:8px}.pr-2\\.5{padding-right:10px}.pr-3{padding-right:12px}.pr-3\\.5{padding-right:14px}.pr-4{padding-right:16px}.pr-7{padding-right:28px}.pr-9{padding-right:36px}.pt-0\\.5{padding-top:2px}.pt-1{padding-top:4px}.pt-1\\.5{padding-top:6px}.pt-14{padding-top:56px}.pt-2{padding-top:8px}.pt-3{padding-top:12px}.pt-3\\.5{padding-top:14px}.pt-7{padding-top:28px}.pt-\\[18px\\]{padding-top:18px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--aid-c-font)}.text-2xl{font-size:20px}.text-2xs{font-size:12px}.text-3xl{font-size:24px}.text-\\[11px\\]{font-size:11px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.text-\\[17px\\]{font-size:17px}.text-\\[9\\.5px\\]{font-size:9.5px}.text-base{font-size:15px}.text-lg{font-size:16px}.text-sm{font-size:14px}.text-xl{font-size:18px}.text-xs{font-size:13px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:24px}.leading-\\[1\\.35\\]{line-height:1.35}.leading-\\[1\\.3\\]{line-height:1.3}.leading-\\[1\\.55\\]{line-height:1.55}.leading-\\[1\\.65\\]{line-height:1.65}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-\\[0\\.02em\\]{letter-spacing:.02em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-\\[hsl\\(var\\(--foreground\\)\\)\\]{color:hsl(var(--foreground))}.text-background{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-inherit{color:inherit}.text-mode-busy{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-busy)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-mode-down{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-down)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-mode-idle{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-idle)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--muted-foreground) / .7)}.text-primary{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-primary-foreground{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-warn-text{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--warn-text)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-warning{--tw-text-opacity: 1;color:hsl(var(--warning),var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_0_3px_var\\(--aid-c-secondary\\)\\]{--tw-shadow: 0 0 0 3px var(--aid-c-secondary);--tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[inset_0_0_0_1px_var\\(--aid-c-border\\)\\]{--tw-shadow: inset 0 0 0 1px var(--aid-c-border);--tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-panel{--tw-shadow: var(--aid-c-shadow-panel);--tw-shadow-colored: var(--aid-c-shadow-panel);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-pop{--tw-shadow: var(--shadow-pop);--tw-shadow-colored: var(--shadow-pop);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-side{--tw-shadow: var(--aid-c-shadow-side);--tw-shadow-colored: var(--aid-c-shadow-side);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-window{--tw-shadow: var(--aid-c-shadow-window);--tw-shadow-colored: var(--aid-c-shadow-window);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-\\[3px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-border{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-border) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.ring-secondary{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.ring-offset-background{--tw-ring-offset-color: color-mix(in srgb, var(--aid-c-background) 100% , transparent)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.slide-in-from-left-2{--tw-enter-translate-x: -8px}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.running{animation-play-state:running}.paused{animation-play-state:paused}:host{display:block}:host([hidden]){display:none!important}.aid-root{all:initial;display:block;width:100%;height:100%;box-sizing:border-box;--aid-d-primary-hovered: color-mix(in oklch, var(--aid-primary) 84%, white);--aid-d-primary-pressed: color-mix(in oklch, var(--aid-primary) 80%, black);--aid-d-primary-foreground: oklch(from var(--aid-primary) clamp(0, (.62 - l) * 1000, 1) 0 0);--aid-d-secondary: color-mix(in srgb, var(--aid-primary) 10%, transparent);--aid-d-ring: color-mix(in srgb, var(--aid-primary) 50%, transparent);--aid-c-primary: var(--aid-primary, hsl(var(--primary)));--aid-c-primary-hovered: var(--aid-primary-hovered, var(--aid-d-primary-hovered, hsl(var(--primary-hovered))));--aid-c-primary-pressed: var(--aid-primary-pressed, var(--aid-d-primary-pressed, hsl(var(--primary-pressed))));--aid-c-primary-foreground: var( --aid-primary-foreground, var(--aid-d-primary-foreground, hsl(var(--primary-foreground))) );--aid-c-secondary: var(--aid-secondary, var(--aid-d-secondary, hsl(var(--secondary))));--aid-c-ring: var(--aid-ring, var(--aid-d-ring, hsl(var(--ring))));--aid-c-background: var(--aid-background, hsl(var(--background)));--aid-c-foreground: var(--aid-foreground, hsl(var(--foreground)));--aid-c-muted: var(--aid-muted, hsl(var(--muted)));--aid-c-border: var(--aid-border, hsl(var(--border)));--aid-c-radius: var(--aid-radius, var(--radius));--aid-c-font: var( --aid-font, var( --aid-theme-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif ) );--aid-c-z: var(--aid-z-index, 2147483000);font-family:var(--aid-c-font);font-size:15px;line-height:1.5;color:var(--aid-c-foreground);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-align:left}.aid-root{--warning: 21, 90%, 48%;--warning-background: 27, 96%, 61%, .2;--ring: 201 100% 35%;--chart-1: 201 100% 35%;--chart-2: 174 72% 30%;--chart-3: 27 95% 46%;--chart-4: 330 70% 42%;--chart-5: 252 45% 52%;--chart-ref: 222 47% 11%;--chart-neg: 359 72% 48%;--chart-dim: 201 45% 80%;--chart-grid: 214 32% 88%;--mode-idle: 142 72% 29%;--mode-busy: 32 95% 36%;--mode-down: 359 78% 44%;--file-pdf: 0 72% 45%;--file-doc: 214 80% 44%;--file-ppt: 18 88% 44%;--file-xls: 145 63% 30%;--file-csv: 174 70% 28%;--file-other: 215 16% 42%;--warn-text: 24 90% 30%;--hl: 45 100% 55% / .45;--scrim: rgb(2 6 23 / .48);--persona-ring: 214 32% 88%;--shadow-pop: 0 10px 28px -10px rgb(15 23 42 / .28);--aid-c-radius-window: calc(var(--aid-c-radius) + 6px);--aid-c-radius-field: calc(var(--aid-c-radius) + 4px);--aid-c-radius-bubble-corner: 6px;--aid-c-side-width: 248px;--aid-c-side-over-width: 290px;--aid-c-toolbar-height: 52px;--aid-c-side-head-height: 56px;--aid-c-shadow-launcher: 0 10px 30px -8px rgb(2 6 23 / .45), 0 2px 6px rgb(2 6 23 / .2);--aid-c-shadow-launcher-drag: 0 22px 44px -10px rgb(2 6 23 / .55);--aid-c-shadow-window: 0 30px 70px -20px rgb(2 6 23 / .55);--aid-c-shadow-panel: 0 20px 50px -16px rgb(2 6 23 / .5);--aid-c-shadow-side: 12px 0 30px -12px rgb(2 6 23 / .45)}.aid-root.dark{--ring: 201 90% 60%;--chart-1: 201 90% 60%;--chart-2: 170 60% 52%;--chart-3: 30 95% 62%;--chart-4: 330 75% 70%;--chart-5: 252 75% 76%;--chart-ref: 210 40% 98%;--chart-neg: 359 92% 70%;--chart-dim: 201 30% 32%;--chart-grid: 217 33% 25%;--mode-idle: 142 60% 55%;--mode-busy: 35 95% 62%;--mode-down: 359 95% 72%;--file-pdf: 0 80% 62%;--file-doc: 214 85% 62%;--file-ppt: 20 92% 60%;--file-xls: 145 55% 48%;--file-csv: 172 55% 46%;--file-other: 215 20% 60%;--warn-text: 32 95% 66%;--hl: 45 100% 55% / .35;--scrim: rgb(0 0 0 / .6);--persona-ring: 217 33% 30%;--shadow-pop: 0 12px 32px -10px rgb(0 0 0 / .6)}:where(.aid-root svg.lucide){width:16px;height:16px;flex-shrink:0}:where(.aid-root *),:where(.aid-root *):before,:where(.aid-root *):after{border-color:var(--aid-c-border)}.aid-root[data-mode=launcher]{width:0;height:0}.aid-root{--aid-c-launcher-size: 60px}@media(max-width:639px){.aid-root{--aid-c-launcher-size: 56px}}.aid-launcher{position:fixed;z-index:var(--aid-c-z);display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-width:var(--aid-c-launcher-size);height:var(--aid-c-launcher-size);padding:0;border:0;border-radius:9999px;background:var(--aid-c-primary);color:var(--aid-c-primary-foreground);box-shadow:var(--aid-c-shadow-launcher);font:600 15px/1 var(--aid-c-font);cursor:pointer;outline:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease-out,transform .12s ease-out,box-shadow .12s ease-out}.aid-launcher[data-variant=label]{max-width:300px;padding:0 20px 0 8px}.aid-launcher[data-shape=rounded]{border-radius:16px}.aid-launcher[data-shape=square]{border-radius:4px}@media(hover:hover){.aid-launcher:hover{background:var(--aid-c-primary-hovered);transform:translateY(-2px)}}.aid-launcher:active{transform:scale(.96)}.aid-launcher:focus-visible{outline:3px solid var(--aid-c-ring);outline-offset:3px}.aid-launcher[data-dragging=true]{transform:scale(1.06);box-shadow:var(--aid-c-shadow-launcher-drag)}@media(prefers-reduced-motion:reduce){.aid-launcher,.aid-launcher:hover,.aid-launcher:active,.aid-launcher[data-dragging=true]{transition:none;transform:none}}.aid-launcher[data-dragging=true],.aid-window-header[data-dragging=true]{cursor:grabbing}.aid-launcher-origin{position:fixed;z-index:calc(var(--aid-c-z) - 1);box-sizing:border-box;border:1.5px dashed hsl(var(--muted-foreground) / .55);border-radius:9999px;pointer-events:none}.aid-launcher-origin[data-shape=rounded]{border-radius:16px}.aid-launcher-origin[data-shape=square]{border-radius:4px}.aid-root{--aid-c-window-gap: 24px;--aid-c-overlay: var(--aid-overlay, rgb(2 6 23 / .35))}.aid-window{position:fixed;z-index:var(--aid-c-z);display:flex;flex-direction:column;overflow:hidden;transition:opacity .2s ease-out,transform .26s cubic-bezier(.32,.72,0,1),visibility 0s linear 0s}.dana-av{position:relative;display:inline-block;flex-shrink:0;overflow:hidden}.dana-av>*{position:absolute;inset:0;width:100%;height:100%;display:block}.dana-av-body{transform-origin:50% 100%}.dana-av-dot{transform-box:fill-box;transform-origin:50% 50%}.dana-av[data-animated][data-mood=calm] .dana-av-body,.dana-av[data-animated][data-mood=listen] .dana-av-body{animation:dana-breathe 3.6s ease-in-out infinite alternate}.dana-av[data-animated][data-mood=typing] .dana-av-body{animation:dana-bob .34s ease-in-out infinite}.dana-av[data-animated][data-mood=think] .dana-av-body{animation:dana-sway 3.4s ease-in-out infinite alternate}.dana-av[data-animated][data-mood=eureka] .dana-av-body{animation:dana-lift 1.3s cubic-bezier(.3,0,.4,1) infinite}.dana-av[data-animated][data-mood=sorry] .dana-av-body{animation:dana-slump 2.8s ease-in-out infinite}.dana-av[data-animated] .dana-av-bubble,.dana-av[data-animated] .dana-av-dots{animation:dana-float 2.2s ease-in-out infinite alternate}.dana-av[data-animated] .dana-av-dot{animation:dana-dot 1.1s ease-in-out infinite}.dana-av[data-animated] .dana-av-dot:nth-child(3n+2){animation-delay:.18s}.dana-av[data-animated] .dana-av-dot:nth-child(3n){animation-delay:.36s}.dana-av[data-animated] .dana-av-spark{transform-origin:13% 30%;animation:dana-twinkle 1.3s ease-in-out infinite}.dana-av[data-animated] .dana-av-drop{animation:dana-drip 1.8s ease-in infinite}@keyframes dana-breathe{to{transform:translateY(-.5%) scale(1.004,1.01)}}@keyframes dana-bob{50%{transform:translateY(.5%)}}@keyframes dana-sway{0%{transform:rotate(-1.2deg)}to{transform:rotate(1.2deg)}}@keyframes dana-lift{15%{transform:scale(1.02,.98)}42%{transform:translateY(-2.5%) scale(.99,1.015)}65%{transform:scale(1.01,.99)}80%{transform:none}}@keyframes dana-slump{8%{transform:translate(-.7%) rotate(-.6deg)}16%{transform:translate(.7%) rotate(.6deg)}24%{transform:none}60%{transform:translateY(1%) rotate(-.8deg)}}@keyframes dana-float{to{transform:translateY(-1.5%)}}@keyframes dana-dot{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-40%);opacity:1}}@keyframes dana-twinkle{0%,to{transform:scale(.75);opacity:.6}45%{transform:scale(1.08) rotate(12deg);opacity:1}}@keyframes dana-drip{0%{transform:translateY(-1.5%);opacity:0}15%{opacity:1}70%{transform:translateY(3.5%);opacity:1}to{transform:translateY(5.5%);opacity:0}}@media(prefers-reduced-motion:reduce){.dana-av *{animation:none!important}}.aid-overlay{position:fixed;inset:0;z-index:var(--aid-c-z);background:var(--aid-c-overlay);transition:opacity .2s ease-out,visibility 0s linear 0s}.aid-overlay[data-state=closed]{opacity:0;visibility:hidden;transition:opacity .2s ease-in,visibility 0s linear .2s}.aid-root[data-mode=launcher] .aid-window{top:var(--aid-c-window-gap);right:var(--aid-c-window-gap);bottom:var(--aid-c-window-gap);width:min(calc(100vw - 2 * var(--aid-c-window-gap)),max(720px,var(--aid-window-width, 60vw)));transition:opacity .2s ease-out,transform .26s cubic-bezier(.32,.72,0,1),width .26s cubic-bezier(.32,.72,0,1),visibility 0s linear 0s}.aid-root[data-mode=launcher] .aid-window[data-expanded=true]{width:calc(100vw - 2 * var(--aid-c-window-gap))}.aid-root .aid-window[data-state=closed]{opacity:0;transform:translateY(8px);visibility:hidden;pointer-events:none;transition:opacity .16s ease-in,transform .2s ease-in,visibility 0s linear .2s}.aid-root[data-mode=launcher] .aid-window[data-fullscreen=true]{inset:0;width:100%;border-width:0;border-radius:0;box-shadow:none}.aid-root[data-mode=window] .aid-window{position:relative;width:100%;height:100%;box-shadow:none}@media(prefers-reduced-motion:reduce){.aid-root .aid-window,.aid-root .aid-window[data-state=closed],.aid-overlay,.aid-overlay[data-state=closed]{transition:none}}.aid-launcher-badge{position:absolute;top:-4px;right:-4px;box-sizing:content-box;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:2px solid var(--aid-c-background);border-radius:9999px;background:hsl(var(--destructive));color:hsl(var(--destructive-foreground));font:700 11px/1 var(--aid-c-font)}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\\:mt-0:first-child{margin-top:0}.last\\:border-b-0:last-child{border-bottom-width:0px}.empty\\:hidden:empty{display:none}.focus-within\\:border-destructive:focus-within{border-color:hsl(var(--destructive))}.focus-within\\:border-primary:focus-within{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus-within\\:ring-\\[3px\\]:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\\:ring-secondary:focus-within{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.hover\\:border-primary:hover{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.hover\\:border-primary\\/50:hover{border-color:color-mix(in srgb,var(--aid-c-primary) 50%,transparent)}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-background:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-background\\/60:hover{background-color:color-mix(in srgb,var(--aid-c-background) 60%,transparent)}.hover\\:bg-destructive-hovered:hover{background-color:hsl(var(--destructive-hovered))}.hover\\:bg-muted:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-primary-hovered:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-hovered) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-secondary-hovered:hover{--tw-bg-opacity: 1;background-color:hsl(var(--secondary-hovered),var(--tw-bg-opacity, 1))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-foreground:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary-foreground:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary-hovered:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-hovered) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary\\/80:hover{color:color-mix(in srgb,var(--aid-c-primary) 80%,transparent)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-primary:focus{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus\\:ring-\\[3px\\]:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:border-primary:focus-visible{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus-visible\\:bg-accent:focus-visible{background-color:hsl(var(--accent))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-inset:focus-visible{--tw-ring-inset: inset}.focus-visible\\:ring-destructive:focus-visible{--tw-ring-color: hsl(var(--destructive))}.focus-visible\\:ring-primary:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-primary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-ring) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-secondary:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.active\\:border-primary-pressed:active{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.active\\:bg-destructive-pressed:active{background-color:hsl(var(--destructive-pressed))}.active\\:bg-primary-pressed:active{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.active\\:bg-secondary-pressed:active{--tw-bg-opacity: 1;background-color:hsl(var(--secondary-pressed),var(--tw-bg-opacity, 1))}.active\\:text-primary-foreground:active{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.active\\:text-primary-pressed:active{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-disabled:disabled{background-color:hsl(var(--disabled))}.disabled\\:bg-muted:disabled{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.disabled\\:bg-transparent:disabled{background-color:transparent}.disabled\\:text-disabled-foreground:disabled{color:hsl(var(--disabled-foreground))}.disabled\\:text-muted-foreground:disabled{color:hsl(var(--muted-foreground))}.disabled\\:opacity-100:disabled{opacity:1}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}.group\\/attach:focus-within .group-focus-within\\/attach\\:block{display:block}.group:focus-within .group-focus-within\\:opacity-100{opacity:1}.group\\/attach:hover .group-hover\\/attach\\:block{display:block}.group:hover .group-hover\\:opacity-100{opacity:1}.aria-disabled\\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}@media(prefers-reduced-motion:reduce){.motion-reduce\\:animate-none{animation:none}.motion-reduce\\:transition-none{transition-property:none}}.\\[\\&\\:\\:-webkit-search-cancel-button\\]\\:hidden::-webkit-search-cancel-button{display:none}.\\[\\&_a\\]\\:no-underline a{text-decoration-line:none}.\\[\\&_li\\+li\\]\\:mt-1 li+li{margin-top:4px}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_ul\\]\\:mt-1 ul{margin-top:4px}@media(hover:none){.\\[\\@media\\(hover\\:none\\)\\]\\:opacity-100{opacity:1}}',Fp=3e3,is=6*6e4,Dp={phase:"idle"},Op={phase:"pending"},aa={phase:"failed"},$p={phase:"expired"},I0=new Set(["pdf","docx","pptx","xlsx","csv"]),ss=r=>{switch(r.status){case"queued":case"running":return Op;case"done":{const a=r.files.filter(o=>I0.has(o.format));return a.length>0?{phase:"done",files:a}:aa}case"expired":return $p;default:return aa}},ut=new Map,To=new Set,P0=new Set(["done","failed","expired"]),Ao=new Set;let zr=0;const ur=(r,a)=>{const o=ut.get(r)??{view:Dp};ut.set(r,{...o,...a});for(const i of Ao)i()},R0=r=>{const a=ut.get(r);if(a?.jobId===void 0||a.deadline===void 0||a.api===void 0)return;if(clearTimeout(a.timer),Date.now()+Fp>a.deadline){ur(r,{view:aa,timer:void 0});return}const{jobId:o,api:i}=a,d=zr,p=setTimeout(()=>{i.reportStatus(o).then(f=>{d===zr&&ut.get(r)?.jobId===o&&cs(r,f)},()=>{d===zr&&ut.get(r)?.jobId===o&&ur(r,{view:aa,timer:void 0})})},Fp);ur(r,{timer:p})},cs=(r,a)=>{const o=ss(a),i=ut.get(r)?.jobId;i!==void 0&&i!==a.job_id&&To.add(i);const d=ut.get(r)?.deadline??Date.now()+is;ur(r,{view:o,jobId:a.job_id,deadline:d,timer:void 0}),o.phase==="pending"&&R0(r)},oa={subscribe:r=>(Ao.add(r),()=>{Ao.delete(r)}),view:r=>ut.get(r)?.view,adopt:(r,a,o)=>{if(To.has(a.job_id))return;const i=ut.get(r);if(i!==void 0&&(i.jobId!==void 0||i.view.phase!=="idle")){if(i.view.phase==="pending")return;const d=a.job_id===i.jobId;if(d&&(!P0.has(a.status)||ss(a).phase===i.view.phase)||d&&i.view.phase==="expired")return}clearTimeout(i?.timer),ur(r,{deadline:Date.now()+is,timer:void 0,api:o}),cs(r,a)},start:(r,a,o)=>{const i=ut.get(r);if(i?.view.phase==="pending")return;clearTimeout(i?.timer),i?.jobId!==void 0&&To.add(i.jobId),ur(r,{view:Op,jobId:void 0,deadline:Date.now()+is,timer:void 0,api:a});const d=zr;a.createReport(r,o).then(p=>{d===zr&&cs(r,p)},()=>{d===zr&&ur(r,{view:aa})})},expire:r=>{ut.get(r)?.view.phase==="done"&&ur(r,{view:$p})}},T0=()=>{zr+=1;for(const r of ut.values())clearTimeout(r.timer);ut.clear(),To.clear();for(const r of Ao)r()},A0={calm:"idle",listen:"idle",think:"thinking",typing:"typing",eureka:"success",sorry:"fail"},F0={think:"bubble",eureka:"spark",sorry:"drop"},D0=(r,a)=>r==="error"?"sorry":r==="streaming"?a?"typing":"think":"calm",qp=r=>`${r.replace(/\/+$/,"")}/static/avatars/dana`,O0={animated:!0,assetsBase:qp("")},ds=v.createContext(O0),$0=()=>v.useContext(ds),Fo=({mood:r="calm",size:a=40,animated:o=!0,label:i,className:d,bare:p})=>{const{animated:f,assetsBase:g}=$0(),m=F0[r],b=x=>`${g}/${x}.webp`;return c.jsxs("span",{className:`dana-av ${p?"":"rounded-[22.5%] bg-[#F3F5FA] ring-1 ring-border"} ${d??""}`.trim(),style:{width:a,height:a},"data-mood":r,"data-animated":o&&f?"":void 0,role:i?"img":void 0,"aria-label":i,"aria-hidden":i?void 0:!0,children:[c.jsx("img",{className:"dana-av-body",src:b(A0[r]),alt:"",decoding:"async",draggable:!1}),m&&c.jsx("img",{className:`dana-av-${m}`,src:b(m),alt:"",decoding:"async",draggable:!1}),r==="typing"&&c.jsxs("svg",{className:"dana-av-dots",viewBox:"0 0 240 240","aria-hidden":"true",focusable:"false",children:[c.jsx("rect",{x:"189",y:"32",width:"38.4",height:"18.6",rx:"9.3",fill:"#fff",stroke:"#1F3F75",strokeWidth:"1.3"}),[199.9,208.3,216.6].map(x=>c.jsx("circle",{className:"dana-av-dot",cx:x,cy:"41.3",r:"2.6",fill:"#1F3F75"},x))]}),r==="think"&&c.jsx("svg",{className:"dana-av-dots",viewBox:"0 0 240 240","aria-hidden":"true",focusable:"false",children:[26.1,34.4,43.4].map(x=>c.jsx("circle",{className:"dana-av-dot",cx:x,cy:"31.7",r:"1.8",fill:"#1C2B4A"},x))})]})},q0=2500,V0=(r,a)=>{const[o,i]=v.useState(!1),[d,p]=v.useState(r);return d!==r&&(p(r),d&&!r&&a==="done"&&i(!0)),v.useEffect(()=>{if(!o)return;const f=window.setTimeout(()=>{i(!1)},q0);return()=>{window.clearTimeout(f)}},[o]),o},H0=12e3,B0=5e3,Vp="aid_mode",Hp=v.createContext(null),J=()=>{const r=v.useContext(Hp);if(!r)throw new Error("useChat outside ChatProvider");return r},us=(r,a)=>a.kind==="code"?Ct(r,`errors.${a.code}`):a.kind==="status"?a.status===0?Ct(r,"errors.network"):Ct(r,"errors.code",{code:a.status}):Ct(r,"errors.generic"),sn="temp-thread",W0=(r=null)=>({config:null,configError:!1,configErrorCode:null,health:{},mode:r,threads:[],threadsError:!1,threadsLoaded:!1,thread:null,loadingThread:null,turn:null,limit:{remaining:null,daily:null,blocked:!1,overloaded:!1},notice:null}),ps=(r,a,o)=>r&&{...r,messages:r.messages.map(i=>i.id===a?o(i):i)},U0=(r,a,o)=>{const i=new Map;for(const d of r?.steps??[])typeof d.id=="string"&&typeof d.startedAt=="number"&&i.set(d.id,d.startedAt);return{...a,steps:a.steps.map(d=>({...d,startedAt:i.get(d.id)??o}))}},Q0=(r,a)=>{const o=new Date(a).toISOString();return{id:sn,title:r.query.slice(0,80),mode:r.mode,pinned:!1,created_at:o,updated_at:o,current_leaf_id:null,messages:[]}},K0=r=>({id:r.id,title:r.title,mode:r.mode,pinned:r.pinned,created_at:r.created_at,updated_at:r.updated_at}),X0=["widget_unauthorized","origin_not_allowed","origin_blocked"],G0=r=>r.configError?r.limit.overloaded?"overloaded":r.configErrorCode!==null&&X0.includes(r.configErrorCode)?"siteBlocked":"unavailable":r.config?null:"loading",Z0=(r,a)=>{switch(a.type){case"config":{const{config:o}=a,i=o.modes.map(f=>f.slug),d=r.mode&&i.includes(r.mode)?r.mode:i[0]??null,p=o.visitor.remaining_today;return{...r,config:o,configError:!1,configErrorCode:null,mode:d,limit:{remaining:p,daily:o.visitor.daily_limit,blocked:p<=0,overloaded:!1,...p<=0&&(o.visitor.resets_at??r.limit.resetAt)?{resetAt:o.visitor.resets_at??r.limit.resetAt}:{}}}}case"configError":return{...r,configError:!0,configErrorCode:a.code??null,...a.overloaded?{limit:{...r.limit,blocked:!0,overloaded:!0}}:{}};case"health":return{...r,health:a.health};case"mode":return{...r,mode:a.mode};case"threads":return{...r,threads:a.threads,threadsError:!1,threadsLoaded:!0};case"threadsError":return{...r,threadsError:!0,threadsLoaded:!0};case"threadLoading":return{...r,loadingThread:a.id};case"thread":{if(r.turn&&r.thread?.id===a.thread.id||r.loadingThread!==a.thread.id&&r.thread?.id!==a.thread.id)return r;const o=r.config?.modes.map(i=>i.slug)??[];return{...r,thread:a.thread,loadingThread:null,mode:o.includes(a.thread.mode)?a.thread.mode:r.mode}}case"threadFailed":return r.loadingThread===a.id?{...r,loadingThread:null,notice:{kind:"error",reason:a.reason}}:r;case"newChat":return{...r,thread:null,loadingThread:null,turn:null,notice:null};case"threadDeleted":{const o=r.thread?.id===a.id;return{...r,threads:r.threads.filter(i=>i.id!==a.id),...o?{thread:null,turn:null}:{}}}case"turnStart":{const{request:o,token:i,at:d}=a,p=r.thread??Q0(o,d),{user:f,assistant:g}=Jb(o,p);return{...r,notice:null,thread:{...p,current_leaf_id:g.id,messages:[...p.messages,...f?[f]:[],g]},turn:{token:i,assistantId:g.id,...f?{userId:f.id}:{},startedAt:d,adopted:!1,previousLeaf:p.current_leaf_id,optimisticIds:[g.id,...f?[f.id]:[]]}}}case"resumeStart":return{...r,turn:{token:a.token,assistantId:a.messageId,startedAt:a.at,adopted:!0,previousLeaf:r.thread?.current_leaf_id??null,optimisticIds:[]}};case"adopt":{const{turn:o,thread:i}=r;if(o?.token!==a.token||o.adopted||!i)return r;const{metadata:d}=a,p=i.id===sn,f=e0(i,{...o.userId?{userId:o.userId}:{},assistantId:o.assistantId},d),g=r.limit.remaining===null?null:Math.max(0,r.limit.remaining-1);return{...r,thread:f,threads:p?[K0(f),...r.threads.filter(m=>m.id!==f.id)]:r.threads,turn:{...o,adopted:!0,assistantId:d.assistantMessageId,...o.userId?{userId:d.userMessageId}:{}},limit:{...r.limit,remaining:g}}}case"snapshot":{const{turn:o}=r;if(o?.token!==a.token)return r;const i=r.thread?.messages.find(p=>p.id===o.assistantId),d=U0(i,a.snapshot,a.at);return{...r,thread:ps(r.thread,o.assistantId,p=>t0(p,d))}}case"turnEnd":{const{turn:o}=r;if(o?.token!==a.token)return r;const i=a.status==="detached"?r.thread:ps(r.thread,o.assistantId,d=>r0(d,a.status,a.errorText,o.startedAt));return{...r,thread:i,turn:null,limit:{...r.limit,blocked:r.limit.blocked||r.limit.remaining===0}}}case"turnStopping":return r.turn?.token===a.token?{...r,turn:{...r.turn,stopping:!0}}:r;case"turnRejected":{const{turn:o,thread:i}=r;if(o?.token!==a.token)return r;const d=new Set(o.optimisticIds),p=i?.messages.filter(k=>!d.has(k.id))??[],f=i&&(i.id!==sn||p.length>0)?{...i,current_leaf_id:o.previousLeaf,messages:p}:null,{error:g}=a,m=g.status===429&&g.code==="daily_limit",b=g.status===503&&g.code==="anon_budget";let x=r.limit;return m?x={...x,remaining:0,blocked:!0,...g.resetAt?{resetAt:g.resetAt}:{}}:b&&(x={...x,blocked:!0,overloaded:!0}),{...r,thread:f,turn:null,notice:m||b?null:{kind:"error",reason:g.reason},limit:x}}case"leaf":return r.thread?{...r,thread:{...r.thread,current_leaf_id:a.leafId}}:r;case"rating":return{...r,thread:ps(r.thread,a.messageId,o=>({...o,rating:a.rating,...a.feedback!==void 0?{feedback:a.feedback}:{},...a.feedbackReason!==void 0?{feedback_reason:a.feedbackReason}:{}}))};case"notice":return{...r,notice:a.notice}}},fs=r=>{const a=r?r.messages.map(Sp):[],o=Np(a),i=Ep(o,r?.current_leaf_id??null);return{index:o,path:i?Kb(o,i):[]}},Y0=r=>r.code==="ip_limit"?{kind:"code",code:"ip_limit"}:Po(r),Bp=()=>{try{return window.localStorage}catch{return null}},J0=()=>{try{return Bp()?.getItem(Vp)??null}catch{return null}},ex=r=>r instanceof TypeError,tx=({api:r,lang:a,open:o,onAdminTheme:i,children:d})=>{const[p,f]=v.useReducer(Z0,null,()=>W0(J0())),g=v.useRef(p),m=v.useRef(null),b=v.useRef(0),x=v.useRef(a),k=v.useRef(i);v.useLayoutEffect(()=>{g.current=p,x.current=a,k.current=i});const S=v.useCallback(()=>{r.config().then(R=>{f({type:"config",config:R}),k.current(y0(R.site.theme))},R=>{const T=R instanceof et&&R.status===503,w=R instanceof et?R.code:null;f({type:"configError",...T?{overloaded:T}:{},...w?{code:w}:{}})})},[r]),E=v.useCallback(()=>{r.threads().then(R=>{f({type:"threads",threads:R})},()=>{f({type:"threadsError"})})},[r]),C=v.useCallback(R=>{r.thread(R).then(T=>{f({type:"thread",thread:T})},()=>{})},[r]);v.useEffect(()=>{S(),E()},[S,E]);const _=p.config!==null;v.useEffect(()=>{if(!o||!_)return;const R=()=>{typeof document<"u"&&document.visibilityState==="hidden"||r.health().then(w=>{f({type:"health",health:w})},()=>{})};R();const T=window.setInterval(R,H0);return window.addEventListener("focus",R),()=>{window.clearInterval(T),window.removeEventListener("focus",R)}},[r,o,_]);const M=v.useCallback(()=>{m.current?.controller.abort(),m.current=null},[]);v.useEffect(()=>M,[M]);const $=R=>{const T={token:++b.current,controller:new AbortController,stopRequested:!1,...R?{assistantId:R}:{}};return m.current=T,T},X=(R,T)=>R.stopRequested?"stopped":R.controller.signal.aborted?"detached":T?"error":"done",ae=R=>{m.current===R&&(m.current=null)},G=(R,T,w)=>{ae(R),E(),w&&T&&T!==sn&&C(T)},D=v.useCallback(async R=>{const T=g.current;if(T.turn||m.current||T.limit.blocked)return"busy";const w=T.thread&&T.thread.id!==sn?T.thread.id:void 0,P=$(),{token:le}=P;f({type:"turnStart",token:le,request:R,at:Date.now()});let H=w;const ie=ve=>{ve.metadata&&P.assistantId===void 0&&(P.assistantId=ve.metadata.assistantMessageId,H=ve.metadata.threadId,f({type:"adopt",token:le,metadata:ve.metadata})),f({type:"snapshot",token:le,snapshot:ve,at:Date.now()})};let de,je=!1;try{const{streamChatAnswer:ve}=await import("./stream-entry-CNdFWIwY.js");await ve({transport:r.transport,request:R,...w?{threadId:w}:{},signal:P.controller.signal,onSnapshot:ie})}catch(ve){je=!0,de=ve}if(P.assistantId===void 0&&(de instanceof et||ex(de))){const ve=de instanceof et?de:new et(0,"network",null);return f({type:"turnRejected",token:le,error:{status:ve.status,code:ve.code,resetAt:ve.resetAt,reason:Y0(ve)}}),ae(P),ve.status===429&&S(),"rejected"}const ke=X(P,je);return f({type:"turnEnd",token:le,status:ke,errorText:ke==="error"?us(x.current,Po(de)):""}),G(P,H,ke==="done"||ke==="stopped"),"sent"},[r,S,E,C]),te=v.useCallback(async(R,T)=>{if(m.current)return;const w=$(T),{token:P}=w;f({type:"resumeStart",token:P,messageId:T,at:Date.now()});let le,H=!1;try{const{resumeChatAnswer:de}=await import("./stream-entry-CNdFWIwY.js");await de(r.transport,T,w.controller.signal,je=>{f({type:"snapshot",token:P,snapshot:je,at:Date.now()})})}catch(de){H=!0,le=de}if(le instanceof et){f({type:"turnEnd",token:P,status:"detached",errorText:""}),G(w,R.id,!0);return}const ie=X(w,H);f({type:"turnEnd",token:P,status:ie,errorText:ie==="error"?us(x.current,Po(le)):""}),G(w,R.id,ie==="done"||ie==="stopped")},[r,E,C]),Z=v.useCallback(()=>{const R=m.current;if(!R)return;if(R.stopRequested=!0,f({type:"turnStopping",token:R.token}),R.assistantId===void 0){R.controller.abort();return}const T=window.setTimeout(()=>{R.controller.abort()},B0);R.controller.signal.addEventListener("abort",()=>{window.clearTimeout(T)},{once:!0}),r.stop(R.assistantId).catch(()=>{R.controller.abort()})},[r]),re=v.useCallback(R=>{g.current.thread?.id!==R&&(M(),f({type:"newChat"}),f({type:"threadLoading",id:R}),r.thread(R).then(T=>{f({type:"thread",thread:T});const{path:w}=fs(T),P=w[w.length-1];P?.role==="assistant"&&P.status==="streaming"&&te(T,P.id)},T=>{f({type:"threadFailed",id:R,reason:Po(T)})}))},[r,M,te]),be=v.useCallback(()=>{M(),f({type:"newChat"})},[M]),Q=v.useCallback(async R=>{try{await r.deleteThread(R),g.current.thread?.id===R&&M(),f({type:"threadDeleted",id:R})}catch{f({type:"notice",notice:{kind:"text",key:"deleteError"}})}},[r,M]),fe=v.useMemo(()=>fs(p.thread),[p.thread]),W=v.useCallback(R=>{const{thread:T}=g.current;if(!T||g.current.turn)return;const w=_p(fs(T).index,R),P=T.current_leaf_id;!w||w===P||(f({type:"leaf",leafId:w}),r.setLeaf(T.id,w).catch(()=>{f({type:"leaf",leafId:P}),f({type:"notice",notice:{kind:"text",key:"branch.error"}})}))},[r]),U=v.useCallback((R,T)=>{const w=g.current.thread?.messages.find(H=>H.id===R);if(!w)return;const P=w.rating,le=T===P?null:T;f({type:"rating",messageId:R,rating:le}),r.rate(R,le).catch(()=>{f({type:"rating",messageId:R,rating:P}),f({type:"notice",notice:{kind:"text",key:"ratingError"}})})},[r]),me=v.useCallback(async(R,T,w)=>{const P=g.current.thread?.messages.find(le=>le.id===R);try{return await r.feedback(R,T,w),f({type:"rating",messageId:R,rating:P?.rating??null,feedback:T,feedbackReason:w??""}),!0}catch{return!1}},[r]),_e=v.useCallback(R=>{f({type:"mode",mode:R});try{Bp()?.setItem(Vp,R)}catch{}},[]),xe=v.useCallback(()=>{f({type:"notice",notice:null})},[]),ye=v.useCallback((R,T)=>Ct(a,R,T),[a]),q=v.useMemo(()=>({state:p,lang:a,api:r,t:ye,path:fe.path,index:fe.index,send:D,stop:Z,openThread:re,newChat:be,deleteThread:Q,refreshThreads:E,switchBranch:W,rate:U,saveFeedback:me,selectMode:_e,reload:()=>{S(),E()},dismissNotice:xe}),[p,a,r,ye,fe,D,Z,re,be,Q,E,W,U,me,_e,S,xe]);return c.jsx(Hp.Provider,{value:q,children:d})},Wp=r=>v.useSyncExternalStore(a=>{if(typeof matchMedia>"u")return()=>{};const o=matchMedia(r);return o.addEventListener("change",a),()=>{o.removeEventListener("change",a)}},()=>typeof matchMedia<"u"&&matchMedia(r).matches,()=>!1),rx=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),nx=(r,a)=>{if(r.getAttribute("tabindex")==="-1"||r.getAttribute("aria-hidden")==="true"||getComputedStyle(r).visibility==="hidden")return!1;for(let o=r;o;o=o.parentElement){if(o.hasAttribute("inert")||o.hasAttribute("hidden")||getComputedStyle(o).display==="none")return!1;if(o===a)break}return!a.closest("[inert]")},Up=r=>Array.from(r.querySelectorAll(rx)).filter(a=>nx(a,r)),Cr=(r,a)=>{v.useLayoutEffect(()=>{r.current?.toggleAttribute("inert",a)},[r,a])},Qp=r=>{const a=r.getRootNode();return a instanceof ShadowRoot||a instanceof Document?a.activeElement:null},Do=(r,a,o)=>{const i=v.useRef(o);v.useEffect(()=>{i.current=o}),v.useEffect(()=>{const d=r.current;if(!a||!d)return;const p=Qp(d);(d.querySelector("[data-autofocus]")??Up(d)[0])?.focus({preventScroll:!0});const f=g=>{if(g.key!=="Tab")return;const m=Up(d),b=m[0],x=m[m.length-1];if(!b||!x){g.preventDefault();return}const k=Qp(d);g.shiftKey&&(k===b||!d.contains(k))?(g.preventDefault(),x.focus()):!g.shiftKey&&(k===x||!d.contains(k))&&(g.preventDefault(),b.focus())};return d.addEventListener("keydown",f),()=>{d.removeEventListener("keydown",f),((p instanceof HTMLElement&&p.tagName!=="BODY"&&p.isConnected&&!d.contains(p)?p:null)??i.current?.())?.focus({preventScroll:!0})}},[r,a])},ax=8,ox=9,Bt=(r,a)=>r.find(o=>o.kind===a),Kp=r=>r.filter(a=>a.kind==="report").at(-1),lx=r=>r.filter(a=>a.kind==="export").flatMap(a=>a.files),ix=(r,a)=>{const o=r.findIndex(p=>p.id===a),i=o>0?r[o-1]:void 0,d=o>=0?r[o+1]:void 0;return{question:i?.role==="user"?i.content:"",reply:d?.role==="user"?d.content:""}},sx=500,cx=(r,a,o)=>{const i=a.trim();if(i.length<1||i.length>sx)return;const d=r[r.length-1];if(d?.role!=="assistant")return;const p=Bt(d.blocks,"clarification");if(p?.allow_free_text&&fp(p,{isLastInBranch:!0,now:o})==="open")return{clarification_id:p.id,slot:p.slot,value:null,free_text:i}},dx=r=>{if(!(r instanceof HTMLElement))return!1;if(r.isContentEditable)return!0;const a=r.tagName;return a==="TEXTAREA"||a==="SELECT"||a==="INPUT"&&!["button","checkbox","radio"].includes(r.type)},ux=r=>typeof r=="number"&&Number.isFinite(r)?r:null,hs=r=>typeof r=="string"?r:typeof r=="number"&&Number.isFinite(r)?String(r):"",la={messageId:null,sectionId:null,fullscreen:!1,view:"chat"},gs=(r,a=null)=>({messageId:r,sectionId:a,fullscreen:!1,view:"dashboard"}),Xp=v.createContext(null),Lr=()=>{},px={state:la,open:Lr,toggle:Lr,autoOpen:Lr,close:Lr,setSection:Lr,setFullscreen:Lr,setView:Lr},pr=()=>v.useContext(Xp)??px,fx=1200;function hx(r){const{state:a,setFullscreen:o,close:i}=pr(),d=v.useRef({fullscreen:a.fullscreen,setFullscreen:o,close:i});v.useEffect(()=>{d.current={fullscreen:a.fullscreen,setFullscreen:o,close:i}}),v.useEffect(()=>{if(!r)return;const p=f=>{if(f.key!=="Escape"||f.defaultPrevented)return;f.preventDefault();const g=d.current;g.fullscreen?g.setFullscreen(!1):g.close()};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[r])}const gx=(r,a,o)=>r&&!a&&!o,mx=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bx=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,i)=>i?i.toUpperCase():o.toLowerCase()),Gp=r=>{const a=bx(r);return a.charAt(0).toUpperCase()+a.slice(1)},Zp=(...r)=>r.filter((a,o,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===o).join(" ").trim(),xx=r=>{for(const a in r)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var vx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yx=v.forwardRef(({color:r="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:d="",children:p,iconNode:f,...g},m)=>v.createElement("svg",{ref:m,...vx,width:a,height:a,stroke:r,strokeWidth:i?Number(o)*24/Number(a):o,className:Zp("lucide",d),...!p&&!xx(g)&&{"aria-hidden":"true"},...g},[...f.map(([b,x])=>v.createElement(b,x)),...Array.isArray(p)?p:[p]])),ce=(r,a)=>{const o=v.forwardRef(({className:i,...d},p)=>v.createElement(yx,{ref:p,iconNode:a,className:Zp(`lucide-${mx(Gp(r))}`,`lucide-${r}`,i),...d}));return o.displayName=Gp(r),o},wx=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Yp=ce("arrow-down",wx),kx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Sx=ce("arrow-right",kx),jx=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Nx=ce("arrow-up-down",jx),_x=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Jp=ce("arrow-up",_x),Ex=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Oo=ce("book-open",Ex),zx=[["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"}]],Cx=ce("bot",zx),Lx=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]],Mx=ce("chart-column-big",Lx),Ix=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mr=ce("check",Ix),Px=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cn=ce("chevron-down",Px),Rx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ef=ce("chevron-left",Rx),Tx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$o=ce("chevron-right",Tx),Ax=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ir=ce("circle-alert",Ax),Fx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],tf=ce("circle-minus",Fx),Dx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ms=ce("clock",Dx),Ox=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],bs=ce("copy",Ox),$x=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],qx=ce("database",$x),Vx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],rf=ce("download",Vx),Hx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],nf=ce("external-link",Hx),Bx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]],Wx=ce("file-chart-column-increasing",Bx),Ux=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Qx=ce("file-down",Ux),Kx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Xx=ce("file-text",Kx),Gx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Zx=ce("globe",Gx),Yx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],af=ce("info",Yx),Jx=[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]],ev=ce("landmark",Jx),tv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pr=ce("loader-circle",tv),rv=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],of=ce("lock",rv),nv=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],av=ce("map",nv),ov=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],lf=ce("maximize-2",ov),lv=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],iv=ce("message-circle-question",lv),sv=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],cv=ce("message-circle",sv),dv=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]],sf=ce("message-square-text",dv),uv=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],cf=ce("message-square",uv),pv=[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],df=ce("minimize-2",pv),fv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],hv=ce("panel-left-close",fv),gv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],mv=ce("panel-left",gv),bv=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],xv=ce("paperclip",bv),vv=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],uf=ce("pen-line",vv),yv=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],wv=ce("pencil",yv),kv=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],Sv=ce("receipt",kv),jv=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],pf=ce("rotate-ccw",jv),Nv=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],ff=ce("rotate-cw",Nv),_v=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],Ev=ce("scale",_v),zv=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ia=ce("search",zv),Cv=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Lv=ce("settings",Cv),Mv=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],xs=ce("sparkles",Mv),Iv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],hf=ce("square",Iv),Pv=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Rv=ce("star",Pv),Tv=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],Av=ce("table-2",Tv),Fv=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Dv=ce("trash-2",Fv),Ov=[["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"}]],qo=ce("triangle-alert",Ov),$v=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],qv=ce("trending-up",$v),Vv=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Hv=ce("users",Vv),Bv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],sa=ce("x",Bv);function gf(r){var a,o,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r))for(a=0;a<r.length;a++)r[a]&&(o=gf(r[a]))&&(i&&(i+=" "),i+=o);else for(a in r)r[a]&&(i&&(i+=" "),i+=a);return i}function Wv(){for(var r,a,o=0,i="";o<arguments.length;)(r=arguments[o++])&&(a=gf(r))&&(i&&(i+=" "),i+=a);return i}const vs="-",Uv=r=>{const a=Kv(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=r;return{getClassGroupId:d=>{const p=d.split(vs);return p[0]===""&&p.length!==1&&p.shift(),mf(p,a)||Qv(d)},getConflictingClassGroupIds:(d,p)=>{const f=o[d]||[];return p&&i[d]?[...f,...i[d]]:f}}},mf=(r,a)=>{if(r.length===0)return a.classGroupId;const o=r[0],i=a.nextPart.get(o),d=i?mf(r.slice(1),i):void 0;if(d)return d;if(a.validators.length===0)return;const p=r.join(vs);return a.validators.find(({validator:f})=>f(p))?.classGroupId},bf=/^\[(.+)\]$/,Qv=r=>{if(bf.test(r)){const a=bf.exec(r)[1],o=a?.substring(0,a.indexOf(":"));if(o)return"arbitrary.."+o}},Kv=r=>{const{theme:a,prefix:o}=r,i={nextPart:new Map,validators:[]};return Gv(Object.entries(r.classGroups),o).forEach(([d,p])=>{ys(p,i,d,a)}),i},ys=(r,a,o,i)=>{r.forEach(d=>{if(typeof d=="string"){const p=d===""?a:xf(a,d);p.classGroupId=o;return}if(typeof d=="function"){if(Xv(d)){ys(d(i),a,o,i);return}a.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([p,f])=>{ys(f,xf(a,p),o,i)})})},xf=(r,a)=>{let o=r;return a.split(vs).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},Xv=r=>r.isThemeGetter,Gv=(r,a)=>a?r.map(([o,i])=>{const d=i.map(p=>typeof p=="string"?a+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([f,g])=>[a+f,g])):p);return[o,d]}):r,Zv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let a=0,o=new Map,i=new Map;const d=(p,f)=>{o.set(p,f),a++,a>r&&(a=0,i=o,o=new Map)};return{get(p){let f=o.get(p);if(f!==void 0)return f;if((f=i.get(p))!==void 0)return d(p,f),f},set(p,f){o.has(p)?o.set(p,f):d(p,f)}}},vf="!",Yv=r=>{const{separator:a,experimentalParseClassName:o}=r,i=a.length===1,d=a[0],p=a.length,f=g=>{const m=[];let b=0,x=0,k;for(let M=0;M<g.length;M++){let $=g[M];if(b===0){if($===d&&(i||g.slice(M,M+p)===a)){m.push(g.slice(x,M)),x=M+p;continue}if($==="/"){k=M;continue}}$==="["?b++:$==="]"&&b--}const S=m.length===0?g:g.substring(x),E=S.startsWith(vf),C=E?S.substring(1):S,_=k&&k>x?k-x:void 0;return{modifiers:m,hasImportantModifier:E,baseClassName:C,maybePostfixModifierPosition:_}};return o?g=>o({className:g,parseClassName:f}):f},Jv=r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(i=>{i[0]==="["?(a.push(...o.sort(),i),o=[]):o.push(i)}),a.push(...o.sort()),a},e1=r=>({cache:Zv(r.cacheSize),parseClassName:Yv(r),...Uv(r)}),t1=/\s+/,r1=(r,a)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:d}=a,p=[],f=r.trim().split(t1);let g="";for(let m=f.length-1;m>=0;m-=1){const b=f[m],{modifiers:x,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:E}=o(b);let C=!!E,_=i(C?S.substring(0,E):S);if(!_){if(!C){g=b+(g.length>0?" "+g:g);continue}if(_=i(S),!_){g=b+(g.length>0?" "+g:g);continue}C=!1}const M=Jv(x).join(":"),$=k?M+vf:M,X=$+_;if(p.includes(X))continue;p.push(X);const ae=d(_,C);for(let G=0;G<ae.length;++G){const D=ae[G];p.push($+D)}g=b+(g.length>0?" "+g:g)}return g};function n1(){let r=0,a,o,i="";for(;r<arguments.length;)(a=arguments[r++])&&(o=yf(a))&&(i&&(i+=" "),i+=o);return i}const yf=r=>{if(typeof r=="string")return r;let a,o="";for(let i=0;i<r.length;i++)r[i]&&(a=yf(r[i]))&&(o&&(o+=" "),o+=a);return o};function a1(r,...a){let o,i,d,p=f;function f(m){const b=a.reduce((x,k)=>k(x),r());return o=e1(b),i=o.cache.get,d=o.cache.set,p=g,g(m)}function g(m){const b=i(m);if(b)return b;const x=r1(m,o);return d(m,x),x}return function(){return p(n1.apply(null,arguments))}}const Ie=r=>{const a=o=>o[r]||[];return a.isThemeGetter=!0,a},wf=/^\[(?:([a-z-]+):)?(.+)\]$/i,o1=/^\d+\/\d+$/,l1=new Set(["px","full","screen"]),i1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,s1=/\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$/,c1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,d1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wt=r=>dn(r)||l1.has(r)||o1.test(r),fr=r=>un(r,"length",v1),dn=r=>!!r&&!Number.isNaN(Number(r)),ws=r=>un(r,"number",dn),ca=r=>!!r&&Number.isInteger(Number(r)),p1=r=>r.endsWith("%")&&dn(r.slice(0,-1)),we=r=>wf.test(r),hr=r=>i1.test(r),f1=new Set(["length","size","percentage"]),h1=r=>un(r,f1,kf),g1=r=>un(r,"position",kf),m1=new Set(["image","url"]),b1=r=>un(r,m1,w1),x1=r=>un(r,"",y1),da=()=>!0,un=(r,a,o)=>{const i=wf.exec(r);return i?i[1]?typeof a=="string"?i[1]===a:a.has(i[1]):o(i[2]):!1},v1=r=>s1.test(r)&&!c1.test(r),kf=()=>!1,y1=r=>d1.test(r),w1=r=>u1.test(r),k1=()=>{const r=Ie("colors"),a=Ie("spacing"),o=Ie("blur"),i=Ie("brightness"),d=Ie("borderColor"),p=Ie("borderRadius"),f=Ie("borderSpacing"),g=Ie("borderWidth"),m=Ie("contrast"),b=Ie("grayscale"),x=Ie("hueRotate"),k=Ie("invert"),S=Ie("gap"),E=Ie("gradientColorStops"),C=Ie("gradientColorStopPositions"),_=Ie("inset"),M=Ie("margin"),$=Ie("opacity"),X=Ie("padding"),ae=Ie("saturate"),G=Ie("scale"),D=Ie("sepia"),te=Ie("skew"),Z=Ie("space"),re=Ie("translate"),be=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",we,a],W=()=>[we,a],U=()=>["",Wt,fr],me=()=>["auto",dn,we],_e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],xe=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",we],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[dn,we];return{cacheSize:500,separator:":",theme:{colors:[da],spacing:[Wt,fr],blur:["none","",hr,we],brightness:w(),borderColor:[r],borderRadius:["none","","full",hr,we],borderSpacing:W(),borderWidth:U(),contrast:w(),grayscale:R(),hueRotate:w(),invert:R(),gap:W(),gradientColorStops:[r],gradientColorStopPositions:[p1,fr],inset:fe(),margin:fe(),opacity:w(),padding:W(),saturate:w(),scale:w(),sepia:R(),skew:w(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[hr]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[..._e(),we]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ca,we]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",ca,we]}],"grid-cols":[{"grid-cols":[da]}],"col-start-end":[{col:["auto",{span:["full",ca,we]},we]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[da]}],"row-start-end":[{row:["auto",{span:[ca,we]},we]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[X]}],px:[{px:[X]}],py:[{py:[X]}],ps:[{ps:[X]}],pe:[{pe:[X]}],pt:[{pt:[X]}],pr:[{pr:[X]}],pb:[{pb:[X]}],pl:[{pl:[X]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,a]}],"min-w":[{"min-w":[we,a,"min","max","fit"]}],"max-w":[{"max-w":[we,a,"none","full","min","max","fit","prose",{screen:[hr]},hr]}],h:[{h:[we,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,a,"auto","min","max","fit"]}],"font-size":[{text:["base",hr,fr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ws]}],"font-family":[{font:[da]}],"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:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",dn,ws]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wt,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wt,fr]}],"underline-offset":[{"underline-offset":["auto",Wt,we]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._e(),g1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",h1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},b1]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[E]}],"gradient-via":[{via:[E]}],"gradient-to":[{to:[E]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[...xe(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:xe()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...xe()]}],"outline-offset":[{"outline-offset":[Wt,we]}],"outline-w":[{outline:[Wt,fr]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[Wt,fr]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",hr,x1]}],"shadow-color":[{shadow:[da]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",hr,we]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[k]}],saturate:[{saturate:[ae]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[ae]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[ca,we]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Wt,fr,ws]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},S1=a1(k1),B=(...r)=>S1(Wv(r));v.createContext(!0),v.createContext(!1);const ks="opacity-0 transition-opacity motion-reduce:transition-none group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",Sf=120,j1=200,jf=".xls,.xlsx,.csv,.txt,.md",Ss=2e3,N1=4,ua=["wrong_number","wrong_indicator","wrong_territory","wrong_period","not_answered","language","slow","other"],_1=[1,2,3,4,5],pn=r=>{if(!r)return null;try{const{protocol:a}=new URL(r,window.location.href);return a==="http:"||a==="https:"?r:null}catch{return null}},js=async r=>{try{return await navigator.clipboard.writeText(r),!0}catch{return E1(r)}},E1=r=>{const a=document.createElement("textarea");a.value=r,a.setAttribute("readonly",""),a.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.appendChild(a),a.select();try{return document.execCommand("copy")}catch{return!1}finally{a.remove()}},z1=(r,a)=>{const o=document.createElement("a");o.href=r,o.download=a,o.rel="noopener",o.style.display="none",document.body.append(o),o.click(),o.remove(),window.setTimeout(()=>{URL.revokeObjectURL(r)},6e4)},C1=["group.pinned","group.today","group.yesterday","group.week","group.earlier"],Nf=864e5,L1=(r,a=new Date)=>{const o=new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime(),i=new Map;for(const d of r){const p=new Date(d.updated_at).getTime();let f;d.pinned?f="group.pinned":p>=o?f="group.today":p>=o-Nf?f="group.yesterday":p>=o-7*Nf?f="group.week":f="group.earlier",i.set(f,[...i.get(f)??[],d])}return C1.flatMap(d=>{const p=i.get(d);return p?[[d,p]]:[]})},M1=()=>{const{t:r}=J(),{state:a,setView:o}=pr(),i=(d,p)=>c.jsx("button",{type:"button",role:"tab","aria-selected":a.view===d,onClick:()=>{o(d)},className:B("inline-flex h-7 items-center whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",a.view===d?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:p});return c.jsxs("div",{part:"dashboard-tabs",role:"tablist","aria-label":r("dashboard.view"),className:"inline-flex shrink-0 gap-0.5 rounded-md border bg-background p-0.5",children:[i("chat",r("dashboard.chatTab")),i("dashboard",r("dashboard.dashboardTab"))]})},I1=({wide:r,chat:a,panel:o,onPanelFocusChange:i})=>{const{state:d}=pr(),{view:p,fullscreen:f}=d,g=o!=null,m=g&&!r&&p==="dashboard",b=g&&!r&&p==="chat"&&!f,x=v.useRef(null);return Cr(x,g&&f),c.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1",children:[c.jsx("div",{ref:x,hidden:m,className:B("relative min-h-0 min-w-0 flex-1 flex-col",m?"hidden":"flex"),children:a}),g?c.jsx("aside",{part:"dashboard","data-fullscreen":f,hidden:b,onFocus:()=>{i?.(!0)},onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||i?.(!1)},className:B("min-h-0 min-w-0 flex-col bg-background",b?"hidden":"flex",f&&"absolute inset-0 z-30",!f&&r&&"w-1/2 min-w-[480px] shrink-0 border-l",!f&&!r&&"flex-1 border-t"),children:o}):null]})};var P1=Object.defineProperty,Ns=(r,a)=>P1(r,"name",{value:a,configurable:!0});function _s(r,a){if(typeof r=="function")return r(a);r!=null&&(r.current=a)}Ns(_s,"setRef");function _f(...r){return a=>{let o=!1;const i=r.map(d=>{const p=_s(d,a);return!o&&typeof p=="function"&&(o=!0),p});if(o)return()=>{for(let d=0;d<i.length;d++){const p=i[d];typeof p=="function"?p():_s(r[d],null)}}}}Ns(_f,"composeRefs");function Ef(...r){return v.useCallback(_f(...r),r)}Ns(Ef,"useComposedRefs");var R1=Object.defineProperty,pt=(r,a)=>R1(r,"name",{value:a,configurable:!0});function zf(r){const a=v.forwardRef((o,i)=>{let{children:d,...p}=o,f=null,g=!1;const m=[];d=Rf(d),v.Children.forEach(d,S=>{if(If(S)){g=!0;const E=S;let C="child"in E.props?E.props.child:E.props.children;for(;Es(C)&&typeof Vo=="function";)C=Vo(C._payload);f=F1(E,C),m.push(f?.props?.children)}else m.push(S)}),f?f=v.cloneElement(f,void 0,m):!g&&v.Children.count(d)===1&&v.isValidElement(d)&&(f=d);const b=f?Mf(f):void 0,x=Ef(i,b);if(!f){if(d||d===0)throw new Error(g?$1(r):O1(r));return d}const k=Lf(p,f.props??{});return f.type!==v.Fragment&&(k.ref=i?x:b),v.cloneElement(f,k)});return a.displayName=`${r}.Slot`,a}pt(zf,"createSlot");var T1=zf("Slot"),Cf=Symbol.for("radix.slottable");function A1(r){const a=pt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return a.displayName=`${r}.Slottable`,a.__radixId=Cf,a}pt(A1,"createSlottable");var F1=pt((r,a)=>"child"in r.props?v.isValidElement(a)?v.cloneElement(a,void 0,r.props.children(a.props.children)):null:v.isValidElement(a)?a:null,"getSlottableElementFromSlottable");function Lf(r,a){const o={...a};for(const i in a){const d=r[i],p=a[i];/^on[A-Z]/.test(i)?d&&p?o[i]=(...f)=>{const g=p(...f);return d(...f),g}:d&&(o[i]=d):i==="style"?o[i]={...d,...p}:i==="className"?o[i]=[d,p].filter(Boolean).join(" "):i==="aria-describedby"&&(o[i]=Tf(p,d))}return{...r,...o}}pt(Lf,"mergeProps");function Mf(r){let a=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?r.ref:(a=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}pt(Mf,"getElementRef");function If(r){return v.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Cf}pt(If,"isSlottable");var D1=Symbol.for("react.lazy");function Es(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===D1&&"_payload"in r&&Pf(r._payload)}pt(Es,"isLazyComponent");function Pf(r){return typeof r=="object"&&r!==null&&"then"in r}pt(Pf,"isPromiseLike");function Rf(r){let a=r;for(;Es(a)&&typeof Vo=="function";)a=Vo(a._payload);return a}pt(Rf,"useUnwrappedLazy");function Tf(...r){const a=new Set;for(const o of r)if(typeof o=="string")for(const i of String(o).trim().split(/\s+/))i&&a.add(i);return a.size>0?Array.from(a).join(" "):void 0}pt(Tf,"concatAriaDescribedby");var O1=pt(r=>`${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),$1=pt(r=>`${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Vo=Ym[" use ".trim().toString()];function Af(r){var a,o,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var d=r.length;for(a=0;a<d;a++)r[a]&&(o=Af(r[a]))&&(i&&(i+=" "),i+=o)}else for(o in r)r[o]&&(i&&(i+=" "),i+=o);return i}function q1(){for(var r,a,o=0,i="",d=arguments.length;o<d;o++)(r=arguments[o])&&(a=Af(r))&&(i&&(i+=" "),i+=a);return i}const Ff=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Df=q1,V1=(r,a)=>o=>{var i;if(a?.variants==null)return Df(r,o?.class,o?.className);const{variants:d,defaultVariants:p}=a,f=Object.keys(d).map(b=>{const x=o?.[b],k=p?.[b];if(x===null)return null;const S=Ff(x)||Ff(k);return d[b][S]}),g=o&&Object.entries(o).reduce((b,x)=>{let[k,S]=x;return S===void 0||(b[k]=S),b},{}),m=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((b,x)=>{let{class:k,className:S,...E}=x;return Object.entries(E).every(C=>{let[_,M]=C;return Array.isArray(M)?M.includes({...p,...g}[_]):{...p,...g}[_]===M})?[...b,k,S]:b},[]);return Df(r,f,m,o?.class,o?.className)},Of=V1("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 w-[max-content] disabled:bg-disabled disabled:text-disabled-foreground overflow-hidden shrink-0 whitespace-nowrap [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hovered focus-visible:ring-primary active:bg-primary-pressed",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive-hovered focus-visible:ring-destructive active:bg-destructive-pressed",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hovered focus-visible:ring-primary active:bg-secondary-pressed hover:text-primary-foreground active:text-primary-foreground",ghost:"hover:bg-accent hover:text-accent-foreground focus-visible:ring-primary disabled:bg-transparent",link:"overflow-visible text-primary underline-offset-4 hover:text-primary-hovered focus-visible:ring-primary active:text-primary-pressed disabled:bg-transparent",outline:"bg-secondary text-secondary-foreground hover:bg-secondary-hovered focus-visible:ring-primary active:bg-secondary-pressed hover:text-primary-foreground active:text-primary-foreground",input:"bg-background border border-input focus-visible:ring-primary hover:border-primary active:border-primary-pressed"},size:{default:"h-10 px-4 text-base",xsm:"h-5 px-1 text-xs",xs:"h-6 px-3",sm:"h-8 px-3",md:"h-9 px-4",icon:"size-8 text-base",smIcon:"size-6 rounded-full text-base",lgIcon:"size-10 text-base"},isMenu:{true:"w-full justify-start"}},defaultVariants:{variant:"default",size:"default",isMenu:!1}}),ge=v.forwardRef(({className:r,variant:a,size:o,asChild:i=!1,loading:d=!1,isMenu:p=!1,type:f,...g},m)=>{const b=i?{}:{type:f??"button"};return c.jsx(i?T1:"button",d?{className:B(Of({variant:a,size:o,className:r,isMenu:p})),ref:m,...b,...g,disabled:!0,children:c.jsx(Pr,{className:"size-4 animate-spin min-w-16"})}:{className:B(Of({variant:a,size:o,className:r,isMenu:p})),ref:m,...b,...g})});ge.displayName="Button";function zs(r,a,o){if(r===null)return zt(null,a);const i=zt(r,a,o);return r>0?`+${i}`:i}function $f(r){return[r.territory_code??r.territory_name,r.item].filter(Boolean).join("|")}function qf(r,a){return r.national?.period===a?r.national.value:null}function H1(r,a,o){const i=ta(r);return pa(r,{period:a,mode:"value",base:"median"}).filter(d=>d.value!==null).slice(0,o).map(d=>{const p=new Map(r.data.filter(f=>$f(f)===d.key).map(f=>[f.period,f.value]));return{key:d.key,name:d.name,points:i.map(f=>({period:f,value:p.get(f)??null}))}})}function B1(r,a){if(new Set(r.data.map(i=>i.territory_code??i.territory_name??"")).size!==1||!r.data.every(i=>i.item!=null&&i.item!==""))return a;const o=new Map(r.data.map(i=>[$f(i),i.item??""]));return a.map(i=>({...i,name:o.get(i.key)??i.name}))}function pa(r,a){return B1(r,mb(r,a))}function Vf(r,a,o){const i=qf(r,a);if(i===null||r.value_kind!=="level")return i;const d=o.filter(p=>p!==null&&Number.isFinite(p));return d.length===0?null:i<=Math.max(...d)*1.05?i:null}const W1=["12 76% 61%","173 58% 39%","197 37% 24%","43 74% 66%","27 87% 67%"],Cs=r=>r.clientWidth>0&&r.clientWidth<U1,U1=360;function Ls(r){const a=document.createElement("span");r.appendChild(a);const o=d=>(a.style.color=d,getComputedStyle(a).color),i={series:W1.map((d,p)=>o(`hsl(var(--chart-${p+1}, ${d}))`)),text:o("hsl(var(--foreground))"),muted:o("hsl(var(--muted-foreground))"),border:o("hsl(var(--chart-grid, var(--border)))"),negative:o("hsl(var(--chart-neg, var(--destructive)))"),reference:o("hsl(var(--chart-ref, var(--foreground)))"),font:getComputedStyle(r).fontFamily,narrow:Cs(r)};return a.remove(),i}function Q1({option:r,signature:a,label:o,height:i}){const d=v.useRef(null),p=v.useRef(null),f=v.useRef(r);return v.useEffect(()=>{f.current=r}),v.useEffect(()=>{const g=d.current;if(!g)return;let m=!0,b;return import("./echarts-B6eiFnZN.js").then(({init:x})=>{if(!m)return;p.current=x(g),p.current.setOption(f.current(Ls(g)));let k=Cs(g);b=new ResizeObserver(()=>{Cs(g)!==k&&(k=!k,p.current?.setOption(f.current(Ls(g)),!0)),p.current?.resize()}),b.observe(g)}).catch(()=>{}),()=>{m=!1,b?.disconnect(),p.current?.dispose(),p.current=null}},[]),v.useEffect(()=>{const g=d.current;g&&p.current&&p.current.setOption(f.current(Ls(g)),!0)},[a]),c.jsx("div",{ref:d,role:"img","aria-label":o,style:{height:i},className:"w-full min-w-0"})}const K1=[[/товариществ[оа] с ограниченной ответственностью/giu,"\u0422\u041E\u041E"],[/республиканско(е|го) государственно(е|го) учреждени[ея]/giu,"\u0420\u0413\u0423"],[/республиканско(е|го) государственно(е|го) предприяти[ея]/giu,"\u0420\u0413\u041F"],[/государственно(е|го) учреждени[ея]/giu,"\u0413\u0423"],[/акционерно(е|го) обществ[оа]/giu,"\u0410\u041E"],[/индивидуальный предприниматель/giu,"\u0418\u041F"]],X1=r=>K1.reduce((a,[o,i])=>a.replace(o,i),r).replace(/\s+/g," ").trim();function G1(r){if(r.trend)return["line","area","column"];const a=["bar","column"],o=r.rows.map(i=>i.value).filter(i=>i!==null);return!r.signed&&o.length>1&&o.every(i=>i>0)&&a.push("pie"),!r.signed&&r.periods.length>1&&r.series.length>0&&a.push("line"),a}const Z1=.3;function Y1(r,a,o,i){const{lang:d,decimals:p}=i,f=D=>typeof D=="number"?a.signed?zs(D,d,p):zt(D,d,p):"\u2014",g=new Intl.NumberFormat(d,{notation:"compact",maximumFractionDigits:1}),m={color:o.muted,formatter:D=>g.format(D)},b={lineStyle:{color:o.border}},x=D=>te=>{const Z=X1(te);return Z.length>D?`${Z.slice(0,D-1)}\u2026`:Z},k={color:o.muted,formatter:x(o.narrow?12:22)},S={animationDuration:400,color:o.series,textStyle:{fontFamily:o.font,color:o.text},tooltip:{trigger:r==="pie"?"item":"axis",confine:!0,valueFormatter:f}},E=a.rows.map(D=>D.value).filter(D=>D!==null),C=!a.signed&&E.every(D=>D>0)&&!vb(E);if(r==="pie")return{...S,legend:{type:"scroll",bottom:0,textStyle:{color:o.muted}},series:[{type:"pie",radius:["40%","68%"],center:["50%","44%"],itemStyle:{borderColor:"transparent",borderRadius:4},label:{show:!1},data:a.rows.filter(D=>D.value!==null).map(D=>({name:D.name,value:D.value}))}]};if(a.trend||r==="line"||r==="area")return{...S,legend:{type:"scroll",bottom:0,textStyle:{color:o.muted}},grid:{left:8,right:16,top:12,bottom:32,containLabel:!0},xAxis:{type:"category",data:a.periods,axisLabel:{color:o.muted},boundaryGap:r==="column"},yAxis:{type:"value",scale:r!=="column",axisLabel:m,splitLine:b},series:a.series.map(D=>({type:r==="column"?"bar":"line",name:D.name,data:a.periods.map(te=>D.points.find(Z=>Z.period===te)?.value??null),symbolSize:6,...r==="area"?{areaStyle:{opacity:.15}}:{}}))};const _=r==="bar",M=_?[...a.rows].reverse():a.rows,$=M.map(D=>D.name),X=a.national??null,ae={type:"value",scale:C,axisLabel:m,splitLine:b,...o.narrow?{splitNumber:2}:{}},G={type:"category",data:$,axisTick:{show:!1},axisLabel:_?k:{...k,formatter:x(14),rotate:30,interval:0}};return{...S,tooltip:{...S.tooltip,axisPointer:{type:"shadow"}},grid:{left:8,right:_?56:16,top:X===null?12:24,bottom:8,containLabel:!0},xAxis:_?ae:G,yAxis:_?G:ae,series:[{type:"bar",barMaxWidth:28,data:M.map(D=>({value:D.value,itemStyle:{color:D.value!==null&&D.value<0?o.negative:o.series[0],opacity:a.highlightKey!==void 0&&D.key!==a.highlightKey?Z1:1,borderRadius:_?[0,4,4,0]:[4,4,0,0]}})),label:{show:_,position:"right",color:o.text,formatter:D=>f(D.value)},...X===null?{}:{markLine:{symbol:"none",silent:!0,lineStyle:{type:"dashed",color:o.reference},label:{formatter:i.nationalLabel(f(X)),color:o.reference,position:_?"end":"insideEndTop"},data:[_?{xAxis:X}:{yAxis:X}]}}}]}}const J1=5,Hf=({section:r,period:a,rows:o,national:i=null,signed:d=!1,highlightKey:p,compact:f=!1,label:g})=>{const{lang:m,t:b}=J(),x={rows:o,series:H1(r,a,J1),periods:ta(r),trend:r.shape==="trend",national:i,signed:d,highlightKey:p},k=G1(x),[S,E]=v.useState(k[0]),C=k.includes(S)?S:k[0],_=C==="bar"&&!x.trend?Math.max(f?180:240,o.length*24+40):f?240:320;return c.jsxs("div",{part:"section-chart",className:"flex min-w-0 flex-col gap-2",children:[k.length>1?c.jsx("div",{role:"group","aria-label":b("chart.kinds"),className:"inline-flex flex-wrap gap-0.5 self-start rounded-md border bg-background p-0.5",children:k.map(M=>c.jsx("button",{type:"button","aria-pressed":M===C,onClick:()=>{E(M)},className:B("inline-flex h-7 items-center whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",M===C?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:b(`chart.kind.${M}`)},M))}):null,c.jsx(Q1,{label:g,height:_,signature:JSON.stringify([C,m,x]),option:M=>Y1(C,x,M,{lang:m,decimals:r.decimals,nationalLabel:$=>b("chart.national",{value:$})})})]})},Bf=(r,a)=>{const{api:o,lang:i}=J(),d=v.useSyncExternalStore(oa.subscribe,()=>oa.view(r))??(a?ss(a):Dp);v.useEffect(()=>{a&&oa.adopt(r,a,o)},[r,a,o]);const p=v.useCallback(()=>{oa.start(r,o,i)},[r,o,i]),f=v.useCallback(()=>{oa.expire(r)},[r]);return{view:d,start:p,expire:f}},Wf=({messageId:r,block:a,disabled:o=!1,className:i})=>{const{t:d}=J(),{view:p,start:f}=Bf(r,a);return p.phase!=="idle"?null:c.jsxs(ge,{part:"report",variant:"input",size:"sm",className:B("gap-1.5 text-[13px]",i),disabled:o,onClick:f,children:[c.jsx(Qx,{"aria-hidden":"true"}),d("report.create")]})},Uf={pdf:"pdf",doc:"doc",docx:"doc",ppt:"ppt",pptx:"ppt",xls:"xls",xlsx:"xls",csv:"csv"},Ms=r=>{const a=r.lastIndexOf(".");return a<0?"":r.slice(a+1).toLowerCase()},Qf=r=>Object.hasOwn(Uf,r)?Uf[r]??"other":"other",ey={pdf:"bg-file-pdf",doc:"bg-file-doc",ppt:"bg-file-ppt",xls:"bg-file-xls",csv:"bg-file-csv",other:"bg-file-other"},Is=({ext:r,className:a})=>c.jsx("span",{part:"file-type","data-kind":Qf(r),"aria-hidden":"true",className:B("flex size-[34px] shrink-0 items-center justify-center rounded-lg text-[9.5px] font-bold leading-none tracking-[0.02em] text-background",ey[Qf(r)],a),children:r?r.slice(0,4).toUpperCase():"FILE"}),Kf=["byte","kilobyte","megabyte","gigabyte"];function Ps(r,a){let o=r,i=0;for(;o>=1024&&i<Kf.length-1;)o/=1024,i+=1;return new Intl.NumberFormat(a,{style:"unit",unit:Kf[i]??"byte",unitDisplay:"short",maximumFractionDigits:i===0?0:1}).format(o)}const ty=/^\/api\/v1\/((?:report-jobs|messages)\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/files\/\d{1,4})$/i,Xf=r=>{const a=ty.exec(r);return a?.[1]?`${es}/${a[1]}`:null},ry=1e3,ny=async(r,a,o,i)=>{const d=Xf(a);if(!d)return"unavailable";let p;try{p=await(await r.request(d.slice(es.length))).blob()}catch(m){return m instanceof et&&m.status===410?"expired":m instanceof et&&m.status===404?"notFound":"unavailable"}const f=URL.createObjectURL(p),g=document.createElement("a");g.href=f,g.download=o,g.hidden=!0,i.appendChild(g);try{g.click()}finally{g.remove(),window.setTimeout(()=>{URL.revokeObjectURL(f)},ry)}return"ok"},ay=["pdf","docx","pptx","xlsx","csv"],oy=r=>{const a=r.getRootNode();return a instanceof ShadowRoot?a:r.parentElement??r},Gf=({files:r,onExpired:a,className:o})=>{const{api:i,lang:d,t:p}=J(),[f,g]=v.useState(null),[m,b]=v.useState({}),x=v.useRef(m);v.useEffect(()=>{x.current=m});const k=r.filter(E=>ay.includes(E.format)&&Xf(E.download_url)!==null);if(k.length===0)return null;const S=(E,C)=>{f===null&&(g(E.download_url),b(_=>Object.fromEntries(Object.entries(_).filter(([M])=>M!==E.download_url))),ny(i,E.download_url,E.filename,oy(C.currentTarget)).then(_=>{if(g(null),_==="ok")return;const M={...x.current,[E.download_url]:_};b(M),k.every($=>M[$.download_url]==="expired")&&a?.()}))};return c.jsxs("div",{part:"files",role:"group","aria-label":p("files.list"),className:B("flex flex-col gap-1.5",o),children:[c.jsx("div",{className:"text-2xs text-muted-foreground",children:p("files.list")}),c.jsx("ul",{"aria-label":p("files.list"),className:"m-0 flex list-none flex-col gap-1.5 p-0",children:k.map(E=>{const C=f===E.download_url,_=m[E.download_url];return c.jsxs("li",{"data-state":m[E.download_url]??void 0,className:B("flex min-w-0 items-center gap-3 rounded-xl border bg-card p-2",m[E.download_url]&&"border-error/35 bg-error-background"),children:[c.jsx(Is,{ext:E.format}),c.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[c.jsx("span",{className:"truncate text-sm font-medium leading-tight",title:E.filename,children:p(`files.${xp(E.format)}`)}),c.jsxs("span",{className:"text-2xs leading-tight text-muted-foreground",children:[E.format.toUpperCase(),E.size_bytes>0?` \xB7 ${Ps(E.size_bytes,d)}`:null]})]}),_?c.jsxs("span",{role:"alert",className:"flex shrink-0 items-center gap-1.5 text-[13px]",children:[c.jsx(Ir,{className:"text-destructive","aria-hidden":"true"}),p(`files.${_}`)]}):c.jsxs(ge,{variant:"ghost",size:"sm",className:"gap-1.5",title:E.filename,"aria-busy":C,disabled:f!==null,"aria-label":`${p("download")}: ${p(`files.${xp(E.format)}`)}`,onClick:M=>{S(E,M)},children:[C?c.jsx(Pr,{className:"animate-spin motion-reduce:animate-none","aria-hidden":"true"}):c.jsx(rf,{"aria-hidden":"true"}),p("download")]})]},`${E.format}-${E.download_url}`)})})]})},Rs="flex items-center gap-2.5 rounded-xl border px-3 py-2.5 text-sm",Zf=({messageId:r,block:a,className:o})=>{const{t:i}=J(),{view:d,start:p,expire:f}=Bf(r,a);switch(d.phase){case"idle":return null;case"pending":return c.jsxs("div",{part:"report",role:"status","data-state":"pending",className:B(Rs,"border-processing/25 bg-processing-background",o),children:[c.jsx(Pr,{className:"shrink-0 animate-spin text-primary-text motion-reduce:animate-none","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:i("report.pending")})]});case"done":return c.jsx(Gf,{files:d.files,onExpired:f,className:o});case"expired":return c.jsxs("div",{part:"report",role:"status","data-state":"expired",className:B(Rs,"bg-card",o),children:[c.jsx(ms,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:i("report.expired")}),c.jsx(ge,{variant:"input",size:"sm",className:"gap-1.5 text-[13px]",onClick:p,children:i("report.create")})]});case"failed":return c.jsxs("div",{part:"report",role:"alert","data-state":"failed",className:B(Rs,"border-error/30 bg-error-background",o),children:[c.jsx(Ir,{className:"shrink-0 text-destructive","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:i("report.failed")}),c.jsx(ge,{variant:"input",size:"sm",className:"gap-1.5 text-[13px]",onClick:p,children:i("report.retry")})]})}},ly=4;function Ho(r,a,o){const i=xb(r,a);return i==="\u043F.\u043F."?o("dashboard.points"):i}function Yf(r){if(r.length===0)return null;const a=[...r].sort((i,d)=>i-d),o=Math.floor(a.length/2);return a.length%2?a[o]??null:((a[o-1]??0)+(a[o]??0))/2}function fa(r){const a=new Set;return r.filter(o=>!a.has(o.label)&&a.add(o.label)).slice(0,ly)}function iy(r,{period:a,region:o,lang:i,t:d}){if(o===void 0&&a===r.latest_period&&r.kpis.length>0)return fa(r.kpis.map(C=>({label:C.label,value:C.value,sub:C.sub??null})));const p=C=>`${zt(C,i,r.decimals)} ${r.unit.label}`,f=(C,_)=>C===null?zt(null,i):`${zs(C,i,r.decimals)} ${_}`,g=pa(r,{period:a,mode:"value",base:"median"}).filter(C=>C.value!==null),m=g.map(C=>C.value??0),b=g[0],x=g[g.length-1];if(b===void 0||x===void 0)return[];if(o!==void 0){const C=g.findIndex($=>$.key===o),_=g[C];if(_===void 0)return[];const M=Yf(m);return fa([{label:_.name,value:p(_.value),sub:a},{label:d("dashboard.kpi.place"),value:d("dashboard.kpi.placeOf",{n:C+1,m:g.length})},{label:d("dashboard.kpi.deviation"),value:f(M===null||_.value===null?null:_.value-M,Ho(r,"deviation",d))},{label:d("dashboard.kpi.previous"),value:f(_.delta,Ho(r,"change",d))}])}if(r.shape==="trend"){const C=ta(r).filter(G=>G<=a),_=G=>r.data.find(D=>D.period===G&&D.value!==null)?.value??null,M=C[0],$=_(a),X=M===void 0?null:_(M);let ae=null;return $!==null&&X!==null&&M!==a&&(ae=r.value_kind==="level"?X>0?($/X-1)*100:null:$-X),fa([{label:d("dashboard.kpi.last"),value:p($),sub:a},...M!==void 0&&M!==a?[{label:d("dashboard.kpi.first"),value:p(X),sub:M},{label:d("dashboard.kpi.change"),value:f(ae,Ho(r,"change",d))}]:[]])}if(r.shape==="breakdown")return fa([...g.slice(0,3).map(C=>({label:C.name,value:p(C.value),sub:C.share===null?a:`${zt(C.share,i,1)} %`})),...g.length>1?[{label:d("dashboard.kpi.gap"),value:p((b.value??0)-(x.value??0)),sub:`${b.name} \u2212 ${x.name}`}]:[]]);const k=qf(r,a),S=Yf(m),E=[{label:d("dashboard.kpi.max"),value:p(b.value),sub:b.name},{label:d("dashboard.kpi.min"),value:p(x.value),sub:x.name},{label:d("dashboard.kpi.median"),value:p(S),sub:a}];return fa(k!==null?[{label:d("dashboard.kpi.national"),value:p(k),sub:a},...E]:[...E,{label:d("dashboard.kpi.spread"),value:p((b.value??0)-(x.value??0)),sub:`${b.name} \u2212 ${x.name}`}])}const sy=({kpis:r})=>{const{t:a}=J();return r.length===0?null:c.jsx("ul",{"aria-label":a("dashboard.kpis"),className:"m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(9.5rem,1fr))] gap-2.5 p-0",children:r.map((o,i)=>c.jsxs("li",{className:"flex min-w-0 flex-col gap-0.5 rounded-xl border bg-card px-3.5 py-3",children:[c.jsx("span",{"data-kpi-label":"",className:"truncate text-2xs text-muted-foreground",title:o.label,children:o.label}),c.jsx("span",{className:"text-xl font-semibold tabular-nums leading-snug",children:o.value}),o.sub!=null&&o.sub!==""?c.jsx("span",{className:"truncate text-2xs text-muted-foreground",title:o.sub,children:o.sub}):null]},i))})};function Jf({label:r,value:a,options:o,onChange:i}){return c.jsx("div",{role:"group","aria-label":r,className:"inline-flex gap-0.5 rounded-md border bg-background p-0.5",children:o.map(d=>{const p=d.value===a,f=d.disabledHint!==void 0;return c.jsx("button",{type:"button","aria-pressed":p,"aria-disabled":f||void 0,title:d.disabledHint,onClick:()=>{f||i(d.value)},className:B("h-7 whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",p?"bg-secondary text-secondary-foreground":"text-muted-foreground",f?"cursor-not-allowed opacity-50":!p&&"hover:text-foreground"),children:d.label},d.value)})})}const ha="whitespace-nowrap px-3 py-[7px] text-[13px] font-semibold text-foreground",fn="whitespace-nowrap text-right tabular-nums",cy=({section:r,rows:a,mode:o,lang:i,highlightKey:d})=>{const{t:p}=J(),f=r.value_kind==="level",g=o==="value"?null:p(o==="change"?"dashboard.table.change":"dashboard.table.deviation",{unit:Ho(r,o,p)});return c.jsx("div",{className:"max-h-[28rem] overflow-auto overscroll-contain rounded-[10px] border bg-card",children:c.jsxs("table",{className:"w-full border-collapse text-[13.5px]",children:[c.jsx("thead",{className:"sticky top-0 bg-muted",children:c.jsxs("tr",{className:"border-b",children:[c.jsx("th",{scope:"col",className:B(ha,"w-10 text-right"),children:p("dashboard.table.rank")}),c.jsx("th",{scope:"col",className:B(ha,"text-left"),children:p("dashboard.table.position")}),c.jsx("th",{scope:"col",className:B(ha,fn),children:p("dashboard.table.value",{unit:r.unit.label})}),g!==null?c.jsx("th",{scope:"col",className:B(ha,fn),children:g}):null,f?c.jsx("th",{scope:"col",className:B(ha,fn),children:p("dashboard.table.share")}):null]})}),c.jsx("tbody",{children:a.map((m,b)=>c.jsxs("tr",{className:B("h-9 border-b last:border-b-0",m.key===d&&"bg-accent"),children:[c.jsx("td",{className:"px-3 text-right tabular-nums text-muted-foreground",children:b+1}),c.jsx("td",{className:"px-3",children:m.name}),c.jsx("td",{className:B("px-3",fn),children:zt(m.value,i,r.decimals)}),g!==null?c.jsx("td",{className:B("px-3",fn),children:zs(m.display,i,r.decimals)}):null,f?c.jsx("td",{className:B("px-3",fn),children:zt(m.share,i,1)}):null]},m.key))})]})})},Ts="__all__",As="size-8 text-muted-foreground hover:text-foreground",dy=({message:r})=>{const{t:a}=J(),{state:o,setSection:i}=pr(),d=Bt(r.blocks,"dashboard")?.sections??[],p=d.find(g=>g.id===o.sectionId)??d[0];if(p===void 0)return null;const f=d.length>1?c.jsx("div",{role:"tablist","aria-label":a("dashboard.sections"),className:"flex gap-1 self-start overflow-x-auto rounded-md bg-secondary p-1",children:d.map(g=>{const m=g.id===p.id;return c.jsx("button",{type:"button",role:"tab","aria-selected":m,onClick:()=>{i(g.id)},className:B("min-h-8 shrink-0 rounded-lg px-3 py-1.5 text-left text-sm font-medium leading-snug transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",m?"bg-background text-foreground shadow-sm":"text-secondary-foreground hover:text-foreground"),children:g.title},g.id)})}):null;return c.jsx("section",{"aria-label":a("dashboard.label"),className:"flex h-full min-h-0 min-w-0 flex-1 flex-col bg-background",children:c.jsx(uy,{section:p,message:r,tabs:f},p.id)})},eh=({label:r,value:a,onChange:o,children:i,className:d})=>c.jsxs("div",{className:B("flex flex-col gap-1",d),children:[c.jsx("span",{className:"text-2xs text-muted-foreground","aria-hidden":"true",children:r}),c.jsxs("span",{className:"relative inline-flex",children:[c.jsx("select",{"aria-label":r,value:a,onChange:p=>{o(p.target.value)},className:"h-8 w-full min-w-0 appearance-none truncate rounded-md border border-input bg-background py-0 pl-2.5 pr-7 text-sm text-foreground transition-colors hover:bg-muted focus-visible:border-primary focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-secondary motion-reduce:transition-none",children:i}),c.jsx(cn,{className:"pointer-events-none absolute right-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"})]})]}),th=({label:r,children:a})=>c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"text-2xs text-muted-foreground","aria-hidden":"true",children:r}),a]}),uy=({section:r,message:a,tabs:o})=>{const{lang:i,t:d}=J(),{state:p,setFullscreen:f,close:g}=pr(),{fullscreen:m}=p,b=ta(r),[x,k]=v.useState(()=>b.includes(r.latest_period)?r.latest_period:b.at(-1)??r.latest_period),[S,E]=v.useState(),[C,_]=v.useState("value"),[M,$]=v.useState("median"),X=bb(r,x),ae=r.shape==="trend",G=ae||C==="change"&&!X.change||C==="deviation"&&!X.deviation?"value":C,D=M==="national"&&X.national?"national":"median",te=pa(r,{period:x,mode:G,base:D}),Z=G==="value"?te:pa(r,{period:x,mode:"value",base:D}),re=[...Z].sort((w,P)=>w.name.localeCompare(P.name,i)),be=S!==void 0&&re.some(w=>w.key===S)?S:void 0,Q=iy(r,{period:x,region:be,lang:i,t:d}),fe=x===r.latest_period&&be===void 0?r.findings:[],W=r.shape==="regional",U=Z.filter(w=>w.value!==null).length,me=[x,r.unit.label,d(W?"dashboard.regions":"dashboard.items",{n:U})].join(" \xB7 "),_e=pn(r.source_url),xe=r.methodology?.editions,ye=xe?.[i]??xe?.ru,q=pn(ye?.url),R=`${d(ae?"dashboard.trend":"dashboard.ranking")}: ${r.title}, ${x}`,T=Kp(a.blocks);return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"flex shrink-0 flex-col gap-2 border-b py-3.5 pl-5 pr-4",children:[c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"min-w-0 flex-1 text-2xs font-semibold uppercase tracking-wide text-primary-text",children:d("dashboard.eyebrow")}),q!==null?c.jsx(ge,{variant:"ghost",size:"icon",className:As,asChild:!0,children:c.jsx("a",{href:q,target:"_blank",rel:"noopener noreferrer","aria-label":d("dashboard.methodology"),title:ye?.title??d("dashboard.methodology"),children:c.jsx(Oo,{"aria-hidden":"true"})})}):null,_e!==null?c.jsx(ge,{variant:"ghost",size:"icon",className:As,asChild:!0,children:c.jsx("a",{href:_e,target:"_blank",rel:"noopener noreferrer","aria-label":d("dashboard.openSource"),title:d("dashboard.openSource"),children:c.jsx(nf,{"aria-hidden":"true"})})}):null,c.jsxs(ge,{variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground hover:text-foreground","aria-pressed":m,onClick:()=>{f(!m)},children:[m?c.jsx(df,{"aria-hidden":"true"}):c.jsx(lf,{"aria-hidden":"true"}),d(m?"dashboard.collapse":"dashboard.fullscreen")]}),c.jsx(ge,{variant:"ghost",size:"icon",className:As,"aria-label":d("dashboard.close"),title:d("dashboard.close"),onClick:g,children:c.jsx(sa,{"aria-hidden":"true"})})]}),c.jsx("h2",{className:"m-0 text-xl font-semibold leading-snug",children:r.title}),c.jsx("span",{className:"text-xs text-muted-foreground",children:me})]}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3.5 overflow-y-auto overscroll-contain px-5 pb-5 pt-3.5",children:[o,c.jsxs("div",{className:"flex flex-wrap items-end gap-3",children:[W&&re.length>1?c.jsxs(eh,{label:d("dashboard.region"),value:be??Ts,onChange:w=>{E(w===Ts?void 0:w)},className:"min-w-40 max-w-60",children:[c.jsx("option",{value:Ts,children:d("dashboard.allRegions")}),re.map(w=>c.jsx("option",{value:w.key,children:w.name},w.key))]}):null,b.length>1?c.jsx(eh,{label:d("dashboard.period"),value:x,onChange:k,className:"min-w-24",children:[...b].reverse().map(w=>c.jsx("option",{value:w,children:w},w))}):null,ae?null:c.jsx(th,{label:d("dashboard.mode.label"),children:c.jsx(Jf,{label:d("dashboard.mode.label"),value:G,onChange:_,options:[{value:"value",label:d("dashboard.mode.value")},{value:"deviation",label:d("dashboard.mode.deviation"),disabledHint:X.deviation?void 0:d("dashboard.fewRegions")},{value:"change",label:d("dashboard.mode.change"),disabledHint:X.change?void 0:d("dashboard.noPrevious")}]})}),G==="deviation"?c.jsx(th,{label:d("dashboard.base.label"),children:c.jsx(Jf,{label:d("dashboard.base.label"),value:D,onChange:$,options:[{value:"median",label:d("dashboard.base.median")},{value:"national",label:d("dashboard.base.national"),disabledHint:X.national?void 0:d("dashboard.noNational")}]})}):null]}),c.jsx(sy,{kpis:Q}),c.jsx(Fs,{title:d(ae?"dashboard.trend":"dashboard.ranking"),card:!0,children:c.jsx(Hf,{section:r,period:x,label:R,rows:te.map(w=>({key:w.key,name:w.name,value:w.display})),national:G==="value"?Vf(r,x,te.map(w=>w.value)):null,signed:G!=="value",highlightKey:be})}),fe.length>0?c.jsx(Fs,{title:d("dashboard.findings"),children:c.jsx("ul",{className:"flex list-disc flex-col gap-1 pl-5 text-sm",children:fe.map((w,P)=>c.jsx("li",{children:w},P))})}):null,c.jsx(Fs,{title:d("dashboard.data"),children:c.jsx(cy,{section:r,rows:te,mode:G,lang:i,highlightKey:be})}),c.jsxs("footer",{className:"flex flex-col gap-3 border-t pt-3.5",children:[r.source_name!=null&&r.source_name!==""?c.jsx("p",{className:"text-xs text-muted-foreground",children:d("dashboard.source",{name:r.source_name})}):null,c.jsx("div",{className:"-ml-2 empty:hidden",children:c.jsx(Wf,{messageId:a.id,block:T})}),c.jsx(Zf,{messageId:a.id,block:T})]})]})]})},Fs=({title:r,children:a,card:o=!1})=>c.jsxs("section",{className:"flex flex-col gap-2",children:[c.jsx("h3",{className:"m-0 text-sm font-semibold",children:r}),o?c.jsx("div",{className:"rounded-xl bg-[hsl(var(--chart-card))] px-4 py-3.5",children:a}):a]}),py=({threadId:r,children:a})=>{const[o,i]=v.useState(la),[d,p]=v.useState(r);d!==r&&(p(r),d!==void 0&&i(la));const f=v.useRef(new Set),g=v.useCallback((_,M)=>{i(gs(_,M??null))},[]),m=v.useCallback(_=>{i(M=>M.messageId===_?la:gs(_))},[]),b=v.useCallback(_=>{f.current.has(_)||(f.current.add(_),i(gs(_)))},[]),x=v.useCallback(()=>{i(la)},[]),k=v.useCallback(_=>{i(M=>({...M,sectionId:_}))},[]),S=v.useCallback(_=>{i(M=>({...M,fullscreen:_}))},[]),E=v.useCallback(_=>{i(M=>({...M,view:_}))},[]),C=v.useMemo(()=>({state:o,open:g,toggle:m,autoOpen:b,close:x,setSection:k,setFullscreen:S,setView:E}),[o,g,m,b,x,k,S,E]);return c.jsx(Xp.Provider,{value:C,children:a})};function fy(r,a,o){const{autoOpen:i}=pr(),[d,p]=v.useState(null);d?.threadId===void 0&&d!==null&&a===void 0?d.active!==o.streaming&&p({...d,active:o.streaming}):d?.threadId===void 0&&d!==null?d.active||o.streaming||r.some(b=>!Io(b.id))?p({threadId:a,ids:d.ids,active:!0}):o.loaded&&p({threadId:a,ids:new Set(r.map(b=>b.id)),active:!1}):o.loaded&&(d===null||d.threadId!==a)&&p({threadId:a,ids:new Set(r.map(b=>b.id)),active:!1});const f=r.at(-1),g=f?.id,m=d!==null&&d.threadId===a&&f?.role==="assistant"&&!d.ids.has(f.id)&&f.status!=="streaming"&&Io(f.id)&&Bt(f.blocks,"dashboard")?.auto_open===!0;v.useEffect(()=>{m&&g!=null&&i(g)},[m,g,i])}const rh="aid_intro_ack",hy=()=>{try{return window.localStorage.getItem(rh)!==null}catch{return!1}},gy=({active:r=!0})=>{const{state:a,lang:o,t:i}=J(),d=na(a.config?.intro_notice??void 0,o).trim(),[p,f]=v.useState(hy),g=r&&d!==""&&!p,m=v.useId(),b=d.split(`
|
|
17
|
+
`).filter(S=>S.trim()!==""),x=v.useRef(null);Cr(x,!g),Do(x,g,()=>{const S=x.current?.getRootNode();return S instanceof ShadowRoot||S instanceof Document?S.querySelector('[part="input"]'):null});const k=v.useCallback(()=>{f(!0);try{window.localStorage.setItem(rh,"1")}catch{}},[]);return v.useEffect(()=>{if(!g)return;const S=E=>{E.key==="Escape"&&(E.preventDefault(),k())};return window.addEventListener("keydown",S,!0),()=>{window.removeEventListener("keydown",S,!0)}},[g,k]),d===""?null:c.jsxs("div",{ref:x,className:B("absolute inset-0 z-50 flex items-center justify-center p-4 transition-opacity duration-150 motion-reduce:transition-none",g?"opacity-100":"pointer-events-none opacity-0"),"aria-hidden":!g,children:[c.jsx("div",{"aria-hidden":"true",className:"absolute inset-0 bg-scrim"}),c.jsxs("div",{part:"intro",role:"dialog","aria-modal":"true","aria-labelledby":m,className:B("relative flex max-h-full w-[min(400px,100%)] flex-col overflow-hidden rounded-aid-field border bg-background shadow-panel transition-transform duration-200 motion-reduce:transition-none",g?"translate-y-0":"translate-y-2"),children:[c.jsx("h2",{id:m,className:"m-0 py-3.5 pl-[18px] pr-3 pb-2.5 text-lg font-semibold",children:i("intro.title")}),c.jsx("div",{className:"flex min-h-0 flex-col gap-2.5 overflow-y-auto px-[18px] pt-1",children:b.map((S,E)=>c.jsx("p",{className:"text-[13px] leading-[1.55]",children:S},`${E}-${S}`))}),c.jsx("footer",{className:"flex shrink-0 justify-end px-[18px] pb-[18px] pt-3.5",children:c.jsx(ge,{"data-autofocus":!0,size:"md",onClick:k,children:i("intro.continue")})})]})]})},ga=r=>r?!r.available||r.status==="down"||r.status==="overloaded"?"unavailable":r.status==="idle"?"idle":r.status==="busy"||r.status==="degraded"?"busy":"unknown":"unknown",my={idle:"text-mode-idle",busy:"text-mode-busy",unavailable:"text-mode-down",unknown:"text-muted-foreground"},by={idle:"health.idle",busy:"health.busy",unavailable:"health.unavailable"},nh=r=>by[r],xy={bot:Cx,"book-open":Oo,database:qx,"file-text":Xx,globe:Zx,lock:of,"message-circle":cv,"message-square":cf,search:ia,sparkles:xs},Ds=({name:r,className:a})=>{const o=xy[r]??xs;return c.jsx(o,{className:B("size-4 shrink-0",a),"aria-hidden":"true"})},Os=({level:r,lang:a})=>r==="unknown"?null:c.jsxs("span",{part:"mode-health","data-level":r,className:B("inline-flex shrink-0 items-center gap-1.5 text-2xs font-semibold",my[r]),children:[c.jsx("span",{"aria-hidden":"true",className:"size-2 shrink-0 rounded-full bg-current"}),Ct(a,nh(r))]}),ah="inline-flex h-8 min-w-0 max-w-[min(360px,100%)] items-center gap-[7px] rounded-full border bg-background pl-2.5 pr-2 text-[13px] font-medium text-foreground",oh=(r,a)=>na(r.title,a)||r.slug,lh=({modes:r,health:a,value:o,onChange:i,lang:d,label:p,variant:f="field",placement:g="top"})=>{const m=f==="pill",[b,x]=v.useState(!1),k=Math.max(0,r.findIndex(Q=>Q.slug===o)),[S,E]=v.useState(k),C=v.useId(),_=v.useRef(null),M=v.useRef(null),$=r[k],X=ga($?a[$.slug]:void 0),ae=v.useRef(null);v.useEffect(()=>{b&&M.current?.focus()},[b]),v.useEffect(()=>{if(!b)return;const Q=W=>{W.key==="Escape"&&(W.preventDefault(),W.stopPropagation(),x(!1),_.current?.focus())},fe=W=>{ae.current&&!W.composedPath().includes(ae.current)&&x(!1)};return window.addEventListener("keydown",Q,!0),window.addEventListener("pointerdown",fe,!0),()=>{window.removeEventListener("keydown",Q,!0),window.removeEventListener("pointerdown",fe,!0)}},[b]);const G=Q=>{x(!1),Q&&_.current?.focus()},D=()=>{E(k),x(!0)},te=Q=>{const fe=r[Q];fe&&i(fe.slug),G(!0)},Z=Q=>{switch(Q.key){case"ArrowDown":Q.preventDefault(),E(fe=>Math.min(r.length-1,fe+1));break;case"ArrowUp":Q.preventDefault(),E(fe=>Math.max(0,fe-1));break;case"Home":Q.preventDefault(),E(0);break;case"End":Q.preventDefault(),E(r.length-1);break;case"Enter":case" ":Q.preventDefault(),te(S);break;case"Tab":G(!1);break}},re=$?oh($,d):"",be=X==="unknown"?"":Ct(d,nh(X));return c.jsxs("div",{ref:ae,className:B(m?"min-w-0":"flex flex-col gap-1.5"),onBlur:Q=>{b&&Q.relatedTarget instanceof Node&&!Q.currentTarget.contains(Q.relatedTarget)&&x(!1)},children:[c.jsxs("button",{ref:_,part:m?"mode-select":void 0,type:"button","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?`${C}-list`:void 0,"aria-label":`${p}: ${re}${m&&be?`, ${be}`:""}`,onClick:()=>{b?G(!1):D()},onKeyDown:Q=>{Q.key==="ArrowDown"&&!b&&(Q.preventDefault(),D())},className:B(m?B(ah,"transition-colors hover:bg-muted motion-reduce:transition-none"):"inline-flex h-8 w-full items-center justify-between gap-2 rounded-md border bg-background pl-2.5 pr-2 text-xs","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",b&&"border-primary shadow-[0_0_0_3px_var(--aid-c-secondary)]"),children:[m&&$?c.jsx(Ds,{name:$.icon}):null,c.jsx("span",{className:B("truncate",m&&"min-w-0"),children:re}),m?c.jsx(Os,{level:X,lang:d}):null,c.jsx(cn,{className:B("size-3.5 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",(m?g==="top"!==b:b)&&"rotate-180"),"aria-hidden":"true"})]}),b?c.jsxs("ul",{ref:M,id:`${C}-list`,part:m?"mode-list":void 0,role:"listbox",tabIndex:-1,"aria-label":p,"aria-activedescendant":`${C}-${S}`,onKeyDown:Z,className:B("flex max-h-56 flex-col overflow-y-auto rounded-md border bg-background p-1 shadow-pop focus-visible:outline-none",m&&B("absolute left-0 z-20 w-[340px] max-w-full duration-150 animate-in fade-in motion-reduce:animate-none",g==="top"?"bottom-[calc(100%+6px)]":"top-[calc(100%+6px)]")),children:[m?c.jsx("li",{role:"presentation",className:"px-2.5 pb-1 pt-1.5 text-2xs text-muted-foreground",children:p}):null,r.map((Q,fe)=>{const W=ga(a[Q.slug]),U=na(Q.description,d);return c.jsxs("li",{id:`${C}-${fe}`,part:m?"mode-option":void 0,role:"option","aria-selected":fe===k,onMouseDown:me=>{me.preventDefault()},onMouseEnter:()=>{E(fe)},onClick:()=>{te(fe)},className:B("flex cursor-pointer items-start gap-2.5 rounded-lg px-2.5 py-2",fe===S&&"bg-accent",fe===k&&"bg-secondary"),children:[c.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted",children:c.jsx(Ds,{name:Q.icon})}),c.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[c.jsx("span",{className:"truncate text-sm font-medium leading-[1.35]",children:oh(Q,d)}),U?c.jsx("span",{className:"line-clamp-2 text-2xs leading-[1.35] text-muted-foreground",children:U}):null,c.jsx(Os,{level:W,lang:d})]}),c.jsx(Mr,{className:B("mt-1 size-4 shrink-0 text-primary",fe!==k&&"invisible"),"aria-hidden":"true"})]},Q.slug)})]}):null]})},$s=(r,a)=>r===(a>=0?a:0)?0:-1,vy={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"start",End:"end"},qs=(r,a=!1)=>{const o=vy[r.key];if(o===void 0)return;const i=Array.from(r.currentTarget.querySelectorAll('[role="radio"]:not(:disabled)')),d=r.currentTarget.getRootNode(),p=i.findIndex(g=>g===d.activeElement);if(i.length===0)return;r.preventDefault();const f=o==="start"?0:o==="end"?i.length-1:(Math.max(p,0)+o+i.length)%i.length;i[f]?.focus(),a&&i[f]?.click()},yy=({label:r,className:a,children:o})=>c.jsx("div",{role:"radiogroup","aria-label":r,className:a,onKeyDown:i=>{qs(i,!0)},children:o}),wy=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent),ky=["search","newChat","sidebar","close"],Sy=r=>{const a=r?"\u2318":"Ctrl",o=r?"\u21E7":"Shift",i=d=>r?[o,a,d]:[a,o,d];return{search:[a,"K"],newChat:i("O"),sidebar:i("S"),close:["Esc"]}},jy={kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English"},Bo=({title:r,hint:a,children:o})=>c.jsxs("section",{className:"flex flex-col gap-2",children:[c.jsx("h3",{className:"text-xs font-semibold text-muted-foreground",children:r}),o,a?c.jsx("p",{className:"text-xs text-muted-foreground",children:a}):null]}),ih=({value:r,options:a,onChange:o,label:i})=>{const d=a.findIndex(p=>p.value===r);return c.jsx(yy,{label:i,className:"grid grid-cols-3 gap-2",children:a.map((p,f)=>{const g=p.value===r;return c.jsxs("button",{type:"button",role:"radio","aria-checked":g,tabIndex:$s(f,d),lang:p.lang,onClick:()=>{o(p.value)},className:B("flex min-w-0 items-center gap-2.5 rounded-md border px-3 py-2.5 text-left text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",g?"border-primary bg-secondary":"bg-background hover:border-primary/50"),children:[c.jsx("span",{"aria-hidden":"true",className:B("relative size-4 shrink-0 rounded-full border-[1.5px] bg-background",g?"border-primary":"border-muted-foreground"),children:g?c.jsx("span",{className:"absolute inset-[3px] rounded-full bg-primary"}):null}),c.jsx("span",{className:"truncate",children:p.label})]},p.value)})})},Ny=({children:r})=>c.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded border bg-background px-[5px] font-sans text-[11px] font-medium leading-none text-muted-foreground",children:r}),_y=({open:r,onClose:a})=>{const{state:o,lang:i,t:d,selectMode:p}=J(),f=ls(),g=v.useRef(null);Cr(g,!r),Do(g,r),v.useEffect(()=>{if(!r)return;const S=E=>{E.key==="Escape"&&(g.current?.querySelector('[aria-haspopup="listbox"][aria-expanded="true"]')||(E.preventDefault(),a()))};return window.addEventListener("keydown",S,!0),()=>{window.removeEventListener("keydown",S,!0)}},[r,a]);const m=o.config?.modes??[],b=[{value:"light",label:d("settings.themeLight")},{value:"dark",label:d("settings.themeDark")},{value:"auto",label:d("settings.themeAuto")}],x=Sy(wy()),k={search:d("shortcut.search"),newChat:d("shortcut.newChat"),sidebar:d("shortcut.sidebar"),close:d("shortcut.close")};return c.jsxs("div",{ref:g,className:B("absolute inset-0 z-40 flex items-start justify-center p-6 transition-opacity duration-150 motion-reduce:transition-none",r?"opacity-100":"pointer-events-none opacity-0"),"aria-hidden":!r,children:[c.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:"absolute inset-0 bg-scrim",onClick:a}),c.jsxs("div",{part:"settings",role:"dialog","aria-modal":"true","aria-label":d("settings"),className:B("relative flex max-h-full w-full max-w-[520px] flex-col overflow-hidden rounded-aid-field border bg-background shadow-panel transition-transform duration-200 motion-reduce:transition-none",r?"translate-y-0":"translate-y-2"),children:[c.jsxs("header",{className:"flex shrink-0 items-center justify-between pb-2.5 pl-[18px] pr-3 pt-3.5",children:[c.jsx("h2",{className:"text-lg font-semibold",children:d("settings")}),c.jsx(ge,{"data-autofocus":!0,variant:"ghost",size:"icon","aria-label":d("close"),onClick:a,children:c.jsx(sa,{"aria-hidden":"true"})})]}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-[18px] pb-[18px] pt-1",children:[c.jsx(Bo,{title:d("settings.language"),children:c.jsx(ih,{label:d("settings.language"),value:i,options:as.map(S=>({value:S,label:jy[S],lang:S})),onChange:S=>{f.update({lang:S})}})}),c.jsx(Bo,{title:d("settings.theme"),children:c.jsx(ih,{label:d("settings.theme"),value:f.scheme,options:b,onChange:S=>{f.update({scheme:S})}})}),m.length>0?c.jsx(Bo,{title:d("settings.model"),hint:d("settings.modelHint"),children:c.jsx(lh,{modes:m,health:o.health,value:o.mode,onChange:p,lang:i,label:d("settings.model")})}):null,c.jsx(Bo,{title:d("settings.shortcuts"),children:c.jsx("div",{className:"flex flex-col",children:ky.map(S=>c.jsxs("div",{className:"flex items-center justify-between py-1 text-xs",children:[c.jsx("span",{children:k[S]}),c.jsx("span",{className:"flex gap-[3px]",children:x[S].map(E=>c.jsx(Ny,{children:E},E))})]},S))})})]})]})]})},Ey={muted:"rounded-[10px] border bg-muted px-3 py-2",blocked:"rounded-[10px] border border-processing/25 bg-processing-background px-3 py-2",overloaded:"rounded-[10px] border border-warning/40 bg-warning-background px-3 py-2",hint:"px-1 pb-2 text-warn-text"},Wo=({tone:r,icon:a,children:o,role:i="status",part:d,state:p})=>c.jsxs("div",{part:d,role:i,"data-tone":r,"data-state":p,className:B("mb-2 flex items-center gap-2.5 text-xs leading-snug",Ey[r]),children:[c.jsx("span",{className:"flex shrink-0",children:a}),c.jsx("span",{className:"min-w-0 flex-1",children:o})]}),sh=({children:r,onDismiss:a,dismissLabel:o,part:i})=>c.jsxs("div",{part:i,role:"alert",className:"mb-2 flex items-center gap-2.5 rounded-[10px] border border-error/30 bg-error-background py-2 pl-3 pr-2 text-xs leading-snug text-[hsl(var(--foreground))]",children:[c.jsx(Ir,{className:"shrink-0 text-destructive","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:r}),c.jsx(ge,{variant:"ghost",size:"xs",onClick:a,children:o})]}),zy=r=>new Intl.DateTimeFormat(r,{hour:"2-digit",minute:"2-digit"}),Cy=()=>{const{state:r,lang:a,t:o}=J(),{remaining:i,daily:d,blocked:p,resetAt:f,overloaded:g}=r.limit;if(g&&r.config)return c.jsx(Wo,{tone:"overloaded",part:"limit-banner",state:"overloaded",icon:c.jsx(qo,{"aria-hidden":"true"}),children:o("overloaded")});if(p){const m=f?new Date(f):null,b=m&&!Number.isNaN(m.getTime())?o("limit.until",{time:zy(a).format(m)}):o("limit.exhausted");return c.jsx(Wo,{tone:"blocked",part:"limit-banner",state:"blocked",icon:c.jsx(ms,{"aria-hidden":"true"}),children:b})}return i===null||d===null||i>3?null:c.jsx(Wo,{tone:"muted",part:"limit-banner",state:"low",icon:c.jsx(af,{"aria-hidden":"true"}),children:o("limit.remaining",{count:i,limit:d})})},Ly=()=>{const{state:r,lang:a,t:o,dismissNotice:i}=J(),{notice:d}=r;if(!d)return null;const p=d.kind==="error"?us(a,d.reason):o(d.key);return c.jsx(sh,{part:"notice",onDismiss:i,dismissLabel:o("dismiss"),children:p})},Vs=({value:r,onChange:a,onSubmit:o,maxHeight:i=j1,className:d,onKeyDown:p,...f})=>{const g=v.useRef(null),m=v.useCallback(()=>{const x=g.current;x&&(x.style.height="auto",x.style.height=`${Math.min(x.scrollHeight,i)}px`,x.style.overflowY=x.scrollHeight>i?"auto":"hidden")},[i]);v.useLayoutEffect(m,[r,m]),v.useEffect(()=>{const x=g.current;if(!x||typeof ResizeObserver>"u")return;let k=x.clientWidth;const S=new ResizeObserver(()=>{x.clientWidth!==k&&(k=x.clientWidth,m())});return S.observe(x),()=>{S.disconnect()}},[m]);const b=x=>{p?.(x),!(x.defaultPrevented||!o)&&x.key==="Enter"&&!x.shiftKey&&!x.nativeEvent.isComposing&&(x.preventDefault(),o())};return c.jsx("textarea",{ref:g,rows:1,value:r,onChange:x=>{a(x.target.value)},onKeyDown:b,className:B("block w-full resize-none bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-60",d),...f})},My=({file:r,onRemove:a})=>{const{lang:o,t:i}=J();return c.jsxs("div",{part:"composer-file",className:"flex w-fit max-w-full items-center gap-2.5 self-start rounded-xl border bg-muted p-1.5",children:[c.jsx(Is,{ext:Ms(r.name)}),c.jsxs("span",{className:"flex min-w-0 flex-col",children:[c.jsx("span",{className:"max-w-[420px] truncate text-[13px] font-medium leading-tight max-sm:max-w-[190px]",title:r.name,children:r.name}),c.jsx("span",{className:"text-2xs leading-tight text-muted-foreground",children:Ps(r.size,o)})]}),c.jsx(ge,{variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":i("removeFile"),onClick:a,children:c.jsx(sa,{"aria-hidden":"true"})})]})},Iy=({children:r,text:a,id:o})=>c.jsxs("span",{className:"group/attach inline-flex",children:[r,c.jsx("span",{id:o,role:"tooltip",className:"pointer-events-none absolute bottom-[3.2rem] left-4 z-10 hidden w-max max-w-[calc(100%-2rem)] rounded-md bg-foreground px-2 py-1 text-2xs font-medium leading-snug text-background shadow-pop group-focus-within/attach:block group-hover/attach:block",children:a})]}),Py=({message:r,onDismiss:a})=>{const{t:o}=J();return r===null?null:c.jsx(sh,{part:"notice",dismissLabel:o("dismiss"),onDismiss:a,children:r})},Ry=.9,Ty=(r,a)=>r>a?"over":r===a?"limit":r>=a*Ry?"near":"hidden",ch=({count:r,max:a,id:o,part:i,className:d})=>{const{t:p}=J(),f=Ty(r,a);return c.jsxs(c.Fragment,{children:[c.jsx("span",{id:o,part:i,className:B("shrink-0 whitespace-nowrap px-1 text-2xs tabular-nums text-muted-foreground",f==="hidden"&&"hidden",f==="limit"&&"font-semibold text-warn-text",f==="over"&&"font-semibold text-destructive",d),children:p("counter",{count:r,max:a})}),c.jsx("span",{"aria-live":"polite",className:"sr-only",children:f==="limit"?p("counterLimit"):f==="over"?p("counterOver"):""})]})},Ay=()=>{const{state:r,t:a}=J(),{config:o}=r;if(!o)return null;const i=o.modes.find(p=>p.slug===r.mode),d=o.modes.length===0?a("modes.none"):i&&ga(r.health[i.slug])==="unavailable"?a("modeUnavailable"):null;return d===null?null:c.jsx(Wo,{tone:"hint",part:"composer-hint",icon:c.jsx(qo,{"aria-hidden":"true"}),children:d})},Fy=()=>J().t("placeholder"),Dy=({placement:r="top"})=>{const{state:a,lang:o,t:i,selectMode:d}=J(),p=a.config?.modes??[],f=p.find(g=>g.slug===a.mode);if(!f)return null;if(p.length<2){const g=ga(a.health[f.slug]),m=na(f.title,o)||f.slug,b=g==="unknown"?"":i(`health.${g}`),x=`${i("modeLabel")}: ${m}${b?`, ${b}`:""}`;return c.jsxs("div",{part:"mode-select",role:"group","aria-label":x,className:ah,children:[c.jsx(Ds,{name:f.icon}),c.jsx("span",{className:"min-w-0 truncate",children:m}),c.jsx(Os,{level:g,lang:o})]})}return c.jsx(lh,{variant:"pill",placement:r,modes:p,health:a.health,value:a.mode,onChange:d,lang:o,label:i("modeLabel")})},dh="{name}",Oy=(r,a)=>{const[o="",i=""]=r.split(dh);return c.jsxs(c.Fragment,{children:[o,a,i]})},uh=v.forwardRef(({onDraftChange:r},a)=>{const{state:o,lang:i,path:d,t:p,send:f,stop:g}=J(),m=Fy(),[b,x]=v.useState(""),k=v.useRef(null),S=v.useId(),E=v.useRef(!1),C=v.useId();v.useImperativeHandle(a,()=>({setText:H=>{x(H),setTimeout(()=>k.current?.querySelector("textarea")?.focus(),0)}}));const _=b.trim()!=="";v.useEffect(()=>{r?.(_)},[_,r]);const[M,$]=v.useState(null),[X,ae]=v.useState(null),G=v.useRef(null),{config:D,turn:te,limit:Z}=o,re=D?.modes.find(H=>H.slug===o.mode),be=D?.max_query_chars??Lp,Q=re?ga(o.health[re.slug])==="unavailable":!1,fe=!!(D?.site.allow_files&&re?.allow_files),W=te!==null,U=te?.stopping===!0,me=!D||Z.blocked||o.loadingThread!==null,_e=b.trim(),xe=b.length>be,ye=!me&&!W&&!Q&&!!re&&_e.length>0&&!xe;v.useEffect(()=>{if(W)return;const H=k.current?.getRootNode(),ie=H instanceof ShadowRoot||H instanceof Document?H.activeElement:null,de=ie===null||ie===document.body;(E.current||de)&&k.current?.querySelector("textarea")?.focus({preventScroll:!0}),E.current=!1},[W]);const q=()=>{if(!ye||!re)return;const H=_e,ie=M,de=cx(d,H,new Date);x(""),$(null),f({query:H,mode:re.slug,...ie?{file:ie}:{},...de?{clarification:de}:{}}).then(je=>{je==="rejected"&&(x(ke=>ke||H),$(ke=>ke??ie))})},R=H=>{if(ae(null),!(!H||!re)){if(!jf.split(",").includes(`.${Ms(H.name)}`)){ae(p("fileType",{name:H.name}));return}if(H.size>re.max_file_mb*1024*1024){ae(p("fileTooLarge",{name:H.name,size:re.max_file_mb}));return}$(H)}},T=D?.answer_source,w=T?.[i]??T?.ru??Object.values(T??{})[0],P=pn(w?.url),le=P?c.jsxs("a",{href:P,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-primary-text hover:underline",children:[w?.name,c.jsx(nf,{className:"size-3","aria-hidden":"true"})]}):w?.name;return c.jsxs("div",{part:"composer",className:"flex w-full shrink-0 flex-col",children:[c.jsx(Ay,{}),c.jsx(Py,{message:X,onDismiss:()=>{ae(null)}}),c.jsxs("div",{ref:k,className:B("relative flex flex-col gap-2.5 rounded-aid-field border border-input bg-background py-3 pl-4 pr-2.5 shadow-sm transition-colors motion-reduce:transition-none","focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",xe&&"border-destructive focus-within:border-destructive",me&&"bg-muted"),children:[M?c.jsx(My,{file:M,onRemove:()=>{$(null)}}):null,c.jsx(Vs,{part:"input","data-autofocus":!0,value:b,onChange:x,onSubmit:q,disabled:me,placeholder:m,"aria-label":p("inputLabel"),"aria-invalid":xe||void 0,"aria-describedby":S,className:"block min-h-6 w-full pr-1.5 text-lg leading-6 disabled:text-muted-foreground disabled:opacity-100"}),c.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[c.jsx(Dy,{placement:"top"}),fe?c.jsxs(c.Fragment,{children:[c.jsx(Iy,{id:C,text:M?p("attachOne"):p("attachHint",{size:re?.max_file_mb??0}),children:c.jsx(ge,{part:"attach",variant:"ghost",size:"icon",className:"size-8 rounded-full text-muted-foreground","aria-label":p(M?"attachOne":"attach"),"aria-describedby":C,disabled:me||W||M!==null,onClick:()=>G.current?.click(),children:c.jsx(xv,{"aria-hidden":"true"})})}),c.jsx("input",{ref:G,type:"file",hidden:!0,accept:jf,onChange:H=>{R(H.target.files?.[0]),H.target.value=""}})]}):null,c.jsx("span",{className:"flex-1"}),c.jsx(ch,{id:S,part:"counter",count:b.length,max:be}),W?c.jsx(ge,{part:"stop",size:"icon",className:"size-9 rounded-full aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-label":p(U?"agent.stopping":"stop"),title:p(U?"agent.stopping":"stop"),"aria-disabled":U||void 0,onFocus:()=>{E.current=!0},onBlur:H=>{H.relatedTarget&&(E.current=!1)},onClick:()=>{U||g()},children:c.jsx(hf,{className:"size-3.5 fill-current","aria-hidden":"true"})}):c.jsx(ge,{part:"send",size:"icon",className:"size-9 rounded-full","aria-label":p("send"),title:p("send"),disabled:!ye,onClick:q,children:c.jsx(Jp,{"aria-hidden":"true"})})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-3.5 gap-y-1 pt-2 text-center text-2xs leading-snug text-muted-foreground",children:[c.jsx("p",{part:"disclaimer",className:"text-2xs",children:p("disclaimer")}),w?.name?c.jsx("p",{part:"source",className:"text-2xs",children:Oy(p("source",{name:dh}),le)}):null]})]})});uh.displayName="Composer";const $y=({composerRef:r,onDraftChange:a})=>{const{state:o}=J();return c.jsxs("div",{className:"mx-auto w-full max-w-[844px] shrink-0 px-3 pb-2.5",children:[c.jsx(Cy,{}),c.jsx(Ly,{}),o.config&&!o.configError?c.jsx(uh,{ref:r,onDraftChange:a}):null]})},ph={receipt:Sv,landmark:ev,map:av,"trending-up":qv,scale:Ev,users:Hv,"file-chart":Wx,"alert-triangle":qo},qy=({name:r})=>{const a=(Object.hasOwn(ph,r)?ph[r]:void 0)??xs;return c.jsx(a,{className:"size-4 shrink-0 text-primary","aria-hidden":"true"})},Vy=4,Hy=6,By=10,fh=(r,a)=>r?.[a]??r?.ru??Object.values(r??{})[0],Hs=({children:r,id:a})=>c.jsx("h2",{id:a,className:"m-0 px-0.5 text-2xs font-semibold text-muted-foreground",children:r}),Bs=({example:r,onPick:a,sub:o})=>c.jsx("li",{className:"min-w-0",children:c.jsxs("button",{part:"example",type:"button",title:r.title,onClick:()=>{a(r.prompt)},className:B("flex w-full items-center gap-2.5 rounded-lg border bg-background px-3 py-2 text-left leading-snug text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",o?"min-h-9 border-dashed text-[13px]":"min-h-10 text-sm"),children:[c.jsx("span",{className:"min-w-0 flex-1",children:r.prompt}),c.jsx(Sx,{className:"text-muted-foreground","aria-hidden":"true"})]})}),Ws=r=>`${r.title}-${r.prompt}`,Wy=({onPick:r})=>{const{state:a,lang:o,t:i}=J(),d=v.useId(),[p,f]=v.useState(null),g=fh(a.config?.prompt_examples,o)??[],m=(fh(a.config?.prompt_categories,o)??[]).filter(k=>g.some(S=>S.category===k.key));if(g.length===0)return null;if(m.length===0)return c.jsxs("section",{className:"flex flex-col gap-1.5",children:[c.jsx(Hs,{children:i("examples")}),c.jsx("ul",{"aria-label":i("examples"),className:"m-0 flex w-full list-none flex-col gap-1.5 p-0",children:g.slice(0,Vy).map(k=>c.jsx(Bs,{example:k,onPick:r,sub:!1},Ws(k)))})]});const b=m.find(k=>k.key===p),x=b?g.filter(k=>k.category===b.key).slice(0,By):[];return c.jsxs("div",{className:"flex flex-col gap-5",children:[c.jsxs("section",{className:"flex flex-col gap-1.5",children:[c.jsx(Hs,{id:d,children:i("examples.whatCanDo")}),c.jsx("div",{role:"group","aria-labelledby":d,className:"flex flex-col gap-1.5",children:m.map(k=>{const S=k.key===b?.key,E=S?cn:$o;return c.jsxs(v.Fragment,{children:[c.jsxs("button",{part:"category",type:"button","aria-expanded":S,onClick:()=>{f(S?null:k.key)},className:B("flex min-h-11 w-full items-center gap-2.5 rounded-lg border bg-background px-2.5 py-1.5 text-left text-sm font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",S&&"border-primary"),children:[c.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-secondary",children:c.jsx(qy,{name:k.icon})}),c.jsx("span",{className:"min-w-0 flex-1 truncate",children:k.title}),c.jsx(E,{className:"text-muted-foreground","aria-hidden":"true"})]}),S&&x.length>0?c.jsx("ul",{"aria-label":k.title,className:"m-0 flex w-full list-none flex-col gap-1.5 pb-1.5 pl-[18px] pt-0.5",children:x.map(C=>c.jsx(Bs,{example:C,onPick:r,sub:!0},Ws(C)))}):null]},k.key)})})]}),b?null:c.jsxs("section",{className:"flex flex-col gap-1.5",children:[c.jsx(Hs,{children:i("examples")}),c.jsx("ul",{"aria-label":i("examples"),className:"m-0 flex w-full list-none flex-col gap-1.5 p-0",children:g.slice(0,Hy).map(k=>c.jsx(Bs,{example:k,onPick:r,sub:!1},Ws(k)))})]})]})},Uy=({listening:r,wide:a,onPick:o})=>{const{state:i,lang:d,t:p}=J(),f=na(i.config?.site.welcome,d),g=f?f.split(`
|
|
18
|
+
`).filter(m=>m.trim()!==""):[];return c.jsxs("div",{part:"empty",className:B("mx-auto flex w-full max-w-[640px] flex-col gap-5 px-4 pb-3",a?"pt-14":"pt-7"),children:[c.jsxs("div",{className:"flex flex-col items-center gap-2.5 text-center",children:[c.jsx("div",{part:"avatar",children:c.jsx(Fo,{size:56,mood:r?"listen":"calm"})}),g.length>0?c.jsx("div",{part:"welcome",className:"flex max-w-[340px] flex-col gap-1 text-[15px] leading-normal",children:g.map((m,b)=>c.jsx("p",{className:B(b===0&&"text-xl font-semibold"),children:m},`${b}-${m}`))}):c.jsx("h2",{className:"m-0 text-2xl font-semibold tracking-tight",children:p("greeting")})]}),c.jsx(Wy,{onPick:o})]})},hh=()=>{const{t:r}=J();return a=>{const o=`steps.${a.node}`;return r(_0(o)?o:"steps.unknown")}},gh=({step:r,position:a})=>{const{t:o}=J(),i=hh();return c.jsxs(c.Fragment,{children:[i(r),a!=null&&r.total!=null?c.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",o("steps.counter",{done:a,total:r.total})]}):null,r.attempt>1?c.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",o("agent.attempt",{count:r.attempt})]}):null]})},mh=()=>c.jsx(Pr,{className:"size-3 shrink-0 animate-spin text-primary motion-reduce:animate-none","aria-hidden":"true","data-testid":"step-spinner"}),Qy=({steps:r,status:a,stopping:o})=>{const{t:i}=J(),d=r.find(p=>p.status==="running");return a==="streaming"?c.jsxs(c.Fragment,{children:[c.jsx(mh,{}),c.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:o?i("agent.stopping"):d?c.jsx(gh,{step:d,position:r.indexOf(d)+1}):i("agent.thinking")})]}):a==="stopped"?c.jsxs(c.Fragment,{children:[c.jsx(hf,{className:"size-3.5 shrink-0","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:i("agent.stopped")})]}):a==="error"?c.jsxs(c.Fragment,{children:[c.jsx(tf,{className:"size-3.5 shrink-0 text-destructive","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:i("agent.interrupted")})]}):c.jsxs(c.Fragment,{children:[c.jsx(Mr,{className:"size-3.5 shrink-0 text-mode-idle","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:i("agent.done")})]})},Ky=({steps:r,status:a,stopping:o})=>{const{t:i}=J(),d=hh();if(a==="streaming"){if(o)return i("agent.stopping");const p=r.find(f=>f.status==="running");return p?d(p):i("agent.thinking")}return i(a==="stopped"?"agent.stopped":a==="error"?"agent.interrupted":"agent.done")},bh="inline-flex min-h-[30px] max-w-full items-center gap-2 self-start rounded-full border bg-background py-1 pl-2 pr-2.5 text-left text-[13px] text-muted-foreground",Xy=v.memo(function(r){const{t:a}=J(),[o,i]=v.useState(!1),{steps:d,status:p}=r,f=p==="streaming",g=Ky(r),m=c.jsx(c.Fragment,{children:c.jsx(Qy,{...r})});return c.jsxs("div",{part:"steps",className:"flex flex-col gap-2 text-[13px] text-muted-foreground",children:[d.length>0?c.jsxs("button",{type:"button","aria-expanded":o,"aria-label":`${a(o?"agent.hideSteps":"agent.showSteps")}: ${g}`,onClick:()=>{i(!o)},className:B(bh,"hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",f&&"border-primary-35"),children:[m,o?c.jsx(cn,{className:"size-3.5 shrink-0 rotate-180","aria-hidden":"true"}):c.jsx(cn,{className:"size-3.5 shrink-0","aria-hidden":"true"})]}):c.jsx("div",{className:B(bh,f&&"border-primary-35"),role:"status",children:m}),o&&d.length>0?c.jsx("ol",{"aria-label":a("agent.steps"),className:"m-0 flex list-none flex-col self-stretch rounded-xl border bg-background px-3.5 py-1.5",children:d.map((b,x)=>{const k=b.status==="running",S=k&&!f;return c.jsxs("li",{className:"flex min-h-[34px] items-center gap-2.5 border-b border-dashed last:border-b-0",children:[c.jsx("span",{className:"flex w-[18px] shrink-0 justify-center",children:k&&f?c.jsx(mh,{}):S?c.jsx(tf,{className:"size-3.5","aria-hidden":"true"}):c.jsx(Mr,{className:"size-3.5 text-mode-idle","aria-hidden":"true"})}),c.jsx("span",{className:B("min-w-0 flex-1 truncate",S?"text-muted-foreground":"text-foreground"),children:c.jsx(gh,{step:b})}),S?c.jsx("span",{className:"shrink-0 whitespace-nowrap",children:a("agent.unfinished")}):null]},b.id??`${b.node}-${x}`)})}):null]})}),Gy=(r,a)=>{const o=(r.split(/[?#]/)[0]??"").split("/").filter(Boolean).pop();return o&&!/^[0-9a-f-]{36}$/i.test(o)?decodeURIComponent(o):a},xh=({url:r,name:a,className:o,children:i})=>{const{api:d}=J(),[p,f]=v.useState(!1);if(rs(r,d.apiUrl)===null){const g=pn(r);return g?c.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:o,children:i}):c.jsx("span",{className:o,children:i})}return c.jsx("button",{type:"button",part:"attachment",className:B(o,p&&"opacity-70"),disabled:p,onClick:()=>{f(!0),d.attachment(r).then(g=>{z1(g,a)}).catch(()=>{}).finally(()=>{f(!1)})},children:i})},vh=({attachment:r})=>{const{lang:a,t:o}=J(),i=r.name||Gy(r.url,"file"),d="inline-flex max-w-full items-center gap-2.5 rounded-xl border bg-muted p-1.5 text-left text-foreground",p=c.jsxs(c.Fragment,{children:[c.jsx(Is,{ext:Ms(i)}),c.jsxs("span",{className:"flex min-w-0 flex-col",children:[c.jsx("span",{className:"truncate text-[13px] font-medium leading-tight",children:i}),c.jsxs("span",{className:"flex items-center gap-1.5 text-2xs leading-tight text-muted-foreground",children:[r.size?Ps(r.size,a):null,r.url?null:c.jsxs(c.Fragment,{children:[r.size?c.jsx("span",{"aria-hidden":"true",children:"\xB7"}):null,c.jsx("span",{children:o("attachment.sending")}),c.jsx(Pr,{className:"size-3 animate-spin motion-reduce:animate-none","aria-hidden":"true"})]})]})]}),r.url?c.jsx(rf,{className:"mr-1 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}):null]});return r.url?c.jsxs(xh,{url:r.url,name:i,className:B(d,"transition-colors hover:bg-accent"),children:[c.jsxs("span",{className:"sr-only",children:[o("download"),": "]}),p]}):c.jsx("span",{className:d,children:p})},Zy=({url:r,alt:a})=>{const{api:o}=J(),[i,d]=v.useState(null),[p,f]=v.useState(!1);return v.useEffect(()=>{let g=null,m=!1;return o.attachment(r).then(b=>{m?URL.revokeObjectURL(b):(g=b,d(b))},()=>{m||f(!0)}),()=>{m=!0,g&&URL.revokeObjectURL(g)}},[o,r]),p?c.jsx("span",{className:"text-muted-foreground",children:a||r}):i?c.jsx("img",{src:i,alt:a,className:"max-w-full rounded-lg"}):c.jsx(Pr,{className:"size-4 animate-spin text-muted-foreground","aria-label":a})},Yy=8,Us=({children:r})=>c.jsx("div",{className:"text-2xs text-muted-foreground",children:r}),Jy=({block:r,onAsk:a})=>{const{lang:o,t:i}=J(),d=Array.isArray(r.sections)?r.sections:[],p=(Array.isArray(r.indicators)?r.indicators:[]).slice(0,Yy),f=Math.max(0,r.total-p.length),g=Array.isArray(r.examples)?r.examples.filter(m=>typeof m=="string"&&m):[];return c.jsxs("section",{part:"catalog",className:"flex min-w-0 flex-col rounded-xl border bg-card",children:[r.topic?c.jsxs("h3",{className:"m-0 flex items-center gap-2 border-b px-3.5 py-2.5 text-sm font-semibold",children:[c.jsx(Oo,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),i("blocks.catalogTitle",{topic:r.topic})]}):null,c.jsxs("div",{className:"flex flex-col gap-2.5 px-3.5 py-3",children:[d.length>0?c.jsxs("div",{children:[c.jsx(Us,{children:i("blocks.catalogSections")}),c.jsx("ul",{className:"m-0 list-none p-0",children:d.map(m=>c.jsxs("li",{className:"flex items-center gap-2 border-b py-[7px] text-[13px] last:border-b-0",children:[c.jsx($o,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1 leading-snug",children:m.path.join(" \u203A ")}),c.jsx("span",{className:"whitespace-nowrap tabular-nums text-muted-foreground",children:zt(m.count,o)})]},m.id))})]}):null,p.length>0?c.jsxs("div",{children:[c.jsx(Us,{children:i("blocks.catalogIndicators")}),c.jsx("ul",{className:"m-0 list-none p-0",children:p.map(m=>c.jsxs("li",{className:"flex flex-col border-b py-1.5 last:border-b-0",children:[c.jsx("span",{className:"text-[13px] font-medium leading-snug",children:m.name}),m.unit||m.years?c.jsx("span",{className:"text-2xs text-muted-foreground",children:[hs(m.unit),hs(m.years)].filter(Boolean).join(" \xB7 ")}):null]},m.entity_id))}),f>0?c.jsx("p",{className:"m-0 pt-1 text-[13px] text-muted-foreground",children:i("blocks.catalogMore",{count:zt(f,o)})}):null]}):null,g.length>0?c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(Us,{children:i("blocks.catalogExamples")}),g.map(m=>c.jsxs("button",{type:"button",className:"flex w-full items-center gap-2.5 rounded-[10px] border bg-background px-2.5 py-2 text-left text-[13px] leading-snug transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",onClick:()=>{a(m)},children:[c.jsx(iv,{className:"shrink-0 text-primary","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:m})]},m)),c.jsx("div",{className:"text-2xs text-muted-foreground",children:i("blocks.catalogSendHint")})]}):null]})]})},Uo=({rootRef:r,question:a,tone:o,children:i})=>{const{t:d}=J();return c.jsxs("section",{part:"clarification",ref:r,role:"group","aria-label":d("blocks.clarification"),"data-state":o,className:B("overflow-hidden rounded-[14px] border",o==="open"&&"border-primary-30 bg-card",o==="done"&&"bg-card",o==="expired"&&"bg-muted"),children:[c.jsx("div",{className:"flex items-center gap-2 px-3.5 pb-1 pt-3",children:c.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2 py-0.5 text-2xs font-medium text-secondary-foreground",children:[c.jsx(sf,{className:"size-3","aria-hidden":"true"}),d("blocks.clarification")]})}),c.jsx("p",{className:"m-0 px-3.5 pb-2.5 text-[15px] font-medium leading-snug",children:a}),i]})},yh=({children:r})=>c.jsx("kbd",{className:"inline-flex h-4 min-w-4 items-center justify-center rounded border border-current/40 px-1 font-sans text-2xs leading-none opacity-80",children:r}),Qs=({children:r})=>c.jsx("div",{className:"flex items-center gap-2 border-t px-3.5 py-2.5 text-[13px] text-muted-foreground",children:r}),ew=2**31-1,tw=(r,a)=>{const[o,i]=v.useState(()=>new Date);return v.useEffect(()=>{if(!a)return;const d=Date.parse(r)-Date.now();if(!(d>0))return;const p=window.setTimeout(()=>{i(new Date)},Math.min(d+50,ew));return()=>{window.clearTimeout(p)}},[r,a]),o},rw=({block:r,isLastInBranch:a,question:o,reply:i,disabled:d,onAsk:p})=>{const{t:f}=J(),g=v.useRef(null),m=tw(r.expires_at,a),b=fp(r,{isLastInBranch:a,now:m}),[x,k]=v.useState(""),S=v.useRef(!1),[E,C]=v.useState(!1),_=r.options,M=d||E,$=(U,me=U.label)=>{if(S.current||d)return;S.current=!0,C(!0);const _e=p(me,{clarification_id:r.id,slot:r.slot,value:U.value,free_text:null});Promise.resolve(_e).then(xe=>{xe===!1&&(S.current=!1,C(!1))})},X=v.useRef($);v.useEffect(()=>{X.current=$});const ae=r.type==="plan_confirm",G=_.find(U=>U.value===r.default)??_[0],D=_.find(U=>U!==G),te=ae?[...G?[{option:G,text:f("blocks.continue")}]:[],...D?[{option:D,text:f("blocks.cancelPlan")}]:[]]:_.slice(0,ox).map(U=>({option:U,text:U.label})),Z=v.useRef(te);v.useEffect(()=>{Z.current=te});const re=b==="open"&&!M,be=te.length;v.useEffect(()=>{if(!re||be===0)return;const U=g.current?.getRootNode();if(!U)return;const me=_e=>{const xe=_e;if(xe.defaultPrevented||xe.ctrlKey||xe.metaKey||xe.altKey||xe.repeat||dx(xe.composedPath()[0]))return;const ye=Number(xe.key),q=Number.isInteger(ye)&&ye>=1?Z.current[ye-1]:void 0;q&&(xe.preventDefault(),X.current(q.option,q.text))};return U.addEventListener("keydown",me),()=>{U.removeEventListener("keydown",me)}},[re,be]);const Q=b==="answered"&&o!==""&&i===o;if(b==="answered"&&!Q)return c.jsx(Uo,{rootRef:g,question:r.question,tone:"done",children:i?c.jsxs(Qs,{children:[c.jsx(Mr,{className:"shrink-0","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.chosen",{label:i})})]}):null});if(b==="expired"||Q)return c.jsx(Uo,{rootRef:g,question:r.question,tone:"expired",children:c.jsxs(Qs,{children:[c.jsx(ms,{className:"shrink-0","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.expired")}),o&&!Q?c.jsxs(ge,{variant:"input",size:"sm",className:"gap-1.5",disabled:d,onClick:()=>{p(o)},children:[c.jsx(ff,{"aria-hidden":"true"}),f("blocks.askAgain")]}):null]})});if(ae){const[U,me]=te;return c.jsx(Uo,{rootRef:g,question:r.question,tone:"open",children:c.jsxs("div",{className:"flex flex-wrap gap-2 px-2.5 pb-2.5",children:[U?c.jsxs(ge,{size:"sm",disabled:M,onClick:()=>{$(U.option,U.text)},children:[c.jsx(yh,{children:"1"}),U.text]}):null,me?c.jsxs(ge,{variant:"input",size:"sm",disabled:M,onClick:()=>{$(me.option,me.text)},children:[c.jsx(yh,{children:"2"}),me.text]}):null]})})}const fe=_.length>=ax,W=fe?ub(_,x):_;return c.jsxs(Uo,{rootRef:g,question:r.question,tone:"open",children:[c.jsxs("div",{className:"flex flex-col gap-1.5 px-2.5 pb-2.5",children:[fe?c.jsxs("label",{className:"flex h-8 items-center gap-2 rounded-md border border-input bg-background px-2.5 text-sm focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",children:[c.jsx(ia,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),c.jsx("input",{type:"search",value:x,placeholder:f("blocks.findOption"),"aria-label":f("blocks.findOption"),className:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground",onChange:U=>{k(U.target.value)}})]}):null,W.length>0?c.jsx("ul",{"aria-label":f("blocks.options"),className:"m-0 flex list-none flex-col gap-1.5 p-0",children:W.map(U=>{const me=_.indexOf(U)+1;return c.jsx("li",{children:c.jsxs("button",{type:"button",disabled:M,className:B("flex w-full items-start gap-3 rounded-[10px] border bg-background px-3 py-[9px] text-left transition-colors motion-reduce:transition-none","hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:bg-muted disabled:text-disabled-foreground"),onClick:()=>{$(U)},children:[c.jsx("span",{className:"mt-px flex h-[22px] min-w-[22px] shrink-0 items-center justify-center rounded-md border text-2xs font-semibold tabular-nums text-muted-foreground",children:me}),c.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[c.jsxs("span",{className:"text-sm font-medium leading-snug",children:[U.label,U.value===r.default?c.jsx("span",{className:"ml-1.5 whitespace-nowrap rounded-full bg-muted px-1.5 py-px text-2xs font-normal text-muted-foreground",children:f("blocks.default")}):null]}),U.hint?c.jsx("span",{className:"text-[13px] leading-snug text-muted-foreground",children:U.hint}):null]})]})},U.value)})}):c.jsx("p",{className:"px-1 py-2 text-sm text-muted-foreground",children:f("searchEmpty")})]}),r.allow_free_text?c.jsxs(Qs,{children:[c.jsx(sf,{className:"shrink-0","aria-hidden":"true"}),c.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.freeTextHint")})]}):null]})},nw=10,aw=({section:r})=>{const{t:a}=J(),o=r.latest_period,i=r.shape==="trend",d=i?[]:pa(r,{period:o,mode:"value",base:"median"}),p=d.slice(0,nw);return c.jsxs("div",{part:"dashboard-preview",className:"flex min-w-0 flex-col gap-3 rounded-xl bg-[hsl(var(--chart-card))] px-4 py-3.5",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:"text-sm font-semibold leading-snug",children:r.title}),i?null:c.jsxs("p",{className:"text-2xs text-muted-foreground",children:[o,", ",r.unit.label]})]}),c.jsx(Hf,{compact:!0,section:r,period:o,label:a("chart.label",{title:r.title,period:o}),rows:p,national:Vf(r,o,p.map(f=>f.value))}),d.length>p.length?c.jsx("p",{className:"text-2xs text-muted-foreground",children:a("chart.top",{n:p.length,total:d.length})}):null]})},Qo=r=>r.type==="number"||r.type==="integer",ow=(r,a,o)=>Qo(r)?zt(ux(a),o,r.type==="integer"?0:void 0):hs(a)||"\u2014",lw={asc:Jp,desc:Yp},iw=({block:r})=>{const{lang:a,t:o}=J(),[i,d]=v.useState(),[p,f]=v.useState("asc"),[g,m]=v.useState(1),[b,x]=v.useState(""),k=Array.isArray(r.columns)?r.columns:[],S=sb({...r,columns:k,data:Array.isArray(r.data)?r.data:[]},{...i?{sortKey:i,dir:p}:{},page:g,query:b}),E=k.some(_=>_.type==="string"),C=_=>{_===i?f(M=>M==="asc"?"desc":"asc"):(d(_),f("asc")),m(1)};return c.jsxs("div",{part:"data-table",className:"flex min-w-0 flex-col gap-2",children:[E?c.jsxs("label",{className:"flex h-8 items-center gap-2 rounded-md border border-input bg-background px-2.5 text-sm focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",children:[c.jsx(ia,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),c.jsx("input",{type:"search",value:b,placeholder:o("blocks.tableSearch"),"aria-label":o("blocks.tableSearch"),className:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground",onChange:_=>{x(_.target.value),m(1)}})]}):null,c.jsxs("div",{className:"max-w-full overflow-x-auto overscroll-x-contain rounded-[10px] border bg-background",children:[c.jsxs("table",{className:"w-full border-collapse text-[13.5px]","aria-label":o("blocks.table"),children:[c.jsx("thead",{children:c.jsx("tr",{className:"border-b bg-muted",children:k.map(_=>{const M=_.key===i,$=M?lw[p]:Nx;return c.jsx("th",{scope:"col","aria-sort":M?p==="asc"?"ascending":"descending":"none",className:B("p-0 font-semibold",Qo(_)?"text-right":"text-left"),children:c.jsxs("button",{type:"button",className:B("inline-flex w-full items-center gap-1 whitespace-nowrap px-3 py-[7px] text-[13.5px] font-semibold text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",Qo(_)&&"flex-row-reverse"),onClick:()=>{C(_.key)},children:[c.jsx("span",{children:_.title}),_.unit?c.jsxs("span",{className:"font-normal",children:[", ",_.unit]}):null,c.jsx($,{className:B("shrink-0 text-muted-foreground",!M&&"opacity-50"),"aria-hidden":"true"})]})},_.key)})})}),c.jsx("tbody",{children:S.rows.map((_,M)=>c.jsx("tr",{className:"border-b last:border-b-0",children:k.map($=>c.jsx("td",{className:B("px-3 py-[7px] align-top",Qo($)?"whitespace-nowrap text-right tabular-nums":"min-w-32"),children:ow($,_[$.key],a)},$.key))},S.from+M))})]}),S.total===0?c.jsx("p",{className:"px-3 py-3 text-center text-sm text-muted-foreground",children:o(b?"searchEmpty":"blocks.tableEmpty")}):null]}),S.pages>1?c.jsxs("div",{className:"flex items-center justify-end gap-1 text-2xs tabular-nums text-muted-foreground",children:[c.jsx(ge,{variant:"ghost",size:"icon",className:"size-7",disabled:S.page<=1,"aria-label":o("blocks.prevPage"),onClick:()=>{m(S.page-1)},children:c.jsx(ef,{"aria-hidden":"true"})}),c.jsx("span",{"aria-live":"polite",children:o("blocks.page",{a:S.page,b:S.pages})}),c.jsx(ge,{variant:"ghost",size:"icon",className:"size-7",disabled:S.page>=S.pages,"aria-label":o("blocks.nextPage"),onClick:()=>{m(S.page+1)},children:c.jsx($o,{"aria-hidden":"true"})})]}):null,r.truncated?c.jsx("p",{className:"text-2xs text-muted-foreground",children:o("blocks.truncated",{n:Array.isArray(r.data)?r.data.length:0})}):null]})},Ks="inline-flex min-h-[30px] max-w-full items-center gap-1.5 rounded-lg bg-muted px-2.5 py-1 text-[13px]",sw=["sex","age","urban_rural","activity","item"],cw=r=>sw.includes(r),Xs=({label:r,children:a,title:o})=>c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"shrink-0 whitespace-nowrap text-muted-foreground",children:r}),c.jsx("span",{className:"min-w-0 truncate font-medium",title:o,children:a})]}),Gs=({label:r,children:a,className:o})=>c.jsx("li",{className:B(Ks,o),title:r,children:c.jsx(Xs,{label:r,children:a})}),dw=({block:r,question:a,onAsk:o})=>{const{t:i}=J(),[d,p]=v.useState(!1),f=v.useId(),g=r.indicators.map(k=>k.name).join(", "),m=r.territories.map(k=>k.name).join(", "),b=r.breakdown&&cw(r.breakdown)?i(`blocks.breakdown.${r.breakdown}`):"",x=r.alternatives.length>0&&a!=="";return c.jsxs("div",{part:"plan",role:"group","aria-label":i("blocks.passport"),className:"flex flex-col gap-1.5",children:[c.jsx("div",{className:"text-2xs text-muted-foreground",children:i("blocks.passport")}),c.jsxs("ul",{"aria-label":i("blocks.passport"),className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0",children:[g?x?c.jsxs("li",{className:"relative max-w-full",children:[c.jsxs("button",{type:"button",className:B(Ks,"border border-border bg-background transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",d&&"border-primary ring-[3px] ring-secondary"),title:g,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":f,onClick:()=>{p(k=>!k)},children:[c.jsx(Xs,{label:i("blocks.indicator"),children:g}),c.jsx(cn,{className:B("shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",d&&"rotate-180"),"aria-hidden":"true"})]}),d?c.jsxs("div",{id:f,role:"menu","aria-label":i("blocks.alternatives"),className:"absolute left-0 top-full z-20 mt-1 flex min-w-[220px] max-w-[min(360px,80vw)] flex-col rounded-md border bg-background p-1 shadow-pop",children:[c.jsx("div",{className:"px-2.5 pb-1 pt-1.5 text-2xs text-muted-foreground",children:i("blocks.alternatives")}),r.alternatives.map(k=>c.jsx("button",{type:"button",role:"menuitem",className:"flex min-h-9 w-full items-center rounded-md px-2.5 py-1.5 text-left text-sm transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none motion-reduce:transition-none",onClick:()=>{p(!1),o(`${a} \u2014 ${k.name}`)},children:k.name},k.id))]}):null]}):c.jsx(Gs,{label:i("blocks.indicator"),children:g}):null,m?c.jsx(Gs,{label:i("blocks.territory"),children:m}):null,r.period.label?c.jsxs("li",{className:B(Ks,r.period.substituted&&"border border-warning/40"),title:r.period.reason??i("blocks.period"),children:[c.jsx(Xs,{label:i("blocks.period"),children:r.period.label}),r.period.substituted?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-muted-foreground","aria-hidden":"true",children:"\xB7"}),c.jsx("span",{className:"text-warn-text",children:i("blocks.substituted")})]}):null]}):null,b?c.jsx(Gs,{label:i("blocks.breakdown"),children:b}):null]})]})},wh="gap-1.5 text-[13px]",kh="gap-1.5 text-[13px] text-muted-foreground hover:text-foreground",uw=({text:r})=>{const{t:a}=J(),[o,i]=v.useState(!1),d=v.useRef(void 0);return v.useEffect(()=>()=>{window.clearTimeout(d.current)},[]),c.jsxs(ge,{part:"copy",variant:"ghost",size:"sm",className:kh,onClick:()=>{js(r).then(p=>{p&&(i(!0),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{i(!1)},2e3))})},children:[o?c.jsx(Mr,{"aria-hidden":"true"}):c.jsx(bs,{"aria-hidden":"true"}),a(o?"copied":"copy")]})},pw=({message:r,isLastInBranch:a,onAsk:o,children:i,dashboardOpen:d=!1,onToggleDashboard:p})=>{const{path:f,t:g}=J(),[m,b]=v.useState(!1),{blocks:x}=r,k=Bt(x,"plan"),S=Bt(x,"table"),E=Bt(x,"catalog"),C=Bt(x,"clarification"),{question:_,reply:M}=ix(f,r.id),$=r.status==="streaming",X=k?.methodology?pn(k.methodology.url):null,ae=x.length>0&&!$?db(r):"",G=!$&&r.status!=="error"&&Io(r.id),D=Bt(x,"dashboard"),te=D?.sections[0],Z=G&&D!==void 0,re=Z?p:void 0,be=Kp(x),Q=$?[]:lx(x);return c.jsxs(c.Fragment,{children:[k?c.jsx(dw,{block:k,question:_,onAsk:o}):null,i,E?c.jsx(Jy,{block:E,onAsk:o}):null,C?c.jsx(rw,{block:C,isLastInBranch:a,question:_,reply:M,disabled:$,onAsk:o}):null,te?c.jsx(aw,{section:te}):null,S&&m?c.jsx(iw,{block:S}):null,Q.length>0?c.jsx(Gf,{files:Q}):null,G?c.jsx(Zf,{messageId:r.id,block:be}):null,x.length>0&&!$?c.jsxs("div",{part:"answer-actions",role:"group",className:"flex flex-wrap items-center gap-1.5",children:[S?c.jsxs(ge,{part:"data-toggle",variant:"input",size:"sm",className:wh,"aria-expanded":m,onClick:()=>{b(fe=>!fe)},children:[c.jsx(Av,{"aria-hidden":"true"}),g(m?"blocks.hideData":"blocks.data")]}):null,re?c.jsxs(ge,{part:"dashboard-toggle","data-message-id":r.id,variant:"input",size:"sm",className:B(wh,d&&"border-primary bg-secondary text-secondary-foreground"),"aria-expanded":d,onClick:()=>{re(r.id)},children:[c.jsx(Mx,{"aria-hidden":"true"}),g(d?"blocks.hideDashboard":"blocks.dashboard")]}):null,Z?c.jsx(Wf,{messageId:r.id,block:be}):null,k?.methodology&&X?c.jsx(ge,{part:"methodology",variant:"ghost",size:"sm",className:kh,asChild:!0,children:c.jsxs("a",{href:X,target:"_blank",rel:"noopener noreferrer",title:k.methodology.title,children:[c.jsx(Oo,{"aria-hidden":"true"}),g("blocks.methodology")]})}):null,ae?c.jsx(uw,{text:ae}):null]}):null]})},fw=v.lazy(()=>import("./markdown-impl-Cu_bBFxI.js").then(r=>({default:r.MarkdownImpl}))),hw=v.memo(function({children:r,streaming:a=!1,className:o}){return c.jsxs("div",{part:"markdown",className:B("min-w-0 break-words text-[15px] leading-[1.65] text-foreground",o),children:[c.jsx(v.Suspense,{fallback:c.jsx("span",{className:"whitespace-pre-wrap",children:r}),children:c.jsx(fw,{children:r})}),a?c.jsx("span",{"aria-hidden":"true",className:"ml-0.5 inline-block h-[17px] w-[7px] translate-y-[3px] rounded-sm bg-primary animate-pulse motion-reduce:animate-none"}):null]})}),ma="size-7 shrink-0 text-muted-foreground hover:text-foreground",Sh=({messageId:r,disabled:a})=>{const{index:o,switchBranch:i,t:d}=J(),{list:p,position:f}=Xb(o,r);if(p.length<2||f<0)return null;const g=p[f-1],m=p[f+1];return c.jsxs("div",{part:"branch",className:"flex items-center text-[13px] tabular-nums text-muted-foreground",role:"group","aria-label":d("branch.label"),children:[c.jsx(ge,{variant:"ghost",size:"icon",className:ma,disabled:a||!g,"aria-label":d("branch.prev"),onClick:()=>{g&&i(g.id)},children:c.jsx(ef,{"aria-hidden":"true"})}),c.jsxs("span",{"aria-live":"polite",className:"min-w-[30px] text-center",children:[f+1,"/",p.length]}),c.jsx(ge,{variant:"ghost",size:"icon",className:ma,disabled:a||!m,"aria-label":d("branch.next"),onClick:()=>{m&&i(m.id)},children:c.jsx($o,{"aria-hidden":"true"})})]})},gw=({text:r})=>{const{t:a}=J(),[o,i]=v.useState(!1),d=v.useRef(void 0);v.useEffect(()=>()=>{window.clearTimeout(d.current)},[]);const p=a(o?"copied":"copy");return c.jsx(ge,{part:"copy",variant:"ghost",size:"icon",className:ma,"aria-label":p,title:p,onClick:()=>{js(r).then(f=>{f&&(i(!0),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{i(!1)},2e3))})},children:o?c.jsx(Mr,{"aria-hidden":"true"}):c.jsx(bs,{"aria-hidden":"true"})})},mw=({message:r})=>{const{rate:a,t:o}=J(),[i,d]=v.useState(),p=r.rating??0;return c.jsx("span",{part:"rating",role:"radiogroup","aria-label":o("rateGroup"),className:"inline-flex items-center",onKeyDown:qs,onMouseLeave:()=>{d(void 0)},children:_1.map((f,g)=>{const m=f<=p,b=!m&&p===0&&i!==void 0&&f<=i;return c.jsx("button",{type:"button",role:"radio",tabIndex:$s(g,p-1),"aria-checked":p===f,"aria-label":o("rate",{count:f}),className:B("inline-flex size-[30px] items-center justify-center rounded-md text-muted-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",(m||b)&&"text-warning"),onMouseEnter:()=>{d(f)},onClick:()=>{a(r.id,f)},children:c.jsx(Rv,{className:B("size-4",m&&"fill-current"),"aria-hidden":"true"})},f)})})},bw=({message:r,isLast:a,busy:o,ready:i,persisted:d,canFeedback:p,feedbackOpen:f,onOpenFeedback:g})=>{const{send:m,state:b,t:x}=J(),k=r.status==="error",S=a&&i&&!o&&!b.limit.blocked;if(k&&!S)return null;const E=ua.find(M=>M===r.feedbackReason),C=r.blocks.length>0,_=()=>{m({query:"",mode:b.mode??r.mode,regenerateOf:r.id})};return c.jsxs("div",{part:"actions",role:"toolbar","aria-label":x("actionsLabel"),className:B("flex min-h-8 flex-wrap items-center gap-0.5",!k&&r.rating==null&&ks),children:[i&&!k&&r.content&&!C?c.jsx(gw,{text:r.content}):null,S?k?c.jsxs(ge,{part:"regenerate",variant:"input",size:"sm",className:"gap-1.5",onClick:_,children:[c.jsx(pf,{"aria-hidden":"true"}),x("regenerate")]}):c.jsxs(ge,{part:"regenerate",variant:"ghost",size:"icon",className:B(ma,"max-sm:h-8 max-sm:w-auto max-sm:gap-1.5 max-sm:px-2.5 max-sm:text-[13px]"),"aria-label":x("regenerate"),title:x("regenerate"),onClick:_,children:[c.jsx(pf,{"aria-hidden":"true"}),c.jsx("span",{className:"hidden max-sm:inline",children:x("regenerate")})]}):null,i&&!k?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"mx-1.5 h-[18px] w-px bg-border","aria-hidden":"true"}),c.jsx(mw,{message:r})]}):null,c.jsx(Sh,{messageId:r.id,disabled:o||!d}),p&&!f?c.jsx(ge,{variant:"link",size:"sm",onClick:g,children:r.feedback||E?x("feedbackEdit"):x("feedbackOpen")}):null]})},xw=({message:r,onClose:a})=>{const{saveFeedback:o,t:i}=J(),[d,p]=v.useState(r.feedback),[f,g]=v.useState(!1),[m,b]=v.useState(!1),[x,k]=v.useState(()=>ua.find(E=>E===r.feedbackReason)),S=()=>{g(!0),b(!1),o(r.id,d.trim(),x).then(E=>{g(!1),E?a():b(!0)})};return c.jsxs("form",{part:"feedback","aria-label":i("feedbackLabel"),onSubmit:E=>{E.preventDefault()},className:"flex flex-col gap-3 rounded-[14px] border bg-background p-3.5",children:[c.jsx("div",{className:"text-sm font-medium",children:i("feedback.reasonsLabel")}),c.jsx("div",{role:"radiogroup","aria-label":i("feedback.reasonsLabel"),className:"flex flex-wrap gap-1.5",onKeyDown:qs,children:ua.map((E,C)=>{const _=E===x;return c.jsx("button",{type:"button",role:"radio",tabIndex:$s(C,x?ua.indexOf(x):-1),"aria-checked":_,disabled:f,onClick:()=>{k(_?void 0:E)},className:B("inline-flex h-[30px] items-center whitespace-nowrap rounded-full border px-3 text-[13px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 motion-reduce:transition-none",_?"border-primary-50 bg-secondary font-medium text-secondary-foreground":"bg-background text-foreground hover:bg-muted"),children:i(`feedback.reason.${E}`)},E)})}),c.jsx(Vs,{autoFocus:!0,value:d,onChange:p,placeholder:i("feedbackPlaceholder"),"aria-label":i("feedbackLabel"),maxLength:Ss,disabled:f,className:"min-h-[76px] rounded-md border border-input bg-background px-3 py-2.5 text-[15px] leading-normal focus:border-primary focus:ring-[3px] focus:ring-secondary"}),m?c.jsxs("div",{role:"alert",className:"flex items-start gap-1.5 text-[13px] text-destructive",children:[c.jsx(Ir,{className:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"}),c.jsx("span",{children:i("ratingError")})]}):null,c.jsxs("div",{className:"flex items-center justify-end gap-2",children:[c.jsxs("span",{className:B("mr-auto text-2xs tabular-nums text-muted-foreground",d.length>=Ss&&"font-semibold text-warn-text"),children:[d.length,"/",Ss]}),c.jsx(ge,{variant:"ghost",size:"sm",onClick:a,disabled:f,children:i("cancel")}),c.jsxs(ge,{size:"sm",disabled:f,onClick:S,children:[f?c.jsx(Pr,{className:"size-3 animate-spin motion-reduce:animate-none","aria-hidden":"true"}):null,i("save")]})]})]})},vw=({message:r})=>{const{t:a}=J(),o=ua.find(i=>i===r.feedbackReason);return!o&&!r.feedback?null:c.jsxs("div",{part:"feedback-saved",className:"flex flex-col gap-1 rounded-xl bg-muted px-3 py-2.5 text-sm",children:[o?c.jsx("span",{className:"font-semibold",children:a(`feedback.reason.${o}`)}):null,r.feedback?c.jsx("span",{className:"whitespace-pre-line break-words",children:r.feedback}):null]})},yw=({message:r,isLast:a,busy:o,persisted:i,dashboardOpen:d,onToggleDashboard:p})=>{const{send:f,state:g,t:m}=J(),[b,x]=v.useState(!1),k=r.status==="streaming",S=r.status==="error",E=m0(r.content,k),C=V0(k,r.status),_=!k&&i,M=_&&!S&&r.rating!=null&&r.rating<N1,$=!S&&(k||r.steps.length>0),X=Date.parse(r.createdAt)||0,ae=C?"eureka":D0(r.status,r.content.length>0),G=(D,te)=>f({query:D,mode:g.mode??r.mode,...te?{clarification:te}:{}}).then(Z=>Z==="sent");return c.jsxs("article",{part:"message","data-role":"assistant","data-status":r.status,"aria-busy":k,className:"group flex items-start gap-3",children:[c.jsxs("div",{part:"avatar",className:"relative w-8 shrink-0 max-sm:hidden",children:[c.jsx(Fo,{mood:ae,size:32,animated:k||C}),S?c.jsx("span",{"data-testid":"avatar-caption",className:"absolute left-0 top-full mt-1 whitespace-nowrap text-2xs leading-none text-muted-foreground",children:m("agent.failed")}):null]}),c.jsxs("div",{part:S?"bubble assistant-bubble error-bubble":"bubble assistant-bubble",className:"flex min-w-0 flex-1 flex-col gap-3",children:[$?c.jsx(Xy,{steps:r.steps,status:r.status,startedAt:X,durationMs:r.durationMs,stopping:g.turn?.stopping===!0&&g.turn.assistantId===r.id}):null,S?c.jsxs("div",{role:"alert",className:"flex items-start gap-2.5 rounded-xl border border-error/30 bg-destructive-background px-3.5 py-3 text-sm",children:[c.jsx(Ir,{className:"mt-0.5 size-4 shrink-0 text-destructive","aria-hidden":"true"}),c.jsx("span",{children:r.content||m("errors.generic")})]}):null,c.jsx(pw,{message:r,isLastInBranch:a,onAsk:G,dashboardOpen:d,onToggleDashboard:p,children:r.content&&!S?c.jsx(hw,{streaming:k,children:E}):null}),r.attachments.length>0?c.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.attachments.map((D,te)=>c.jsx(vh,{attachment:D},D.id??`${D.name}-${te}`))}):null,r.status==="stopped"?c.jsxs("div",{className:"flex items-center gap-2 text-[13px] text-muted-foreground",children:[c.jsx(af,{className:"size-4 shrink-0","aria-hidden":"true"}),c.jsx("span",{children:m("agent.answerStopped")})]}):null,k?null:c.jsx(bw,{message:r,isLast:a,busy:o,ready:_,persisted:i,canFeedback:M,feedbackOpen:b,onOpenFeedback:()=>{x(!0)}}),M&&b?c.jsx(xw,{message:r,onClose:()=>{x(!1)}}):null,M&&!b?c.jsx(vw,{message:r}):null]})]})},ww=({message:r,onClose:a})=>{const{send:o,state:i,t:d}=J(),p=v.useId(),[f,g]=v.useState(r.content),m=i.mode??r.mode,b=i.config?.max_query_chars??Lp,x=f.trim(),k=x!==r.content.trim(),S=f.length>b,E=x.length>0&&k&&!S&&!i.turn&&!i.limit.blocked,C=()=>{E&&(a(),o({query:x,mode:m,parentId:r.parentId??""}))};return c.jsxs("div",{part:"edit",onKeyDown:_=>{_.key==="Escape"&&(_.preventDefault(),_.stopPropagation(),a())},className:"flex w-full max-w-[640px] flex-col gap-2 rounded-2xl border border-primary bg-background px-3 py-2.5 ring-[3px] ring-secondary",children:[c.jsx(Vs,{autoFocus:!0,value:f,onChange:g,"aria-label":d("editLabel"),"aria-invalid":S||void 0,"aria-describedby":p,className:"py-0.5 text-lg",onSubmit:C}),c.jsxs("div",{className:"flex items-center justify-end gap-2",children:[c.jsx(ch,{id:p,count:f.length,max:b,className:"mr-auto px-0"}),c.jsx(ge,{variant:"ghost",size:"sm",onClick:a,children:d("cancel")}),c.jsx(ge,{size:"sm",disabled:!E,onClick:C,children:d("send")})]})]})},kw=({message:r,busy:a,persisted:o})=>{const{t:i}=J(),[d,p]=v.useState(!1);return c.jsx("div",{part:"message","data-role":"user",className:"group flex flex-col items-end gap-1.5",children:d?c.jsx(ww,{message:r,onClose:()=>{p(!1)}}):c.jsxs(c.Fragment,{children:[r.attachments.length>0?c.jsx("div",{className:"flex max-w-[78%] flex-wrap justify-end gap-1.5 max-sm:max-w-[88%]",children:r.attachments.map((f,g)=>c.jsx(vh,{attachment:f},f.id??`${f.name}-${g}`))}):null,c.jsx("div",{part:"bubble user-bubble",className:"max-w-[78%] whitespace-pre-wrap break-words rounded-[calc(var(--aid-c-radius)+6px)] rounded-br-[6px] bg-primary px-3.5 py-2.5 text-[15px] leading-normal text-primary-foreground max-sm:max-w-[88%]",children:r.content}),c.jsxs("div",{className:"flex min-h-7 items-center gap-0.5",children:[o?c.jsx(ge,{part:"edit-button",variant:"ghost",size:"icon",className:B(ma,ks),disabled:a,"aria-label":i("edit"),title:i("edit"),onClick:()=>{p(!0)},children:c.jsx(wv,{"aria-hidden":"true"})}):null,c.jsx(Sh,{messageId:r.id,disabled:a||!o})]})]})})},Sw=v.memo(function({message:r,isLast:a,busy:o,dashboardOpen:i,onToggleDashboard:d}){const p=Io(r.id);return r.role==="user"?c.jsx(kw,{message:r,busy:o,persisted:p}):c.jsx(yw,{message:r,isLast:a,busy:o,persisted:p,dashboardOpen:i,onToggleDashboard:d})}),jh=r=>r.scrollHeight-r.scrollTop-r.clientHeight,jw=({resetKey:r,followKey:a})=>{const o=v.useRef(null),i=v.useRef(null),d=v.useRef(!0),p=v.useRef(0),[f,g]=v.useState(!0),m=v.useCallback(()=>{const k=o.current;k&&(k.scrollTop=k.scrollHeight)},[]),b=v.useCallback(()=>{const k=o.current;if(!k)return;d.current=!0;const S=typeof matchMedia<"u"&&matchMedia("(prefers-reduced-motion: reduce)").matches;k.scrollTo({top:k.scrollHeight,behavior:S?"auto":"smooth"})},[]),x=v.useCallback(()=>{const k=o.current;if(!k)return;const S=jh(k)<Sf;S?d.current=!0:k.scrollTop<p.current-1&&(d.current=!1),p.current=k.scrollTop,g(S)},[]);return v.useLayoutEffect(()=>{d.current=!0,m()},[r,a,m]),v.useEffect(()=>{const k=i.current,S=o.current;if(!k||!S||typeof ResizeObserver>"u")return;const E=new ResizeObserver(()=>{d.current&&m(),g(jh(S)<Sf)});return E.observe(k),()=>{E.disconnect()}},[m]),{scrollRef:o,contentRef:i,onScroll:x,atBottom:f,scrollToBottom:b}},Nw=()=>{const{state:r,path:a,t:o}=J(),{state:i,toggle:d}=pr(),p=a.filter(E=>E.role==="user").length,{scrollRef:f,contentRef:g,onScroll:m,atBottom:b,scrollToBottom:x}=jw({resetKey:r.thread?.id??null,followKey:p}),k=r.turn!==null,S=a[a.length-1];return c.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[c.jsx("div",{ref:f,part:"messages",onScroll:m,"aria-live":"polite","aria-busy":k,className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:c.jsx("div",{ref:g,className:"mx-auto flex w-full max-w-[820px] flex-col gap-[22px] px-4 pb-4 pt-[18px]",children:a.map(E=>c.jsx(Sw,{message:E,isLast:E===S,busy:k,dashboardOpen:E.id===i.messageId,onToggleDashboard:d},E.id))})}),b?null:c.jsxs("button",{part:"scroll-down",type:"button",className:"absolute bottom-3 left-1/2 inline-flex h-9 -translate-x-1/2 items-center gap-1.5 whitespace-nowrap rounded-full border bg-background pl-3 pr-3.5 text-[13px] font-medium text-foreground shadow-pop transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",onClick:x,children:[c.jsx(Yp,{"aria-hidden":"true"}),o("scrollDown")]})]})},_w={error:"bg-error-background text-destructive",warning:"bg-warning-background text-warn-text",lock:"bg-muted text-muted-foreground"},Nh=({tone:r,children:a})=>c.jsx("span",{className:B("flex size-[52px] items-center justify-center rounded-full",_w[r]),children:a}),Ew=({kind:r,onRetry:a})=>{const{t:o}=J();if(r==="loading")return c.jsxs("div",{part:"shell-status","data-state":"loading","aria-busy":"true",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[c.jsx("span",{"aria-hidden":"true",className:"size-[26px] animate-spin rounded-full border-[3px] border-current border-r-transparent text-primary motion-reduce:animate-none"}),c.jsx("span",{role:"status",className:"text-xs text-muted-foreground",children:o("loading")})]});if(r==="siteBlocked")return c.jsxs("div",{part:"shell-status","data-state":"siteBlocked",role:"alert",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[c.jsx(Nh,{tone:"lock",children:c.jsx(of,{className:"size-6","aria-hidden":"true"})}),c.jsx("p",{className:"max-w-[300px] text-lg font-semibold",children:o("shell.siteBlocked")}),c.jsx("p",{className:"max-w-[440px] text-xs text-muted-foreground",children:o("shell.siteBlockedHint")})]});const i=r==="overloaded";return c.jsxs("div",{part:"shell-status","data-state":i?"overloaded":"unavailable",role:"alert",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[c.jsx(Nh,{tone:i?"warning":"error",children:i?c.jsx(qo,{className:"size-6","aria-hidden":"true"}):c.jsx(Ir,{className:"size-6","aria-hidden":"true"})}),c.jsx("p",{className:"max-w-[300px] text-lg font-semibold",children:o(i?"overloaded":"configError")}),a?c.jsxs(ge,{variant:"input",size:"sm",onClick:a,children:[c.jsx(ff,{"aria-hidden":"true"}),o("retry")]}):null]})},zw=()=>{const{state:r,reload:a}=J(),o=G0(r);return o===null?null:c.jsx(Ew,{kind:o,onRetry:o==="siteBlocked"?void 0:a})},Cw="h-3 rounded-md bg-muted animate-pulse motion-reduce:animate-none",Lw=()=>{const{t:r}=J();return c.jsxs("div",{"aria-busy":"true",className:"min-h-0 flex-1 overflow-hidden",children:[c.jsxs("div",{className:"mx-auto flex w-full max-w-[820px] flex-col gap-[22px] px-4 pb-4 pt-[18px]",children:[c.jsx("div",{className:"flex justify-end",children:c.jsx("div",{className:"h-[38px] w-[62%] rounded-[18px] rounded-br-[6px] bg-muted animate-pulse motion-reduce:animate-none"})}),c.jsx("div",{className:"flex flex-col gap-2.5",children:[90,76,84,40].map(a=>c.jsx("div",{className:Cw,style:{width:`${a}%`}},a))})]}),c.jsx("span",{role:"status",className:"sr-only",children:r("loading")})]})},Mw=({composerRef:r,wide:a})=>{const{state:o,path:i}=J(),[d,p]=v.useState(!1),f=!!o.config&&!o.loadingThread&&!o.configError,g=f&&i.length===0,m=x=>{r&&"current"in r&&r.current?.setText(x)};let b;return f?g?b=c.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:c.jsx(Uy,{listening:d,wide:a,onPick:m})}):b=c.jsx(Nw,{}):b=o.loadingThread&&o.config&&!o.configError?c.jsx(Lw,{}):c.jsx(zw,{}),c.jsxs(c.Fragment,{children:[b,c.jsx($y,{composerRef:r,onDraftChange:p})]})},ba="size-8 shrink-0 text-muted-foreground hover:text-foreground",Iw=({historyHidden:r,onShowHistory:a,onOpenSettings:o,title:i,logoUrl:d,threadTitle:p,tabs:f,inert:g=!1})=>{const{t:m,newChat:b}=J(),x=ls(),k=v.useRef(null);Cr(k,g);const S=p!==void 0&&p!==""?p:r?i:"";return c.jsxs("div",{ref:k,part:"toolbar",className:"flex h-toolbar shrink-0 items-center gap-1 border-b py-0 pl-2.5 pr-2",children:[r?c.jsx(ge,{part:"history-toggle",variant:"ghost",size:"icon",className:ba,"aria-expanded":!1,"aria-label":m("history"),title:m("history"),onClick:a,children:c.jsx(mv,{"aria-hidden":"true"})}):null,r&&d?c.jsx("img",{part:"logo",src:d,alt:"",className:"size-6 shrink-0 rounded-md object-contain"}):null,c.jsx("span",{className:"min-w-0 flex-1 truncate px-1.5 text-sm font-semibold",children:S}),f,c.jsx(ge,{variant:"ghost",size:"icon",className:ba,"aria-label":m("newChat"),title:m("newChat"),onClick:b,children:c.jsx(uf,{"aria-hidden":"true"})}),x.canExpand?c.jsx(ge,{part:"expand",variant:"ghost",size:"icon",className:ba,"aria-label":x.expanded?m("shrink"):m("expand"),title:x.expanded?m("shrink"):m("expand"),onClick:()=>{x.setExpanded(!x.expanded)},children:x.expanded?c.jsx(df,{"aria-hidden":"true"}):c.jsx(lf,{"aria-hidden":"true"})}):null,c.jsx(ge,{part:"settings-button",variant:"ghost",size:"icon",className:ba,"aria-label":m("settings"),title:m("settings"),onClick:o,children:c.jsx(Lv,{"aria-hidden":"true"})}),x.close?c.jsx(ge,{part:"close",variant:"ghost",size:"icon",className:ba,"aria-label":m("close"),title:m("close"),onClick:x.close,children:c.jsx(sa,{"aria-hidden":"true"})}):null]})},Pw="flex shrink-0 flex-col border-r duration-200 animate-in fade-in slide-in-from-left-2 motion-reduce:animate-none",Rw="w-side bg-muted",Tw="absolute inset-y-0 left-0 z-30 w-side-over max-w-full bg-muted shadow-side",Aw=({title:r,logoUrl:a,onHide:o})=>{const{t:i}=J();return c.jsxs("div",{part:"header",className:"flex h-side-head shrink-0 items-center gap-2.5 pl-3.5 pr-2",children:[a?c.jsx("img",{part:"logo",src:a,alt:"",className:"size-7 shrink-0 rounded-lg object-cover"}):c.jsx(Fo,{size:28,animated:!1}),c.jsx("span",{part:"title",className:"min-w-0 flex-1 truncate text-[15px] font-bold",children:r}),c.jsx(ge,{variant:"ghost",size:"icon",className:"size-8 text-muted-foreground hover:text-foreground","aria-label":i("closeHistory"),title:i("closeHistory"),onClick:o,children:c.jsx(hv,{"aria-hidden":"true"})})]})},Fw=({onClick:r})=>{const{t:a}=J();return c.jsxs("button",{part:"new-chat",type:"button",onClick:r,className:"flex h-9 w-full items-center gap-2.5 rounded-md border bg-background pl-3 pr-2.5 text-left text-sm font-medium transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",children:[c.jsx(uf,{className:"size-4","aria-hidden":"true"}),a("newChat")]})},Dw=({name:r,onConfirm:a,onCancel:o})=>{const{t:i}=J(),d=v.useRef(null);return v.useEffect(()=>{d.current?.querySelector("[data-cancel]")?.focus()},[]),c.jsxs("div",{ref:d,role:"alertdialog","aria-label":i("deleteConfirm"),onKeyDown:p=>{p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),o())},className:"my-0.5 flex flex-col gap-2 rounded-[10px] border border-error/35 bg-destructive-background p-2.5",children:[c.jsx("div",{className:"text-[13px] font-semibold",children:i("deleteConfirm")}),c.jsx("div",{className:"truncate text-2xs text-muted-foreground",children:r}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(ge,{variant:"destructive",size:"xs",onClick:a,children:i("deleteYes")}),c.jsx(ge,{variant:"ghost",size:"xs","data-cancel":!0,onClick:o,children:i("deleteNo")})]})]})},Ow=(r,a)=>{let o="";const i=[];let d=0;for(const g of r){const m=g.toLowerCase();i.push(...Array.from({length:m.length},()=>d)),o+=m,d+=g.length}i.push(d);const p=o.indexOf(a);if(p<0)return null;let f=p+a.length;for(;f<i.length&&i[f]===i[f-1];)f+=1;return[i[p]??0,i[f]??r.length]},$w=({text:r,query:a})=>{const o=a.trim().toLowerCase(),i=o?Ow(r,o):null;if(!i)return c.jsx(c.Fragment,{children:r});const[d,p]=i;return c.jsxs(v.Fragment,{children:[r.slice(0,d),c.jsx("mark",{className:"rounded-[3px] bg-hl px-px text-inherit",children:r.slice(d,p)}),r.slice(p)]})},qw=({groups:r,query:a,activeId:o,confirmId:i,onOpen:d,onAskDelete:p,onCancelDelete:f,onDelete:g})=>{const{t:m}=J();return c.jsx(c.Fragment,{children:r.map(([b,x])=>c.jsxs("section",{className:"pb-1","aria-label":m(b),children:[c.jsx("h3",{className:"px-2 pb-1 pt-3.5 text-2xs font-medium text-muted-foreground",children:m(b)}),c.jsx("ul",{className:"flex flex-col gap-px",children:x.map(k=>{const S=k.id===o,E=k.title||m("untitled");return i===k.id?c.jsx("li",{children:c.jsx(Dw,{name:E,onConfirm:()=>{g(k.id)},onCancel:f})},k.id):c.jsxs("li",{className:"group relative",children:[c.jsx("button",{part:"thread-item",type:"button","aria-current":S?"page":void 0,title:E,onClick:()=>{d(k.id)},className:B("flex min-h-9 w-full items-center rounded-lg py-1 pl-2.5 pr-9 text-left text-sm transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",S&&"bg-background font-medium shadow-[inset_0_0_0_1px_var(--aid-c-border)] hover:bg-background"),children:c.jsx("span",{className:"min-w-0 truncate",children:c.jsx($w,{text:E,query:a})})}),c.jsx(ge,{variant:"ghost",size:"icon",className:B("absolute right-1 top-1/2 size-7 -translate-y-1/2 text-muted-foreground",!S&&ks),"aria-label":`${m("delete")}: ${E}`,onClick:()=>{p(k.id)},children:c.jsx(Dv,{"aria-hidden":"true"})})]},k.id)})})]},b))})},Zs=({icon:r,children:a})=>c.jsxs("div",{className:"flex flex-col items-center gap-1.5 px-3 py-6 text-center text-sm text-muted-foreground",children:[r,a]}),Vw=[82,64,90,58,76,70],Hw=({query:r})=>{const{state:a,t:o,refreshThreads:i}=J();return a.threadsLoaded?r.trim()!==""?c.jsx(Zs,{icon:c.jsx(ia,{"aria-hidden":"true"}),children:c.jsx("span",{children:o("searchEmpty")})}):a.threadsError?c.jsxs(Zs,{icon:c.jsx(Ir,{"aria-hidden":"true"}),children:[c.jsx("span",{children:o("historyError")}),c.jsx(ge,{variant:"input",size:"xs",onClick:i,children:o("retry")})]}):c.jsx(Zs,{icon:c.jsx(cf,{"aria-hidden":"true"}),children:c.jsx("span",{children:o("historyEmpty")})}):c.jsxs("div",{"aria-busy":"true",className:"flex flex-col",children:[Vw.map(d=>c.jsx("div",{className:"flex min-h-9 items-center px-2.5",children:c.jsx("span",{className:"h-[11px] animate-pulse rounded-md bg-border motion-reduce:animate-none",style:{width:`${d}%`}})},d)),c.jsx("span",{role:"status",className:"sr-only",children:o("loading")})]})},Bw=(r,a,o)=>{Do(r,a);const i=v.useRef(o);v.useEffect(()=>{i.current=o}),v.useEffect(()=>{if(!a)return;const p=f=>{if(f.key!=="Escape"||f.defaultPrevented)return;const g=f.composedPath(),m=g[0];m instanceof HTMLInputElement&&m.type==="search"&&m.value!==""||g.some(b=>b instanceof HTMLElement&&b.getAttribute("role")==="alertdialog")||(f.preventDefault(),f.stopPropagation(),i.current())};return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}},[a]);const d=v.useRef(!1);v.useEffect(()=>{const p=r.current?.getRootNode();if(d.current&&!a){const f=window.setTimeout(()=>{p?.querySelector('[part~="history-toggle"]')?.focus()},0);return d.current=!1,()=>{window.clearTimeout(f)}}d.current=a},[a,r])},Ww=({query:r,onQuery:a,inputRef:o,autoFocus:i})=>{const{t:d}=J();return c.jsxs("label",{className:"relative flex items-center",children:[c.jsx(ia,{className:"pointer-events-none absolute left-[11px] size-4 text-muted-foreground","aria-hidden":"true"}),c.jsx("input",{ref:o,part:"search",type:"search",value:r,"data-autofocus":i?"":void 0,onChange:p=>{a(p.target.value)},onKeyDown:p=>{p.key==="Escape"&&r&&(p.preventDefault(),a(""))},placeholder:d("search"),"aria-label":d("search"),className:"h-8 w-full rounded-md border border-input bg-background pl-[34px] pr-9 text-sm outline-none placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-secondary [&::-webkit-search-cancel-button]:hidden"}),r?c.jsx("button",{type:"button","aria-label":d("dismiss"),className:"absolute right-2 rounded p-0.5 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>{a(""),o.current?.focus()},children:c.jsx(sa,{className:"size-3.5","aria-hidden":"true"})}):null]})},Uw=({collapsed:r,onCollapsedChange:a,searchRef:o,searchSignal:i,overlay:d=!1,title:p,logoUrl:f,inert:g=!1})=>{const m=v.useRef(null);Cr(m,g);const{state:b,t:x,openThread:k,newChat:S,deleteThread:E}=J(),[C,_]=v.useState(""),[M,$]=v.useState(null),X=d&&!r;Bw(m,X,()=>{a(!0)});const ae=v.useMemo(()=>{const D=C.trim().toLowerCase(),te=D?b.threads.filter(Z=>(Z.title||x("untitled")).toLowerCase().includes(D)):b.threads;return L1(te)},[b.threads,C,x]);v.useEffect(()=>{i>0&&!r&&o.current?.focus()},[i,r,o]);const G=D=>()=>{D(),d&&a(!0)};return r?c.jsx("nav",{ref:m,part:"sidebar","data-state":"collapsed","aria-label":x("history"),hidden:!0}):c.jsxs("nav",{ref:m,part:"sidebar","data-state":"expanded","aria-label":x("history"),className:B(Pw,d?Tw:Rw),children:[c.jsx(Aw,{title:p,logoUrl:f,onHide:()=>{a(!0)}}),c.jsxs("div",{className:"flex shrink-0 flex-col gap-2 px-2.5 pb-2",children:[c.jsx(Fw,{onClick:G(S)}),c.jsx(Ww,{query:C,onQuery:_,inputRef:o,autoFocus:X})]}),c.jsxs("div",{part:"history",className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 pb-2",children:[ae.length===0?c.jsx(Hw,{query:C}):null,c.jsx(qw,{groups:ae,query:C,activeId:b.thread?.id,confirmId:M,onOpen:D=>{G(()=>{k(D)})()},onAskDelete:$,onCancelDelete:()=>{$(null)},onDelete:D=>{$(null),E(D)}})]})]})};function Qw(r){const a=v.useRef(null),[o,i]=v.useState(r);return v.useLayoutEffect(()=>{const d=a.current;if(!d)return;const p=Math.round(d.getBoundingClientRect().width);if(p>0&&i(p),typeof ResizeObserver>"u")return;const f=new ResizeObserver(([g])=>{const m=Math.round(g?.contentRect.width??0);m>0&&i(m)});return f.observe(d),()=>{f.disconnect()}},[]),[a,o]}const _h="aid_sidebar",Kw=720,Xw=r=>{try{const a=window.localStorage.getItem(_h);return a===null?r:a==="collapsed"}catch{return r}},Gw=r=>{const{state:a}=J(),o=a.thread?.id,i=o!==void 0&&o!==sn?o:void 0;return c.jsx(py,{threadId:i,children:c.jsx(Zw,{...r,threadId:i})})},Zw=({open:r,title:a,logoUrl:o,compact:i,threadId:d})=>{const{state:p,path:f,newChat:g}=J(),m=ls(),{expandForDashboard:b}=m,[x,k]=Qw(0),S=(m.canExpand&&m.expanded?Math.max(k,window.innerWidth):k)>=fx,E=pr(),C=i||k>0&&k<Kw,[_,M]=v.useState(()=>C||Xw(!1)),[$,X]=v.useState(C);C!==$&&(X(C),C&&M(!0));const[ae,G]=v.useState(!1),D=v.useRef(null),[te,Z]=v.useState(0),re=()=>{Q(!1),Z(H=>H+1)},be=v.useRef(null),Q=H=>{if(M(H),!C)try{window.localStorage.setItem(_h,H?"collapsed":"expanded")}catch{}},fe=v.useRef({collapsed:_,newChat:g,setCollapsed:Q,focusSearch:re});v.useEffect(()=>{fe.current={collapsed:_,newChat:g,setCollapsed:Q,focusSearch:re}}),v.useEffect(()=>{if(!r)return;const H=ie=>{if(!(ie.metaKey||ie.ctrlKey)||ie.altKey)return;const{collapsed:de,newChat:je,setCollapsed:ke,focusSearch:ve}=fe.current,We=ie.key.toLowerCase();if(We==="k"&&!ie.shiftKey)ve();else if(We==="o"&&ie.shiftKey)je(),setTimeout(()=>be.current?.setText(""),0);else if(We==="s"&&ie.shiftKey)ke(!de);else return;ie.preventDefault()};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[r]),fy(f,d,{loaded:d===void 0||p.thread!==null&&p.loadingThread===null,streaming:(p.turn?.optimisticIds.length??0)>0});const W=f.find(H=>H.id===E.state.messageId&&Bt(H.blocks,"dashboard")!==void 0),U=W!==void 0;v.useEffect(()=>{if(U)return b(!0),()=>{b(!1)}},[U,b]);const me=v.useRef(null),_e=v.useRef(!1),xe=W?.id??null,ye=v.useRef(null);v.useEffect(()=>{const H=ye.current;if(ye.current=xe,H===null||xe!==null||!_e.current)return;_e.current=!1;const ie=me.current;(Array.from(ie?.querySelectorAll('[part="dashboard-toggle"]')??[]).find(de=>de.dataset.messageId===H)??ie?.querySelector('[part="composer"] textarea'))?.focus()},[xe]);const q=U&&E.state.fullscreen;Cr(me,C&&!_);const[R,T]=v.useState(r);r!==R&&(T(r),!r&&C&&M(!0));const w=gx(U,S,E.state.fullscreen);hx(r&&U&&(!w||E.state.view==="dashboard"));const P=p.thread?p.threads.find(H=>H.id===p.thread?.id)?.title:void 0,le=p.config&&!p.loadingThread&&!p.configError;return c.jsxs("div",{ref:x,className:"relative flex min-h-0 flex-1",children:[c.jsx(Uw,{collapsed:_,onCollapsedChange:Q,overlay:C,searchRef:D,searchSignal:te,title:a,logoUrl:o,inert:q}),c.jsxs("div",{ref:me,className:"flex min-w-0 flex-1 flex-col",children:[c.jsx(Iw,{historyHidden:_,onShowHistory:()=>{Q(!1)},onOpenSettings:()=>{G(!0)},title:a,logoUrl:o,threadTitle:P,tabs:w?c.jsx(M1,{}):null,inert:q}),c.jsx(I1,{wide:S,onPanelFocusChange:H=>{_e.current=H},panel:W?c.jsx(dy,{message:W}):null,chat:c.jsx(Mw,{composerRef:be,wide:k>=720})})]}),C&&!_?c.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:"absolute inset-0 z-20 bg-scrim",onClick:()=>{Q(!0)}}):null,c.jsx(gy,{active:r&&!!le}),c.jsx(_y,{open:ae,onClose:()=>{G(!1)}})]})},Eh=({open:r,title:a,logoUrl:o,fullscreen:i,expanded:d=!1,style:p,onClose:f})=>{const g=v.useRef(null);return Cr(g,!r),Do(g,r),v.useEffect(()=>{if(!r)return;const m=b=>{b.key==="Escape"&&!b.defaultPrevented&&f()};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[r,f]),c.jsx("div",{ref:g,part:"window",role:"dialog","aria-modal":i,"aria-label":a,"aria-hidden":!r,"data-state":r?"open":"closed","data-fullscreen":i,"data-expanded":d,className:"aid-window rounded-aid-window border bg-background text-foreground shadow-window",style:p,children:c.jsx(Gw,{open:r,title:a,logoUrl:o,compact:i})})},Ys=60,Yw=6,Jw=8,zh={x:20,y:20},ek=639,Ch="aid_pos",tk=(r,a,o=Yw)=>r*r+a*a>=o*o,Ko=(r,a,o=Ys,i=Jw)=>{const d=typeof o=="number"?{width:o,height:o}:o,p=(f,g)=>Math.round(Math.min(Math.max(f,i),Math.max(i,g)));return{x:p(r.x,a.width-d.width-i),y:p(r.y,a.height-d.height-i)}},Lh=(r,a,o,i)=>({x:i==="bottom-right"?r.x-a:r.x+a,y:r.y-o}),rk=r=>{try{const a=r?.getItem(Ch);if(!a)return null;const o=JSON.parse(a);if(typeof o=="object"&&o!==null&&typeof o.x=="number"&&typeof o.y=="number"&&Number.isFinite(o.x)&&Number.isFinite(o.y))return{x:o.x,y:o.y}}catch{}return null},nk=(r,a)=>{try{r?.setItem(Ch,JSON.stringify(a))}catch{}},ak={width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},ok=({size:r=24})=>c.jsx("svg",{...ak,width:r,height:r,children:c.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Mh=()=>({width:window.innerWidth,height:window.innerHeight}),Js=r=>({width:r.offsetWidth,height:r.offsetHeight}),lk=()=>{try{return window.localStorage}catch{return null}},Ih=v.forwardRef(({open:r,lang:a,corner:o,offset:i,draggable:d,unread:p=0,variant:f,label:g,shape:m,onOffsetChange:b,onToggle:x},k)=>{const S=v.useRef(null),E=v.useRef(!1),[C,_]=v.useState(null),M=C!==null,$=Z=>{!d||Z.button!==0||(S.current={pointerX:Z.clientX,pointerY:Z.clientY,offset:i,moved:!1},Z.currentTarget.setPointerCapture(Z.pointerId))},X=Z=>{const re=S.current;if(!re)return;const be=Z.clientX-re.pointerX,Q=Z.clientY-re.pointerY;!re.moved&&!tk(be,Q)||(re.moved||(re.moved=!0,_({offset:re.offset,...Js(Z.currentTarget)})),b(Ko(Lh(re.offset,be,Q,o),Mh(),Js(Z.currentTarget))))},ae=Z=>{const re=S.current;if(S.current=null,Z.currentTarget.hasPointerCapture(Z.pointerId)&&Z.currentTarget.releasePointerCapture(Z.pointerId),!re?.moved)return;_(null),E.current=!0;const be=Z.clientX-re.pointerX,Q=Z.clientY-re.pointerY;nk(lk(),Ko(Lh(re.offset,be,Q,o),Mh(),Js(Z.currentTarget)))},G=()=>{if(E.current){E.current=!1;return}x()},D=o==="bottom-right"?"right":"left",te=f==="label"&&!r?g??Ct(a,"ask"):null;return c.jsxs(c.Fragment,{children:[C?c.jsx("span",{"data-testid":"launcher-origin","aria-hidden":"true","data-shape":m??"circle",className:"aid-launcher-origin",style:{[D]:C.offset.x,bottom:C.offset.y,width:C.width,height:C.height}}):null,c.jsxs("button",{ref:k,part:"launcher",type:"button","aria-label":`${te??Ct(a,r?"close":"open")}${p>0&&!r?`, ${Ct(a,"unreadAnswers",{count:p})}`:""}`,"aria-expanded":r,"data-dragging":M,"data-variant":te?"label":"icon","data-shape":m??"circle",className:"aid-launcher",style:{[D]:i.x,bottom:i.y},onPointerDown:$,onPointerMove:X,onPointerUp:ae,onPointerCancel:ae,onClick:G,children:[r?c.jsx(ok,{}):c.jsx(Fo,{size:te?44:40,animated:!1,bare:!0}),te?c.jsx("span",{part:"launcher-label",className:"truncate",children:te}):null,p>0&&!r?c.jsx("span",{part:"badge",className:"aid-launcher-badge",children:p>9?"9+":p}):null]})]})});Ih.displayName="Launcher";const ik=r=>{const{state:a}=J(),{turn:o,thread:i}=a,[d,p]=v.useState({turn:o,open:r}),[f,g]=v.useState(0);return(d.turn!==o||d.open!==r)&&(p({turn:o,open:r}),r?f!==0&&g(0):d.turn&&!o&&i?.messages.find(m=>m.id===d.turn?.assistantId)?.status==="done"&&g(f+1)),f},Ph=v.forwardRef((r,a)=>{const o=ik(r.open);return c.jsx(Ih,{ref:a,...r,unread:o})});Ph.displayName="UnreadLauncher";const xa=(r,a,o)=>Math.min(o,Math.max(a,r)),sk={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",orange:"#ffa500",purple:"#800080",teal:"#008080",navy:"#000080",gray:"#808080",grey:"#808080"},Rh=r=>{if(!/^[0-9a-f]+$/i.test(r)||![3,4,6,8].includes(r.length))return null;const a=r.length<=4?r.replace(/./g,i=>i+i):r,o=i=>parseInt(a.slice(i,i+2),16);return{r:o(0),g:o(2),b:o(4),a:a.length===8?o(6)/255:1}},Th=r=>{const a=r.replace(/\//g," ").replace(/,/g," ").trim().split(/\s+/).filter(Boolean);return a.length===3||a.length===4?a:null},Xo=r=>{const a=Number(r);return r!==""&&Number.isFinite(a)?a:null},ck=r=>{if(r===void 0)return 1;const a=Xo(r.endsWith("%")?r.slice(0,-1):r);return a===null?null:xa(r.endsWith("%")?a/100:a,0,1)},ec=r=>{const a=Xo(r.endsWith("%")?r.slice(0,-1):r);return a===null?null:xa(r.endsWith("%")?a/100*255:a,0,255)},Ah=r=>{const a=/^(-?[\d.]+)(deg|turn|rad|grad)?$/.exec(r);if(!a?.[1])return null;const o=Xo(a[1]);if(o===null)return null;const i=a[2]??"deg";return((i==="turn"?o*360:i==="rad"?o*180/Math.PI:i==="grad"?o*.9:o)%360+360)%360},Go=r=>{const a=Xo(r.endsWith("%")?r.slice(0,-1):r);return a===null?null:xa(a,0,100)},Zo=({h:r,s:a,l:o,a:i})=>{const d=a/100,p=o/100,f=m=>(m+r/30)%12,g=m=>p-d*Math.min(p,1-p)*Math.max(-1,Math.min(f(m)-3,9-f(m),1));return{r:Math.round(g(0)*255),g:Math.round(g(8)*255),b:Math.round(g(4)*255),a:i}},dk=({r,g:a,b:o,a:i})=>{const d=r/255,p=a/255,f=o/255,g=Math.max(d,p,f),m=Math.min(d,p,f),b=(g+m)/2,x=g-m;if(x===0)return{h:0,s:0,l:b*100,a:i};const k=x/(1-Math.abs(2*b-1));let S;return g===d?S=(p-f)/x%6:g===p?S=(f-d)/x+2:S=(d-p)/x+4,{h:(S*60+360)%360,s:k*100,l:b*100,a:i}},Fh=r=>{const a=uk(r);if(!a)return null;const o=/^hsla?\((.*)\)$/.exec(r.trim().toLowerCase()),i=o?.[1]!==void 0?Th(o[1]):null;if(i){const[d,p,f]=[Ah(i[0]??""),Go(i[1]??""),Go(i[2]??"")];if(d!==null&&p!==null&&f!==null)return{h:d,s:p,l:f,a:a.a}}return dk(a)},uk=r=>{const a=r.trim().toLowerCase(),o=sk[a];if(o)return Rh(o.slice(1));if(a.startsWith("#"))return Rh(a.slice(1));const i=/^(rgba?|hsla?)\((.*)\)$/.exec(a);if(!i?.[1]||i[2]===void 0)return null;const d=Th(i[2]);if(!d)return null;const[p="",f="",g="",m]=d,b=ck(m);if(b===null)return null;if(i[1].startsWith("rgb")){const[E,C,_]=[ec(p),ec(f),ec(g)];return E===null||C===null||_===null?null:{r:Math.round(E),g:Math.round(C),b:Math.round(_),a:b}}const[x,k,S]=[Ah(p),Go(f),Go(g)];return x===null||k===null||S===null?null:Zo({h:x,s:k,l:S,a:b})},Dh=({r,g:a,b:o})=>{const i=d=>{const p=d/255;return p<=.03928?p/12.92:((p+.055)/1.055)**2.4};return .2126*i(r)+.7152*i(a)+.0722*i(o)},Oh=(r,a)=>{const[o,i]=[Dh(r),Dh(a)].sort((d,p)=>p-d);return(o+.05)/(i+.05)},Yo=r=>Math.round(r*10)/10,Rr=({h:r,s:a,l:o,a:i})=>`${Yo(r)}, ${Yo(a)}%, ${Yo(o)}%${i<1?`, ${Yo(i*100)/100}`:""}`,$h={h:210,s:40,l:98,a:1},qh={h:222.2,s:47.4,l:11.2,a:1},pk=r=>{const a=Fh(r);if(!a)return null;const o={...a,a:1},i={...o,l:xa(o.l>70?o.l-6:o.l+8,0,100)},d={...o,l:xa(o.l-10,0,100)},p=Zo(o),f=Oh(p,Zo($h)),g=f>=4.5||f>=Oh(p,Zo(qh))?$h:qh;return{primary:Rr(o),primaryHovered:Rr(i),primaryPressed:Rr(d),primaryForeground:Rr(g),secondary:Rr({...o,a:.1}),ring:Rr({...o,a:.5})}},fk=(...r)=>{const a={};for(const o of r)if(o)for(const[i,d]of Object.entries(o))d===void 0||d===""||(a[i]=d);return a},hk=r=>{const a={},o=r.primary?pk(r.primary):null;o&&(a["--primary"]=o.primary,a["--primary-text"]=o.primary,a["--primary-hovered"]=o.primaryHovered,a["--primary-pressed"]=o.primaryPressed,a["--primary-foreground"]=o.primaryForeground,a["--secondary"]=o.secondary,a["--secondary-foreground"]=o.primary,a["--ring"]=o.ring),r.radius!==void 0&&r.radius!==""&&(a["--radius"]=typeof r.radius=="number"?`${r.radius}px`:r.radius),r.font&&(a["--aid-theme-font"]=r.font);const i=b=>{const x=b?Fh(b):null;return x?Rr(x):null},d=i(r.background);if(d)for(const b of["--background","--card","--popover"])a[b]=d;const p=i(r.foreground);if(p)for(const b of["--foreground","--card-foreground","--popover-foreground","--secondary-foreground"])a[b]=p;const f=i(r.bubble);if(f)for(const b of["--secondary","--muted","--accent"])a[b]=f;const g=i(r.border);if(g)for(const b of["--border","--input"])a[b]=g;const m=(b,x)=>{typeof x=="number"&&Number.isFinite(x)&&(a[b]=`${x}px`)};return m("--aid-t-window-width",r.windowWidth),m("--aid-t-window-height",r.windowHeight),m("--aid-t-offset-x",r.offsetX),m("--aid-t-offset-y",r.offsetY),a},gk=(r,a)=>r==="dark"||r==="auto"&&a?"dark":"light",mk=(r,a,o={})=>{for(const i of Object.keys(o))i in a||r.style.removeProperty(i);for(const[i,d]of Object.entries(a))r.style.setProperty(i,d)},bk=(r,a)=>{r.classList.toggle("dark",a==="dark"),r.dataset.scheme=a},Vh=(r,a)=>{const o=parseFloat(r);return Number.isFinite(o)?o:a},tc=()=>{try{return window.localStorage}catch{return null}},Hh=(r,a,o)=>Vh(r.getPropertyValue(`--aid-${a}`),Vh(r.getPropertyValue(`--aid-t-${a}`),o)),xk=r=>{const a=getComputedStyle(r);return{x:Hh(a,"offset-x",zh.x),y:Hh(a,"offset-y",zh.y)}},Bh=()=>({width:window.innerWidth,height:window.innerHeight}),vk={scheme:"auto"},yk=(r,a)=>{const o=v.useSyncExternalStore(r.subscribe,()=>r.get().theme),i=v.useSyncExternalStore(r.subscribe,()=>r.get().adminTheme),d=Wp("(prefers-color-scheme: dark)"),p=fk(vk,i,o),f=gk(p.scheme,d),g=v.useRef({}),m=JSON.stringify(hk(p));return v.useLayoutEffect(()=>{const b=JSON.parse(m);mk(a,b,g.current),g.current=b},[a,m]),v.useLayoutEffect(()=>{bk(a,f)},[a,f]),p},wk=r=>{const{store:a,api:o}=r,i=v.useSyncExternalStore(a.subscribe,()=>a.get().open),d=v.useSyncExternalStore(a.subscribe,()=>a.get().lang),p=v.useCallback(f=>{a.set({adminTheme:f})},[a]);return c.jsx(tx,{api:o,lang:d,open:i,onAdminTheme:p,children:c.jsx(kk,{...r})})},kk=({store:r,root:a,mode:o,corner:i,draggable:d,api:p})=>{const f=v.useSyncExternalStore(r.subscribe,()=>r.get().open),g=v.useSyncExternalStore(r.subscribe,()=>r.get().lang),m=yk(r,a),b=i??m.position??"bottom-right",x=Wp(`(max-width: ${ek}px)`),k=v.useRef(null),[S,E]=v.useState(()=>Ko(rk(tc())??xk(a),Bh(),Ys));v.useEffect(()=>{if(o!=="launcher")return;const W=()=>{const U=k.current,me=U?{width:U.offsetWidth,height:U.offsetHeight}:Ys;E(_e=>Ko(_e,Bh(),me))};return window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}},[o]);const C=v.useCallback(()=>{r.set({open:!1})},[r]),_=v.useCallback(()=>{r.set({open:!r.get().open})},[r]),M=v.useRef(f);v.useEffect(()=>{M.current&&!f&&k.current?.focus({preventScroll:!0}),M.current=f},[f]);const $=m.title??Ct(g,"title"),X=qp(p.apiUrl),ae=v.useMemo(()=>({animated:f,assetsBase:X}),[f,X]),[G,D]=v.useState({expanded:!1,byDashboard:!1}),{expanded:te}=G,Z=o==="launcher"&&!x,re=v.useCallback(W=>{D({expanded:W,byDashboard:!1})},[]),be=v.useCallback(W=>{D(U=>C0(U,W,Z))},[Z]),Q=m.scheme??"auto",fe=v.useMemo(()=>({lang:g,scheme:Q,expanded:te,canExpand:Z,setExpanded:re,expandForDashboard:be,close:o==="launcher"?C:void 0,update:W=>{const U={...Tp(tc()),...W};z0(tc(),U),r.set({...W.lang?{lang:W.lang}:{},theme:{...r.get().theme,...Ap(W)}})}}),[g,Q,te,Z,re,be,o,C,r]);return o==="window"?c.jsx(os.Provider,{value:fe,children:c.jsx(ds.Provider,{value:ae,children:c.jsx(Eh,{open:f,title:$,logoUrl:m.logoUrl,fullscreen:!1,onClose:C})})}):c.jsx(os.Provider,{value:fe,children:c.jsxs(ds.Provider,{value:ae,children:[c.jsx("div",{part:"overlay",className:"aid-overlay","data-state":f?"open":"closed","aria-hidden":!0,onClick:C}),c.jsx(Eh,{open:f,title:$,logoUrl:m.logoUrl,fullscreen:x,expanded:te&&!x,onClose:C}),f?null:c.jsx(Ph,{ref:k,open:f,lang:g,corner:b,offset:S,draggable:d&&!x,variant:m.launcher,label:m.launcherLabel,shape:m.launcherShape,onOffsetChange:E,onToggle:_})]})})},Wh="",Sk=`${ob}
|
|
19
|
+
${M0}`,rc=(r,a,o,i)=>{const d=r.shadowRoot??r.attachShadow({mode:"open"});d.replaceChildren();const p=document.createElement("style");p.textContent=Sk;const f=document.createElement("div");f.className="aid-root",f.dataset.mode=o,d.append(p,f);let g=null;try{g=window.localStorage}catch{}const m=Tp(g),b=L0({open:a.defaultOpen??o==="window",lang:m.lang??Ip(a.lang),theme:{...a.theme,...Ap(m)},adminTheme:null});let x=b.get().open;const k=b.subscribe(()=>{const{open:_}=b.get();_!==x&&(x=_,a.onOpenChange?.(_))}),S=w0({apiUrl:a.apiUrl??Wh,siteKey:a.siteKey,visitorId:x0(a.visitorId,g)}),E=ab.createRoot(f);E.render(c.jsx(v.StrictMode,{children:c.jsx(wk,{store:b,root:f,mode:o,corner:a.position,draggable:a.draggable??!0,api:S})}));let C=!0;return{open:()=>{b.set({open:!0})},close:()=>{b.set({open:!1})},setTheme:_=>{b.set({theme:{...b.get().theme,..._}})},setLang:_=>{b.set({lang:Ip(_)})},unmount:()=>{C&&(C=!1,k(),E.unmount(),T0(),d.replaceChildren(),i?.())}}};function Uh(r,a){const o=r instanceof HTMLElement?a:a??r;if(!o)throw new TypeError("AiDanaChat.mountLauncher: options are required");if(r instanceof HTMLElement)return rc(r,o,"launcher");const i=document.createElement("div");return i.setAttribute("data-ai-dana-chat",""),i.style.setProperty("all","initial"),document.body.append(i),rc(i,o,"launcher",()=>{i.remove()})}const Qh=(r,a)=>rc(r,a,"window"),Kh=["light","dark","auto"];class nc extends HTMLElement{constructor(){super(...arguments),Jn(this,"handle")}connectedCallback(){const a=this.getAttribute("theme"),o=this.getAttribute("position"),i=this.getAttribute("site-key"),d=this.getAttribute("api-url"),p={...i?{siteKey:i}:{},...d===null?{}:{apiUrl:d},...this.getAttribute("lang")?{lang:this.getAttribute("lang")}:{},...a&&Kh.includes(a)?{theme:{scheme:a}}:{},...o==="bottom-left"||o==="bottom-right"?{position:o}:{},draggable:this.getAttribute("draggable")!=="false",defaultOpen:this.hasAttribute("open"),onOpenChange:f=>this.dispatchEvent(new CustomEvent("openchange",{detail:{open:f}}))};this.handle=this.hasAttribute("launcher")?Uh(this,p):Qh(this,p)}disconnectedCallback(){this.handle?.unmount(),this.handle=void 0}attributeChangedCallback(a,o,i){!this.handle||o===i||(a==="lang"&&i&&this.handle.setLang(i),a==="theme"&&i&&Kh.includes(i)&&this.handle.setTheme({scheme:i}))}open(){this.handle?.open()}close(){this.handle?.close()}setTheme(a){this.handle?.setTheme(a)}setLang(a){this.handle?.setLang(a)}}Jn(nc,"observedAttributes",["lang","theme"]),typeof customElements<"u"&&!customElements.get("ai-dana-chat")&&customElements.define("ai-dana-chat",nc);export{Zy as A,Mr as C,Wh as D,jp as S,Db as a,d0 as b,l0 as c,v as d,xh as e,bs as f,Ju as g,js as h,nc as i,c as j,Uh as k,Qh as m,i0 as o,s0 as r,pn as s,wp as t,J as u,B as v,rs as w};
|