MCPcopy
hub / github.com/alibaba/nacos / it

Function it

console/src/main/resources/static/next/js/main.js:11–13  ·  view source on GitHub ↗
(g,v)

Source from the content-addressed store, hash-verified

9`,i+1),p=l===-1?"":a.slice(l+1);String(n.stack).endsWith(p)||(n.stack+=`
10`+a)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xe(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&At.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean),legacyInterceptorReqResOrdering:_e.transitional(_e.boolean)},!1),o!=null&&(m.isFunction(o)?r.paramsSerializer={serialize:o}:At.assertOptions(o,{encode:_e.function,serialize:_e.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),At.assertOptions(r,{baseUrl:_e.spelling("baseURL"),withXsrfToken:_e.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&m.merge(a.common,a[r.method]);a&&m.forEach(["delete","get","head","post","put","patch","query","common"],f=>{delete a[f]}),r.headers=Te.concat(i,a);const l=[];let p=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(r)===!1)return;p=p&&h.synchronous;const u=r.transitional||Wr;u&&u.legacyInterceptorReqResOrdering?l.unshift(h.fulfilled,h.rejected):l.push(h.fulfilled,h.rejected)});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,s=0,E;if(!p){const f=[En.bind(this),void 0];for(f.unshift(...l),f.push(...c),E=f.length,d=Promise.resolve(r);s<E;)d=d.then(f[s++],f[s++]);return d}E=l.length;let P=r;for(;s<E;){const f=l[s++],h=l[s++];try{P=f(P)}catch(u){h.call(this,u);break}}try{d=En.call(this,P)}catch(f){return Promise.reject(f)}for(s=0,E=c.length;s<E;)d=d.then(c[s++],c[s++]);return d}getUri(t){t=Xe(this.defaults,t);const r=Bo(t.baseURL,t.url,t.allowAbsoluteUrls);return Mo(r,t.params,t.paramsSerializer)}};m.forEach(["delete","get","head","options"],function(t){Qe.prototype[t]=function(r,n){return this.request(Xe(n||{},{method:t,url:r,data:(n||{}).data}))}});m.forEach(["post","put","patch","query"],function(t){function r(n){return function(a,i,l){return this.request(Xe(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Qe.prototype[t]=r(),t!=="query"&&(Qe.prototype[t+"Form"]=r(!0))});let Dl=class jo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new mt(a,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new jo(function(o){t=o}),cancel:t}}};function Tl(e){return function(r){return e.apply(null,r)}}function Ol(e){return m.isObject(e)&&e.isAxiosError===!0}const Hr={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(Hr).forEach(([e,t])=>{Hr[t]=e});function $o(e){const t=new Qe(e),r=Ao(Qe.prototype.request,t);return m.extend(r,Qe.prototype,t,{allOwnKeys:!0}),m.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return $o(Xe(e,o))},r}const de=$o(ft);de.Axios=Qe;de.CanceledError=mt;de.CancelToken=Dl;de.isCancel=Uo;de.VERSION=Kr;de.toFormData=xt;de.AxiosError=k;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=Tl;de.isAxiosError=Ol;de.mergeConfig=Xe;de.AxiosHeaders=Te;de.formToJSON=e=>Fo(m.isHTMLForm(e)?new FormData(e):e);de.getAdapter=zo.getAdapter;de.HttpStatusCode=Hr;de.default=de;const{Axios:Mc,AxiosError:Fc,CanceledError:Uc,isCancel:qc,CancelToken:Bc,VERSION:Vc,all:Hc,Cancel:zc,isAxiosError:jc,spread:$c,toFormData:Wc,AxiosHeaders:Gc,HttpStatusCode:Kc,formToJSON:Jc,getAdapter:Yc,mergeConfig:Qc,create:Xc}=de;var jt,Rn;function ot(){return Rn||(Rn=1,jt=TypeError),jt}const xl={},Nl=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),Il=ca(Nl);var $t,Cn;function It(){if(Cn)return $t;Cn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,l=o&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype,c=p?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,s=d?WeakSet.prototype.has:null,E=typeof WeakRef=="function"&&WeakRef.prototype,P=E?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,h=Object.prototype.toString,u=Function.prototype.toString,b=String.prototype.match,w=String.prototype.slice,R=String.prototype.replace,N=String.prototype.toUpperCase,x=String.prototype.toLowerCase,T=RegExp.prototype.test,y=Array.prototype.concat,S=Array.prototype.join,C=Array.prototype.slice,O=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,U=Object.getOwnPropertySymbols,W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",te=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===q||!0)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,G=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(g){return g.__proto__}:null);function A(g,v){if(g===1/0||g===-1/0||g!==g||g&&g>-1e3&&g<1e3||T.call(/e/,v))return v;var Z=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof g=="number"){var ee=g<0?-O(-g):O(g);if(ee!==g){var ie=String(ee),$=w.call(v,ie.length+1);return R.call(ie,Z,"$&_")+"."+R.call(R.call($,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(v,Z,"$&_")}var V=Il,j=V.custom,ae=le(j)?j:null,we={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};$t=function g(v,Z,ee,ie){var $=Z||{};if(pe($,"quoteStyle")&&!pe(we,$.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pe($,"maxStringLength")&&(typeof $.maxStringLength=="number"?$.maxStringLength<0&&$.maxStringLength!==1/0:$.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ke=pe($,"customInspect")?$.customInspect:!0;if(typeof ke!="boolean"&&ke!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pe($,"indent")&&$.indent!==null&&$.indent!==" "&&!(parseInt($.indent,10)===$.indent&&$.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pe($,"numericSeparator")&&typeof $.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var qe=$.numericSeparator;if(typeof v>"u")return"undefined";if(v===null)return"null";if(typeof v=="boolean")return v?"true":"false";if(typeof v=="string")return ht(v,$);if(typeof v=="number"){if(v===0)return 1/0/v>0?"0":"-0";var F=String(v);return qe?A(v,F):F}if(typeof v=="bigint"){var se=String(v)+"n";return qe?A(v,se):se}var me=typeof $.depth>"u"?5:$.depth;if(typeof ee>"u"&&(ee=0),ee>=me&&me>0&&typeof v=="object")return ce(v)?"[Array]":"[Object]";var he=Mt($,ee);if(typeof ie>"u")ie=[];else if(Fe(ie,v)>=0)return"[Circular]";function Ee(et,bt,ia){if(bt&&(ie=C.call(ie),ie.push(bt)),ia){var nn={depth:$.depth};return pe($,"quoteStyle")&&(nn.quoteStyle=$.quoteStyle),g(et,nn,ee+1,ie)}return g(et,$,ee+1,ie)}if(typeof v=="function"&&!re(v)){var ye=Pe(v),Ce=We(v,Ee);return"[Function"+(ye?": "+ye:" (anonymous)")+"]"+(Ce.length>0?" { "+S.call(Ce,", ")+" }":"")}if(le(v)){var Ge=q?R.call(String(v),/^(Symbol\(.*\))_[^)]*$/,"$1"):W.call(v);return typeof v=="object"&&!q?Ve(Ge):Ge}if(Ze(v)){for(var ve="<"+x.call(String(v.nodeName)),De=v.attributes||[],Ke=0;Ke<De.length;Ke++)ve+=" "+De[Ke].name+"="+K(H(De[Ke].value),"double",$);return ve+=">",v.childNodes&&v.childNodes.length&&(ve+="..."),ve+="</"+x.call(String(v.nodeName))+">",ve}if(ce(v)){if(v.length===0)return"[]";var Le=We(v,Ee);return he&&!ze(Le)?"["+it(Le,he)+"]":"[ "+S.call(Le,", ")+" ]"}if(z(v)){var gt=We(v,Ee);return!("cause"in Error.prototype)&&"cause"in v&&!I.call(v,"cause")?"{ ["+String(v)+"] "+S.call(y.call("[cause]: "+Ee(v.cause),gt),", ")+" }":gt.length===0?"["+String(v)+"]":"{ ["+String(v)+"] "+S.call(gt,", ")+" }"}if(typeof v=="object"&&ke){if(ae&&typeof v[ae]=="function"&&V)return V(v,{depth:me-ee});if(ke!=="symbol"&&typeof v.inspect=="function")return v.inspect()}if(Ne(v)){var Zr=[];return n&&n.call(v,function(et,bt){Zr.push(Ee(bt,v,!0)+" => "+Ee(et,v))}),at("Map",r.call(v),Zr,he)}if(He(v)){var en=[];return l&&l.call(v,function(et){en.push(Ee(et,v))}),at("Set",i.call(v),en,he)}if(fe(v))return Ue("WeakMap");if(Lt(v))return Ue("WeakSet");if(Ie(v))return Ue("WeakRef");if(Q(v))return Ve(Ee(Number(v)));if(be(v))return Ve(Ee(_.call(v)));if(ue(v))return Ve(f.call(v));if(ne(v))return Ve(Ee(String(v)));if(typeof window<"u"&&v===window)return"{ [object Window] }";if(typeof globalThis<"u"&&v===globalThis||typeof on<"u"&&v===on)return"{ [object globalThis] }";if(!L(v)&&!re(v)){var Ft=We(v,Ee),tn=G?G(v)===Object.prototype:v instanceof Object||v.constructor===Object,Ut=v instanceof Object?"":"null prototype",rn=!tn&&te&&Object(v)===v&&te in v?w.call(Re(v),8,-1):Ut?"Object":"",aa=tn||typeof v.constructor!="function"?"":v.constructor.name?v.constructor.name+" ":"",qt=aa+(rn||Ut?"["+S.call(y.call([],rn||[],Ut||[]),": ")+"] ":"");return Ft.length===0?qt+"{}":he?qt+"{"+it(Ft,he)+"}":qt+"{ "+S.call(Ft,", ")+" }"}return String(v)};function K(g,v,Z){var ee=Z.quoteStyle||v,ie=we[ee];return ie+g+ie}function H(g){return R.call(String(g),/"/g,"&quot;")}function oe(g){return!te||!(typeof g=="object"&&(te in g||typeof g[te]<"u"))}function ce(g){return Re(g)==="[object Array]"&&oe(g)}function L(g){return Re(g)==="[object Date]"&&oe(g)}function re(g){return Re(g)==="[object RegExp]"&&oe(g)}function z(g){return Re(g)==="[object Error]"&&oe(g)}function ne(g){return Re(g)==="[object String]"&&oe(g)}function Q(g){return Re(g)==="[object Number]"&&oe(g)}function ue(g){return Re(g)==="[object Boolean]"&&oe(g)}function le(g){if(q)return g&&typeof g=="object"&&g instanceof Symbol;if(typeof g=="symbol")return!0;if(!g||typeof g!="object"||!W)return!1;try{return W.call(g),!0}catch{}return!1}function be(g){if(!g||typeof g!="object"||!_)return!1;try{return _.call(g),!0}catch{}return!1}var ge=Object.prototype.hasOwnProperty||function(g){return g in this};function pe(g,v){return ge.call(g,v)}function Re(g){return h.call(g)}function Pe(g){if(g.name)return g.name;var v=b.call(u.call(g),/^function\s*([\w$]+)/);return v?v[1]:null}function Fe(g,v){if(g.indexOf)return g.indexOf(v);for(var Z=0,ee=g.length;Z<ee;Z++)if(g[Z]===v)return Z;return-1}function Ne(g){if(!r||!g||typeof g!="object")return!1;try{r.call(g);try{i.call(g)}catch{return!0}return g instanceof Map}catch{}return!1}function fe(g){if(!c||!g||typeof g!="object")return!1;try{c.call(g,c);try{s.call(g,s)}catch{return!0}return g instanceof WeakMap}catch{}return!1}function Ie(g){if(!P||!g||typeof g!="object")return!1;try{return P.call(g),!0}catch{}return!1}function He(g){if(!i||!g||typeof g!="object")return!1;try{i.call(g);try{r.call(g)}catch{return!0}return g instanceof Set}catch{}return!1}function Lt(g){if(!s||!g||typeof g!="object")return!1;try{s.call(g,s);try{c.call(g,c)}catch{return!0}return g instanceof WeakSet}catch{}return!1}function Ze(g){return!g||typeof g!="object"?!1:typeof HTMLElement<"u"&&g instanceof HTMLElement?!0:typeof g.nodeName=="string"&&typeof g.getAttribute=="function"}function ht(g,v){if(g.length>v.maxStringLength){var Z=g.length-v.maxStringLength,ee="... "+Z+" more character"+(Z>1?"s":"");return ht(w.call(g,0,v.maxStringLength),v)+ee}var ie=M[v.quoteStyle||"single"];ie.lastIndex=0;var $=R.call(R.call(g,ie,"\\$1"),/[\x00-\x1f]/g,yt);return K($,"single",v)}function yt(g){var v=g.charCodeAt(0),Z={8:"b",9:"t",10:"n",12:"f",13:"r"}[v];return Z?"\\"+Z:"\\x"+(v<16?"0":"")+N.call(v.toString(16))}function Ve(g){return"Object("+g+")"}function Ue(g){return g+" { ? }"}function at(g,v,Z,ee){var ie=ee?it(Z,ee):S.call(Z,", ");return g+" ("+v+") {"+ie+"}"}function ze(g){for(var v=0;v<g.length;v++)if(Fe(g[v],`
11`)>=0)return!1;return!0}function Mt(g,v){var Z;if(g.indent===" ")Z=" ";else if(typeof g.indent=="number"&&g.indent>0)Z=S.call(Array(g.indent+1)," ");else return null;return{base:Z,prev:S.call(Array(v+1),Z)}}function it(g,v){if(g.length===0)return"";var Z=`
12`+v.prev+v.base;return Z+S.call(g,","+Z)+`
13`+v.prev}function We(g,v){var Z=ce(g),ee=[];if(Z){ee.length=g.length;for(var ie=0;ie<g.length;ie++)ee[ie]=pe(g,ie)?v(g[ie],g):""}var $=typeof U=="function"?U(g):[],ke;if(q){ke={};for(var qe=0;qe<$.length;qe++)ke["$"+$[qe]]=$[qe]}for(var F in g)pe(g,F)&&(Z&&String(Number(F))===F&&F<g.length||q&&ke["$"+F]instanceof Symbol||(T.call(/[^\w$]/,F)?ee.push(v(F,g)+": "+v(g[F],g)):ee.push(F+": "+v(g[F],g))));if(typeof U=="function")for(var se=0;se<$.length;se++)I.call(g,$[se])&&ee.push("["+v($[se])+"]: "+v(g[$[se]],g));return ee}return $t}var Wt,Dn;function _l(){if(Dn)return Wt;Dn=1;var e=It(),t=ot(),r=function(l,p,c){for(var d=l,s;(s=d.next)!=null;d=s)if(s.key===p)return d.next=s.next,c||(s.next=l.next,l.next=s),s},n=function(l,p){if(l){var c=r(l,p);return c&&c.value}},o=function(l,p,c){var d=r(l,p);d?d.value=c:l.next={key:p,next:l.next,value:c}},a=function(l,p){return l?!!r(l,p):!1},i=function(l,p){if(l)return r(l,p,!0)};return Wt=function(){var p,c={assert:function(d){if(!c.has(d))throw new t("Side channel does not contain "+e(d))},delete:function(d){var s=p&&p.next,E=i(p,d);return E&&s&&s===E&&(p=void 0),!!E},get:function(d){return n(p,d)},has:function(d){return a(p,d)},set:function(d,s){p||(p={next:void 0}),o(p,d,s)}};return c},Wt}var Gt,Tn;function Wo(){return Tn||(Tn=1,Gt=Object),Gt}var Kt,On;function kl(){return On||(On=1,Kt=Error),Kt}var Jt,xn;function Ll(){return xn||(xn=1,Jt=EvalError),Jt}var Yt,Nn;function Ml(){return Nn||(Nn=1,Yt=RangeError),Yt}var Qt,In;function Fl(){return In||(In=1,Qt=ReferenceError),Qt}var Xt,_n;function Ul(){return _n||(_n=1,Xt=SyntaxError),Xt}var Zt,kn;function ql(){return kn||(kn=1,Zt=URIError),Zt}var er,Ln;function Bl(){return Ln||(Ln=1,er=Math.abs),er}var tr,Mn;function Vl(){return Mn||(Mn=1,tr=Math.floor),tr}var rr,Fn;function Hl(){return Fn||(Fn=1,rr=Math.max),rr}var nr,Un;function zl(){return Un||(Un=1,nr=Math.min),nr}var or,qn;function jl(){return qn||(qn=1,or=Math.pow),or}var ar,Bn;function $l(){return Bn||(Bn=1,ar=Math.round),ar}var ir,Vn;function Wl(){return Vn||(Vn=1,ir=Number.isNaN||function(t){return t!==t}),ir}var sr,Hn;function Gl(){if(Hn)return sr;Hn=1;var e=Wl();return sr=function(r){return e(r)||r===0?r:r<0?-1:1},sr}var lr,zn;function Kl(){return zn||(zn=1,lr=Object.getOwnPropertyDescriptor),lr}var cr,jn;function Go(){if(jn)return cr;jn=1;var e=Kl();if(e)try{e([],"length")}catch{e=null}return cr=e,cr}var ur,$n;function Jl(){if($n)return ur;$n=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ur=e,ur}var dr,Wn;function Yl(){return Wn||(Wn=1,dr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),dr}var pr,Gn;function Ql(){if(Gn)return pr;Gn=1;var e=typeof Symbol<"u"&&Symbol,t=Yl();return pr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},pr}var fr,Kn;function Ko(){return Kn||(Kn=1,fr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),fr}var mr,Jn;function Jo(){if(Jn)return mr;Jn=1;var e=Wo();return mr=e.getPrototypeOf||null,mr}var hr,Yn;function Xl(){if(Yn)return hr;Yn=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(p,c){for(var d=[],s=0;s<p.length;s+=1)d[s]=p[s];for(var E=0;E<c.length;E+=1)d[E+p.length]=c[E];return d},a=function(p,c){for(var d=[],s=c,E=0;s<p.length;s+=1,E+=1)d[E]=p[s];return d},i=function(l,p){for(var c="",d=0;d<l.length;d+=1)c+=l[d],d+1<l.length&&(c+=p);return c};return hr=function(p){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(e+c);for(var d=a(arguments,1),s,E=function(){if(this instanceof s){var b=c.apply(this,o(d,arguments));return Object(b)===b?b:this}return c.apply(p,o(d,arguments))},P=r(0,c.length-d.length),f=[],h=0;h<P;h++)f[h]="$"+h;if(s=Function("binder","return function ("+i(f,",")+"){ return binder.apply(this,arguments); }")(E),c.prototype){var u=function(){};u.prototype=c.prototype,s.prototype=new u,u.prototype=null}return s},hr}var yr,Qn;function _t(){if(Qn)return yr;Qn=1;var e=Xl();return yr=Function.prototype.bind||e,yr}var gr,Xn;function Yr(){return Xn||(Xn=1,gr=Function.prototype.call),gr}var br,Zn;function Yo(){return Zn||(Zn=1,br=Function.prototype.apply),br}var vr,eo;function Zl(){return eo||(eo=1,vr=typeof Reflect<"u"&&Reflect&&Reflect.apply),vr}var Sr,to;function ec(){if(to)return Sr;to=1;var e=_t(),t=Yo(),r=Yr(),n=Zl();return Sr=n||e.call(r,t),Sr}var wr,ro;function Qo(){if(ro)return wr;ro=1;var e=_t(),t=ot(),r=Yr(),n=ec();return wr=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return n(e,r,a)},wr}var Pr,no;function tc(){if(no)return Pr;no=1;var e=Qo(),t=Go(),r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Pr=n&&typeof n.get=="function"?e([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Pr}var Er,oo;function rc(){if(oo)return Er;oo=1;var e=Ko(),t=Jo(),r=tc();return Er=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,Er}var Ar,ao;function nc(){if(ao)return Ar;ao=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=_t();return Ar=r.call(e,t),Ar}var Rr,io;function Qr(){if(io)return Rr;io=1;var e,t=Wo(),r=kl(),n=Ll(),o=Ml(),a=Fl(),i=Ul(),l=ot(),p=ql(),c=Bl(),d=Vl(),s=Hl(),E=zl(),P=jl(),f=$l(),h=Gl(),u=Function,b=function(re){try{return u('"use strict"; return ('+re+").constructor;")()}catch{}},w=Go(),R=Jl(),N=function(){throw new l},x=w?(function(){try{return arguments.callee,N}catch{try{return w(arguments,"callee").get}catch{return N}}})():N,T=Ql()(),y=rc(),S=Jo(),C=Ko(),O=Yo(),_=Yr(),U={},W=typeof Uint8Array>"u"||!y?e:y(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":T&&y?y([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&y?y(y([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!y?e:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!y?e:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&y?y(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":x,"%TypedArray%":W,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":O,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":S,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":s,"%Math.min%":E,"%Math.pow%":P,"%Math.round%":f,"%Math.sign%":h,"%Reflect.getPrototypeOf%":C};if(y)try{null.error}catch(re){var te=y(y(re));q["%Error.prototype%"]=te}var I=function re(z){var ne;if(z==="%AsyncFunction%")ne=b("async function () {}");else if(z==="%GeneratorFunction%")ne=b("function* () {}");else if(z==="%AsyncGeneratorFunction%")ne=b("async function* () {}");else if(z==="%AsyncGenerator%"){var Q=re("%AsyncGeneratorFunction%");Q&&(ne=Q.prototype)}else if(z==="%AsyncIteratorPrototype%"){var ue=re("%AsyncGenerator%");ue&&y&&(ne=y(ue.prototype))}return q[z]=ne,ne},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=_t(),V=nc(),j=A.call(_,Array.prototype.concat),ae=A.call(O,Array.prototype.splice),we=A.call(_,String.prototype.replace),M=A.call(_,String.prototype.slice),K=A.call(_,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,ce=function(z){var ne=M(z,0,1),Q=M(z,-1);if(ne==="%"&&Q!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(Q==="%"&&ne!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var ue=[];return we(z,H,function(le,be,ge,pe){ue[ue.length]=ge?we(pe,oe,"$1"):be||le}),ue},L=function(z,ne){var Q=z,ue;if(V(G,Q)&&(ue=G[Q],Q="%"+ue[0]+"%"),V(q,Q)){var le=q[Q];if(le===U&&(le=I(Q)),typeof le>"u"&&!ne)throw new l("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:ue,name:Q,value:le}}throw new i("intrinsic "+z+" does not exist!")};return Rr=function(z,ne){if(typeof z!="string"||z.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ne!="boolean")throw new l('"allowMissing" argument must be a boolean');if(K(/^%?[^%]*%?$/,z)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=ce(z),ue=Q.length>0?Q[0]:"",le=L("%"+ue+"%",ne),be=le.name,ge=le.value,pe=!1,Re=le.alias;Re&&(ue=Re[0],ae(Q,j([0,1],Re)));for(var Pe=1,Fe=!0;Pe<Q.length;Pe+=1){var Ne=Q[Pe],fe=M(Ne,0,1),Ie=M(Ne,-1);if((fe==='"'||fe==="'"||fe==="`"||Ie==='"'||Ie==="'"||Ie==="`")&&fe!==Ie)throw new i("property names with quotes must have matching quotes");if((Ne==="constructor"||!Fe)&&(pe=!0),ue+="."+Ne,be="%"+ue+"%",V(q,be))ge=q[be];else if(ge!=null){if(!(Ne in ge)){if(!ne)throw new l("base intrinsic for "+z+" exists, but the property is not available.");return}if(w&&Pe+1>=Q.length){var He=w(ge,Ne);Fe=!!He,Fe&&"get"in He&&!("originalValue"in He.get)?ge=He.get:ge=ge[Ne]}else Fe=V(ge,Ne),ge=ge[Ne];Fe&&!pe&&(q[be]=ge)}}return ge},Rr}var Cr,so;function Xo(){if(so)return Cr;so=1;var e=Qr(),t=Qo(),r=t([e("%String.prototype.indexOf%")]);return Cr=function(o,a){var i=e(o,!!a);return typeof i=="function"&&r(o,".prototype.")>-1?t([i]):i},Cr}var Dr,lo;function Zo(){if(lo)return Dr;lo=1;var e=Qr(),t=Xo(),r=It(),n=ot(),o=e("%Map%",!0),a=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),l=t("Map.prototype.has",!0),p=t("Map.prototype.delete",!0),c=t("Map.prototype.size",!0);return Dr=!!o&&function(){var s,E={assert:function(P){if(!E.has(P))throw new n("Side channel does not contain "+r(P))},delete:function(P){if(s){var f=p(s,P);return c(s)===0&&(s=void 0),f}return!1},get:function(P){if(s)return a(s,P)},has:function(P){return s?l(s,P):!1},set:function(P,f){s||(s=new o),i(s,P,f)}};return E},Dr}var Tr,co;function oc(){if(co)return Tr;co=1;var e=Qr(),t=Xo(),r=It(),n=Zo(),o=ot(),a=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),l=t("WeakMap.prototype.set",!0),p=t("WeakMap.prototype.has",!0),c=t("WeakMap.prototype.delete",!0);return Tr=a?function(){var s,E,P={assert:function(f){if(!P.has(f))throw new o("Side channel does not contain "+r(f))},delete:function(f){if(a&&f&&(typeof f=="object"||typeof f=="function")){if(s)return c(s,f)}else if(n&&E)return E.delete(f);return!1},get:function(f){return a&&f&&(typeof f=="object"||typeof f=="function")&&s?i(s,f):E&&E.get(f)},has:function(f){return a&&f&&(typeof f=="object"||typeof f=="function")&&s?p(s,f):!!E&&E.has(f)},set:function(f,h){a&&f&&(typeof f=="object"||typeof f=="function")?(s||(s=new a),l(s,f,h)):n&&(E||(E=n()),E.set(f,h))}};return P}:n,Tr}var Or,uo;function ea(){if(uo)return Or;uo=1;var e=ot(),t=It(),r=_l(),n=Zo(),o=oc(),a=o||n||r;return Or=function(){var l,p={assert:function(c){if(!p.has(c))throw new e("Side channel does not contain "+t(c))},delete:function(c){return!!l&&l.delete(c)},get:function(c){return l&&l.get(c)},has:function(c){return!!l&&l.has(c)},set:function(c,d){l||(l=a()),l.set(c,d)}};return p},Or}var xr,po;function Xr(){if(po)return xr;po=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return xr={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},xr}var Nr,fo;function ta(){if(fo)return Nr;fo=1;var e=Xr(),t=ea(),r=Object.prototype.hasOwnProperty,n=Array.isArray,o=t(),a=function(y,S){return o.set(y,S),y},i=function(y){return o.has(y)},l=function(y){return o.get(y)},p=function(y,S){o.set(y,S)},c=(function(){for(var T=[],y=0;y<256;++y)T[T.length]="%"+((y<16?"0":"")+y.toString(16)).toUpperCase();return T})(),d=function(y){for(;y.length>1;){var S=y.pop(),C=S.obj[S.prop];if(n(C)){for(var O=[],_=0;_<C.length;++_)typeof C[_]<"u"&&(O[O.length]=C[_]);S.obj[S.prop]=O}}},s=function(y,S){for(var C=S&&S.plainObjects?{__proto__:null}:{},O=0;O<y.length;++O)typeof y[O]<"u"&&(C[O]=y[O]);return C},E=function T(y,S,C){if(!S)return y;if(typeof S!="object"&&typeof S!="function"){if(n(y)){var O=y.length;if(C&&typeof C.arrayLimit=="number"&&O>C.arrayLimit)return a(s(y.concat(S),C),O);y[O]=S}else if(y&&typeof y=="object")if(i(y)){var _=l(y)+1;y[_]=S,p(y,_)}else{if(C&&C.strictMerge)return[y,S];(C&&(C.plainObjects||C.allowPrototypes)||!r.call(Object.prototype,S))&&(y[S]=!0)}else return[y,S];return y}if(!y||typeof y!="object"){if(i(S)){for(var U=Object.keys(S),W=C&&C.plainObjects?{__proto__:null,0:y}:{0:y},q=0;q<U.length;q++){var te=parseInt(U[q],10);W[te+1]=S[U[q]]}return a(W,l(S)+1)}var I=[y].concat(S);return C&&typeof C.arrayLimit=="number"&&I.length>C.arrayLimit?a(s(I,C),I.length-1):I}var G=y;return n(y)&&!n(S)&&(G=s(y,C)),n(y)&&n(S)?(S.forEach(function(A,V){if(r.call(y,V)){var j=y[V];j&&typeof j=="object"&&A&&typeof A=="object"?y[V]=T(j,A,C):y[y.length]=A}else y[V]=A}),y):Object.keys(S).reduce(function(A,V){var j=S[V];if(r.call(A,V)?A[V]=T(A[V],j,C):A[V]=j,i(S)&&!i(A)&&a(A,l(S)),i(A)){var ae=parseInt(V,10);String(ae)===V&&ae>=0&&ae>l(A)&&p(A,ae)}return A},G)},P=function(y,S){return Object.keys(S).reduce(function(C,O){return C[O]=S[O],C},y)},f=function(T,y,S){var C=T.replace(/\+/g," ");if(S==="iso-8859-1")return C.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(C)}catch{return C}},h=1024,u=function(y,S,C,O,_){if(y.length===0)return y;var U=y;if(typeof y=="symbol"?U=Symbol.prototype.toString.call(y):typeof y!="string"&&(U=String(y)),C==="iso-8859-1")return escape(U).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var W="",q=0;q<U.length;q+=h){for(var te=U.length>=h?U.slice(q,q+h):U,I=[],G=0;G<te.length;++G){var A=te.charCodeAt(G);if(A===45||A===46||A===95||A===126||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||_===e.RFC1738&&(A===40||A===41)){I[I.length]=te.charAt(G);continue}if(A<128){I[I.length]=c[A];continue}if(A<2048){I[I.length]=c[192|A>>6]+c[128|A&63];continue}if(A<55296||A>=57344){I[I.length]=c[224|A>>12]+c[128|A>>6&63]+c[128|A&63];continue}G+=1,A=65536+((A&1023)<<10|te.charCodeAt(G)&1023),I[I.length]=c[240|A>>18]+c[128|A>>12&63]+c[128|A>>6&63]+c[128|A&63]}W+=I.join("")}return W},b=function(y){for(var S=[{obj:{o:y},prop:"o"}],C=[],O=0;O<S.length;++O)for(var _=S[O],U=_.obj[_.prop],W=Object.keys(U),q=0;q<W.length;++q){var te=W[q],I=U[te];typeof I=="object"&&I!==null&&C.indexOf(I)===-1&&(S[S.length]={obj:U,prop:te},C[C.length]=I)}return d(S),y},w=function(y){return Object.prototype.toString.call(y)==="[object RegExp]"},R=function(y){return!y||typeof y!="object"?!1:!!(y.constructor&&y.constructor.isBuffer&&y.constructor.isBuffer(y))},N=function(y,S,C,O){if(i(y)){var _=l(y)+1;return y[_]=S,p(y,_),y}var U=[].concat(y,S);return U.length>C?a(s(U,{plainObjects:O}),U.length-1):U},x=function(y,S){if(n(y)){for(var C=[],O=0;O<y.length;O+=1)C[C.length]=S(y[O]);return C}return S(y)};return Nr={arrayToObject:s,assign:P,combine:N,compact:b,decode:f,encode:u,isBuffer:R,isOverflow:i,isRegExp:w,markOverflow:a,maybeMap:x,merge:E},Nr}var Ir,mo;function ac(){if(mo)return Ir;mo=1;var e=ea(),t=ta(),r=Xr(),n=Object.prototype.hasOwnProperty,o={brackets:function(u){return u+"[]"},comma:"comma",indices:function(u,b){return u+"["+b+"]"},repeat:function(u){return u}},a=Array.isArray,i=Array.prototype.push,l=function(h,u){i.apply(h,a(u)?u:[u])},p=Date.prototype.toISOString,c=r.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:r.formatters[c],indices:!1,serializeDate:function(u){return p.call(u)},skipNulls:!1,strictNullHandling:!1},s=function(u){return typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u=="symbol"||typeof u=="bigint"},E={},P=function h(u,b,w,R,N,x,T,y,S,C,O,_,U,W,q,te,I,G){for(var A=u,V=G,j=0,ae=!1;(V=V.get(E))!==void 0&&!ae;){var we=V.get(u);if(j+=1,typeof we<"u"){if(we===j)throw new RangeError("Cyclic object value");ae=!0}typeof V.get(E)>"u"&&(j=0)}if(typeof C=="function"?A=C(b,A):A instanceof Date?A=U(A):w==="comma"&&a(A)&&(A=t.maybeMap(A,function(be){return be instanceof Date?U(be):be})),A===null){if(x)return q(S&&!te?S(b,d.encoder,I,"key",W):b);A=""}if(s(A)||t.isBuffer(A)){if(S){var M=te?b:S(b,d.encoder,I,"key",W);return[q(M)+"="+q(S(A,d.encoder,I,"value",W))]}return[q(b)+"="+q(String(A))]}var K=[];if(typeof A>"u")return K;var H;if(w==="comma"&&a(A))te&&S&&(A=t.maybeMap(A,function(be){return be==null?be:S(be)})),H=[{value:A.length>0?A.join(",")||null:void 0}];else if(a(C))H=C;else{var oe=Object.keys(A);H=O?oe.sort(O):oe}var ce=y?String(b).replace(/\./g,"%2E"):String(b),L=R&&a(A)&&A.length===1?ce+"[]":ce;if(N&&a(A)&&A.length===0)return L+"[]";for(var re=0;re<H.length;++re){var z=H[re],ne=typeof z=="object"&&z&&typeof z.value<"u"?z.value:A[z];if(!(T&&ne===null)){var Q=_&&y?String(z).replace(/\./g,"%2E"):String(z),ue=a(A)?typeof w=="function"?w(L,Q):L:L+(_?"."+Q:"["+Q+"]");G.set(u,j);var le=e();le.set(E,G),l(K,h(ne,ue,w,R,N,x,T,y,w==="comma"&&te&&a(A)?null:S,C,O,_,U,W,q,te,I,le))}}return K},f=function(u){if(!u)return d;if(typeof u.allowEmptyArrays<"u"&&typeof u.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof u.encodeDotInKeys<"u"&&typeof u.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(u.encoder!==null&&typeof u.encoder<"u"&&typeof u.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=u.charset||d.charset;if(typeof u.charset<"u"&&u.charset!=="utf-8"&&u.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=r.default;if(typeof u.format<"u"){if(!n.call(r.formatters,u.format))throw new TypeError("Unknown format option provided.");w=u.format}var R=r.formatters[w],N=d.filter;(typeof u.filter=="function"||a(u.filter))&&(N=u.filter);var x;if(u.arrayFormat in o?x=u.arrayFormat:"indices"in u?x=u.indices?"indices":"repeat":x=d.arrayFormat,"commaRoundTrip"in u&&typeof u.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var T=typeof u.allowDots>"u"?u.encodeDotInKeys===!0?!0:d.allowDots:!!u.allowDots;return{addQueryPrefix:typeof u.addQueryPrefix=="boolean"?u.addQueryPrefix:d.addQueryPrefix,allowDots:T,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:x,charset:b,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!u.commaRoundTrip,delimiter:typeof u.delimiter>"u"?d.delimiter:u.delimiter,encode:typeof u.encode=="boolean"?u.encode:d.encode,encodeDotInKeys:typeof u.encodeDotInKeys=="boolean"?u.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof u.encoder=="function"?u.encoder:d.encoder,encodeValuesOnly:typeof u.encodeValuesOnly=="boolean"?u.encodeValuesOnly:d.encodeValuesOnly,filter:N,format:w,formatter:R,serializeDate:typeof u.serializeDate=="function"?u.serializeDate:d.serializeDate,skipNulls:typeof u.skipNulls=="boolean"?u.skipNulls:d.skipNulls,sort:typeof u.sort=="function"?u.sort:null,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:d.strictNullHandling}};return Ir=function(h,u){var b=h,w=f(u),R,N;typeof w.filter=="function"?(N=w.filter,b=N("",b)):a(w.filter)&&(N=w.filter,R=N);var x=[];if(typeof b!="object"||b===null)return"";var T=o[w.arrayFormat],y=T==="comma"&&w.commaRoundTrip;R||(R=Object.keys(b)),w.sort&&R.sort(w.sort);for(var S=e(),C=0;C<R.length;++C){var O=R[C];if(!(typeof O>"u"||O===null)){var _=b[O];w.skipNulls&&_===null||l(x,P(_,O,T,y,w.allowEmptyArrays,w.strictNullHandling,w.skipNulls,w.encodeDotInKeys,w.encode?w.encoder:null,w.filter,w.sort,w.allowDots,w.serializeDate,w.format,w.formatter,w.encodeValuesOnly,w.charset,S))}}var U=x.join(w.delimiter),W=w.addQueryPrefix===!0?"?":"";return w.charsetSentinel&&(w.charset==="iso-8859-1"?W+="utf8=%26%2310003%3B"+w.delimiter:W+="utf8=%E2%9C%93"+w.delimiter),U.length>0?W+U:""},Ir}var _r,ho;function ic(){if(ho)return _r;ho=1;var e=ta(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(P){return P.replace(/&#(\d+);/g,function(f,h){return String.fromCharCode(parseInt(h,10))})},a=function(P,f,h){if(P&&typeof P=="string"&&f.comma&&P.indexOf(",")>-1)return P.split(",");if(f.throwOnLimitExceeded&&h>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return P},i="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",p=function(f,h){var u={__proto__:null},b=h.ignoreQueryPrefix?f.replace(/^\?/,""):f;b=b.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var w=h.parameterLimit===1/0?void 0:h.parameterLimit,R=b.split(h.delimiter,h.throwOnLimitExceeded&&typeof w<"u"?w+1:w);if(h.throwOnLimitExceeded&&typeof w<"u"&&R.length>w)throw new RangeError("Parameter limit exceeded. Only "+w+" parameter"+(w===1?"":"s")+" allowed.");var N=-1,x,T=h.charset;if(h.charsetSentinel)for(x=0;x<R.length;++x)R[x].indexOf("utf8=")===0&&(R[x]===l?T="utf-8":R[x]===i&&(T="iso-8859-1"),N=x,x=R.length);for(x=0;x<R.length;++x)if(x!==N){var y=R[x],S=y.indexOf("]="),C=S===-1?y.indexOf("="):S+1,O,_;if(C===-1?(O=h.decoder(y,n.decoder,T,"key"),_=h.strictNullHandling?null:""):(O=h.decoder(y.slice(0,C),n.decoder,T,"key"),O!==null&&(_=e.maybeMap(a(y.slice(C+1),h,r(u[O])?u[O].length:0),function(W){return h.decoder(W,n.decoder,T,"value")}))),_&&h.interpretNumericEntities&&T==="iso-8859-1"&&(_=o(String(_))),y.indexOf("[]=")>-1&&(_=r(_)?[_]:_),h.comma&&r(_)&&_.length>h.arrayLimit){if(h.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");_=e.combine([],_,h.arrayLimit,h.plainObjects)}if(O!==null){var U=t.call(u,O);U&&(h.duplicates==="combine"||y.indexOf("[]=")>-1)?u[O]=e.combine(u[O],_,h.arrayLimit,h.plainObjects):(!U||h.duplicates==="last")&&(u[O]=_)}}return u},c=function(P,f,h,u){var b=0;if(P.length>0&&P[P.length-1]==="[]"){var w=P.slice(0,-1).join("");b=Array.isArray(f)&&f[w]?f[w].length:0}for(var R=u?f:a(f,h,b),N=P.length-1;N>=0;--N){var x,T=P[N];if(T==="[]"&&h.parseArrays)e.isOverflow(R)?x=R:x=h.allowEmptyArrays&&(R===""||h.strictNullHandling&&R===null)?[]:e.combine([],R,h.arrayLimit,h.plainObjects);else{x=h.plainObjects?{__proto__:null}:{};var y=T.charAt(0)==="["&&T.charAt(T.length-1)==="]"?T.slice(1,-1):T,S=h.decodeDotInKeys?y.replace(/%2E/g,"."):y,C=parseInt(S,10),O=!isNaN(C)&&T!==S&&String(C)===S&&C>=0&&h.parseArrays;if(!h.parseArrays&&S==="")x={0:R};else if(O&&C<h.arrayLimit)x=[],x[C]=R;else{if(O&&h.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");O?(x[C]=R,e.markOverflow(x,C)):S!=="__proto__"&&(x[S]=R)}}R=x}return R},d=function(f,h){var u=h.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f;if(h.depth<=0)return!h.plainObjects&&t.call(Object.prototype,u)&&!h.allowPrototypes?void 0:[u];var b=[],w=u.indexOf("["),R=w>=0?u.slice(0,w):u;if(R){if(!h.plainObjects&&t.call(Object.prototype,R)&&!h.allowPrototypes)return;b[b.length]=R}for(var N=u.length,x=w,T=0;x>=0&&T<h.depth;){for(var y=1,S=x+1,C=-1;S<N&&C<0;){var O=u.charCodeAt(S);O===91?y+=1:O===93&&(y-=1,y===0&&(C=S)),S+=1}if(C<0)return b[b.length]="["+u.slice(x)+"]",b;var _=u.slice(x,C+1),U=_.slice(1,-1);if(!h.plainObjects&&t.call(Object.prototype,U)&&!h.allowPrototypes)return;b[b.length]=_,T+=1,x=u.indexOf("[",C+1)}if(x>=0){if(h.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+h.depth+" and strictDepth is true");b[b.length]="["+u.slice(x)+"]"}return b},s=function(f,h,u,b){if(f){var w=d(f,u);if(w)return c(w,h,u,b)}},E=function(f){if(!f)return n;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var h=typeof f.charset>"u"?n.charset:f.charset,u=typeof f.duplicates>"u"?n.duplicates:f.duplicates;if(u!=="combine"&&u!=="first"&&u!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var b=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:n.allowDots:!!f.allowDots;return{allowDots:b,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:n.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:n.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:n.arrayLimit,charset:h,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:n.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:n.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:n.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:n.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:n.depth,duplicates:u,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:n.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:n.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:n.strictDepth,strictMerge:typeof f.strictMerge=="boolean"?!!f.strictMerge:n.strictMerge,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return _r=function(P,f){var h=E(f);if(P===""||P===null||typeof P>"u")return h.plainObjects?{__proto__:null}:{};for(var u=typeof P=="string"?p(P,h):P,b=h.plainObjects?{__proto__:null}:{},w=Object.keys(u),R=0;R<w.length;++R){var N=w[R],x=s(N,u[N],h,typeof P=="string");b=e.merge(b,x,h)}return h.allowSparse===!0?b:e.compact(b)},_r}var kr,yo;function sc(){if(yo)return kr;yo=1;var e=ac(),t=ic(),r=Xr();return kr={formats:r,parse:t,stringify:e},kr}var lc=sc();const cc=ua(lc),uc=["v3/auth/","v1/auth"],dc=["v3/console/server/state","v3/console/server/guide","v3/console/server/announcement","v3/console/core/namespace","v3/auth/user/login","v3/auth/user/admin"],go=["unknown user!","user not found","token invalid!","token expired!","expired token","session expired!","invalid signature","unsupported signature algorithm","invalid token","token is required","token is empty","token has expired","token signature verification failed","no valid oidc token found","token audience validation failed","token issuer mismatch","token is not yet valid","token processing error"];function pc(){return window.location.pathname.replace(/\/(next|legacy)(\/.*)?$/,"/")||"/"}const J=de.create({baseURL:pc(),timeout:1e4,headers:{"Content-Type":"application/x-www-form-urlencoded"}});J.interceptors.request.use(e=>{try{const n=localStorage.getItem("token");if(n){const o=JSON.parse(n);o.accessToken&&(e.headers.set("Authorization",`Bearer ${o.accessToken}`),e.headers.set("accessToken",o.accessToken))}}catch{}const t=e.url||"";if(!uc.some(n=>t.includes(n)))try{const n=localStorage.getItem("token");if(n){const o=JSON.parse(n);o.username&&(e.params={...e.params,username:o.username})}}catch{}return(e.method==="post"||e.method==="put")&&e.data&&typeof e.data=="object"&&!(e.data instanceof FormData)&&!(e.data instanceof URLSearchParams)&&!e.headers?.["Content-Type"]?.toString().includes("application/json")&&(e.data=cc.stringify(e.data)),e},e=>Promise.reject(e));J.interceptors.response.use(e=>{if(e.data&&typeof e.data=="object"){"auth_admin_request"in e.data;const t=e.data;if(t.code&&t.code!==0){const r=typeof t.message=="string"?t.message.toLowerCase():"",n=typeof t.data=="string"?t.data.toLowerCase():"",o=r+" "+n;if(go.some(i=>o.includes(i)))return localStorage.removeItem("token"),window.location.hash="#/login",vt.error(Je.t("common.sessionExpired")),Promise.reject(new Error("session expired"))}}return e.data},e=>{const t=e.response?.status,r=e.response?.data?.message?.toLowerCase()||"",n=typeof e.response?.data?.data=="string"?e.response.data.data.toLowerCase():"";if((t===401||t===403)&&go.some(l=>r.includes(l)||n.includes(l)))return localStorage.removeItem("token"),window.location.hash="#/login",vt.error(Je.t("common.sessionExpired")),Promise.reject(e);const o=e.config?.url||"";if(!(dc.some(i=>o.includes(i))||e.config?.silentError===!0))if(t===403)vt.error(Je.t("common.noPermission"));else{const l=(typeof e.response?.data?.data=="string"?e.response.data.data:"")||e.response?.data?.message||e.message||Je.t("common.requestFailed");vt.error(l)}return Promise.reject(e)});const fc={login:e=>J.post("v3/auth/user/login",e),admin:e=>J.post("v3/auth/user/admin",e),listUsers:e=>J.get("v3/auth/user/list",{params:e}),createUser:e=>J.post("v3/auth/user",e),deleteUser:e=>J.delete("v3/auth/user",{params:{username:e}}),resetPassword:e=>J.put("v3/auth/user",e),listRoles:e=>J.get("v3/auth/role/list",{params:e}),createRole:e=>J.post("v3/auth/role",e),deleteRole:e=>J.delete("v3/auth/role",{params:e}),listPermissions:e=>J.get("v3/auth/permission/list",{params:e}),createPermission:e=>J.post("v3/auth/permission",e),deletePermission:e=>J.delete("v3/auth/permission",{params:e})},Lr={getState:()=>J.get("v3/console/server/state"),getAnnouncement:e=>J.get(`v3/console/server/announcement?language=${e}`),getGuide:()=>J.get("v3/console/server/guide")},mc={list:()=>J.get("v3/console/core/namespace/list"),detail:e=>J.get("v3/console/core/namespace",{params:{namespaceId:e}}),create:e=>J.post("v3/console/core/namespace",e),update:e=>J.put("v3/console/core/namespace",e),remove:e=>J.delete(`v3/console/core/namespace?namespaceId=${e}`)};function hc(){try{const e=localStorage.getItem("token");if(e)return JSON.parse(e).accessToken||""}catch{}return""}function ra(){return window.location.pathname.replace(/\/(next|legacy)(\/.*)?$/,"/")||"/"}function Zc(e){const t=ra();return`${window.location.origin}${t}${e}`}function eu(e){const{url:t,payload:r,onThinking:n,onContent:o,onToolCall:a,onDone:i,onError:l,onFinish:p}=e,c=new AbortController,d=hc();return fetch(t,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d?{Authorization:`Bearer ${d}`,AccessToken:d}:{}},body:JSON.stringify(r),signal:c.signal}).then(s=>{if(!s.ok)throw new Error(`HTTP ${s.status}`);const E=s.body.getReader(),P=new TextDecoder;let f="",h="message",u=null;const b=()=>E.read().then(({done:w,value:R})=>{if(w){p?.();return}f+=P.decode(R,{stream:!0});const N=f.split(`
14`);return f=N.pop()||"",N.forEach(x=>{if(x.startsWith("event:")){const T=x.substring(6).trim();if(h=T,T==="error"&&u){const y=u,S=y.explanation||y.message||"Stream error";l?.(S),p?.(),u=null}}else if(x.startsWith("data:")){const T=x.substring(5).trim();if(!T)return;try{const y=JSON.parse(T);if(h==="error"){const C=y.explanation||y.message||"Stream error";l?.(C),p?.();return}u=y;const S=(typeof y.type=="object"?y.type?.code:y.type)||"CONTENT";if(S==="THINKING")n?.(y.chunk||"");else if(S==="TOOL_CALL")a?.(y.chunk||"");else if(S==="CONTENT")o?.(y.chunk||"");else if(S==="DONE"||y.done){i?.(y),p?.();return}}catch{}}}),b()});return b()}).catch(s=>{if(s.name==="AbortError"){p?.();return}l?.(s.message||"Request failed"),p?.()}),{abort:()=>c.abort()}}function tu(e,t="skill"){if(!e?.trim())return null;let r=e.trim();try{const o=JSON.parse(r);return o[t]||o}catch{}if(r.includes("```json")){const o=r.indexOf("```json")+7,a=r.indexOf("```",o);if(a>o){r=r.substring(o,a).trim();try{const i=JSON.parse(r);return i[t]||i}catch{}}}if(r.includes("```")){const o=r.indexOf("```")+3,a=r.indexOf("```",o);if(a>o){r=r.substring(o,a).trim();try{const i=JSON.parse(r);return i[t]||i}catch{}}}const n=e.match(/\{[\s\S]*\}/);if(n)try{const o=JSON.parse(n[0]);return o[t]||o}catch{}return null}function ru(e){if(!e?.resource)return e;const t={};for(const[r,n]of Object.entries(e.resource)){const o=n?.name||"";o.toUpperCase()==="SKILL.MD"||r.toUpperCase()==="SKILL.MD"||o.toUpperCase().includes("SKILL.MD")||r.toUpperCase().includes("SKILL.MD")||(t[r]=n)}return{...e,resource:t}}const zr=ct(e=>({token:null,username:null,globalAdmin:!1,oidc:!1,isAuthenticated:!1,loading:!1,error:null,login:async(t,r)=>{e({loading:!0,error:null});try{const o=await fc.login({username:t,password:r}),a={accessToken:o.accessToken,username:o.username||t,globalAdmin:o.globalAdmin||!1};return localStorage.setItem("token",JSON.stringify(a)),e({token:o.accessToken,username:a.username,globalAdmin:a.globalAdmin,oidc:!1,isAuthenticated:!0,loading:!1,error:null}),!0}catch(n){const a=n.response?.data?.message||"Login failed";return e({loading:!1,error:a,isAuthenticated:!1}),!1}},logout:()=>{const t=zr.getState().oidc;localStorage.removeItem("token"),sessionStorage.clear(),e({token:null,username:null,globalAdmin:!1,oidc:!1,isAuthenticated:!1,error:null}),t?window.location.href=ra()+"v1/auth/oidc/logout?redirect=true":window.location.hash="#/login"},loadFromStorage:()=>{try{const t=localStorage.getItem("token");if(t){const n=JSON.parse(t);e({token:n.accessToken,username:n.username,globalAdmin:n.globalAdmin,oidc:!!n.oidc,isAuthenticated:!!n.accessToken})}}catch{e({token:null,username:null,globalAdmin:!1,isAuthenticated:!1})}},clearError:()=>{e({error:null})},isOidcUser:()=>zr.getState().oidc})),yc={version:"",standaloneMode:"",functionMode:"",loginPageEnabled:!0,authEnabled:!1,consoleUiEnable:!0,startupMode:"",configRetentionDays:0,authSystemType:"",authAdminRequest:!1,copilotEnabled:!1,aiEnabled:!0,notice:"",guideMsg:"",loading:!1,stateLoaded:!1,error:null},kt=ct(e=>({...yc,fetchState:async()=>{e({loading:!0,error:null});try{const r=await Lr.getState();e({version:r.version||"",standaloneMode:r.standalone_mode||"",functionMode:r.function_mode||"",loginPageEnabled:String(r.login_page_enabled)==="true",authEnabled:String(r.auth_enabled)==="true",consoleUiEnable:String(r.console_ui_enabled)==="true",startupMode:r.startup_mode||"",configRetentionDays:Number(r.config_retention_days)||0,authSystemType:r.auth_system_type||"",authAdminRequest:String(r.auth_admin_request)==="true",copilotEnabled:String(r.copilot_enabled)==="true",aiEnabled:r.ai_enabled===void 0?!0:String(r.ai_enabled)==="true",loading:!1,stateLoaded:!0})}catch(t){const r=t instanceof Error?t.message:"Failed to fetch server state";e({loading:!1,error:r})}},fetchNotice:async t=>{try{const n=await Lr.getAnnouncement(t);e({notice:n.data||""})}catch{e({notice:""})}},fetchGuide:async()=>{try{const r=await Lr.getGuide();e({guideMsg:r.data||""})}catch{e({guideMsg:""})}}})),gc=e=>{const t=e.split("?")[1];if(!t)return"";const r=new URLSearchParams(t);return r.get("namespace")||r.get("namespaceId")||""},nu=(e,t,r)=>{const n=new URLSearchParams(e);if(!(n.has("namespace")||n.has("namespaceId")))return null;n.has("namespace")&&n.set("namespace",t),n.has("namespaceId")&&n.set("namespaceId",t),n.has("namespaceShowName")&&n.set("namespaceShowName",r);const a=n.toString();return a?`?${a}`:""},bc=()=>typeof window>"u"?"":gc(window.location.hash),ou=ct((e,t)=>({currentNamespace:bc(),namespaceShowName:"",namespaces:[],loading:!1,error:null,namespaceChangeGuard:null,setNamespace:(r,n)=>{e({currentNamespace:r,namespaceShowName:n})},setNamespaceChangeGuard:r=>{e({namespaceChangeGuard:r})},getNamespaceChangeGuard:()=>t().namespaceChangeGuard,fetchNamespaces:async()=>{e({loading:!0,error:null});try{const o=(await mc.list()).data||[];if(!t().currentNamespace&&o.length>0){const i=o.find(l=>l.namespace==="public")||o[0];e({namespaces:o,currentNamespace:i.namespace,namespaceShowName:i.namespaceShowName,loading:!1})}else e({namespaces:o,loading:!1})}catch(r){const n=r instanceof Error?r.message:"Failed to fetch namespaces";e({loading:!1,error:n})}},getCurrentNamespace:()=>t().currentNamespace})),vc=ct(e=>({sidebarCollapsed:!1,theme:"light",language:"zh-CN",toggleSidebar:()=>{e(t=>{const r=!t.sidebarCollapsed;return an(r),{sidebarCollapsed:r}})},setSidebarCollapsed:t=>{an(t),e({sidebarCollapsed:t})},setTheme:t=>{Aa(t),document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(t),e({theme:t})},setLanguage:t=>{Pa(t),e({language:t})},initFromStorage:()=>{const t=Ra(),r=Ea(),n=Po();document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(r),e({sidebarCollapsed:t,theme:r,language:n})}})),Se="v3/console/ai/agentspecs",bo={list:e=>J.get(`${Se}/list`,{params:e}),getDetail:e=>J.get(Se,{params:e}),getVersion:e=>J.get(`${Se}/version`,{params:e}),delete:e=>J.delete(Se,{params:e}),upload:(e,t)=>{const r=new FormData;return r.append("file",t),r.append("namespaceId",e),J.post(`${Se}/upload`,r,{headers:{"Content-Type":"multipart/form-data"},timeout:6e4})},createDraft:e=>J.post(`${Se}/draft`,e),updateDraft:e=>J.put(`${Se}/draft`,e),deleteDraft:e=>J.delete(`${Se}/draft`,{params:e}),submit:e=>J.post(`${Se}/submit`,e),publish:e=>J.post(`${Se}/publish`,e),forcePublish:e=>J.post(`${Se}/force-publish`,e),redraft:e=>J.post(`${Se}/redraft`,e),updateLabels:e=>J.put(`${Se}/labels`,e),updateBizTags:e=>J.put(`${Se}/biz-tags`,e),updateScope:e=>J.put(`${Se}/scope`,e),online:e=>J.post(`${Se}/online`,e),offline:e=>J.post(`${Se}/offline`,e)},au=ct((e,t)=>({items:[],loading:!1,total:0,pageNo:1,pageSize:12,searchName:"",orderBy:"",filterOwner:"",filterScope:"",selectedNames:new Set,currentDetail:null,detailLoading:!1,error:null,fetchList:async r=>{e({loading:!0,error:null});try{const{searchName:n,pageNo:o,pageSize:a,orderBy:i,filterOwner:l,filterScope:p}=t(),d=(await bo.list({namespaceId:r,agentSpecName:n||void 0,search:n?"blur":void 0,orderBy:i||void 0,owner:l||void 0,scope:p||void 0,pageNo:o,pageSize:a})).data,s=d.pageItems||[],E=new Set(s.map(P=>P.name));e(P=>({items:s,total:d.totalCount||0,loading:!1,selectedNames:new Set([...P.selectedNames].filter(f=>E.has(f)))}))}catch(n){e({loading:!1,error:n.response?.data?.message||Je.t("agentSpec.loadListError"),items:[],total:0})}},fetchDetail:async(r,n)=>{const o=t().currentDetail!==null;e({detailLoading:!o,error:null});try{const a=await bo.getDetail({namespaceId:r,agentSpecName:n});e({currentDetail:{...a.data,name:n},detailLoading:!1})}catch(a){e({detailLoading:!1,error:a.response?.data?.message||Je.t("agentSpec.loadError"),currentDetail:null})}},setSearchParams:r=>{e(n=>({...n,...r,pageNo:1}))},setPage:(r,n)=>{e(o=>({pageNo:r,pageSize:n??o.pageSize}))},resetSearch:()=>{e({searchName:"",orderBy:"",filterOwner:"",filterScope:"",pageNo:1})},toggleSelect:r=>{e(n=>{const o=new Set(n.selectedNames);return o.has(r)?o.delete(r):o.add(r),{selectedNames:o}})},selectAll:r=>{e({selectedNames:new Set(r)})},clearSelection:()=>{e({selectedNames:new Set})},clearDetail:()=>{e({currentDetail:null})},clearError:()=>{e({error:null})}}));function na(e,t){const r=t!=="naming"&&t!=="ai",n=t!=="config"&&t!=="ai";return e&&t!=="naming"&&t!=="config"&&t!=="microservice"?"/skill":r?"/configurationManagement":n?"/serviceManagement":"/namespace"}function Sc(){const{t:e}=da(),{guideMsg:t}=kt();return B.jsx("div",{className:"flex items-center justify-center min-h-screen bg-gradient-to-br from-blue-50 via-sky-100 to-blue-100",children:B.jsxs("div",{className:"max-w-md w-full mx-4 bg-white rounded-xl shadow-lg p-8 text-center",children:[B.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full bg-amber-100 mb-4",children:B.jsx(Sa,{className:"h-7 w-7 text-amber-600"})}),B.jsx("h1",{className:"text-xl font-semibold text-gray-800 mb-4",children:e("login.consoleClosed")}),t&&B.jsx("div",{className:"text-sm text-gray-500 leading-relaxed [&_a]:text-blue-600 [&_a]:underline [&_a]:hover:text-blue-700 [&_code]:bg-gray-100 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-gray-700 [&_code]:font-mono [&_code]:text-xs",dangerouslySetInnerHTML:{__html:t}})]})})}function wc(){const e=Eo(),{consoleUiEnable:t,authEnabled:r,loginPageEnabled:n,stateLoaded:o,fetchState:a,fetchGuide:i}=kt();return $e.useEffect(()=>{o||(a(),i())},[o,a,i]),o?t?!r||!n?B.jsx(lt,{}):e?B.jsx(lt,{}):B.jsx(je,{to:"/login",replace:!0}):B.jsx(Sc,{}):null}function Pc(){const{aiEnabled:e,functionMode:t,stateLoaded:r,fetchState:n}=kt();return $e.useEffect(()=>{r||n()},[r,n]),r?e?B.jsx(lt,{}):B.jsx(je,{to:na(!1,t),replace:!0}):null}function Mr(){const{globalAdmin:e,isAuthenticated:t}=zr();return t?e?B.jsx(lt,{}):B.jsx("div",{className:"flex items-center justify-center min-h-screen",children:B.jsxs("div",{className:"text-center",children:[B.jsx("h1",{className:"text-2xl font-bold text-red-600 mb-4",children:"Access Denied"}),B.jsx("p",{className:"text-gray-600",children:"You need administrator privileges to access this page."})]})}):B.jsx(je,{to:"/login",replace:!0})}function Ec(){return Eo()?B.jsx(je,{to:"/",replace:!0}):B.jsx(lt,{})}function oa(){return B.jsx("div",{className:"flex items-center justify-center py-32",children:B.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-2 border-muted border-t-primary"})})}function X(e){const t=$e.lazy(e);return B.jsx($e.Suspense,{fallback:B.jsx(oa,{}),children:B.jsx(t,{})})}function Ac(){const{aiEnabled:e,functionMode:t}=kt();return B.jsx(je,{to:na(e,t),replace:!0})}const Rc=$e.lazy(()=>Y(()=>import("./AppLayout.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)),Cc=[{element:B.jsx(Ec,{}),children:[{path:"/login",element:X(()=>Y(()=>import("./index.js"),__vite__mapDeps([17,1,4,3,13,14,18,9,15,16]),import.meta.url))},{path:"/register",element:X(()=>Y(()=>import("./index2.js"),__vite__mapDeps([19,1,4,3,13,14,18,9,15,16]),import.meta.url))}]},{element:B.jsx(wc,{}),children:[{element:B.jsx($e.Suspense,{fallback:B.jsx(oa,{}),children:B.jsx(Rc,{})}),children:[{index:!0,element:B.jsx(Ac,{})},{path:"welcome",element:X(()=>Y(()=>import("./index3.js"),__vite__mapDeps([20,1,15,16,9]),import.meta.url))},{path:"namespace",element:X(()=>Y(()=>import("./index4.js"),__vite__mapDeps([21,1,4,3,13,18,6,22,23,12,9,14,24,2,15,16]),import.meta.url))},{path:"configurationManagement",element:X(()=>Y(()=>import("./index5.js"),__vite__mapDeps([25,1,26,27,28,4,3,13,18,6,22,29,9,23,12,10,11,15,16]),import.meta.url))},{path:"newconfig",element:X(()=>Y(()=>import("./index6.js"),__vite__mapDeps([30,1,4,3,13,14,24,18,11,9,31,15,16,28,27]),import.meta.url))},{path:"configdetail",element:X(()=>Y(()=>import("./index7.js"),__vite__mapDeps([32,1,26,27,31,15,16,28,18,4,3,22,12,9]),import.meta.url))},{path:"configeditor",element:X(()=>Y(()=>import("./index8.js"),__vite__mapDeps([33,1,27,31,15,16,28,34,18,4,3,13,14,24,35,12,9,11]),import.meta.url))},{path:"configsync",element:X(()=>Y(()=>import("./index9.js"),__vite__mapDeps([36,1]),import.meta.url))},{path:"configRollback",element:X(()=>Y(()=>import("./index10.js"),__vite__mapDeps([37,1,38,27,31,15,16,28,4,3,18,22,12,9]),import.meta.url))},{path:"historyDetail",element:X(()=>Y(()=>import("./index11.js"),__vite__mapDeps([39,1,38,27,31,15,16,28,4,3,18,22,9]),import.meta.url))},{path:"historyRollback",element:X(()=>Y(()=>import("./index12.js"),__vite__mapDeps([40,1,38,27,34,15,16,28,4,3,13,18,6,22,23,12,9,11]),import.meta.url))},{path:"listeningToQuery",element:X(()=>Y(()=>import("./index13.js"),__vite__mapDeps([41,1,27,4,3,13,18,22,23,11,9,42,15,16]),import.meta.url))},{path:"serviceManagement",element:X(()=>Y(()=>import("./index14.js"),__vite__mapDeps([43,1,44,45,4,3,13,14,18,22,6,46,23,11,9,12,24,15,16]),import.meta.url))},{path:"serviceDetail",element:X(()=>Y(()=>import("./index15.js"),__vite__mapDeps([47,1,44,45,4,3,13,14,18,6,46,22,24,23,11,9,12,15,16]),import.meta.url))},{path:"subscriberList",element:X(()=>Y(()=>import("./index16.js"),__vite__mapDeps([48,1,44,4,3,13,18,22,23,11,9,15,16]),import.meta.url))},{element:B.jsx(Mr,{}),children:[{path:"clusterManagement",element:X(()=>Y(()=>import("./index17.js"),__vite__mapDeps([49,1,4,3,13,18,6,22,23,12,9,11,15,16]),import.meta.url))}]},{element:B.jsx(Mr,{}),children:[{path:"userManagement",element:X(()=>Y(()=>import("./index18.js"),__vite__mapDeps([50,1,4,3,13,18,22,23,12,9,11,14,15,16]),import.meta.url))},{path:"rolesManagement",element:X(()=>Y(()=>import("./index19.js"),__vite__mapDeps([51,1,4,3,13,18,22,23,12,9,11,14,6,52,15,16]),import.meta.url))},{path:"permissionsManagement",element:X(()=>Y(()=>import("./index20.js"),__vite__mapDeps([53,1,4,3,13,18,6,22,23,12,9,11,14,52,15,16]),import.meta.url))}]},{element:B.jsx(Pc,{}),children:[{path:"mcpServerManagement",element:X(()=>Y(()=>import("./index21.js"),__vite__mapDeps([54,1,18,4,3,13,22,11,9,12,6,29,2,55,14,46,42,8,56,57,15,16]),import.meta.url))},{path:"mcpServerDetail",element:X(()=>Y(()=>import("./index22.js"),__vite__mapDeps([58,1,18,4,3,6,22,46,11,9,23,59,8,7,13,56,57,15,16]),import.meta.url))},{path:"newMcpServer",element:X(()=>Y(()=>import("./index23.js"),__vite__mapDeps([60,1,18,4,3,6,13,24,14,46,7,22,11,9,61,2,12,56,57,44,29,5,35,15,16]),import.meta.url))},{path:"agentManagement",element:X(()=>Y(()=>import("./index24.js"),__vite__mapDeps([62,1,18,4,3,13,22,11,9,12,29,2,63,15,16]),import.meta.url))},{path:"newAgent",element:X(()=>Y(()=>import("./index25.js"),__vite__mapDeps([64,1,18,4,3,13,24,14,46,7,22,61,9,12,63,15,16]),import.meta.url))},{path:"agentDetail",element:X(()=>Y(()=>import("./index26.js"),__vite__mapDeps([65,1,18,4,3,6,22,46,11,9,59,8,63,15,16]),import.meta.url))},{path:"agentspec",element:X(()=>Y(()=>import("./index27.js"),__vite__mapDeps([66,1,18,4,3,13,22,11,9,12,6,29,2,67,68,14,24,15,16]),import.meta.url))},{path:"agentspec/new",element:X(()=>Y(()=>import("./index28.js"),__vite__mapDeps([69,1,15,16,18,4,3,13,6,14,24,12,9,11,70,8,71]),import.meta.url))},{path:"agentspec/:name",element:X(()=>Y(()=>import("./index29.js"),__vite__mapDeps([72,1,18,4,3,6,22,46,2,13,24,14,73,74,11,9,12,59,68,67,75,29,15,16,70,8,71,35]),import.meta.url))},{path:"skill",element:X(()=>Y(()=>import("./index30.js"),__vite__mapDeps([76,1,18,4,3,13,22,11,9,12,6,29,2,67,77,78,5,57,73,74,14,24,35,55,46,42,8,15,16]),import.meta.url))},{path:"newSkill",element:X(()=>Y(()=>import("./index31.js"),__vite__mapDeps([79,1]),import.meta.url))},{path:"skill/:name",element:X(()=>Y(()=>import("./index32.js"),__vite__mapDeps([80,1,18,4,3,6,22,24,13,14,46,2,73,74,11,9,59,12,78,29,5,57,77,67,75,35,15,16,70,8]),import.meta.url))},{path:"promptManagement",element:X(()=>Y(()=>import("./index33.js"),__vite__mapDeps([81,1,18,4,3,13,22,11,9,12,29,2,67,15,16,14,6,82]),import.meta.url))},{path:"newPrompt",element:B.jsx(je,{to:"/promptManagement",replace:!0})},{path:"promptDetail",element:X(()=>Y(()=>import("./index34.js"),__vite__mapDeps([83,1,15,16,18,4,3,13,24,6,14,7,22,2,11,9,12,59,82,67,77,75,73,74,29]),import.meta.url))},{path:"publishPromptVersion",element:B.jsx(je,{to:"/newPrompt",replace:!0})}]},{element:B.jsx(Mr,{}),children:[{path:"pluginManagement",element:X(()=>Y(()=>import("./index35.js"),__vite__mapDeps([84,1,4,3,18,6,22,23,12,9,46,15,16]),import.meta.url))}]},{path:"settingCenter",element:X(()=>Y(()=>import("./index36.js"),__vite__mapDeps([85,1,4,3,13,18,14,22,11,9,15,16]),import.meta.url))}]}]},{path:"*",element:B.jsx(je,{to:"/",replace:!0})}],Dc=pa(Cc);function Tc(){return B.jsx(fa,{router:Dc})}function Oc(){const{initFromStorage:e}=vc();return $e.useEffect(()=>{e()},[e]),B.jsxs(B.Fragment,{children:[B.jsx(Tc,{}),B.jsx(Fi,{position:"top-right",richColors:!0,closeButton:!0})]})}(function(){const t=window.location.hash;if(t&&t.includes("error=")){try{const i=t.split("?")[1];if(i){const p=new URLSearchParams(i).get("error");if(p){console.error("[OIDC] Authentication failed:",decodeURIComponent(p)),sessionStorage.setItem("oidcError",decodeURIComponent(p));const c=window.location.href.split("#")[0]+"#/login";window.history.replaceState(null,"",c)}}}catch(i){console.error("[OIDC] Failed to parse error from URL",i)}return}function r(i){const p=`; ${document.cookie}`.split(`; ${i}=`);return p.length===2&&p.pop().split(";").shift()||null}function n(i){document.cookie=i+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}const o=r("accessToken"),a=r("username");o&&a&&(localStorage.setItem("token",JSON.stringify({accessToken:o,username:decodeURIComponent(a),globalAdmin:!1,oidc:!0})),n("accessToken"),n("username"))})();ma.createRoot(document.getElementById("root")).render(B.jsx($e.StrictMode,{children:B.jsx(Oc,{})}));export{zr as a,kt as b,ou as c,fc as d,ra as e,ct as f,nu as g,J as h,bo as i,au as j,Zc as k,ru as l,mc as n,tu as p,Il as r,eu as s,vt as t,vc as u};

Calls 1

callMethod · 0.45

Tested by

no test coverage detected