@gientech/modual 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +761 -761
- package/assets/{GientechStreamReader-C5jijqVw.js → GientechStreamReader-OCXcOLQC.js} +1 -1
- package/assets/{LeftOutlined-9XTSYGbi.js → LeftOutlined-DZMeGbKk.js} +1 -1
- package/assets/database.svg +11 -11
- package/assets/database_add.svg +53 -53
- package/assets/database_connect.svg +66 -66
- package/assets/database_upload.svg +29 -29
- package/assets/databse.svg +6 -6
- package/assets/defaultWeLogo.svg +14 -14
- package/assets/graph.svg +4 -4
- package/assets/iconAi.svg +9 -9
- package/assets/{index-BxR_BLxA.js → index-97Oe7YBe.js} +1 -1
- package/assets/{index-DaM9Fbys.js → index-B4k3tK0f.js} +1 -1
- package/assets/index-BIEKgWu0.js +27 -0
- package/assets/{index-B64Nj5uU.js → index-CGHHoZNS.js} +2 -2
- package/assets/index-CzZQWA2P.js +1 -0
- package/assets/{index-BvpN2hYX.js → index-DHK_n74G.js} +2 -2
- package/assets/{index-sWqCalkt.js → index-DPA1HCWQ.js} +233 -168
- package/assets/index-Dj91ulxd.js +646 -0
- package/assets/{index-hDlFWjNU.js → index-Dp4XCzCf.js} +1 -1
- package/assets/{index-D3Z0MZbL.js → index-iOuQJ8vu.js} +4 -4
- package/assets/{index-B872BsjL.js → index-usBlUHOb.js} +2 -2
- package/assets/knowledge.svg +4 -4
- package/assets/mysql.svg +14 -14
- package/assets/{plus-DDbDO7lA.js → plus-BICgMvz9.js} +1 -1
- package/assets/{search-BoBdGjgo.js → search-CD5YKija.js} +1 -1
- package/assets/sensitive.svg +5 -5
- package/assets/{style-DwfpZJI9.js → style-IJGVxGIy.js} +2 -2
- package/assets/style2.css +1 -1
- package/assets/style4.css +1 -1
- package/assets/{triangle-alert-DF53kXdm.js → triangle-alert-C4Z1AkGW.js} +1 -1
- package/assets/{x-DfdS1_QC.js → x-DWGzNb9c.js} +1 -1
- package/assistantConfig.js +28 -28
- package/chat.js +1 -1
- package/chatCompare.js +1 -1
- package/database.js +2 -2
- package/databaseId.d.ts +107 -2
- package/databaseId.js +1 -1
- package/databaseTable.js +2 -2
- package/index.d.ts +104 -0
- package/index.js +1 -1
- package/modelManage.js +1 -1
- package/package.json +6 -6
- package/sensitive.js +6 -6
- package/streamFilesReader.js +1 -1
- package/worker/pdf.worker.min.js +21 -21
- package/assets/index-BIrUv1JE.js +0 -576
- package/assets/index-Bk-pRt65.js +0 -27
- package/assets/index-CkVpaVb6.js +0 -1
- package/assets/index-SbYeytsI.js +0 -1
|
@@ -4,7 +4,7 @@ import*as u from"react";import ne,{useContext as ir,createElement as yi,createCo
|
|
|
4
4
|
`+i.map(Bu).join(`
|
|
5
5
|
`):" "+Bu(i[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Bm={getAdapter:Q0,adapters:Ic};function Es(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ao(null,e)}function Lu(e){return Es(e),e.headers=wr.from(e.headers),e.data=$s.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bm.getAdapter(e.adapter||wa.adapter,e)(e).then(function(n){return Es(e),n.data=$s.call(e,e.transformResponse,n),n.headers=wr.from(n.headers),n},function(n){return Fm(n)||(Es(e),n&&n.response&&(n.response.data=$s.call(e,e.transformResponse,n.response),n.response.headers=wr.from(n.response.headers))),Promise.reject(n)})}const Lm="1.13.1",Vi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const zu={};Vi.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Lm+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new tt(o(i," has been removed"+(r?" in "+r:"")),tt.ERR_DEPRECATED);return r&&!zu[i]&&(zu[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}};Vi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function J0(e,t,r){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new tt("option "+a+" must be "+l,tt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new tt("Unknown option "+a,tt.ERR_BAD_OPTION)}}const ri={assertOptions:J0,validators:Vi},en=ri.validators;let Vn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Iu,response:new Iu}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
6
|
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Un(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ri.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),o!=null&&(Q.isFunction(o)?r.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:en.function,serialize:en.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ri.assertOptions(r,{baseUrl:en.spelling("baseURL"),withXsrfToken:en.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&Q.merge(a.common,a[r.method]);a&&Q.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=wr.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let d,f=0,v;if(!l){const g=[Lu.bind(this),void 0];for(g.unshift(...s),g.push(...c),v=g.length,d=Promise.resolve(r);f<v;)d=d.then(g[f++],g[f++]);return d}v=s.length;let h=r;for(;f<v;){const g=s[f++],p=s[f++];try{h=g(h)}catch(m){p.call(this,m);break}}try{d=Lu.call(this,h)}catch(g){return Promise.reject(g)}for(f=0,v=c.length;f<v;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Un(this.defaults,t);const r=Am(t.baseURL,t.url,t.allowAbsoluteUrls);return Mm(r,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){Vn.prototype[t]=function(r,n){return this.request(Un(n||{},{method:t,url:r,data:(n||{}).data}))}});Q.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(Un(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Vn.prototype[t]=r(),Vn.prototype[t+"Form"]=r(!0)});let Z0=class zm{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(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new Ao(a,i,s),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 zm(function(o){t=o}),cancel:t}}};function eb(e){return function(r){return e.apply(null,r)}}function tb(e){return Q.isObject(e)&&e.isAxiosError===!0}const vl={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(vl).forEach(([e,t])=>{vl[t]=e});function Hm(e){const t=new Vn(e),r=bm(Vn.prototype.request,t);return Q.extend(r,Vn.prototype,t,{allOwnKeys:!0}),Q.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Hm(Un(e,o))},r}const Ut=Hm(wa);Ut.Axios=Vn;Ut.CanceledError=Ao;Ut.CancelToken=Z0;Ut.isCancel=Fm;Ut.VERSION=Lm;Ut.toFormData=Hi;Ut.AxiosError=tt;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=eb;Ut.isAxiosError=tb;Ut.mergeConfig=Un;Ut.AxiosHeaders=wr;Ut.formToJSON=e=>Nm(Q.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=Bm.getAdapter;Ut.HttpStatusCode=vl;Ut.default=Ut;const{Axios:yM,AxiosError:SM,CanceledError:CM,isCancel:wM,CancelToken:xM,VERSION:$M,all:EM,Cancel:OM,isAxiosError:RM,spread:IM,toFormData:PM,AxiosHeaders:MM,HttpStatusCode:TM,formToJSON:NM,getAdapter:FM,mergeConfig:_M}=Ut;var mr=function(){return mr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},mr.apply(this,arguments)};function oa(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var AM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jM(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var It="-ms-",Jo="-moz-",St="-webkit-",Vm="comm",Wi="rule",Pc="decl",nb="@import",Wm="@keyframes",ob="@layer",km=Math.abs,Mc=String.fromCharCode,gl=Object.assign;function ab(e,t){return er(e,0)^45?(((t<<2^er(e,0))<<2^er(e,1))<<2^er(e,2))<<2^er(e,3):0}function qm(e){return e.trim()}function sn(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,r){return e.replace(t,r)}function ni(e,t,r){return e.indexOf(t,r)}function er(e,t){return e.charCodeAt(t)|0}function So(e,t,r){return e.slice(t,r)}function rn(e){return e.length}function Um(e){return e.length}function Xo(e,t){return t.push(e),e}function ib(e,t){return e.map(t).join("")}function Hu(e,t){return e.filter(function(r){return!sn(r,t)})}var ki=1,Co=1,Gm=0,Br=0,kt=0,jo="";function qi(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ki,column:Co,length:i,return:"",siblings:s}}function pn(e,t){return gl(qi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ro(e){for(;e.root;)e=pn(e.root,{children:[e]});Xo(e,e.siblings)}function sb(){return kt}function lb(){return kt=Br>0?er(jo,--Br):0,Co--,kt===10&&(Co=1,ki--),kt}function Ur(){return kt=Br<Gm?er(jo,Br++):0,Co++,kt===10&&(Co=1,ki++),kt}function Wn(){return er(jo,Br)}function oi(){return Br}function Ui(e,t){return So(jo,e,t)}function hl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cb(e){return ki=Co=1,Gm=rn(jo=e),Br=0,[]}function ub(e){return jo="",e}function Os(e){return qm(Ui(Br-1,pl(e===91?e+2:e===40?e+1:e)))}function db(e){for(;(kt=Wn())&&kt<33;)Ur();return hl(e)>2||hl(kt)>3?"":" "}function fb(e,t){for(;--t&&Ur()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return Ui(e,oi()+(t<6&&Wn()==32&&Ur()==32))}function pl(e){for(;Ur();)switch(kt){case e:return Br;case 34:case 39:e!==34&&e!==39&&pl(kt);break;case 40:e===41&&pl(e);break;case 92:Ur();break}return Br}function mb(e,t){for(;Ur()&&e+kt!==57;)if(e+kt===84&&Wn()===47)break;return"/*"+Ui(t,Br-1)+"*"+Mc(e===47?e:Ur())}function vb(e){for(;!hl(Wn());)Ur();return Ui(e,Br)}function gb(e){return ub(ai("",null,null,null,[""],e=cb(e),0,[0],e))}function ai(e,t,r,n,o,a,i,s,l){for(var c=0,d=0,f=i,v=0,h=0,g=0,p=1,m=1,b=1,y=0,S="",C=o,$=a,x=n,w=S;m;)switch(g=y,y=Ur()){case 40:if(g!=108&&er(w,f-1)==58){ni(w+=rt(Os(y),"&","&\f"),"&\f",km(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=Os(y);break;case 9:case 10:case 13:case 32:w+=db(g);break;case 92:w+=fb(oi()-1,7);continue;case 47:switch(Wn()){case 42:case 47:Xo(hb(mb(Ur(),oi()),t,r,l),l);break;default:w+="/"}break;case 123*p:s[c++]=rn(w)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+d:b==-1&&(w=rt(w,/\f/g,"")),h>0&&rn(w)-f&&Xo(h>32?Wu(w+";",n,r,f-1,l):Wu(rt(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(Xo(x=Vu(w,t,r,c,d,o,s,S,C=[],$=[],f,a),a),y===123)if(d===0)ai(w,t,x,x,C,a,f,s,$);else switch(v===99&&er(w,3)===110?100:v){case 100:case 108:case 109:case 115:ai(e,x,x,n&&Xo(Vu(e,x,x,0,0,o,s,S,o,C=[],f,$),$),o,$,f,s,n?C:$);break;default:ai(w,x,x,x,[""],$,0,s,$)}}c=d=h=0,p=b=1,S=w="",f=i;break;case 58:f=1+rn(w),h=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&lb()==125)continue}switch(w+=Mc(y),y*p){case 38:b=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(rn(w)-1)*b,b=1;break;case 64:Wn()===45&&(w+=Os(Ur())),v=Wn(),d=f=rn(S=w+=vb(oi())),y++;break;case 45:g===45&&rn(w)==2&&(p=0)}}return a}function Vu(e,t,r,n,o,a,i,s,l,c,d,f){for(var v=o-1,h=o===0?a:[""],g=Um(h),p=0,m=0,b=0;p<n;++p)for(var y=0,S=So(e,v+1,v=km(m=i[p])),C=e;y<g;++y)(C=qm(m>0?h[y]+" "+S:rt(S,/&\f/g,h[y])))&&(l[b++]=C);return qi(e,t,r,o===0?Wi:s,l,c,d,f)}function hb(e,t,r,n){return qi(e,t,r,Vm,Mc(sb()),So(e,2,-2),0,n)}function Wu(e,t,r,n,o){return qi(e,t,r,Pc,So(e,0,n),So(e,n+1,-1),n,o)}function Km(e,t,r){switch(ab(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 4789:return Jo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Jo+e+It+e+e;case 5936:switch(er(e,t+11)){case 114:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+It+e+e;case 6165:return St+e+It+"flex-"+e+e;case 5187:return St+e+rt(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return St+e+It+"flex-item-"+rt(e,/flex-|-self/g,"")+(sn(e,/flex-|baseline/)?"":It+"grid-row-"+rt(e,/flex-|-self/g,""))+e;case 4675:return St+e+It+"flex-line-pack"+rt(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+It+rt(e,"shrink","negative")+e;case 5292:return St+e+It+rt(e,"basis","preferred-size")+e;case 6060:return St+"box-"+rt(e,"-grow","")+St+e+It+rt(e,"grow","positive")+e;case 4554:return St+rt(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!sn(e,/flex-|baseline/))return It+"grid-column-align"+So(e,t)+e;break;case 2592:case 3360:return It+rt(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,sn(n.props,/grid-\w+-end/)})?~ni(e+(r=r[t].value),"span",0)?e:It+rt(e,"-start","")+e+It+"grid-row-span:"+(~ni(r,"span",0)?sn(r,/\d+/):+sn(r,/\d+/)-+sn(e,/\d+/))+";":It+rt(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return sn(n.props,/grid-\w+-start/)})?e:It+rt(rt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(rn(e)-1-t>6)switch(er(e,t+1)){case 109:if(er(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Jo+(er(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ni(e,"stretch",0)?Km(rt(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return rt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,i,s,l,c){return It+o+":"+a+c+(i?It+o+"-span:"+(s?l:+l-+a)+c:"")+e});case 4949:if(er(e,t+6)===121)return rt(e,":",":"+St)+e;break;case 6444:switch(er(e,er(e,14)===45?18:11)){case 120:return rt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(er(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+It+"$2box$3")+e;case 100:return rt(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rt(e,"scroll-","scroll-snap-")+e}return e}function Ci(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function pb(e,t,r,n){switch(e.type){case ob:if(e.children.length)break;case nb:case Pc:return e.return=e.return||e.value;case Vm:return"";case Wm:return e.return=e.value+"{"+Ci(e.children,n)+"}";case Wi:if(!rn(e.value=e.props.join(",")))return""}return rn(r=Ci(e.children,n))?e.return=e.value+"{"+r+"}":""}function bb(e){var t=Um(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function yb(e){return function(t){t.root||(t=t.return)&&e(t)}}function Sb(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Pc:e.return=Km(e.value,e.length,r);return;case Wm:return Ci([pn(e,{value:rt(e.value,"@","@"+St)})],n);case Wi:if(e.length)return ib(r=e.props,function(o){switch(sn(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ro(pn(e,{props:[rt(o,/:(read-\w+)/,":"+Jo+"$1")]})),ro(pn(e,{props:[o]})),gl(e,{props:Hu(r,n)});break;case"::placeholder":ro(pn(e,{props:[rt(o,/:(plac\w+)/,":"+St+"input-$1")]})),ro(pn(e,{props:[rt(o,/:(plac\w+)/,":"+Jo+"$1")]})),ro(pn(e,{props:[rt(o,/:(plac\w+)/,It+"input-$1")]})),ro(pn(e,{props:[o]})),gl(e,{props:Hu(r,n)});break}return""})}}var Cb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ir={},wo=typeof process<"u"&&Ir!==void 0&&(Ir.REACT_APP_SC_ATTR||Ir.SC_ATTR)||"data-styled",Xm="active",Ym="data-styled-version",Gi="6.1.19",Tc=`/*!sc*/
|
|
7
|
-
`,wi=typeof window<"u"&&typeof document<"u",wb=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==""?Ir.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ir.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.SC_DISABLE_SPEEDY!==void 0&&Ir.SC_DISABLE_SPEEDY!==""&&Ir.SC_DISABLE_SPEEDY!=="false"&&Ir.SC_DISABLE_SPEEDY),xb={},Ki=Object.freeze([]),xo=Object.freeze({});function Qm(e,t,r){return r===void 0&&(r=xo),e.theme!==r.theme&&e.theme||t||r.theme}var Jm=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),$b=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eb=/(^-|-$)/g;function ku(e){return e.replace($b,"-").replace(Eb,"")}var Ob=/(a)(d)/gi,Ha=52,qu=function(e){return String.fromCharCode(e+(e>25?39:97))};function bl(e){var t,r="";for(t=Math.abs(e);t>Ha;t=t/Ha|0)r=qu(t%Ha)+r;return(qu(t%Ha)+r).replace(Ob,"$1-$2")}var Rs,Zm=5381,fo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ev=function(e){return fo(Zm,e)};function tv(e){return bl(ev(e)>>>0)}function Rb(e){return e.displayName||e.name||"Component"}function Is(e){return typeof e=="string"&&!0}var rv=typeof Symbol=="function"&&Symbol.for,nv=rv?Symbol.for("react.memo"):60115,Ib=rv?Symbol.for("react.forward_ref"):60112,Pb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ov={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tb=((Rs={})[Ib]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rs[nv]=ov,Rs);function Uu(e){return("type"in(t=e)&&t.type.$$typeof)===nv?ov:"$$typeof"in e?Tb[e.$$typeof]:Pb;var t}var Nb=Object.defineProperty,Fb=Object.getOwnPropertyNames,Gu=Object.getOwnPropertySymbols,_b=Object.getOwnPropertyDescriptor,Ab=Object.getPrototypeOf,Ku=Object.prototype;function av(e,t,r){if(typeof t!="string"){if(Ku){var n=Ab(t);n&&n!==Ku&&av(e,n,r)}var o=Fb(t);Gu&&(o=o.concat(Gu(t)));for(var a=Uu(e),i=Uu(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Mb||r&&r[l]||i&&l in i||a&&l in a)){var c=_b(t,l);try{Nb(e,l,c)}catch{}}}}return e}function $o(e){return typeof e=="function"}function Nc(e){return typeof e=="object"&&"styledComponentId"in e}function Ln(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function yl(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function aa(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Sl(e,t,r){if(r===void 0&&(r=!1),!r&&!aa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Sl(e[n],t[n]);else if(aa(t))for(var n in t)e[n]=Sl(e[n],t[n]);return e}function Fc(e,t){Object.defineProperty(e,"toString",{value:t})}function xa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var jb=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw xa(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,i=o;i<a;i++)r+="".concat(this.tag.getRule(i)).concat(Tc);return r},e})(),ii=new Map,xi=new Map,si=1,Va=function(e){if(ii.has(e))return ii.get(e);for(;xi.has(si);)si++;var t=si++;return ii.set(e,t),xi.set(t,e),t},Db=function(e,t){si=t+1,ii.set(e,t),xi.set(t,e)},Bb="style[".concat(wo,"][").concat(Ym,'="').concat(Gi,'"]'),Lb=new RegExp("^".concat(wo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zb=function(e,t,r){for(var n,o=r.split(","),a=0,i=o.length;a<i;a++)(n=o[a])&&e.registerName(t,n)},Hb=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Tc),o=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var l=s.match(Lb);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(Db(d,c),zb(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},Xu=function(e){for(var t=document.querySelectorAll(Bb),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(wo)!==Xm&&(Hb(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var iv=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(s){var l=Array.from(s.querySelectorAll("style[".concat(wo,"]")));return l[l.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(wo,Xm),n.setAttribute(Ym,Gi);var i=Vb();return i&&n.setAttribute("nonce",i),r.insertBefore(n,a),n},Wb=(function(){function e(t){this.element=iv(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var i=n[o];if(i.ownerNode===r)return i}throw xa(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),kb=(function(){function e(t){this.element=iv(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),qb=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Yu=wi,Ub={isServer:!wi,useCSSOMInjection:!wb},$i=(function(){function e(t,r,n){t===void 0&&(t=xo),r===void 0&&(r={});var o=this;this.options=mr(mr({},Ub),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&wi&&Yu&&(Yu=!1,Xu(this)),Fc(this,function(){return(function(a){for(var i=a.getTag(),s=i.length,l="",c=function(f){var v=(function(b){return xi.get(b)})(f);if(v===void 0)return"continue";var h=a.names.get(v),g=i.getGroup(f);if(h===void 0||!h.size||g.length===0)return"continue";var p="".concat(wo,".g").concat(f,'[id="').concat(v,'"]'),m="";h!==void 0&&h.forEach(function(b){b.length>0&&(m+="".concat(b,","))}),l+="".concat(g).concat(p,'{content:"').concat(m,'"}').concat(Tc)},d=0;d<s;d++)c(d);return l})(o)})}return e.registerId=function(t){return Va(t)},e.prototype.rehydrate=function(){!this.server&&wi&&Xu(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(mr(mr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new qb(o):n?new Wb(o):new kb(o)})(this.options),new jb(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Va(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Va(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Va(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Gb=/&/g,Kb=/^\s*\/\/.*$/gm;function sv(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=sv(r.children,t)),r})}function Xb(e){var t,r,n,o=xo,a=o.options,i=a===void 0?xo:a,s=o.plugins,l=s===void 0?Ki:s,c=function(v,h,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):v},d=l.slice();d.push(function(v){v.type===Wi&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Gb,r).replace(n,c))}),i.prefix&&d.push(Sb),d.push(pb);var f=function(v,h,g,p){h===void 0&&(h=""),g===void 0&&(g=""),p===void 0&&(p="&"),t=p,r=h,n=new RegExp("\\".concat(r,"\\b"),"g");var m=v.replace(Kb,""),b=gb(g||h?"".concat(g," ").concat(h," { ").concat(m," }"):m);i.namespace&&(b=sv(b,i.namespace));var y=[];return Ci(b,bb(d.concat(yb(function(S){return y.push(S)})))),y};return f.hash=l.length?l.reduce(function(v,h){return h.name||xa(15),fo(v,h.name)},Zm).toString():"",f}var Yb=new $i,Cl=Xb(),lv=ne.createContext({shouldForwardProp:void 0,styleSheet:Yb,stylis:Cl});lv.Consumer;ne.createContext(void 0);function wl(){return ir(lv)}var Qb=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Cl);var i=n.name+a.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,a(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Fc(this,function(){throw xa(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Cl),this.name+t.hash},e})(),Jb=function(e){return e>="A"&&e<="Z"};function Qu(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Jb(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var cv=function(e){return e==null||e===!1||e===""},uv=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!cv(a)&&(Array.isArray(a)&&a.isCss||$o(a)?n.push("".concat(Qu(o),":"),a,";"):aa(a)?n.push.apply(n,oa(oa(["".concat(o," {")],uv(a),!1),["}"],!1)):n.push("".concat(Qu(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Cb||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function xn(e,t,r,n){if(cv(e))return[];if(Nc(e))return[".".concat(e.styledComponentId)];if($o(e)){if(!$o(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return xn(o,t,r,n)}var a;return e instanceof Qb?r?(e.inject(r,n),[e.getName(n)]):[e]:aa(e)?uv(e):Array.isArray(e)?Array.prototype.concat.apply(Ki,e.map(function(i){return xn(i,t,r,n)})):[e.toString()]}function dv(e){for(var t=0;t<e.length;t+=1){var r=e[t];if($o(r)&&!Nc(r))return!1}return!0}var Zb=ev(Gi),ey=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&dv(t),this.componentId=r,this.baseHash=fo(Zb,r),this.baseStyle=n,$i.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Ln(o,this.staticRulesId);else{var a=yl(xn(this.rules,t,r,n)),i=bl(fo(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(a,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}o=Ln(o,i),this.staticRulesId=i}else{for(var l=fo(this.baseHash,n.hash),c="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")c+=f;else if(f){var v=yl(xn(f,t,r,n));l=fo(l,v+d),c+=v}}if(c){var h=bl(l>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,n(c,".".concat(h),void 0,this.componentId)),o=Ln(o,h)}}return o},e})(),_c=ne.createContext(void 0);_c.Consumer;var Ps={};function ty(e,t,r){var n=Nc(e),o=e,a=!Is(e),i=t.attrs,s=i===void 0?Ki:i,l=t.componentId,c=l===void 0?(function(C,$){var x=typeof C!="string"?"sc":ku(C);Ps[x]=(Ps[x]||0)+1;var w="".concat(x,"-").concat(tv(Gi+x+Ps[x]));return $?"".concat($,"-").concat(w):w})(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?(function(C){return Is(C)?"styled.".concat(C):"Styled(".concat(Rb(C),")")})(e):d,v=t.displayName&&t.componentId?"".concat(ku(t.displayName),"-").concat(t.componentId):t.componentId||c,h=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var p=o.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;g=function(C,$){return p(C,$)&&m(C,$)}}else g=p}var b=new ey(r,v,n?o.componentStyle:void 0);function y(C,$){return(function(x,w,E){var O=x.attrs,R=x.componentStyle,I=x.defaultProps,P=x.foldedComponentIds,M=x.styledComponentId,F=x.target,N=ne.useContext(_c),A=wl(),_=x.shouldForwardProp||A.shouldForwardProp,D=Qm(w,N,I)||xo,W=(function(z,V,Z){for(var k,J=mr(mr({},V),{className:void 0,theme:Z}),ae=0;ae<z.length;ae+=1){var Y=$o(k=z[ae])?k(J):k;for(var U in Y)J[U]=U==="className"?Ln(J[U],Y[U]):U==="style"?mr(mr({},J[U]),Y[U]):Y[U]}return V.className&&(J.className=Ln(J.className,V.className)),J})(O,w,D),G=W.as||F,L={};for(var B in W)W[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&W.theme===D||(B==="forwardedAs"?L.as=W.forwardedAs:_&&!_(B,G)||(L[B]=W[B]));var q=(function(z,V){var Z=wl(),k=z.generateAndInjectStyles(V,Z.styleSheet,Z.stylis);return k})(R,W),H=Ln(P,M);return q&&(H+=" "+q),W.className&&(H+=" "+W.className),L[Is(G)&&!Jm.has(G)?"class":"className"]=H,E&&(L.ref=E),yi(G,L)})(S,C,$)}y.displayName=f;var S=ne.forwardRef(y);return S.attrs=h,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=n?Ln(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=v,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=n?(function($){for(var x=[],w=1;w<arguments.length;w++)x[w-1]=arguments[w];for(var E=0,O=x;E<O.length;E++)Sl($,O[E],!0);return $})({},o.defaultProps,C):C}}),Fc(S,function(){return".".concat(S.styledComponentId)}),a&&av(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Ju(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Zu=function(e){return Object.assign(e,{isCss:!0})};function fv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if($o(e)||aa(e))return Zu(xn(Ju(Ki,oa([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?xn(n):Zu(xn(Ju(n,t)))}function xl(e,t,r){if(r===void 0&&(r=xo),!t)throw xa(1,t);var n=function(o){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,r,fv.apply(void 0,oa([o],a,!1)))};return n.attrs=function(o){return xl(e,t,mr(mr({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return xl(e,t,mr(mr({},r),o))},n}var mv=function(e){return xl(ty,e)},ry=mv;Jm.forEach(function(e){ry[e]=mv(e)});var ny=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=dv(t),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var a=o(yl(xn(this.rules,r,n,o)),""),i=this.componentId+t;n.insertRules(i,i,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&$i.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e})();function DM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=fv.apply(void 0,oa([e],t,!1)),o="sc-global-".concat(tv(JSON.stringify(n))),a=new ny(n,o),i=function(l){var c=wl(),d=ne.useContext(_c),f=ne.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&s(f,l,c.styleSheet,d,c.stylis),ne.useLayoutEffect(function(){if(!c.styleSheet.server)return s(f,l,c.styleSheet,d,c.stylis),function(){return a.removeStyles(f,c.styleSheet)}},[f,l,c.styleSheet,d,c.stylis]),null};function s(l,c,d,f,v){if(a.isStatic)a.renderStyles(l,xb,d,v);else{var h=mr(mr({},c),{theme:Qm(c,f,i.defaultProps)});a.renderStyles(l,h,d,v)}}return ne.memo(i)}const oy={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",text:"#1D2129",textSecondary:"#4E5969",textTertiary:"#86909C",textInverse:"#FFFFFF",border:"#DDE0E5",borderWeak:"#E5E6EB",disabled:"#C9CDD4",disabledBackground:"#F5F7FA",disabledText:"#C9CDD4",shadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",primaryHover:"#6D86F5",primaryActive:"#2D4BE0",surfaceSubtle:"#F2F3F5",surfaceSelected:"#EEF3FE",btnPrimaryBg:"#4E6EF2",btnPrimaryBgHover:"#6D86F5",btnPrimaryBgActive:"#2D4BE0",btnPrimaryBgDisabled:"#F5F7FA",btnPrimaryText:"#FFFFFF",btnPrimaryTextDisabled:"#C9CDD4",btnSecondaryText:"#4E6EF2",btnSecondaryTextHover:"#4E6EF2",btnSecondaryTextActive:"#2D4BE0",btnSecondaryTextDisabled:"#C9CDD4",btnSecondaryBg:"#FFFFFF",btnSecondaryBgHover:"#EEF3FE",btnSecondaryBgActive:"#EEF3FE",btnSecondaryBgDisabled:"#F5F7FA",btnSecondaryBorder:"#4E6EF2",btnSecondaryBorderHover:"#6D86F5",btnSecondaryBorderActive:"#2D4BE0",btnSecondaryBorderDisabled:"#E5E6EB",btnTextText:"#4E6EF2",btnTextTextHover:"#6D86F5",btnTextTextActive:"#2D4BE0",btnTextTextDisabled:"#C9CDD4",tableBackground:"#FFFFFF",tableHeaderBg:"#F5F7FA",tableHeaderText:"#1D2129",tableFirstColumnBg:"#F7F9FC",tableLastColumnBg:"#F7F9FC",subTableBackground:"#F5F7FA",paginationBackground:"#FFFFFF"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5"},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"16px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},xs:{size:"10px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},sm:{size:"12px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},md:{size:"14px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},lg:{size:"16px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},"2lg":{size:"24px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}};function BM(e,t){if(!t)return e;const r={...e,...t};return t.theme&&e.theme&&(r.theme={...e.theme,...t.theme,colors:{...e.theme.colors,...t.theme.colors},space:{...e.theme.space,...t.theme.space},icons:{...e.theme.icons,...t.theme.icons},fonts:{...e.theme.fonts,...t.theme.fonts},others:{...e.theme.others,...t.theme.others}}),r}const ay=Fo({theme:oy,mode:"light"}),LM=()=>ir(ay);/**
|
|
7
|
+
`,wi=typeof window<"u"&&typeof document<"u",wb=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==""?Ir.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ir.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.SC_DISABLE_SPEEDY!==void 0&&Ir.SC_DISABLE_SPEEDY!==""&&Ir.SC_DISABLE_SPEEDY!=="false"&&Ir.SC_DISABLE_SPEEDY),xb={},Ki=Object.freeze([]),xo=Object.freeze({});function Qm(e,t,r){return r===void 0&&(r=xo),e.theme!==r.theme&&e.theme||t||r.theme}var Jm=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),$b=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eb=/(^-|-$)/g;function ku(e){return e.replace($b,"-").replace(Eb,"")}var Ob=/(a)(d)/gi,Ha=52,qu=function(e){return String.fromCharCode(e+(e>25?39:97))};function bl(e){var t,r="";for(t=Math.abs(e);t>Ha;t=t/Ha|0)r=qu(t%Ha)+r;return(qu(t%Ha)+r).replace(Ob,"$1-$2")}var Rs,Zm=5381,fo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ev=function(e){return fo(Zm,e)};function tv(e){return bl(ev(e)>>>0)}function Rb(e){return e.displayName||e.name||"Component"}function Is(e){return typeof e=="string"&&!0}var rv=typeof Symbol=="function"&&Symbol.for,nv=rv?Symbol.for("react.memo"):60115,Ib=rv?Symbol.for("react.forward_ref"):60112,Pb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ov={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tb=((Rs={})[Ib]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rs[nv]=ov,Rs);function Uu(e){return("type"in(t=e)&&t.type.$$typeof)===nv?ov:"$$typeof"in e?Tb[e.$$typeof]:Pb;var t}var Nb=Object.defineProperty,Fb=Object.getOwnPropertyNames,Gu=Object.getOwnPropertySymbols,_b=Object.getOwnPropertyDescriptor,Ab=Object.getPrototypeOf,Ku=Object.prototype;function av(e,t,r){if(typeof t!="string"){if(Ku){var n=Ab(t);n&&n!==Ku&&av(e,n,r)}var o=Fb(t);Gu&&(o=o.concat(Gu(t)));for(var a=Uu(e),i=Uu(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Mb||r&&r[l]||i&&l in i||a&&l in a)){var c=_b(t,l);try{Nb(e,l,c)}catch{}}}}return e}function $o(e){return typeof e=="function"}function Nc(e){return typeof e=="object"&&"styledComponentId"in e}function Ln(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function yl(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function aa(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Sl(e,t,r){if(r===void 0&&(r=!1),!r&&!aa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Sl(e[n],t[n]);else if(aa(t))for(var n in t)e[n]=Sl(e[n],t[n]);return e}function Fc(e,t){Object.defineProperty(e,"toString",{value:t})}function xa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var jb=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw xa(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,i=o;i<a;i++)r+="".concat(this.tag.getRule(i)).concat(Tc);return r},e})(),ii=new Map,xi=new Map,si=1,Va=function(e){if(ii.has(e))return ii.get(e);for(;xi.has(si);)si++;var t=si++;return ii.set(e,t),xi.set(t,e),t},Db=function(e,t){si=t+1,ii.set(e,t),xi.set(t,e)},Bb="style[".concat(wo,"][").concat(Ym,'="').concat(Gi,'"]'),Lb=new RegExp("^".concat(wo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zb=function(e,t,r){for(var n,o=r.split(","),a=0,i=o.length;a<i;a++)(n=o[a])&&e.registerName(t,n)},Hb=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Tc),o=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var l=s.match(Lb);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(Db(d,c),zb(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},Xu=function(e){for(var t=document.querySelectorAll(Bb),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(wo)!==Xm&&(Hb(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var iv=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(s){var l=Array.from(s.querySelectorAll("style[".concat(wo,"]")));return l[l.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(wo,Xm),n.setAttribute(Ym,Gi);var i=Vb();return i&&n.setAttribute("nonce",i),r.insertBefore(n,a),n},Wb=(function(){function e(t){this.element=iv(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var i=n[o];if(i.ownerNode===r)return i}throw xa(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),kb=(function(){function e(t){this.element=iv(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),qb=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Yu=wi,Ub={isServer:!wi,useCSSOMInjection:!wb},$i=(function(){function e(t,r,n){t===void 0&&(t=xo),r===void 0&&(r={});var o=this;this.options=mr(mr({},Ub),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&wi&&Yu&&(Yu=!1,Xu(this)),Fc(this,function(){return(function(a){for(var i=a.getTag(),s=i.length,l="",c=function(f){var v=(function(b){return xi.get(b)})(f);if(v===void 0)return"continue";var h=a.names.get(v),g=i.getGroup(f);if(h===void 0||!h.size||g.length===0)return"continue";var p="".concat(wo,".g").concat(f,'[id="').concat(v,'"]'),m="";h!==void 0&&h.forEach(function(b){b.length>0&&(m+="".concat(b,","))}),l+="".concat(g).concat(p,'{content:"').concat(m,'"}').concat(Tc)},d=0;d<s;d++)c(d);return l})(o)})}return e.registerId=function(t){return Va(t)},e.prototype.rehydrate=function(){!this.server&&wi&&Xu(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(mr(mr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new qb(o):n?new Wb(o):new kb(o)})(this.options),new jb(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Va(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Va(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Va(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Gb=/&/g,Kb=/^\s*\/\/.*$/gm;function sv(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=sv(r.children,t)),r})}function Xb(e){var t,r,n,o=xo,a=o.options,i=a===void 0?xo:a,s=o.plugins,l=s===void 0?Ki:s,c=function(v,h,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):v},d=l.slice();d.push(function(v){v.type===Wi&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Gb,r).replace(n,c))}),i.prefix&&d.push(Sb),d.push(pb);var f=function(v,h,g,p){h===void 0&&(h=""),g===void 0&&(g=""),p===void 0&&(p="&"),t=p,r=h,n=new RegExp("\\".concat(r,"\\b"),"g");var m=v.replace(Kb,""),b=gb(g||h?"".concat(g," ").concat(h," { ").concat(m," }"):m);i.namespace&&(b=sv(b,i.namespace));var y=[];return Ci(b,bb(d.concat(yb(function(S){return y.push(S)})))),y};return f.hash=l.length?l.reduce(function(v,h){return h.name||xa(15),fo(v,h.name)},Zm).toString():"",f}var Yb=new $i,Cl=Xb(),lv=ne.createContext({shouldForwardProp:void 0,styleSheet:Yb,stylis:Cl});lv.Consumer;ne.createContext(void 0);function wl(){return ir(lv)}var Qb=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Cl);var i=n.name+a.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,a(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Fc(this,function(){throw xa(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Cl),this.name+t.hash},e})(),Jb=function(e){return e>="A"&&e<="Z"};function Qu(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Jb(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var cv=function(e){return e==null||e===!1||e===""},uv=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!cv(a)&&(Array.isArray(a)&&a.isCss||$o(a)?n.push("".concat(Qu(o),":"),a,";"):aa(a)?n.push.apply(n,oa(oa(["".concat(o," {")],uv(a),!1),["}"],!1)):n.push("".concat(Qu(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Cb||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function xn(e,t,r,n){if(cv(e))return[];if(Nc(e))return[".".concat(e.styledComponentId)];if($o(e)){if(!$o(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return xn(o,t,r,n)}var a;return e instanceof Qb?r?(e.inject(r,n),[e.getName(n)]):[e]:aa(e)?uv(e):Array.isArray(e)?Array.prototype.concat.apply(Ki,e.map(function(i){return xn(i,t,r,n)})):[e.toString()]}function dv(e){for(var t=0;t<e.length;t+=1){var r=e[t];if($o(r)&&!Nc(r))return!1}return!0}var Zb=ev(Gi),ey=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&dv(t),this.componentId=r,this.baseHash=fo(Zb,r),this.baseStyle=n,$i.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Ln(o,this.staticRulesId);else{var a=yl(xn(this.rules,t,r,n)),i=bl(fo(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(a,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}o=Ln(o,i),this.staticRulesId=i}else{for(var l=fo(this.baseHash,n.hash),c="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")c+=f;else if(f){var v=yl(xn(f,t,r,n));l=fo(l,v+d),c+=v}}if(c){var h=bl(l>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,n(c,".".concat(h),void 0,this.componentId)),o=Ln(o,h)}}return o},e})(),_c=ne.createContext(void 0);_c.Consumer;var Ps={};function ty(e,t,r){var n=Nc(e),o=e,a=!Is(e),i=t.attrs,s=i===void 0?Ki:i,l=t.componentId,c=l===void 0?(function(C,$){var x=typeof C!="string"?"sc":ku(C);Ps[x]=(Ps[x]||0)+1;var w="".concat(x,"-").concat(tv(Gi+x+Ps[x]));return $?"".concat($,"-").concat(w):w})(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?(function(C){return Is(C)?"styled.".concat(C):"Styled(".concat(Rb(C),")")})(e):d,v=t.displayName&&t.componentId?"".concat(ku(t.displayName),"-").concat(t.componentId):t.componentId||c,h=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var p=o.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;g=function(C,$){return p(C,$)&&m(C,$)}}else g=p}var b=new ey(r,v,n?o.componentStyle:void 0);function y(C,$){return(function(x,w,E){var O=x.attrs,R=x.componentStyle,I=x.defaultProps,P=x.foldedComponentIds,M=x.styledComponentId,F=x.target,N=ne.useContext(_c),A=wl(),_=x.shouldForwardProp||A.shouldForwardProp,D=Qm(w,N,I)||xo,W=(function(z,V,Z){for(var k,J=mr(mr({},V),{className:void 0,theme:Z}),ae=0;ae<z.length;ae+=1){var Y=$o(k=z[ae])?k(J):k;for(var U in Y)J[U]=U==="className"?Ln(J[U],Y[U]):U==="style"?mr(mr({},J[U]),Y[U]):Y[U]}return V.className&&(J.className=Ln(J.className,V.className)),J})(O,w,D),G=W.as||F,L={};for(var B in W)W[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&W.theme===D||(B==="forwardedAs"?L.as=W.forwardedAs:_&&!_(B,G)||(L[B]=W[B]));var q=(function(z,V){var Z=wl(),k=z.generateAndInjectStyles(V,Z.styleSheet,Z.stylis);return k})(R,W),H=Ln(P,M);return q&&(H+=" "+q),W.className&&(H+=" "+W.className),L[Is(G)&&!Jm.has(G)?"class":"className"]=H,E&&(L.ref=E),yi(G,L)})(S,C,$)}y.displayName=f;var S=ne.forwardRef(y);return S.attrs=h,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=n?Ln(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=v,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=n?(function($){for(var x=[],w=1;w<arguments.length;w++)x[w-1]=arguments[w];for(var E=0,O=x;E<O.length;E++)Sl($,O[E],!0);return $})({},o.defaultProps,C):C}}),Fc(S,function(){return".".concat(S.styledComponentId)}),a&&av(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Ju(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Zu=function(e){return Object.assign(e,{isCss:!0})};function fv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if($o(e)||aa(e))return Zu(xn(Ju(Ki,oa([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?xn(n):Zu(xn(Ju(n,t)))}function xl(e,t,r){if(r===void 0&&(r=xo),!t)throw xa(1,t);var n=function(o){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,r,fv.apply(void 0,oa([o],a,!1)))};return n.attrs=function(o){return xl(e,t,mr(mr({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return xl(e,t,mr(mr({},r),o))},n}var mv=function(e){return xl(ty,e)},ry=mv;Jm.forEach(function(e){ry[e]=mv(e)});var ny=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=dv(t),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var a=o(yl(xn(this.rules,r,n,o)),""),i=this.componentId+t;n.insertRules(i,i,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&$i.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e})();function DM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=fv.apply(void 0,oa([e],t,!1)),o="sc-global-".concat(tv(JSON.stringify(n))),a=new ny(n,o),i=function(l){var c=wl(),d=ne.useContext(_c),f=ne.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&s(f,l,c.styleSheet,d,c.stylis),ne.useLayoutEffect(function(){if(!c.styleSheet.server)return s(f,l,c.styleSheet,d,c.stylis),function(){return a.removeStyles(f,c.styleSheet)}},[f,l,c.styleSheet,d,c.stylis]),null};function s(l,c,d,f,v){if(a.isStatic)a.renderStyles(l,xb,d,v);else{var h=mr(mr({},c),{theme:Qm(c,f,i.defaultProps)});a.renderStyles(l,h,d,v)}}return ne.memo(i)}const oy={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",dashboardMainBackground:"transparent",text:"#1D2129",textSecondary:"#4E5969",textTertiary:"#86909C",textInverse:"#FFFFFF",border:"#DDE0E5",borderWeak:"#E5E6EB",disabled:"#C9CDD4",disabledBackground:"#F5F7FA",disabledText:"#C9CDD4",shadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",primaryHover:"#6D86F5",primaryActive:"#2D4BE0",surfaceSubtle:"#F2F3F5",surfaceSelected:"#EEF3FE",btnPrimaryBg:"#4E6EF2",btnPrimaryBgHover:"#6D86F5",btnPrimaryBgActive:"#2D4BE0",btnPrimaryBgDisabled:"#F5F7FA",btnPrimaryText:"#FFFFFF",btnPrimaryTextDisabled:"#C9CDD4",btnSecondaryText:"#4E6EF2",btnSecondaryTextHover:"#4E6EF2",btnSecondaryTextActive:"#2D4BE0",btnSecondaryTextDisabled:"#C9CDD4",btnSecondaryBg:"#FFFFFF",btnSecondaryBgHover:"#EEF3FE",btnSecondaryBgActive:"#EEF3FE",btnSecondaryBgDisabled:"#F5F7FA",btnSecondaryBorder:"#4E6EF2",btnSecondaryBorderHover:"#6D86F5",btnSecondaryBorderActive:"#2D4BE0",btnSecondaryBorderDisabled:"#E5E6EB",btnTextText:"#4E6EF2",btnTextTextHover:"#6D86F5",btnTextTextActive:"#2D4BE0",btnTextTextDisabled:"#C9CDD4",tableBackground:"#FFFFFF",tableHeaderBg:"#F5F7FA",tableHeaderText:"#1D2129",tableFirstColumnBg:"#F7F9FC",tableLastColumnBg:"#F7F9FC",subTableBackground:"#F5F7FA",paginationBackground:"#FFFFFF",tagColor:"#1d70f5",tagBackground:"#ebf6ff",tagBorder:"#99caff"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5",dashboardHeaderHeight:"38px",dashboardContentRadius:"4px",xviewerToolbarHeight:"52px"},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"16px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},xs:{size:"10px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},sm:{size:"12px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},md:{size:"14px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},lg:{size:"16px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},"2lg":{size:"24px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}};function BM(e,t){if(!t)return e;const r={...e,...t};return t.theme&&e.theme&&(r.theme={...e.theme,...t.theme,colors:{...e.theme.colors,...t.theme.colors},space:{...e.theme.space,...t.theme.space},icons:{...e.theme.icons,...t.theme.icons},fonts:{...e.theme.fonts,...t.theme.fonts},others:{...e.theme.others,...t.theme.others}}),r}const ay=Fo({theme:oy,mode:"light"}),LM=()=>ir(ay);/**
|
|
8
8
|
* @license lucide-react v0.456.0 - ISC
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
@@ -282,4 +282,4 @@ html body {
|
|
|
282
282
|
`,UP=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],il={},Rr;function GP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&il[r])return il[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=UP.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(il[r]=l),l}function KP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Rr||(Rr=document.createElement("textarea"),Rr.setAttribute("tab-index","-1"),Rr.setAttribute("aria-hidden","true"),Rr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Rr)),e.getAttribute("wrap")?Rr.setAttribute("wrap",e.getAttribute("wrap")):Rr.removeAttribute("wrap");var o=GP(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Rr.setAttribute("style","".concat(l,";").concat(qP)),Rr.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=Rr.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=a),r!==null||n!==null){Rr.value=" ";var h=Rr.scrollHeight-a;r!==null&&(c=h*r,s==="border-box"&&(c=c+a+i),v=Math.max(c,v)),n!==null&&(d=h*n,s==="border-box"&&(d=d+a+i),f=v>d?"":"hidden",v=Math.min(d,v))}var g={height:v,overflowY:f,resize:"none"};return c&&(g.minHeight=c),d&&(g.maxHeight=d),g}var XP=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],sl=0,ll=1,cl=2,YP=u.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,a=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,d=r.disabled,f=r.onChange;r.onInternalAutoSize;var v=ft(r,XP),h=zr(o,{value:a,postState:function(q){return q??""}}),g=X(h,2),p=g[0],m=g[1],b=function(q){m(q.target.value),f==null||f(q)},y=u.useRef();u.useImperativeHandle(t,function(){return{textArea:y.current}});var S=u.useMemo(function(){return i&&Ue(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=X(S,2),$=C[0],x=C[1],w=!!i,E=u.useState(cl),O=X(E,2),R=O[0],I=O[1],P=u.useState(),M=X(P,2),F=M[0],N=M[1],A=function(){I(sl)};Ct(function(){w&&A()},[a,$,x,w]),Ct(function(){if(R===sl)I(ll);else if(R===ll){var B=KP(y.current,!1,$,x);I(cl),N(B)}},[R]);var _=u.useRef(),D=function(){mt.cancel(_.current)},W=function(q){R===cl&&(s==null||s(q),i&&(D(),_.current=mt(function(){A()})))};u.useEffect(function(){return D},[]);var G=w?F:null,L=j(j({},c),G);return(R===sl||R===ll)&&(L.overflowY="hidden",L.overflowX="hidden"),u.createElement(In,{onResize:W,disabled:!(i||s)},u.createElement("textarea",Be({},v,{ref:y,style:L,className:oe(n,l,T({},"".concat(n,"-disabled"),d)),disabled:d,value:p,onChange:b})))}),QP=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],JP=ne.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,p=e.showCount,m=e.count,b=e.className,y=e.style,S=e.disabled,C=e.hidden,$=e.classNames,x=e.styles,w=e.onResize,E=e.onClear,O=e.onPressEnter,R=e.readOnly,I=e.autoSize,P=e.onKeyDown,M=ft(e,QP),F=zr(n,{value:o,defaultValue:n}),N=X(F,2),A=N[0],_=N[1],D=A==null?"":String(A),W=ne.useState(!1),G=X(W,2),L=G[0],B=G[1],q=ne.useRef(!1),H=ne.useState(null),z=X(H,2),V=z[0],Z=z[1],k=Fe(null),J=Fe(null),ae=function(){var Ce;return(Ce=J.current)===null||Ce===void 0?void 0:Ce.textArea},Y=function(){ae().focus()};Di(t,function(){var Oe;return{resizableTextArea:J.current,focus:Y,blur:function(){ae().blur()},nativeElement:((Oe=k.current)===null||Oe===void 0?void 0:Oe.nativeElement)||ae()}}),tr(function(){B(function(Oe){return!S&&Oe})},[S]);var U=ne.useState(null),re=X(U,2),se=re[0],K=re[1];ne.useEffect(function(){if(se){var Oe;(Oe=ae()).setSelectionRange.apply(Oe,ve(se))}},[se]);var ee=cp(m,p),fe=(r=ee.max)!==null&&r!==void 0?r:c,le=Number(fe)>0,de=ee.strategy(D),we=!!fe&&de>fe,be=function(Ce,Ve){var Ze=Ve;!q.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Ve)>ee.max&&(Ze=ee.exceedFormatter(Ve,{max:ee.max}),Ve!==Ze&&K([ae().selectionStart||0,ae().selectionEnd||0])),_(Ze),Ai(Ce.currentTarget,Ce,s,Ze)},Se=function(Ce){q.current=!0,d==null||d(Ce)},me=function(Ce){q.current=!1,be(Ce,Ce.currentTarget.value),f==null||f(Ce)},te=function(Ce){be(Ce,Ce.target.value)},xe=function(Ce){Ce.key==="Enter"&&O&&O(Ce),P==null||P(Ce)},ze=function(Ce){B(!0),a==null||a(Ce)},Ae=function(Ce){B(!1),i==null||i(Ce)},Me=function(Ce){_(""),Y(),Ai(ae(),Ce,s)},Ee=v,He;ee.show&&(ee.showFormatter?He=ee.showFormatter({value:D,count:de,maxLength:fe}):He="".concat(de).concat(le?" / ".concat(fe):""),Ee=ne.createElement(ne.Fragment,null,Ee,ne.createElement("span",{className:oe("".concat(g,"-data-count"),$==null?void 0:$.count),style:x==null?void 0:x.count},He)));var Te=function(Ce){var Ve;w==null||w(Ce),(Ve=ae())!==null&&Ve!==void 0&&Ve.style.height&&Z(!0)},Le=!I&&!p&&!l;return ne.createElement(yu,{ref:k,value:D,allowClear:l,handleReset:Me,suffix:Ee,prefixCls:g,classNames:j(j({},$),{},{affixWrapper:oe($==null?void 0:$.affixWrapper,T(T({},"".concat(g,"-show-count"),p),"".concat(g,"-textarea-allow-clear"),l))}),disabled:S,focused:L,className:oe(b,we&&"".concat(g,"-out-of-range")),style:j(j({},y),V&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof He=="string"?He:void 0}},hidden:C,readOnly:R,onClear:E},ne.createElement(YP,Be({},M,{autoSize:I,maxLength:c,onKeyDown:xe,onChange:te,onFocus:ze,onBlur:Ae,onCompositionStart:Se,onCompositionEnd:me,className:oe($==null?void 0:$.textarea),style:j(j({},x==null?void 0:x.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:g,onResize:Te,ref:J,readOnly:R})))});const ZP=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
283
283
|
&-allow-clear > ${t},
|
|
284
284
|
&-affix-wrapper${n}-has-feedback ${t}
|
|
285
|
-
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},eM=sr(["Input","TextArea"],e=>{const t=Et(e,_a(e));return ZP(t)},Aa,{resetFont:!1});var tM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const rM=dn((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:d,className:f,style:v,styles:h,variant:g,showCount:p,onMouseDown:m,onResize:b}=e,y=tM(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:$,autoComplete:x,className:w,style:E,classNames:O,styles:R}=Pn("textArea"),I=u.useContext(Mr),P=i??I,{status:M,hasFeedback:F,feedbackIcon:N}=u.useContext(pr),A=Na(M,s),_=u.useRef(null);u.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=_.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:fe=>{var le,de;bu((de=(le=_.current)===null||le===void 0?void 0:le.resizableTextArea)===null||de===void 0?void 0:de.textArea,fe)},blur:()=>{var fe;return(fe=_.current)===null||fe===void 0?void 0:fe.blur()}}});const D=S("input",n),W=fn(D),[G,L,B]=ep(D,d),[q]=eM(D,W),{compactSize:H,compactItemClassnames:z}=zo(D,C),V=on(ee=>{var fe;return(fe=a??H)!==null&&fe!==void 0?fe:ee}),[Z,k]=vs("textArea",g,o),J=dp(l??$),[ae,Y]=u.useState(!1),[U,re]=u.useState(!1),se=ee=>{Y(!0),m==null||m(ee);const fe=()=>{Y(!1),document.removeEventListener("mouseup",fe)};document.addEventListener("mouseup",fe)},K=ee=>{var fe,le;if(b==null||b(ee),ae&&typeof getComputedStyle=="function"){const de=(le=(fe=_.current)===null||fe===void 0?void 0:fe.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");de&&getComputedStyle(de).resize==="both"&&re(!0)}};return G(q(u.createElement(JP,Object.assign({autoComplete:x},y,{style:Object.assign(Object.assign({},E),v),styles:Object.assign(Object.assign({},R),h),disabled:P,allowClear:J,className:oe(B,W,f,d,z,w,U&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:oe({[`${D}-sm`]:V==="small",[`${D}-lg`]:V==="large"},L,c==null?void 0:c.textarea,O.textarea,ae&&`${D}-mouse-active`),variant:oe({[`${D}-${Z}`]:k},No(D,A)),affixWrapper:oe(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:C==="rtl",[`${D}-affix-wrapper-sm`]:V==="small",[`${D}-affix-wrapper-lg`]:V==="large",[`${D}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:D,suffix:F&&u.createElement("span",{className:`${D}-textarea-suffix`},N),showCount:p,ref:_,onResize:K,onMouseDown:se}))))}),ja=ps;ja.Group=IP;ja.Search=kP;ja.TextArea=rM;ja.Password=VP;ja.OTP=AP;var nM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],yp=u.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-switch":n,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,v=e.onClick,h=e.onChange,g=e.onKeyDown,p=ft(e,nM),m=zr(!1,{value:i,defaultValue:s}),b=X(m,2),y=b[0],S=b[1];function C(E,O){var R=y;return l||(R=E,S(R),h==null||h(R,O)),R}function $(E){E.which===_e.LEFT?C(!1,E):E.which===_e.RIGHT&&C(!0,E),g==null||g(E)}function x(E){var O=C(!y,E);v==null||v(O,E)}var w=oe(o,a,(r={},T(r,"".concat(o,"-checked"),y),T(r,"".concat(o,"-disabled"),l),r));return u.createElement("button",Be({},p,{type:"button",role:"switch","aria-checked":y,disabled:l,className:w,ref:t,onKeyDown:$,onClick:x}),c,u.createElement("span",{className:"".concat(o,"-inner")},u.createElement("span",{className:"".concat(o,"-inner-checked")},d),u.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});yp.displayName="Switch";const oM=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=ie(l(s).add(l(n).mul(2)).equal()),f=ie(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:ie(r),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ie(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},aM=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},iM=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ie(i(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},sM=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=ie(s(i).add(s(n).mul(2)).equal()),d=ie(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},lM=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:ie(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ts(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},cM=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,a=t*r,i=n/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new bt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},uM=sr("Switch",e=>{const t=Et(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[lM(t),sM(t),iM(t),aM(t),oM(t)]},cM);var dM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const fM=u.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:d,defaultChecked:f,defaultValue:v,onChange:h}=e,g=dM(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,m]=zr(!1,{value:c??d,defaultValue:f??v}),{getPrefixCls:b,direction:y,switch:S}=u.useContext(wt),C=u.useContext(Mr),$=(o??C)||a,x=b("switch",r),w=u.createElement("div",{className:`${x}-handle`},a&&u.createElement(rs,{className:`${x}-loading-icon`})),[E,O,R]=uM(x),I=on(n),P=oe(S==null?void 0:S.className,{[`${x}-small`]:I==="small",[`${x}-loading`]:a,[`${x}-rtl`]:y==="rtl"},i,s,O,R),M=Object.assign(Object.assign({},S==null?void 0:S.style),l),F=(...N)=>{m(N[0]),h==null||h.apply(void 0,N)};return E(u.createElement(Zc,{component:"Switch",disabled:$},u.createElement(yp,Object.assign({},g,{checked:p,onChange:F,prefixCls:x,className:P,style:M,disabled:$,ref:t,loadingIcon:w}))))}),mM=fM;mM.__ANT_SWITCH=!0;export{nu as $,Ut as A,sp as B,XM as C,on as D,Ud as E,Nn as F,ve as G,tI as H,br as I,ba as J,_e as K,hR as L,ja as M,ru as N,ft as O,Xn as P,Do as Q,kI as R,Fa as S,vu as T,En as U,or as V,X as W,j as X,T as Y,Ct as Z,Be as _,LM as a,cx as a$,GM as a0,UM as a1,ts as a2,Hr as a3,Ag as a4,To as a5,Fg as a6,mM as a7,jM as a8,Ue as a9,YM as aA,xr as aB,Tn as aC,VM as aD,og as aE,JM as aF,E$ as aG,PE as aH,ME as aI,YC as aJ,Jn as aK,qM as aL,Tw as aM,$n as aN,TE as aO,w$ as aP,Ds as aQ,bt as aR,LR as aS,Zn as aT,vr as aU,On as aV,Rn as aW,Vt as aX,at as aY,Wt as aZ,Yl as a_,_a as aa,dg as ab,Aa as ac,gs as ad,Hh as ae,gu as af,Jh as ag,mg as ah,Vr as ai,Oa as aj,sC as ak,zM as al,ap as am,eT as an,p2 as ao,R1 as ap,Bt as aq,KM as ar,fn as as,rs as at,tw as au,Xc as av,K1 as aw,Uc as ax,Tg as ay,Po as az,Ww as b,Mh as b$,Pi as b0,ox as b1,RP as b2,vw as b3,Jd as b4,Mr as b5,mt as b6,$a as b7,Qn as b8,yh as b9,Jc as bA,ou as bB,Yf as bC,wR as bD,SR as bE,Vh as bF,Xh as bG,Uh as bH,kh as bI,fs as bJ,sI as bK,Yh as bL,kR as bM,vs as bN,No as bO,Na as bP,yd as bQ,ZM as bR,sw as bS,DM as bT,EE as bU,Dr as bV,Ac as bW,bv as bX,QM as bY,d$ as bZ,xh as b_,Xi as ba,Ri as bb,Qc as bc,Ma as bd,HM as be,of as bf,Ra as bg,kg as bh,Vg as bi,Wg as bj,Hg as bk,nf as bl,fI as bm,NE as bn,zo as bo,An as bp,sa as bq,rb as br,zh as bs,AM as bt,ea as bu,In as bv,pr as bw,xI as bx,Zc as by,wI as bz,cy as c,AI as c0,ps as c1,Th as c2,kM as c3,ry as d,oe as e,qg as f,sr as g,BM as h,oy as i,lI as j,iI as k,Ah as l,Et as m,wt as n,Fh as o,zr as p,Bg as q,ar as r,Mo as s,Gn as t,Pn as u,e1 as v,xt as w,ie as x,pI as y,Mn as z};
|
|
285
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},eM=sr(["Input","TextArea"],e=>{const t=Et(e,_a(e));return ZP(t)},Aa,{resetFont:!1});var tM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const rM=dn((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:d,className:f,style:v,styles:h,variant:g,showCount:p,onMouseDown:m,onResize:b}=e,y=tM(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:$,autoComplete:x,className:w,style:E,classNames:O,styles:R}=Pn("textArea"),I=u.useContext(Mr),P=i??I,{status:M,hasFeedback:F,feedbackIcon:N}=u.useContext(pr),A=Na(M,s),_=u.useRef(null);u.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=_.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:fe=>{var le,de;bu((de=(le=_.current)===null||le===void 0?void 0:le.resizableTextArea)===null||de===void 0?void 0:de.textArea,fe)},blur:()=>{var fe;return(fe=_.current)===null||fe===void 0?void 0:fe.blur()}}});const D=S("input",n),W=fn(D),[G,L,B]=ep(D,d),[q]=eM(D,W),{compactSize:H,compactItemClassnames:z}=zo(D,C),V=on(ee=>{var fe;return(fe=a??H)!==null&&fe!==void 0?fe:ee}),[Z,k]=vs("textArea",g,o),J=dp(l??$),[ae,Y]=u.useState(!1),[U,re]=u.useState(!1),se=ee=>{Y(!0),m==null||m(ee);const fe=()=>{Y(!1),document.removeEventListener("mouseup",fe)};document.addEventListener("mouseup",fe)},K=ee=>{var fe,le;if(b==null||b(ee),ae&&typeof getComputedStyle=="function"){const de=(le=(fe=_.current)===null||fe===void 0?void 0:fe.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");de&&getComputedStyle(de).resize==="both"&&re(!0)}};return G(q(u.createElement(JP,Object.assign({autoComplete:x},y,{style:Object.assign(Object.assign({},E),v),styles:Object.assign(Object.assign({},R),h),disabled:P,allowClear:J,className:oe(B,W,f,d,z,w,U&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:oe({[`${D}-sm`]:V==="small",[`${D}-lg`]:V==="large"},L,c==null?void 0:c.textarea,O.textarea,ae&&`${D}-mouse-active`),variant:oe({[`${D}-${Z}`]:k},No(D,A)),affixWrapper:oe(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:C==="rtl",[`${D}-affix-wrapper-sm`]:V==="small",[`${D}-affix-wrapper-lg`]:V==="large",[`${D}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:D,suffix:F&&u.createElement("span",{className:`${D}-textarea-suffix`},N),showCount:p,ref:_,onResize:K,onMouseDown:se}))))}),ja=ps;ja.Group=IP;ja.Search=kP;ja.TextArea=rM;ja.Password=VP;ja.OTP=AP;var nM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],yp=u.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-switch":n,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,v=e.onClick,h=e.onChange,g=e.onKeyDown,p=ft(e,nM),m=zr(!1,{value:i,defaultValue:s}),b=X(m,2),y=b[0],S=b[1];function C(E,O){var R=y;return l||(R=E,S(R),h==null||h(R,O)),R}function $(E){E.which===_e.LEFT?C(!1,E):E.which===_e.RIGHT&&C(!0,E),g==null||g(E)}function x(E){var O=C(!y,E);v==null||v(O,E)}var w=oe(o,a,(r={},T(r,"".concat(o,"-checked"),y),T(r,"".concat(o,"-disabled"),l),r));return u.createElement("button",Be({},p,{type:"button",role:"switch","aria-checked":y,disabled:l,className:w,ref:t,onKeyDown:$,onClick:x}),c,u.createElement("span",{className:"".concat(o,"-inner")},u.createElement("span",{className:"".concat(o,"-inner-checked")},d),u.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});yp.displayName="Switch";const oM=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=ie(l(s).add(l(n).mul(2)).equal()),f=ie(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:ie(r),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ie(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},aM=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},iM=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ie(i(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},sM=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=ie(s(i).add(s(n).mul(2)).equal()),d=ie(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},lM=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:ie(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ts(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},cM=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,a=t*r,i=n/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new bt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},uM=sr("Switch",e=>{const t=Et(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[lM(t),sM(t),iM(t),aM(t),oM(t)]},cM);var dM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const fM=u.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:d,defaultChecked:f,defaultValue:v,onChange:h}=e,g=dM(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,m]=zr(!1,{value:c??d,defaultValue:f??v}),{getPrefixCls:b,direction:y,switch:S}=u.useContext(wt),C=u.useContext(Mr),$=(o??C)||a,x=b("switch",r),w=u.createElement("div",{className:`${x}-handle`},a&&u.createElement(rs,{className:`${x}-loading-icon`})),[E,O,R]=uM(x),I=on(n),P=oe(S==null?void 0:S.className,{[`${x}-small`]:I==="small",[`${x}-loading`]:a,[`${x}-rtl`]:y==="rtl"},i,s,O,R),M=Object.assign(Object.assign({},S==null?void 0:S.style),l),F=(...N)=>{m(N[0]),h==null||h.apply(void 0,N)};return E(u.createElement(Zc,{component:"Switch",disabled:$},u.createElement(yp,Object.assign({},g,{checked:p,onChange:F,prefixCls:x,className:P,style:M,disabled:$,ref:t,loadingIcon:w}))))}),mM=fM;mM.__ANT_SWITCH=!0;export{ts as $,Ud as A,ve as B,wt as C,tI as D,ba as E,Nn as F,hR as G,ja as H,br as I,ru as J,_e as K,ft as L,Do as M,En as N,or as O,Xn as P,X as Q,kI as R,Fa as S,vu as T,j as U,T as V,Ct as W,nu as X,GM as Y,UM as Z,Be as _,sr as a,RP as a$,Hr as a0,Ag as a1,To as a2,Fg as a3,mM as a4,jM as a5,Ue as a6,_a as a7,dg as a8,Aa as a9,VM as aA,og as aB,JM as aC,E$ as aD,PE as aE,ME as aF,YC as aG,Jn as aH,qM as aI,Tw as aJ,$n as aK,TE as aL,w$ as aM,Ds as aN,bt as aO,LR as aP,Zn as aQ,vr as aR,On as aS,Rn as aT,Vt as aU,at as aV,Wt as aW,Yl as aX,cx as aY,Pi as aZ,ox as a_,gs as aa,Hh as ab,gu as ac,Jh as ad,mg as ae,Vr as af,Oa as ag,sC as ah,zM as ai,ap as aj,eT as ak,p2 as al,R1 as am,Bt as an,KM as ao,fn as ap,rs as aq,tw as ar,Xc as as,K1 as at,Uc as au,Tg as av,Po as aw,YM as ax,xr as ay,Tn as az,lI as b,Mh as b$,vw as b0,Jd as b1,Mr as b2,mt as b3,$a as b4,Qn as b5,yh as b6,Xi as b7,Ri as b8,Qc as b9,Jc as bA,ou as bB,Yf as bC,wR as bD,SR as bE,Vh as bF,Xh as bG,Uh as bH,kh as bI,fs as bJ,sI as bK,Yh as bL,kR as bM,vs as bN,No as bO,Na as bP,yd as bQ,ZM as bR,sw as bS,DM as bT,EE as bU,Dr as bV,Ac as bW,bv as bX,QM as bY,d$ as bZ,xh as b_,Ma as ba,Gn as bb,HM as bc,of as bd,Ra as be,kg as bf,Vg as bg,Wg as bh,Hg as bi,nf as bj,fI as bk,NE as bl,Ww as bm,XM as bn,zo as bo,An as bp,sa as bq,rb as br,zh as bs,AM as bt,ea as bu,In as bv,pr as bw,xI as bx,Zc as by,wI as bz,cy as c,AI as c0,ps as c1,Th as c2,kM as c3,ry as d,iI as e,oy as f,LM as g,Ah as h,qg as i,oe as j,Fh as k,zr as l,Et as m,Bg as n,Mo as o,e1 as p,xt as q,ar as r,ie as s,pI as t,Pn as u,Mn as v,Ut as w,BM as x,sp as y,on as z};
|