const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./migrateThemeConfig-DiOQ8LsX.js","./vendor-highlight-B6qhBJlY.js","./vendor-arco-B_LRtfZc.js","./vendor-react-B8SCtqsY.js","./vendor-editor-CZalwCpw.js","./vendor-arco-Bfxep3p_.css"])))=>i.map(i=>d[i]); import{_ as ub}from"./vendor-highlight-B6qhBJlY.js";import{az as lb}from"./vendor-react-B8SCtqsY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"ddd20d380c2e0b68b35aa532d55ffef46d58a0cb"};var s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="78c1bf79-8053-4e64-8445-24e93e6c8b49",e._sentryDebugIdIdentifier="sentry-dbid-78c1bf79-8053-4e64-8445-24e93e6c8b49")}catch{}})();var kr={},Ze={},Uc;function db(){if(Uc)return Ze;Uc=1;function e(w,x,O,j,L,q,M){try{var I=w[q](M),J=I.value}catch(Q){return void O(Q)}I.done?x(J):Promise.resolve(J).then(j,L)}function s(){return(s=Object.assign?Object.assign.bind():function(w){for(var x=1;x=0;--ce){var Y=this.tryEntries[ce],le=Y.completion;if(Y.tryLoc==="root")return B("end");if(Y.tryLoc<=this.prev){var Oe=j.call(Y,"catchLoc"),E=j.call(Y,"finallyLoc");if(Oe&&E){if(this.prev=0;--B){var ce=this.tryEntries[B];if(ce.tryLoc<=this.prev&&j.call(ce,"finallyLoc")&&this.prev=0;--W){var B=this.tryEntries[W];if(B.finallyLoc===z)return this.complete(B.completion,B.afterLoc),Or(B),ve}},catch:function(z){for(var W=this.tryEntries.length-1;W>=0;--W){var B=this.tryEntries[W];if(B.tryLoc===z){var ce=B.completion;if(ce.type==="throw"){var Y=ce.arg;Or(B)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(z,W,B){return this.delegate={iterator:dr(z),resultName:W,nextLoc:B},this.method==="next"&&(this.arg=w),ve}},x}var c="99",i=function(w){return"--color-o-"+w},r={"brand-1":"#f0f4ff","brand-2":"#f0f3ff","brand-3":"#c7d1ff","brand-4":"#9eadff","brand-5":"#7585ff","brand-6":"#4a58fa","brand-7":"#353dd4"},n={black:"#86909C",white:"#86909C","grey-1":"#F7F8FA","grey-2":"#F2F3F5","grey-3":"#E5E6EB","grey-4":"#C9CDD4","grey-6":"#86909C","grey-8":"#4E5969","grey-10":"#1D2129"},t={error:"#f53f3f",warn:"#ff7d00",success:"#00b42a",link:"#165dff",yellow:"#fadc19",cyan:"#13c1b8",purple:"#722ed1"},a={__proto__:null,PrimaryColor:"#4a58fa",generateVar:i,BrandColor:r,NeutralColor:n,NeutralHelperColor:Object.keys(n).reduce((function(w,x){return w[x+"-6"]=n[x]+c,w}),{}),FunctionalColor:t,FunctionalHelperColor:Object.keys(t).reduce((function(w,x){return w[x+"-6"]=t[x]+c,w}),{})},o=Array.from({length:10}).reduce((function(w,x,O){return w["size-"+(O+1)]=4*(O+1),w}),{}),d={__proto__:null,BaseSize:o,ComponentSize:{mini:o["size-1"],small:o["size-7"],default:o["size-8"],large:o["size-9"]},MarginSize:{s:o["size-1"],m:o["size-2"],l:o["size-3"],xl:o["size-4"],xxl:o["size-6"],xxxl:o["size-8"]},ResponsiveScreenSize:{s:360,m:720,l:1024,xl:1440,xxl:1600},IconSize:{normal:16}},u=function(w,x){return{fontSize:w,lineHeight:x,fontWeight:"initial"}},p=function(w){return s({},w,{fontWeight:"600"})},m={__proto__:null,EnFont:"Inter",NumberFont:"Inter",TextFont:{Normal:u(14,22),NormalBold:p(u(14,22)),Small:u(13,20),SmallBold:p(u(13,20)),Middle:u(16,22),MiddleBold:p(u(16,22)),Large:u(20,28),LargeBold:p(u(20,28)),Helper:u(12,20)},TitleFont:{Normal:u(16,24),Small:u(16,24),Middle:u(20,28),Large:u(24,32)},TopicFont:{Normal:u(36,44),Small:u(36,44),Middle:u(48,56),Large:u(56,62)}},y=function(w,x){return{borderStyle:x,borderWidth:w,borderColor:n["grey-3"]}},g=function(w){return{borderRadius:w}},k=function(w,x,O,j){return{offsetX:w,offsetY:x,blurRadius:O,spreadRadius:j,color:"#00000020"}},R={__proto__:null,BorderRadius:{Normal:g(8),Small:g(4),Large:g(10)},Border:{SolidStroke:y(1,"solid"),SolidNormal:y(2,"solid"),SolidBold:y(3,"solid"),DashedStroke:y(1,"dashed"),DashedNormal:y(2,"dashed"),DashedBold:y(3,"dashed")},Shadow:{Level1:k(0,2,5,0),Level2:k(0,4,10,0),Level3:k(0,8,20,0)}};return Ze.BrandColor=r,Ze.PrimaryColor="#4a58fa",Ze._asyncToGenerator=function(w){return function(){var x=this,O=arguments;return new Promise((function(j,L){var q=w.apply(x,O);function M(J){e(q,j,L,M,I,"next",J)}function I(J){e(q,j,L,M,I,"throw",J)}M(void 0)}))}},Ze._extends=s,Ze._objectWithoutPropertiesLoose=function(w,x){if(w==null)return{};var O={};for(var j in w)if({}.hasOwnProperty.call(w,j)){if(x.indexOf(j)!==-1)continue;O[j]=w[j]}return O},Ze._regeneratorRuntime=l,Ze.color=a,Ze.font=m,Ze.generateVar=i,Ze.size=d,Ze.style=R,Ze}var Zs={exports:{}},Bc;function pb(){return Bc||(Bc=1,(function(e){var s=Object.prototype.hasOwnProperty,l="~";function c(){}Object.create&&(c.prototype=Object.create(null),new c().__proto__||(l=!1));function i(a,o,d){this.fn=a,this.context=o,this.once=d||!1}function r(a,o,d,u,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new i(d,u||a,p),y=l?l+o:o;return a._events[y]?a._events[y].fn?a._events[y]=[a._events[y],m]:a._events[y].push(m):(a._events[y]=m,a._eventsCount++),a}function n(a,o){--a._eventsCount===0?a._events=new c:delete a._events[o]}function t(){this._events=new c,this._eventsCount=0}t.prototype.eventNames=function(){var o=[],d,u;if(this._eventsCount===0)return o;for(u in d=this._events)s.call(d,u)&&o.push(l?u.slice(1):u);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(d)):o},t.prototype.listeners=function(o){var d=l?l+o:o,u=this._events[d];if(!u)return[];if(u.fn)return[u.fn];for(var p=0,m=u.length,y=new Array(m);pb=>{const h=s.call(b);return f[h]||(f[h]=h.slice(8,-1).toLowerCase())})(Object.create(null)),n=f=>(f=f.toLowerCase(),b=>r(b)===f),t=f=>b=>typeof b===f,{isArray:a}=Array,o=t("undefined");function d(f){return f!==null&&!o(f)&&f.constructor!==null&&!o(f.constructor)&&y(f.constructor.isBuffer)&&f.constructor.isBuffer(f)}const u=n("ArrayBuffer");function p(f){let b;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?b=ArrayBuffer.isView(f):b=f&&f.buffer&&u(f.buffer),b}const m=t("string"),y=t("function"),g=t("number"),k=f=>f!==null&&typeof f=="object",R=f=>f===!0||f===!1,w=f=>{if(r(f)!=="object")return!1;const b=l(f);return(b===null||b===Object.prototype||Object.getPrototypeOf(b)===null)&&!(i in f)&&!(c in f)},x=f=>{if(!k(f)||d(f))return!1;try{return Object.keys(f).length===0&&Object.getPrototypeOf(f)===Object.prototype}catch{return!1}},O=n("Date"),j=n("File"),L=f=>!!(f&&typeof f.uri<"u"),q=f=>f&&typeof f.getParts<"u",M=n("Blob"),I=n("FileList"),J=f=>k(f)&&y(f.pipe);function Q(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const G=Q(),ue=typeof G.FormData<"u"?G.FormData:void 0,be=f=>{let b;return f&&(ue&&f instanceof ue||y(f.append)&&((b=r(f))==="formdata"||b==="object"&&y(f.toString)&&f.toString()==="[object FormData]"))},he=n("URLSearchParams"),[ae,ve,Je,ur]=["ReadableStream","Request","Response","Headers"].map(n),We=f=>f.trim?f.trim():f.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function De(f,b,{allOwnKeys:h=!1}={}){if(f===null||typeof f>"u")return;let v,_;if(typeof f!="object"&&(f=[f]),a(f))for(v=0,_=f.length;v<_;v++)b.call(null,f[v],v,f);else{if(d(f))return;const S=h?Object.getOwnPropertyNames(f):Object.keys(f),P=S.length;let T;for(v=0;v0;)if(_=h[v],b===_.toLowerCase())return _;return null}const Ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Ke=f=>!o(f)&&f!==Ee;function gr(){const{caseless:f,skipUndefined:b}=Ke(this)&&this||{},h={},v=(_,S)=>{if(S==="__proto__"||S==="constructor"||S==="prototype")return;const P=f&&nr(h,S)||S;w(h[P])&&w(_)?h[P]=gr(h[P],_):w(_)?h[P]=gr({},_):a(_)?h[P]=_.slice():(!b||!o(_))&&(h[P]=_)};for(let _=0,S=arguments.length;_(De(b,(_,S)=>{h&&y(_)?Object.defineProperty(f,S,{value:e(_,h),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(f,S,{value:_,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:v}),f),en=f=>(f.charCodeAt(0)===65279&&(f=f.slice(1)),f),wr=(f,b,h,v)=>{f.prototype=Object.create(b.prototype,v),Object.defineProperty(f.prototype,"constructor",{value:f,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(f,"super",{value:b.prototype}),h&&Object.assign(f.prototype,h)},Gr=(f,b,h,v)=>{let _,S,P;const T={};if(b=b||{},f==null)return b;do{for(_=Object.getOwnPropertyNames(f),S=_.length;S-- >0;)P=_[S],(!v||v(P,f,b))&&!T[P]&&(b[P]=f[P],T[P]=!0);f=h!==!1&&l(f)}while(f&&(!h||h(f,b))&&f!==Object.prototype);return b},Or=(f,b,h)=>{f=String(f),(h===void 0||h>f.length)&&(h=f.length),h-=b.length;const v=f.indexOf(b,h);return v!==-1&&v===h},yr=f=>{if(!f)return null;if(a(f))return f;let b=f.length;if(!g(b))return null;const h=new Array(b);for(;b-- >0;)h[b]=f[b];return h},dr=(f=>b=>f&&b instanceof f)(typeof Uint8Array<"u"&&l(Uint8Array)),z=(f,b)=>{const v=(f&&f[c]).call(f);let _;for(;(_=v.next())&&!_.done;){const S=_.value;b.call(f,S[0],S[1])}},W=(f,b)=>{let h;const v=[];for(;(h=f.exec(b))!==null;)v.push(h);return v},B=n("HTMLFormElement"),ce=f=>f.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(h,v,_){return v.toUpperCase()+_}),Y=(({hasOwnProperty:f})=>(b,h)=>f.call(b,h))(Object.prototype),le=n("RegExp"),Oe=(f,b)=>{const h=Object.getOwnPropertyDescriptors(f),v={};De(h,(_,S)=>{let P;(P=b(_,S,f))!==!1&&(v[S]=P||_)}),Object.defineProperties(f,v)},E=f=>{Oe(f,(b,h)=>{if(y(f)&&["arguments","caller","callee"].indexOf(h)!==-1)return!1;const v=f[h];if(y(v)){if(b.enumerable=!1,"writable"in b){b.writable=!1;return}b.set||(b.set=()=>{throw Error("Can not rewrite read-only method '"+h+"'")})}})},F=(f,b)=>{const h={},v=_=>{_.forEach(S=>{h[S]=!0})};return a(f)?v(f):v(String(f).split(b)),h},D=()=>{},K=(f,b)=>f!=null&&Number.isFinite(f=+f)?f:b;function Z(f){return!!(f&&y(f.append)&&f[i]==="FormData"&&f[c])}const de=f=>{const b=new Array(10),h=(v,_)=>{if(k(v)){if(b.indexOf(v)>=0)return;if(d(v))return v;if(!("toJSON"in v)){b[_]=v;const S=a(v)?[]:{};return De(v,(P,T)=>{const $=h(P,_+1);!o($)&&(S[T]=$)}),b[_]=void 0,S}}return v};return h(f,0)},ke=n("AsyncFunction"),je=f=>f&&(k(f)||y(f))&&y(f.then)&&y(f.catch),Pe=((f,b)=>f?setImmediate:b?((h,v)=>(Ee.addEventListener("message",({source:_,data:S})=>{_===Ee&&S===h&&v.length&&v.shift()()},!1),_=>{v.push(_),Ee.postMessage(h,"*")}))(`axios@${Math.random()}`,[]):h=>setTimeout(h))(typeof setImmediate=="function",y(Ee.postMessage)),Ne=typeof queueMicrotask<"u"?queueMicrotask.bind(Ee):typeof process<"u"&&process.nextTick||Pe;var A={isArray:a,isArrayBuffer:u,isBuffer:d,isFormData:be,isArrayBufferView:p,isString:m,isNumber:g,isBoolean:R,isObject:k,isPlainObject:w,isEmptyObject:x,isReadableStream:ae,isRequest:ve,isResponse:Je,isHeaders:ur,isUndefined:o,isDate:O,isFile:j,isReactNativeBlob:L,isReactNative:q,isBlob:M,isRegExp:le,isFunction:y,isStream:J,isURLSearchParams:he,isTypedArray:dr,isFileList:I,forEach:De,merge:gr,extend:lr,trim:We,stripBOM:en,inherits:wr,toFlatObject:Gr,kindOf:r,kindOfTest:n,endsWith:Or,toArray:yr,forEachEntry:z,matchAll:W,isHTMLForm:B,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:Oe,freezeMethods:E,toObjectSet:F,toCamelCase:ce,noop:D,toFiniteNumber:K,findKey:nr,global:Ee,isContextDefined:Ke,isSpecCompliantForm:Z,toJSONObject:de,isAsyncFn:ke,isThenable:je,setImmediate:Pe,asap:Ne,isIterable:f=>f!=null&&y(f[c])};class se extends Error{static from(b,h,v,_,S,P){const T=new se(b.message,h||b.code,v,_,S);return T.cause=b,T.name=b.name,b.status!=null&&T.status==null&&(T.status=b.status),P&&Object.assign(T,P),T}constructor(b,h,v,_,S){super(b),Object.defineProperty(this,"message",{value:b,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,h&&(this.code=h),v&&(this.config=v),_&&(this.request=_),S&&(this.response=S,this.status=S.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}}se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",se.ERR_BAD_OPTION="ERR_BAD_OPTION",se.ECONNABORTED="ECONNABORTED",se.ETIMEDOUT="ETIMEDOUT",se.ERR_NETWORK="ERR_NETWORK",se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",se.ERR_DEPRECATED="ERR_DEPRECATED",se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",se.ERR_BAD_REQUEST="ERR_BAD_REQUEST",se.ERR_CANCELED="ERR_CANCELED",se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",se.ERR_INVALID_URL="ERR_INVALID_URL";var ne=se,Se=null;function me(f){return A.isPlainObject(f)||A.isArray(f)}function tr(f){return A.endsWith(f,"[]")?f.slice(0,-2):f}function Ue(f,b,h){return f?f.concat(b).map(function(_,S){return _=tr(_),!h&&S?"["+_+"]":_}).join(h?".":""):b}function qe(f){return A.isArray(f)&&!f.some(me)}const ar=A.toFlatObject(A,{},null,function(b){return/^is[A-Z]/.test(b)});function pr(f,b,h){if(!A.isObject(f))throw new TypeError("target must be an object");b=b||new FormData,h=A.toFlatObject(h,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ie,X){return!A.isUndefined(X[ie])});const v=h.metaTokens,_=h.visitor||N,S=h.dots,P=h.indexes,$=(h.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(b);if(!A.isFunction(_))throw new TypeError("visitor must be a function");function V(U){if(U===null)return"";if(A.isDate(U))return U.toISOString();if(A.isBoolean(U))return U.toString();if(!$&&A.isBlob(U))throw new ne("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(U)||A.isTypedArray(U)?$&&typeof Blob=="function"?new Blob([U]):Buffer.from(U):U}function N(U,ie,X){let Ae=U;if(A.isReactNative(b)&&A.isReactNativeBlob(U))return b.append(Ue(X,ie,S),V(U)),!1;if(U&&!X&&typeof U=="object"){if(A.endsWith(ie,"{}"))ie=v?ie:ie.slice(0,-2),U=JSON.stringify(U);else if(A.isArray(U)&&qe(U)||(A.isFileList(U)||A.endsWith(ie,"[]"))&&(Ae=A.toArray(U)))return ie=tr(ie),Ae.forEach(function(Te,Ge){!(A.isUndefined(Te)||Te===null)&&b.append(P===!0?Ue([ie],Ge,S):P===null?ie:ie+"[]",V(Te))}),!1}return me(U)?!0:(b.append(Ue(X,ie,S),V(U)),!1)}const te=[],xe=Object.assign(ar,{defaultVisitor:N,convertValue:V,isVisitable:me});function Ie(U,ie){if(!A.isUndefined(U)){if(te.indexOf(U)!==-1)throw Error("Circular reference detected in "+ie.join("."));te.push(U),A.forEach(U,function(Ae,ir){(!(A.isUndefined(Ae)||Ae===null)&&_.call(b,Ae,A.isString(ir)?ir.trim():ir,ie,xe))===!0&&Ie(Ae,ie?ie.concat(ir):[ir])}),te.pop()}}if(!A.isObject(f))throw new TypeError("data must be an object");return Ie(f),b}function rn(f){const b={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(f).replace(/[!'()~]|%20|%00/g,function(v){return b[v]})}function nn(f,b){this._pairs=[],f&&pr(f,this,b)}const Zn=nn.prototype;Zn.append=function(b,h){this._pairs.push([b,h])},Zn.toString=function(b){const h=b?function(v){return b.call(this,v,rn)}:rn;return this._pairs.map(function(_){return h(_[0])+"="+h(_[1])},"").join("&")};function fr(f){return encodeURIComponent(f).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Sr(f,b,h){if(!b)return f;const v=h&&h.encode||fr,_=A.isFunction(h)?{serialize:h}:h,S=_&&_.serialize;let P;if(S?P=S(b,_):P=A.isURLSearchParams(b)?b.toString():new nn(b,_).toString(v),P){const T=f.indexOf("#");T!==-1&&(f=f.slice(0,T)),f+=(f.indexOf("?")===-1?"?":"&")+P}return f}class lt{constructor(){this.handlers=[]}use(b,h,v){return this.handlers.push({fulfilled:b,rejected:h,synchronous:v?v.synchronous:!1,runWhen:v?v.runWhen:null}),this.handlers.length-1}eject(b){this.handlers[b]&&(this.handlers[b]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(b){A.forEach(this.handlers,function(v){v!==null&&b(v)})}}var wi=lt,dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},us=typeof URLSearchParams<"u"?URLSearchParams:nn,ls=typeof FormData<"u"?FormData:null,ds=typeof Blob<"u"?Blob:null,ps={isBrowser:!0,classes:{URLSearchParams:us,FormData:ls,Blob:ds},protocols:["http","https","file","blob","url","data"]};const pt=typeof window<"u"&&typeof document<"u",ft=typeof navigator=="object"&&navigator||void 0,fs=pt&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),bs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ms=pt&&window.location.href||"http://localhost";var hs=Object.freeze({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserWebWorkerEnv:bs,hasStandardBrowserEnv:fs,navigator:ft,origin:ms}),Ce={...hs,...ps};function vs(f,b){return pr(f,new Ce.classes.URLSearchParams,{visitor:function(h,v,_,S){return Ce.isNode&&A.isBuffer(h)?(this.append(v,h.toString("base64")),!1):S.defaultVisitor.apply(this,arguments)},...b})}function gs(f){return A.matchAll(/\w+|\[(\w*)]/g,f).map(b=>b[0]==="[]"?"":b[1]||b[0])}function ys(f){const b={},h=Object.keys(f);let v;const _=h.length;let S;for(v=0;v<_;v++)S=h[v],b[S]=f[S];return b}function Oi(f){function b(h,v,_,S){let P=h[S++];if(P==="__proto__")return!0;const T=Number.isFinite(+P),$=S>=h.length;return P=!P&&A.isArray(_)?_.length:P,$?(A.hasOwnProp(_,P)?_[P]=[_[P],v]:_[P]=v,!T):((!_[P]||!A.isObject(_[P]))&&(_[P]=[]),b(h,v,_[P],S)&&A.isArray(_[P])&&(_[P]=ys(_[P])),!T)}if(A.isFormData(f)&&A.isFunction(f.entries)){const h={};return A.forEachEntry(f,(v,_)=>{b(gs(v),_,h,0)}),h}return null}function _s(f,b,h){if(A.isString(f))try{return(b||JSON.parse)(f),A.trim(f)}catch(v){if(v.name!=="SyntaxError")throw v}return(h||JSON.stringify)(f)}const bt={transitional:dt,adapter:["xhr","http","fetch"],transformRequest:[function(b,h){const v=h.getContentType()||"",_=v.indexOf("application/json")>-1,S=A.isObject(b);if(S&&A.isHTMLForm(b)&&(b=new FormData(b)),A.isFormData(b))return _?JSON.stringify(Oi(b)):b;if(A.isArrayBuffer(b)||A.isBuffer(b)||A.isStream(b)||A.isFile(b)||A.isBlob(b)||A.isReadableStream(b))return b;if(A.isArrayBufferView(b))return b.buffer;if(A.isURLSearchParams(b))return h.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),b.toString();let T;if(S){if(v.indexOf("application/x-www-form-urlencoded")>-1)return vs(b,this.formSerializer).toString();if((T=A.isFileList(b))||v.indexOf("multipart/form-data")>-1){const $=this.env&&this.env.FormData;return pr(T?{"files[]":b}:b,$&&new $,this.formSerializer)}}return S||_?(h.setContentType("application/json",!1),_s(b)):b}],transformResponse:[function(b){const h=this.transitional||bt.transitional,v=h&&h.forcedJSONParsing,_=this.responseType==="json";if(A.isResponse(b)||A.isReadableStream(b))return b;if(b&&A.isString(b)&&(v&&!this.responseType||_)){const P=!(h&&h.silentJSONParsing)&&_;try{return JSON.parse(b,this.parseReviver)}catch(T){if(P)throw T.name==="SyntaxError"?ne.from(T,ne.ERR_BAD_RESPONSE,this,null,this.response):T}}return b}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(b){return b>=200&&b<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],f=>{bt.headers[f]={}});var mt=bt;const ks=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var xs=f=>{const b={};let h,v,_;return f&&f.split(` `).forEach(function(P){_=P.indexOf(":"),h=P.substring(0,_).trim().toLowerCase(),v=P.substring(_+1).trim(),!(!h||b[h]&&ks[h])&&(h==="set-cookie"?b[h]?b[h].push(v):b[h]=[v]:b[h]=b[h]?b[h]+", "+v:v)}),b};const Si=Symbol("internals");function tn(f){return f&&String(f).trim().toLowerCase()}function Xn(f){return f===!1||f==null?f:A.isArray(f)?f.map(Xn):String(f)}function ws(f){const b=Object.create(null),h=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let v;for(;v=h.exec(f);)b[v[1]]=v[2];return b}const Os=f=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(f.trim());function ht(f,b,h,v,_){if(A.isFunction(v))return v.call(this,b,h);if(_&&(b=h),!!A.isString(b)){if(A.isString(v))return b.indexOf(v)!==-1;if(A.isRegExp(v))return v.test(b)}}function Ss(f){return f.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(b,h,v)=>h.toUpperCase()+v)}function Ps(f,b){const h=A.toCamelCase(" "+b);["get","set","has"].forEach(v=>{Object.defineProperty(f,v+h,{value:function(_,S,P){return this[v].call(this,b,_,S,P)},configurable:!0})})}class $n{constructor(b){b&&this.set(b)}set(b,h,v){const _=this;function S(T,$,V){const N=tn($);if(!N)throw new Error("header name must be a non-empty string");const te=A.findKey(_,N);(!te||_[te]===void 0||V===!0||V===void 0&&_[te]!==!1)&&(_[te||$]=Xn(T))}const P=(T,$)=>A.forEach(T,(V,N)=>S(V,N,$));if(A.isPlainObject(b)||b instanceof this.constructor)P(b,h);else if(A.isString(b)&&(b=b.trim())&&!Os(b))P(xs(b),h);else if(A.isObject(b)&&A.isIterable(b)){let T={},$,V;for(const N of b){if(!A.isArray(N))throw TypeError("Object iterator must return a key-value pair");T[V=N[0]]=($=T[V])?A.isArray($)?[...$,N[1]]:[$,N[1]]:N[1]}P(T,h)}else b!=null&&S(h,b,v);return this}get(b,h){if(b=tn(b),b){const v=A.findKey(this,b);if(v){const _=this[v];if(!h)return _;if(h===!0)return ws(_);if(A.isFunction(h))return h.call(this,_,v);if(A.isRegExp(h))return h.exec(_);throw new TypeError("parser must be boolean|regexp|function")}}}has(b,h){if(b=tn(b),b){const v=A.findKey(this,b);return!!(v&&this[v]!==void 0&&(!h||ht(this,this[v],v,h)))}return!1}delete(b,h){const v=this;let _=!1;function S(P){if(P=tn(P),P){const T=A.findKey(v,P);T&&(!h||ht(v,v[T],T,h))&&(delete v[T],_=!0)}}return A.isArray(b)?b.forEach(S):S(b),_}clear(b){const h=Object.keys(this);let v=h.length,_=!1;for(;v--;){const S=h[v];(!b||ht(this,this[S],S,b,!0))&&(delete this[S],_=!0)}return _}normalize(b){const h=this,v={};return A.forEach(this,(_,S)=>{const P=A.findKey(v,S);if(P){h[P]=Xn(_),delete h[S];return}const T=b?Ss(S):String(S).trim();T!==S&&delete h[S],h[T]=Xn(_),v[T]=!0}),this}concat(...b){return this.constructor.concat(this,...b)}toJSON(b){const h=Object.create(null);return A.forEach(this,(v,_)=>{v!=null&&v!==!1&&(h[_]=b&&A.isArray(v)?v.join(", "):v)}),h}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([b,h])=>b+": "+h).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(b){return b instanceof this?b:new this(b)}static concat(b,...h){const v=new this(b);return h.forEach(_=>v.set(_)),v}static accessor(b){const v=(this[Si]=this[Si]={accessors:{}}).accessors,_=this.prototype;function S(P){const T=tn(P);v[T]||(Ps(_,P),v[T]=!0)}return A.isArray(b)?b.forEach(S):S(b),this}}$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors($n.prototype,({value:f},b)=>{let h=b[0].toUpperCase()+b.slice(1);return{get:()=>f,set(v){this[h]=v}}}),A.freezeMethods($n);var Qe=$n;function vt(f,b){const h=this||mt,v=b||h,_=Qe.from(v.headers);let S=v.data;return A.forEach(f,function(T){S=T.call(h,S,_.normalize(),b?b.status:void 0)}),_.normalize(),S}function Pi(f){return!!(f&&f.__CANCEL__)}class As extends ne{constructor(b,h,v){super(b??"canceled",ne.ERR_CANCELED,h,v),this.name="CanceledError",this.__CANCEL__=!0}}var an=As;function Ai(f,b,h){const v=h.config.validateStatus;!h.status||!v||v(h.status)?f(h):b(new ne("Request failed with status code "+h.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(h.status/100)-4],h.config,h.request,h))}function Es(f){const b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f);return b&&b[1]||""}function js(f,b){f=f||10;const h=new Array(f),v=new Array(f);let _=0,S=0,P;return b=b!==void 0?b:1e3,function($){const V=Date.now(),N=v[S];P||(P=V),h[_]=$,v[_]=V;let te=S,xe=0;for(;te!==_;)xe+=h[te++],te=te%f;if(_=(_+1)%f,_===S&&(S=(S+1)%f),V-P{h=N,_=null,S&&(clearTimeout(S),S=null),f(...V)};return[(...V)=>{const N=Date.now(),te=N-h;te>=v?P(V,N):(_=V,S||(S=setTimeout(()=>{S=null,P(_)},v-te)))},()=>_&&P(_)]}const et=(f,b,h=3)=>{let v=0;const _=js(50,250);return Rs(S=>{const P=S.loaded,T=S.lengthComputable?S.total:void 0,$=P-v,V=_($),N=P<=T;v=P;const te={loaded:P,total:T,progress:T?P/T:void 0,bytes:$,rate:V||void 0,estimated:V&&T&&N?(T-P)/V:void 0,event:S,lengthComputable:T!=null,[b?"download":"upload"]:!0};f(te)},h)},Ei=(f,b)=>{const h=f!=null;return[v=>b[0]({lengthComputable:h,total:f,loaded:v}),b[1]]},ji=f=>(...b)=>A.asap(()=>f(...b));var Cs=Ce.hasStandardBrowserEnv?((f,b)=>h=>(h=new URL(h,Ce.origin),f.protocol===h.protocol&&f.host===h.host&&(b||f.port===h.port)))(new URL(Ce.origin),Ce.navigator&&/(msie|trident)/i.test(Ce.navigator.userAgent)):()=>!0,Ts=Ce.hasStandardBrowserEnv?{write(f,b,h,v,_,S,P){if(typeof document>"u")return;const T=[`${f}=${encodeURIComponent(b)}`];A.isNumber(h)&&T.push(`expires=${new Date(h).toUTCString()}`),A.isString(v)&&T.push(`path=${v}`),A.isString(_)&&T.push(`domain=${_}`),S===!0&&T.push("secure"),A.isString(P)&&T.push(`SameSite=${P}`),document.cookie=T.join("; ")},read(f){if(typeof document>"u")return null;const b=document.cookie.match(new RegExp("(?:^|; )"+f+"=([^;]*)"));return b?decodeURIComponent(b[1]):null},remove(f){this.write(f,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ms(f){return typeof f!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(f)}function qs(f,b){return b?f.replace(/\/?\/$/,"")+"/"+b.replace(/^\/+/,""):f}function Ri(f,b,h){let v=!Ms(b);return f&&(v||h==!1)?qs(f,b):b}const Ci=f=>f instanceof Qe?{...f}:f;function Pr(f,b){b=b||{};const h={};function v(V,N,te,xe){return A.isPlainObject(V)&&A.isPlainObject(N)?A.merge.call({caseless:xe},V,N):A.isPlainObject(N)?A.merge({},N):A.isArray(N)?N.slice():N}function _(V,N,te,xe){if(A.isUndefined(N)){if(!A.isUndefined(V))return v(void 0,V,te,xe)}else return v(V,N,te,xe)}function S(V,N){if(!A.isUndefined(N))return v(void 0,N)}function P(V,N){if(A.isUndefined(N)){if(!A.isUndefined(V))return v(void 0,V)}else return v(void 0,N)}function T(V,N,te){if(te in b)return v(V,N);if(te in f)return v(void 0,V)}const $={url:S,method:S,data:S,baseURL:P,transformRequest:P,transformResponse:P,paramsSerializer:P,timeout:P,timeoutMessage:P,withCredentials:P,withXSRFToken:P,adapter:P,responseType:P,xsrfCookieName:P,xsrfHeaderName:P,onUploadProgress:P,onDownloadProgress:P,decompress:P,maxContentLength:P,maxBodyLength:P,beforeRedirect:P,transport:P,httpAgent:P,httpsAgent:P,cancelToken:P,socketPath:P,responseEncoding:P,validateStatus:T,headers:(V,N,te)=>_(Ci(V),Ci(N),te,!0)};return A.forEach(Object.keys({...f,...b}),function(N){if(N==="__proto__"||N==="constructor"||N==="prototype")return;const te=A.hasOwnProp($,N)?$[N]:_,xe=te(f[N],b[N],N);A.isUndefined(xe)&&te!==T||(h[N]=xe)}),h}var Ti=f=>{const b=Pr({},f);let{data:h,withXSRFToken:v,xsrfHeaderName:_,xsrfCookieName:S,headers:P,auth:T}=b;if(b.headers=P=Qe.from(P),b.url=Sr(Ri(b.baseURL,b.url,b.allowAbsoluteUrls),f.params,f.paramsSerializer),T&&P.set("Authorization","Basic "+btoa((T.username||"")+":"+(T.password?unescape(encodeURIComponent(T.password)):""))),A.isFormData(h)){if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)P.setContentType(void 0);else if(A.isFunction(h.getHeaders)){const $=h.getHeaders(),V=["content-type","content-length"];Object.entries($).forEach(([N,te])=>{V.includes(N.toLowerCase())&&P.set(N,te)})}}if(Ce.hasStandardBrowserEnv&&(v&&A.isFunction(v)&&(v=v(b)),v||v!==!1&&Cs(b.url))){const $=_&&S&&Ts.read(S);$&&P.set(_,$)}return b},Is=typeof XMLHttpRequest<"u"&&function(f){return new Promise(function(h,v){const _=Ti(f);let S=_.data;const P=Qe.from(_.headers).normalize();let{responseType:T,onUploadProgress:$,onDownloadProgress:V}=_,N,te,xe,Ie,U;function ie(){Ie&&Ie(),U&&U(),_.cancelToken&&_.cancelToken.unsubscribe(N),_.signal&&_.signal.removeEventListener("abort",N)}let X=new XMLHttpRequest;X.open(_.method.toUpperCase(),_.url,!0),X.timeout=_.timeout;function Ae(){if(!X)return;const Te=Qe.from("getAllResponseHeaders"in X&&X.getAllResponseHeaders()),br={data:!T||T==="text"||T==="json"?X.responseText:X.response,status:X.status,statusText:X.statusText,headers:Te,config:f,request:X};Ai(function(sr){h(sr),ie()},function(sr){v(sr),ie()},br),X=null}"onloadend"in X?X.onloadend=Ae:X.onreadystatechange=function(){!X||X.readyState!==4||X.status===0&&!(X.responseURL&&X.responseURL.indexOf("file:")===0)||setTimeout(Ae)},X.onabort=function(){X&&(v(new ne("Request aborted",ne.ECONNABORTED,f,X)),X=null)},X.onerror=function(Ge){const br=Ge&&Ge.message?Ge.message:"Network Error",on=new ne(br,ne.ERR_NETWORK,f,X);on.event=Ge||null,v(on),X=null},X.ontimeout=function(){let Ge=_.timeout?"timeout of "+_.timeout+"ms exceeded":"timeout exceeded";const br=_.transitional||dt;_.timeoutErrorMessage&&(Ge=_.timeoutErrorMessage),v(new ne(Ge,br.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,f,X)),X=null},S===void 0&&P.setContentType(null),"setRequestHeader"in X&&A.forEach(P.toJSON(),function(Ge,br){X.setRequestHeader(br,Ge)}),A.isUndefined(_.withCredentials)||(X.withCredentials=!!_.withCredentials),T&&T!=="json"&&(X.responseType=_.responseType),V&&([xe,U]=et(V,!0),X.addEventListener("progress",xe)),$&&X.upload&&([te,Ie]=et($),X.upload.addEventListener("progress",te),X.upload.addEventListener("loadend",Ie)),(_.cancelToken||_.signal)&&(N=Te=>{X&&(v(!Te||Te.type?new an(null,f,X):Te),X.abort(),X=null)},_.cancelToken&&_.cancelToken.subscribe(N),_.signal&&(_.signal.aborted?N():_.signal.addEventListener("abort",N)));const ir=Es(_.url);if(ir&&Ce.protocols.indexOf(ir)===-1){v(new ne("Unsupported protocol "+ir+":",ne.ERR_BAD_REQUEST,f));return}X.send(S||null)})},Fs=(f,b)=>{const{length:h}=f=f?f.filter(Boolean):[];if(b||h){let v=new AbortController,_;const S=function(V){if(!_){_=!0,T();const N=V instanceof Error?V:this.reason;v.abort(N instanceof ne?N:new an(N instanceof Error?N.message:N))}};let P=b&&setTimeout(()=>{P=null,S(new ne(`timeout of ${b}ms exceeded`,ne.ETIMEDOUT))},b);const T=()=>{f&&(P&&clearTimeout(P),P=null,f.forEach(V=>{V.unsubscribe?V.unsubscribe(S):V.removeEventListener("abort",S)}),f=null)};f.forEach(V=>V.addEventListener("abort",S));const{signal:$}=v;return $.unsubscribe=()=>A.asap(T),$}};const Ls=function*(f,b){let h=f.byteLength;if(h{const _=zs(f,b);let S=0,P,T=$=>{P||(P=!0,v&&v($))};return new ReadableStream({async pull($){try{const{done:V,value:N}=await _.next();if(V){T(),$.close();return}let te=N.byteLength;if(h){let xe=S+=te;h(xe)}$.enqueue(new Uint8Array(N))}catch(V){throw T(V),V}},cancel($){return T($),_.return()}},{highWaterMark:2})},qi=64*1024,{isFunction:rt}=A,Ns=(({Request:f,Response:b})=>({Request:f,Response:b}))(A.global),{ReadableStream:Ii,TextEncoder:Fi}=A.global,Li=(f,...b)=>{try{return!!f(...b)}catch{return!1}},Us=f=>{f=A.merge.call({skipUndefined:!0},Ns,f);const{fetch:b,Request:h,Response:v}=f,_=b?rt(b):typeof fetch=="function",S=rt(h),P=rt(v);if(!_)return!1;const T=_&&rt(Ii),$=_&&(typeof Fi=="function"?(U=>ie=>U.encode(ie))(new Fi):async U=>new Uint8Array(await new h(U).arrayBuffer())),V=S&&T&&Li(()=>{let U=!1;const ie=new h(Ce.origin,{body:new Ii,method:"POST",get duplex(){return U=!0,"half"}}).headers.has("Content-Type");return U&&!ie}),N=P&&T&&Li(()=>A.isReadableStream(new v("").body)),te={stream:N&&(U=>U.body)};_&&["text","arrayBuffer","blob","formData","stream"].forEach(U=>{!te[U]&&(te[U]=(ie,X)=>{let Ae=ie&&ie[U];if(Ae)return Ae.call(ie);throw new ne(`Response type '${U}' is not supported`,ne.ERR_NOT_SUPPORT,X)})});const xe=async U=>{if(U==null)return 0;if(A.isBlob(U))return U.size;if(A.isSpecCompliantForm(U))return(await new h(Ce.origin,{method:"POST",body:U}).arrayBuffer()).byteLength;if(A.isArrayBufferView(U)||A.isArrayBuffer(U))return U.byteLength;if(A.isURLSearchParams(U)&&(U=U+""),A.isString(U))return(await $(U)).byteLength},Ie=async(U,ie)=>{const X=A.toFiniteNumber(U.getContentLength());return X??xe(ie)};return async U=>{let{url:ie,method:X,data:Ae,signal:ir,cancelToken:Te,timeout:Ge,onDownloadProgress:br,onUploadProgress:on,responseType:sr,headers:Ks,withCredentials:Vi="same-origin",fetchOptions:Ic}=Ti(U),Fc=b||fetch;sr=sr?(sr+"").toLowerCase():"text";let Gi=Fs([ir,Te&&Te.toAbortSignal()],Ge),kt=null;const sn=Gi&&Gi.unsubscribe&&(()=>{Gi.unsubscribe()});let Lc;try{if(on&&V&&X!=="get"&&X!=="head"&&(Lc=await Ie(Ks,Ae))!==0){let Jr=new h(ie,{method:"POST",body:Ae,duplex:"half"}),it;if(A.isFormData(Ae)&&(it=Jr.headers.get("content-type"))&&Ks.setContentType(it),Jr.body){const[Qs,Hi]=Ei(Lc,et(ji(on)));Ae=Mi(Jr.body,qi,Qs,Hi)}}A.isString(Vi)||(Vi=Vi?"include":"omit");const He=S&&"credentials"in h.prototype,zc={...Ic,signal:Gi,method:X.toUpperCase(),headers:Ks.normalize().toJSON(),body:Ae,duplex:"half",credentials:He?Vi:void 0};kt=S&&new h(ie,zc);let Yr=await(S?Fc(kt,Ic):Fc(ie,zc));const Wc=N&&(sr==="stream"||sr==="response");if(N&&(br||Wc&&sn)){const Jr={};["status","statusText","headers"].forEach(Nc=>{Jr[Nc]=Yr[Nc]});const it=A.toFiniteNumber(Yr.headers.get("content-length")),[Qs,Hi]=br&&Ei(it,et(ji(br),!0))||[];Yr=new v(Mi(Yr.body,qi,Qs,()=>{Hi&&Hi(),sn&&sn()}),Jr)}sr=sr||"text";let cb=await te[A.findKey(te,sr)||"text"](Yr,U);return!Wc&&sn&&sn(),await new Promise((Jr,it)=>{Ai(Jr,it,{data:cb,headers:Qe.from(Yr.headers),status:Yr.status,statusText:Yr.statusText,config:U,request:kt})})}catch(He){throw sn&&sn(),He&&He.name==="TypeError"&&/Load failed|fetch/i.test(He.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,U,kt,He&&He.response),{cause:He.cause||He}):ne.from(He,He&&He.code,U,kt,He&&He.response)}}},Bs=new Map,zi=f=>{let b=f&&f.env||{};const{fetch:h,Request:v,Response:_}=b,S=[v,_,h];let P=S.length,T=P,$,V,N=Bs;for(;T--;)$=S[T],V=N.get($),V===void 0&&N.set($,V=T?new Map:Us(b)),N=V;return V};zi();const gt={http:Se,xhr:Is,fetch:{get:zi}};A.forEach(gt,(f,b)=>{if(f){try{Object.defineProperty(f,"name",{value:b})}catch{}Object.defineProperty(f,"adapterName",{value:b})}});const Wi=f=>`- ${f}`,Ds=f=>A.isFunction(f)||f===null||f===!1;function Vs(f,b){f=A.isArray(f)?f:[f];const{length:h}=f;let v,_;const S={};for(let P=0;P`adapter ${$} `+(V===!1?"is not supported by the environment":"is not available in the build"));let T=h?P.length>1?`since : `+P.map(Wi).join(` `):" "+Wi(P[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+T,"ERR_NOT_SUPPORT")}return _}var Ni={getAdapter:Vs,adapters:gt};function yt(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new an(null,f)}function Ui(f){return yt(f),f.headers=Qe.from(f.headers),f.data=vt.call(f,f.transformRequest),["post","put","patch"].indexOf(f.method)!==-1&&f.headers.setContentType("application/x-www-form-urlencoded",!1),Ni.getAdapter(f.adapter||mt.adapter,f)(f).then(function(v){return yt(f),v.data=vt.call(f,f.transformResponse,v),v.headers=Qe.from(v.headers),v},function(v){return Pi(v)||(yt(f),v&&v.response&&(v.response.data=vt.call(f,f.transformResponse,v.response),v.response.headers=Qe.from(v.response.headers))),Promise.reject(v)})}const Bi="1.13.6",nt={};["object","boolean","number","function","string","symbol"].forEach((f,b)=>{nt[f]=function(v){return typeof v===f||"a"+(b<1?"n ":" ")+f}});const Di={};nt.transitional=function(b,h,v){function _(S,P){return"[Axios v"+Bi+"] Transitional option '"+S+"'"+P+(v?". "+v:"")}return(S,P,T)=>{if(b===!1)throw new ne(_(P," has been removed"+(h?" in "+h:"")),ne.ERR_DEPRECATED);return h&&!Di[P]&&(Di[P]=!0,console.warn(_(P," has been deprecated since v"+h+" and will be removed in the near future"))),b?b(S,P,T):!0}},nt.spelling=function(b){return(h,v)=>(console.warn(`${v} is likely a misspelling of ${b}`),!0)};function Gs(f,b,h){if(typeof f!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const v=Object.keys(f);let _=v.length;for(;_-- >0;){const S=v[_],P=b[S];if(P){const T=f[S],$=T===void 0||P(T,S,f);if($!==!0)throw new ne("option "+S+" must be "+$,ne.ERR_BAD_OPTION_VALUE);continue}if(h!==!0)throw new ne("Unknown option "+S,ne.ERR_BAD_OPTION)}}var tt={assertOptions:Gs,validators:nt};const Ve=tt.validators;class at{constructor(b){this.defaults=b||{},this.interceptors={request:new wi,response:new wi}}async request(b,h){try{return await this._request(b,h)}catch(v){if(v instanceof Error){let _={};Error.captureStackTrace?Error.captureStackTrace(_):_=new Error;const S=_.stack?_.stack.replace(/^.+\n/,""):"";try{v.stack?S&&!String(v.stack).endsWith(S.replace(/^.+\n.+\n/,""))&&(v.stack+=` `+S):v.stack=S}catch{}}throw v}}_request(b,h){typeof b=="string"?(h=h||{},h.url=b):h=b||{},h=Pr(this.defaults,h);const{transitional:v,paramsSerializer:_,headers:S}=h;v!==void 0&&tt.assertOptions(v,{silentJSONParsing:Ve.transitional(Ve.boolean),forcedJSONParsing:Ve.transitional(Ve.boolean),clarifyTimeoutError:Ve.transitional(Ve.boolean),legacyInterceptorReqResOrdering:Ve.transitional(Ve.boolean)},!1),_!=null&&(A.isFunction(_)?h.paramsSerializer={serialize:_}:tt.assertOptions(_,{encode:Ve.function,serialize:Ve.function},!0)),h.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?h.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:h.allowAbsoluteUrls=!0),tt.assertOptions(h,{baseUrl:Ve.spelling("baseURL"),withXsrfToken:Ve.spelling("withXSRFToken")},!0),h.method=(h.method||this.defaults.method||"get").toLowerCase();let P=S&&A.merge(S.common,S[h.method]);S&&A.forEach(["delete","get","head","post","put","patch","common"],U=>{delete S[U]}),h.headers=Qe.concat(P,S);const T=[];let $=!0;this.interceptors.request.forEach(function(ie){if(typeof ie.runWhen=="function"&&ie.runWhen(h)===!1)return;$=$&&ie.synchronous;const X=h.transitional||dt;X&&X.legacyInterceptorReqResOrdering?T.unshift(ie.fulfilled,ie.rejected):T.push(ie.fulfilled,ie.rejected)});const V=[];this.interceptors.response.forEach(function(ie){V.push(ie.fulfilled,ie.rejected)});let N,te=0,xe;if(!$){const U=[Ui.bind(this),void 0];for(U.unshift(...T),U.push(...V),xe=U.length,N=Promise.resolve(h);te{if(!v._listeners)return;let S=v._listeners.length;for(;S-- >0;)v._listeners[S](_);v._listeners=null}),this.promise.then=_=>{let S;const P=new Promise(T=>{v.subscribe(T),S=T}).then(_);return P.cancel=function(){v.unsubscribe(S)},P},b(function(S,P,T){v.reason||(v.reason=new an(S,P,T),h(v.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(b){if(this.reason){b(this.reason);return}this._listeners?this._listeners.push(b):this._listeners=[b]}unsubscribe(b){if(!this._listeners)return;const h=this._listeners.indexOf(b);h!==-1&&this._listeners.splice(h,1)}toAbortSignal(){const b=new AbortController,h=v=>{b.abort(v)};return this.subscribe(h),b.signal.unsubscribe=()=>this.unsubscribe(h),b.signal}static source(){let b;return{token:new _t(function(_){b=_}),cancel:b}}}var Hs=_t;function Ys(f){return function(h){return f.apply(null,h)}}function Js(f){return A.isObject(f)&&f.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(_r).forEach(([f,b])=>{_r[b]=f});var Hr=_r;function or(f){const b=new ot(f),h=e(ot.prototype.request,b);return A.extend(h,ot.prototype,b,{allOwnKeys:!0}),A.extend(h,b,null,{allOwnKeys:!0}),h.create=function(_){return or(Pr(f,_))},h}const ge=or(mt);return ge.Axios=ot,ge.CanceledError=an,ge.CancelToken=Hs,ge.isCancel=Pi,ge.VERSION=Bi,ge.toFormData=pr,ge.AxiosError=ne,ge.Cancel=ge.CanceledError,ge.all=function(b){return Promise.all(b)},ge.spread=Ys,ge.isAxiosError=Js,ge.mergeConfig=Pr,ge.AxiosHeaders=Qe,ge.formToJSON=f=>Oi(A.isHTMLForm(f)?new FormData(f):f),ge.getAdapter=Ni.getAdapter,ge.HttpStatusCode=Hr,ge.default=ge,Xs=ge,Xs}var cn={},xt={},wt={},Ot={},Vc;function ye(){if(Vc)return Ot;Vc=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.isFunction=void 0;function e(s){return typeof s=="function"}return Ot.isFunction=e,Ot}var Be={},St={},Pt={},Gc;function Hn(){if(Gc)return Pt;Gc=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.createErrorClass=void 0;function e(s){var l=function(i){Error.call(i),i.stack=new Error().stack},c=s(l);return c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c}return Pt.createErrorClass=e,Pt}var Hc;function uf(){if(Hc)return St;Hc=1,Object.defineProperty(St,"__esModule",{value:!0}),St.UnsubscriptionError=void 0;var e=Hn();return St.UnsubscriptionError=e.createErrorClass(function(s){return function(c){s(this),this.message=c?c.length+` errors occurred during unsubscription: `+c.map(function(i,r){return r+1+") "+i.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=c}}),St}var At={},Yc;function Qr(){if(Yc)return At;Yc=1,Object.defineProperty(At,"__esModule",{value:!0}),At.arrRemove=void 0;function e(s,l){if(s){var c=s.indexOf(l);0<=c&&s.splice(c,1)}}return At.arrRemove=e,At}var Jc;function cr(){if(Jc)return Be;Jc=1;var e=Be&&Be.__values||function(o){var d=typeof Symbol=="function"&&Symbol.iterator,u=d&&o[d],p=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&p>=o.length&&(o=void 0),{value:o&&o[p++],done:!o}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},s=Be&&Be.__read||function(o,d){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var p=u.call(o),m,y=[],g;try{for(;(d===void 0||d-- >0)&&!(m=p.next()).done;)y.push(m.value)}catch(k){g={error:k}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(g)throw g.error}}return y},l=Be&&Be.__spreadArray||function(o,d){for(var u=0,p=d.length,m=o.length;u0)&&!(t=n.next()).done;)a.push(t.value)}catch(d){o={error:d}}finally{try{t&&!t.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},l=un&&un.__spreadArray||function(c,i){for(var r=0,n=i.length,t=c.length;r0)&&!(a=t.next()).done;)o.push(a.value)}catch(u){d={error:u}}finally{try{a&&!a.done&&(n=t.return)&&n.call(t)}finally{if(d)throw d.error}}return o},l=bn&&bn.__spreadArray||function(i,r){for(var n=0,t=r.length,a=i.length;n=o.length&&(o=void 0),{value:o&&o[p++],done:!o}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(hr,"__esModule",{value:!0}),hr.AnonymousSubject=hr.Subject=void 0;var l=_e(),c=cr(),i=bf(),r=Qr(),n=vc(),t=(function(o){e(d,o);function d(){var u=o.call(this)||this;return u.closed=!1,u.currentObservers=null,u.observers=[],u.isStopped=!1,u.hasError=!1,u.thrownError=null,u}return d.prototype.lift=function(u){var p=new a(this,this);return p.operator=u,p},d.prototype._throwIfClosed=function(){if(this.closed)throw new i.ObjectUnsubscribedError},d.prototype.next=function(u){var p=this;n.errorContext(function(){var m,y;if(p._throwIfClosed(),!p.isStopped){p.currentObservers||(p.currentObservers=Array.from(p.observers));try{for(var g=s(p.currentObservers),k=g.next();!k.done;k=g.next()){var R=k.value;R.next(u)}}catch(w){m={error:w}}finally{try{k&&!k.done&&(y=g.return)&&y.call(g)}finally{if(m)throw m.error}}}})},d.prototype.error=function(u){var p=this;n.errorContext(function(){if(p._throwIfClosed(),!p.isStopped){p.hasError=p.isStopped=!0,p.thrownError=u;for(var m=p.observers;m.length;)m.shift().error(u)}})},d.prototype.complete=function(){var u=this;n.errorContext(function(){if(u._throwIfClosed(),!u.isStopped){u.isStopped=!0;for(var p=u.observers;p.length;)p.shift().complete()}})},d.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(d.prototype,"observed",{get:function(){var u;return((u=this.observers)===null||u===void 0?void 0:u.length)>0},enumerable:!1,configurable:!0}),d.prototype._trySubscribe=function(u){return this._throwIfClosed(),o.prototype._trySubscribe.call(this,u)},d.prototype._subscribe=function(u){return this._throwIfClosed(),this._checkFinalizedStatuses(u),this._innerSubscribe(u)},d.prototype._innerSubscribe=function(u){var p=this,m=this,y=m.hasError,g=m.isStopped,k=m.observers;return y||g?c.EMPTY_SUBSCRIPTION:(this.currentObservers=null,k.push(u),new c.Subscription(function(){p.currentObservers=null,r.arrRemove(k,u)}))},d.prototype._checkFinalizedStatuses=function(u){var p=this,m=p.hasError,y=p.thrownError,g=p.isStopped;m?u.error(y):g&&u.complete()},d.prototype.asObservable=function(){var u=new l.Observable;return u.source=this,u},d.create=function(u,p){return new a(u,p)},d})(l.Observable);hr.Subject=t;var a=(function(o){e(d,o);function d(u,p){var m=o.call(this)||this;return m.destination=u,m.source=p,m}return d.prototype.next=function(u){var p,m;(m=(p=this.destination)===null||p===void 0?void 0:p.next)===null||m===void 0||m.call(p,u)},d.prototype.error=function(u){var p,m;(m=(p=this.destination)===null||p===void 0?void 0:p.error)===null||m===void 0||m.call(p,u)},d.prototype.complete=function(){var u,p;(p=(u=this.destination)===null||u===void 0?void 0:u.complete)===null||p===void 0||p.call(u)},d.prototype._subscribe=function(u){var p,m;return(m=(p=this.source)===null||p===void 0?void 0:p.subscribe(u))!==null&&m!==void 0?m:c.EMPTY_SUBSCRIPTION},d})(t);return hr.AnonymousSubject=a,hr}var mn={},mu;function mf(){if(mu)return mn;mu=1;var e=mn&&mn.__extends||(function(){var c=function(i,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])},c(i,r)};return function(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");c(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(mn,"__esModule",{value:!0}),mn.BehaviorSubject=void 0;var s=ze(),l=(function(c){e(i,c);function i(r){var n=c.call(this)||this;return n._value=r,n}return Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),i.prototype._subscribe=function(r){var n=c.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},i.prototype.getValue=function(){var r=this,n=r.hasError,t=r.thrownError,a=r._value;if(n)throw t;return this._throwIfClosed(),a},i.prototype.next=function(r){c.prototype.next.call(this,this._value=r)},i})(s.Subject);return mn.BehaviorSubject=l,mn}var hn={},ec={},hu;function gc(){return hu||(hu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}})(ec)),ec}var vu;function yc(){if(vu)return hn;vu=1;var e=hn&&hn.__extends||(function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}})();Object.defineProperty(hn,"__esModule",{value:!0}),hn.ReplaySubject=void 0;var s=ze(),l=gc(),c=(function(i){e(r,i);function r(n,t,a){n===void 0&&(n=1/0),t===void 0&&(t=1/0),a===void 0&&(a=l.dateTimestampProvider);var o=i.call(this)||this;return o._bufferSize=n,o._windowTime=t,o._timestampProvider=a,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=t===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,t),o}return r.prototype.next=function(n){var t=this,a=t.isStopped,o=t._buffer,d=t._infiniteTimeWindow,u=t._timestampProvider,p=t._windowTime;a||(o.push(n),!d&&o.push(u.now()+p)),this._trimBuffer(),i.prototype.next.call(this,n)},r.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(n),a=this,o=a._infiniteTimeWindow,d=a._buffer,u=d.slice(),p=0;p0)&&!(t=n.next()).done;)a.push(t.value)}catch(d){o={error:d}}finally{try{t&&!t.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},l=kn&&kn.__spreadArray||function(c,i){for(var r=0,n=i.length,t=c.length;r0)&&!(d=o.next()).done;)u.push(d.value)}catch(m){p={error:m}}finally{try{d&&!d.done&&(a=o.return)&&a.call(o)}finally{if(p)throw p.error}}return u},l=xn&&xn.__spreadArray||function(n,t){for(var a=0,o=t.length,d=n.length;a0?i.prototype.requestAsyncId.call(this,n,t,a):(n.actions.push(this),n._scheduled||(n._scheduled=l.immediateProvider.setImmediate(n.flush.bind(n,void 0))))},r.prototype.recycleAsyncId=function(n,t,a){var o;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return i.prototype.recycleAsyncId.call(this,n,t,a);var d=n.actions;t!=null&&((o=d[d.length-1])===null||o===void 0?void 0:o.id)!==t&&(l.immediateProvider.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))},r})(s.AsyncAction);return gn.AsapAction=c,gn}var On={},Sn={},Ft={},Su;function hf(){if(Su)return Ft;Su=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.Scheduler=void 0;var e=gc(),s=(function(){function l(c,i){i===void 0&&(i=l.now),this.schedulerActionCtor=c,this.now=i}return l.prototype.schedule=function(c,i,r){return i===void 0&&(i=0),new this.schedulerActionCtor(this,c).schedule(r,i)},l.now=e.dateTimestampProvider.now,l})();return Ft.Scheduler=s,Ft}var Pu;function _i(){if(Pu)return Sn;Pu=1;var e=Sn&&Sn.__extends||(function(){var c=function(i,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])},c(i,r)};return function(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");c(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.AsyncScheduler=void 0;var s=hf(),l=(function(c){e(i,c);function i(r,n){n===void 0&&(n=s.Scheduler.now);var t=c.call(this,r,n)||this;return t.actions=[],t._active=!1,t}return i.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var t;this._active=!0;do if(t=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,t){for(;r=n.shift();)r.unsubscribe();throw t}},i})(s.Scheduler);return Sn.AsyncScheduler=l,Sn}var Au;function xb(){if(Au)return On;Au=1;var e=On&&On.__extends||(function(){var c=function(i,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])},c(i,r)};return function(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");c(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(On,"__esModule",{value:!0}),On.AsapScheduler=void 0;var s=_i(),l=(function(c){e(i,c);function i(){return c!==null&&c.apply(this,arguments)||this}return i.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var t=this.actions,a;r=r||t.shift();do if(a=r.execute(r.state,r.delay))break;while((r=t[0])&&r.id===n&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===n&&t.shift();)r.unsubscribe();throw a}},i})(s.AsyncScheduler);return On.AsapScheduler=l,On}var Eu;function wb(){return Eu||(Eu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var s=kb(),l=xb();e.asapScheduler=new l.AsapScheduler(s.AsapAction),e.asap=e.asapScheduler})(rc)),rc}var nc={},ju;function er(){return ju||(ju=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var s=yi(),l=_i();e.asyncScheduler=new l.AsyncScheduler(s.AsyncAction),e.async=e.asyncScheduler})(nc)),nc}var tc={},Pn={},Ru;function Ob(){if(Ru)return Pn;Ru=1;var e=Pn&&Pn.__extends||(function(){var c=function(i,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])},c(i,r)};return function(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");c(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.QueueAction=void 0;var s=yi(),l=(function(c){e(i,c);function i(r,n){var t=c.call(this,r,n)||this;return t.scheduler=r,t.work=n,t}return i.prototype.schedule=function(r,n){return n===void 0&&(n=0),n>0?c.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},i.prototype.execute=function(r,n){return n>0||this.closed?c.prototype.execute.call(this,r,n):this._execute(r,n)},i.prototype.requestAsyncId=function(r,n,t){return t===void 0&&(t=0),t!=null&&t>0||t==null&&this.delay>0?c.prototype.requestAsyncId.call(this,r,n,t):(r.flush(this),0)},i})(s.AsyncAction);return Pn.QueueAction=l,Pn}var An={},Cu;function Sb(){if(Cu)return An;Cu=1;var e=An&&An.__extends||(function(){var c=function(i,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])},c(i,r)};return function(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");c(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(An,"__esModule",{value:!0}),An.QueueScheduler=void 0;var s=_i(),l=(function(c){e(i,c);function i(){return c!==null&&c.apply(this,arguments)||this}return i})(s.AsyncScheduler);return An.QueueScheduler=l,An}var Tu;function Pb(){return Tu||(Tu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var s=Ob(),l=Sb();e.queueScheduler=new l.QueueScheduler(s.QueueAction),e.queue=e.queueScheduler})(tc)),tc}var ac={},En={},Mu;function Ab(){if(Mu)return En;Mu=1;var e=En&&En.__extends||(function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}})();Object.defineProperty(En,"__esModule",{value:!0}),En.AnimationFrameAction=void 0;var s=yi(),l=ff(),c=(function(i){e(r,i);function r(n,t){var a=i.call(this,n,t)||this;return a.scheduler=n,a.work=t,a}return r.prototype.requestAsyncId=function(n,t,a){return a===void 0&&(a=0),a!==null&&a>0?i.prototype.requestAsyncId.call(this,n,t,a):(n.actions.push(this),n._scheduled||(n._scheduled=l.animationFrameProvider.requestAnimationFrame(function(){return n.flush(void 0)})))},r.prototype.recycleAsyncId=function(n,t,a){var o;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return i.prototype.recycleAsyncId.call(this,n,t,a);var d=n.actions;t!=null&&t===n._scheduled&&((o=d[d.length-1])===null||o===void 0?void 0:o.id)!==t&&(l.animationFrameProvider.cancelAnimationFrame(t),n._scheduled=void 0)},r})(s.AsyncAction);return En.AnimationFrameAction=c,En}var jn={},qu;function Eb(){if(qu)return jn;qu=1;var e=jn&&jn.__extends||(function(){var c=function(i,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])},c(i,r)};return function(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");c(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(jn,"__esModule",{value:!0}),jn.AnimationFrameScheduler=void 0;var s=_i(),l=(function(c){e(i,c);function i(){return c!==null&&c.apply(this,arguments)||this}return i.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var t=this.actions,a;r=r||t.shift();do if(a=r.execute(r.state,r.delay))break;while((r=t[0])&&r.id===n&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===n&&t.shift();)r.unsubscribe();throw a}},i})(s.AsyncScheduler);return jn.AnimationFrameScheduler=l,jn}var Iu;function jb(){return Iu||(Iu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var s=Ab(),l=Eb();e.animationFrameScheduler=new l.AnimationFrameScheduler(s.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})(ac)),ac}var Er={},Fu;function Rb(){if(Fu)return Er;Fu=1;var e=Er&&Er.__extends||(function(){var n=function(t,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,d){o.__proto__=d}||function(o,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(o[u]=d[u])},n(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(t,a);function o(){this.constructor=t}t.prototype=a===null?Object.create(a):(o.prototype=a.prototype,new o)}})();Object.defineProperty(Er,"__esModule",{value:!0}),Er.VirtualAction=Er.VirtualTimeScheduler=void 0;var s=yi(),l=cr(),c=_i(),i=(function(n){e(t,n);function t(a,o){a===void 0&&(a=r),o===void 0&&(o=1/0);var d=n.call(this,a,function(){return d.frame})||this;return d.maxFrames=o,d.frame=0,d.index=-1,d}return t.prototype.flush=function(){for(var a=this,o=a.actions,d=a.maxFrames,u,p;(p=o[0])&&p.delay<=d&&(o.shift(),this.frame=p.delay,!(u=p.execute(p.state,p.delay))););if(u){for(;p=o.shift();)p.unsubscribe();throw u}},t.frameTimeFactor=10,t})(c.AsyncScheduler);Er.VirtualTimeScheduler=i;var r=(function(n){e(t,n);function t(a,o,d){d===void 0&&(d=a.index+=1);var u=n.call(this,a,o)||this;return u.scheduler=a,u.work=o,u.index=d,u.active=!0,u.index=a.index=d,u}return t.prototype.schedule=function(a,o){if(o===void 0&&(o=0),Number.isFinite(o)){if(!this.id)return n.prototype.schedule.call(this,a,o);this.active=!1;var d=new t(this.scheduler,this.work);return this.add(d),d.schedule(a,o)}else return l.Subscription.EMPTY},t.prototype.requestAsyncId=function(a,o,d){d===void 0&&(d=0),this.delay=a.frame+d;var u=a.actions;return u.push(this),u.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(a,o,d){},t.prototype._execute=function(a,o){if(this.active===!0)return n.prototype._execute.call(this,a,o)},t.sortActions=function(a,o){return a.delay===o.delay?a.index===o.index?0:a.index>o.index?1:-1:a.delay>o.delay?1:-1},t})(s.AsyncAction);return Er.VirtualAction=r,Er}var oc={},ic={},Lu;function xr(){return Lu||(Lu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var s=_e();e.EMPTY=new s.Observable(function(i){return i.complete()});function l(i){return i?c(i):e.EMPTY}e.empty=l;function c(i){return new s.Observable(function(r){return i.schedule(function(){return r.complete()})})}})(ic)),ic}var Lt={},jr={},zt={},zu;function $i(){if(zu)return zt;zu=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.isScheduler=void 0;var e=ye();function s(l){return l&&e.isFunction(l.schedule)}return zt.isScheduler=s,zt}var Wu;function rr(){if(Wu)return jr;Wu=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.popNumber=jr.popScheduler=jr.popResultSelector=void 0;var e=ye(),s=$i();function l(n){return n[n.length-1]}function c(n){return e.isFunction(l(n))?n.pop():void 0}jr.popResultSelector=c;function i(n){return s.isScheduler(l(n))?n.pop():void 0}jr.popScheduler=i;function r(n,t){return typeof l(n)=="number"?n.pop():t}return jr.popNumber=r,jr}var Wt={},Nt={},Ut={},we={},Bt={},Nu;function kc(){return Nu||(Nu=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.isArrayLike=void 0,Bt.isArrayLike=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"})),Bt}var Dt={},Uu;function vf(){if(Uu)return Dt;Uu=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.isPromise=void 0;var e=ye();function s(l){return e.isFunction(l?.then)}return Dt.isPromise=s,Dt}var Vt={},Bu;function gf(){if(Bu)return Vt;Bu=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.isInteropObservable=void 0;var e=Qi(),s=ye();function l(c){return s.isFunction(c[e.observable])}return Vt.isInteropObservable=l,Vt}var Gt={},Du;function yf(){if(Du)return Gt;Du=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.isAsyncIterable=void 0;var e=ye();function s(l){return Symbol.asyncIterator&&e.isFunction(l?.[Symbol.asyncIterator])}return Gt.isAsyncIterable=s,Gt}var Ht={},Vu;function _f(){if(Vu)return Ht;Vu=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.createInvalidObservableTypeError=void 0;function e(s){return new TypeError("You provided "+(s!==null&&typeof s=="object"?"an invalid object":"'"+s+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}return Ht.createInvalidObservableTypeError=e,Ht}var Yt={},Rn={},Gu;function kf(){if(Gu)return Rn;Gu=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.iterator=Rn.getSymbolIterator=void 0;function e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}return Rn.getSymbolIterator=e,Rn.iterator=e(),Rn}var Hu;function xf(){if(Hu)return Yt;Hu=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.isIterable=void 0;var e=kf(),s=ye();function l(c){return s.isFunction(c?.[e.iterator])}return Yt.isIterable=l,Yt}var Xe={},Yu;function xc(){if(Yu)return Xe;Yu=1;var e=Xe&&Xe.__generator||function(n,t){var a={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,d,u,p;return p={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function m(g){return function(k){return y([g,k])}}function y(g){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,d&&(u=g[0]&2?d.return:g[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,g[1])).done)return u;switch(d=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return a.label++,{value:g[1],done:!1};case 5:a.label++,d=g[1],g=[0];continue;case 7:g=a.ops.pop(),a.trys.pop();continue;default:if(u=a.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){a=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]1||m(w,x)})})}function m(w,x){try{y(o[w](x))}catch(O){R(u[0][3],O)}}function y(w){w.value instanceof s?Promise.resolve(w.value.v).then(g,k):R(u[0][2],w)}function g(w){m("next",w)}function k(w){m("throw",w)}function R(w,x){w(x),u.shift(),u.length&&m(u[0][0],u[0][1])}};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.isReadableStreamLike=Xe.readableStreamLikeToAsyncGenerator=void 0;var c=ye();function i(n){return l(this,arguments,function(){var a,o,d,u;return e(this,function(p){switch(p.label){case 0:a=n.getReader(),p.label=1;case 1:p.trys.push([1,,9,10]),p.label=2;case 2:return[4,s(a.read())];case 3:return o=p.sent(),d=o.value,u=o.done,u?[4,s(void 0)]:[3,5];case 4:return[2,p.sent()];case 5:return[4,s(d)];case 6:return[4,p.sent()];case 7:return p.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})}Xe.readableStreamLikeToAsyncGenerator=i;function r(n){return c.isFunction(n?.getReader)}return Xe.isReadableStreamLike=r,Xe}var Ju;function fe(){if(Ju)return we;Ju=1;var e=we&&we.__awaiter||function(q,M,I,J){function Q(G){return G instanceof I?G:new I(function(ue){ue(G)})}return new(I||(I=Promise))(function(G,ue){function be(ve){try{ae(J.next(ve))}catch(Je){ue(Je)}}function he(ve){try{ae(J.throw(ve))}catch(Je){ue(Je)}}function ae(ve){ve.done?G(ve.value):Q(ve.value).then(be,he)}ae((J=J.apply(q,M||[])).next())})},s=we&&we.__generator||function(q,M){var I={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},J,Q,G,ue;return ue={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function be(ae){return function(ve){return he([ae,ve])}}function he(ae){if(J)throw new TypeError("Generator is already executing.");for(;I;)try{if(J=1,Q&&(G=ae[0]&2?Q.return:ae[0]?Q.throw||((G=Q.return)&&G.call(Q),0):Q.next)&&!(G=G.call(Q,ae[1])).done)return G;switch(Q=0,G&&(ae=[ae[0]&2,G.value]),ae[0]){case 0:case 1:G=ae;break;case 4:return I.label++,{value:ae[1],done:!1};case 5:I.label++,Q=ae[1],ae=[0];continue;case 7:ae=I.ops.pop(),I.trys.pop();continue;default:if(G=I.trys,!(G=G.length>0&&G[G.length-1])&&(ae[0]===6||ae[0]===2)){I=0;continue}if(ae[0]===3&&(!G||ae[1]>G[0]&&ae[1]=q.length&&(q=void 0),{value:q&&q[J++],done:!q}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(we,"__esModule",{value:!0}),we.fromReadableStreamLike=we.fromAsyncIterable=we.fromIterable=we.fromPromise=we.fromArrayLike=we.fromInteropObservable=we.innerFrom=void 0;var i=kc(),r=vf(),n=_e(),t=gf(),a=yf(),o=_f(),d=xf(),u=xc(),p=ye(),m=df(),y=Qi();function g(q){if(q instanceof n.Observable)return q;if(q!=null){if(t.isInteropObservable(q))return k(q);if(i.isArrayLike(q))return R(q);if(r.isPromise(q))return w(q);if(a.isAsyncIterable(q))return O(q);if(d.isIterable(q))return x(q);if(u.isReadableStreamLike(q))return j(q)}throw o.createInvalidObservableTypeError(q)}we.innerFrom=g;function k(q){return new n.Observable(function(M){var I=q[y.observable]();if(p.isFunction(I.subscribe))return I.subscribe(M);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}we.fromInteropObservable=k;function R(q){return new n.Observable(function(M){for(var I=0;I0&&Q(y)},void 0,void 0,function(){M?.closed||M?.unsubscribe(),I=null})),!J&&Q(m!=null?typeof m=="number"?m:+m-w.now():y)})}e.timeout=a;function o(d){throw new e.TimeoutError(d)}})(sc)),sc}var da={},Rr={},Cr={},pa={},gl;function Jn(){if(gl)return pa;gl=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.map=void 0;var e=H(),s=ee();function l(c,i){return e.operate(function(r,n){var t=0;r.subscribe(s.createOperatorSubscriber(n,function(a){n.next(c.call(i,a,t++))}))})}return pa.map=l,pa}var yl;function Kn(){if(yl)return Cr;yl=1;var e=Cr&&Cr.__read||function(n,t){var a=typeof Symbol=="function"&&n[Symbol.iterator];if(!a)return n;var o=a.call(n),d,u=[],p;try{for(;(t===void 0||t-- >0)&&!(d=o.next()).done;)u.push(d.value)}catch(m){p={error:m}}finally{try{d&&!d.done&&(a=o.return)&&a.call(o)}finally{if(p)throw p.error}}return u},s=Cr&&Cr.__spreadArray||function(n,t){for(var a=0,o=t.length,d=n.length;a0)&&!(m=p.next()).done;)y.push(m.value)}catch(k){g={error:k}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(g)throw g.error}}return y},s=Rr&&Rr.__spreadArray||function(o,d){for(var u=0,p=d.length,m=o.length;u0)&&!(x=w.next()).done;)O.push(x.value)}catch(L){j={error:L}}finally{try{x&&!x.done&&(R=w.return)&&R.call(w)}finally{if(j)throw j.error}}return O};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.fromEvent=void 0;var s=fe(),l=_e(),c=$r(),i=kc(),r=ye(),n=Kn(),t=["addListener","removeListener"],a=["addEventListener","removeEventListener"],o=["on","off"];function d(g,k,R,w){if(r.isFunction(R)&&(w=R,R=void 0),w)return d(g,k,R).pipe(n.mapOneOrManyArgs(w));var x=e(y(g)?a.map(function(L){return function(q){return g[L](k,q,R)}}):p(g)?t.map(u(g,k)):m(g)?o.map(u(g,k)):[],2),O=x[0],j=x[1];if(!O&&i.isArrayLike(g))return c.mergeMap(function(L){return d(L,k,R)})(s.innerFrom(g));if(!O)throw new TypeError("Invalid event target");return new l.Observable(function(L){var q=function(){for(var M=[],I=0;I0&&u[u.length-1])&&(g[0]===6||g[0]===2)){a=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]0)&&!(m=p.next()).done;)y.push(m.value)}catch(k){g={error:k}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(g)throw g.error}}return y},s=Tr&&Tr.__spreadArray||function(o,d){for(var u=0,p=d.length,m=o.length;u=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(In,"__esModule",{value:!0}),In.bufferCount=void 0;var s=H(),l=ee(),c=Qr();function i(r,n){return n===void 0&&(n=null),n=n??r,s.operate(function(t,a){var o=[],d=0;t.subscribe(l.createOperatorSubscriber(a,function(u){var p,m,y,g,k=null;d++%n===0&&o.push([]);try{for(var R=e(o),w=R.next();!w.done;w=R.next()){var x=w.value;x.push(u),r<=x.length&&(k=k??[],k.push(x))}}catch(L){p={error:L}}finally{try{w&&!w.done&&(m=R.return)&&m.call(R)}finally{if(p)throw p.error}}if(k)try{for(var O=e(k),j=O.next();!j.done;j=O.next()){var x=j.value;c.arrRemove(o,x),a.next(x)}}catch(L){y={error:L}}finally{try{j&&!j.done&&(g=O.return)&&g.call(O)}finally{if(y)throw y.error}}},function(){var u,p;try{for(var m=e(o),y=m.next();!y.done;y=m.next()){var g=y.value;a.next(g)}}catch(k){u={error:k}}finally{try{y&&!y.done&&(p=m.return)&&p.call(m)}finally{if(u)throw u.error}}a.complete()},void 0,function(){o=null}))})}return In.bufferCount=i,In}var Fn={},ad;function nm(){if(ad)return Fn;ad=1;var e=Fn&&Fn.__values||function(o){var d=typeof Symbol=="function"&&Symbol.iterator,u=d&&o[d],p=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&p>=o.length&&(o=void 0),{value:o&&o[p++],done:!o}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.bufferTime=void 0;var s=cr(),l=H(),c=ee(),i=Qr(),r=er(),n=rr(),t=Zr();function a(o){for(var d,u,p=[],m=1;m=0?t.executeSchedule(w,y,L,g,!0):O=!0,L();var q=c.createOperatorSubscriber(w,function(M){var I,J,Q=x.slice();try{for(var G=e(Q),ue=G.next();!ue.done;ue=G.next()){var be=ue.value,he=be.buffer;he.push(M),k<=he.length&&j(be)}}catch(ae){I={error:ae}}finally{try{ue&&!ue.done&&(J=G.return)&&J.call(G)}finally{if(I)throw I.error}}},function(){for(;x?.length;)w.next(x.shift().buffer);q?.unsubscribe(),w.complete(),w.unsubscribe()},void 0,function(){return x=null});R.subscribe(q)})}return Fn.bufferTime=a,Fn}var Ln={},od;function tm(){if(od)return Ln;od=1;var e=Ln&&Ln.__values||function(a){var o=typeof Symbol=="function"&&Symbol.iterator,d=o&&a[o],u=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&u>=a.length&&(a=void 0),{value:a&&a[u++],done:!a}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.bufferToggle=void 0;var s=cr(),l=H(),c=fe(),i=ee(),r=Fe(),n=Qr();function t(a,o){return l.operate(function(d,u){var p=[];c.innerFrom(a).subscribe(i.createOperatorSubscriber(u,function(m){var y=[];p.push(y);var g=new s.Subscription,k=function(){n.arrRemove(p,y),u.next(y),g.unsubscribe()};g.add(c.innerFrom(o(m)).subscribe(i.createOperatorSubscriber(u,k,r.noop)))},r.noop)),d.subscribe(i.createOperatorSubscriber(u,function(m){var y,g;try{for(var k=e(p),R=k.next();!R.done;R=k.next()){var w=R.value;w.push(m)}}catch(x){y={error:x}}finally{try{R&&!R.done&&(g=k.return)&&g.call(k)}finally{if(y)throw y.error}}},function(){for(;p.length>0;)u.next(p.shift());u.complete()}))})}return Ln.bufferToggle=t,Ln}var Na={},id;function am(){if(id)return Na;id=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.bufferWhen=void 0;var e=H(),s=Fe(),l=ee(),c=fe();function i(r){return e.operate(function(n,t){var a=null,o=null,d=function(){o?.unsubscribe();var u=a;a=[],u&&t.next(u),c.innerFrom(r()).subscribe(o=l.createOperatorSubscriber(t,d,s.noop))};d(),n.subscribe(l.createOperatorSubscriber(t,function(u){return a?.push(u)},function(){a&&t.next(a),t.complete()},void 0,function(){return a=o=null}))})}return Na.bufferWhen=i,Na}var Ua={},sd;function om(){if(sd)return Ua;sd=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.catchError=void 0;var e=fe(),s=ee(),l=H();function c(i){return l.operate(function(r,n){var t=null,a=!1,o;t=r.subscribe(s.createOperatorSubscriber(n,void 0,void 0,function(d){o=e.innerFrom(i(d,c(i)(r))),t?(t.unsubscribe(),t=null,o.subscribe(n)):a=!0})),a&&(t.unsubscribe(),t=null,o.subscribe(n))})}return Ua.catchError=c,Ua}var Ba={},Da={},Va={},Ga={},Ha={},Ya={},cd;function Lf(){if(cd)return Ya;cd=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.scanInternals=void 0;var e=ee();function s(l,c,i,r,n){return function(t,a){var o=i,d=c,u=0;t.subscribe(e.createOperatorSubscriber(a,function(p){var m=u++;d=o?l(d,p,m):(o=!0,p),r&&a.next(d)},n&&(function(){o&&a.next(d),a.complete()})))}}return Ya.scanInternals=s,Ya}var ud;function xi(){if(ud)return Ha;ud=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.reduce=void 0;var e=Lf(),s=H();function l(c,i){return s.operate(e.scanInternals(c,i,arguments.length>=2,!1,!0))}return Ha.reduce=l,Ha}var ld;function zf(){if(ld)return Ga;ld=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.toArray=void 0;var e=xi(),s=H(),l=function(i,r){return i.push(r),i};function c(){return s.operate(function(i,r){e.reduce(l,[])(i).subscribe(r)})}return Ga.toArray=c,Ga}var dd;function Wf(){if(dd)return Va;dd=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.joinAllInternals=void 0;var e=Le(),s=Kn(),l=Zi(),c=$r(),i=zf();function r(n,t){return l.pipe(i.toArray(),c.mergeMap(function(a){return n(a)}),t?s.mapOneOrManyArgs(t):e.identity)}return Va.joinAllInternals=r,Va}var pd;function Nf(){if(pd)return Da;pd=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.combineLatestAll=void 0;var e=Pc(),s=Wf();function l(c){return s.joinAllInternals(e.combineLatest,c)}return Da.combineLatestAll=l,Da}var fd;function im(){if(fd)return Ba;fd=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.combineAll=void 0;var e=Nf();return Ba.combineAll=e.combineLatestAll,Ba}var Mr={},qr={},bd;function sm(){if(bd)return qr;bd=1;var e=qr&&qr.__read||function(o,d){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var p=u.call(o),m,y=[],g;try{for(;(d===void 0||d-- >0)&&!(m=p.next()).done;)y.push(m.value)}catch(k){g={error:k}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(g)throw g.error}}return y},s=qr&&qr.__spreadArray||function(o,d){for(var u=0,p=d.length,m=o.length;u0)&&!(a=t.next()).done;)o.push(a.value)}catch(u){d={error:u}}finally{try{a&&!a.done&&(n=t.return)&&n.call(t)}finally{if(d)throw d.error}}return o},s=Mr&&Mr.__spreadArray||function(i,r){for(var n=0,t=r.length,a=i.length;n0)&&!(u=d.next()).done;)p.push(u.value)}catch(y){m={error:y}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(m)throw m.error}}return p},s=Fr&&Fr.__spreadArray||function(t,a){for(var o=0,d=a.length,u=t.length;o0)&&!(a=t.next()).done;)o.push(a.value)}catch(u){d={error:u}}finally{try{a&&!a.done&&(n=t.return)&&n.call(t)}finally{if(d)throw d.error}}return o},s=Ir&&Ir.__spreadArray||function(i,r){for(var n=0,t=r.length,a=i.length;n=2;return function(o){return o.pipe(s.filter(function(d,u){return u===n}),i.take(1),a?c.defaultIfEmpty(t):l.throwIfEmpty(function(){return new e.ArgumentOutOfRangeError}))}}return po.elementAt=r,po}var Lr={},Ld;function km(){if(Ld)return Lr;Ld=1;var e=Lr&&Lr.__read||function(r,n){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var a=t.call(r),o,d=[],u;try{for(;(n===void 0||n-- >0)&&!(o=a.next()).done;)d.push(o.value)}catch(p){u={error:p}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(u)throw u.error}}return d},s=Lr&&Lr.__spreadArray||function(r,n){for(var t=0,a=n.length,o=r.length;t=2;return function(d){return d.pipe(t?s.filter(function(u,p){return t(u,p,d)}):r.identity,l.take(1),o?c.defaultIfEmpty(a):i.throwIfEmpty(function(){return new e.EmptyError}))}}return ko.first=n,ko}var xo={},Yd;function Em(){if(Yd)return xo;Yd=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.groupBy=void 0;var e=_e(),s=fe(),l=ze(),c=H(),i=ee();function r(n,t,a,o){return c.operate(function(d,u){var p;!t||typeof t=="function"?p=t:(a=t.duration,p=t.element,o=t.connector);var m=new Map,y=function(O){m.forEach(O),O(u)},g=function(O){return y(function(j){return j.error(O)})},k=0,R=!1,w=new i.OperatorSubscriber(u,function(O){try{var j=n(O),L=m.get(j);if(!L){m.set(j,L=o?o():new l.Subject);var q=x(j,L);if(u.next(q),a){var M=i.createOperatorSubscriber(L,function(){L.complete(),M?.unsubscribe()},void 0,void 0,function(){return m.delete(j)});w.add(s.innerFrom(a(q)).subscribe(M))}}L.next(p?p(O):O)}catch(I){g(I)}},function(){return y(function(O){return O.complete()})},g,function(){return m.clear()},function(){return R=!0,k===0});d.subscribe(w);function x(O,j){var L=new e.Observable(function(q){k++;var M=j.subscribe(q);return function(){M.unsubscribe(),--k===0&&R&&w.unsubscribe()}});return L.key=O,L}})}return xo.groupBy=r,xo}var wo={},Jd;function jm(){if(Jd)return wo;Jd=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.isEmpty=void 0;var e=H(),s=ee();function l(){return e.operate(function(c,i){c.subscribe(s.createOperatorSubscriber(i,function(){i.next(!1),i.complete()},function(){i.next(!0),i.complete()}))})}return wo.isEmpty=l,wo}var Oo={},Wn={},Kd;function Kf(){if(Kd)return Wn;Kd=1;var e=Wn&&Wn.__values||function(r){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&r[n],a=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.takeLast=void 0;var s=xr(),l=H(),c=ee();function i(r){return r<=0?function(){return s.EMPTY}:l.operate(function(n,t){var a=[];n.subscribe(c.createOperatorSubscriber(t,function(o){a.push(o),r=2;return function(d){return d.pipe(t?s.filter(function(u,p){return t(u,p,d)}):r.identity,l.takeLast(1),o?i.defaultIfEmpty(a):c.throwIfEmpty(function(){return new e.EmptyError}))}}return Oo.last=n,Oo}var So={},Zd;function Cm(){if(Zd)return So;Zd=1,Object.defineProperty(So,"__esModule",{value:!0}),So.materialize=void 0;var e=Oc(),s=H(),l=ee();function c(){return s.operate(function(i,r){i.subscribe(l.createOperatorSubscriber(r,function(n){r.next(e.Notification.createNext(n))},function(){r.next(e.Notification.createComplete()),r.complete()},function(n){r.next(e.Notification.createError(n)),r.complete()}))})}return So.materialize=c,So}var Po={},Xd;function Tm(){if(Xd)return Po;Xd=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.max=void 0;var e=xi(),s=ye();function l(c){return e.reduce(s.isFunction(c)?function(i,r){return c(i,r)>0?i:r}:function(i,r){return i>r?i:r})}return Po.max=l,Po}var Ao={},$d;function Mm(){if($d)return Ao;$d=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.flatMap=void 0;var e=$r();return Ao.flatMap=e.mergeMap,Ao}var Eo={},ep;function qm(){if(ep)return Eo;ep=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.mergeMapTo=void 0;var e=$r(),s=ye();function l(c,i,r){return r===void 0&&(r=1/0),s.isFunction(i)?e.mergeMap(function(){return c},i,r):(typeof i=="number"&&(r=i),e.mergeMap(function(){return c},r))}return Eo.mergeMapTo=l,Eo}var jo={},rp;function Im(){if(rp)return jo;rp=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.mergeScan=void 0;var e=H(),s=Ac();function l(c,i,r){return r===void 0&&(r=1/0),e.operate(function(n,t){var a=i;return s.mergeInternals(n,t,function(o,d){return c(a,o,d)},r,function(o){a=o},!1,void 0,function(){return a=null})})}return jo.mergeScan=l,jo}var zr={},Wr={},np;function Fm(){if(np)return Wr;np=1;var e=Wr&&Wr.__read||function(t,a){var o=typeof Symbol=="function"&&t[Symbol.iterator];if(!o)return t;var d=o.call(t),u,p=[],m;try{for(;(a===void 0||a-- >0)&&!(u=d.next()).done;)p.push(u.value)}catch(y){m={error:y}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(m)throw m.error}}return p},s=Wr&&Wr.__spreadArray||function(t,a){for(var o=0,d=a.length,u=t.length;o0)&&!(a=t.next()).done;)o.push(a.value)}catch(u){d={error:u}}finally{try{a&&!a.done&&(n=t.return)&&n.call(t)}finally{if(d)throw d.error}}return o},s=zr&&zr.__spreadArray||function(i,r){for(var n=0,t=r.length,a=i.length;n0)&&!(o=a.next()).done;)d.push(o.value)}catch(p){u={error:p}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(u)throw u.error}}return d},s=vr&&vr.__spreadArray||function(r,n){for(var t=0,a=n.length,o=r.length;t0)&&!(d=o.next()).done;)u.push(d.value)}catch(m){p={error:m}}finally{try{d&&!d.done&&(a=o.return)&&a.call(o)}finally{if(p)throw p.error}}return u},s=Nr&&Nr.__spreadArray||function(n,t){for(var a=0,o=t.length,d=n.length;a=2,!0))}return Vo.scan=l,Vo}var Go={},kp;function $m(){if(kp)return Go;kp=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.sequenceEqual=void 0;var e=H(),s=ee(),l=fe();function c(r,n){return n===void 0&&(n=function(t,a){return t===a}),e.operate(function(t,a){var o=i(),d=i(),u=function(m){a.next(m),a.complete()},p=function(m,y){var g=s.createOperatorSubscriber(a,function(k){var R=y.buffer,w=y.complete;R.length===0?w?u(!1):m.buffer.push(k):!n(k,R.shift())&&u(!1)},function(){m.complete=!0;var k=y.complete,R=y.buffer;k&&u(R.length===0),g?.unsubscribe()});return g};t.subscribe(p(o,d)),l.innerFrom(r).subscribe(p(d,o))})}Go.sequenceEqual=c;function i(){return{buffer:[],complete:!1}}return Go}var Ur={},xp;function Zf(){if(xp)return Ur;xp=1;var e=Ur&&Ur.__read||function(a,o){var d=typeof Symbol=="function"&&a[Symbol.iterator];if(!d)return a;var u=d.call(a),p,m=[],y;try{for(;(o===void 0||o-- >0)&&!(p=u.next()).done;)m.push(p.value)}catch(g){y={error:g}}finally{try{p&&!p.done&&(d=u.return)&&d.call(u)}finally{if(y)throw y.error}}return m},s=Ur&&Ur.__spreadArray||function(a,o){for(var d=0,u=o.length,p=a.length;d0&&(w=new i.SafeSubscriber({next:function(be){return ue.next(be)},error:function(be){q=!0,M(),x=t(I,p,be),ue.error(be)},complete:function(){L=!0,M(),x=t(I,y),ue.complete()}}),l.innerFrom(Q).subscribe(w))})(R)}}Ur.share=n;function t(a,o){for(var d=[],u=2;u=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Un,"__esModule",{value:!0}),Un.windowCount=void 0;var s=ze(),l=H(),c=ee();function i(r,n){n===void 0&&(n=0);var t=n>0?n:r;return l.operate(function(a,o){var d=[new s.Subject],u=0;o.next(d[0].asObservable()),a.subscribe(c.createOperatorSubscriber(o,function(p){var m,y;try{for(var g=e(d),k=g.next();!k.done;k=g.next()){var R=k.value;R.next(p)}}catch(O){m={error:O}}finally{try{k&&!k.done&&(y=g.return)&&y.call(g)}finally{if(m)throw m.error}}var w=u-r+1;if(w>=0&&w%t===0&&d.shift().complete(),++u%t===0){var x=new s.Subject;d.push(x),o.next(x.asObservable())}},function(){for(;d.length>0;)d.shift().complete();o.complete()},function(p){for(;d.length>0;)d.shift().error(p);o.error(p)},function(){d=null}))})}return Un.windowCount=i,Un}var di={},Vp;function yh(){if(Vp)return di;Vp=1,Object.defineProperty(di,"__esModule",{value:!0}),di.windowTime=void 0;var e=ze(),s=er(),l=cr(),c=H(),i=ee(),r=Qr(),n=rr(),t=Zr();function a(o){for(var d,u,p=[],m=1;m=0?t.executeSchedule(w,y,L,g,!0):O=!0,L();var q=function(I){return x.slice().forEach(I)},M=function(I){q(function(J){var Q=J.window;return I(Q)}),I(w),w.unsubscribe()};return R.subscribe(i.createOperatorSubscriber(w,function(I){q(function(J){J.window.next(I),k<=++J.seen&&j(J)})},function(){return M(function(I){return I.complete()})},function(I){return M(function(J){return J.error(I)})})),function(){x=null}})}return di.windowTime=a,di}var Bn={},Gp;function _h(){if(Gp)return Bn;Gp=1;var e=Bn&&Bn.__values||function(o){var d=typeof Symbol=="function"&&Symbol.iterator,u=d&&o[d],p=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&p>=o.length&&(o=void 0),{value:o&&o[p++],done:!o}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.windowToggle=void 0;var s=ze(),l=cr(),c=H(),i=fe(),r=ee(),n=Fe(),t=Qr();function a(o,d){return c.operate(function(u,p){var m=[],y=function(g){for(;00)&&!(m=p.next()).done;)y.push(m.value)}catch(k){g={error:k}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(g)throw g.error}}return y},s=Br&&Br.__spreadArray||function(o,d){for(var u=0,p=d.length,m=o.length;u0)&&!(o=a.next()).done;)d.push(o.value)}catch(p){u={error:p}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(u)throw u.error}}return d},s=Vr&&Vr.__spreadArray||function(r,n){for(var t=0,a=n.length,o=r.length;t0)&&!(a=t.next()).done;)o.push(a.value)}catch(u){d={error:u}}finally{try{a&&!a.done&&(n=t.return)&&n.call(t)}finally{if(d)throw d.error}}return o},s=Dr&&Dr.__spreadArray||function(i,r){for(var n=0,t=r.length,a=i.length;n2?D-2:0),Z=2;Z1?K-1:0),de=1;de1?K-1:0),de=1;de{const s=await bi("GET","/api/settings/client");if(this.cache.clear(),s)for(const[l,c]of Object.entries(s))this.cache.set(l,c);if(!this.cache.has("theme.activeId")){const{migrateThemeConfig:l}=await ub(async()=>{const{migrateThemeConfig:i}=await import("./migrateThemeConfig-DiOQ8LsX.js");return{migrateThemeConfig:i}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),c=l({theme:this.cache.get("theme"),"css.activeThemeId":this.cache.get("css.activeThemeId"),"css.themes":this.cache.get("css.themes"),customCss:this.cache.get("customCss")});this.cache.set("theme.activeId",c["theme.activeId"]),this.cache.set("theme.userThemes",c["theme.userThemes"]),bi("PUT","/api/settings/client",c).catch(()=>{})}this.initialized=!0})(),this.initPromise.catch(()=>{this.initPromise=null}),this.initPromise)}whenReady(){return this.initialize()}get(s){return this.cache.get(s)}async set(s,l){this.cache.set(s,l),this.notify(s,l),await bi("PUT","/api/settings/client",{[s]:l})}setLocal(s,l){this.cache.set(s,l),this.notify(s,l)}async remove(s){this.cache.delete(s),this.notify(s,void 0),await bi("PUT","/api/settings/client",{[s]:null})}async setBatch(s){for(const[l,c]of Object.entries(s))this.cache.set(l,c),this.notify(l,c);await bi("PUT","/api/settings/client",s)}subscribe(s,l){return this.subscribers.has(s)||this.subscribers.set(s,new Set),this.subscribers.get(s).add(l),()=>{this.subscribers.get(s)?.delete(l)}}isInitialized(){return this.initialized}reset(){this.cache.clear(),this.subscribers.clear(),this.initialized=!1,this.initPromise=null}notify(s,l){const c=this.subscribers.get(s);if(c)for(const i of c)i(l)}}const $p=new jh;/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */function Rh(e){return!!(e&&typeof e.id=="string"&&e.id.trim().length>0&&typeof e.use_model=="string"&&e.use_model.trim().length>0)}function Ch(e){return{provider_id:e.id,model:e.use_model}}function lc(e){return Rh(e)?Ch(e):void 0}function Th(e){return{id:e.provider_id,platform:"",name:"",base_url:"",api_key:"",use_model:e.use_model??e.model}}function Mh(e){return e?Th(e):void 0}function Vn(e){if(!e||typeof e!="object")return e;const s=e,l={...s};"model"in s&&(l.model=Mh(s.model));const c=s.extra;if(c&&typeof c=="object"&&!("custom_workspace"in c)){const i=typeof c.workspace=="string"?c.workspace:"",r=c.is_temporary_workspace===!0;l.extra={...c,custom_workspace:i.length>0&&!r}}return l}function qh(e){return{...e,items:e.items.map(Vn)}}function $f(){return typeof window<"u"&&window.__backendPort?window.__backendPort:globalThis.__backendPort??13400}function eb(){return typeof window<"u"&&typeof document<"u"&&!window.__backendPort}function Ih(){return eb()?"":`http://127.0.0.1:${$f()}`}function Fh(){return eb()?`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`:`ws://127.0.0.1:${$f()}/ws`}class rb extends Error{constructor(s){const{method:l,path:c,status:i,body:r}=s;let n="",t="",a;if(r&&typeof r=="object"){const o=r;typeof o.code=="string"&&(n=o.code),typeof o.error=="string"&&(t=o.error),a=o.details}else typeof r=="string"&&(t=r);super(`Backend ${l} ${c} failed (${i}): ${JSON.stringify(r)}`),this.name="BackendHttpError",this.status=i,this.code=n,this.backendMessage=t,this.details=a,this.body=r}}function pg(e){return!!(e instanceof rb||e&&typeof e=="object"&&"name"in e&&e.name==="BackendHttpError"&&"status"in e&&typeof e.status=="number"&&"code"in e&&typeof e.code=="string")}const Lh=/api[_-]?key|authorization|auth[_-]?token|access[_-]?token|refresh[_-]?token|secret/i;function bc(e,s=0){return s>8||e===null||typeof e!="object"?e:Array.isArray(e)?e.map(l=>bc(l,s+1)):Object.fromEntries(Object.entries(e).map(([l,c])=>[l,Lh.test(l)?"[REDACTED]":bc(c,s+1)]))}async function ut(e,s,l,c){const i=`${Ih()}${s}`,r={};l!==void 0&&(r["Content-Type"]="application/json"),console.debug(`[httpBridge] ${e} ${s}`,l!==void 0?JSON.stringify(bc(l)).slice(0,500):"(no body)");const n=await fetch(i,{method:e,headers:r,body:l!==void 0?JSON.stringify(l):void 0});if(!n.ok){const o=await n.text().catch(()=>"");let d;try{d=JSON.parse(o)}catch{d=o}throw c?.silentStatuses?.includes(n.status)?console.debug(`[httpBridge] ${e} ${s} → ${n.status} (silenced)`,d):console.error(`[httpBridge] ${e} ${s} → ${n.status}`,d),new rb({method:e,path:s,status:n.status,body:d})}if(console.debug(`[httpBridge] ${e} ${s} → ${n.status} OK`),!n.headers.get("Content-Type")?.includes("application/json"))return;const a=await n.json();return a&&typeof a=="object"&&"data"in a?a.data:a}function Re(e,s){return{provider:()=>{},invoke:(async l=>{const c=await e.invoke(l);return s(c)})}}function re(e,s){return{provider:()=>{},invoke:(async l=>{const c=typeof e=="function"?e(l):e;return ut("GET",c,void 0,s)})}}function C(e,s){return{provider:()=>{},invoke:(async l=>{const c=typeof e=="function"?e(l):e,i=s?s(l):l;return ut("POST",c,i)})}}function $e(e,s){return{provider:()=>{},invoke:(async l=>{const c=typeof e=="function"?e(l):e,i=s?s(l):l;return ut("PUT",c,i)})}}function Gn(e,s){return{provider:()=>{},invoke:(async l=>{const c=typeof e=="function"?e(l):e,i=s?s(l):l;return ut("PATCH",c,i)})}}function Ye(e){return{provider:()=>{},invoke:(async s=>{const l=typeof e=="function"?e(s):e;return ut("DELETE",l)})}}function Ji(e,s){return{provider:()=>{},invoke:(async l=>(console.warn(`[httpBridge] stub: ${e} not yet implemented in backend`),s))}}const mi=new Map;let Kr=null,dc=null,mc=0;function nb(){if(typeof window>"u"){console.debug("[ensureWs] skipped: no window");return}if(Kr&&(Kr.readyState===WebSocket.OPEN||Kr.readyState===WebSocket.CONNECTING)){console.debug("[ensureWs] skipped: already open/connecting, readyState=",Kr.readyState);return}const e=Fh();console.debug("[ensureWs] connecting to",e);try{Kr=new WebSocket(e)}catch(l){console.error("[ensureWs] WebSocket constructor threw:",l),ef();return}const s=Kr;s.addEventListener("open",()=>{console.debug("[ensureWs] CONNECTED"),mc=0}),s.addEventListener("close",l=>{console.debug("[ensureWs] CLOSED code="+l.code+" reason="+l.reason),Kr===s&&(Kr=null),ef()}),s.addEventListener("error",l=>{console.error("[ensureWs] ERROR",l),s.close()}),s.addEventListener("message",l=>{try{const c=JSON.parse(l.data),i=c.name??c.event,r=c.data??c.payload;if(console.debug("[WS:msg]",i,JSON.stringify(r).slice(0,200)),i){const n=mi.get(i);if(n)for(const t of n)try{t(r)}catch{}}}catch{}})}function ef(){if(dc)return;const e=Math.min(1e3*Math.pow(2,mc),3e4);mc++,dc=setTimeout(()=>{dc=null,nb()},e)}function pe(e){return{on:s=>{nb(),mi.has(e)||mi.set(e,new Set);const l=s;return mi.get(e).add(l),()=>{mi.get(e)?.delete(l)}},emit:(()=>{})}}function Yi(e,s){const l=pe(e);return{on:c=>l.on(i=>{c(s(i))}),emit:(()=>{})}}/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */function zh(e){return{...e,items:e.items.map(Wh)}}function Wh(e){return{conversation:Vn({...e.conversation,model:e.conversation.model??void 0}),message_id:e.message_id,message_type:e.message_type,message_created_at:e.message_created_at,preview_text:e.preview_text}}/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */const Nh=new Set(["leader","teammate"]),Uh=new Set(["shared","isolated"]);function Bh(e){return e==="lead"?"leader":Nh.has(e)?e:"teammate"}function Dh(e){return{pending:"pending",idle:"idle",working:"active",thinking:"active",tool_use:"active",completed:"completed",error:"failed"}[e??""]??"idle"}function Vh(e){return Uh.has(e)?e:"shared"}const Gh=new Set(["aionrs","openclaw-gateway","nanobot","remote"]);function Hh(e){return Gh.has(e)?e:"acp"}function tb(e){const s=e??{},l=s.agent_type??s.backend??"",c=s.backend??l,i=Hh(c);return{slot_id:s.slot_id??"",conversation_id:s.conversation_id??"",role:Bh(s.role),agent_type:l,icon:s.icon,agent_name:s.agent_name??s.name??"",conversation_type:i,status:Dh(s.status),cli_path:s.cli_path,custom_agent_id:s.custom_agent_id,model:s.model,pending_confirmations:s.pending_confirmations??s.pendingConfirmations??0}}function Tc(e){const s=e??{},l=Array.isArray(s.agents)?s.agents.map(tb):[];return{id:s.id??"",user_id:s.user_id??"",name:s.name??"",workspace:s.workspace??"",workspace_mode:Vh(s.workspace_mode),leader_agent_id:s.leader_agent_id??"",agents:l,session_mode:s.session_mode,created_at:s.created_at??0,updated_at:s.updated_at??0}}function Yh(e){return Array.isArray(e)?e.map(Tc):[]}function Jh(e){return e==null?null:Tc(e)}function rf(e){return{name:e.agent_name,role:e.role==="leader"?"lead":e.role,backend:e.agent_type,model:e.model||"default",...e.custom_agent_id?{custom_agent_id:e.custom_agent_id}:{}}}/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */function nf(e){return{file_path:e.file_path,relativePath:e.relative_path,operation:e.operation}}function Kh(e){return{staged:(e?.staged??[]).map(nf),unstaged:(e?.unstaged??[]).map(nf)}}/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */function tf(e){return e.replace(/\\/g,"/")}function Ki(e){return e.replace(/\/+$/,"")}function Qh(e,s){if(!e||!s)return e||".";const l=Ki(tf(e)),c=Ki(tf(s));return l===c?".":l.startsWith(c+"/")?l.slice(c.length+1)||".":e}function Zh(e,s,l){const c=Ki(s),i=e.name||"",r=e.type==="directory",n=l?`${l}/${i}`:i;return{name:i,fullPath:`${c}/${n}`,relativePath:n,isDir:r,isFile:!r}}function Xh(e,s,l){const c=Ki(s),i=l==="."?"":l,r=e.map(t=>Zh(t,c,i));return l==="."||!l?[{name:c.split("/").pop()||"",fullPath:c,relativePath:"",isDir:!0,isFile:!1,children:r}]:[{name:l.split("/").pop()||"",fullPath:`${c}/${l}`,relativePath:l,isDir:!0,isFile:!1,children:r}]}function $h(e){return e.map(s=>({name:s.name,fullPath:s.full_path,relativePath:s.relative_path}))}/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */const ev={openFile:C("/api/shell/open-file",e=>({file_path:e})),showItemInFolder:C("/api/shell/show-item-in-folder",e=>({file_path:e})),openExternal:C("/api/shell/open-external",e=>({url:e})),checkToolInstalled:C("/api/shell/check-tool-installed"),openFolderWith:C("/api/shell/open-folder-with")},rv={list:re("/api/assistants"),get:re(({id:e,locale:s})=>`/api/assistants/${encodeURIComponent(e)}${s?`?locale=${encodeURIComponent(s)}`:""}`),create:C("/api/assistants"),update:$e(e=>`/api/assistants/${e.id}`),delete:Ye(e=>`/api/assistants/${e.id}`),setState:Gn(e=>`/api/assistants/${e.id}/state`,e=>{const{id:s,...l}=e;return l}),import:C("/api/assistants/import")},hi={create:Re(C("/api/conversations",e=>{const s=e.type==="aionrs",l={type:e.type,id:e.id,name:e.name,assistant:e.assistant,extra:e.extra};if(s){const c=lc(e.model);c&&(l.model=c)}return l}),Vn),createWithConversation:Re(C("/api/conversations/clone",e=>{const s=e.conversation.type==="aionrs",{model:l,...c}=e.conversation,i={...c};if(s){const r=lc(l);r&&(i.model=r)}return{conversation:i}}),Vn),get:Re(re(e=>`/api/conversations/${e.id}`,{silentStatuses:[404]}),Vn),getAssociateConversation:Re(re(e=>`/api/conversations/${e.conversation_id}/associated`),e=>e.map(Vn)),listByCronJob:Re(re(e=>`/api/cron/jobs/${e.cron_job_id}/conversations`),e=>e.map(Vn)),remove:Ye(e=>`/api/conversations/${e.id}`),update:Gn(e=>`/api/conversations/${e.id}`,e=>{const s=e.updates,{model:l,...c}=s,i=lc(l);return{...c,...i?{model:i}:{},merge_extra:e.merge_extra}}),reset:C(e=>`/api/conversations/${e.id}/reset`),warmup:C(e=>`/api/conversations/${e.conversation_id}/warmup`),stop:C(e=>`/api/conversations/${e.conversation_id}/cancel`,e=>({turn_id:e.turn_id})),activeCount:re("/api/conversations/active-count"),sendMessage:C(e=>`/api/conversations/${e.conversation_id}/messages`,e=>({content:e.input,files:e.files,loading_id:e.loading_id,inject_skills:e.inject_skills})),getSlashCommands:re(e=>`/api/conversations/${e.conversation_id}/slash-commands`),askSideQuestion:C(e=>`/api/conversations/${e.conversation_id}/side-question`,e=>({question:e.question})),confirmMessage:C(e=>`/api/conversations/${e.conversation_id}/confirmations/${encodeURIComponent(e.call_id)}/confirm`,e=>({msg_id:e.msg_id,data:e.confirm_key})),listArtifacts:re(e=>`/api/conversations/${e.conversation_id}/artifacts`),updateArtifact:Gn(e=>`/api/conversations/${e.conversation_id}/artifacts/${e.artifact_id}`,e=>({status:e.status})),responseStream:pe("message.stream"),userCreated:pe("message.userCreated"),artifactStream:pe("conversation.artifact"),turnCompleted:Yi("turn.completed",e=>{const s=e,l=s.last_message??s.lastMessage,c=l?{id:l.id,type:l.type,content:l.content??null,status:l.status,created_at:l.created_at??l.createdAt??Date.now()}:{content:null,created_at:Date.now()},i=s.runtime??{},r={state:i.state??"idle",can_send_message:i.can_send_message??i.canSendMessage??!0,has_task:i.has_task??i.hasTask??!1,task_status:i.task_status??i.taskStatus,is_processing:i.is_processing??i.isProcessing??!1,pending_confirmations:i.pending_confirmations??i.pendingConfirmations??0,turn_id:i.turn_id??i.turnId??null},n=s.model??{},t={platform:n.platform??"",name:n.name??"",use_model:n.use_model??n.useModel??""};return{session_id:s.session_id??s.sessionId??s.conversation_id??"",turn_id:s.turn_id??s.turnId??r.turn_id??"",status:s.status??"finished",state:s.state??(s.status==="finished"?"ai_waiting_input":"unknown"),detail:s.detail??"",can_send_message:s.can_send_message??s.canSendMessage??s.status==="finished",runtime:r,workspace:s.workspace??"",model:t,last_message:c}}),listChanged:pe("conversation.listChanged"),getWorkspace:{provider:()=>{},invoke:(async e=>{const s=Qh(e.path,e.workspace),l=`/api/conversations/${e.conversation_id}/workspace?path=${encodeURIComponent(s)}${e.search?`&search=${encodeURIComponent(e.search)}`:""}`,c=await ut("GET",l);return Xh(c,e.workspace,s)})},responseSearchWorkSpace:Ji("responseSearchWorkSpace",void 0),confirmation:{add:pe("confirmation.add"),update:pe("confirmation.update"),confirm:C(e=>`/api/conversations/${e.conversation_id}/confirmations/${encodeURIComponent(e.call_id)}/confirm`,e=>({msg_id:e.msg_id,data:e.data,always_allow:e.always_allow??!1})),list:re(e=>`/api/conversations/${e.conversation_id}/confirmations`),remove:pe("confirmation.remove")},approval:{check:re(e=>`/api/conversations/${e.conversation_id}/approvals/check?action=${encodeURIComponent(e.action)}${e.command_type?`&command_type=${encodeURIComponent(e.command_type)}`:""}`)}},nv={statusChanged:pe("runtime.statusChanged")},tv={restart:oe.bridge.buildProvider("restart-app"),openDevTools:oe.bridge.buildProvider("open-dev-tools"),isDevToolsOpened:oe.bridge.buildProvider("is-dev-tools-opened"),systemInfo:Re(re("/api/system/info"),e=>({cacheDir:e.cache_dir,workDir:e.work_dir,logDir:e.log_dir,platform:e.platform,arch:e.arch})),getPath:oe.bridge.buildProvider("app.get-path"),updateSystemInfo:oe.bridge.buildProvider("update-system-info"),getZoomFactor:oe.bridge.buildProvider("app.get-zoom-factor"),setZoomFactor:oe.bridge.buildProvider("app.set-zoom-factor"),getCdpStatus:oe.bridge.buildProvider("app.get-cdp-status"),updateCdpConfig:oe.bridge.buildProvider("app.update-cdp-config"),getStartOnBootStatus:oe.bridge.buildProvider("app.get-start-on-boot-status"),setStartOnBoot:oe.bridge.buildProvider("app.set-start-on-boot"),getGpuStatus:oe.bridge.buildProvider("app.get-gpu-status"),setGpuOverride:oe.bridge.buildProvider("app.set-gpu-override"),writeRendererLog:oe.bridge.buildProvider("app.write-renderer-log"),logStream:oe.bridge.buildEmitter("app.log-stream"),devToolsStateChanged:oe.bridge.buildEmitter("app.devtools-state-changed")},av={open:oe.bridge.buildEmitter("update.open"),check:oe.bridge.buildProvider("update.check"),download:oe.bridge.buildProvider("update.download"),downloadProgress:oe.bridge.buildEmitter("update.download.progress")},ov={check:oe.bridge.buildProvider("auto-update.check"),download:oe.bridge.buildProvider("auto-update.download"),quitAndInstall:oe.bridge.buildProvider("auto-update.quit-and-install"),status:oe.bridge.buildEmitter("auto-update.status")},iv={detectUrl:C("/api/star-office/detect")},sv={showOpen:oe.bridge.buildProvider("show-open")},cv={getFilesByDir:C("/api/fs/dir"),listWorkspaceFiles:Re(C("/api/fs/list"),$h),getImageBase64:C("/api/fs/image-base64"),fetchRemoteImage:C("/api/fs/fetch-remote-image"),readFile:C("/api/fs/read"),readFileBuffer:C("/api/fs/read-buffer"),createTempFile:C("/api/fs/temp"),writeFile:C("/api/fs/write"),createZip:C("/api/fs/zip"),cancelZip:C("/api/fs/zip/cancel"),getFileMetadata:C("/api/fs/metadata"),copyFilesToWorkspace:C("/api/fs/copy"),removeEntry:C("/api/fs/remove"),renameEntry:C("/api/fs/rename"),readBuiltinRule:C("/api/skills/builtin-rule"),readBuiltinSkill:C("/api/skills/builtin-skill"),readAssistantRule:C("/api/skills/assistant-rule/read"),writeAssistantRule:C("/api/skills/assistant-rule/write"),deleteAssistantRule:Ye(e=>`/api/skills/assistant-rule/${e.assistant_id}`),listAvailableSkills:re("/api/skills"),listBuiltinAutoSkills:re("/api/skills/builtin-auto"),materializeSkillsForAgent:C("/api/skills/materialize-for-agent"),readSkillInfo:C("/api/skills/info"),importSkill:C("/api/skills/import"),scanForSkills:C("/api/skills/scan"),detectCommonSkillPaths:re("/api/skills/detect-paths"),detectAndCountExternalSkills:re("/api/skills/detect-external"),importSkillWithSymlink:C("/api/skills/import-symlink"),deleteSkill:Ye(e=>`/api/skills/${e.skill_name}`),getSkillPaths:re("/api/skills/paths"),getCustomExternalPaths:re("/api/skills/external-paths"),addCustomExternalPath:C("/api/skills/external-paths"),removeCustomExternalPath:Ye(e=>`/api/skills/external-paths?path=${encodeURIComponent(e.path)}`),enableSkillsMarket:C("/api/skills/market/enable"),disableSkillsMarket:C("/api/skills/market/disable")},uv={startWatch:C("/api/fs/watch/start"),stopWatch:C("/api/fs/watch/stop"),stopAllWatches:C("/api/fs/watch/stop-all"),fileChanged:pe("fileWatch.fileChanged")},lv={start:C("/api/fs/office-watch/start"),stop:C("/api/fs/office-watch/stop"),fileAdded:pe("workspaceOfficeWatch.fileAdded")},dv={contentUpdate:pe("fileStream.contentUpdate")},pv={init:C("/api/fs/snapshot/init"),compare:Re(C("/api/fs/snapshot/compare"),Kh),getBaselineContent:C("/api/fs/snapshot/baseline"),getInfo:C("/api/fs/snapshot/info"),dispose:C("/api/fs/snapshot/dispose"),stageFile:C("/api/fs/snapshot/stage"),stageAll:C("/api/fs/snapshot/stage-all"),unstageFile:C("/api/fs/snapshot/unstage"),unstageAll:C("/api/fs/snapshot/unstage-all"),discardFile:C("/api/fs/snapshot/discard"),resetFile:C("/api/fs/snapshot/reset"),getBranches:C("/api/fs/snapshot/branches")},fv={status:Ji("googleAuth.status",{success:!1,msg:"Google Auth not available in backend mode"})},bv={subscriptionStatus:re("/api/google/subscription-status")},mv={testConnection:C("/api/bedrock/test-connection")},hv={listProviders:re("/api/providers"),createProvider:C("/api/providers"),updateProvider:$e(e=>`/api/providers/${e.id}`,e=>{const{id:s,...l}=e;return l}),deleteProvider:Ye(e=>`/api/providers/${e.id}`),fetchProviderModels:C(e=>`/api/providers/${e.id}/models`,e=>({try_fix:e.try_fix})),fetchModelList:C("/api/providers/fetch-models"),detectProtocol:C("/api/providers/detect-protocol")},vv={sendMessage:hi.sendMessage,responseStream:hi.responseStream,getAvailableAgents:re("/api/agents"),refreshCustomAgents:C("/api/agents/refresh"),testCustomAgent:C("/api/agents/custom/try-connect"),createCustomAgent:C("/api/agents/custom"),updateCustomAgent:$e(e=>`/api/agents/custom/${e.id}`,e=>{const{id:s,...l}=e;return l}),deleteCustomAgent:Ye(e=>`/api/agents/custom/${e.id}`),setAgentEnabled:Gn(e=>`/api/agents/${e.id}/enabled`,e=>({enabled:e.enabled})),checkAgentHealth:C("/api/agents/health-check"),checkProviderHealth:C("/api/agents/provider-health-check"),setMode:$e(e=>`/api/conversations/${e.conversation_id}/mode`,e=>({mode:e.mode})),getMode:re(e=>`/api/conversations/${e.conversation_id}/mode`,{silentStatuses:[404]}),getModel:re(e=>`/api/conversations/${e.conversation_id}/model`,{silentStatuses:[404]}),setModel:$e(e=>`/api/conversations/${e.conversation_id}/model`,e=>({model_id:e.model_id}))},gv={listServers:re("/api/mcp/servers"),createServer:C("/api/mcp/servers"),importServers:C("/api/mcp/servers/import"),updateServer:$e(e=>`/api/mcp/servers/${e.id}`,e=>e.data),deleteServer:Ye(e=>`/api/mcp/servers/${e.id}`),toggleServer:C(e=>`/api/mcp/servers/${e.id}/toggle`,()=>{}),batchImportServers:C("/api/mcp/servers/import"),getAgentMcpConfigs:re("/api/mcp/agent-configs"),testMcpConnection:C("/api/mcp/test-connection"),checkOAuthStatus:C("/api/mcp/oauth/check-status"),loginMcpOAuth:C("/api/mcp/oauth/login"),logoutMcpOAuth:C("/api/mcp/oauth/logout"),getAuthenticatedServers:re("/api/mcp/oauth/authenticated")},yv={sendMessage:hi.sendMessage,responseStream:hi.responseStream,getRuntime:re(e=>`/api/conversations/${e.conversation_id}/openclaw/runtime`)},_v={list:re("/api/remote-agents"),get:re(e=>`/api/remote-agents/${e.id}`),create:C("/api/remote-agents"),update:$e(e=>`/api/remote-agents/${e.id}`,e=>e.updates),delete:Ye(e=>`/api/remote-agents/${e.id}`),testConnection:C("/api/remote-agents/test-connection"),handshake:C(e=>`/api/remote-agents/${e.id}/handshake`)},kv={getConversationMessages:re(e=>`/api/conversations/${e.conversation_id}/messages?page=${e.page??1}&page_size=${e.page_size??50}${e.order?`&order=${e.order}`:""}${e.content_mode?`&content_mode=${e.content_mode}`:""}`),getConversationMessage:re(e=>`/api/conversations/${e.conversation_id}/messages/${encodeURIComponent(e.message_id)}`),getUserConversations:Re(re(e=>{const s=new URLSearchParams;e.cursor&&s.set("cursor",e.cursor),e.limit&&s.set("limit",String(e.limit));const l=s.toString();return`/api/conversations${l?`?${l}`:""}`}),qh),searchConversationMessages:Re(re(e=>`/api/messages/search?keyword=${encodeURIComponent(e.keyword)}&page=${e.page??1}&page_size=${e.page_size??50}`),zh)};function pc(e){return{...e,content_type:e.contentType,contentType:void 0}}const xv={list:C("/api/preview-history/list",e=>({target:pc(e.target)})),save:C("/api/preview-history/save",e=>({target:pc(e.target),content:e.content})),getContent:C("/api/preview-history/get-content",e=>({target:pc(e.target),snapshot_id:e.snapshot_id}))},wv={open:pe("preview.open")},Ov={convert:C("/api/document/convert")},Sv={start:C("/api/ppt-preview/start"),stop:C("/api/ppt-preview/stop"),status:pe("ppt-preview.status")},Pv={start:C("/api/word-preview/start"),stop:C("/api/word-preview/stop"),status:pe("word-preview.status")},Av={start:C("/api/excel-preview/start"),stop:C("/api/excel-preview/stop"),status:pe("excel-preview.status")},Ev={received:oe.bridge.buildEmitter("deep-link.received")},jv={minimize:oe.bridge.buildProvider("window-controls:minimize"),maximize:oe.bridge.buildProvider("window-controls:maximize"),unmaximize:oe.bridge.buildProvider("window-controls:unmaximize"),close:oe.bridge.buildProvider("window-controls:close"),isMaximized:oe.bridge.buildProvider("window-controls:is-maximized"),maximizedChanged:oe.bridge.buildEmitter("window-controls:maximized-changed")},ab={changed:oe.bridge.buildEmitter("theme:changed"),setActive:oe.bridge.buildProvider("theme:set-active"),requestCurrent:oe.bridge.buildProvider("theme:request-current")},Rv={getCloseToTray:oe.bridge.buildProvider("system-settings:get-close-to-tray"),setCloseToTray:oe.bridge.buildProvider("system-settings:set-close-to-tray"),getNotificationEnabled:re("/api/settings/client?key=notificationEnabled"),setNotificationEnabled:$e("/api/settings/client",e=>({notificationEnabled:e.enabled})),getCronNotificationEnabled:re("/api/settings/client?key=cronNotificationEnabled"),setCronNotificationEnabled:$e("/api/settings/client",e=>({cronNotificationEnabled:e.enabled})),getKeepAwake:re("/api/settings/client?key=keepAwake"),setKeepAwake:$e("/api/settings/client",e=>({keepAwake:e.enabled})),changeLanguage:Gn("/api/settings",e=>({language:e.language})),languageChanged:pe("system-settings:language-changed"),getSaveUploadToWorkspace:re("/api/settings/client?key=saveUploadToWorkspace"),setSaveUploadToWorkspace:$e("/api/settings/client",e=>({saveUploadToWorkspace:e.enabled})),getAutoPreviewOfficeFiles:re("/api/settings/client?key=autoPreviewOfficeFiles"),setAutoPreviewOfficeFiles:$e("/api/settings/client",e=>({autoPreviewOfficeFiles:e.enabled})),getPetEnabled:oe.bridge.buildProvider("system-settings:get-pet-enabled"),setPetEnabled:oe.bridge.buildProvider("system-settings:set-pet-enabled"),getPetSize:oe.bridge.buildProvider("system-settings:get-pet-size"),setPetSize:oe.bridge.buildProvider("system-settings:set-pet-size"),getPetDnd:oe.bridge.buildProvider("system-settings:get-pet-dnd"),setPetDnd:oe.bridge.buildProvider("system-settings:set-pet-dnd"),getPetConfirmEnabled:oe.bridge.buildProvider("system-settings:get-pet-confirm-enabled"),setPetConfirmEnabled:oe.bridge.buildProvider("system-settings:set-pet-confirm-enabled"),ensureNodeRuntime:C("/api/system/ensure-node-runtime"),ensureManagedAcpTool:C("/api/system/ensure-managed-acp-tool")},Cv={show:oe.bridge.buildProvider("notification.show"),clicked:oe.bridge.buildEmitter("notification.clicked")},Tv={stopAll:Ji("task.stopAll",{success:!0,count:0}),getRunningCount:Ji("task.getRunningCount",{success:!0,count:0})},Mv={getStatus:oe.bridge.buildProvider("webui.get-status"),start:oe.bridge.buildProvider("webui.start"),stop:oe.bridge.buildProvider("webui.stop"),statusChanged:oe.bridge.buildEmitter("webui.status-changed"),changePassword:C("/api/webui/change-password",e=>({new_password:e.newPassword})),changeUsername:C("/api/webui/change-username",e=>({new_username:e.newUsername})),resetPassword:C("/api/webui/reset-password"),generateQRToken:C("/api/webui/generate-qr-token")},qv={listJobs:re("/api/cron/jobs"),listJobsByConversation:re(e=>`/api/cron/jobs?conversation_id=${encodeURIComponent(e.conversation_id)}`),getJob:re(e=>`/api/cron/jobs/${e.job_id}`),addJob:C("/api/cron/jobs"),updateJob:$e(e=>`/api/cron/jobs/${e.job_id}`,e=>({name:e.updates.name,description:e.updates.description,enabled:e.updates.enabled,schedule:e.updates.schedule,message:e.updates.target?.payload.text,execution_mode:e.updates.target?.execution_mode,agent_config:e.updates.metadata?.agent_config,conversation_title:e.updates.metadata?.conversation_title,max_retries:e.updates.state?.max_retries})),removeJob:Ye(e=>`/api/cron/jobs/${e.job_id}`),runNow:C(e=>`/api/cron/jobs/${e.job_id}/run`),saveSkill:C(e=>`/api/cron/jobs/${e.job_id}/skill`,e=>({content:e.content})),hasSkill:Re(re(e=>`/api/cron/jobs/${e.job_id}/skill`),e=>!!e?.has_skill),deleteSkill:Ye(e=>`/api/cron/jobs/${e.job_id}/skill`),onJobCreated:pe("cron.job-created"),onJobUpdated:pe("cron.job-updated"),onJobRemoved:pe("cron.job-removed"),onJobExecuted:pe("cron.job-executed")},Iv={getThemes:re("/api/extensions/themes"),getLoadedExtensions:re("/api/extensions"),getAssistants:re("/api/extensions/assistants"),getAgents:re("/api/extensions/agents"),getAcpAdapters:re("/api/extensions/acp-adapters"),getMcpServers:re("/api/extensions/mcp-servers"),getSkills:re("/api/extensions/skills"),getSettingsTabs:re("/api/extensions/settings-tabs"),getWebuiContributions:re("/api/extensions/webui"),getAgentActivitySnapshot:re("/api/extensions/agent-activity"),getExtI18nForLocale:C("/api/extensions/i18n"),enableExtension:C("/api/extensions/enable"),disableExtension:C("/api/extensions/disable"),getPermissions:C("/api/extensions/permissions"),getRiskLevel:C("/api/extensions/risk-level"),stateChanged:pe("extensions.state-changed")};function af(e){return{id:e.plugin_id??e.id,type:e.type??e.plugin_type,name:e.name,enabled:e.enabled,connected:e.connected??!1,status:e.status,last_connected:e.last_connected,activeUsers:e.active_users??0,botUsername:e.bot_username,hasToken:e.has_token??!1,isExtension:e.is_extension,extensionMeta:e.extension_meta}}function of(e){return{code:e.code,platformUserId:e.platform_user_id,platformType:e.platform_type,display_name:e.display_name,requestedAt:e.requested_at,expiresAt:e.expires_at}}function sf(e){return{id:e.id,platformUserId:e.platform_user_id,platformType:e.platform_type,display_name:e.display_name,authorizedAt:e.authorized_at,lastActive:e.last_active,session_id:e.session_id}}function Fv(e){return{id:e.id,user_id:e.user_id,agent_type:e.agent_type,conversation_id:e.conversation_id,workspace:e.workspace,chatId:e.chat_id,created_at:e.created_at,lastActivity:e.last_activity}}const Lv={getPluginStatus:Re(re("/api/channel/plugins"),e=>e.map(af)),enablePlugin:C("/api/channel/plugins/enable"),disablePlugin:C("/api/channel/plugins/disable"),testPlugin:C("/api/channel/plugins/test"),getPendingPairings:Re(re("/api/channel/pairings"),e=>e.map(of)),approvePairing:C("/api/channel/pairings/approve"),rejectPairing:C("/api/channel/pairings/reject"),getAuthorizedUsers:Re(re("/api/channel/users"),e=>e.map(sf)),revokeUser:C("/api/channel/users/revoke"),getActiveSessions:Re(re("/api/channel/sessions"),e=>e.map(Fv)),syncChannelSettings:C("/api/channel/settings/sync"),pairingRequested:Yi("channel.pairing-requested",e=>of(e)),pluginStatusChanged:Yi("channel.plugin-status-changed",e=>{const s=e;return{plugin_id:s.plugin_id,status:af(s.status)}}),userAuthorized:Yi("channel.user-authorized",e=>sf(e))},zv={getExtensionList:re("/api/hub/extensions"),install:C("/api/hub/install"),uninstall:C("/api/hub/uninstall"),retryInstall:C("/api/hub/retry-install"),checkUpdates:C("/api/hub/check-updates"),update:C("/api/hub/update"),onStateChanged:pe("hub.state-changed")},Wv={create:Re(C("/api/teams",e=>({name:e.name,agents:e.agents.map(rf),...e.workspace?{workspace:e.workspace}:{}})),Tc),list:Re(re(e=>`/api/teams?user_id=${encodeURIComponent(e.user_id)}`),Yh),get:Re(re(e=>`/api/teams/${e.id}`),Jh),remove:Ye(e=>`/api/teams/${e.id}`),addAgent:Re(C(e=>`/api/teams/${e.team_id}/agents`,e=>rf(e.agent)),tb),removeAgent:Ye(e=>`/api/teams/${e.team_id}/agents/${e.slot_id}`),stop:Ye(e=>`/api/teams/${e.team_id}/session`),ensureSession:C(e=>`/api/teams/${e.team_id}/session`),renameAgent:Gn(e=>`/api/teams/${e.team_id}/agents/${e.slot_id}/name`,e=>({name:e.new_name})),renameTeam:Gn(e=>`/api/teams/${e.id}/name`,e=>({name:e.name})),setSessionMode:C(e=>`/api/teams/${e.team_id}/session-mode`,e=>({mode:e.session_mode})),sendMessage:C(e=>`/api/teams/${e.team_id}/messages`,e=>({content:e.input,files:e.files})),sendMessageToAgent:C(e=>`/api/teams/${e.team_id}/agents/${e.slot_id}/messages`,e=>({content:e.input,files:e.files})),cancelRun:C(e=>`/api/teams/${e.team_id}/runs/${e.team_run_id}/cancel`,e=>({target_slot_id:e.target_slot_id,reason:e.reason})),cancelChildTurn:C(e=>`/api/teams/${e.team_id}/runs/${e.team_run_id}/agents/${e.slot_id}/cancel`,e=>({reason:e.reason})),agentStatusChanged:pe("team.agentStatusChanged"),agentSpawned:pe("team.agentSpawned"),agentRemoved:pe("team.agentRemoved"),agentRenamed:pe("team.agentRenamed"),listChanged:pe("team.listChanged"),created:pe("team.created"),removed:pe("team.removed"),renamed:pe("team.renamed"),teammateMessage:pe("team.teammateMessage"),mcpStatus:pe("team.mcpStatus"),taskChanged:pe("team.taskChanged"),sessionChanged:pe("team.sessionChanged"),runAccepted:pe("team.runAccepted"),runStarted:pe("team.runStarted"),runUpdated:pe("team.runUpdated"),runCompleted:pe("team.runCompleted"),runCancelled:pe("team.runCancelled"),runFailed:pe("team.runFailed"),childTurnStarted:pe("team.childTurnStarted"),childTurnCompleted:pe("team.childTurnCompleted"),childTurnCancelled:pe("team.childTurnCancelled")},fg=Object.freeze(Object.defineProperty({__proto__:null,acpConversation:vv,application:tv,assistants:rv,autoUpdate:ov,bedrock:mv,channel:Lv,conversation:hi,cron:qv,database:kv,deepLink:Ev,dialog:sv,document:Ov,excelPreview:Av,extensions:Iv,fileSnapshot:pv,fileStream:dv,fileWatch:uv,fs:cv,google:bv,googleAuth:fv,hub:zv,mcpService:gv,mode:hv,notification:Cv,openclawConversation:yv,pptPreview:Sv,preview:wv,previewHistory:xv,remoteAgent:_v,runtime:nv,shell:ev,starOffice:iv,systemSettings:Rv,task:Tv,team:Wv,theme:ab,update:av,webui:Mv,windowControls:jv,wordPreview:Pv,workspaceOfficeWatch:lv},Symbol.toStringTag,{value:"Module"}));/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */const hc="light",ob="dark",Nv="system";/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */function Uv(e,s,l){const c=e===Nv?l?ob:hc:e;return s.find(i=>i.id===c)??s.find(i=>i.id===hc)??s[0]}const Bv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABwCAYAAAC3tFqQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1YSURBVHgB7Z17TFRXHsd/MyBUBETxxcOIYnnERWDFtvgsPjY0tOpmxT50U9PYx6rpYk3VrK5F3ZpqsrYmmNXGNG3drruRpLpoa9ZH/cNKF0VYrWlXcaHaWuiCpTxFgdv7PcMZ7gwzPGZgmLn390lO7r1zzsy9A9/zu9/zO/feMZEdF0uuPk5kWtzeblpCpMQQw3gZJpOplBSltM3sty09NbHCpk6ulJSUhz2gxjfqfqrP+fvfDtGJ40fp+zt3iGG8jYfjEiguPoFefOl3FBkd9c4QGrYtNXVirbUBxFx0+cuSP+a+qYSEhCrqS1y4eH0JCQlR1q3fqBRdvlYCDZOkqOTLt9et3+RTX4YLF1kQiKFhdZ1MhSVfxVR9e6v8t89lU319HTGMr6FGavq44F80bFhwhtmvve2Ng+/+hcXM+Cz19fX0j8OHyM9sWmJWFEq5fv3rLo3i1PJZR3nJwYc8O1+tU4N8wU6ip2Z0rQ94Vu056puDC4j84ohhBpTjBcfgPxab/l38pfLotF90aaDqkCI028+p5XrHekiQRcyS+iaiRZstS2COVIX8z856pV6tyyCGGVBULZPZWWWw3XaIdn2oXV2Q7bbJ/s0M4yGcCvpdzToic7Fm+04N0eEzndtYl9EZtKlvaL/euX3/MDGMZ4DlICfpENU5KHHdpEumxan10c7r/aeRovrnQU3pcDFOgZb9qRt6micsvt59fWsxMYxHMRPD6AgWNKMrWNCMrmBBM7qCBc3oChY0oytY0IyuYEEzuoIFzegKFjSjK1jQjK5gQfswZrMZt/QT04k/MT5Le3s7MbZwhGZ0BQua0RUsaEZXsKA9AA/ePAcLeoCBkOfOnUuLFy+mIUOGEDOwcJZjgImIiKBdu3aJJbISJ06coLa2NmIGiO5ukuXiXhkxYoTy3nvvKS0tLYoqZqW4uFhJT0/3qe/gSwVaFpYjPimD/IcEEtN/wGosX76cnn76aQoICBDbSUlJtG7dOgoPDyem/4B2oWEgBD0uKp6mzVhKDw0NIcZ9MAhcsGABrV69moKCgqiiooLKysrE61lZWfTCCy+Qvz+7vf4Amk1+ZJHQMDDbVwSHjiLGPeLj42nbtm2UkJBAdXV1tHXrVsrJyaHy8nIh8Ndff51mz54tBM64TnBouEWzIZ1nPJu/KESNSB0dM5UY1wgLC6MNGzZQWloaKYpC+/fvpyNHjtCnn35KGzdupFu3btHo0aNpz549NGHCBGJcIyomSdVqdhdX4TBExCbMoNjEGeyrXWDFihW0bNkyYSmOHTtG+/bto3v37okMR0FBAeXm5lJTUxNNmTKFtmzZwn66j0CTsYkzaXLCTIf1Ts950ROmsq/uI8nJybR+/XoKDAyk48ePi/Xbt29b6x88eED5+fn0wQcfiG0MGFetWiUGjUzPWB3EhCSnbfx7+oBH5y6nm19foG8rrhDjHD8/P+GZT58+TXfv3qVDhw6JwSBsh/TKWMfDuRGZa2tracyYMUL8iOb3798nxjmwGDGT09S/VfeuQTwfesPmPOqJyu/+S9+UXaJ7zfXEOAaiRoFwEY3ByJEjaffu3cIvb968mYqKisTrmDWU0+Foi/cwXUFQRUoubGRkj213v7m29zOFSIvgQyFqiJvpCmYA7WcBo6OjKSMjgyIjIykxMZEuXrxoI3jGOaPGTlTF/HiPUVlLn5KhsrcM7xC20aM1oiwmStQZQPr888/F4M8e2I4DBw5QaGgonTt3zmkkxqQLctSffPIJXblibHvXl6hsj0vZfRmtv/vmqqG9NQS9aNEiMYGSl5dHBw8eFN5YC/LQe/fuFT5anQJ3+Bm4eGn79u1C9JcuXSIj01uv7AyXM/voRUjvYdBo1EwI0m8rV64UNmLTpk0izwxbYX9VHYTc3Nxsc8sUBA5/vWbNGjGAxMBwx44dItIbEQRITJIgHeeqmIHfiy+vzj11tohcBXlBTMRA1I31NdTaaqzR+o8//ihEiNTbM888Q/PmzaPx48dTY2MjVVZWdrEYGAhOmjRJXE66c+dOys7OpjNnztCrr75KhYWFhst2QD8T4x+juClz3A6MC+c/0vssR2+Ap5bZEKOBKe0nnniCMjMzac6cOSJKw1tfu3ZN2I7q6mqRpsO0+PTp08WEyo0bN0R0xixiVVWVoTIdEHKUmk+OVi2GOxFZS5+yHL0BPQz+Bx7baNkQ2A/MDGJQl5KSQkuWLBHCxoxgcHCwsBuIvshRX716lQ4fPixSePDcra2tZCSgjwmqTgbCqg7IJV9ylIqDNpKwIUwUWIfLly+LqD18+HCKjY0V0RdRGDYE2RB0AKPlnuGToQlXshe9ZUCvYTSqsAEGgijw2EjdGRlPCFnikYtyjSxsIwNrMbYjxespPHqVub2wq3+ooNYHLcToh4EY7PVp/zQIWIWtZkVq797xqllHpNX4uoq+g/8povFgCVkyqPcB4Y+A0xIKhI2Zx+qqchpMfEnMmJzB8Q7mMXvSH/cGr7mxDX8QlHteGLW9lcF6WKO3RGNHeN2dmvZRu0odQGLJ4h5c4I3HRcVR+JiJXhONHeHVtx7LqA1Y3J7HV0SsxWfupWdxdzKQA1ecIUeNjfEpEWvxyYdDaMXdUF9DP6nCxmASAmf6BqIwHgOAi+nDx8T4/JWTPv+0E/wzUKI6bpyEqGt+KKeGuhrdCtyd6CwFjGdaIApj6W0DO3fQ3eN7tNEbQNS4rBXLhrpqtyyKvAfQk2kyd+0FIi4eHoS/ybAOIetJwPbo/nlUUuAygre2tojoDZsCuwKBQ+i9YTDyvX3ZJ8SL7woBB4r1CF2L1xGGe8Aa/sH2URxIcTd2RHFt8SZkxPX3DxBLP3WJ78LPT7HATwzsQHrxUerAyB4pbNyNg2tPWsR6i7p+3yp4WWe/7gx4WYhSu965DBAdD1EWr0GseJ1F2zMs6F4AIbGYfAN+/CWjK1jQjK5gQTO6ggXN6AoWNKMrWNCMrmBBM7qCBc3oChY0oysMP1M4OTaagocNFeulV244bbd0SYbaLojyj35GDY1N5AlSpj4slmU3v3O6z3Fjw9UyUq1vVtt9K17DcWYufJQaGprp5OkvyEgYWtAQw8G8zdbtnI17HIo6c+FjtPblZWIdYsl79wh54tje2fVat8cFVi7PUo8vXa2/rrZ72/Laiiy1A84T6+gI5wuN8wxvQ1sOGQGt20lxDtsh0lnXm5rJ29EeL5GJjIShI/TK5U+K5clThSLKLf31fHr/oxNd2p0v/A+9tedDYU3yj54lb+f9j45T5Q81qrCbxLEbCcMKOmVqnDitg/xjZ2nWjGRhJxC17U/vFo+tiNM32tj7WXzOrPSpNHnSeBEdy/53m0qv3qDKqhqbdrAu4PyFKxQcPJSWLp4nlmgHr2vf3lUs30sRn200DCvozAUd4lIjGAZTJ099IXwnonbOlbdt2gYHB9Gm154X6zlVtn4W7eFZ7YE4t+zYbx2oAfkZJ5MsZwQtK1c8SW/9+UNV2IXkLhC0dV+njDUoNKSHRsRFRAbnL1hOyfLUjMiNKNwbEHGlmGFFtmzfLwrELAd18ixg+750YXPQFlZGRua1r2QT4x6GFLS0F0h1yYiILIG0EkjR9QatB887cER0CpRVa94UIkXHga2wB+0hZLSV6wDtHXUApvcYUtCZCyyn+/MXSm1ez//4M7GU0bs77D24FnQUOXjM/FV6l/faD9TKbnb+HjhyyozrGM5DQ4QQowR5XMnk2CjLUh3cORoc2n5Op/C0PlkibYSctNFiP6hEB2D6B8MJWitg+4GZllmPpXQraE/SnaeXddwpLBhO0DI6ny8sdZijxeQKhA6rgJy0sylnrdgdRfNZ6RbbghSeKyDCyzTh5EnRTvPJmLoX+7np2n70hqE8NEQmfW/egXyR0rIvGNwBWAWZN3YEBIeBJFj70jKbKIp9yOgvfbkryPdiwkemGSXY39qXs63fx2jXbDjDUBFaGzWdTWLg1A2hIpKjfXczg7im451d60SUPLjvD1aBy0GlyG+7kVfOP3pGdCqRV17/vMhVW7InQTRu3EhrJxIzg/00KePrGEbQfYmaECEErc1kOAKCXbVmJ/1p6yvCFmg9OTrC+389Qe6AzoULjuD70UksV9aF2+wf++mPyRi90K8/jWxkpNjgeysr7w7IJaba7AwiMkdlW/r9p5GNjCcEJi0N4xy+Y4XRFSxoRlewoBldwYJmdAULmtEVLGhGV7CgGV3BgmZ0BQua0RUsaEZXsKAZXcGCZnQFC5rRFSxoRlewoBldYVbIVDFiRCgxjC8TGTEKD1otVSN0+7G01ARiGF8mMmI0mRRV0Eo7HZ01M5mGPhRIDOOLQLsL5z9CbWa/beb06UnnHgoM2PtU1ixiGF8EYg4bHrI3PTWxQgwKA/1ac9OmJZYuyprNkZrxGaDVZb+ZT7NnJpcG+g3LxWvW3ysoKSkJa2nzz62tbfj9qbNFdOf7/6ulmhjG20ASI+2XCTR7RjIFBgbuhZhTUyfWoq7LD3AUlnwVY257kEtmczIplEIM43WYKkxqMqNNHf/BMmtrfgYpZBlCEo9IfAAAAABJRU5ErkJggg==",Dv=""+new URL("misaka-mikoto-theme-Dpit7WIR.png",import.meta.url).href,Vv=""+new URL("hello-kitty-D-kfmBoX.png",import.meta.url).href,Gv=""+new URL("retro-windows-DXRiLN5o.png",import.meta.url).href,Hv=""+new URL("y2k-ledger-cover-DFTue_rd.png",import.meta.url).href,Yv=""+new URL("obsidian-book-cover-CUYTvHZx.png",import.meta.url).href,Jv=`/* Misaka Mikoto Theme - 御坂美琴主题 (优化版) */ /* 参考《科学超电磁炮》配色风格 */ :root { /* ========== 核心颜色变量 ========== */ /* 主色调 - Tokiwadai Blue & Electric Blue */ --color-primary-base: #1e3a8a; --color-primary: var(--color-primary-base); --primary: var(--color-primary-base); --color-primary-light-1: #3b82f6; --color-primary-light-2: #60a5fa; --color-primary-light-3: #93c5fd; --color-primary-dark-1: #1e40af; --primary-rgb: 30, 58, 138; /* 品牌色 - 使用变量引用减少重复 */ --brand: var(--color-primary-base); --brand-light: #dbeafe; --brand-hover: var(--color-primary-light-1); --color-brand-fill: var(--color-primary-base); --color-brand-bg: #dbeafe; /* AOU 品牌色板 - 蓝色系渐变(常盘台校服色) */ --aou-1: #eff6ff; --aou-2: #dbeafe; --aou-3: #bfdbfe; --aou-4: #93c5fd; --aou-5: #60a5fa; --aou-6: #3b82f6; --aou-7: #2563eb; --aou-8: #1e40af; --aou-9: #1e3a8a; --aou-10: #172554; /* 背景色 - 完整定义以兼容所有组件 */ --bg-base-color: #f0f9ff; --bg-base: #ffffff; --bg-1: var(--bg-base-color); --bg-2: #ffffff; --bg-3: #e0f2fe; --bg-4: #bae6fd; --bg-5: #93c5fd; --bg-6: #60a5fa; --bg-8: #3b82f6; --bg-9: #1e3a8a; --bg-10: #172554; --color-bg-1: var(--bg-base-color); --color-bg-2: #ffffff; --color-bg-3: #e0f2fe; --color-bg-4: #bae6fd; --bg-hover: #e0f2fe; --bg-active: #bae6fd; --fill: var(--bg-base-color); --color-fill: var(--bg-base-color); --fill-0: #ffffff; --fill-white-to-black: #ffffff; --color-fill-2: #e0f2fe; --color-fill-3: #bae6fd; /* 文字色 - 完整定义 */ --text-base-color: #1e293b; --text-0: #000000; --text-primary: var(--text-base-color); --text-secondary: #475569; --text-disabled: #94a3b8; --text-white: #ffffff; --color-text-1: var(--text-base-color); --color-text-2: #475569; --color-text-3: #94a3b8; --color-text-4: #cbd5e1; /* 边框色 - 完整定义 */ --border-base-color: #93c5fd; --border-base: var(--border-base-color); --border-light: #bfdbfe; --border-special: #93c5fd; --color-border: var(--border-base-color); --color-border-1: var(--border-base-color); --color-border-2: #bfdbfe; --color-border-3: #dbeafe; --color-border-4: #eff6ff; /* 语义色 */ --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --info: var(--color-primary-light-1); /* 消息背景色 */ --message-user-bg: #dbeafe; --message-tips-bg: var(--bg-base-color); --workspace-btn-bg: #e0f2fe; /* 对话框颜色 */ --dialog-fill-0: rgba(255, 255, 255, 0.9); /* ========== 动画变量 ========== */ --transition-duration: 0.3s; --transition-timing: ease; /* ========== 渐变背景 ========== */ --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); --gradient-primary-hover: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); } /* ========== 全局样式 ========== */ body { font-family: 'Inter', 'SF Pro Display', 'Segoe UI', 'Microsoft YaHei', sans-serif; background-color: var(--bg-1); } html { background-color: var(--bg-1); } /* ========== 布局样式 ========== */ .arco-layout, [class*='layout'] { background-color: var(--bg-1); } .arco-layout-content { background-color: var(--bg-1); } /* ========== 侧边栏 ========== */ .layout-sider { background-color: #e0f2fe; border-right: 2px solid var(--border-base-color); position: relative; z-index: 100; } .layout-sider-header { background: var(--gradient-primary); color: white; box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3); } .layout-sider svg, .layout-sider-header svg { fill: none; stroke: rgba(255, 255, 255, 0.9); color: rgba(255, 255, 255, 0.9); transition: stroke var(--transition-duration) var(--transition-timing); } .layout-sider-header svg:hover { fill: none; stroke: white; color: white; } /* ========== 图标样式 - 简化选择器 ========== */ /* 全局图标默认颜色 */ .theme-icon svg, svg:not([class*='model'] svg):not([class*='Model'] svg) { fill: none; stroke: var(--color-primary-base); color: var(--color-primary-base); transition: stroke var(--transition-duration) var(--transition-timing), color var(--transition-duration) var(--transition-timing); } .theme-icon svg:hover, svg:not([class*='model'] svg):not([class*='Model'] svg):hover { fill: none; stroke: var(--color-primary-light-1); color: var(--color-primary-light-1); } /* 按钮内图标 */ button:not([class*='model']) svg, .arco-btn:not([class*='model']) svg { fill: none; stroke: var(--color-primary-base); color: var(--color-primary-base); transition: stroke var(--transition-duration) var(--transition-timing); } button:not([class*='model']) svg:hover, .arco-btn:not([class*='model']) svg:hover { fill: none; stroke: var(--color-primary-light-1); color: var(--color-primary-light-1); } /* 主要按钮内的图标为白色 */ .arco-btn-primary svg { stroke: white; color: white; } /* ========== 背景图片设置 ========== */ .layout-content.bg-1 { background-color: var(--bg-1); position: relative; } /* 半透明遮罩层 */ .layout-content.bg-1::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( 135deg, rgba(240, 249, 255, 0.75) 0%, rgba(224, 242, 254, 0.8) 50%, rgba(240, 249, 255, 0.75) 100% ); z-index: 0; pointer-events: none; } /* 聊天页面背景图 */ .chat-layout-header, [class*='chat-layout'] .arco-layout-content, [class*='conversation'] .arco-layout-content { position: relative; } [class*='chat-layout'] .arco-layout-content::before, [class*='conversation'] .arco-layout-content::before { content: ''; position: absolute; inset: 0; background: transparent; opacity: 0; z-index: 0; pointer-events: none; } /* 确保内容在背景之上 */ .layout-content.bg-1 > *, [class*='chat-layout'] .arco-layout-content > *, [class*='conversation'] .arco-layout-content > * { position: relative; z-index: 1; } /* ========== 输入框和发送框 ========== */ .guidLayout, [class*='guid'] { position: relative; z-index: 10; } .guidInputCard { background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); border: 2px solid var(--border-base-color); border-radius: 16px; box-shadow: 0 2px 20px rgba(30, 58, 138, 0.1); } .guidInputCard textarea, [class*='guidInputCard'] textarea { background-color: rgba(255, 255, 255, 0.98); color: var(--color-text-1); } /* 发送框样式 */ .sendbox-container:not([class*='model']):not([class*='Model']), [class*='sendbox']:not([class*='input']):not([class*='textarea']):not([class*='model']):not([class*='Model']):not( [class*='tools'] ) { border-radius: 16px; border: 2px solid var(--border-base-color); background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(30, 58, 138, 0.15); transition: all var(--transition-duration) var(--transition-timing); } .sendbox-container textarea, [class*='sendbox'] textarea { border: none; background: transparent; } .sendbox-container:focus-within, [class*='sendbox']:focus-within { border-color: var(--color-primary-light-1); box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3); } .sendbox-container svg:not([class*='model'] svg), [class*='sendbox']:not([class*='model']) svg { fill: none; stroke: var(--color-primary-base); color: var(--color-primary-base); transition: stroke var(--transition-duration) var(--transition-timing); } .sendbox-container svg:not([class*='model'] svg):hover, [class*='sendbox']:not([class*='model']) svg:hover { fill: none; stroke: var(--color-primary-light-1); color: var(--color-primary-light-1); transform: scale(1.1); } /* ========== 消息气泡 ========== */ .message-item.user .message-bubble, [class*='message'][class*='user'] .message-content { background: var(--gradient-primary); color: white; border-radius: 16px 16px 4px 16px; border: none; box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3); padding: 12px 16px; } .message-item.ai .message-bubble, [class*='message'][class*='ai'] .message-content, [class*='message'][class*='assistant'] .message-content { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 2px solid #bfdbfe; border-radius: 16px 16px 16px 4px; box-shadow: 0 4px 16px rgba(30, 58, 138, 0.15); padding: 12px 16px; } /* 工具调用相关样式 */ .message-item.ai .arco-alert, [class*='message'][class*='ai'] .arco-alert, [class*='message'][class*='assistant'] .arco-alert, .message-item.ai [class*='alert'], [class*='message'][class*='ai'] [class*='alert'], [class*='message'][class*='assistant'] [class*='alert'] { background-color: rgba(255, 255, 255, 0.6); border: 1px solid #bfdbfe; border-radius: 8px; margin: 4px 0; } .message-item.ai .arco-card, [class*='message'][class*='ai'] .arco-card, [class*='message'][class*='assistant'] .arco-card, .message-item.ai [class*='card'], [class*='message'][class*='ai'] [class*='card'], [class*='message'][class*='assistant'] [class*='card'] { background-color: rgba(255, 255, 255, 0.6); border: 1px solid #bfdbfe; border-radius: 8px; margin: 4px 0; } .message-item.ai [class*='status']:not([class*='message']):not([class*='bubble']), [class*='message'][class*='ai'] [class*='status']:not([class*='message']):not([class*='bubble']) { background-color: rgba(255, 255, 255, 0.8); border: 1px solid #bfdbfe; border-radius: 6px; padding: 2px 6px; } /* ========== 按钮样式 ========== */ .arco-btn-primary:not([class*='icon']):not([class*='circle']):not([class*='model']), button[type='primary']:not([class*='icon']):not([class*='circle']):not([class*='model']) { background: var(--gradient-primary); border-color: var(--color-primary-base); border-radius: 12px; font-weight: 600; color: white; transition: all var(--transition-duration) var(--transition-timing); } .arco-btn-primary:hover:not([class*='icon']):not([class*='circle']):not([class*='model']), button[type='primary']:hover:not([class*='icon']):not([class*='circle']):not([class*='model']) { background: var(--gradient-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); } .arco-btn-secondary:not([class*='model']) svg, button[type='secondary']:not([class*='model']) svg { fill: none; stroke: var(--color-primary-base); color: var(--color-primary-base); } .arco-btn-secondary:not([class*='model']) svg:hover, button[type='secondary']:not([class*='model']) svg:hover { fill: none; stroke: var(--color-primary-light-1); color: var(--color-primary-light-1); } /* ========== 滚动条 ========== */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; transition: background var(--transition-duration) var(--transition-timing); } ::-webkit-scrollbar-thumb:hover { background: var(--gradient-primary-hover); } *:hover::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); } *:hover::-webkit-scrollbar-thumb:hover { background: var(--gradient-primary-hover); } ::-webkit-scrollbar-track { background: transparent; border-radius: 4px; } /* ========== 选中和链接 ========== */ ::selection { background-color: var(--color-primary-light-1); color: white; } a:not([class*='button']):not([class*='btn']) { color: var(--color-primary-base); transition: color var(--transition-duration) var(--transition-timing); } a:hover:not([class*='button']):not([class*='btn']) { color: var(--color-primary-light-1); text-decoration: underline; } /* ========== Tooltip 和 Popover ========== */ .arco-tooltip-popup, .arco-popover-popup { pointer-events: none; } /* ========== 对话框 ========== */ .arco-modal-body { background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); } .arco-modal-header { background: var(--gradient-primary); color: white; border-bottom: 1px solid var(--color-primary-dark-1); } .arco-modal-footer { background-color: rgba(255, 255, 255, 0.8); border-top: 1px solid var(--border-base-color); } /* ========================================================= */ /* ==================== 深色模式 Dark Mode ================= */ /* ========================================================= */ [data-theme='dark'] { /* 主色调 */ --color-primary-base: #60a5fa; --color-primary: var(--color-primary-base); --primary: var(--color-primary-base); --color-primary-light-1: #93c5fd; --color-primary-light-2: #bfdbfe; --color-primary-light-3: #dbeafe; --color-primary-dark-1: #3b82f6; --primary-rgb: 96, 165, 250; /* 品牌色 */ --brand: var(--color-primary-base); --brand-light: #1e3a5a; --brand-hover: var(--color-primary-light-1); --color-brand-fill: var(--color-primary-base); --color-brand-bg: #1e3a5a; /* AOU 品牌色板 */ --aou-1: #0f1729; --aou-2: #1e2a47; --aou-3: #1e3a5a; --aou-4: #2d4a6f; --aou-5: #3d5a8f; --aou-6: #60a5fa; --aou-7: #93c5fd; --aou-8: #bfdbfe; --aou-9: #dbeafe; --aou-10: #eff6ff; /* 背景色 */ --bg-base-color: #0f1729; --color-bg-1: var(--bg-base-color); --bg-1: var(--bg-base-color); --color-bg-2: #1a2332; --bg-2: #1a2332; --color-bg-3: #1e3a5a; --bg-3: #1e3a5a; --color-bg-4: #2d4a6f; --bg-4: #2d4a6f; --bg-base: #0a0f1a; --bg-hover: #1a2332; --bg-active: #1e3a5a; --fill: var(--bg-base-color); --color-fill: var(--bg-base-color); /* 文字色 */ --text-base-color: #e0f2fe; --color-text-1: var(--text-base-color); --text-primary: var(--text-base-color); --color-text-2: #bfdbfe; --text-secondary: #bfdbfe; --color-text-3: #93c5fd; --text-disabled: #93c5fd; --text-0: #ffffff; /* 边框色 */ --border-base-color: #3d5a8f; --color-border: var(--border-base-color); --color-border-1: var(--border-base-color); --color-border-2: #2d4a6f; --border-base: var(--border-base-color); --border-light: #2d4a6f; /* 语义色 */ --success: #34d399; --warning: #fbbf24; --danger: #f87171; --info: var(--color-primary-base); /* 消息背景色 */ --message-user-bg: #2d4a6f; --message-tips-bg: #1e3a5a; --workspace-btn-bg: #1a2332; /* 对话框颜色 */ --dialog-fill-0: rgba(15, 23, 41, 0.95); /* 渐变 */ --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); --gradient-primary-hover: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%); } /* 深色模式侧边栏 */ [data-theme='dark'] .layout-sider { background: linear-gradient(180deg, #1e3a5a 0%, #1a2332 100%); border-right: 3px solid var(--color-primary-base); box-shadow: 4px 0 20px rgba(96, 165, 250, 0.2); } [data-theme='dark'] .layout-sider-header { background: var(--gradient-primary); box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4); border-bottom: 2px solid rgba(255, 255, 255, 0.2); } /* 深色模式图标 */ [data-theme='dark'] svg:not([class*='model'] svg), [data-theme='dark'] .theme-icon svg { stroke: var(--color-primary-base); color: var(--color-primary-base); } [data-theme='dark'] svg:not([class*='model'] svg):hover, [data-theme='dark'] .theme-icon svg:hover { stroke: var(--color-primary-light-1); color: var(--color-primary-light-1); filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.6)); } [data-theme='dark'] button:not([class*='model']) svg, [data-theme='dark'] .arco-btn:not([class*='model']) svg { stroke: var(--color-primary-base); color: var(--color-primary-base); } [data-theme='dark'] button:not([class*='model']) svg:hover, [data-theme='dark'] .arco-btn:not([class*='model']) svg:hover { stroke: var(--color-primary-light-1); color: var(--color-primary-light-1); filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.6)); } /* 深色模式背景图 */ [data-theme='dark'] .layout-content.bg-1::before { background: linear-gradient(135deg, rgba(15, 23, 41, 0.8) 0%, rgba(30, 58, 90, 0.85) 50%, rgba(15, 23, 41, 0.8) 100%); } [data-theme='dark'] [class*='chat-layout'] .arco-layout-content::before, [data-theme='dark'] [class*='conversation'] .arco-layout-content::before { opacity: 0.2; filter: brightness(1.1) saturate(1.3) hue-rotate(-10deg); } /* 深色模式输入框 */ [data-theme='dark'] .guidInputCard { background: linear-gradient(135deg, rgba(30, 58, 90, 0.9) 0%, rgba(45, 74, 111, 0.9) 100%); border: 3px solid var(--color-primary-base); box-shadow: 0 8px 32px rgba(96, 165, 250, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1); } [data-theme='dark'] .guidInputCard textarea, [data-theme='dark'] [class*='guidInputCard'] textarea { background-color: rgba(30, 58, 90, 0.8); color: var(--color-text-1); } [data-theme='dark'] .sendbox-container:not([class*='model']), [data-theme='dark'] [class*='sendbox']:not([class*='input']):not([class*='textarea']):not([class*='model']):not([class*='tools']) { border: 3px solid var(--color-primary-base); background: linear-gradient(135deg, rgba(30, 58, 90, 0.85) 0%, rgba(45, 74, 111, 0.85) 100%); box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); } [data-theme='dark'] .sendbox-container:focus-within, [data-theme='dark'] [class*='sendbox']:focus-within { border-color: var(--color-primary-light-1); box-shadow: 0 8px 32px rgba(147, 197, 253, 0.5), 0 0 20px rgba(96, 165, 250, 0.4); transform: translateY(-2px); } [data-theme='dark'] .sendbox-container svg:not([class*='model'] svg), [data-theme='dark'] [class*='sendbox']:not([class*='model']) svg { stroke: var(--color-primary-base); color: var(--color-primary-base); } [data-theme='dark'] .sendbox-container svg:not([class*='model'] svg):hover, [data-theme='dark'] [class*='sendbox']:not([class*='model']) svg:hover { stroke: var(--color-primary-light-1); color: var(--color-primary-light-1); filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.8)); } /* 深色模式消息气泡 */ [data-theme='dark'] .message-item.user .message-bubble, [data-theme='dark'] [class*='message'][class*='user'] .message-content { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%); box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5), 0 0 0 2px rgba(147, 197, 253, 0.3); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } [data-theme='dark'] .message-item.ai .message-bubble, [data-theme='dark'] [class*='message'][class*='ai'] .message-content, [data-theme='dark'] [class*='message'][class*='assistant'] .message-content { background: linear-gradient(135deg, rgba(30, 58, 90, 0.9) 0%, rgba(45, 74, 111, 0.9) 100%); border: 2px solid var(--border-base-color); box-shadow: 0 6px 20px rgba(96, 165, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); } [data-theme='dark'] .message-item.ai .arco-alert, [data-theme='dark'] [class*='message'][class*='ai'] .arco-alert, [data-theme='dark'] [class*='message'][class*='assistant'] .arco-alert, [data-theme='dark'] .message-item.ai [class*='alert'], [data-theme='dark'] [class*='message'][class*='ai'] [class*='alert'], [data-theme='dark'] [class*='message'][class*='assistant'] [class*='alert'] { background-color: rgba(30, 42, 71, 0.7); border: 1px solid var(--border-base-color); } [data-theme='dark'] .message-item.ai .arco-card, [data-theme='dark'] [class*='message'][class*='ai'] .arco-card, [data-theme='dark'] [class*='message'][class*='assistant'] .arco-card, [data-theme='dark'] .message-item.ai [class*='card'], [data-theme='dark'] [class*='message'][class*='ai'] [class*='card'], [data-theme='dark'] [class*='message'][class*='assistant'] [class*='card'] { background-color: rgba(30, 42, 71, 0.7); border: 1px solid var(--border-base-color); } [data-theme='dark'] .message-item.ai [class*='status']:not([class*='message']):not([class*='bubble']), [data-theme='dark'] [class*='message'][class*='ai'] [class*='status']:not([class*='message']):not([class*='bubble']) { background-color: rgba(30, 58, 90, 0.9); border: 1px solid var(--border-base-color); } /* 深色模式按钮 */ [data-theme='dark'] .arco-btn-primary:not([class*='icon']):not([class*='circle']):not([class*='model']), [data-theme='dark'] button[type='primary']:not([class*='icon']):not([class*='circle']):not([class*='model']) { background: var(--gradient-primary); border-color: var(--color-primary-dark-1); box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4); } [data-theme='dark'] .arco-btn-primary:hover:not([class*='icon']):not([class*='circle']):not([class*='model']), [data-theme='dark'] button[type='primary']:hover:not([class*='icon']):not([class*='circle']):not([class*='model']) { background: var(--gradient-primary-hover); box-shadow: 0 8px 24px rgba(147, 197, 253, 0.6), 0 0 20px rgba(96, 165, 250, 0.5); transform: translateY(-2px); } /* 深色模式滚动条 */ [data-theme='dark'] *:hover::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, 0.5); } [data-theme='dark'] *:hover::-webkit-scrollbar-thumb:hover { background: var(--gradient-primary-hover); box-shadow: 0 0 8px rgba(96, 165, 250, 0.6); } /* 深色模式选中文字 */ [data-theme='dark'] ::selection { background-color: var(--color-primary-dark-1); text-shadow: 0 0 4px rgba(59, 130, 246, 0.5); } /* 深色模式链接 */ [data-theme='dark'] a:not([class*='button']):not([class*='btn']) { color: var(--color-primary-base); text-decoration-color: rgba(96, 165, 250, 0.4); } [data-theme='dark'] a:hover:not([class*='button']):not([class*='btn']) { color: var(--color-primary-light-1); text-shadow: 0 0 8px rgba(147, 197, 253, 0.5); } /* 深色模式对话框 */ [data-theme='dark'] .arco-modal, [data-theme='dark'] .arco-modal-wrapper { color: var(--text-base-color); } [data-theme='dark'] .arco-modal-body { background: linear-gradient(135deg, rgba(30, 58, 90, 0.98) 0%, rgba(45, 74, 111, 0.98) 100%); backdrop-filter: blur(20px); color: var(--text-base-color); } [data-theme='dark'] .arco-modal-header { background: var(--gradient-primary); border-bottom: 2px solid rgba(255, 255, 255, 0.2); box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3); } [data-theme='dark'] .arco-modal-footer { background: linear-gradient(135deg, rgba(30, 58, 90, 0.98) 0%, rgba(45, 74, 111, 0.98) 100%); border-top: 2px solid var(--color-primary-base); } /* 深色模式表单 */ [data-theme='dark'] .arco-form-label, [data-theme='dark'] .arco-form-label-item, [data-theme='dark'] label { color: var(--color-text-2); } [data-theme='dark'] .arco-input, [data-theme='dark'] .arco-textarea, [data-theme='dark'] .arco-select-view, [data-theme='dark'] input:not([type='checkbox']):not([type='radio']):not([type='button']), [data-theme='dark'] textarea { background-color: rgba(30, 58, 90, 0.6); border: 2px solid var(--color-primary-base); color: var(--text-base-color); } [data-theme='dark'] .arco-input:hover, [data-theme='dark'] .arco-textarea:hover, [data-theme='dark'] input:not([type='checkbox']):not([type='radio']):hover, [data-theme='dark'] textarea:hover { background-color: rgba(45, 74, 111, 0.7); border-color: var(--color-primary-light-1); } [data-theme='dark'] .arco-input:focus, [data-theme='dark'] .arco-textarea:focus, [data-theme='dark'] input:not([type='checkbox']):not([type='radio']):focus, [data-theme='dark'] textarea:focus { background-color: rgba(45, 74, 111, 0.8); border-color: var(--color-primary-light-1); box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3); } [data-theme='dark'] .arco-input::placeholder, [data-theme='dark'] .arco-textarea::placeholder, [data-theme='dark'] input::placeholder, [data-theme='dark'] textarea::placeholder { color: var(--color-text-3); opacity: 0.5; } /* 深色模式开关 */ [data-theme='dark'] .arco-switch { background-color: var(--border-base-color); } [data-theme='dark'] .arco-switch-checked { background-color: var(--color-primary-base); } /* 深色模式文字 */ [data-theme='dark'] .arco-typography, [data-theme='dark'] p, [data-theme='dark'] span:not([class*='icon']) { color: var(--color-text-2); } /* 深色模式分割线 */ [data-theme='dark'] .arco-divider { border-color: var(--color-primary-base); opacity: 0.3; } `,Kv=`/* ======================================== Hello Kitty 主题 - 优化版 粉色系可爱风格,支持明暗双模式 ======================================== */ /* ==================== 明亮模式 (Light Mode) ==================== */ :root { /* ===== 主色调 - Primary ===== */ --hk-primary: #ff85a2; --hk-primary-light: #ffb7c5; --hk-primary-lighter: #ffe4e8; --hk-primary-lightest: #fff0f3; --hk-primary-dark: #e06b88; --hk-primary-darker: #c95a75; --hk-primary-rgb: 255, 133, 162; /* ===== 品牌色板渐变 ===== */ --hk-shade-1: #fff0f3; --hk-shade-2: #ffe4e8; --hk-shade-3: #ffcad4; --hk-shade-4: #ffb7c5; --hk-shade-5: #ff9db6; --hk-shade-6: #ff85a2; --hk-shade-7: #e06b88; --hk-shade-8: #c95a75; --hk-shade-9: #a84a62; --hk-shade-10: #8c3d4f; /* ===== 背景色 ===== */ --hk-bg-base: #ffffff; --hk-bg-1: #fff0f3; --hk-bg-2: #ffffff; --hk-bg-3: #ffe4e8; --hk-bg-4: #ffb7c5; --hk-bg-hover: #ffe4e8; --hk-bg-active: #ffcad4; /* ===== 文字色 ===== */ --hk-text-primary: #5a3e45; --hk-text-secondary: #8c6b74; --hk-text-tertiary: #bfa5ac; --hk-text-disabled: #d4c0c6; --hk-text-inverse: #ffffff; /* ===== 边框色 ===== */ --hk-border-base: #ffcad4; --hk-border-light: #ffe4e8; --hk-border-strong: #ffb7c5; /* ===== 语义色 ===== */ --hk-success: #52c41a; --hk-warning: #faad14; --hk-error: #f5222d; --hk-info: #ff85a2; /* ===== 阴影 ===== */ --hk-shadow-sm: 0 2px 8px rgba(255, 133, 162, 0.15); --hk-shadow-md: 0 4px 16px rgba(255, 133, 162, 0.2); --hk-shadow-lg: 0 8px 24px rgba(255, 133, 162, 0.25); --hk-shadow-glow: 0 0 20px rgba(255, 133, 162, 0.3); /* ===== 渐变 ===== */ --hk-gradient-primary: linear-gradient(135deg, #ff85a2 0%, #ff9db6 100%); --hk-gradient-light: linear-gradient(135deg, #fff0f3 0%, #ffe4e8 100%); --hk-gradient-button: linear-gradient(135deg, #ff85a2 0%, #ffb7c5 100%); /* ===== 映射到系统变量 ===== */ --color-primary: var(--hk-primary); --primary: var(--hk-primary); --brand: var(--hk-primary); --color-bg-1: var(--hk-bg-1); --bg-1: var(--hk-bg-1); --color-bg-2: var(--hk-bg-2); --bg-2: var(--hk-bg-2); --color-text-1: var(--hk-text-primary); --text-primary: var(--hk-text-primary); --color-text-2: var(--hk-text-secondary); --text-secondary: var(--hk-text-secondary); --color-border: var(--hk-border-base); --border-base: var(--hk-border-base); --success: var(--hk-success); --warning: var(--hk-warning); --danger: var(--hk-error); --info: var(--hk-info); } /* ===== 字体设置 ===== */ body { font-family: 'Varela Round', 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ===== 全局背景 ===== */ body, html { background-color: var(--hk-bg-1); color: var(--hk-text-primary); } .arco-layout, [class*='layout'] { background-color: var(--hk-bg-1); } .arco-layout-content { background-color: var(--hk-bg-1); } /* ===== 背景图设置 ===== */ .layout-content.bg-1 { position: relative; background-color: var(--hk-bg-1); } /* 半透明遮罩层 */ .layout-content.bg-1::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( 135deg, rgba(240, 249, 255, 0.75) 0%, rgba(224, 242, 254, 0.8) 50%, rgba(240, 249, 255, 0.75) 100% ); z-index: 0; pointer-events: none; } .layout-content.bg-1 > * { position: relative; z-index: 1; } /* 聊天页面背景 */ [class*='chat-layout'] .arco-layout-content, [class*='conversation'] .arco-layout-content { position: relative; } [class*='chat-layout'] .arco-layout-content::before, [class*='conversation'] .arco-layout-content::before { content: ''; position: absolute; inset: 0; background: transparent; opacity: 0; z-index: 0; pointer-events: none; } [class*='chat-layout'] .arco-layout-content > *, [class*='conversation'] .arco-layout-content > * { position: relative; z-index: 1; } /* ==================== 侧边栏 Sidebar ==================== */ .layout-sider { background-color: var(--hk-bg-1); border-right: 2px solid var(--hk-border-strong); } .layout-sider-header { background: var(--hk-gradient-primary); color: var(--hk-text-inverse); box-shadow: var(--hk-shadow-sm); border-bottom: 1px solid rgba(255, 255, 255, 0.2); } /* 侧边栏图标 */ .layout-sider-header svg { color: rgba(255, 255, 255, 0.9); transition: color 0.3s ease, transform 0.2s ease; } .layout-sider-header svg:hover { color: var(--hk-text-inverse); transform: scale(1.1); } /* ==================== 输入框 Input ==================== */ /* 首页输入框 */ .guidInputCard { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border: 2px solid var(--hk-border-strong); border-radius: 20px; box-shadow: var(--hk-shadow-md); transition: all 0.3s ease; } .guidInputCard:hover { border-color: var(--hk-primary); box-shadow: var(--hk-shadow-lg); } .guidInputCard textarea { background-color: transparent; color: var(--hk-text-primary); border: none; } /* 发送框 */ .sendbox-container { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border: 2px solid var(--hk-border-strong); border-radius: 24px; box-shadow: var(--hk-shadow-md); transition: all 0.3s ease; } .sendbox-container:focus-within { border-color: var(--hk-primary); box-shadow: var(--hk-shadow-lg), var(--hk-shadow-glow); transform: translateY(-1px); } .sendbox-container textarea { background: transparent; border: none; color: var(--hk-text-primary); } /* ==================== 消息气泡 Message ==================== */ /* 用户消息 */ .message-item.user .message-bubble, [class*='message-user'] .message-content { background: var(--hk-gradient-primary); color: var(--hk-text-inverse); border-radius: 20px 20px 4px 20px; box-shadow: var(--hk-shadow-md); padding: 12px 18px; border: none; } /* AI 消息 */ .message-item.ai .message-bubble, .message-item.assistant .message-bubble, [class*='message-ai'] .message-content, [class*='message-assistant'] .message-content { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); border: 2px solid var(--hk-border-light); border-radius: 20px 20px 20px 4px; box-shadow: var(--hk-shadow-sm); padding: 12px 18px; color: var(--hk-text-primary); } /* 工具调用提示 - 保持简洁 */ .message-item.ai .arco-alert, .message-item.assistant .arco-alert { background-color: rgba(255, 255, 255, 0.7); border: 1px solid var(--hk-border-light); border-radius: 8px; margin: 8px 0; } .message-item.ai .arco-card, .message-item.assistant .arco-card { background-color: rgba(255, 255, 255, 0.7); border: 1px solid var(--hk-border-light); border-radius: 8px; margin: 8px 0; } /* ==================== 按钮 Button ==================== */ .arco-btn-primary, button[type='primary'] { background: var(--hk-gradient-button); border: none; border-radius: 20px; color: var(--hk-text-inverse); font-weight: 600; box-shadow: var(--hk-shadow-sm); transition: all 0.3s ease; } .arco-btn-primary:hover, button[type='primary']:hover { background: linear-gradient(135deg, #ff9db6 0%, #ffcad4 100%); box-shadow: var(--hk-shadow-md), var(--hk-shadow-glow); transform: translateY(-2px); } .arco-btn-primary:active, button[type='primary']:active { transform: translateY(0); box-shadow: var(--hk-shadow-sm); } .arco-btn-secondary, button[type='secondary'] { background: transparent; border: 2px solid var(--hk-primary); border-radius: 20px; color: var(--hk-primary); font-weight: 600; transition: all 0.3s ease; } .arco-btn-secondary:hover, button[type='secondary']:hover { background: var(--hk-bg-hover); border-color: var(--hk-primary-light); color: var(--hk-primary-light); transform: translateY(-1px); } /* 按钮禁用状态 */ .arco-btn:disabled, button:disabled { background: var(--hk-bg-3); color: var(--hk-text-disabled); border-color: var(--hk-border-light); cursor: not-allowed; opacity: 0.6; } /* ==================== 图标 Icon ==================== */ /* 基础图标颜色 - 仅针对需要的图标 */ .arco-icon { color: var(--hk-primary); transition: color 0.3s ease, transform 0.2s ease; } .arco-icon:hover { color: var(--hk-primary-light); transform: scale(1.1); } /* 按钮内图标 */ .arco-btn-primary .arco-icon, button[type='primary'] .arco-icon { color: var(--hk-text-inverse); } /* ==================== 滚动条 Scrollbar ==================== */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; border-radius: 4px; } ::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; transition: background 0.3s ease; } *:hover::-webkit-scrollbar-thumb { background: rgba(255, 133, 162, 0.3); } *:hover::-webkit-scrollbar-thumb:hover { background: var(--hk-gradient-primary); } /* ==================== 其他元素 ==================== */ /* 链接 */ a { color: var(--hk-primary); text-decoration: none; transition: color 0.3s ease; } a:hover { color: var(--hk-primary-light); text-decoration: underline; } /* 选中文本 */ ::selection { background-color: var(--hk-primary); color: var(--hk-text-inverse); } /* Tooltip */ /* Modal 对话框 */ .arco-modal-header { background: var(--hk-gradient-light); border-bottom: 1px solid var(--hk-border-light); color: var(--hk-text-primary); } .arco-modal-body { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); color: var(--hk-text-primary); } .arco-modal-footer { background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--hk-border-light); } /* ==================== 深色模式 (Dark Mode) ==================== */ [data-theme='dark'] { /* ===== 主色调 - 调亮以提高可见度 ===== */ --hk-primary: #ffb7c5; --hk-primary-light: #ffcad4; --hk-primary-lighter: #ffe4e8; --hk-primary-lightest: #fff0f3; --hk-primary-dark: #ff9db6; --hk-primary-darker: #ff85a2; --hk-primary-rgb: 255, 183, 197; /* ===== 品牌色板 - 深色模式反转 ===== */ --hk-shade-1: #2d1a24; --hk-shade-2: #3d2431; --hk-shade-3: #4a2f3a; --hk-shade-4: #5d3b4a; --hk-shade-5: #7a4d5f; --hk-shade-6: #ffb7c5; --hk-shade-7: #ffcad4; --hk-shade-8: #ffe4e8; --hk-shade-9: #fff0f3; --hk-shade-10: #fff5f7; /* ===== 背景色 - 温暖的深粉紫色 ===== */ --hk-bg-base: #1f1119; --hk-bg-1: #2d1a24; --hk-bg-2: #3d2431; --hk-bg-3: #4a2f3a; --hk-bg-4: #5d3b4a; --hk-bg-hover: #3d2431; --hk-bg-active: #4a2f3a; /* ===== 文字色 - 高对比度粉白色 ===== */ --hk-text-primary: #fff0f3; --hk-text-secondary: #ffcad4; --hk-text-tertiary: #ff9db6; --hk-text-disabled: #8c6b74; --hk-text-inverse: #ffffff; /* ===== 边框色 ===== */ --hk-border-base: #7a4d5f; --hk-border-light: #5d3b4a; --hk-border-strong: #ff9db6; /* ===== 语义色 - 深色模式调整 ===== */ --hk-success: #95de64; --hk-warning: #ffc53d; --hk-error: #ff7875; --hk-info: #ffb7c5; /* ===== 阴影 - 增强发光效果 ===== */ --hk-shadow-sm: 0 2px 12px rgba(255, 183, 197, 0.2); --hk-shadow-md: 0 4px 20px rgba(255, 183, 197, 0.3); --hk-shadow-lg: 0 8px 32px rgba(255, 183, 197, 0.4); --hk-shadow-glow: 0 0 24px rgba(255, 183, 197, 0.4); /* ===== 渐变 - 深色模式保持鲜艳 ===== */ --hk-gradient-primary: linear-gradient(135deg, #ff85a2 0%, #ffb7c5 100%); --hk-gradient-light: linear-gradient(135deg, #4a2f3a 0%, #5d3b4a 100%); --hk-gradient-button: linear-gradient(135deg, #ff85a2 0%, #ffb7c5 100%); /* ===== 重新映射系统变量 ===== */ --color-primary: var(--hk-primary); --primary: var(--hk-primary); --brand: var(--hk-primary); --color-bg-1: var(--hk-bg-1); --bg-1: var(--hk-bg-1); --color-bg-2: var(--hk-bg-2); --bg-2: var(--hk-bg-2); --bg-hover: var(--hk-bg-hover); --bg-active: var(--hk-bg-active); --color-text-1: var(--hk-text-primary); --text-primary: var(--hk-text-primary); --color-text-2: var(--hk-text-secondary); --text-secondary: var(--hk-text-secondary); --color-border: var(--hk-border-base); --border-base: var(--hk-border-base); } /* ===== 深色模式全局样式 ===== */ [data-theme='dark'] body, [data-theme='dark'] html { background-color: var(--hk-bg-1); color: var(--hk-text-primary); } /* ===== 深色模式标题栏 ===== */ [data-theme='dark'] .app-titlebar { background-color: var(--hk-bg-2); border-color: var(--hk-border-base); } [data-theme='dark'] .app-titlebar__button { color: var(--hk-text-primary); } [data-theme='dark'] .app-titlebar__button:hover { background-color: var(--hk-bg-hover); color: var(--hk-primary); } [data-theme='dark'] .app-titlebar__brand { color: var(--hk-text-primary); } [data-theme='dark'] .arco-layout, [data-theme='dark'] [class*='layout'] { background-color: var(--hk-bg-1); } [data-theme='dark'] .arco-layout-content { background-color: var(--hk-bg-1); } /* ===== 深色模式背景图 ===== */ [data-theme='dark'] .layout-content.bg-1::before { background: linear-gradient( 135deg, rgba(45, 26, 36, 0.85) 0%, rgba(61, 36, 49, 0.9) 50%, rgba(45, 26, 36, 0.85) 100% ); } [data-theme='dark'] [class*='chat-layout'] .arco-layout-content::before, [data-theme='dark'] [class*='conversation'] .arco-layout-content::before { opacity: 0.2; filter: brightness(0.9) saturate(1.2); } /* ===== 深色模式侧边栏 ===== */ [data-theme='dark'] .layout-sider { background: linear-gradient(180deg, #4a2f3a 0%, #3d2431 100%); border-right: 2px solid var(--hk-border-strong); box-shadow: 4px 0 20px rgba(255, 183, 197, 0.15); } [data-theme='dark'] .layout-sider-header { background: var(--hk-gradient-primary); box-shadow: 0 4px 16px rgba(255, 183, 197, 0.4); border-bottom: 1px solid rgba(255, 255, 255, 0.3); } /* ===== 深色模式输入框 ===== */ [data-theme='dark'] .guidInputCard { background: linear-gradient(135deg, rgba(74, 47, 58, 0.95) 0%, rgba(93, 59, 74, 0.95) 100%); backdrop-filter: blur(16px); border: 2px solid var(--hk-border-strong); box-shadow: var(--hk-shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05); } [data-theme='dark'] .guidInputCard:hover { border-color: var(--hk-primary); box-shadow: var(--hk-shadow-lg), var(--hk-shadow-glow); } [data-theme='dark'] .guidInputCard textarea { color: var(--hk-text-primary); } [data-theme='dark'] .sendbox-container { background: linear-gradient(135deg, rgba(74, 47, 58, 0.95) 0%, rgba(93, 59, 74, 0.95) 100%); backdrop-filter: blur(16px); border: 2px solid var(--hk-border-strong); box-shadow: var(--hk-shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05); } [data-theme='dark'] .sendbox-container:focus-within { border-color: var(--hk-primary); box-shadow: var(--hk-shadow-lg), var(--hk-shadow-glow); } [data-theme='dark'] .sendbox-container textarea { color: var(--hk-text-primary); } /* ===== 深色模式消息气泡 ===== */ [data-theme='dark'] .message-item.user .message-bubble, [data-theme='dark'] [class*='message-user'] .message-content { background: var(--hk-gradient-primary); color: var(--hk-text-inverse); box-shadow: var(--hk-shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.1); } [data-theme='dark'] .message-item.ai .message-bubble, [data-theme='dark'] .message-item.assistant .message-bubble, [data-theme='dark'] [class*='message-ai'] .message-content, [data-theme='dark'] [class*='message-assistant'] .message-content { background: linear-gradient(135deg, rgba(74, 47, 58, 0.95) 0%, rgba(93, 59, 74, 0.95) 100%); backdrop-filter: blur(10px); border: 2px solid var(--hk-border-base); box-shadow: var(--hk-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05); color: var(--hk-text-primary); } [data-theme='dark'] .message-item.ai .arco-alert, [data-theme='dark'] .message-item.assistant .arco-alert { background-color: rgba(61, 36, 49, 0.8); border-color: var(--hk-border-light); } [data-theme='dark'] .message-item.ai .arco-card, [data-theme='dark'] .message-item.assistant .arco-card { background-color: rgba(61, 36, 49, 0.8); border-color: var(--hk-border-light); } /* ===== 深色模式按钮 ===== */ [data-theme='dark'] .arco-btn-primary, [data-theme='dark'] button[type='primary'] { background: var(--hk-gradient-primary); box-shadow: var(--hk-shadow-md); } [data-theme='dark'] .arco-btn-primary:hover, [data-theme='dark'] button[type='primary']:hover { background: linear-gradient(135deg, #ffb7c5 0%, #ffcad4 100%); box-shadow: var(--hk-shadow-lg), var(--hk-shadow-glow); } [data-theme='dark'] .arco-btn-secondary, [data-theme='dark'] button[type='secondary'] { border-color: var(--hk-primary); color: var(--hk-primary); } [data-theme='dark'] .arco-btn-secondary:hover, [data-theme='dark'] button[type='secondary']:hover { background: var(--hk-bg-hover); border-color: var(--hk-primary-light); color: var(--hk-primary-light); box-shadow: 0 0 12px rgba(255, 183, 197, 0.3); } /* ===== 深色模式图标 ===== */ [data-theme='dark'] .arco-icon { color: var(--hk-primary); } [data-theme='dark'] .arco-icon:hover { color: var(--hk-primary-light); filter: drop-shadow(0 0 8px rgba(255, 183, 197, 0.5)); } /* ===== 深色模式滚动条 ===== */ [data-theme='dark'] *:hover::-webkit-scrollbar-thumb { background: rgba(255, 183, 197, 0.4); } [data-theme='dark'] *:hover::-webkit-scrollbar-thumb:hover { background: var(--hk-gradient-primary); box-shadow: 0 0 8px rgba(255, 183, 197, 0.5); } /* ===== 深色模式其他元素 ===== */ [data-theme='dark'] a { color: var(--hk-primary); } [data-theme='dark'] a:hover { color: var(--hk-primary-light); text-shadow: 0 0 8px rgba(255, 183, 197, 0.4); } [data-theme='dark'] ::selection { background-color: var(--hk-primary); color: var(--hk-text-inverse); } [data-theme='dark'] .arco-modal-header { background: var(--hk-gradient-primary); color: var(--hk-text-inverse); border-bottom: 1px solid rgba(255, 255, 255, 0.2); } [data-theme='dark'] .arco-modal-body { background: linear-gradient(135deg, rgba(61, 36, 49, 0.98) 0%, rgba(74, 47, 58, 0.98) 100%); backdrop-filter: blur(20px); color: var(--hk-text-primary); } [data-theme='dark'] .arco-modal-footer { background: linear-gradient(135deg, rgba(61, 36, 49, 0.98) 0%, rgba(74, 47, 58, 0.98) 100%); border-top: 1px solid var(--hk-border-base); } /* ==================== 动画效果 ==================== */ @keyframes hk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } } @keyframes hk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } } /* 可选:给某些元素添加悬浮动画 */ .arco-btn-primary:hover { animation: hk-float 2s ease-in-out infinite; } /* ==================== 响应式调整 ==================== */ @media (max-width: 768px) { /* 移动端优化 */ .guidInputCard, .sendbox-container { border-radius: 16px; } .message-item.user .message-bubble, .message-item.ai .message-bubble, .message-item.assistant .message-bubble { border-radius: 16px; padding: 10px 14px; } .arco-btn-primary, .arco-btn-secondary { border-radius: 16px; padding: 8px 16px; } } /* ==================== 打印样式 ==================== */ @media print { /* 打印时移除背景图和阴影 */ .layout-content.bg-1::before, [class*='chat-layout'] .arco-layout-content::before { display: none; } * { box-shadow: none !important; text-shadow: none !important; } } `,Qv=`/* ======================================== Windows Classic Theme - 优化版 复古 Windows 配色,支持明暗双模式 确保可读性,适度添加 Windows 经典元素 ======================================== */ /* ==================== 明色模式 (Light Mode) ==================== */ /* 核心颜色变量 - 复古 Windows 配色 */ :root { /* 主色调 - Classic Windows Blue */ --color-primary: #0078d4; --primary: #0078d4; --color-primary-light-1: #1a86d9; --color-primary-light-2: #3399e6; --color-primary-light-3: #4da6f0; --color-primary-dark-1: #005a9e; --primary-rgb: 0, 120, 212; /* 品牌色 - Windows Classic */ --brand: #0078d4; --brand-light: #e6f2fa; --brand-hover: #1a86d9; --color-brand-fill: #0078d4; --color-brand-bg: #e6f2fa; /* AOU 品牌色板 - 蓝色系渐变 */ --aou-1: #e6f2fa; --aou-2: #cce5f5; --aou-3: #b3d8f0; --aou-4: #99cbeb; --aou-5: #66b1e1; --aou-6: #0078d4; --aou-7: #005a9e; --aou-8: #004578; --aou-9: #003052; --aou-10: #001b2c; /* 背景色 - Classic Windows Gray/Beige */ --color-bg-1: #f0f0f0; --bg-1: #f0f0f0; --color-bg-2: #ffffff; --bg-2: #ffffff; --color-bg-3: #e0e0e0; --bg-3: #e0e0e0; --color-bg-4: #c0c0c0; --bg-4: #c0c0c0; --bg-base: #ffffff; --bg-hover: #e0e0e0; --bg-active: #c0c0c0; --fill: #f0f0f0; --color-fill: #f0f0f0; /* 文字色 - Classic Windows Text */ --color-text-1: #000000; --text-primary: #000000; --color-text-2: #404040; --text-secondary: #404040; --color-text-3: #808080; --text-disabled: #808080; --text-0: #000000; /* 边框色 - Classic Windows Border */ --color-border: #808080; --color-border-1: #808080; --color-border-2: #c0c0c0; --border-base: #808080; --border-light: #c0c0c0; /* 语义色 - Classic Windows Colors */ --success: #00a300; /* Windows 绿 */ --warning: #ff8c00; --danger: #d13438; --info: #0078d4; /* Windows 蓝 */ /* Windows 经典绿色 - 适度使用 */ --windows-green: #00a300; --windows-green-light: #00c300; --windows-green-dark: #008000; /* 消息背景色 - Message Backgrounds */ --message-user-bg: #d0e8f5; --message-tips-bg: #f0f0f0; --workspace-btn-bg: #e0e0e0; /* 对话框颜色 - Dialog Colors */ --dialog-fill-0: rgba(255, 255, 255, 0.95); } /* 全局字体 - 经典 Windows 字体 */ body { font-family: 'MS Sans Serif', 'Tahoma', 'Arial', 'Microsoft YaHei', sans-serif; } /* 全局背景色 - 经典 Windows 米色 */ body, html { background-color: var(--bg-1, #f0f0f0); } /* 全局主要背景区域 */ .arco-layout, [class*='layout'] { background-color: var(--bg-1, #f0f0f0); } /* 全局内容区域背景 */ .arco-layout-content { background-color: var(--bg-1, #f0f0f0); } /* ==================== 侧边栏 Sidebar ==================== */ /* 侧边栏样式 - 只保留基础样式,其他使用系统默认 */ .layout-sider { background-color: #e0e0e0; border-right: 2px solid #808080; position: relative; z-index: 100; } .layout-sider.collapsed { overflow: hidden; } .layout-sider.collapsed * { overflow: hidden; } .layout-sider.collapsed::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; } .layout-sider-header { background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%); color: white; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2); } /* 按钮内的图标 - 保持原有样式,不强制设置 */ button:not(.sendbox-model-btn):not([class*='model']):not([class*='Model']) svg, .arco-btn:not(.sendbox-model-btn):not([class*='model']):not([class*='Model']) svg { /* 保持图标原有样式 */ } /* 主要按钮内的图标 - 保持原有样式 */ .arco-btn-primary:not(.sendbox-model-btn):not([class*='model']):not([class*='Model']) svg { /* 保持图标原有样式 */ } /* ==================== 背景图设置 ==================== */ /* 背景图片设置 - 让背景图穿透显示 */ .layout-content.bg-1 { background-color: var(--bg-1, #f0f0f0); position: relative; } /* 半透明遮罩层 */ .layout-content.bg-1::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( 135deg, rgba(240, 249, 255, 0.75) 0%, rgba(224, 242, 254, 0.8) 50%, rgba(240, 249, 255, 0.75) 100% ); z-index: 0; pointer-events: none; } /* 聊天页面背景图 - Windows 经典配色 */ .chat-layout-header, [class*='chat-layout'] .arco-layout-content, [class*='conversation'] .arco-layout-content { position: relative; } [class*='chat-layout'] .arco-layout-content::before, [class*='conversation'] .arco-layout-content::before { content: ''; position: absolute; inset: 0; background: transparent; opacity: 0; z-index: 0; pointer-events: none; } /* 确保聊天内容在背景图之上 */ [class*='chat-layout'] .arco-layout-content > *, [class*='conversation'] .arco-layout-content > * { position: relative; z-index: 1; } /* 确保内容在遮罩之上 */ .layout-content.bg-1 > * { position: relative; z-index: 1; } /* 首页对话框和输入区域 - 确保完全可见 */ .guidLayout, [class*='guid'] { position: relative; z-index: 10; } /* 输入框文本域 - 确保文字清晰可见 */ .guidInputCard textarea, [class*='guidInputCard'] textarea { background-color: rgba(255, 255, 255, 0.98); color: var(--color-text-1); } /* ==================== 输入框 Input ==================== */ /* 发送框样式 - 只针对可见的发送框容器,排除模型选择器等系统组件 */ .sendbox-container:not([class*='model']):not([class*='Model']), [class*='sendbox']:not([class*='input']):not([class*='textarea']):not([class*='model']):not([class*='Model']):not( [class*='tools'] ) { border-radius: 4px; /* 经典 Windows 方角 */ border: 2px outset #c0c0c0; /* 经典 3D 边框效果 */ background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; } /* 首页输入框对话框 - 白色90%不透明度,确保用户看得清 */ .guidInputCard { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); border: 2px outset #c0c0c0; /* 经典 3D 边框 */ border-radius: 4px; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1); } /* 发送框内的文本域 - 保持原有样式,只调整边框 */ .sendbox-container textarea, [class*='sendbox'] textarea { border: none; background: transparent; color: var(--color-text-1); /* 确保文字清晰 */ } .sendbox-container:focus-within, [class*='sendbox']:focus-within { border: 2px inset #808080; /* 聚焦时变为内陷效果 */ box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2); } /* 发送框内图标颜色调整 - 排除模型选择按钮和系统组件 */ .sendbox-container svg:not(.sendbox-model-btn svg):not([class*='model'] svg), [class*='sendbox']:not([class*='model']):not([class*='Model']) svg:not(.sendbox-model-btn svg) { color: #0078d4; transition: color 0.3s ease; } .sendbox-container svg:not(.sendbox-model-btn svg):not([class*='model'] svg):hover, [class*='sendbox']:not([class*='model']):not([class*='Model']) svg:not(.sendbox-model-btn svg):hover { color: #1a86d9; transform: scale(1.1); } /* ==================== 消息气泡 Message ==================== */ /* 用户消息气泡 - 经典 Windows 蓝色 */ .message-item.user .message-bubble, [class*='message'][class*='user'] .message-content { background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%); color: white; border-radius: 4px; /* 方角 */ border: 1px solid #005a9e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2); padding: 12px 16px; } /* AI 消息气泡 - 经典 Windows 白色 */ .message-item.ai .message-bubble, [class*='message'][class*='ai'] .message-content, [class*='message'][class*='assistant'] .message-content { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(4px); border: 1px solid #c0c0c0; border-radius: 4px; /* 方角 */ box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1); padding: 12px 16px; color: var(--color-text-1); /* 确保文字清晰 */ } /* 工具调用消息 - 保持原有样式,只微调背景色以融入主题 */ .message-item.ai .arco-alert, [class*='message'][class*='ai'] .arco-alert, [class*='message'][class*='assistant'] .arco-alert, .message-item.ai [class*='alert'], [class*='message'][class*='ai'] [class*='alert'], [class*='message'][class*='assistant'] [class*='alert'] { background-color: rgba(255, 255, 255, 0.9); border: 1px solid #c0c0c0; border-radius: 4px; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(0, 0, 0, 0.1); backdrop-filter: none; margin: 4px 0; color: var(--color-text-1); /* 确保文字清晰 */ } /* 工具调用卡片 - 恢复原有样式,微调 */ .message-item.ai .arco-card, [class*='message'][class*='ai'] .arco-card, [class*='message'][class*='assistant'] .arco-card, .message-item.ai [class*='card'], [class*='message'][class*='ai'] [class*='card'], [class*='message'][class*='assistant'] [class*='card'] { background-color: rgba(255, 255, 255, 0.9); border: 1px solid #c0c0c0; border-radius: 4px; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(0, 0, 0, 0.1); backdrop-filter: none; margin: 4px 0; color: var(--color-text-1); /* 确保文字清晰 */ } /* 工具调用相关的内容区域 - 恢复简洁样式 */ .message-item.ai [class*='tool']:not([class*='message']):not([class*='bubble']), [class*='message'][class*='ai'] [class*='tool']:not([class*='message']):not([class*='bubble']), .message-item.ai [class*='Tool']:not([class*='message']):not([class*='bubble']), [class*='message'][class*='ai'] [class*='Tool']:not([class*='message']):not([class*='bubble']), .message-item.ai [class*='WebFetch'], [class*='message'][class*='ai'] [class*='WebFetch'], .message-item.ai [class*='web_search'], [class*='message'][class*='ai'] [class*='web_search'], .message-item.ai [class*='exec_command'], [class*='message'][class*='ai'] [class*='exec_command'], .message-item.ai [class*='mcp_tool'], [class*='message'][class*='ai'] [class*='mcp_tool'] { background-color: transparent; border: none; border-radius: 0; padding: 0; margin: 0; } /* 工具调用状态标签 - 恢复简洁样式 */ .message-item.ai [class*='status']:not([class*='message']):not([class*='bubble']), [class*='message'][class*='ai'] [class*='status']:not([class*='message']):not([class*='bubble']), .message-item.ai [class*='Status']:not([class*='message']):not([class*='bubble']), [class*='message'][class*='ai'] [class*='Status']:not([class*='message']):not([class*='bubble']) { background-color: rgba(255, 255, 255, 0.95); border: 1px solid #c0c0c0; border-radius: 4px; padding: 2px 6px; color: var(--color-text-1); /* 确保文字清晰 */ } /* ==================== 按钮 Button ==================== */ /* 主要按钮样式 - 经典 Windows 3D 按钮效果 */ .arco-btn-primary:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']), button[type='primary']:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']) { background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%); border: 2px outset #0078d4; border-radius: 4px; /* 方角 */ font-weight: normal; color: white; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.2s ease; } .arco-btn-primary:hover:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']), button[type='primary']:hover:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']) { background: linear-gradient(180deg, #1a86d9 0%, #0078d4 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3); } .arco-btn-primary:active:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']), button[type='primary']:active:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']) { border: 2px inset #005a9e; box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3); } /* 成功状态按钮 - Windows 绿(适度使用) */ .arco-btn-success, button[type='success'] { background: linear-gradient(180deg, #00a300 0%, #008000 100%); border: 2px outset #00a300; border-radius: 4px; color: white; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.2s ease; } .arco-btn-success:hover, button[type='success']:hover { background: linear-gradient(180deg, #00c300 0%, #00a300 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3); } .arco-btn-success:active, button[type='success']:active { border: 2px inset #008000; box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3); } /* Windows 绿点缀 - 用于成功提示、确认按钮等 */ .arco-alert[class*='success'], [class*='alert'][class*='success'], .arco-message-success, [class*='message'][class*='success'] { background-color: rgba(0, 163, 0, 0.1); border: 1px solid #00a300; border-left: 3px solid #00a300; } /* 链接 hover 时可以使用 Windows 绿 */ a:not([class*='button']):not([class*='btn'])[class*='success'], a:not([class*='button']):not([class*='btn'])[class*='confirm'] { color: #00a300; } a:not([class*='button']):not([class*='btn'])[class*='success']:hover, a:not([class*='button']):not([class*='btn'])[class*='confirm']:hover { color: #00c300; text-decoration: underline; } /* Windows 绿点缀 - 复选框选中状态 */ .arco-checkbox-checked .arco-checkbox-icon, input[type='checkbox']:checked { background-color: #00a300; border-color: #00a300; } .arco-checkbox-checked .arco-checkbox-icon::after { border-color: white; } /* Windows 绿点缀 - 单选框选中状态 */ .arco-radio-checked .arco-radio-button, input[type='radio']:checked { border-color: #00a300; } .arco-radio-checked .arco-radio-button::after { background-color: #00a300; } /* Windows 绿点缀 - 进度条成功状态 */ .arco-progress-line[class*='success'], .arco-progress-line[data-status='success'] { background-color: rgba(0, 163, 0, 0.1); } .arco-progress-line[class*='success'] .arco-progress-line-inner, .arco-progress-line[data-status='success'] .arco-progress-line-inner { background-color: #00a300; } /* Windows 绿点缀 - 标签成功状态 */ .arco-tag[class*='success'], .arco-tag[data-color='green'] { background-color: rgba(0, 163, 0, 0.1); border-color: #00a300; color: #00a300; } /* 明确排除模型选择按钮及其所有子元素,保持系统默认样式 */ .sendbox-model-btn, [class*='sendbox-model'], .sendbox-model-btn *, [class*='sendbox-model'] * { /* 重置所有可能被影响的样式 */ color: inherit; fill: inherit; background: inherit; border: inherit; border-radius: inherit; box-shadow: inherit; transform: none; } /* 排除发送框工具区域(包含模型选择器) */ .sendbox-tools, [class*='sendbox-tools'], .sendbox-tools *, [class*='sendbox-tools'] * { color: inherit; fill: inherit; background: inherit; border: inherit; border-radius: inherit; box-shadow: inherit; transform: none; } /* ==================== 滚动条 Scrollbar ==================== */ /* 滚动条美化 - 经典 Windows 滚动条样式 */ ::-webkit-scrollbar { width: 16px; height: 16px; } ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%); border: 1px solid #808080; border-radius: 0; /* 方角 */ box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), inset -1px -1px 0 rgba(0, 0, 0, 0.2); transition: background 0.2s ease; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d0d0d0 0%, #909090 100%); } /* 当容器hover时,滚动条也显示 */ *:hover::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%); } *:hover::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d0d0d0 0%, #909090 100%); } ::-webkit-scrollbar-track { background: #f0f0f0; border: 1px solid #808080; border-radius: 0; /* 方角 */ box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1); } ::-webkit-scrollbar-button { background: #c0c0c0; border: 1px solid #808080; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), inset -1px -1px 0 rgba(0, 0, 0, 0.2); } ::-webkit-scrollbar-button:hover { background: #d0d0d0; } /* ==================== 其他元素 ==================== */ /* 选中文字 */ ::selection { background-color: #0078d4; color: white; } /* 链接样式 */ a:not([class*='button']):not([class*='btn']) { color: #0078d4; transition: color 0.2s ease; } a:hover:not([class*='button']):not([class*='btn']) { color: #005a9e; text-decoration: underline; } /* 次要按钮图标颜色 - 排除模型选择器 */ .arco-btn-secondary:not(.sendbox-model-btn):not([class*='model']):not([class*='Model']) svg, button[type='secondary']:not(.sendbox-model-btn):not([class*='model']):not([class*='Model']) svg { color: #0078d4; transition: color 0.2s ease; } .arco-btn-secondary:not(.sendbox-model-btn):not([class*='model']):not([class*='Model']) svg:hover, button[type='secondary']:not(.sendbox-model-btn):not([class*='model']):not([class*='Model']) svg:hover { color: #1a86d9; } /* 消息区域图标颜色 - 只针对消息气泡内的图标 */ .message-item .message-content svg, [class*='message'] [class*='content'] svg { color: #404040; transition: color 0.2s ease; } .message-item:hover .message-content svg, [class*='message']:hover [class*='content'] svg { color: #0078d4; } /* ==================== Tooltip 和 Popover ==================== */ /* Tooltip 和 Popover 保持交互层级,配色由全局 overlay token 统一控制 */ .arco-tooltip-popup, .arco-popover-popup { pointer-events: none; /* 避免遮挡鼠标事件 */ z-index: 10000 !important; /* 确保 tooltip 在最上层 */ } /* 侧边栏 tooltip - 使用系统默认配色 */ .layout-sider ~ .arco-tooltip-popup, .layout-sider .arco-tooltip-popup { z-index: 10001 !important; } /* ==================== 对话框 Modal ==================== */ /* 对话框背景和透明度 */ .arco-modal-body { background-color: rgba(240, 240, 240, 0.98); backdrop-filter: blur(4px); border: 2px outset #c0c0c0; color: var(--color-text-1); /* 确保文字清晰 */ } .arco-modal-header { background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%); color: white; border-bottom: 1px solid #005a9e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); } .arco-modal-footer { background-color: rgba(240, 240, 240, 0.98); border-top: 1px solid #c0c0c0; color: var(--color-text-1); /* 确保文字清晰 */ } /* ==================== Windows 经典元素(适度添加) ==================== */ /* 经典输入框 - Windows 95/98 风格 */ .arco-input, input[type='text'], input[type='password'], input[type='email'], input[type='number'], input[type='search'] { background-color: var(--bg-2); border: 2px inset var(--border-base); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2); border-radius: 0; padding: 4px 6px; font-size: 13px; color: var(--color-text-1); /* 确保文字清晰 */ transition: all 0.1s ease; } .arco-input:focus, input:focus { border: 2px inset var(--color-primary); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--color-primary); outline: none; } /* 经典复选框和单选框 - Windows 95/98 风格 */ .arco-checkbox, .arco-radio, input[type='checkbox'], input[type='radio'] { width: 13px; height: 13px; border: 2px inset var(--border-base); background-color: var(--bg-2); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2); border-radius: 0; appearance: none; -webkit-appearance: none; -moz-appearance: none; transition: all 0.1s ease; } .arco-checkbox:checked, .arco-radio:checked, input[type='checkbox']:checked, input[type='radio']:checked { background-color: var(--bg-active); border: 2px inset var(--border-base); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3); } .arco-checkbox:checked::after, input[type='checkbox']:checked::after { content: '✓'; display: block; color: var(--text-primary); font-size: 10px; font-weight: bold; text-align: center; line-height: 9px; } .arco-radio { border-radius: 50%; } .arco-radio:checked::after, input[type='radio']:checked::after { content: ''; display: block; width: 5px; height: 5px; background-color: var(--text-primary); border-radius: 50%; margin: 2px auto; } /* ==================== 表单标签样式 - 保持简洁 ==================== */ /* 表单标签 - 移除不必要的背景色和边框,只作为标题显示 */ .arco-form-label-item, [class*='form-label'], [class*='arco-form-label'], .arco-col[class*='form-label'], .arco-form-item-label, [class*='arco-form-item-label'] { background-color: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; color: var(--color-text-1) !important; } /* 表单标签文字 - 确保清晰可见 */ .arco-form-label-item *, [class*='form-label'] *, [class*='arco-form-label'] *, .arco-col[class*='form-label'] *, .arco-form-item-label *, [class*='arco-form-item-label'] * { color: var(--color-text-1) !important; background-color: transparent !important; } /* 深色模式表单标签 */ [data-theme='dark'] .arco-form-label-item, [data-theme='dark'] [class*='form-label'], [data-theme='dark'] [class*='arco-form-label'], [data-theme='dark'] .arco-col[class*='form-label'], [data-theme='dark'] .arco-form-item-label, [data-theme='dark'] [class*='arco-form-item-label'] { background-color: transparent !important; border: none !important; box-shadow: none !important; color: var(--color-text-1) !important; } [data-theme='dark'] .arco-form-label-item *, [data-theme='dark'] [class*='form-label'] *, [data-theme='dark'] [class*='arco-form-label'] *, [data-theme='dark'] .arco-col[class*='form-label'] *, [data-theme='dark'] .arco-form-item-label *, [data-theme='dark'] [class*='arco-form-item-label'] * { color: var(--color-text-1) !important; background-color: transparent !important; } /* ==================== 深色模式 (Dark Mode) ==================== */ [data-theme='dark'] { /* 主色调 - 深色模式调亮以提高可见度 */ --color-primary: #4da6f0; --primary: #4da6f0; --color-primary-light-1: #66b1e1; --color-primary-light-2: #80bce8; --color-primary-light-3: #99cbeb; --color-primary-dark-1: #3399e6; --primary-rgb: 77, 166, 240; /* 品牌色 - 深色模式 */ --brand: #4da6f0; --brand-light: #1a2a3a; --brand-hover: #66b1e1; --color-brand-fill: #4da6f0; --color-brand-bg: #1a2a3a; /* AOU 品牌色板 - 深色模式反转 */ --aou-1: #001b2c; --aou-2: #003052; --aou-3: #004578; --aou-4: #005a9e; --aou-5: #0078d4; --aou-6: #4da6f0; --aou-7: #66b1e1; --aou-8: #80bce8; --aou-9: #99cbeb; --aou-10: #b3d8f0; /* 背景色 - 深色 Windows 风格 */ --color-bg-1: #1a1a1a; --bg-1: #1a1a1a; --color-bg-2: #262626; --bg-2: #262626; --color-bg-3: #333333; --bg-3: #333333; --color-bg-4: #404040; --bg-4: #404040; --bg-base: #0d0d0d; --bg-hover: #2d2d2d; --bg-active: #404040; --fill: #1a1a1a; --color-fill: #1a1a1a; /* 文字色 - 高对比度 */ --color-text-1: #e0e0e0; --text-primary: #e0e0e0; --color-text-2: #b0b0b0; --text-secondary: #b0b0b0; --color-text-3: #808080; --text-disabled: #808080; --text-0: #ffffff; /* 边框色 */ --color-border: #5a5a5a; --color-border-1: #5a5a5a; --color-border-2: #404040; --border-base: #5a5a5a; --border-light: #404040; /* 语义色 - 深色模式调整 */ --success: #4caf50; /* Windows 绿(深色模式调亮) */ --warning: #ff9800; --danger: #f44336; --info: #4da6f0; /* Windows 经典绿色 - 深色模式 */ --windows-green: #4caf50; --windows-green-light: #66bb6a; --windows-green-dark: #388e3c; /* 消息和组件色 */ --message-user-bg: #1a2a3a; --message-tips-bg: #1a1a1a; --workspace-btn-bg: #2d2d2d; /* 对话框颜色 */ --dialog-fill-0: rgba(26, 26, 26, 0.95); } /* ===== 深色模式全局样式 ===== */ [data-theme='dark'] body, [data-theme='dark'] html { background-color: var(--bg-1); color: var(--text-primary); } [data-theme='dark'] .arco-layout, [data-theme='dark'] [class*='layout'] { background-color: var(--bg-1); } [data-theme='dark'] .arco-layout-content { background-color: var(--bg-1); } /* ===== 深色模式侧边栏 ===== */ [data-theme='dark'] .layout-sider { background-color: var(--bg-3); border-right: 2px solid var(--border-base); } [data-theme='dark'] .layout-sider.collapsed { overflow: hidden !important; } [data-theme='dark'] .layout-sider.collapsed * { overflow: hidden !important; } [data-theme='dark'] .layout-sider.collapsed::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; } [data-theme='dark'] .layout-sider-header { background: linear-gradient(180deg, #005a9e 0%, #004578 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.4); } /* ===== 深色模式背景图 ===== */ /* 参考 Hello Kitty 模式:只在 ::before 上设置半透明遮罩 */ [data-theme='dark'] .layout-content.bg-1::before { background: linear-gradient(135deg, rgba(26, 42, 58, 0.7) 0%, rgba(30, 46, 62, 0.75) 50%, rgba(26, 42, 58, 0.7) 100%); } [data-theme='dark'] [class*='chat-layout'] .arco-layout-content::before, [data-theme='dark'] [class*='conversation'] .arco-layout-content::before { opacity: 0.2; filter: brightness(0.9) saturate(1.1); } /* ===== 深色模式输入框 ===== */ [data-theme='dark'] .guidInputCard textarea, [data-theme='dark'] [class*='guidInputCard'] textarea { background-color: rgba(38, 38, 38, 0.98); color: var(--color-text-1); } [data-theme='dark'] .sendbox-container:not([class*='model']):not([class*='Model']), [data-theme='dark'] [class*='sendbox']:not([class*='input']):not([class*='textarea']):not([class*='model']):not([class*='Model']):not( [class*='tools'] ) { background-color: rgba(38, 38, 38, 0.95); border: 2px outset var(--border-base); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3); } [data-theme='dark'] .sendbox-container textarea, [data-theme='dark'] [class*='sendbox'] textarea { color: var(--text-primary); } [data-theme='dark'] .guidInputCard { background-color: rgba(38, 38, 38, 0.95); border: 2px outset var(--border-base); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3); } /* ===== 深色模式消息气泡 ===== */ [data-theme='dark'] .message-item.user .message-bubble, [data-theme='dark'] [class*='message'][class*='user'] .message-content { background: linear-gradient(180deg, #005a9e 0%, #004578 100%); color: var(--text-white); border: 1px solid #004578; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.4); } [data-theme='dark'] .message-item.ai .message-bubble, [data-theme='dark'] .message-item.assistant .message-bubble, [data-theme='dark'] [class*='message'][class*='ai'] .message-content, [data-theme='dark'] [class*='message'][class*='assistant'] .message-content { background: rgba(38, 38, 38, 0.98); border: 1px solid var(--border-base); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3); color: var(--text-primary); } [data-theme='dark'] .message-item.ai .arco-alert, [data-theme='dark'] [class*='message'][class*='ai'] .arco-alert, [data-theme='dark'] .message-item.ai [class*='alert'], [data-theme='dark'] [class*='message'][class*='ai'] [class*='alert'] { background-color: rgba(38, 38, 38, 0.9); border-color: var(--border-base); color: var(--text-primary); } [data-theme='dark'] .message-item.ai .arco-card, [data-theme='dark'] [class*='message'][class*='ai'] .arco-card, [data-theme='dark'] .message-item.ai [class*='card'], [data-theme='dark'] [class*='message'][class*='ai'] [class*='card'] { background-color: rgba(38, 38, 38, 0.9); border-color: var(--border-base); color: var(--text-primary); } /* ===== 深色模式按钮 ===== */ [data-theme='dark'] .arco-btn-primary:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']), [data-theme='dark'] button[type='primary']:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']) { background: linear-gradient(180deg, #005a9e 0%, #004578 100%); border: 2px outset #005a9e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.4); } [data-theme='dark'] .arco-btn-primary:hover:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']), [data-theme='dark'] button[type='primary']:hover:not([class*='icon']):not([class*='circle']):not([class*='model']):not([class*='Model']) { background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 6px rgba(0, 0, 0, 0.5); } [data-theme='dark'] .arco-btn-success, [data-theme='dark'] button[type='success'] { background: linear-gradient(180deg, #388e3c 0%, #2e7d32 100%); border: 2px outset #388e3c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.4); } [data-theme='dark'] .arco-btn-success:hover, [data-theme='dark'] button[type='success']:hover { background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 6px rgba(0, 0, 0, 0.5); } /* 深色模式 Windows 绿点缀 */ [data-theme='dark'] .arco-alert[class*='success'], [data-theme='dark'] [class*='alert'][class*='success'], [data-theme='dark'] .arco-message-success, [data-theme='dark'] [class*='message'][class*='success'] { background-color: rgba(76, 175, 80, 0.15); border: 1px solid #4caf50; border-left: 3px solid #4caf50; } [data-theme='dark'] a:not([class*='button']):not([class*='btn'])[class*='success'], [data-theme='dark'] a:not([class*='button']):not([class*='btn'])[class*='confirm'] { color: #4caf50; } [data-theme='dark'] a:not([class*='button']):not([class*='btn'])[class*='success']:hover, [data-theme='dark'] a:not([class*='button']):not([class*='btn'])[class*='confirm']:hover { color: #66bb6a; text-decoration: underline; } /* 深色模式 Windows 绿点缀 - 复选框选中状态 */ [data-theme='dark'] .arco-checkbox-checked .arco-checkbox-icon, [data-theme='dark'] input[type='checkbox']:checked { background-color: #4caf50; border-color: #4caf50; } /* 深色模式 Windows 绿点缀 - 单选框选中状态 */ [data-theme='dark'] .arco-radio-checked .arco-radio-button, [data-theme='dark'] input[type='radio']:checked { border-color: #4caf50; } [data-theme='dark'] .arco-radio-checked .arco-radio-button::after { background-color: #4caf50; } /* 深色模式 Windows 绿点缀 - 进度条成功状态 */ [data-theme='dark'] .arco-progress-line[class*='success'], [data-theme='dark'] .arco-progress-line[data-status='success'] { background-color: rgba(76, 175, 80, 0.15); } [data-theme='dark'] .arco-progress-line[class*='success'] .arco-progress-line-inner, [data-theme='dark'] .arco-progress-line[data-status='success'] .arco-progress-line-inner { background-color: #4caf50; } /* 深色模式 Windows 绿点缀 - 标签成功状态 */ [data-theme='dark'] .arco-tag[class*='success'], [data-theme='dark'] .arco-tag[data-color='green'] { background-color: rgba(76, 175, 80, 0.15); border-color: #4caf50; color: #4caf50; } /* ===== 深色模式滚动条 ===== */ [data-theme='dark'] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #5a5a5a 0%, #404040 100%); border: 1px solid #5a5a5a; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), inset -1px -1px 0 rgba(0, 0, 0, 0.4); } [data-theme='dark'] ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6a6a6a 0%, #4d4d4d 100%); } [data-theme='dark'] ::-webkit-scrollbar-track { background: var(--bg-1); border: 1px solid var(--border-base); box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.3); } [data-theme='dark'] ::-webkit-scrollbar-button { background: var(--bg-3); border: 1px solid var(--border-base); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.4); } /* ===== 深色模式其他元素 ===== */ [data-theme='dark'] ::selection { background-color: var(--color-primary); color: var(--text-white); } [data-theme='dark'] a:not([class*='button']):not([class*='btn']) { color: var(--color-primary); } [data-theme='dark'] a:hover:not([class*='button']):not([class*='btn']) { color: var(--color-primary-light-1); } [data-theme='dark'] .arco-tooltip-popup, [data-theme='dark'] .arco-popover-popup { z-index: 10000 !important; /* 确保 tooltip 在最上层 */ } /* 深色模式侧边栏 tooltip - 使用系统默认配色 */ [data-theme='dark'] .layout-sider ~ .arco-tooltip-popup, [data-theme='dark'] .layout-sider .arco-tooltip-popup { z-index: 10001 !important; } [data-theme='dark'] .arco-modal-body { background: var(--bg-2); backdrop-filter: blur(8px); border: 2px outset var(--border-base); color: var(--text-primary); } [data-theme='dark'] .arco-modal-header { background: linear-gradient(180deg, #005a9e 0%, #004578 100%); color: var(--text-white); border-bottom: 1px solid rgba(0, 0, 0, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); } [data-theme='dark'] .arco-modal-footer { background: var(--bg-2); border-top: 1px solid var(--border-base); color: var(--text-primary); } /* ===== 深色模式输入框 ===== */ [data-theme='dark'] .arco-input, [data-theme='dark'] input[type='text'], [data-theme='dark'] input[type='password'], [data-theme='dark'] input[type='email'], [data-theme='dark'] input[type='number'], [data-theme='dark'] input[type='search'] { background-color: var(--bg-2); border: 2px inset var(--border-base); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4); color: var(--text-primary); } [data-theme='dark'] .arco-input:focus, [data-theme='dark'] input:focus { border: 2px inset var(--color-primary); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-primary); } /* ===== 深色模式复选框和单选框 ===== */ [data-theme='dark'] .arco-checkbox, [data-theme='dark'] .arco-radio, [data-theme='dark'] input[type='checkbox'], [data-theme='dark'] input[type='radio'] { background-color: var(--bg-2); border: 2px inset var(--border-base); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4); } [data-theme='dark'] .arco-checkbox:checked, [data-theme='dark'] .arco-radio:checked, [data-theme='dark'] input[type='checkbox']:checked, [data-theme='dark'] input[type='radio']:checked { background-color: var(--bg-active); border: 2px inset var(--border-base); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.5); } /* ==================== 响应式调整 ==================== */ @media (max-width: 768px) { .guidInputCard, .sendbox-container { border-radius: 4px; } .message-item.user .message-bubble, .message-item.ai .message-bubble, .message-item.assistant .message-bubble { border-radius: 4px; padding: 10px 14px; } .arco-btn-primary, .arco-btn-secondary { border-radius: 4px; padding: 8px 16px; } } /* ==================== 打印样式 ==================== */ @media print { .layout-content.bg-1::before, [class*='chat-layout'] .arco-layout-content::before { display: none; } * { box-shadow: none !important; text-shadow: none !important; } } `,Zv=`/* ================================================ Retroma Y2K JP — v4.2 配色: 薰衣草紫 × 鼠尾草绿 × 浅粉 × 米黄 ================================================ */ :root { --color-primary: #5a8a88; --primary: #5a8a88; --color-primary-light-1: #7aacaa; --color-primary-light-2: #9ecece; --color-primary-light-3: #c0e4e4; --color-primary-dark-1: #3a6a68; --primary-rgb: 90, 138, 136; --brand: #7a5898; --brand-light: #f2ecfa; --brand-hover: #9878b8; --color-brand-fill: #7a5898; --color-brand-bg: #f2ecfa; --aou-1: #f4f0fa; --aou-2: #e8e0f4; --aou-3: #d4c8ec; --aou-4: #b8a8dc; --aou-5: #9a84c8; --aou-6: #7a5898; --aou-7: #5c3c78; --aou-8: #402258; --aou-9: #260c38; --aou-10: #0e0018; --bg-base: #fefbf2; --bg-1: #f8f3e6; --bg-2: #f0e9d8; --bg-3: #e2d8c4; --bg-4: #c8bcaa; --bg-5: #aca090; --bg-6: #887870; --bg-8: #4e4038; --bg-9: #282018; --bg-10: #100c08; --color-bg-1: #f8f3e6; --color-bg-2: #f0e9d8; --color-bg-3: #e2d8c4; --color-bg-4: #c8bcaa; --bg-hover: #ede0f8; --bg-active: #ddd0f0; --text-primary: #2c1e38; --text-secondary: #6a5880; --text-disabled: #c0b0d0; --text-0: #1a0e28; --text-white: #fef8ff; --color-text-1: #2c1e38; --color-text-2: #6a5880; --color-text-3: #9878b0; --color-text-4: #c4b4d8; --border-base: #b8a8cc; --border-light: #d0c4e0; --border-special: #a898bc; --color-border: #b8a8cc; --color-border-1: #b8a8cc; --color-border-2: #d0c4e0; --fill: #f8f3e6; --color-fill: #f8f3e6; --fill-0: #fefbf2; --fill-white-to-black: #fefbf2; --dialog-fill-0: #fefbf2; --inverse: #2c1e38; --success: #4a9a88; --warning: #b08820; --danger: #c03868; --info: #5a8a88; --message-user-bg: #ead8f8; --message-tips-bg: #f4ede0; --workspace-btn-bg: #ede0f4; --color-guid-agent-bar: #ece2f8; --retroma-accent-gradient: linear-gradient( 135deg, rgba(236, 225, 247, 0.96) 0%, rgba(242, 235, 250, 0.94) 56%, rgba(239, 248, 238, 0.9) 100% ); --retroma-accent-gradient-hover: linear-gradient( 135deg, rgba(231, 216, 245, 0.96) 0%, rgba(236, 228, 247, 0.94) 56%, rgba(229, 240, 230, 0.9) 100% ); --retroma-accent-vertical: linear-gradient(180deg, #9b78b8 0%, #6a9b92 100%); } [data-theme='dark'] { --color-primary: #7ab8b4; --primary: #7ab8b4; --color-primary-light-1: #98d0cc; --color-primary-light-2: #b4e4e0; --color-primary-light-3: #cef4f2; --color-primary-dark-1: #58908c; --primary-rgb: 122, 184, 180; --brand: #c090e0; --brand-light: #38204e; --brand-hover: #a870c8; --color-brand-fill: #c090e0; --color-brand-bg: #38204e; --aou-1: #1c1028; --aou-2: #2c1c3e; --aou-3: #402854; --aou-4: #58386c; --aou-5: #745088; --aou-6: #9870a8; --aou-7: #b890c4; --aou-8: #d0b4dc; --aou-9: #e4d4ec; --aou-10: #f4ecf8; --bg-base: #1e201f; --bg-1: #272b29; --bg-2: #313734; --bg-3: #3e4743; --bg-4: #4f5a54; --bg-5: #65716a; --bg-6: #7c8880; --bg-8: #9aa7bf; --bg-9: #c2cee1; --bg-10: #e7edf7; --color-bg-1: #272b29; --color-bg-2: #313734; --color-bg-3: #3e4743; --color-bg-4: #4f5a54; --bg-hover: #3f4843; --bg-active: #4a5550; --text-primary: #eceadf; --text-secondary: #c8c7bb; --text-disabled: #8f9288; --text-0: #f5f2e8; --text-white: #f5f2e8; --color-text-1: #eceadf; --color-text-2: #c8c7bb; --color-text-3: #a7aa9f; --color-text-4: #7d8279; --border-base: #6f7870; --border-light: #595f5b; --border-special: #848c84; --color-border: #6f7870; --color-border-1: #6f7870; --color-border-2: #595f5b; --fill: #343a37; --color-fill: #343a37; --fill-0: rgba(236, 234, 223, 0.08); --fill-white-to-black: #1f2321; --dialog-fill-0: #373d3a; --inverse: #f2eee3; --success: #70c8b8; --warning: #caa56b; --danger: #e07098; --info: #7ab8b4; --message-user-bg: #4a335d; --message-tips-bg: #3b423f; --workspace-btn-bg: #404844; --color-guid-agent-bar: #3d4541; --retroma-accent-gradient: linear-gradient( 135deg, rgba(93, 78, 109, 0.82) 0%, rgba(80, 91, 103, 0.8) 52%, rgba(73, 88, 81, 0.78) 100% ); --retroma-accent-gradient-hover: linear-gradient( 135deg, rgba(88, 74, 104, 0.84) 0%, rgba(76, 88, 99, 0.82) 52%, rgba(70, 85, 78, 0.8) 100% ); --retroma-accent-vertical: linear-gradient(180deg, #c4b095 0%, #8db1a0 100%); } body { font-family: 'Meiryo', 'Yu Gothic UI', 'Hiragino Kaku Gothic ProN', 'Microsoft YaHei', 'PingFang SC', sans-serif; letter-spacing: 0.015em; background-color: var(--bg-base) !important; } body::before, body::after { content: ''; position: fixed; inset: -14%; pointer-events: none; z-index: 0; will-change: background-position, opacity, transform; } body::before { background-image: radial-gradient(circle at 8% 12%, rgba(172, 136, 208, 0.66) 0 1.2px, transparent 2.4px), radial-gradient(circle at 18% 82%, rgba(116, 178, 165, 0.62) 0 1.3px, transparent 2.5px), radial-gradient(circle at 36% 32%, rgba(202, 150, 198, 0.58) 0 1.1px, transparent 2.3px), radial-gradient(circle at 52% 14%, rgba(146, 180, 214, 0.58) 0 1.1px, transparent 2.2px), radial-gradient(circle at 64% 66%, rgba(152, 120, 184, 0.64) 0 1.3px, transparent 2.5px), radial-gradient(circle at 82% 22%, rgba(128, 182, 168, 0.6) 0 1.2px, transparent 2.4px), radial-gradient(circle at 90% 76%, rgba(178, 138, 210, 0.62) 0 1.2px, transparent 2.4px); background-size: 340px 340px, 420px 420px, 520px 520px, 620px 620px, 460px 460px, 560px 560px, 700px 700px; background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; animation: retroma-particle-drift 54s linear infinite; opacity: 0.9; } body::after { background-image: radial-gradient(circle at 12% 44%, rgba(236, 220, 250, 0.32) 0 2.1px, transparent 3.5px), radial-gradient(circle at 58% 74%, rgba(220, 245, 236, 0.26) 0 2px, transparent 3.3px), radial-gradient(circle at 84% 36%, rgba(242, 220, 238, 0.26) 0 2.2px, transparent 3.6px); background-size: 780px 780px, 940px 940px, 1120px 1120px; animation: retroma-particle-drift-slow 88s linear infinite, retroma-particle-twinkle 6.4s ease-in-out infinite; opacity: 0.46; } .app-shell { position: relative; z-index: 1; background-color: transparent !important; } .layout-content.bg-1, .layout-content { background-color: transparent !important; } .layout.arco-layout, .arco-layout { background: transparent !important; } .settings-modal .bg-2.rd-16px, .settings-modal .bg-2.rd-12px, .settings-modal .arco-collapse-item.bg-2, .settings-page-wrapper .bg-2.rd-16px, .settings-page-wrapper .bg-2.rd-12px, .settings-page-wrapper .arco-collapse-item.bg-2 { background: linear-gradient(180deg, #e6ede7 0%, #dde6df 100%) !important; border: 1px solid rgba(144, 170, 153, 0.42) !important; } [data-theme='dark'] .settings-modal .bg-2.rd-16px, [data-theme='dark'] .settings-modal .bg-2.rd-12px, [data-theme='dark'] .settings-modal .arco-collapse-item.bg-2, [data-theme='dark'] .settings-page-wrapper .bg-2.rd-16px, [data-theme='dark'] .settings-page-wrapper .bg-2.rd-12px, [data-theme='dark'] .settings-page-wrapper .arco-collapse-item.bg-2 { background: linear-gradient( 180deg, rgba(64, 72, 68, 0.95) 0%, rgba(55, 63, 59, 0.95) 56%, rgba(47, 55, 51, 0.94) 100% ) !important; border: 1px solid rgba(116, 126, 120, 0.3) !important; } /* WebUI settings cards: lower luminance for better dark-mode readability */ [data-theme='dark'] .settings-page-wrapper .bg-2.rd-16px .bg-fill-1, [data-theme='dark'] .settings-page-wrapper .bg-2.rd-12px .bg-fill-1, [data-theme='dark'] .settings-modal .bg-2.rd-16px .bg-fill-1, [data-theme='dark'] .settings-modal .bg-2.rd-12px .bg-fill-1 { background: rgba(68, 76, 72, 0.7) !important; border-color: rgba(112, 122, 116, 0.38) !important; } [data-theme='dark'] .settings-page-wrapper .bg-2.rd-16px .text-t-primary, [data-theme='dark'] .settings-page-wrapper .bg-2.rd-12px .text-t-primary, [data-theme='dark'] .settings-modal .bg-2.rd-16px .text-t-primary, [data-theme='dark'] .settings-modal .bg-2.rd-12px .text-t-primary { color: #f1ede2 !important; } [data-theme='dark'] .settings-page-wrapper .bg-2.rd-16px .text-t-secondary, [data-theme='dark'] .settings-page-wrapper .bg-2.rd-12px .text-t-secondary, [data-theme='dark'] .settings-modal .bg-2.rd-16px .text-t-secondary, [data-theme='dark'] .settings-modal .bg-2.rd-12px .text-t-secondary { color: #d1cec2 !important; } .app-titlebar { background: linear-gradient(180deg, #faf4e8 0%, #f2e8d8 100%) !important; border-bottom: 3px solid #9878b8 !important; color: #5a3878 !important; } [data-theme='dark'] .app-titlebar { background: linear-gradient(180deg, #434944 0%, #3b423d 44%, #343a36 100%) !important; border-bottom: 2px solid #9f8fb8 !important; color: #cfc5dc !important; } .app-titlebar__brand { color: #5a3878 !important; font-weight: 700 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important; letter-spacing: 0.05em !important; } [data-theme='dark'] .app-titlebar__brand { color: #cbc2d8 !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important; } .app-titlebar__button { color: #7a5898 !important; border-radius: 6px !important; } .app-titlebar__button:hover { background-color: rgba(152, 120, 184, 0.15) !important; color: #5a3878 !important; } [data-theme='dark'] .app-titlebar__button { color: #ad9dc0 !important; } [data-theme='dark'] .app-titlebar__button:hover { background-color: rgba(173, 157, 192, 0.16) !important; color: #cec4dd !important; } .layout-sider { background-color: var(--bg-1) !important; border-right: 1px solid #ccb8dc !important; } [data-theme='dark'] .layout-sider { background-color: var(--bg-1) !important; border-right: 1px solid #646d66 !important; } #root .layout-sider, #root .arco-layout-sider.layout-sider { border-right: 1px solid #ccb8dc !important; box-shadow: 1px 0 0 0 #b8a0cc, 2px 0 0 0 #f0c8d8, 3px 0 0 0 #8ab8a8 !important; } [data-theme='dark'] #root .layout-sider, [data-theme='dark'] #root .arco-layout-sider.layout-sider { border-right: 1px solid #646d66 !important; box-shadow: 1px 0 0 0 #59635c, 2px 0 0 0 #61586b, 3px 0 0 0 #547066 !important; } .layout-sider-header { background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 243, 230, 0.74) 100%) !important; border-bottom: 1px dashed rgba(184, 168, 204, 0.55) !important; } [data-theme='dark'] .layout-sider-header { background: linear-gradient( 180deg, rgba(67, 75, 70, 0.92) 0%, rgba(58, 66, 62, 0.91) 55%, rgba(50, 58, 54, 0.9) 100% ) !important; border-bottom: 1px dashed rgba(132, 142, 136, 0.28) !important; } [data-theme='dark'] body::before { background-image: radial-gradient(circle at 8% 12%, rgba(168, 132, 196, 0.54) 0 1.2px, transparent 2.4px), radial-gradient(circle at 18% 82%, rgba(109, 164, 152, 0.5) 0 1.3px, transparent 2.5px), radial-gradient(circle at 36% 32%, rgba(162, 126, 186, 0.48) 0 1.1px, transparent 2.3px), radial-gradient(circle at 52% 14%, rgba(96, 146, 168, 0.42) 0 1.1px, transparent 2.2px), radial-gradient(circle at 64% 66%, rgba(138, 108, 170, 0.52) 0 1.3px, transparent 2.5px), radial-gradient(circle at 82% 22%, rgba(106, 156, 144, 0.48) 0 1.2px, transparent 2.4px), radial-gradient(circle at 90% 76%, rgba(150, 118, 182, 0.5) 0 1.2px, transparent 2.4px); opacity: 0.84; } [data-theme='dark'] body::after { background-image: radial-gradient(circle at 12% 44%, rgba(210, 186, 232, 0.26) 0 2.1px, transparent 3.5px), radial-gradient(circle at 58% 74%, rgba(172, 210, 196, 0.22) 0 2px, transparent 3.3px), radial-gradient(circle at 84% 36%, rgba(190, 166, 216, 0.24) 0 2.2px, transparent 3.6px); opacity: 0.38; } .chat-history__item { border-radius: 10px !important; margin: 2px 6px !important; border: 1px solid transparent !important; transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important; } .chat-history__item:hover { background: rgba(255, 255, 255, 0.65) !important; } .settings-sider__item { border-radius: 10px !important; margin: 2px 6px !important; border: 1px solid transparent !important; transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important; } .settings-sider__item:hover { background: rgba(255, 255, 255, 0.58) !important; } .chat-history__item--active, .chat-history__item[aria-selected='true'], .chat-history__item[class~='!bg-active'], .settings-sider__item[class~='!bg-aou-2'] { background: var(--retroma-accent-gradient) !important; border-color: #c9b3de !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 2px 2px 0 rgba(176, 156, 202, 0.6) !important; } .chat-history__item--active::before, .chat-history__item[aria-selected='true']::before, .chat-history__item[class~='!bg-active']::before, .settings-sider__item[class~='!bg-aou-2']::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 0 4px 4px 0; background: var(--retroma-accent-vertical); } [data-theme='dark'] .chat-history__item:hover { background: rgba(92, 102, 96, 0.4) !important; } [data-theme='dark'] .chat-history__item--active, [data-theme='dark'] .chat-history__item[aria-selected='true'], [data-theme='dark'] .chat-history__item[class~='!bg-active'], [data-theme='dark'] .settings-sider__item[class~='!bg-aou-2'] { background: var(--retroma-accent-gradient) !important; border-color: #839086 !important; box-shadow: inset 0 0 0 1px rgba(232, 226, 214, 0.14), 2px 2px 0 rgba(33, 39, 36, 0.68) !important; } [data-theme='dark'] .settings-sider__item:hover { background: rgba(87, 98, 92, 0.34) !important; } [data-theme='dark'] .chat-history__item--active::before, [data-theme='dark'] .chat-history__item[aria-selected='true']::before, [data-theme='dark'] .chat-history__item[class~='!bg-active']::before, [data-theme='dark'] .settings-sider__item[class~='!bg-aou-2']::before { background: var(--retroma-accent-vertical) !important; } .chat-history--collapsed .chat-history__item, .settings-sider--collapsed .settings-sider__item, .layout-sider.collapsed .chat-history__item, .layout-sider.arco-layout-sider-collapsed .chat-history__item, .layout-sider.collapsed .settings-sider__item, .layout-sider.arco-layout-sider-collapsed .settings-sider__item { margin: 6px auto !important; width: 38px !important; min-width: 38px !important; min-height: 38px !important; padding: 0 !important; padding-inline: 0 !important; padding-block: 0 !important; justify-content: center !important; align-items: center !important; gap: 0 !important; } .chat-history--collapsed, .settings-sider--collapsed { scrollbar-width: thin !important; } .chat-history--collapsed::-webkit-scrollbar, .settings-sider--collapsed::-webkit-scrollbar { width: 4px !important; height: 4px !important; } .layout-sider.collapsed .overflow-y-auto, .layout-sider.arco-layout-sider-collapsed .overflow-y-auto { scrollbar-width: thin !important; } .layout-sider.collapsed .overflow-y-auto::-webkit-scrollbar, .layout-sider.arco-layout-sider-collapsed .overflow-y-auto::-webkit-scrollbar, .layout-sider.collapsed .arco-layout-sider-children::-webkit-scrollbar, .layout-sider.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar { width: 4px !important; height: 4px !important; } .chat-history--collapsed::-webkit-scrollbar-thumb, .settings-sider--collapsed::-webkit-scrollbar-thumb, .layout-sider.collapsed .overflow-y-auto::-webkit-scrollbar-thumb, .layout-sider.arco-layout-sider-collapsed .overflow-y-auto::-webkit-scrollbar-thumb, .layout-sider.collapsed .arco-layout-sider-children::-webkit-scrollbar-thumb, .layout-sider.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c4a8d8, #8a7aaa) !important; border-radius: 999px !important; } [data-theme='dark'] .chat-history--collapsed::-webkit-scrollbar-thumb, [data-theme='dark'] .settings-sider--collapsed::-webkit-scrollbar-thumb, [data-theme='dark'] .layout-sider.collapsed .overflow-y-auto::-webkit-scrollbar-thumb, [data-theme='dark'] .layout-sider.arco-layout-sider-collapsed .overflow-y-auto::-webkit-scrollbar-thumb, [data-theme='dark'] .layout-sider.collapsed .arco-layout-sider-children::-webkit-scrollbar-thumb, [data-theme='dark'] .layout-sider.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7a5c90, #4a2e68) !important; } .chat-history--collapsed .chat-history__item > :first-child, .settings-sider--collapsed .settings-sider__item > :first-child, .layout-sider.collapsed .chat-history__item > :first-child, .layout-sider.arco-layout-sider-collapsed .chat-history__item > :first-child, .layout-sider.collapsed .settings-sider__item > :first-child, .layout-sider.arco-layout-sider-collapsed .settings-sider__item > :first-child { margin: 0 auto !important; } .layout-sider.collapsed .settings-sider .settings-sider__item, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item { display: flex !important; align-items: center !important; justify-content: center !important; gap: 0 !important; } /* Settings sider collapsed: remove label layout footprint and force true centering */ .settings-sider--collapsed .settings-sider__item > :nth-child(2), .layout-sider.collapsed .settings-sider .settings-sider__item > :nth-child(2), .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > :nth-child(2) { display: none !important; } .settings-sider--collapsed .settings-sider__item, .layout-sider.collapsed .settings-sider .settings-sider__item, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item { padding: 0 !important; justify-content: center !important; align-items: center !important; } .settings-sider--collapsed .settings-sider__item::before, .layout-sider.collapsed .settings-sider .settings-sider__item::before, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item::before { content: none !important; display: none !important; } /* Collapsed sidebar: normalize utility padding/justify classes and center icon wrappers */ .layout-sider.collapsed .conversation-item, .layout-sider.arco-layout-sider-collapsed .conversation-item, .chat-history--collapsed .conversation-item, .settings-sider--collapsed .conversation-item { padding: 0 !important; justify-content: center !important; align-items: center !important; gap: 0 !important; } .layout-sider.collapsed .settings-sider .settings-sider__item > svg, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > svg, .layout-sider.collapsed .settings-sider .settings-sider__item > img, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > img, .layout-sider.collapsed .settings-sider .settings-sider__item > .mt-2px, .layout-sider.collapsed .settings-sider .settings-sider__item > [class*='w-20px'], .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > .mt-2px, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > [class*='w-20px'], .layout-sider.collapsed .chat-history__item > svg, .layout-sider.arco-layout-sider-collapsed .chat-history__item > svg, .layout-sider.collapsed .chat-history__item > img, .layout-sider.arco-layout-sider-collapsed .chat-history__item > img, .layout-sider.collapsed .chat-history__item > .mt-2px, .layout-sider.arco-layout-sider-collapsed .chat-history__item > .mt-2px, .layout-sider.collapsed .chat-history__item > [class*='w-24px'], .layout-sider.arco-layout-sider-collapsed .chat-history__item > [class*='w-24px'] { margin: 0 auto !important; width: 24px !important; height: 24px !important; min-width: 24px !important; display: flex !important; align-items: center !important; justify-content: center !important; transform: none !important; } .layout-sider.collapsed .settings-sider .settings-sider__item > svg, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > svg, .layout-sider.collapsed .settings-sider .settings-sider__item > .mt-2px svg, .layout-sider.collapsed .settings-sider .settings-sider__item > [class*='w-20px'] svg, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > .mt-2px svg, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > [class*='w-20px'] svg, .layout-sider.collapsed .chat-history__item > svg, .layout-sider.arco-layout-sider-collapsed .chat-history__item > svg, .layout-sider.collapsed .chat-history__item > .mt-2px svg, .layout-sider.arco-layout-sider-collapsed .chat-history__item > .mt-2px svg, .layout-sider.collapsed .chat-history__item > [class*='w-24px'] svg, .layout-sider.arco-layout-sider-collapsed .chat-history__item > [class*='w-24px'] svg { display: block !important; margin: 0 auto !important; width: 20px !important; height: 20px !important; transform: none !important; } .chat-history--collapsed .chat-history__item--active::before, .chat-history--collapsed .chat-history__item[aria-selected='true']::before, .chat-history--collapsed .chat-history__item[class~='!bg-active']::before, .settings-sider--collapsed .settings-sider__item[class~='!bg-aou-2']::before { top: 6px; bottom: 6px; width: 2px; } /* Collapsed selected state: use symmetric highlight to keep icon visually centered */ .chat-history--collapsed .chat-history__item--active, .chat-history--collapsed .chat-history__item[aria-selected='true'], .chat-history--collapsed .chat-history__item[class~='!bg-active'], .settings-sider--collapsed .settings-sider__item[class~='!bg-aou-2'] { box-shadow: inset 0 0 0 1px rgba(176, 156, 202, 0.58) !important; } .chat-history--collapsed .chat-history__item--active::before, .chat-history--collapsed .chat-history__item[aria-selected='true']::before, .chat-history--collapsed .chat-history__item[class~='!bg-active']::before, .settings-sider--collapsed .settings-sider__item[class~='!bg-aou-2']::before { display: none !important; } .layout-sider.collapsed .conversation-item::before, .layout-sider.arco-layout-sider-collapsed .conversation-item::before, .chat-history--collapsed .conversation-item::before, .settings-sider--collapsed .conversation-item::before { content: none !important; display: none !important; width: 0 !important; background: transparent !important; } .layout-sider.collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'], .layout-sider.arco-layout-sider-collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'] { box-shadow: inset 0 0 0 1px rgba(176, 156, 202, 0.58) !important; transform: none !important; } [data-theme='dark'] .layout-sider.collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'], [data-theme='dark'] .layout-sider.arco-layout-sider-collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'] { box-shadow: inset 0 0 0 1px rgba(177, 136, 212, 0.44) !important; transform: none !important; } [data-theme='dark'] .chat-history--collapsed .chat-history__item--active, [data-theme='dark'] .chat-history--collapsed .chat-history__item[aria-selected='true'], [data-theme='dark'] .chat-history--collapsed .chat-history__item[class~='!bg-active'], [data-theme='dark'] .settings-sider--collapsed .settings-sider__item[class~='!bg-aou-2'] { box-shadow: inset 0 0 0 1px rgba(177, 136, 212, 0.44) !important; } .arco-tree-node-title-wrapper { border-radius: 8px !important; } .arco-tree-node-selected > .arco-tree-node-title-wrapper { background: var(--brand-light) !important; color: var(--brand) !important; } .chat-layout-header { background: linear-gradient(180deg, #f2e8d8 0%, #ede4d8 100%) !important; border-bottom: none !important; box-shadow: 0 2px 8px rgba(152, 120, 184, 0.1) !important; } [data-theme='dark'] .chat-layout-header { background: linear-gradient(180deg, #454b47 0%, #3b423e 45%, #343a36 100%) !important; border-bottom: none !important; box-shadow: 0 2px 8px rgba(20, 24, 22, 0.3) !important; } .bg-dialog-fill-0 { background-color: var(--dialog-fill-0) !important; } .sendbox-panel { background: rgba(254, 251, 242, 0.95) !important; border: 2px solid #c0a8d8 !important; border-radius: 20px !important; box-shadow: 4px 4px 0 #b8a0cc, 0 4px 20px rgba(152, 120, 184, 0.12) !important; backdrop-filter: blur(6px); } [data-theme='dark'] .sendbox-panel { background: linear-gradient( 145deg, rgba(88, 76, 102, 0.5) 0%, rgba(74, 84, 82, 0.9) 46%, rgba(57, 65, 61, 0.96) 100% ) !important; border: 2px solid #726d7e !important; box-shadow: 4px 4px 0 #545e5a, 0 4px 20px rgba(31, 38, 35, 0.28) !important; } [class*='sendbox'] textarea, .sendbox-input--mobile { background: transparent !important; caret-color: #9878b8; } .guid-input-card-shell { background: linear-gradient( 160deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 251, 245, 0.99) 58%, rgba(246, 236, 252, 0.97) 100% ) !important; border: 2px solid #d4b8ea !important; border-width: 2px !important; box-shadow: none !important; } .guidContainer .guidInputCard textarea, [class*='guidContainer'] [class*='guidInputCard'] textarea { color: #2c1e38 !important; font-weight: 500 !important; } .guidContainer .guidInputCard textarea::placeholder, [class*='guidContainer'] [class*='guidInputCard'] textarea::placeholder { color: #8e78a8 !important; opacity: 1 !important; } [data-theme='dark'] .guidContainer .guidInputCard, [data-theme='dark'] [class*='guidContainer'] [class*='guidInputCard'] { background: linear-gradient( 160deg, rgba(56, 46, 70, 0.96) 0%, rgba(47, 54, 62, 0.96) 54%, rgba(39, 46, 50, 0.96) 100% ) !important; border: 2px solid #746a86 !important; border-width: 2px !important; box-shadow: none !important; } [data-theme='dark'] .guidContainer .guidInputCard textarea, [data-theme='dark'] [class*='guidContainer'] [class*='guidInputCard'] textarea { color: #f4ecff !important; } [data-theme='dark'] .guidContainer .guidInputCard textarea::placeholder, [data-theme='dark'] [class*='guidContainer'] [class*='guidInputCard'] textarea::placeholder { color: #b8a0d0 !important; } /* guid page controls: keep Y2K style consistent in both light/dark */ .guidContainer .sendbox-model-btn.guid-config-btn { border: 1.5px solid #ccb8e0 !important; background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 233, 248, 0.9) 100%) !important; color: #6f4b90 !important; box-shadow: 2px 2px 0 #d5c2e8 !important; } .guidContainer .sendbox-model-btn.guid-config-btn:hover { border-color: #b08acc !important; background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 222, 246, 0.95) 100%) !important; box-shadow: 3px 3px 0 #c7aede !important; } [data-theme='dark'] .guidContainer .sendbox-model-btn.guid-config-btn { border: 1.5px solid #5f477f !important; background: linear-gradient(180deg, rgba(55, 40, 76, 0.92) 0%, rgba(44, 32, 62, 0.9) 100%) !important; color: #d5b7f0 !important; box-shadow: 2px 2px 0 #432f61 !important; } [data-theme='dark'] .guidContainer .sendbox-model-btn.guid-config-btn:hover { border-color: #8060aa !important; background: linear-gradient(180deg, rgba(63, 46, 88, 0.95) 0%, rgba(50, 36, 72, 0.95) 100%) !important; box-shadow: 3px 3px 0 #563d78 !important; } .guidContainer .actionTools .arco-btn.arco-btn-text { border-radius: 10px !important; background: rgba(246, 238, 251, 0.78) !important; } [data-theme='dark'] .guidContainer .actionTools .arco-btn.arco-btn-text { background: rgba(52, 38, 74, 0.7) !important; } .guidContainer [data-agent-pill='true'][data-agent-selected='true'] { box-shadow: inset 0 0 0 1px rgba(122, 88, 152, 0.28), 0 2px 8px rgba(122, 88, 152, 0.18) !important; } [data-theme='dark'] .guidContainer [data-agent-pill='true'][data-agent-selected='true'] { box-shadow: inset 0 0 0 1px rgba(192, 144, 224, 0.3), 0 2px 10px rgba(30, 20, 50, 0.45) !important; } .guidContainer .arco-menu-item.arco-menu-selected, .guidContainer .arco-menu-light .arco-menu-selected { background: var(--retroma-accent-gradient) !important; color: var(--brand) !important; } [data-theme='dark'] .guidContainer .arco-menu-item.arco-menu-selected, [data-theme='dark'] .guidContainer .arco-menu-dark .arco-menu-selected { background: var(--retroma-accent-gradient) !important; color: #e2c8f7 !important; } .send-button-custom, .send-button-custom.arco-btn, .send-button-custom.arco-btn-primary { background: linear-gradient(160deg, #a878c0 0%, #7a5898 56%, #6a9b92 100%) !important; border: 1.5px solid #6a4888 !important; border-radius: 10px !important; box-shadow: 3px 3px 0 #4a2a68, 5px 5px 12px rgba(90, 50, 120, 0.25) !important; color: #fff !important; transition: all 0.12s ease !important; } .send-button-custom:hover, .send-button-custom.arco-btn:hover { background: linear-gradient(160deg, #b888d0 0%, #8a68a8 56%, #7baea5 100%) !important; box-shadow: 4px 4px 0 #4a2a68, 6px 6px 14px rgba(90, 50, 120, 0.3) !important; transform: translate(-1px, -1px) !important; } .send-button-custom:active, .send-button-custom.arco-btn:active { transform: translate(2px, 2px) !important; box-shadow: 1px 1px 0 #4a2a68, 2px 2px 6px rgba(90, 50, 120, 0.2) !important; } [data-theme='dark'] .send-button-custom, [data-theme='dark'] .send-button-custom.arco-btn { background: linear-gradient(160deg, #9868c0 0%, #6848a0 56%, #4f7f77 100%) !important; border-color: #7858a8 !important; box-shadow: 3px 3px 0 #2c1050, 5px 5px 12px rgba(80, 30, 120, 0.45) !important; } .message-item.user .message-bubble { background: linear-gradient(135deg, #ead8f8 0%, #d8c4f0 100%) !important; color: #2c1e38 !important; border-radius: 16px 16px 4px 16px !important; border: 1.5px solid #c4a8e0 !important; box-shadow: 3px 3px 0 rgba(180, 140, 220, 0.4) !important; padding: 10px 14px !important; } .message-item.ai .message-bubble, .message-item.assistant .message-bubble { background: rgba(254, 251, 242, 0.97) !important; color: #2c1e38 !important; border-radius: 16px 16px 16px 4px !important; border: 1.5px solid #d0c4e0 !important; box-shadow: 3px 3px 0 rgba(184, 168, 204, 0.35) !important; padding: 10px 14px !important; } .message-item.ai .arco-alert, .message-item.ai [class*='alert'] { background: rgba(244, 240, 250, 0.8) !important; border: 1px solid #d4c8ec !important; border-radius: 8px !important; } .message-item.ai .arco-card, .message-item.ai [class*='card'] { background: rgba(248, 243, 230, 0.9) !important; border: 1px solid #d0c4e0 !important; border-radius: 8px !important; } [data-theme='dark'] .message-item.user .message-bubble { background: linear-gradient(135deg, #4a335d 0%, #362645 100%) !important; color: #f0e8fc !important; border: 1.5px solid #7f5f95 !important; box-shadow: 3px 3px 0 rgba(84, 60, 98, 0.55) !important; } [data-theme='dark'] .message-item.ai .message-bubble, [data-theme='dark'] .message-item.assistant .message-bubble { background: linear-gradient( 170deg, rgba(74, 83, 78, 0.97) 0%, rgba(62, 71, 67, 0.97) 58%, rgba(56, 64, 60, 0.97) 100% ) !important; color: #f2eee3 !important; border: 1.5px solid #7d897f !important; box-shadow: 3px 3px 0 rgba(50, 59, 54, 0.5) !important; } [data-theme='dark'] .message-item.ai .arco-alert, [data-theme='dark'] .message-item.ai [class*='alert'] { background: rgba(40, 30, 56, 0.85) !important; border: 1px solid #504068 !important; } [data-theme='dark'] .message-item.ai .arco-card, [data-theme='dark'] .message-item.ai [class*='card'] { background: rgba(36, 28, 52, 0.92) !important; border: 1px solid #504068 !important; } .rd-20px.text-14px.pb-40px.lh-20px { border: 1.5px solid var(--border-base) !important; border-left: 3px solid var(--brand) !important; border-radius: 12px !important; } .rd-20px.text-14px.pb-40px .arco-tag { background: var(--aou-2) !important; color: var(--brand) !important; border-color: var(--aou-3) !important; } [data-theme='dark'] .rd-20px.text-14px.pb-40px .arco-tag { background: var(--aou-3) !important; color: var(--aou-8) !important; border-color: var(--aou-4) !important; } .arco-btn-primary { background: linear-gradient(160deg, #a878c0 0%, #7a5898 56%, #6a9b92 100%) !important; border: 1.5px solid #6a4888 !important; border-radius: 10px !important; color: #fff !important; font-weight: 600 !important; box-shadow: 3px 3px 0 #4a2a68, 5px 5px 12px rgba(90, 50, 120, 0.25) !important; transition: all 0.12s ease !important; text-shadow: 0 1px 2px rgba(40, 0, 60, 0.3) !important; } .arco-btn-primary:hover { background: linear-gradient(160deg, #b888d0 0%, #8a68a8 56%, #7baea5 100%) !important; box-shadow: 4px 4px 0 #4a2a68, 6px 6px 14px rgba(90, 50, 120, 0.3) !important; transform: translate(-1px, -1px) !important; } .arco-btn-primary:active { transform: translate(2px, 2px) !important; box-shadow: 1px 1px 0 #4a2a68, 2px 2px 6px rgba(90, 50, 120, 0.2) !important; } [data-theme='dark'] .arco-btn-primary { background: linear-gradient(160deg, #9868c0 0%, #6848a0 56%, #4f7f77 100%) !important; border-color: #7858a8 !important; box-shadow: 3px 3px 0 #2c1050, 5px 5px 12px rgba(80, 30, 120, 0.45) !important; } .arco-btn-secondary, .arco-btn-outline { border: 1.5px solid var(--border-base) !important; border-radius: 10px !important; background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-2) 100%) !important; color: var(--brand) !important; font-weight: 600 !important; box-shadow: 3px 3px 0 var(--border-base), 4px 4px 8px rgba(100, 70, 140, 0.1) !important; transition: all 0.12s ease !important; } .arco-btn-secondary:hover, .arco-btn-outline:hover { border-color: var(--brand) !important; box-shadow: 4px 4px 0 var(--aou-3), 5px 5px 10px rgba(100, 70, 140, 0.15) !important; transform: translate(-1px, -1px) !important; } .arco-btn-secondary:active, .arco-btn-outline:active { transform: translate(2px, 2px) !important; box-shadow: 1px 1px 0 var(--border-base) !important; } [data-theme='dark'] .arco-btn-secondary, [data-theme='dark'] .arco-btn-outline { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%) !important; border-color: var(--border-base) !important; color: var(--brand) !important; box-shadow: 3px 3px 0 var(--bg-4), 4px 4px 8px rgba(0, 0, 0, 0.3) !important; } .sendbox-tools .arco-btn, .sendbox-tools .arco-btn:hover, .sendbox-tools .arco-btn:active { transform: none !important; box-shadow: none !important; } .settings-page-wrapper .arco-input-wrapper, .settings-page-wrapper .arco-textarea-wrapper, .settings-page-wrapper .arco-input-inner-wrapper, .settings-modal .arco-input-wrapper, .settings-modal .arco-textarea-wrapper, .settings-modal .arco-input-inner-wrapper { border-radius: 10px !important; border: 1.5px solid var(--border-base) !important; background: var(--bg-base) !important; box-shadow: inset 0 2px 4px rgba(80, 40, 100, 0.06) !important; transition: border-color 0.15s ease, box-shadow 0.15s ease !important; } .settings-page-wrapper .arco-input-wrapper:focus-within, .settings-page-wrapper .arco-textarea-wrapper:focus-within, .settings-page-wrapper .arco-input-inner-wrapper:focus-within, .settings-modal .arco-input-wrapper:focus-within, .settings-modal .arco-textarea-wrapper:focus-within, .settings-modal .arco-input-inner-wrapper:focus-within { border-color: var(--brand) !important; box-shadow: inset 0 2px 4px rgba(80, 40, 100, 0.06), 0 0 0 2.5px rgba(122, 88, 152, 0.15) !important; } [data-theme='dark'] .settings-page-wrapper .arco-input-wrapper, [data-theme='dark'] .settings-page-wrapper .arco-textarea-wrapper, [data-theme='dark'] .settings-page-wrapper .arco-input-inner-wrapper, [data-theme='dark'] .settings-modal .arco-input-wrapper, [data-theme='dark'] .settings-modal .arco-textarea-wrapper, [data-theme='dark'] .settings-modal .arco-input-inner-wrapper { background: var(--bg-2) !important; border-color: var(--border-base) !important; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important; } .arco-dropdown-menu, .arco-select-popup { border-radius: 12px !important; border: 1.5px solid var(--border-base) !important; box-shadow: 4px 4px 0 var(--border-base), 6px 6px 18px rgba(80, 50, 120, 0.12) !important; } .arco-dropdown-menu { max-height: min(40vh, 220px) !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain !important; -webkit-overflow-scrolling: touch; } .arco-select-popup .arco-select-popup-inner { border-radius: inherit !important; max-height: min(40vh, 220px) !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain !important; -webkit-overflow-scrolling: touch; } [data-theme='dark'] .arco-dropdown-menu, [data-theme='dark'] .arco-select-popup { background: var(--bg-2) !important; box-shadow: 4px 4px 0 var(--bg-4), 6px 6px 18px rgba(0, 0, 0, 0.5) !important; } .arco-modal { border-radius: 14px !important; overflow: visible !important; border: 2px solid var(--border-base) !important; box-shadow: 6px 6px 0 var(--border-base), 10px 10px 30px rgba(80, 50, 120, 0.2) !important; } .aionui-modal:not(.conversation-search-modal) .arco-modal-content { overflow: visible !important; max-height: calc(100vh - 32px) !important; box-sizing: border-box !important; } .aionui-modal:not(.conversation-search-modal) .aionui-modal-body-content { overflow: auto !important; max-height: calc(100vh - 148px) !important; box-sizing: border-box !important; } [data-theme='dark'] .arco-modal { border-color: var(--border-base) !important; box-shadow: 6px 6px 0 var(--bg-4), 10px 10px 30px rgba(0, 0, 0, 0.6) !important; } .arco-modal-header { background: linear-gradient(180deg, #faf4e8 0%, #f2e8d8 100%) !important; border-bottom: 3px solid #9878b8 !important; padding: 10px 20px !important; } [data-theme='dark'] .arco-modal-header { background: linear-gradient(180deg, #221630 0%, #1a1028 100%) !important; border-bottom: 3px solid #c090e0 !important; } .arco-modal-title { color: #5a3878 !important; font-weight: 700 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important; } [data-theme='dark'] .arco-modal-title { color: #e0cef8 !important; text-shadow: none !important; } .arco-card { border-radius: 12px !important; border: 1.5px solid var(--border-base) !important; box-shadow: 3px 3px 0 var(--border-base), 4px 4px 10px rgba(80, 50, 120, 0.08) !important; background: var(--bg-base) !important; } [data-theme='dark'] .arco-card { background: var(--bg-2) !important; border-color: var(--border-base) !important; box-shadow: 3px 3px 0 var(--bg-4), 4px 4px 10px rgba(0, 0, 0, 0.35) !important; } .arco-collapse { border-radius: 10px !important; border: 1px solid var(--border-base) !important; overflow: hidden !important; } .arco-tag { border-radius: 999px !important; font-weight: 500 !important; font-size: 12px !important; padding: 1px 10px !important; border: 1.5px solid currentColor !important; } .markdown-shadow-body h1, [class*='markdown'] h1 { color: var(--brand); } .markdown-shadow-body h2, [class*='markdown'] h2 { color: var(--color-primary); } .markdown-shadow-body h3, [class*='markdown'] h3 { color: #6e8020; } [data-theme='dark'] .markdown-shadow-body h3, [data-theme='dark'] [class*='markdown'] h3 { color: #a8c050; } .markdown-shadow-body h4, [class*='markdown'] h4 { color: var(--success); } .markdown-shadow-body a, [class*='markdown'] a { color: #b878a8; text-decoration-color: rgba(184, 120, 168, 0.4); text-underline-offset: 2px; } [data-theme='dark'] .markdown-shadow-body a, [data-theme='dark'] [class*='markdown'] a { color: #d8a8e0; } .markdown-shadow-body pre, [class*='markdown'] pre { background: var(--bg-2) !important; border: 1.5px solid var(--border-base) !important; border-radius: 8px !important; box-shadow: 3px 3px 0 var(--border-base) !important; } [data-theme='dark'] .markdown-shadow-body pre, [data-theme='dark'] [class*='markdown'] pre { background: #2b3139 !important; border-color: var(--border-base) !important; box-shadow: 3px 3px 0 var(--bg-4) !important; } .markdown-shadow-body code:not(pre code), [class*='markdown'] code:not(pre code) { background: var(--brand-light) !important; color: var(--brand) !important; border: 1px solid var(--aou-3) !important; border-radius: 4px !important; padding: 1px 5px !important; font-size: 0.88em !important; } [data-theme='dark'] .markdown-shadow-body code:not(pre code), [data-theme='dark'] [class*='markdown'] code:not(pre code) { background: var(--brand-light) !important; color: var(--brand) !important; border-color: var(--aou-4) !important; } .aion-file-changes-panel { border: 1.5px solid #ccb8e0 !important; border-radius: 12px !important; box-shadow: 0 0 0 1px rgba(168, 120, 192, 0.22), 0 8px 18px rgba(152, 120, 184, 0.16) !important; } .aion-file-changes-panel > div:first-child { box-shadow: inset 0 -1px 0 rgba(184, 156, 210, 0.5); } [data-theme='dark'] .aion-file-changes-panel { border-color: #7f61a0 !important; box-shadow: 0 0 0 1px rgba(177, 136, 212, 0.26), 0 10px 22px rgba(58, 34, 88, 0.5) !important; } [data-theme='dark'] .aion-file-changes-panel > div:first-child { box-shadow: inset 0 -1px 0 rgba(148, 112, 186, 0.44); } .arco-divider { border-color: var(--border-base) !important; border-style: dashed !important; } ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c4a8d8, #8a7aaa); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d4b8e8, #9a8aba); } [data-theme='dark'] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #604878, #382250); } [data-theme='dark'] ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #7a5c90, #4a2e68); } @keyframes retroma-particle-drift { 0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } 25% { background-position: 24px -32px, -22px 26px, 28px 18px, -18px -12px, 34px -20px, -26px 22px, 18px -16px; } 50% { background-position: 52px -14px, -42px 48px, 56px -20px, -46px 16px, 64px -34px, -48px 44px, 38px -28px; } 75% { background-position: 30px 20px, -18px 72px, 24px -38px, -14px 34px, 42px -18px, -22px 54px, 20px -8px; } 100% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } } @keyframes retroma-particle-drift-slow { 0% { background-position: 0 0, 0 0, 0 0; transform: translate3d(0, 0, 0); } 50% { background-position: 42px -28px, -34px 36px, 52px 24px; transform: translate3d(0, -4px, 0); } 100% { background-position: 0 0, 0 0, 0 0; transform: translate3d(0, 0, 0); } } @keyframes retroma-particle-twinkle { 0%, 100% { opacity: 0.34; } 50% { opacity: 0.58; } } ::selection { background: rgba(184, 140, 220, 0.28); } [data-theme='dark'] ::selection { background: rgba(192, 144, 224, 0.32); } /* AionUi Theme Background Start */ /* Preview cover only: do not auto-inject full-page background image */ /* AionUi Theme Background End */ `,Xv=`/* Retroma Obsidian Theme - AionUi Adaptation */ /* Inspired by retroma-obsidian-theme color philosophy */ /* Low-saturation organic palette with warm purples, teal blues, and olive greens */ :root { /* ===== Primary: Retroma Teal-Blue ===== */ --color-primary: #0f7887; --primary: #0f7887; --color-primary-light-1: #2a9aac; --color-primary-light-2: #4db8c8; --color-primary-light-3: #80d0dc; --color-primary-dark-1: #0a5a66; --primary-rgb: 15, 120, 135; /* ===== Brand: Retroma Warm Purple ===== */ --brand: #6e3a66; --brand-light: #f2e8f0; --brand-hover: #9d6094; --color-brand-fill: #6e3a66; --color-brand-bg: #f2e8f0; /* ===== AOU Palette: Warm Olive-Green Gradient ===== */ --aou-1: #f4f4ec; --aou-2: #e8e9d8; --aou-3: #d0d2b0; --aou-4: #b4b888; --aou-5: #979d62; --aou-6: #737f16; --aou-7: #575f10; --aou-8: #3c420b; --aou-9: #222606; --aou-10: #0c0e02; /* ===== Backgrounds: Warm Parchment ===== */ --bg-base: #faf9f6; --bg-1: #f5f4ef; --bg-2: #eeede5; --bg-3: #e2e0d4; --bg-4: #cbc8b8; --bg-5: #b0ac9a; --bg-6: #8c8878; --bg-8: #575450; --bg-9: #2c2b28; --bg-10: #111009; --color-bg-1: #f5f4ef; --color-bg-2: #eeede5; --color-bg-3: #e2e0d4; --color-bg-4: #cbc8b8; /* ===== Interactive States ===== */ --bg-hover: #ebe9df; --bg-active: #e0ded4; /* ===== Text: Warm Dark ===== */ --text-primary: #1d011d; --text-secondary: #6e6060; --text-disabled: #b8b0a8; --text-0: #1d011d; --text-white: #faf9f6; --color-text-1: #1d011d; --color-text-2: #6e6060; --color-text-3: #9e9490; --color-text-4: #c8c0bc; /* ===== Borders ===== */ --border-base: #d8d4c8; --border-light: #e8e6dc; --border-special: #d0ccc0; --color-border: #d8d4c8; --color-border-1: #d8d4c8; --color-border-2: #e8e6dc; /* ===== Fill & Inverse ===== */ --fill: #f5f4ef; --color-fill: #f5f4ef; --fill-0: #faf9f6; --fill-white-to-black: #faf9f6; --dialog-fill-0: #faf9f6; --inverse: #1d011d; /* ===== Semantic Colors ===== */ --success: #35847e; --warning: #b07a10; --danger: #b03030; --info: #0f7887; /* ===== Message & Component ===== */ --message-user-bg: #e9e4f0; --message-tips-bg: #f1edf6; --workspace-btn-bg: #eeece4; /* ===== Color GUID Agent Bar ===== */ --color-guid-agent-bar: #eae8de; --hl-chip-bg: #f3eee2; --hl-chip-text: #5a4a3a; --hl-chip-border: #d7ccb7; } /* ===== Dark Mode Overrides ===== */ [data-theme='dark'] { /* Primary: Retroma Teal (dark-adjusted) */ --color-primary: #6e8ddb; --primary: #6e8ddb; --color-primary-light-1: #8fa8e8; --color-primary-light-2: #aabff0; --color-primary-light-3: #c5d5f6; --color-primary-dark-1: #4f70c4; --primary-rgb: 110, 141, 219; /* Brand: Retroma Purple (dark) */ --brand: #be80bf; --brand-light: #3d2840; --brand-hover: #9a60a0; --color-brand-fill: #be80bf; --color-brand-bg: #3d2840; /* AOU Palette: Dark Olive */ --aou-1: #232318; --aou-2: #363525; --aou-3: #4a4a30; --aou-4: #666640; --aou-5: #898a54; --aou-6: #a2a554; --aou-7: #bbbf6e; --aou-8: #d0d490; --aou-9: #e4e6b8; --aou-10: #f2f4da; /* Backgrounds: Dark Obsidian with warm undertones */ --bg-base: #0f0f0c; --bg-1: #18180f; --bg-2: #222217; --bg-3: #2e2e20; --bg-4: #3c3c2c; --bg-5: #4e4e3a; --bg-6: #606050; --bg-8: #848470; --bg-9: #b0b09a; --bg-10: #d8d8c8; --color-bg-1: #18180f; --color-bg-2: #222217; --color-bg-3: #2e2e20; --color-bg-4: #3c3c2c; /* Interactive States */ --bg-hover: #1e1e14; --bg-active: #28281c; /* Text: Retroma warm near-white */ --text-primary: #e8e6d8; --text-secondary: #a8a498; --text-disabled: #686458; --text-0: #f0ede0; --text-white: #f0ede0; --color-text-1: #e8e6d8; --color-text-2: #a8a498; --color-text-3: #787468; --color-text-4: #504c44; /* Borders */ --border-base: #3a3a28; --border-light: #2a2a1e; --border-special: #4a4a36; --color-border: #3a3a28; --color-border-1: #3a3a28; --color-border-2: #2a2a1e; /* Fill & Inverse */ --fill: #18180f; --color-fill: #18180f; --fill-0: rgba(255, 252, 240, 0.07); --fill-white-to-black: #0f0f0c; --dialog-fill-0: #2e2e20; --inverse: #f0ede0; /* Semantic Colors */ --success: #68a99d; --warning: #d4963a; --danger: #c86060; --info: #6e8ddb; /* Message & Component */ --message-user-bg: #3a3444; --message-tips-bg: #2f2a38; --workspace-btn-bg: #1e1e14; /* Color GUID Agent Bar */ --color-guid-agent-bar: #2a2a1e; --hl-chip-bg: #d6ccb8; --hl-chip-text: #3f3528; --hl-chip-border: #b5a88f; } /* ===== Typography ===== */ body { font-family: 'Georgia', 'Palatino Linotype', 'Book Antiqua', 'Source Han Serif', serif; letter-spacing: 0.01em; } /* ===== Scrollbar Styling ===== */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--bg-1); } ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--brand); } /* ===== Message Headings (H1-H5) ===== */ .message-content h1, .markdown-body h1 { color: var(--brand); } .message-content h2, .markdown-body h2 { color: var(--color-primary); } .message-content h3, .markdown-body h3 { color: var(--aou-6); } .message-content h4, .markdown-body h4 { color: var(--success); } .message-content h5, .markdown-body h5 { color: #465881; } [data-theme='dark'] .message-content h5, [data-theme='dark'] .markdown-body h5 { color: #7a90c8; } /* ===== Links ===== */ .message-content a, .markdown-body a, .markdown-shadow-body a, [class*='markdown'] a { color: #5b63cf; -webkit-text-fill-color: #5b63cf; text-decoration-color: rgba(91, 99, 207, 0.55); text-underline-offset: 2px; } [data-theme='light'] .message-content a:hover, [data-theme='light'] .markdown-body a:hover, [data-theme='light'] .markdown-shadow-body a:hover, [data-theme='light'] [class*='markdown'] a:hover { color: #464fc0 !important; -webkit-text-fill-color: #464fc0 !important; text-decoration-color: rgba(70, 79, 192, 0.8) !important; } [data-theme='light'] .message-content a:visited, [data-theme='light'] .markdown-body a:visited, [data-theme='light'] .markdown-shadow-body a:visited, [data-theme='light'] [class*='markdown'] a:visited { color: #7a63b0 !important; -webkit-text-fill-color: #7a63b0 !important; text-decoration-color: rgba(122, 99, 176, 0.65) !important; } [data-theme='dark'] .message-content a, [data-theme='dark'] .markdown-body a, [data-theme='dark'] .markdown-shadow-body a, [data-theme='dark'] [class*='markdown'] a { color: #cfe0ff !important; -webkit-text-fill-color: #cfe0ff !important; text-decoration-color: rgba(207, 224, 255, 0.85) !important; } [data-theme='dark'] .message-content a:hover, [data-theme='dark'] .markdown-body a:hover, [data-theme='dark'] .markdown-shadow-body a:hover, [data-theme='dark'] [class*='markdown'] a:hover { color: #e7efff !important; -webkit-text-fill-color: #e7efff !important; text-decoration-color: rgba(231, 239, 255, 0.98) !important; } [data-theme='dark'] .message-content a:visited, [data-theme='dark'] .markdown-body a:visited, [data-theme='dark'] .markdown-shadow-body a:visited, [data-theme='dark'] [class*='markdown'] a:visited { color: #d4c6fa !important; -webkit-text-fill-color: #d4c6fa !important; text-decoration-color: rgba(212, 198, 250, 0.82) !important; } /* ===== Code Blocks ===== */ .message-content pre, .markdown-body pre { background: var(--bg-2); border: 1px solid var(--border-base); border-radius: 6px; } [data-theme='dark'] .message-content pre, [data-theme='dark'] .markdown-body pre { background: #141410; border-color: var(--border-base); } /* ===== Inline Code / Highlight Chip ===== */ .message-content code:not(pre code), .markdown-body code:not(pre code), .markdown-shadow-body code:not(pre code), [class*='markdown'] code:not(pre code) { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border: 1px solid var(--hl-chip-border) !important; border-radius: 7px !important; padding: 1px 8px !important; font-size: 0.9em !important; font-weight: 650 !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; background-clip: border-box !important; } [data-theme='dark'] .message-content code:not(pre code), [data-theme='dark'] .markdown-body code:not(pre code), [data-theme='dark'] .markdown-shadow-body code:not(pre code), [data-theme='dark'] [class*='markdown'] code:not(pre code) { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border-color: var(--hl-chip-border) !important; box-shadow: inset 0 0 0 1px rgba(90, 66, 108, 0.12) !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } /* ===== Emphasis Highlight (Bold with Background) ===== */ .message-content strong, .markdown-body strong, .markdown-shadow-body strong, [class*='markdown'] strong { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; padding: 0 6px !important; border-radius: 4px !important; border: 1px solid var(--hl-chip-border) !important; box-decoration-break: clone; -webkit-box-decoration-break: clone; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } [data-theme='dark'] .message-content strong, [data-theme='dark'] .markdown-body strong, [data-theme='dark'] .markdown-shadow-body strong, [data-theme='dark'] [class*='markdown'] strong { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border-color: var(--hl-chip-border) !important; box-shadow: inset 0 0 0 1px rgba(90, 66, 108, 0.1) !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } [data-theme='light'] .message-content mark, [data-theme='light'] .markdown-body mark, [data-theme='light'] .markdown-shadow-body mark, [data-theme='light'] [class*='markdown'] mark, [data-theme='dark'] .message-content mark, [data-theme='dark'] .markdown-body mark, [data-theme='dark'] .markdown-shadow-body mark, [data-theme='dark'] [class*='markdown'] mark { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border: 1px solid var(--hl-chip-border) !important; border-radius: 4px !important; padding: 0 4px !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } .message-content strong *, .markdown-body strong *, .markdown-shadow-body strong *, [class*='markdown'] strong *, .message-content code:not(pre code) *, .markdown-body code:not(pre code) *, .markdown-shadow-body code:not(pre code) *, [class*='markdown'] code:not(pre code) *, .message-content mark *, .markdown-body mark *, .markdown-shadow-body mark *, [class*='markdown'] mark * { color: var(--hl-chip-text) !important; -webkit-text-fill-color: var(--hl-chip-text) !important; opacity: 1 !important; } /* ===== Sidebar ===== */ .layout-sider { background-color: var(--bg-1); border-right: 1px solid var(--border-base); } /* ===== Conversation Bubble (AOU purple-gray) ===== */ .message-item.user .message-bubble { background: var(--message-user-bg) !important; border: 1px solid #cbc0da !important; } [data-theme='dark'] .message-item.user .message-bubble { background: var(--message-user-bg) !important; border-color: color-mix(in srgb, var(--aou-5) 46%, var(--border-base)) !important; } /* ===== Selection Highlight ===== */ ::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); } [data-theme='dark'] ::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); } /* AionUi Theme Background Start */ /* Preview cover only: do not auto-inject full-page background image */ /* AionUi Theme Background End */ `,$v=`/* Discourse Horizon Theme - AionUi Adaptation */ /* Inspired by the official Horizon theme for Discourse */ /* Spacious surfaces, soft indigo accents, pill controls, and quiet contrast */ :root { /* ===== Primary: Horizon Indigo ===== */ --color-primary: #595bca; --primary: #595bca; --color-primary-light-1: #7678d7; --color-primary-light-2: #9697e4; --color-primary-light-3: #bbbdf0; --color-primary-dark-1: #4347a7; --primary-rgb: 89, 91, 202; /* ===== Brand: Soft Slate Indigo ===== */ --brand: #6f76a9; --brand-light: #f0f2ff; --brand-hover: #9096c4; --color-brand-fill: #6f76a9; --color-brand-bg: #f0f2ff; /* ===== AOU Palette: Indigo Mist ===== */ --aou-1: #f7f8ff; --aou-2: #eef0ff; --aou-3: #d7dfff; --aou-4: #c0c9f2; --aou-5: #9fa8df; --aou-6: #7c84d2; --aou-7: #595bca; --aou-8: #41449a; --aou-9: #2a2d66; --aou-10: #16173a; /* ===== Backgrounds ===== */ --bg-base: #ffffff; --bg-1: #f7f8fc; --bg-2: #f2f4fb; --bg-3: #e6e9f3; --bg-4: #ced5e4; --bg-5: #aeb7c9; --bg-6: #8690a6; --bg-8: #566074; --bg-9: #2d3444; --bg-10: #141824; --color-bg-1: #f7f8fc; --color-bg-2: #f2f4fb; --color-bg-3: #e6e9f3; --color-bg-4: #ced5e4; /* ===== Interactive States ===== */ --bg-hover: #eef1fa; --bg-active: #e4e8f5; /* ===== Text ===== */ --text-primary: #1a1a1a; --text-secondary: #646b7c; --text-disabled: #a8afbf; --text-0: #111111; --text-white: #ffffff; --color-text-1: #1a1a1a; --color-text-2: #646b7c; --color-text-3: #8b93a7; --color-text-4: #b6becf; /* ===== Borders ===== */ --border-base: #e4e8f3; --border-light: #f1f4fa; --border-special: #d7dfff; --color-border: #e4e8f3; --color-border-1: #e4e8f3; --color-border-2: #f1f4fa; /* ===== Fill & Inverse ===== */ --fill: #f7f8fc; --color-fill: #f7f8fc; --fill-0: #ffffff; --fill-white-to-black: #ffffff; --dialog-fill-0: #ffffff; --inverse: #10121a; /* ===== Semantic Colors ===== */ --success: #39845b; --warning: #d3881f; --danger: #d14b54; --info: #595bca; /* ===== Message & Component ===== */ --message-user-bg: #eef0ff; --message-tips-bg: #f6f7fc; --workspace-btn-bg: #f2f4fb; --color-guid-agent-bar: #f5f7ff; --hl-chip-bg: #edf0ff; --hl-chip-text: #41449a; --hl-chip-border: #d4dcff; --horizon-shell-bg: #eef0ff; --horizon-pane-bg: #f5f6ff; --horizon-surface: #ffffff; --horizon-surface-soft: #f7f8fc; --horizon-selected: #d7dfff; --horizon-focus-ring: rgba(89, 91, 202, 0.18); --horizon-shadow-soft: 0 8px 24px -22px rgba(45, 52, 68, 0.22); --horizon-shadow-hover: 0 16px 28px -24px rgba(89, 91, 202, 0.24); --horizon-aurora-input-gradient: linear-gradient( 90deg, #ff6a01 0%, #f8c91c 12.5%, #8a2be2 25%, #00bfff 37.5%, #ff6a01 50%, #f8c91c 62.5%, #8a2be2 75%, #00bfff 87.5%, #ff6a01 100% ); --horizon-aurora-input-ring: rgba(255, 162, 84, 0.24); --horizon-aurora-input-shadow: 0 18px 40px rgba(110, 58, 102, 0.16), 0 0 28px rgba(15, 120, 135, 0.1); --horizon-aurora-input-shadow-strong: 0 22px 48px rgba(110, 58, 102, 0.2), 0 0 34px rgba(0, 191, 255, 0.18); --horizon-aurora-placeholder: #8f7c7b; } [data-theme='dark'] { /* ===== Primary: Horizon Indigo Dark ===== */ --color-primary: #7b7ff0; --primary: #7b7ff0; --color-primary-light-1: #979af7; --color-primary-light-2: #b2b5fb; --color-primary-light-3: #ccd0ff; --color-primary-dark-1: #5e62da; --primary-rgb: 123, 127, 240; /* ===== Brand: Muted Mist ===== */ --brand: #a0a5cf; --brand-light: #2c3044; --brand-hover: #b9bde1; --color-brand-fill: #a0a5cf; --color-brand-bg: #2c3044; /* ===== AOU Palette: Indigo Slate ===== */ --aou-1: #242632; --aou-2: #2c3040; --aou-3: #3b3e56; --aou-4: #4c516d; --aou-5: #62698c; --aou-6: #7b81aa; --aou-7: #9ca2ca; --aou-8: #c0c6ea; --aou-9: #e1e5ff; --aou-10: #f5f7ff; /* ===== Backgrounds ===== */ --bg-base: #1a1a1a; --bg-1: #202125; --bg-2: #262834; --bg-3: #333548; --bg-4: #43475c; --bg-5: #5c6278; --bg-6: #788099; --bg-8: #a8aec3; --bg-9: #d3d7e2; --bg-10: #f0f2f7; --color-bg-1: #202125; --color-bg-2: #262834; --color-bg-3: #333548; --color-bg-4: #43475c; /* ===== Interactive States ===== */ --bg-hover: #2a2d3b; --bg-active: #323647; /* ===== Text ===== */ --text-primary: #f5f6f8; --text-secondary: #c1c5d1; --text-disabled: #747c8d; --text-0: #ffffff; --text-white: #ffffff; --color-text-1: #f5f6f8; --color-text-2: #c1c5d1; --color-text-3: #8f96a8; --color-text-4: #666d7d; /* ===== Borders ===== */ --border-base: #373b4d; --border-light: #2c3040; --border-special: #4a5070; --color-border: #373b4d; --color-border-1: #373b4d; --color-border-2: #2c3040; /* ===== Fill & Inverse ===== */ --fill: #202125; --color-fill: #202125; --fill-0: rgba(255, 255, 255, 0.08); --fill-white-to-black: #1a1a1a; --dialog-fill-0: #262834; --inverse: #ffffff; /* ===== Semantic Colors ===== */ --success: #67ac86; --warning: #e5a33a; --danger: #e06d76; --info: #7b7ff0; /* ===== Message & Component ===== */ --message-user-bg: #303459; --message-tips-bg: #232632; --workspace-btn-bg: #252935; --color-guid-agent-bar: #21242f; --hl-chip-bg: #313651; --hl-chip-text: #dce0ff; --hl-chip-border: #474d71; --horizon-shell-bg: #09070f; --horizon-pane-bg: #110f18; --horizon-surface: #1c1d22; --horizon-surface-soft: #22242d; --horizon-selected: #3b3e56; --horizon-focus-ring: rgba(123, 127, 240, 0.22); --horizon-shadow-soft: 0 12px 28px -24px rgba(0, 0, 0, 0.45); --horizon-shadow-hover: 0 18px 32px -24px rgba(0, 0, 0, 0.58); --horizon-aurora-input-gradient: linear-gradient( 90deg, #ff6a01 0%, #f8c91c 12.5%, #8a2be2 25%, #00bfff 37.5%, #ff6a01 50%, #f8c91c 62.5%, #8a2be2 75%, #00bfff 87.5%, #ff6a01 100% ); --horizon-aurora-input-ring: rgba(166, 214, 255, 0.22); --horizon-aurora-input-shadow: 0 22px 48px rgba(6, 10, 18, 0.5), 0 0 32px rgba(138, 43, 226, 0.16); --horizon-aurora-input-shadow-strong: 0 26px 54px rgba(4, 8, 16, 0.62), 0 0 38px rgba(0, 191, 255, 0.22); --horizon-aurora-placeholder: #958a83; } body { font-family: 'Georgia', 'Palatino Linotype', 'Book Antiqua', 'Source Han Serif', serif; letter-spacing: 0.003em; background: linear-gradient(180deg, var(--horizon-shell-bg) 0%, var(--bg-1) 100%) !important; color: var(--text-primary); } [data-theme='dark'] body { background: linear-gradient(180deg, var(--horizon-shell-bg) 0%, var(--bg-base) 100%) !important; } .app-shell, .layout-content.bg-1, .layout-content, .layout.arco-layout, .arco-layout { background: transparent !important; } .app-titlebar { background: var(--horizon-pane-bg) !important; border-bottom: 1px solid var(--border-base) !important; box-shadow: none !important; } [data-theme='dark'] .app-titlebar { background: var(--horizon-pane-bg) !important; } .app-titlebar__brand { color: var(--text-primary) !important; font-weight: 700 !important; letter-spacing: 0.01em !important; } .app-titlebar__button { border-radius: 999px !important; color: var(--text-secondary) !important; transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease !important; } .app-titlebar__button:hover { background: color-mix(in srgb, var(--horizon-selected) 55%, var(--horizon-pane-bg)) !important; color: var(--color-primary) !important; } .layout-sider { background: var(--horizon-pane-bg) !important; border-right: 1px solid var(--border-base) !important; box-shadow: none !important; } [data-theme='dark'] .layout-sider { background: var(--horizon-pane-bg) !important; } .layout-sider-header { background: transparent !important; border-bottom: 1px solid color-mix(in srgb, var(--border-base) 80%, transparent) !important; } .chat-history__item, .settings-sider__item { position: relative; margin: 4px 8px !important; border: 1px solid transparent !important; border-radius: 14px !important; transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease !important; } .chat-history__item:hover, .settings-sider__item:hover { background: color-mix(in srgb, var(--horizon-selected) 48%, var(--horizon-pane-bg)) !important; border-color: color-mix(in srgb, var(--border-base) 76%, var(--aou-3)) !important; box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.04) !important; } .chat-history__item--active, .chat-history__item[aria-selected='true'], .chat-history__item[class~='!bg-active'], .settings-sider__item[class~='!bg-aou-2'] { background: linear-gradient(180deg, var(--aou-2) 0%, var(--bg-base) 100%) !important; border-color: var(--aou-3) !important; box-shadow: var(--horizon-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important; } .chat-history__item--active::before, .chat-history__item[aria-selected='true']::before, .chat-history__item[class~='!bg-active']::before, .settings-sider__item[class~='!bg-aou-2']::before { content: ''; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light-2) 100%); } [data-theme='dark'] .chat-history__item:hover, [data-theme='dark'] .settings-sider__item:hover { background: color-mix(in srgb, var(--horizon-selected) 42%, var(--horizon-pane-bg)) !important; } [data-theme='dark'] .chat-history__item--active, [data-theme='dark'] .chat-history__item[aria-selected='true'], [data-theme='dark'] .chat-history__item[class~='!bg-active'], [data-theme='dark'] .settings-sider__item[class~='!bg-aou-2'] { background: linear-gradient(135deg, rgba(59, 62, 86, 0.96) 0%, rgba(49, 54, 77, 0.98) 100%) !important; box-shadow: var(--horizon-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important; } .chat-history--collapsed .chat-history__item, .settings-sider--collapsed .settings-sider__item, .layout-sider.collapsed .chat-history__item, .layout-sider.arco-layout-sider-collapsed .chat-history__item, .layout-sider.collapsed .settings-sider__item, .layout-sider.arco-layout-sider-collapsed .settings-sider__item { margin: 6px auto !important; width: 40px !important; min-width: 40px !important; min-height: 40px !important; padding: 0 !important; justify-content: center !important; align-items: center !important; gap: 0 !important; } .chat-history--collapsed, .settings-sider--collapsed { scrollbar-width: none !important; } .chat-history--collapsed::-webkit-scrollbar, .settings-sider--collapsed::-webkit-scrollbar, .layout-sider.collapsed .overflow-y-auto::-webkit-scrollbar, .layout-sider.arco-layout-sider-collapsed .overflow-y-auto::-webkit-scrollbar, .layout-sider.collapsed .arco-layout-sider-children::-webkit-scrollbar, .layout-sider.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar { width: 0 !important; height: 0 !important; } .chat-history--collapsed .chat-history__item > :first-child, .settings-sider--collapsed .settings-sider__item > :first-child, .layout-sider.collapsed .chat-history__item > :first-child, .layout-sider.arco-layout-sider-collapsed .chat-history__item > :first-child, .layout-sider.collapsed .settings-sider__item > :first-child, .layout-sider.arco-layout-sider-collapsed .settings-sider__item > :first-child { margin: 0 auto !important; } .layout-sider.collapsed .settings-sider .settings-sider__item > :nth-child(2), .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > :nth-child(2), .settings-sider--collapsed .settings-sider__item > :nth-child(2) { display: none !important; } .layout-sider.collapsed .conversation-item, .layout-sider.arco-layout-sider-collapsed .conversation-item, .chat-history--collapsed .conversation-item, .settings-sider--collapsed .conversation-item { padding: 0 !important; justify-content: center !important; align-items: center !important; gap: 0 !important; } .layout-sider.collapsed .settings-sider .settings-sider__item > svg, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > svg, .layout-sider.collapsed .settings-sider .settings-sider__item > img, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > img, .layout-sider.collapsed .settings-sider .settings-sider__item > .mt-2px, .layout-sider.collapsed .settings-sider .settings-sider__item > [class*='w-20px'], .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > .mt-2px, .layout-sider.arco-layout-sider-collapsed .settings-sider .settings-sider__item > [class*='w-20px'], .layout-sider.collapsed .chat-history__item > svg, .layout-sider.arco-layout-sider-collapsed .chat-history__item > svg, .layout-sider.collapsed .chat-history__item > img, .layout-sider.arco-layout-sider-collapsed .chat-history__item > img, .layout-sider.collapsed .chat-history__item > .mt-2px, .layout-sider.arco-layout-sider-collapsed .chat-history__item > .mt-2px, .layout-sider.collapsed .chat-history__item > [class*='w-24px'], .layout-sider.arco-layout-sider-collapsed .chat-history__item > [class*='w-24px'] { margin: 0 auto !important; width: 24px !important; height: 24px !important; min-width: 24px !important; display: flex !important; align-items: center !important; justify-content: center !important; transform: none !important; } .chat-history--collapsed .chat-history__item--active, .chat-history--collapsed .chat-history__item[aria-selected='true'], .chat-history--collapsed .chat-history__item[class~='!bg-active'], .settings-sider--collapsed .settings-sider__item[class~='!bg-aou-2'], .layout-sider.collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'], .layout-sider.arco-layout-sider-collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'] { box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.2) !important; } .chat-history--collapsed .chat-history__item--active::before, .chat-history--collapsed .chat-history__item[aria-selected='true']::before, .chat-history--collapsed .chat-history__item[class~='!bg-active']::before, .settings-sider--collapsed .settings-sider__item[class~='!bg-aou-2']::before, .layout-sider.collapsed .conversation-item::before, .layout-sider.arco-layout-sider-collapsed .conversation-item::before, .chat-history--collapsed .conversation-item::before, .settings-sider--collapsed .conversation-item::before { content: none !important; display: none !important; } [data-theme='dark'] .chat-history--collapsed .chat-history__item--active, [data-theme='dark'] .chat-history--collapsed .chat-history__item[aria-selected='true'], [data-theme='dark'] .chat-history--collapsed .chat-history__item[class~='!bg-active'], [data-theme='dark'] .settings-sider--collapsed .settings-sider__item[class~='!bg-aou-2'], [data-theme='dark'] .layout-sider.collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'], [data-theme='dark'] .layout-sider.arco-layout-sider-collapsed .settings-sider [data-settings-id][class*='!bg-aou-2'] { box-shadow: inset 0 0 0 1px rgba(123, 127, 240, 0.24) !important; } .chat-layout-header { background: var(--horizon-surface) !important; border-bottom: 1px solid color-mix(in srgb, var(--border-base) 86%, transparent) !important; box-shadow: none !important; } [data-theme='dark'] .chat-layout-header { background: var(--horizon-surface-soft) !important; } .bg-dialog-fill-0 { background-color: var(--dialog-fill-0) !important; } .settings-modal .bg-2.rd-16px, .settings-modal .bg-2.rd-12px, .settings-modal .arco-collapse-item.bg-2, .settings-page-wrapper .bg-2.rd-16px, .settings-page-wrapper .bg-2.rd-12px, .settings-page-wrapper .arco-collapse-item.bg-2, .arco-card, .aion-file-changes-panel { background: linear-gradient(180deg, var(--horizon-surface) 0%, var(--horizon-surface-soft) 100%) !important; border: 1px solid var(--border-base) !important; border-radius: 20px !important; box-shadow: var(--horizon-shadow-soft) !important; } [data-theme='dark'] .settings-modal .bg-2.rd-16px, [data-theme='dark'] .settings-modal .bg-2.rd-12px, [data-theme='dark'] .settings-modal .arco-collapse-item.bg-2, [data-theme='dark'] .settings-page-wrapper .bg-2.rd-16px, [data-theme='dark'] .settings-page-wrapper .bg-2.rd-12px, [data-theme='dark'] .settings-page-wrapper .arco-collapse-item.bg-2, [data-theme='dark'] .arco-card, [data-theme='dark'] .aion-file-changes-panel { background: linear-gradient(180deg, var(--horizon-surface-soft) 0%, var(--horizon-surface) 100%) !important; box-shadow: var(--horizon-shadow-soft) !important; } .arco-modal, .arco-dropdown-menu, .arco-select-popup { background: var(--horizon-surface) !important; border-radius: 20px !important; border: 1px solid var(--border-base) !important; box-shadow: var(--horizon-shadow-soft) !important; } [data-theme='dark'] .arco-modal, [data-theme='dark'] .arco-dropdown-menu, [data-theme='dark'] .arco-select-popup { background: var(--horizon-surface-soft) !important; box-shadow: var(--horizon-shadow-soft) !important; } .arco-btn { border-radius: 999px !important; font-weight: 600 !important; transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease !important; } .arco-btn-primary, .send-button-custom, .send-button-custom.arco-btn, .send-button-custom.arco-btn-primary { background: var(--color-primary) !important; border-color: transparent !important; color: #ffffff !important; box-shadow: none !important; } .arco-btn-primary:hover, .arco-btn-primary:focus-visible, .send-button-custom:hover, .send-button-custom.arco-btn:hover, .send-button-custom:focus-visible, .send-button-custom.arco-btn:focus-visible { background: var(--color-primary) !important; box-shadow: 0 0 0 4px var(--horizon-focus-ring) !important; } .arco-btn-secondary, .arco-btn-outline { background: color-mix(in srgb, var(--horizon-surface) 90%, var(--aou-1)) !important; border: 1px solid var(--border-base) !important; color: var(--text-primary) !important; box-shadow: none !important; } .arco-btn-secondary:hover, .arco-btn-secondary:focus-visible, .arco-btn-outline:hover, .arco-btn-outline:focus-visible { border-color: var(--aou-4) !important; color: var(--color-primary) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--horizon-focus-ring) 82%, transparent) !important; } [data-theme='dark'] .arco-btn-secondary, [data-theme='dark'] .arco-btn-outline { background: color-mix(in srgb, var(--horizon-surface-soft) 92%, var(--aou-2)) !important; } .arco-input-wrapper, .arco-textarea-wrapper, .arco-input-inner-wrapper { border-radius: 8px !important; border: 1px solid var(--border-base) !important; background: color-mix(in srgb, var(--horizon-surface) 92%, var(--aou-1)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important; transition: border-color 0.16s ease, box-shadow 0.16s ease !important; } .arco-input-wrapper:focus-within, .arco-textarea-wrapper:focus-within, .arco-input-inner-wrapper:focus-within { border-color: var(--color-primary) !important; box-shadow: 0 0 0 4px var(--horizon-focus-ring) !important; } [data-theme='dark'] .arco-input-wrapper, [data-theme='dark'] .arco-textarea-wrapper, [data-theme='dark'] .arco-input-inner-wrapper { background: color-mix(in srgb, var(--horizon-surface-soft) 92%, var(--aou-2)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important; } .arco-input-wrapper input::placeholder, .arco-textarea-wrapper textarea::placeholder, .arco-input-inner-wrapper input::placeholder { color: var(--text-secondary) !important; opacity: 0.82 !important; } .arco-select-view, .arco-picker, .arco-picker-input, .arco-picker-focused .arco-picker-input, .arco-select-view-single, .arco-select-view-multiple { position: relative; border-radius: 8px !important; border: 1px solid var(--border-base) !important; background: color-mix(in srgb, var(--horizon-surface) 92%, var(--aou-1)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important; transition: border-color 0.16s ease, box-shadow 0.16s ease !important; } .arco-select-view:hover, .arco-picker:hover, .arco-picker-input:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--border-base)) !important; } .arco-select-view:focus-within, .arco-select-view.arco-select-view-focus, .arco-picker-focused, .arco-picker-focused .arco-picker-input { border-color: var(--color-primary) !important; box-shadow: 0 0 0 4px var(--horizon-focus-ring) !important; } [data-theme='dark'] .arco-select-view, [data-theme='dark'] .arco-picker, [data-theme='dark'] .arco-picker-input, [data-theme='dark'] .arco-picker-focused .arco-picker-input, [data-theme='dark'] .arco-select-view-single, [data-theme='dark'] .arco-select-view-multiple { background: color-mix(in srgb, var(--horizon-surface-soft) 92%, var(--aou-2)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important; } .arco-select-view-value, .arco-picker input, .arco-picker-value, .arco-picker-suffix-icon, .arco-select-view-arrow-icon, .arco-select-view-clear-icon { color: var(--text-primary) !important; } .arco-select-view input::placeholder, .arco-picker input::placeholder { color: var(--text-secondary) !important; opacity: 0.82 !important; } [class*='guidInputCard'] textarea, [class*='guidContainer'] [class*='guidInputCard'] textarea, .relative.p-16px.border-3.b.bg-dialog-fill-0.b-solid.rd-20px.flex.flex-col:has(.sendbox-tools) textarea, .sendbox-input--mobile { background: transparent !important; color: var(--text-primary) !important; caret-color: var(--color-primary); } .relative.p-16px.border-3.b.bg-dialog-fill-0.b-solid.rd-20px.flex.flex-col:has(.sendbox-tools), [class*='guidInputCard'], .guidContainer .guidInputCard { position: relative; background: color-mix(in srgb, var(--horizon-surface) 94%, var(--aou-1)) !important; border: 1px solid var(--border-base) !important; border-radius: 20px !important; box-shadow: var(--horizon-shadow-soft) !important; } .relative.p-16px.border-3.b.bg-dialog-fill-0.b-solid.rd-20px.flex.flex-col:has(.sendbox-tools):focus-within, [class*='guidInputCard']:focus-within, .guidContainer .guidInputCard:focus-within { overflow: visible !important; border: 1px solid transparent !important; background-color: var(--dialog-fill-0) !important; background-image: linear-gradient(var(--dialog-fill-0), var(--dialog-fill-0)), var(--horizon-aurora-input-gradient) !important; background-size: 100% 100%, 220% 100% !important; background-repeat: no-repeat, no-repeat !important; background-position: center center, 0% 50% !important; background-origin: border-box !important; background-clip: padding-box, border-box !important; box-shadow: 0 0 0 1px var(--horizon-aurora-input-ring), 0 0 16px rgba(255, 106, 1, 0.1), 0 0 18px rgba(138, 43, 226, 0.1), 0 0 20px rgba(0, 191, 255, 0.12), var(--horizon-aurora-input-shadow) !important; animation: horizonAuroraFlow 2.8s linear infinite, horizonAuroraGlow 3.2s ease-in-out infinite; } [class*='searchInput'] { box-shadow: none !important; } [class*='searchInput']:focus-within, [class*='searchInput']:hover { box-shadow: none !important; } [class*='searchInput'] .arco-input-group, [class*='searchInput'] .arco-input, [class*='searchInput'] .arco-input-group-prefix { background: transparent !important; box-shadow: none !important; } [class*='searchInput'] .arco-input-inner-wrapper, [class*='searchInput'] .arco-input-inner-wrapper:hover, [class*='searchInput'] .arco-input-inner-wrapper:focus-within, [class*='searchInput'] .arco-input-inner-wrapper.arco-input-inner-wrapper-focus { border: none !important; border-radius: 0 !important; background: transparent !important; background-image: none !important; box-shadow: none !important; animation: none !important; } .sendbox-tools .arco-btn, .sendbox-tools .arco-btn:hover, .sendbox-tools .arco-btn:active, .sendbox-tools .arco-btn:focus-visible { transform: none !important; box-shadow: none !important; } .sendbox-model-btn, .header-model-btn, .agent-mode-compact-pill, .guidContainer .sendbox-model-btn.guid-config-btn { border: 1px solid var(--border-base) !important; background: color-mix(in srgb, var(--horizon-surface) 92%, var(--aou-1)) !important; color: var(--text-primary) !important; } .sendbox-model-btn:hover, .sendbox-model-btn:focus-visible, .header-model-btn:hover, .header-model-btn:focus-visible, .agent-mode-compact-pill:hover, .agent-mode-compact-pill:focus-visible, .guidContainer .sendbox-model-btn.guid-config-btn:hover, .guidContainer .sendbox-model-btn.guid-config-btn:focus-visible { border-color: var(--color-primary) !important; color: var(--color-primary) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--horizon-focus-ring) 82%, transparent) !important; } [data-theme='dark'] .sendbox-model-btn, [data-theme='dark'] .header-model-btn, [data-theme='dark'] .agent-mode-compact-pill, [data-theme='dark'] .guidContainer .sendbox-model-btn.guid-config-btn { background: color-mix(in srgb, var(--horizon-surface-soft) 92%, var(--aou-2)) !important; } .guidContainer .actionTools .arco-btn.arco-btn-text { border-radius: 999px !important; background: color-mix(in srgb, var(--horizon-surface) 90%, var(--aou-1)) !important; } [data-theme='dark'] .guidContainer .actionTools .arco-btn.arco-btn-text { background: color-mix(in srgb, var(--horizon-surface-soft) 90%, var(--aou-2)) !important; } .guidContainer [data-agent-pill='true'][data-agent-selected='true'] { box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.22), 0 6px 18px -14px rgba(var(--primary-rgb), 0.32) !important; } [data-theme='dark'] .guidContainer [data-agent-pill='true'][data-agent-selected='true'] { box-shadow: inset 0 0 0 1px rgba(123, 127, 240, 0.28), 0 10px 20px -16px rgba(0, 0, 0, 0.52) !important; } .guidContainer .arco-menu-item.arco-menu-selected, .guidContainer .arco-menu-light .arco-menu-selected { background: color-mix(in srgb, var(--horizon-selected) 72%, var(--horizon-surface)) !important; color: var(--color-primary) !important; } [data-theme='dark'] .guidContainer .arco-menu-item.arco-menu-selected, [data-theme='dark'] .guidContainer .arco-menu-dark .arco-menu-selected { background: color-mix(in srgb, var(--horizon-selected) 76%, var(--horizon-surface-soft)) !important; color: #dce0ff !important; } .arco-dropdown-menu-item, .arco-select-option, .arco-cascader-option, .arco-menu-item, .arco-menu-inline-header, .arco-menu-pop-header { border-radius: 10px !important; color: var(--text-primary) !important; transition: background-color 0.16s ease, color 0.16s ease !important; } .arco-dropdown-menu { padding: 0 !important; border-radius: 14px !important; max-height: min(40vh, 220px) !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain !important; -webkit-overflow-scrolling: touch; } .arco-select-popup .arco-select-popup-inner { border-radius: inherit !important; max-height: min(40vh, 220px) !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain !important; -webkit-overflow-scrolling: touch; } .arco-dropdown-menu-item { border-radius: 0 !important; } .arco-dropdown-menu-item:first-child { border-top-left-radius: inherit !important; border-top-right-radius: inherit !important; } .arco-dropdown-menu-item:last-child { border-bottom-left-radius: inherit !important; border-bottom-right-radius: inherit !important; } .arco-dropdown-menu-item:hover, .arco-select-option:not(.arco-select-option-disabled):hover, .arco-cascader-option:hover, .arco-menu-item:hover, .arco-menu-inline-header:hover, .arco-menu-pop-header:hover { background: color-mix(in srgb, var(--horizon-selected) 62%, var(--horizon-surface)) !important; color: var(--color-primary) !important; } .arco-select-option-active, .arco-dropdown-menu-item-active, .arco-menu-selected, .arco-menu-item.arco-menu-selected { background: color-mix(in srgb, var(--horizon-selected) 78%, var(--horizon-surface)) !important; color: var(--color-primary) !important; } [data-theme='dark'] .arco-dropdown-menu-item:hover, [data-theme='dark'] .arco-select-option:not(.arco-select-option-disabled):hover, [data-theme='dark'] .arco-cascader-option:hover, [data-theme='dark'] .arco-menu-item:hover, [data-theme='dark'] .arco-menu-inline-header:hover, [data-theme='dark'] .arco-menu-pop-header:hover, [data-theme='dark'] .arco-select-option-active, [data-theme='dark'] .arco-dropdown-menu-item-active, [data-theme='dark'] .arco-menu-selected, [data-theme='dark'] .arco-menu-item.arco-menu-selected { background: color-mix(in srgb, var(--horizon-selected) 82%, var(--horizon-surface-soft)) !important; color: #dce0ff !important; } .arco-tabs-nav { border-bottom: 1px solid color-mix(in srgb, var(--border-base) 86%, transparent) !important; } .arco-tabs-nav-tab { color: var(--text-secondary) !important; border-radius: 999px !important; padding: 8px 14px !important; margin-inline: 4px !important; transition: background-color 0.16s ease, color 0.16s ease !important; } .arco-tabs-nav-tab:hover { background: color-mix(in srgb, var(--horizon-selected) 45%, var(--horizon-surface)) !important; color: var(--color-primary) !important; } .arco-tabs-nav-tab-active { color: var(--color-primary) !important; font-weight: 700 !important; } .arco-tabs-nav-ink { height: 2px !important; background: var(--color-primary) !important; } .arco-collapse-item-header { border-radius: 14px !important; color: var(--text-primary) !important; transition: background-color 0.16s ease, color 0.16s ease !important; } .arco-collapse-item-header:hover { background: color-mix(in srgb, var(--horizon-selected) 40%, var(--horizon-surface)) !important; } .arco-collapse-item-content { border-top-color: color-mix(in srgb, var(--border-base) 86%, transparent) !important; } .arco-collapse-item-content-box { color: var(--text-primary) !important; } .arco-tree-node-title-wrapper { border-radius: 10px !important; transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease !important; } .workspace-tree .arco-tree-node:hover .arco-tree-node-title, .arco-tree-node:hover > .arco-tree-node-title-wrapper { background: color-mix(in srgb, var(--horizon-selected) 42%, var(--horizon-surface)) !important; } .arco-tree-node-selected > .arco-tree-node-title-wrapper { background: color-mix(in srgb, var(--horizon-selected) 72%, var(--horizon-surface)) !important; color: var(--color-primary) !important; box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.14) !important; } [data-theme='dark'] .workspace-tree .arco-tree-node:hover .arco-tree-node-title, [data-theme='dark'] .arco-tree-node:hover > .arco-tree-node-title-wrapper, [data-theme='dark'] .arco-tree-node-selected > .arco-tree-node-title-wrapper { background: color-mix(in srgb, var(--horizon-selected) 76%, var(--horizon-surface-soft)) !important; } .arco-switch { background-color: color-mix(in srgb, var(--border-base) 78%, var(--bg-3)) !important; } .arco-switch-checked { background-color: var(--color-primary) !important; } .arco-switch-handle { box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18) !important; } .arco-checkbox-icon, .arco-radio-mask { border-color: var(--border-base) !important; background: color-mix(in srgb, var(--horizon-surface) 92%, var(--aou-1)) !important; } .arco-checkbox-checked .arco-checkbox-icon, .arco-radio-checked .arco-radio-mask { border-color: var(--color-primary) !important; background: var(--color-primary) !important; } .arco-radio-checked .arco-radio-mask::after { background: #ffffff !important; } .message-item.user .message-bubble { background: linear-gradient(135deg, #eef0ff 0%, #e7ebff 100%) !important; border: 1px solid #d7dfff !important; border-radius: 20px 20px 8px 20px !important; box-shadow: 0 16px 28px -26px rgba(89, 91, 202, 0.32) !important; } .message-item.ai .message-bubble, .message-item.assistant .message-bubble { background: color-mix(in srgb, var(--horizon-surface) 96%, var(--bg-1)) !important; border: 1px solid var(--border-base) !important; border-radius: 20px 20px 20px 8px !important; box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.18) !important; } [data-theme='dark'] .message-item.user .message-bubble { background: linear-gradient(135deg, #313557 0%, #2a2d4a 100%) !important; border-color: #4a5070 !important; box-shadow: 0 18px 30px -26px rgba(0, 0, 0, 0.42) !important; } [data-theme='dark'] .message-item.ai .message-bubble, [data-theme='dark'] .message-item.assistant .message-bubble { background: linear-gradient(180deg, rgba(38, 40, 52, 0.98) 0%, rgba(32, 33, 37, 1) 100%) !important; box-shadow: 0 16px 28px -24px rgba(0, 0, 0, 0.42) !important; } .message-item.ai .arco-alert, .message-item.ai [class*='alert'] { background: color-mix(in srgb, var(--horizon-surface-soft) 88%, var(--aou-1)) !important; border: 1px solid var(--border-base) !important; border-radius: 12px !important; } .message-item.ai .arco-card, .message-item.ai [class*='card'], .message-item.ai [class*='status']:not([class*='message']):not([class*='bubble']) { background: linear-gradient(180deg, var(--horizon-surface) 0%, var(--horizon-surface-soft) 100%) !important; border: 1px solid var(--border-base) !important; border-radius: 16px !important; box-shadow: none !important; } [data-theme='dark'] .message-item.ai .arco-alert, [data-theme='dark'] .message-item.ai [class*='alert'] { background: color-mix(in srgb, var(--horizon-surface-soft) 86%, var(--aou-2)) !important; } [data-theme='dark'] .message-item.ai .arco-card, [data-theme='dark'] .message-item.ai [class*='card'], [data-theme='dark'] .message-item.ai [class*='status']:not([class*='message']):not([class*='bubble']) { background: linear-gradient(180deg, var(--horizon-surface-soft) 0%, var(--horizon-surface) 100%) !important; } .message-content, .markdown-body, .markdown-shadow-body, [class*='markdown'] { line-height: 1.74; } .message-content h1, .markdown-body h1, .markdown-shadow-body h1, [class*='markdown'] h1 { color: var(--text-primary); letter-spacing: -0.02em; } .message-content h2, .markdown-body h2, .markdown-shadow-body h2, [class*='markdown'] h2 { color: var(--color-primary); letter-spacing: -0.015em; } .message-content h3, .markdown-body h3, .markdown-shadow-body h3, [class*='markdown'] h3 { color: var(--brand); } .message-content h4, .markdown-body h4, .markdown-shadow-body h4, [class*='markdown'] h4 { color: var(--success); } .message-content h5, .markdown-body h5, .markdown-shadow-body h5, [class*='markdown'] h5 { color: var(--text-secondary); } .message-content a, .markdown-body a, .markdown-shadow-body a, [class*='markdown'] a { color: var(--color-primary); -webkit-text-fill-color: var(--color-primary); text-decoration-color: rgba(var(--primary-rgb), 0.38); text-underline-offset: 2px; } .message-content a:hover, .markdown-body a:hover, .markdown-shadow-body a:hover, [class*='markdown'] a:hover { color: var(--color-primary-dark-1) !important; -webkit-text-fill-color: var(--color-primary-dark-1) !important; text-decoration-color: rgba(var(--primary-rgb), 0.68) !important; } [data-theme='dark'] .message-content a, [data-theme='dark'] .markdown-body a, [data-theme='dark'] .markdown-shadow-body a, [data-theme='dark'] [class*='markdown'] a { color: #cfd3ff !important; -webkit-text-fill-color: #cfd3ff !important; } [data-theme='dark'] .message-content a:hover, [data-theme='dark'] .markdown-body a:hover, [data-theme='dark'] .markdown-shadow-body a:hover, [data-theme='dark'] [class*='markdown'] a:hover { color: #eef0ff !important; -webkit-text-fill-color: #eef0ff !important; } [data-theme='light'] .message-content a:visited, [data-theme='light'] .markdown-body a:visited, [data-theme='light'] .markdown-shadow-body a:visited, [data-theme='light'] [class*='markdown'] a:visited { color: #7c72b8 !important; -webkit-text-fill-color: #7c72b8 !important; text-decoration-color: rgba(124, 114, 184, 0.6) !important; } [data-theme='dark'] .message-content a:visited, [data-theme='dark'] .markdown-body a:visited, [data-theme='dark'] .markdown-shadow-body a:visited, [data-theme='dark'] [class*='markdown'] a:visited { color: #d7cfff !important; -webkit-text-fill-color: #d7cfff !important; text-decoration-color: rgba(215, 207, 255, 0.72) !important; } .message-content pre, .markdown-body pre, .markdown-shadow-body pre, [class*='markdown'] pre { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%) !important; border: 1px solid var(--border-base) !important; border-radius: 18px !important; box-shadow: 0 20px 32px -28px rgba(15, 23, 42, 0.22) !important; } [data-theme='dark'] .message-content pre, [data-theme='dark'] .markdown-body pre, [data-theme='dark'] .markdown-shadow-body pre, [data-theme='dark'] [class*='markdown'] pre { background: linear-gradient(180deg, #262834 0%, #202125 100%) !important; box-shadow: 0 20px 32px -28px rgba(0, 0, 0, 0.56) !important; } .message-content pre:has(> div), .markdown-body pre:has(> div), .markdown-shadow-body pre:has(> div), [class*='markdown'] pre:has(> div) { background: transparent !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; } .message-content code:not(pre code), .markdown-body code:not(pre code), .markdown-shadow-body code:not(pre code), [class*='markdown'] code:not(pre code) { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border: 1px solid var(--hl-chip-border) !important; border-radius: 999px !important; padding: 2px 9px !important; font-size: 0.88em !important; font-weight: 600 !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } .message-content strong, .markdown-body strong, .markdown-shadow-body strong, [class*='markdown'] strong, .message-content mark, .markdown-body mark, .markdown-shadow-body mark, [class*='markdown'] mark { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border: 1px solid var(--hl-chip-border) !important; border-radius: 7px !important; padding: 0 6px !important; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } .message-content strong *, .markdown-body strong *, .markdown-shadow-body strong *, [class*='markdown'] strong *, .message-content mark *, .markdown-body mark *, .markdown-shadow-body mark *, [class*='markdown'] mark *, .message-content code:not(pre code) *, .markdown-body code:not(pre code) *, .markdown-shadow-body code:not(pre code) *, [class*='markdown'] code:not(pre code) * { color: var(--hl-chip-text) !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } .message-content blockquote, .markdown-body blockquote, .markdown-shadow-body blockquote, [class*='markdown'] blockquote { margin-inline: 0 !important; padding: 10px 16px !important; border-left: 3px solid var(--color-primary) !important; background: color-mix(in srgb, var(--bg-base) 86%, var(--aou-1)) !important; border-radius: 0 16px 16px 0 !important; } [data-theme='dark'] .message-content blockquote, [data-theme='dark'] .markdown-body blockquote, [data-theme='dark'] .markdown-shadow-body blockquote, [data-theme='dark'] [class*='markdown'] blockquote { background: color-mix(in srgb, var(--bg-2) 88%, var(--aou-2)) !important; } .message-content table, .markdown-body table, .markdown-shadow-body table, [class*='markdown'] table { width: 100%; border-collapse: separate !important; border-spacing: 0 !important; overflow: hidden; border: 1px solid var(--border-base) !important; border-radius: 16px !important; box-shadow: var(--horizon-shadow-soft) !important; background: var(--horizon-surface) !important; } .message-content thead, .markdown-body thead, .markdown-shadow-body thead, [class*='markdown'] thead { background: color-mix(in srgb, var(--horizon-selected) 58%, var(--horizon-surface)) !important; } .message-content th, .message-content td, .markdown-body th, .markdown-body td, .markdown-shadow-body th, .markdown-shadow-body td, [class*='markdown'] th, [class*='markdown'] td { border-bottom: 1px solid color-mix(in srgb, var(--border-base) 82%, transparent) !important; padding: 10px 12px !important; text-align: left; } .message-content tr:last-child td, .markdown-body tr:last-child td, .markdown-shadow-body tr:last-child td, [class*='markdown'] tr:last-child td { border-bottom: none !important; } .rd-20px.text-14px.pb-40px.lh-20px { border: 1px solid var(--border-base) !important; border-left: 3px solid var(--color-primary) !important; border-radius: 16px !important; } .arco-modal-header { background: linear-gradient( 180deg, color-mix(in srgb, var(--horizon-selected) 58%, var(--horizon-surface)) 0%, var(--horizon-surface) 100% ) !important; border-bottom: 1px solid color-mix(in srgb, var(--border-base) 82%, transparent) !important; color: var(--text-primary) !important; } .arco-modal-body { background: linear-gradient(180deg, var(--horizon-surface) 0%, var(--horizon-surface-soft) 100%) !important; color: var(--text-primary) !important; } .arco-modal-footer { background: linear-gradient(180deg, var(--horizon-surface-soft) 0%, var(--horizon-surface) 100%) !important; border-top: 1px solid color-mix(in srgb, var(--border-base) 82%, transparent) !important; } .aionui-modal:not(.conversation-search-modal) .arco-modal-content { overflow: visible !important; padding-bottom: 12px !important; box-sizing: border-box !important; } .aionui-modal:has(.cm-editor), .aionui-modal:has(.arco-steps) { height: auto !important; min-height: min(560px, calc(100vh - 32px)) !important; max-height: calc(100vh - 32px) !important; } .aionui-modal-wrapper, .aionui-modal-wrapper .aionui-modal-title, .aionui-modal-wrapper .aionui-modal-body-content, .aionui-modal-wrapper .arco-btn, .aionui-modal-wrapper .arco-input, .aionui-modal-wrapper .arco-textarea, .aionui-modal-wrapper .arco-alert, .aionui-modal-wrapper .arco-alert-content { font-family: 'Plus Jakarta Sans', 'Segoe UI Variable', 'Segoe UI', sans-serif !important; } .aionui-modal-wrapper .cm-theme-light, .aionui-modal-wrapper .cm-editor, .aionui-modal-wrapper .cm-scroller, .aionui-modal-wrapper .cm-content, .aionui-modal-wrapper .cm-line, .aionui-modal-wrapper .cm-gutters { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !important; } .aionui-modal-wrapper .arco-btn { border-radius: 8px !important; } .aionui-modal-wrapper .aionui-modal-body-content .cm-theme-light, .aionui-modal-wrapper .aionui-modal-body-content .cm-editor { box-shadow: none !important; } .aionui-modal-wrapper:has(.cm-editor), .aionui-modal-wrapper:has(.arco-steps) { display: flex; flex-direction: column; min-height: 0; height: 100% !important; } .aionui-modal-wrapper:has(.cm-editor) .aionui-modal-body-content, .aionui-modal-wrapper:has(.arco-steps) .aionui-modal-body-content { height: auto !important; min-height: 360px; padding-bottom: 16px !important; overflow: auto !important; } .aionui-modal-wrapper:has(.cm-editor) > .flex-shrink-0.bg-transparent, .aionui-modal-wrapper:has(.arco-steps) > .flex-shrink-0.bg-transparent { margin-top: auto; padding-top: 12px; padding-bottom: 12px; } .aionui-modal-wrapper:has(.arco-steps) .aionui-modal-body-content > .flex.flex-col { height: auto !important; min-height: 320px; } .aionui-modal-wrapper:has(.arco-steps) .aionui-modal-body-content > .flex.flex-col > .mb-6.flex-1 { min-height: 220px !important; padding-bottom: 8px; } .arco-table-container, .arco-table, .arco-table th, .arco-table td { background: transparent !important; } .arco-table { border: 1px solid var(--border-base) !important; border-radius: 16px !important; overflow: hidden !important; } .arco-table-th { background: color-mix(in srgb, var(--horizon-selected) 56%, var(--horizon-surface)) !important; color: var(--text-primary) !important; border-bottom: 1px solid color-mix(in srgb, var(--border-base) 82%, transparent) !important; } .arco-table-td { border-bottom: 1px solid color-mix(in srgb, var(--border-base) 80%, transparent) !important; } .arco-table-tr:hover .arco-table-td { background: color-mix(in srgb, var(--horizon-selected) 28%, var(--horizon-surface)) !important; } .arco-alert { border-radius: 14px !important; } .arco-alert-info { background: color-mix(in srgb, var(--horizon-selected) 54%, var(--horizon-surface)) !important; border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--border-base)) !important; } .arco-alert-warning { background: color-mix(in srgb, var(--warning) 16%, var(--horizon-surface)) !important; border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--border-base)) !important; } .arco-alert-error { background: color-mix(in srgb, var(--danger) 15%, var(--horizon-surface)) !important; border: 1px solid color-mix(in srgb, var(--danger) 32%, var(--border-base)) !important; } .arco-alert-success { background: color-mix(in srgb, var(--success) 15%, var(--horizon-surface)) !important; border: 1px solid color-mix(in srgb, var(--success) 32%, var(--border-base)) !important; } .arco-tag, .rd-20px.text-14px.pb-40px .arco-tag { background: color-mix(in srgb, var(--bg-base) 84%, var(--aou-1)) !important; border: 1px solid var(--aou-3) !important; border-radius: 999px !important; color: var(--brand) !important; font-weight: 600 !important; } .arco-divider { border-color: color-mix(in srgb, var(--border-base) 86%, transparent) !important; } .aion-file-changes-panel > div:first-child { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--border-base) 82%, transparent); } ::-webkit-scrollbar { width: 7px; height: 7px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #b7bdf0 0%, #7c84d2 100%); border-radius: 999px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #9ca5e3 0%, #595bca 100%); } [data-theme='dark'] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #5f658b 0%, #3b3e56 100%); } [data-theme='dark'] ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #7b81aa 0%, #50567b 100%); } ::selection { background: rgba(89, 91, 202, 0.18); } [data-theme='dark'] ::selection { background: rgba(123, 127, 240, 0.24); } @keyframes horizonAuroraFlow { 0% { background-position: center center, 0% 50%; } 100% { background-position: center center, 220% 50%; } } @keyframes horizonAuroraGlow { 0%, 100% { box-shadow: 0 0 0 1px var(--horizon-aurora-input-ring), 0 0 16px rgba(255, 106, 1, 0.1), 0 0 18px rgba(138, 43, 226, 0.1), 0 0 20px rgba(0, 191, 255, 0.12), var(--horizon-aurora-input-shadow); } 50% { box-shadow: 0 0 0 1px color-mix(in srgb, #f8c91c 30%, transparent), 0 0 18px rgba(255, 106, 1, 0.14), 0 0 22px rgba(138, 43, 226, 0.14), 0 0 24px rgba(0, 191, 255, 0.18), var(--horizon-aurora-input-shadow-strong); } } /* AionUi Theme Background Start */ /* Preview cover only: do not auto-inject full-page background image */ /* AionUi Theme Background End */ `,eg=`/* Glittering Input Field Theme - AionUi Adaptation */ /* Warm serif surfaces with a vivid aurora input accent */ :root { /* ===== Primary: Retroma Teal-Blue ===== */ --color-primary: #0f7887; --primary: #0f7887; --color-primary-light-1: #2a9aac; --color-primary-light-2: #4db8c8; --color-primary-light-3: #80d0dc; --color-primary-dark-1: #0a5a66; --primary-rgb: 15, 120, 135; /* ===== Brand: Retroma Warm Purple ===== */ --brand: #6e3a66; --brand-light: #f2e8f0; --brand-hover: #9d6094; --color-brand-fill: #6e3a66; --color-brand-bg: #f2e8f0; /* ===== AOU Palette: Warm Olive-Green Gradient ===== */ --aou-1: #f4f4ec; --aou-2: #e8e9d8; --aou-3: #d0d2b0; --aou-4: #b4b888; --aou-5: #979d62; --aou-6: #737f16; --aou-7: #575f10; --aou-8: #3c420b; --aou-9: #222606; --aou-10: #0c0e02; /* ===== Backgrounds: Warm Parchment ===== */ --bg-base: #faf9f6; --bg-1: #f5f4ef; --bg-2: #eeede5; --bg-3: #e2e0d4; --bg-4: #cbc8b8; --bg-5: #b0ac9a; --bg-6: #8c8878; --bg-8: #575450; --bg-9: #2c2b28; --bg-10: #111009; --color-bg-1: #f5f4ef; --color-bg-2: #eeede5; --color-bg-3: #e2e0d4; --color-bg-4: #cbc8b8; /* ===== Interactive States ===== */ --bg-hover: #ebe9df; --bg-active: #e0ded4; /* ===== Text: Warm Dark ===== */ --text-primary: #1d011d; --text-secondary: #6e6060; --text-disabled: #b8b0a8; --text-0: #1d011d; --text-white: #faf9f6; --color-text-1: #1d011d; --color-text-2: #6e6060; --color-text-3: #9e9490; --color-text-4: #c8c0bc; /* ===== Borders ===== */ --border-base: #d8d4c8; --border-light: #e8e6dc; --border-special: #d0ccc0; --color-border: #d8d4c8; --color-border-1: #d8d4c8; --color-border-2: #e8e6dc; /* ===== Fill & Inverse ===== */ --fill: #f5f4ef; --color-fill: #f5f4ef; --fill-0: #faf9f6; --fill-white-to-black: #faf9f6; --dialog-fill-0: #faf9f6; --inverse: #1d011d; /* ===== Semantic Colors ===== */ --success: #35847e; --warning: #b07a10; --danger: #b03030; --info: #0f7887; /* ===== Message & Component ===== */ --message-user-bg: #e9e4f0; --message-tips-bg: #f1edf6; --workspace-btn-bg: #eeece4; /* ===== Color GUID Agent Bar ===== */ --color-guid-agent-bar: #eae8de; --hl-chip-bg: #f3eee2; --hl-chip-text: #5a4a3a; --hl-chip-border: #d7ccb7; /* ===== Aurora Input Accent ===== */ --retroma-aurora-input-gradient: linear-gradient( 90deg, #ff6a01 0%, #f8c91c 12.5%, #8a2be2 25%, #00bfff 37.5%, #ff6a01 50%, #f8c91c 62.5%, #8a2be2 75%, #00bfff 87.5%, #ff6a01 100% ); --retroma-aurora-input-ring: rgba(255, 162, 84, 0.24); --retroma-aurora-input-shadow: 0 18px 40px rgba(110, 58, 102, 0.16), 0 0 28px rgba(15, 120, 135, 0.1); --retroma-aurora-input-shadow-strong: 0 22px 48px rgba(110, 58, 102, 0.2), 0 0 34px rgba(0, 191, 255, 0.18); --retroma-aurora-placeholder: #8f7c7b; } /* ===== Dark Mode Overrides ===== */ [data-theme='dark'] { /* Primary: Retroma Teal (dark-adjusted) */ --color-primary: #6e8ddb; --primary: #6e8ddb; --color-primary-light-1: #8fa8e8; --color-primary-light-2: #aabff0; --color-primary-light-3: #c5d5f6; --color-primary-dark-1: #4f70c4; --primary-rgb: 110, 141, 219; /* Brand: Retroma Purple (dark) */ --brand: #be80bf; --brand-light: #3d2840; --brand-hover: #9a60a0; --color-brand-fill: #be80bf; --color-brand-bg: #3d2840; /* AOU Palette: Dark Olive */ --aou-1: #232318; --aou-2: #363525; --aou-3: #4a4a30; --aou-4: #666640; --aou-5: #898a54; --aou-6: #a2a554; --aou-7: #bbbf6e; --aou-8: #d0d490; --aou-9: #e4e6b8; --aou-10: #f2f4da; /* Backgrounds: Dark Obsidian with warm undertones */ --bg-base: #0f0f0c; --bg-1: #18180f; --bg-2: #222217; --bg-3: #2e2e20; --bg-4: #3c3c2c; --bg-5: #4e4e3a; --bg-6: #606050; --bg-8: #848470; --bg-9: #b0b09a; --bg-10: #d8d8c8; --color-bg-1: #18180f; --color-bg-2: #222217; --color-bg-3: #2e2e20; --color-bg-4: #3c3c2c; /* Interactive States */ --bg-hover: #1e1e14; --bg-active: #28281c; /* Text: Retroma warm near-white */ --text-primary: #e8e6d8; --text-secondary: #a8a498; --text-disabled: #686458; --text-0: #f0ede0; --text-white: #f0ede0; --color-text-1: #e8e6d8; --color-text-2: #a8a498; --color-text-3: #787468; --color-text-4: #504c44; /* Borders */ --border-base: #3a3a28; --border-light: #2a2a1e; --border-special: #4a4a36; --color-border: #3a3a28; --color-border-1: #3a3a28; --color-border-2: #2a2a1e; /* Fill & Inverse */ --fill: #18180f; --color-fill: #18180f; --fill-0: rgba(255, 252, 240, 0.07); --fill-white-to-black: #0f0f0c; --dialog-fill-0: #2e2e20; --inverse: #f0ede0; /* Semantic Colors */ --success: #68a99d; --warning: #d4963a; --danger: #c86060; --info: #6e8ddb; /* Message & Component */ --message-user-bg: #3a3444; --message-tips-bg: #2f2a38; --workspace-btn-bg: #1e1e14; /* Color GUID Agent Bar */ --color-guid-agent-bar: #2a2a1e; --hl-chip-bg: #d6ccb8; --hl-chip-text: #3f3528; --hl-chip-border: #b5a88f; /* Aurora Input Accent */ --retroma-aurora-input-ring: rgba(166, 214, 255, 0.22); --retroma-aurora-input-shadow: 0 22px 48px rgba(6, 10, 18, 0.5), 0 0 32px rgba(138, 43, 226, 0.16); --retroma-aurora-input-shadow-strong: 0 26px 54px rgba(4, 8, 16, 0.62), 0 0 38px rgba(0, 191, 255, 0.22); --retroma-aurora-placeholder: #958a83; } /* ===== Typography ===== */ body { font-family: 'Georgia', 'Palatino Linotype', 'Book Antiqua', 'Source Han Serif', serif; letter-spacing: 0.01em; } /* ===== Scrollbar Styling ===== */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--bg-1); } ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--brand); } /* ===== Message Headings (H1-H5) ===== */ .message-content h1, .markdown-body h1 { color: var(--brand); } .message-content h2, .markdown-body h2 { color: var(--color-primary); } .message-content h3, .markdown-body h3 { color: var(--aou-6); } .message-content h4, .markdown-body h4 { color: var(--success); } .message-content h5, .markdown-body h5 { color: #465881; } [data-theme='dark'] .message-content h5, [data-theme='dark'] .markdown-body h5 { color: #7a90c8; } /* ===== Links ===== */ .message-content a, .markdown-body a, .markdown-shadow-body a, [class*='markdown'] a { color: #5b63cf; -webkit-text-fill-color: #5b63cf; text-decoration-color: rgba(91, 99, 207, 0.55); text-underline-offset: 2px; } [data-theme='light'] .message-content a:hover, [data-theme='light'] .markdown-body a:hover, [data-theme='light'] .markdown-shadow-body a:hover, [data-theme='light'] [class*='markdown'] a:hover { color: #464fc0 !important; -webkit-text-fill-color: #464fc0 !important; text-decoration-color: rgba(70, 79, 192, 0.8) !important; } [data-theme='light'] .message-content a:visited, [data-theme='light'] .markdown-body a:visited, [data-theme='light'] .markdown-shadow-body a:visited, [data-theme='light'] [class*='markdown'] a:visited { color: #7a63b0 !important; -webkit-text-fill-color: #7a63b0 !important; text-decoration-color: rgba(122, 99, 176, 0.65) !important; } [data-theme='dark'] .message-content a, [data-theme='dark'] .markdown-body a, [data-theme='dark'] .markdown-shadow-body a, [data-theme='dark'] [class*='markdown'] a { color: #cfe0ff !important; -webkit-text-fill-color: #cfe0ff !important; text-decoration-color: rgba(207, 224, 255, 0.85) !important; } [data-theme='dark'] .message-content a:hover, [data-theme='dark'] .markdown-body a:hover, [data-theme='dark'] .markdown-shadow-body a:hover, [data-theme='dark'] [class*='markdown'] a:hover { color: #e7efff !important; -webkit-text-fill-color: #e7efff !important; text-decoration-color: rgba(231, 239, 255, 0.98) !important; } [data-theme='dark'] .message-content a:visited, [data-theme='dark'] .markdown-body a:visited, [data-theme='dark'] .markdown-shadow-body a:visited, [data-theme='dark'] [class*='markdown'] a:visited { color: #d4c6fa !important; -webkit-text-fill-color: #d4c6fa !important; text-decoration-color: rgba(212, 198, 250, 0.82) !important; } /* ===== Code Blocks ===== */ .message-content pre, .markdown-body pre { background: var(--bg-2); border: 1px solid var(--border-base); border-radius: 6px; } [data-theme='dark'] .message-content pre, [data-theme='dark'] .markdown-body pre { background: #141410; border-color: var(--border-base); } /* ===== Inline Code / Highlight Chip ===== */ .message-content code:not(pre code), .markdown-body code:not(pre code), .markdown-shadow-body code:not(pre code), [class*='markdown'] code:not(pre code) { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border: 1px solid var(--hl-chip-border) !important; border-radius: 7px !important; padding: 1px 8px !important; font-size: 0.9em !important; font-weight: 650 !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; background-clip: border-box !important; } [data-theme='dark'] .message-content code:not(pre code), [data-theme='dark'] .markdown-body code:not(pre code), [data-theme='dark'] .markdown-shadow-body code:not(pre code), [data-theme='dark'] [class*='markdown'] code:not(pre code) { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border-color: var(--hl-chip-border) !important; box-shadow: inset 0 0 0 1px rgba(90, 66, 108, 0.12) !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } /* ===== Emphasis Highlight (Bold with Background) ===== */ .message-content strong, .markdown-body strong, .markdown-shadow-body strong, [class*='markdown'] strong { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; padding: 0 6px !important; border-radius: 4px !important; border: 1px solid var(--hl-chip-border) !important; box-decoration-break: clone; -webkit-box-decoration-break: clone; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } [data-theme='dark'] .message-content strong, [data-theme='dark'] .markdown-body strong, [data-theme='dark'] .markdown-shadow-body strong, [data-theme='dark'] [class*='markdown'] strong { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border-color: var(--hl-chip-border) !important; box-shadow: inset 0 0 0 1px rgba(90, 66, 108, 0.1) !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } [data-theme='light'] .message-content mark, [data-theme='light'] .markdown-body mark, [data-theme='light'] .markdown-shadow-body mark, [data-theme='light'] [class*='markdown'] mark, [data-theme='dark'] .message-content mark, [data-theme='dark'] .markdown-body mark, [data-theme='dark'] .markdown-shadow-body mark, [data-theme='dark'] [class*='markdown'] mark { background: var(--hl-chip-bg) !important; color: var(--hl-chip-text) !important; border: 1px solid var(--hl-chip-border) !important; border-radius: 4px !important; padding: 0 4px !important; opacity: 1 !important; filter: none !important; text-shadow: none !important; -webkit-text-fill-color: var(--hl-chip-text) !important; } .message-content strong *, .markdown-body strong *, .markdown-shadow-body strong *, [class*='markdown'] strong *, .message-content code:not(pre code) *, .markdown-body code:not(pre code) *, .markdown-shadow-body code:not(pre code) *, [class*='markdown'] code:not(pre code) *, .message-content mark *, .markdown-body mark *, .markdown-shadow-body mark *, [class*='markdown'] mark * { color: var(--hl-chip-text) !important; -webkit-text-fill-color: var(--hl-chip-text) !important; opacity: 1 !important; } /* ===== Sidebar ===== */ .layout-sider { background-color: var(--bg-1); border-right: 1px solid var(--border-base); } /* ===== Conversation Bubble (AOU purple-gray) ===== */ .message-item.user .message-bubble { background: var(--message-user-bg) !important; border: 1px solid #cbc0da !important; } [data-theme='dark'] .message-item.user .message-bubble { background: var(--message-user-bg) !important; border-color: color-mix(in srgb, var(--aou-5) 46%, var(--border-base)) !important; } /* ===== Selection Highlight ===== */ ::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); } [data-theme='dark'] ::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); } /* ===== Aurora Inputs ===== */ .guidContainer .guidInputCard, [class*='guidContainer'] [class*='guidInputCard'], .relative.p-16px.border-3.b.bg-dialog-fill-0.b-solid.rd-20px.flex.flex-col:has(.sendbox-tools) { position: relative; } .guidContainer .guidInputCard:focus-within, [class*='guidContainer'] [class*='guidInputCard']:focus-within, .relative.p-16px.border-3.b.bg-dialog-fill-0.b-solid.rd-20px.flex.flex-col:has(.sendbox-tools):focus-within { overflow: visible !important; border: 2px solid transparent !important; background-color: var(--dialog-fill-0) !important; background-image: linear-gradient(var(--dialog-fill-0), var(--dialog-fill-0)), var(--retroma-aurora-input-gradient) !important; background-size: 100% 100%, 220% 100% !important; background-repeat: no-repeat, no-repeat !important; background-position: center center, 0% 50% !important; background-origin: border-box !important; background-clip: padding-box, border-box !important; box-shadow: 0 0 0 1px var(--retroma-aurora-input-ring), 0 0 16px rgba(255, 106, 1, 0.1), 0 0 18px rgba(138, 43, 226, 0.1), 0 0 20px rgba(0, 191, 255, 0.12), var(--retroma-aurora-input-shadow) !important; animation: elegantFlow 2.4s linear infinite, softGlow 3s ease-in-out infinite; } .guidContainer .guidInputCard textarea::placeholder, [class*='guidContainer'] [class*='guidInputCard'] textarea::placeholder, .relative.p-16px.border-3.b.bg-dialog-fill-0.b-solid.rd-20px.flex.flex-col:has(.sendbox-tools) textarea::placeholder { color: var(--retroma-aurora-placeholder) !important; opacity: 1 !important; } @keyframes elegantFlow { 0% { background-position: center center, 0% 50%; } 100% { background-position: center center, 220% 50%; } } @keyframes softGlow { 0%, 100% { box-shadow: 0 0 0 1px var(--retroma-aurora-input-ring), 0 0 16px rgba(255, 106, 1, 0.1), 0 0 18px rgba(138, 43, 226, 0.1), 0 0 20px rgba(0, 191, 255, 0.12), var(--retroma-aurora-input-shadow); } 50% { box-shadow: 0 0 0 1px color-mix(in srgb, #f8c91c 30%, transparent), 0 0 18px rgba(255, 106, 1, 0.14), 0 0 22px rgba(138, 43, 226, 0.14), 0 0 24px rgba(0, 191, 255, 0.18), var(--retroma-aurora-input-shadow-strong); } } /* AionUi Theme Background Start */ /* Preview cover only: do not auto-inject full-page background image */ /* AionUi Theme Background End */ `;/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */const st=0,Dn=(e,s,l,c,i)=>({id:e,name:s,appearance:l,css:c,cover:i,builtin:!0,created_at:st,updated_at:st}),ib=[{id:hc,name:"Light",appearance:"light",cover:Bv,builtin:!0,created_at:st,updated_at:st},{id:ob,name:"Dark",appearance:"dark",builtin:!0,created_at:st,updated_at:st},Dn("misaka-mikoto-theme","Misaka Mikoto Theme","light",Jv,Dv),Dn("hello-kitty","Hello Kitty","light",Kv,Vv),Dn("retro-windows","Retro Windows","light",Qv,Gv),Dn("retroma-y2k-jp-v42-pure","Y2K电子账本 by 椰树女王","light",Zv,Hv),Dn("retroma-obsidian-book","Retroma Obsidian Book","dark",Xv,Yv),Dn("discourse-horizon","Discourse Horizon","light",$v),Dn("glittering-input-field","Glittering Input Field","light",eg)];new Set(ib.map(e=>e.id));/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */const rg=e=>!e||!e.trim()?"":e.replace(/([a-zA-Z-]+)\s*:\s*([^;!}]+);/g,(s,l,c)=>{const i=c.trim();return i.endsWith("!important")?s:`${l}: ${i} !important;`}),ng=e=>!e||!e.trim()?"":` /* 用户自定义样式 - 自动添加 !important 提升优先级 */ /* User Custom Styles - Auto !important for highest priority */ ${e} `.trim(),tg=e=>{const s=rg(e);return ng(s)};/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */const ag="(prefers-color-scheme: dark)";function sb(){return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia(ag)}function og(){return sb()?.matches??!1}function bg(e){const s=sb();if(!s)return()=>{};const l=c=>e(c.matches);return s.addEventListener("change",l),()=>s.removeEventListener("change",l)}/** * @license * Copyright 2025 AionUi (aionui.com) * SPDX-License-Identifier: Apache-2.0 */const ig="theme-tokens",sg="theme-decoration";function cf(e,s,l=document){const c=l.getElementById(e);if(!s){c?.remove();return}const i=c??l.createElement("style");i.id=e,i.textContent=s,l.head.appendChild(i)}function cg(e){return!e||Object.keys(e).length===0?null:`:root { ${Object.entries(e).map(([l,c])=>` ${l}: ${c};`).join(` `)} }`}function ug(e,s=document){s.documentElement.setAttribute("data-theme",e.appearance),s.body?.setAttribute("arco-theme",e.appearance),cf(ig,cg(e.tokens),s),cf(sg,e.css?tg(e.css):null,s)}async function mg(e){const s=$p.get("theme.userThemes")??[],l=Uv(e,[...ib,...s],og());ug(l),await $p.set("theme.activeId",e),await ab.setActive.invoke(l)}export{Mv as A,ib as B,Wv as C,ob as D,Dh as E,rv as F,lv as G,xv as H,Av as I,Pv as J,Sv as K,hc as L,pv as M,fg as N,bg as O,mg as P,Uv as Q,og as R,Nv as S,pb as T,dv as U,wv as V,_v as W,jv as X,Ev as Y,Cv as Z,nv as _,ov as a,Rv as b,$p as c,qv as d,Iv as e,hi as f,cv as g,ut as h,ug as i,fv as j,bv as k,hv as l,gv as m,Ih as n,vv as o,zv as p,sv as q,tv as r,ev as s,kv as t,av as u,ab as v,rg as w,oe as x,pg as y,Lv as z};