@ledgerhq/device-management-kit-devtools-rozenite 0.0.0-develop-20260504002526 → 0.0.0-develop-20260506002607

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/dist/index.js CHANGED
@@ -522,11 +522,11 @@ Details
522
522
 
523
523
  ${(function(o){switch(o.kind){case wa.method:return`[class: "${o.targetClass.name}", method: "${o.method.toString()}"]`;case wa.parameter:return`[class: "${o.targetClass.name}", index: "${o.index.toString()}"]`;case wa.property:return`[class: "${o.targetClass.name}", property: "${o.property.toString()}"]`}})(i)}`,{cause:n})}throw n}function Fj(e,t){return(r,n,i)=>{try{i===void 0?(function(o,s){const u=Kv(o,s);return(c,f)=>{Lu(c.constructor,kd,Md,y_(u(c),f))}})(e,t)(r,n):typeof i=="number"?(function(o,s){const u=Kv(o,s);return(c,f,d)=>{if(!(function(g,h){return typeof g=="function"&&h===void 0})(c,f))throw new Aa(vo.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.
524
524
  Found @inject decorator at method "${f?.toString()??""}" at class "${c.constructor.name}"`);Lu(c,kd,Md,(function(g,h){return y=>{const m=y.constructorArguments[h];return y.constructorArguments[h]=g(m),y}})(u(c),d))}})(e,t)(r,n,i):(function(o,s){const u=Kv(o,s);return(c,f,d)=>{if(!(function(g){return g.set!==void 0})(d))throw new Aa(vo.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.
525
- Found @inject decorator at method "${f.toString()}" at class "${c.constructor.name}"`);Lu(c.constructor,kd,Md,y_(u(c),f))}})(e,t)(r,n,i)}catch(o){Lj(r,n,i,o)}}}function Kv(e,t){return r=>{const n=t(r);return i=>(n(i),e(i))}}function tt(e){return Fj(Dj(ec.singleInjection,e),Pj)}(function(e){e[e.method=0]="method",e[e.parameter=1]="parameter",e[e.property=2]="property"})(wa||(wa={}));const b_="@inversifyjs/core/classIsInjectableFlagReflectKey",Nj=[Array,BigInt,Boolean,Function,Number,Object,String];function jj(e){const t=pb(e,"design:paramtypes");t!==void 0&&Lu(e,kd,Md,(function(r){return n=>(r.forEach(((i,o)=>{var s;n.constructorArguments[o]!==void 0||(s=i,Nj.includes(s))||(n.constructorArguments[o]=(function(u){return{isFromTypescriptParamType:!0,kind:ec.singleInjection,name:void 0,optional:!1,tags:new Map,value:u}})(i))})),n)})(t))}function Et(e){return t=>{(function(r){if(pb(r,b_)!==void 0)throw new Aa(vo.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${r.name}"`);$j(r,b_,!0)})(t),jj(t)}}var S_;(function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection"})(S_||(S_={}));var w_;(function(e){e[e.singleMandatory=0]="singleMandatory",e[e.singleOptional=1]="singleOptional",e[e.multipleMandatory=2]="multipleMandatory",e[e.multipleOptional=3]="multipleOptional",e[e.length=4]="length"})(w_||(w_={}));let zj=class{constructor(t,r,n,i,o){this.deviceModel=t,this.serviceUuid=r,this.writeUuid=n,this.writeCmdUuid=i,this.notifyUuid=o}},Us=class{id;productName;usbProductId;bootloaderUsbProductId;usbOnly;memorySize;getBlockSize;masks;bluetoothSpec;constructor(t){this.id=t.id,this.productName=t.productName,this.usbProductId=t.usbProductId,this.bootloaderUsbProductId=t.bootloaderUsbProductId,this.usbOnly=t.usbOnly,this.memorySize=t.memorySize,this.getBlockSize=t.getBlockSize,this.masks=t.masks,this.bluetoothSpec=t.bluetoothSpec}};var Bj=Object.defineProperty,Vj=(e,t,r)=>t in e?Bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hj=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Uj=(e,t,r)=>Vj(e,t+"",r);let rs=class{getAllDeviceModels(){return Object.values(rs.deviceModelByIds)}getDeviceModel(t){return rs.deviceModelByIds[t.id]}filterDeviceModels(t){return this.getAllDeviceModels().filter(r=>Object.entries(t).every(([n,i])=>r[n]===i))}getBluetoothServicesInfos(){return Object.values(rs.deviceModelByIds).reduce((t,r)=>{const{bluetoothSpec:n}=r;return n?{...t,...n.reduce((i,o)=>({...i,[o.serviceUuid]:new zj(r,o.serviceUuid,o.writeUuid,o.writeCmdUuid,o.notifyUuid)}),{})}:t},{})}getBluetoothServices(){return Object.values(rs.deviceModelByIds).map(t=>(t.bluetoothSpec||[]).map(r=>r.serviceUuid)).flat().filter(t=>!!t)}};Uj(rs,"deviceModelByIds",{[Yt.NANO_S]:new Us({id:Yt.NANO_S,productName:"Ledger Nano S",usbProductId:16,bootloaderUsbProductId:1,usbOnly:!0,memorySize:320*1024,getBlockSize:e=>i_.lt(i_.coerce(e.firmwareVersion)??"","2.0.0")?4*1024:2*1024,masks:[823132160]}),[Yt.NANO_SP]:new Us({id:Yt.NANO_SP,productName:"Ledger Nano S Plus",usbProductId:80,bootloaderUsbProductId:5,usbOnly:!0,memorySize:1533*1024,getBlockSize:()=>32,masks:[856686592]}),[Yt.NANO_X]:new Us({id:Yt.NANO_X,productName:"Ledger Nano X",usbProductId:64,bootloaderUsbProductId:4,usbOnly:!1,memorySize:2*1024*1024,getBlockSize:()=>4*1024,masks:[855638016],bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]}),[Yt.STAX]:new Us({id:Yt.STAX,productName:"Ledger Stax",usbProductId:96,bootloaderUsbProductId:6,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[857735168],bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}),[Yt.FLEX]:new Us({id:Yt.FLEX,productName:"Ledger Flex",usbProductId:112,bootloaderUsbProductId:7,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[858783744],bluetoothSpec:[{serviceUuid:"13d63400-2c97-3004-0000-4c6564676572",notifyUuid:"13d63400-2c97-3004-0001-4c6564676572",writeUuid:"13d63400-2c97-3004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-3004-0003-4c6564676572"}]}),[Yt.APEX]:new Us({id:Yt.APEX,productName:"Ledger Nano Gen5",usbProductId:128,bootloaderUsbProductId:8,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[859832320],bluetoothSpec:[{serviceUuid:"13d63400-2c97-8004-0000-4c6564676572",notifyUuid:"13d63400-2c97-8004-0001-4c6564676572",writeUuid:"13d63400-2c97-8004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-8004-0003-4c6564676572"},{serviceUuid:"13d63400-2c97-9004-0000-4c6564676572",notifyUuid:"13d63400-2c97-9004-0001-4c6564676572",writeUuid:"13d63400-2c97-9004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-9004-0003-4c6564676572"}]})}),rs=Hj([Et()],rs);let Wj=class{statusCode;data;constructor({statusCode:t,data:r}){this.statusCode=t,this.data=r}};const qj=5,Ja=1,xy=2,ll=2,Ey=2,Fr=[];for(let e=0;e<256;++e)Fr.push((e+256).toString(16).slice(1));function Gj(e,t=0){return(Fr[e[t+0]]+Fr[e[t+1]]+Fr[e[t+2]]+Fr[e[t+3]]+"-"+Fr[e[t+4]]+Fr[e[t+5]]+"-"+Fr[e[t+6]]+Fr[e[t+7]]+"-"+Fr[e[t+8]]+Fr[e[t+9]]+"-"+Fr[e[t+10]]+Fr[e[t+11]]+Fr[e[t+12]]+Fr[e[t+13]]+Fr[e[t+14]]+Fr[e[t+15]]).toLowerCase()}let Yv;const Xj=new Uint8Array(16);function Kj(){if(!Yv){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Yv=crypto.getRandomValues.bind(crypto)}return Yv(Xj)}const Yj=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),x_={randomUUID:Yj};function $p(e,t,r){if(x_.randomUUID&&!e)return x_.randomUUID();e=e||{};const n=e.random||(e.rng||Kj)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Gj(n)}const as={getLastBytesFrom(e,t){return e.slice(-t)},getFirstBytesFrom(e,t){return e.slice(0,t)},bytesToNumber(e){return e.reduce((t,r,n)=>t+r*Math.pow(256,e.length-1-n),0)},numberToByteArray(e,t){return new Uint8Array(t).map((r,n)=>e>>8*(t-1-n)&255)}},E_=2,Qv=800;let C_=class{_tag="FramerOverflowError";originalError;constructor(){this.originalError=new Error("Frame header length is greater than frame size")}},Qj=class{_tag="FramerApduError";originalError;constructor(){this.originalError=new Error("Frame offset is greater than apdu length")}},__=class{_tag="ReceiverApduError";originalError;constructor(t){this.originalError=new Error(t??"Unable to parse apdu")}},R_=class{_tag="DeviceSessionNotFound";originalError;constructor(t){this.originalError=t??new Error("Device session not found")}},PI=class{_header;_data;constructor({header:t,data:r}){this._header=t,this._data=r}toString(){return JSON.stringify({header:this._header.toString(),data:Ju(this._data)},null,2)}getRawData(){const t=this._header.getRawData(),r=new Uint8Array(t.length+this._data.length);return r.set(t,0),r.set(this._data,t.length),r}getHeader(){return this._header}getData(){return this._data}},kI=class{_uuid;_channel;_headTag;_index;_length;_dataLength;constructor({uuid:t,dataSize:r,index:n,headTag:i,length:o,channel:s}){this._uuid=t,this._dataLength=r,this._index=n,this._headTag=i,this._length=o,this._channel=s}getDataLength(){return this._dataLength.map(t=>as.bytesToNumber(t))}setDataSize(t){return this._dataLength=t,this}getLength(){return this._length}toString(){return JSON.stringify({uuid:this._uuid.toString(),dataSize:this._dataLength.extract()?.toString(),index:this._index.toString(),headTag:this._headTag.toString(),length:this._length.toString(),channel:this._channel.extract()?.toString()})}getRawData(){return new Uint8Array([...this._channel.caseOf({Just:t=>[...t],Nothing:()=>[]}),...this._headTag,...this._index,...this._dataLength.caseOf({Just:t=>[...t],Nothing:()=>[]})])}};const Er={LoggerPublisherServiceFactory:Symbol.for("LoggerPublisherServiceFactory")};var Jj=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Zj=(e,t)=>(r,n)=>t(r,n,e);let O_=class{_channel;_logger;_pendingFrames;constructor({channel:t=Cn.zero()},r){this._channel=t,this._logger=r("ApduReceiverService"),this._pendingFrames=[]}handleFrame(t){return this.getFrameFromBytes(t).map(r=>{if(this._pendingFrames.push(r),!this._pendingFrames[0])return Gt;const n=this._pendingFrames[0].getHeader().getDataLength();return this.getCompleteFrame(n)})}getCompleteFrame(t){return t.chain(r=>{if(!this.isComplete(r))return this._logger.debug("frame is not complete, waiting for more"),Gt;const n=as.getFirstBytesFrom(this.concatFrames(this._pendingFrames),r),i=as.getFirstBytesFrom(n,n.length-E_),o=as.getLastBytesFrom(n,E_);return this._pendingFrames=[],ln(new Wj({data:i,statusCode:o}))})}getFrameFromBytes(t){const r=this._channel.caseOf({Just:()=>xy,Nothing:()=>0}),n=t.slice(r,r+Ja),i=t.slice(r+Ja,r+Ja+ll),o=i.reduce((h,y)=>h+y,0)===0;if(!o&&this._pendingFrames.length===0)return Qr(new __);const s=r+Ja+ll,u=o?Ey:0;if(t.length<r+Ja+ll+u)return Qr(new __("Unable to parse header from apdu"));const c=o?ln(t.slice(s,s+u)):Gt,f=s+u,d=t.slice(f),g=new PI({header:new kI({uuid:$p(),channel:this._channel,dataSize:c,headTag:n,index:i,length:r+Ja+ll+u}),data:d});return Jr(g)}isComplete(t){return this._pendingFrames.reduce((r,n)=>r+n.getData().length,0)>=t}concatFrames(t){return t.reduce((r,n)=>Uint8Array.from([...r,...n.getData()]),new Uint8Array(0))}};O_=Jj([Et(),Zj(1,tt(Er.LoggerPublisherServiceFactory))],O_);var ez=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},tz=(e,t)=>(r,n)=>t(r,n,e);let T_=class{_frameSize;_channel;_padding;_logger;constructor({frameSize:t,channel:r=Cn.zero(),padding:n=!1},i){this._frameSize=t,this._channel=r,this._padding=n,this._logger=i("DefaultApduSenderService")}getFrames(t){const r=[];let n=0,i=this.getFrameAtIndex(t,n);for(;i.isRight();)r.push(i.extract()),n+=1,i=this.getFrameAtIndex(t,n).mapLeft(o=>(o instanceof C_||this._logger.error("Error while parsing frame",{data:{error:o}}),o));return r}getFrameAtIndex(t,r){const n=this.getFrameHeaderFrom(r,t.length),i=r===0?0:r*this._frameSize-this.getHeaderSizeSumFrom(r);if(i>=t.length)return Qr(new C_);if(n.getLength()>this._frameSize)return Qr(new Qj);const o=this._frameSize-n.getLength(),s=t.slice(i,i+this._frameSize-n.getLength()),u=this._padding?new Uint8Array(o).fill(0):new Uint8Array(s.length<o?s.length:o);u.set(s,0);const c=new PI({header:n,data:u});return Jr(c)}getFrameHeaderFrom(t,r){const n=new kI({uuid:$p(),channel:this._channel.map(i=>as.getLastBytesFrom(i,xy)),headTag:new Uint8Array([qj]),index:as.numberToByteArray(t,ll),length:this.getFrameHeaderSizeFromIndex(t),dataSize:Cn.zero()});return t===0&&n.setDataSize(Cn.of(as.numberToByteArray(r,Ey))),n}getHeaderSizeSumFrom(t){let r=this.getFrameHeaderSizeFromIndex(0),n=1;for(;n<t;)r+=this.getFrameHeaderSizeFromIndex(n),n+=1;return r}getFrameHeaderSizeFromIndex(t){return this._channel.caseOf({Just:()=>xy,Nothing:()=>0})+ll+Ja+(t===0?Ey:0)}};T_=ez([Et(),tz(1,tt(Er.LoggerPublisherServiceFactory))],T_);const Cy={LocalConfigDataSource:Symbol.for("LocalConfigDataSource"),RemoteConfigDataSource:Symbol.for("RemoteConfigDataSource"),ConfigService:Symbol.for("ConfigService")},fn={ApduSenderServiceFactory:Symbol.for("ApduSenderServiceFactory"),ApduReceiverServiceFactory:Symbol.for("ApduReceiverServiceFactory"),DeviceSessionService:Symbol.for("DeviceSessionService")},$_={ConnectUseCase:Symbol.for("ConnectUseCase"),DisconnectUseCase:Symbol.for("DisconnectUseCase")},Ap={ManagerApiService:Symbol.for("ManagerApiService"),ManagerApiDataSource:Symbol.for("ManagerApiDataSource"),DmkConfig:Symbol.for("ManagerApiDmkConfig")},Ia={DmkConfig:Symbol.for("TransportDmkConfig"),TransportService:Symbol.for("TransportService"),TransportsInput:Symbol.for("TransportsInput")};var rz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},A_=(e,t)=>(r,n)=>t(r,n,e);let I_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("SendCommandUseCase")}async execute({sessionId:t,command:r,abortTimeout:n}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:async i=>await i.sendCommand(r,n),Left:i=>{throw this._logger.error("Error getting session",{data:{error:i}}),i}})}};I_=rz([Et(),A_(0,tt(fn.DeviceSessionService)),A_(1,tt(Er.LoggerPublisherServiceFactory))],I_);var nz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let P_=class{execute=vi.fn(()=>"stub")};P_=nz([Et()],P_);var iz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},k_=(e,t)=>(r,n)=>t(r,n,e);let M_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("ExecuteDeviceActionUseCase")}execute({sessionId:t,deviceAction:r}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:n=>n.executeDeviceAction(r),Left:n=>{throw this._logger.error("Error getting session",{data:{error:n}}),n}})}};M_=iz([Et(),k_(0,tt(fn.DeviceSessionService)),k_(1,tt(Er.LoggerPublisherServiceFactory))],M_);function oz(e){return typeof e=="object"&&e!==null&&"version"in e&&"name"in e&&typeof e.version=="string"&&typeof e.name=="string"}let D_=class{constructor(t){this.err=t,this.originalError=t}_tag="ApiCallError";originalError},az=class{constructor(t){this.err=t,this.originalError=t}_tag="ParseResponseError";originalError},MI=class{constructor(t){this.err=t,this.originalError=t}_tag="JSONParseError";originalError},sz=class{constructor(t){this.err=t,this.originalError=t}_tag="ReadFileError";originalError};const lz="@ledgerhq/device-management-kit",uz="0.0.0-develop-20260504002526",L_={name:lz,version:uz};var cz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};const fz={name:L_.name,version:L_.version},dz=()=>JSON.stringify(fz);let F_=class{getConfig(){return Wn.encase(()=>dz()).mapLeft(t=>new sz(t)).chain(t=>Wn.encase(()=>{const r=JSON.parse(t);if(oz(r))return r;throw new Error("Invalid config file")}).mapLeft(r=>new MI(r)))}};F_=cz([Et()],F_);var pz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let N_=class{getConfig(){return Wn.of({name:"DeviceSDK",version:"0.0.0-stub.1"})}};N_=pz([Et()],N_);var hz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let j_=class{async getConfig(){const t=await this._callApi();if(t.isLeft())return Qr(new D_(t.extract()));if(!t.extract().ok)return Qr(new D_(new Error("response not ok")));const r=await t.extract().json();return r.isLeft()?Qr(new MI):r.chain(n=>this._parseResponse(n)).map(n=>n)}_parseResponse(t){const{name:r,version:n}=t;return!r||!n?Qr(new az):Wn.of({name:r,version:n})}_callApi(){return new Promise(t=>{t(Wn.of({ok:!0,json:async()=>new Promise(r=>{r(Wn.of({name:"DeviceSDK",version:"0.0.0-fake.1",yolo:"yolo"}))})}))})}};j_=hz([Et()],j_);var gz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let z_=class{async getConfig(){return new Promise(t=>t(Wn.of({name:"DeviceSDK",version:"0.0.0-fake.2"})))}};z_=gz([Et()],z_);var vz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Jv=(e,t)=>(r,n)=>t(r,n,e);let B_=class{_local;_remote;_logger;constructor(t,r,n){this._local=t,this._remote=r,this._logger=n("config")}async getDmkConfig(){const t=this._local.getConfig().ifLeft(r=>{this._logger.error("Local config not available",{data:{error:r}})});if(t.isRight()){const r=t.extract();return this._logger.info("Local config available",{data:{config:r}}),r}return this._remote.getConfig().then(r=>r.mapLeft(n=>(this._logger.error("Local config available",{data:{error:n}}),{name:"DeadDmk",version:"0.0.0-dead.1"})).extract())}};B_=vz([Et(),Jv(0,tt(Cy.LocalConfigDataSource)),Jv(1,tt(Cy.RemoteConfigDataSource)),Jv(2,tt(Er.LoggerPublisherServiceFactory))],B_);var mz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},yz=(e,t)=>(r,n)=>t(r,n,e);let V_=class{_configService;constructor(t){this._configService=t}async getDmkVersion(){return(await this._configService.getDmkConfig()).version}};V_=mz([Et(),yz(0,tt(Cy.ConfigService))],V_);const bz={DeviceModelDataSource:Symbol.for("DeviceModelDataSource")};var Sz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},H_=(e,t)=>(r,n)=>t(r,n,e);let U_=class{constructor(t,r){this._sessionService=t,this._logger=r("DisableDeviceSessionRefresherUseCase")}_logger;execute({sessionId:t,blockerId:r}){return this._sessionService.getDeviceSessionById(t).caseOf({Left:n=>{throw this._logger.error("Error getting device session",{data:{error:n}}),n},Right:n=>n.disableRefresher(r)})}};U_=Sz([Et(),H_(0,tt(fn.DeviceSessionService)),H_(1,tt(Er.LoggerPublisherServiceFactory))],U_);var wz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},xz=(e,t)=>(r,n)=>t(r,n,e);let W_=class{_sessions;_sessionsSubject;_logger;constructor(t){this._sessions=[],this._sessionsSubject=new dI,this._logger=t("DeviceSessionService")}get sessionsObs(){return this._sessionsSubject.asObservable()}addDeviceSession(t){return this._sessions.find(r=>r.id===t.id)?(this._logger.warn("DeviceSession already exists",{data:{deviceSession:t}}),this):(this._sessions.push(t),this._sessionsSubject.next(t),this._logger.info("DeviceSession added",{data:{sessionId:t.id}}),this)}removeDeviceSession(t){const r=this._sessions.find(n=>n.id===t);return r?(r.close(),this._sessions=this._sessions.filter(n=>n.id!==t),this._logger.info("DeviceSession removed",{data:{sessionId:t}}),this):(this._logger.warn("DeviceSession not found",{data:{sessionId:t}}),this)}getDeviceSessionById(t){return Cn.fromNullable(this._sessions.find(r=>r.id===t)).toEither(new R_)}getDeviceSessionsByDeviceId(t){return Cn.fromPredicate(({length:r})=>r>0,this._sessions.filter(r=>r.connectedDevice.id===t)).toEither(new R_)}getDeviceSessions(){return this._sessions}};W_=wz([Et(),xz(0,tt(Er.LoggerPublisherServiceFactory))],W_);var Ez=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},q_=(e,t)=>(r,n)=>t(r,n,e);let G_=class{_sessionService;_transportService;constructor(t,r){this._sessionService=t,this._transportService=r}execute(){const t=this._sessionService.getDeviceSessions();for(const r of t)this._transportService.closeConnection(r.connectedDevice),this._sessionService.removeDeviceSession(r.id)}};G_=Ez([Et(),q_(0,tt(fn.DeviceSessionService)),q_(1,tt(Ia.TransportService))],G_);var Cz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},X_=(e,t)=>(r,n)=>t(r,n,e);let K_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("GetDeviceSessionStateUseCase")}execute({sessionId:t}){return this._sessionService.getDeviceSessionById(t).caseOf({Left:r=>{throw this._logger.error("Error getting session device",{data:{error:r}}),r},Right:r=>r.state})}};K_=Cz([Et(),X_(0,tt(fn.DeviceSessionService)),X_(1,tt(Er.LoggerPublisherServiceFactory))],K_);var _z=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Y_=(e,t)=>(r,n)=>t(r,n,e);let Q_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("UnsafeBypassIntentQueueUseCase")}execute({sessionId:t,bypass:r}){this._sessionService.getDeviceSessionById(t).caseOf({Left:n=>{throw this._logger.error("Error getting session",{data:{error:n}}),n},Right:n=>{this._logger.warn(`UNSAFE: ${r?"Enabling":"Disabling"} intent queue bypass for session ${t}`),n._unsafeBypassIntentQueue(r)}})}};Q_=_z([Et(),Y_(0,tt(fn.DeviceSessionService)),Y_(1,tt(Er.LoggerPublisherServiceFactory))],Q_);function Rz(e){return`[will send APDU] ~...> ${Ju(e,!1)}`}function Oz(e){return`[exchange] <= ${Ju(e.data,!1)}${Ju(e.statusCode,!1)}`}const _y=1e3,Zv=1e3,Tz={isRefresherDisabled:!1,pollingInterval:1e3};var ur=(e=>(e.NEW_STATE="NEW_STATE",e.REFRESH_NEEDED="REFRESH_NEEDED",e.COMMAND_SUCCEEDED="COMMAND_SUCCEEDED",e.DEVICE_STATE_UPDATE_BUSY="DEVICE_STATE_UPDATE_BUSY",e.DEVICE_STATE_UPDATE_LOCKED="DEVICE_STATE_UPDATE_LOCKED",e.DEVICE_STATE_UPDATE_CONNECTED="DEVICE_STATE_UPDATE_CONNECTED",e.DEVICE_STATE_UPDATE_UNKNOWN="DEVICE_STATE_UPDATE_UNKNOWN",e))(ur||{});let $z=class{_eventEmitter=new Dl;listen(){return this._eventEmitter.asObservable()}dispatch(t){this._eventEmitter.next(t)}},Az=class{constructor(t,r){this.loggerModuleFactory=t,this.sessionEventDispatcher=r,this._logger=this.loggerModuleFactory("IntentQueueService")}_logger;_queue=[];_isProcessing=!1;_currentSubscription=null;enqueue(t){this._logger.debug("Enqueueing intent",{data:{type:t.type}});const r=new Dl,n={intent:t,subject:r,isCancelled:!1};this._queue.push(n);const i=()=>{this._logger.debug("Cancelling intent",{data:{type:t.type}}),n.isCancelled=!0,this._queue[0]===n&&this._currentSubscription?(this._currentSubscription.unsubscribe(),this._currentSubscription=null,r.complete(),this._queue.shift(),this._isProcessing=!1,this._processQueue()):(!this._isProcessing||this._queue[0]!==n)&&r.complete()};return this._isProcessing||this._processQueue(),{observable:r.asObservable().pipe(hj(()=>{this._logger.debug("Intent observable finalized",{data:{type:t.type}})})),cancel:i}}_processQueue(){if(this._isProcessing)return;if(this._queue.length===0){this.sessionEventDispatcher.dispatch({eventName:ur.NEW_STATE});return}this.sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_BUSY}),this._isProcessing=!0;const t=this._queue[0];if(t.isCancelled){this._logger.debug("Skipping cancelled intent",{data:{type:t.intent.type}}),t.subject.complete(),this._queue.shift(),this._isProcessing=!1,this._processQueue();return}this._logger.debug("Processing intent",{data:{type:t.intent.type}}),this._currentSubscription=t.intent.execute().subscribe({next:r=>{t.isCancelled||t.subject.next(r)},error:r=>{t.isCancelled||t.subject.error(r),this._onIntentComplete()},complete:()=>{t.isCancelled||t.subject.complete(),this._onIntentComplete()}})}_onIntentComplete(){this._logger.debug("Intent completed"),this._currentSubscription=null,this._queue.shift(),this._isProcessing=!1,this._processQueue()}},Iz=class{constructor(t,r){this._refresher=r,this._logger=t("refresher-service")}_refresherBlockers=new Set;_logger;disableRefresher(t){const r=`${t}-${$p()}`;this.addRefresherBlocker(r),this._logger.debug("Refresher disabled",{data:{blockerId:r,blockers:Array.from(this._refresherBlockers)}});let n=!1;return()=>{n||(n=!0,this.removeRefresherBlocker(r),this._logger.debug("Refresher re-enabled",{data:{blockerId:r,blockers:Array.from(this._refresherBlockers)}}))}}addRefresherBlocker(t){const r=this._refresherBlockers.size;this._refresherBlockers.add(t),r===0&&this._refresher.stop()}removeRefresherBlocker(t){const r=this._refresherBlockers.size;this._refresherBlockers.delete(t),r>0&&this._refresherBlockers.size===0&&this._refresher.start()}},Pz=class{constructor(t,r,n,i){this.connectedDevice=r,this._sessionEventDispatcher=n,this._sendCommandFunction=i,this._logger=t("device-pinger"),this._subscription=this._sessionEventDispatcher.listen().subscribe(async o=>await this.mapEventAction(o))}_sendCommandFunction;_subscription;_logger;async ping(){try{return await this.mapDevicePingAction(this.connectedDevice.deviceModel.id)}catch(t){return this._logger.error("Error while pinging device",{data:{error:t}}),null}}mapEventAction=async t=>{switch(t.eventName){case ur.REFRESH_NEEDED:return await this.ping();default:return null}};async mapDevicePingAction(t){switch(t){case Yt.NANO_S:{const r=async()=>{const o=await this._sendCommandFunction(new dC,Qv);return this._sendCommandFunction(new S4,Qv),o},n=new Promise(o=>{setTimeout(()=>o(null),_y*2+100)}),i=await Promise.race([r(),n]);return i?this._sessionEventDispatcher.dispatch({eventName:ur.COMMAND_SUCCEEDED,eventData:i}):this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_LOCKED}),i}default:{const r=await this._sendCommandFunction(new dC,Qv);return this._sessionEventDispatcher.dispatch({eventName:ur.COMMAND_SUCCEEDED,eventData:r}),r}}}unsubscribe(){this._subscription.unsubscribe()}},kz=class{constructor(t,r,n,i){this._sessionEventDispatcher=n,this._refresherOptions=r,this._logger=t("device-session-refresher"),this._connectedDeviceID=i.deviceModel.id}_refresherSubscription;_refresherOptions;_logger;_connectedDeviceID;startRefresher(){if(this._refresherOptions.isRefresherDisabled||this._refresherSubscription)return;const t=this.getValidPollingInterval(this._refresherOptions,this._logger)*2,r=this._sessionEventDispatcher.listen().pipe(p_(n=>n.eventName===ur.DEVICE_STATE_UPDATE_BUSY||n.eventName===ur.NEW_STATE),$a(n=>n.eventName===ur.DEVICE_STATE_UPDATE_BUSY),vj(!1),dj());this._refresherSubscription=uj(0,t).pipe(mj(r),h_(([n,i])=>{i&&this._logger.debug("Refresh skipped: device is busy")}),p_(([n,i])=>!i),h_(()=>this._sessionEventDispatcher.dispatch({eventName:ur.REFRESH_NEEDED}))).subscribe(),this._logger.info("Refresher started.")}stopRefresher(){this._refresherSubscription&&(this._refresherSubscription.unsubscribe(),this._refresherSubscription=void 0,this._logger.info("Refresher stopped."))}restartRefresher(){this.stopRefresher(),this.startRefresher(),this._logger.info("Refresher restarted.")}getValidPollingInterval=(t,r)=>{const{pollingInterval:n}=t;switch(this._connectedDeviceID){case Yt.NANO_S:{const i=_y*2;return n!==void 0&&n<i?(r.warn(`Polling interval of ${n} is too low, setting to minimum as ${i}`),i):n??i}default:return n!==void 0&&n<Zv?(r.warn(`Polling interval of ${n} is too low, setting to minimum as ${Zv}`),Zv):n??_y}}},Mz=class{constructor(t,r,n,i,o){this._sessionEventDispatcher=r,this._connectedDevice=n,this._deviceState=i,this.setDeviceSessionState=o,this._subscription=this._sessionEventDispatcher.listen().subscribe(s=>this.mapEventAction(s)),this._logger=t("device-session-state-handler")}_subscription;_logger;_pendingDeviceStatus=uo.BUSY;_updateDeviceState(t){const r=this._parseDeviceStatus(t);if(r){const{sessionStateType:n,deviceStatus:i,currentApp:o}=r,s=this._deviceState.getValue();s.sessionStateType===Zu.Connected?this.setDeviceSessionState({sessionStateType:n,deviceStatus:i,deviceModelId:this._connectedDevice.deviceModel.id,currentApp:o,installedApps:[],isSecureConnectionAllowed:!1}):this.setDeviceSessionState({...s,sessionStateType:n,deviceStatus:i,deviceModelId:this._connectedDevice.deviceModel.id,currentApp:o})}}mapEventAction=t=>{const{eventName:r}=t;switch(r){case ur.COMMAND_SUCCEEDED:return this._updateDeviceState(t.eventData);case ur.DEVICE_STATE_UPDATE_BUSY:return this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:uo.BUSY});case ur.DEVICE_STATE_UPDATE_LOCKED:this._pendingDeviceStatus=uo.LOCKED;return;case ur.DEVICE_STATE_UPDATE_CONNECTED:this._pendingDeviceStatus=uo.CONNECTED;return;case ur.NEW_STATE:{const n=this._pendingDeviceStatus;return this._pendingDeviceStatus=uo.BUSY,this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:n})}case ur.DEVICE_STATE_UPDATE_UNKNOWN:return this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:uo.BUSY});case ur.REFRESH_NEEDED:return;default:{const n=r;throw new Error(`Unhandled context type ${n}`)}}};_parseDeviceStatus(t){return B3(t)?{sessionStateType:Zu.ReadyWithoutSecureChannel,deviceStatus:uo.CONNECTED,currentApp:{name:t.data.name,version:t.data.version}}:(this._logger.debug("Error while parsing APDU response",{data:{parsedResponse:t}}),null)}unsubscribe(){this._subscription.unsubscribe()}},Dz=class{_id;_connectedDevice;_deviceState;_managerApiService;_secureChannelService;_logger;_loggerModuleFactory;_refresherOptions;_pinger;_deviceSessionRefresher;_refresherService;_intentQueueService;_sessionEventDispatcher=new $z;_bypassIntentQueue=!1;constructor({connectedDevice:t,id:r=$p()},n,i,o,s,u=c=>new Az(n,c)){this._id=r,this._connectedDevice=t,this._loggerModuleFactory=n,this._logger=n("device-session"),this._managerApiService=i,this._intentQueueService=u(this._sessionEventDispatcher),this._secureChannelService=o,this._refresherOptions={...Tz,...s},this._deviceState=new F4({sessionStateType:Zu.Connected,deviceStatus:uo.CONNECTED,deviceModelId:this._connectedDevice.deviceModel.id}),this._pinger=new Pz(n,t,this._sessionEventDispatcher,(c,f)=>this.sendCommand(c,f)),this._deviceSessionRefresher=new kz(n,this._refresherOptions,this._sessionEventDispatcher,this._connectedDevice),new Mz(n,this._sessionEventDispatcher,this._connectedDevice,this._deviceState,c=>this.setDeviceSessionState(c)),this._refresherService=new Iz(n,{start:()=>this._deviceSessionRefresher.restartRefresher(),stop:()=>this._deviceSessionRefresher.stopRefresher()})}async initialiseSession(){try{this._refresherOptions.isRefresherDisabled?await this._pinger.ping():this._deviceSessionRefresher.startRefresher()}catch(t){throw this._logger.error("Error while initialising session",{data:{error:t}}),t}}get id(){return this._id}get connectedDevice(){return this._connectedDevice}get state(){return this._deviceState.asObservable()}getDeviceSessionState(){return this._deviceState.getValue()}setDeviceSessionState(t){this._deviceState.next(t)}sendApdu(t,r={isPolling:!1,triggersDisconnection:!1,abortTimeout:void 0}){return this._bypassIntentQueue?this._unsafeInternalSendApdu(t,r):this._internalSendApdu(t,r)}_internalSendApdu(t,r){const n=r.abortTimeout,i=Date.now(),{observable:o,cancel:s}=this._intentQueueService.enqueue({type:"send-apdu",execute:()=>wl((async()=>{const c=Date.now()-i;return await this._unsafeInternalSendApdu(t,{isPolling:r.isPolling,triggersDisconnection:r.triggersDisconnection,abortTimeout:n?n-c:void 0})})())}),u=n?o.pipe(f_({each:n,with:()=>{throw s(),new yj}})):o;return c_(u)}async _unsafeInternalSendApdu(t,r={isPolling:!1,triggersDisconnection:!1,abortTimeout:void 0}){return this._logger.debug(Rz(t)),(await this._connectedDevice.sendApdu(t,r.triggersDisconnection,r.abortTimeout)).ifRight(n=>{this._logger.debug(Oz(n)),Y1.isLockedDeviceResponse(n)?this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_LOCKED}):this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_CONNECTED})}).ifLeft(()=>{this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_UNKNOWN})})}sendCommand(t,r){return this._logger.debug(`[sendCommand] ${t.name}`),this._bypassIntentQueue?this._unsafeInternalSendCommand(t,r):this._internalSendCommand(t,r)}_internalSendCommand(t,r){const n=Date.now(),{observable:i,cancel:o}=this._intentQueueService.enqueue({type:"send-command",execute:()=>wl((async()=>{const u=Date.now()-n;return await this._unsafeInternalSendCommand(t,r?r-u:void 0)})())}),s=r?i.pipe(f_({each:r,with:()=>{throw o(),new bj}})):i;return c_(s)}async _unsafeInternalSendCommand(t,r){const n=t.getApdu();return(await this._unsafeInternalSendApdu(n.getRawApdu(),{isPolling:!1,triggersDisconnection:t.triggersDisconnection??!1,abortTimeout:r})).caseOf({Left:i=>{throw this._logger.error("[sendCommand] error",{data:{err:i}}),i},Right:i=>{const o=t.parseResponse(i,this._connectedDevice.deviceModel.id);return this._logger.debug("[sendCommand] result",{data:{result:o}}),o}})}executeDeviceAction(t){return this._bypassIntentQueue?this._unsafeInternalExecuteDeviceAction(t):this._internalExecuteDeviceAction(t)}_internalExecuteDeviceAction(t){let r;const{observable:n,cancel:i}=this._intentQueueService.enqueue({type:"device-action",execute:()=>{const{observable:o,cancel:s}=this._unsafeInternalExecuteDeviceAction(t);return r=s,o}});return{observable:n,cancel:()=>{r?.(),i()}}}_unsafeInternalExecuteDeviceAction(t){const{observable:r,cancel:n}=t._execute({sendApdu:async i=>this._unsafeInternalSendApdu(i),sendCommand:async i=>this._unsafeInternalSendCommand(i),getDeviceModel:()=>this._connectedDevice.deviceModel,getDeviceSessionState:()=>this._deviceState.getValue(),getDeviceSessionStateObservable:()=>this.state,setDeviceSessionState:i=>(this.setDeviceSessionState(i),this._deviceState.getValue()),getManagerApiService:()=>this._managerApiService,getSecureChannelService:()=>this._secureChannelService,loggerFactory:this._loggerModuleFactory});return{observable:r,cancel:n}}close(){this._updateDeviceStatus(uo.NOT_CONNECTED),this._deviceState.complete(),this._deviceSessionRefresher.stopRefresher(),this._pinger.unsubscribe()}disableRefresher(t){return this._refresherService.disableRefresher(t)}_unsafeBypassIntentQueue(t){this._bypassIntentQueue=t}_updateDeviceStatus(t){const r=this._deviceState.getValue();this._deviceState.next({...r,deviceStatus:t})}};const hb={SecureChannelService:Symbol.for("SecureChannelService"),SecureChannelDataSource:Symbol.for("SecureChannelDataSource"),DmkConfig:Symbol.for("SecureChannelDmkConfig")};var Lz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},mu=(e,t)=>(r,n)=>t(r,n,e);let J_=class{_transportService;_sessionService;_loggerFactory;_managerApi;_secureChannel;_logger;constructor(t,r,n,i,o){this._sessionService=r,this._transportService=t,this._loggerFactory=n,this._logger=n("ConnectUseCase"),this._managerApi=i,this._secureChannel=o}handleDeviceDisconnect(t){this._sessionService.getDeviceSessionsByDeviceId(t).ifRight(r=>{r.forEach(n=>{this._sessionService.removeDeviceSession(n.id),this._logger.info("Session removed",{data:{deviceId:t,sessionId:n.id}})})})}async execute({device:t,sessionRefresherOptions:r}){const n=this._transportService.getTransport(t.transport),i="sessionId"in t?t.sessionId:void 0;return gt.liftEither(n.toEither(new db(new Error("Unknown transport")))).chain(async o=>o.connect({deviceId:t.id,onDisconnect:s=>this.handleDeviceDisconnect(s)})).ifLeft(o=>{this._logger.error("Error connecting to device")}).map(async o=>{const s=new Dz({connectedDevice:o,id:i},this._loggerFactory,this._managerApi,this._secureChannel,r);return this._sessionService.addDeviceSession(s),await s.initialiseSession(),s.id}).caseOf({Left:o=>{throw o},Right:o=>o})}};J_=Lz([Et(),mu(0,tt(Ia.TransportService)),mu(1,tt(fn.DeviceSessionService)),mu(2,tt(Er.LoggerPublisherServiceFactory)),mu(3,tt(Ap.ManagerApiService)),mu(4,tt(hb.SecureChannelService))],J_);var Fz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},em=(e,t)=>(r,n)=>t(r,n,e);let Z_=class{_transportService;_sessionService;_logger;constructor(t,r,n){this._sessionService=r,this._transportService=t,this._logger=n("DisconnectUseCase")}async execute({sessionId:t}){return this._logger.debug("Disconnecting from device",{data:{test:this._sessionService.getDeviceSessions().map(r=>r.id)}}),gt(async({liftEither:r})=>{const n=await r(this._sessionService.getDeviceSessionById(t).ifLeft(s=>{this._logger.error("Device session not found",{data:{sessionId:t,error:s}})})),i=n.connectedDevice.transport,o=await r(this._transportService.getTransport(i).toEither(new db(new Error("Unknown transport"))));n.close(),this._sessionService.removeDeviceSession(t),await o.disconnect({connectedDevice:n.connectedDevice})}).caseOf({Left:r=>{throw this._logger.error("Error disconnecting from device",{data:{error:r}}),r},Right:()=>{}})}};Z_=Fz([Et(),em(0,tt(Ia.TransportService)),em(1,tt(fn.DeviceSessionService)),em(2,tt(Er.LoggerPublisherServiceFactory))],Z_);let gb=class{id;sessionId;modelId;name;type;transport;constructor({transportConnectedDevice:{id:t,deviceModel:{id:r,productName:n},type:i,transport:o,name:s},sessionId:u}){this.id=t,this.sessionId=u,this.modelId=r,this.name=s??n,this.type=i,this.transport=o}};var Nz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},eR=(e,t)=>(r,n)=>t(r,n,e);let tR=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("GetConnectedDeviceUseCase")}execute({sessionId:t}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:r=>new gb({sessionId:r.id,transportConnectedDevice:r.connectedDevice}),Left:r=>{throw this._logger.error("Error getting session",{data:{error:r}}),r}})}};tR=Nz([Et(),eR(0,tt(fn.DeviceSessionService)),eR(1,tt(Er.LoggerPublisherServiceFactory))],tR);var jz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},rR=(e,t)=>(r,n)=>t(r,n,e);let nR=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("ListConnectedDeviceUseCase")}execute(){return this._logger.info("Listing connected devices"),this._sessionService.getDeviceSessions().map(t=>new gb({transportConnectedDevice:t.connectedDevice,sessionId:t.id}))}};nR=jz([Et(),rR(0,tt(fn.DeviceSessionService)),rR(1,tt(Er.LoggerPublisherServiceFactory))],nR);var zz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},iR=(e,t)=>(r,n)=>t(r,n,e);let oR=class{_transports;_transportService;_logger;constructor(t,r){this._transports=t.getAllTransports(),this._transportService=t,this._logger=r("ListenToAvailableDevicesUseCase")}mapTransportDiscoveredDeviceToDiscoveredDevice(t){const r=new tI({id:t.id,model:t.deviceModel.id,name:t.deviceModel.productName});return{id:t.id,deviceModel:r,transport:t.transport,name:t.name||r.name,rssi:t.rssi}}execute({transport:t}={}){if(this._logger.info("Listening to available devices"),this._transports.length===0)return this._logger.warn("No transports available"),wl([[]]);if(!t){this._logger.info("Discovering all available transports");const r=this._transports.map((n,i)=>n.listenToAvailableDevices().pipe($a(o=>({index:i,arr:o}))));return cj(...r).pipe(gj((n,{index:i,arr:o})=>(n[i]=o,n),{}),$a(n=>Object.values(n).flat().map(this.mapTransportDiscoveredDeviceToDiscoveredDevice)))}return this._logger.info(`Discovering devices on transport ${t}`),this._transportService.getTransport(t).caseOf({Nothing:()=>(this._logger.error(`Transport ${t} not found`),TI([])),Just:r=>r.listenToAvailableDevices().pipe($a(n=>n.map(this.mapTransportDiscoveredDeviceToDiscoveredDevice)))})}};oR=zz([Et(),iR(0,tt(Ia.TransportService)),iR(1,tt(Er.LoggerPublisherServiceFactory))],oR);var Bz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},aR=(e,t)=>(r,n)=>t(r,n,e);let sR=class{constructor(t,r){this._sessionService=t,this._logger=r("ListenToConnectedDeviceUseCase")}_logger;execute(){return this._logger.info("Observe connected devices"),this._sessionService.sessionsObs.pipe($a(t=>new gb({transportConnectedDevice:t.connectedDevice,sessionId:t.id})))}};sR=Bz([Et(),aR(0,tt(fn.DeviceSessionService)),aR(1,tt(Er.LoggerPublisherServiceFactory))],sR);var Vz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},tm=(e,t)=>(r,n)=>t(r,n,e);let lR=class{constructor(t,r,n){this.connectUseCase=t,this.disconnectUseCase=r,this._logger=n("ReconnectUseCase")}_logger;async execute({device:t,sessionRefresherOptions:r}){return this._logger.debug("Reconnecting device session",{data:{deviceId:t.id,transport:t.transport}}),await this.disconnectUseCase.execute({sessionId:t.sessionId}),this.connectUseCase.execute({device:t,sessionRefresherOptions:r})}};lR=Vz([Et(),tm(0,tt($_.ConnectUseCase)),tm(1,tt($_.DisconnectUseCase)),tm(2,tt(Er.LoggerPublisherServiceFactory))],lR);var Hz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Uz=(e,t)=>(r,n)=>t(r,n,e);let uR=class{constructor(t){this._transportService=t}mapDiscoveredDevice(t){const r=new tI({id:t.id,model:t.deviceModel.id,name:t.deviceModel.productName});return{id:t.id,deviceModel:r,transport:t.transport,name:t.name||r.name,rssi:t.rssi}}execute({transport:t}={}){if(!t){const r=this._transportService.getAllTransports();return TI(...r).pipe(fb(n=>n.startDiscovering().pipe($a(i=>this.mapDiscoveredDevice(i)))))}return this._transportService.getTransport(t).caseOf({Just:r=>r.startDiscovering().pipe($a(n=>this.mapDiscoveredDevice(n))),Nothing:()=>{throw new db(new Error("Unknown transport"))}})}};uR=Hz([Et(),Uz(0,tt(Ia.TransportService))],uR);var Wz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},cR=(e,t)=>(r,n)=>t(r,n,e);let fR=class{constructor(t,r){this.transportService=t,this._logger=r("StopDiscoveringUseCase")}_logger;async execute(){this._logger.debug("Stopping discovering devices");for(const t of this.transportService.getAllTransports())await t.stopDiscovering()}};fR=Wz([Et(),cR(0,tt(Ia.TransportService)),cR(1,tt(Er.LoggerPublisherServiceFactory))],fR);var Ru=(e=>(e[e.Fatal=0]="Fatal",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e))(Ru||{});let qz=class{format(t){return Array.isArray(t)?t.map(r=>`[${r}]`).join(" "):`[${t}]`}};function Ry(e,t){if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return t.has(e)?"[Circular]":(t.add(e),e.map(r=>Ry(r,t)));if(e!==null&&typeof e=="object"){if(t.has(e))return"[Circular]";t.add(e);const r={};for(const[n,i]of Object.entries(e))r[n]=Ry(i,t);return r}return e}function Gz(e){const t=new WeakSet;t.add(e);const r={};for(const[n,i]of Object.entries(e))r[n]=Ry(i,t);return r}var Xz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let dR=class{subscribers;tag;tagFormatter;constructor(t,r,n=new qz){this.subscribers=t,this.tag=r,this.tagFormatter=n}_log(t,r,n){const i=n?.data?Gz(n.data):void 0,o=n?.tag??this.tag,s=this.tagFormatter.format(o);this.subscribers.forEach(u=>{const c={timestamp:n?.timestamp??Date.now(),tag:s,data:i};u.log(t,r,c)})}info(t,r){this._log(Ru.Info,t,r)}warn(t,r){this._log(Ru.Warning,t,r)}debug(t,r){this._log(Ru.Debug,t,r)}error(t,r){this._log(Ru.Error,t,r)}};dR=Xz([Et()],dR);let tc=class extends Error{status;statusText;responseBody;isTimeout;isAbort;cause;constructor(t){super(t.message),this.name="DmkNetworkClientError",this.status=t.status,this.statusText=t.statusText,this.responseBody=t.responseBody,this.isTimeout=t.isTimeout??!1,this.isAbort=t.isAbort??!1,this.cause=t.cause}};const Kz="application/json";function Yz(e,t){if(!t)return e;const r=e.endsWith("/")?e.slice(0,-1):e,n=t.startsWith("/")?t:`/${t}`;return`${r}${n}`}function Qz(e){const{url:t,params:r,baseUrl:n}=e,i=/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?new URL(t):n?new URL(Yz(n,t)):new URL(t);if(r)for(const[o,s]of Object.entries(r))s!=null&&i.searchParams.set(o,String(s));return i}function Jz(e,t){const r=t.toLowerCase();return Object.keys(e).some(n=>n.toLowerCase()===r)}function Zz(e){return typeof e=="string"||e instanceof ArrayBuffer||e instanceof Blob||e instanceof FormData||e instanceof URLSearchParams||e instanceof ReadableStream||ArrayBuffer.isView(e)}function e8(e){const{method:t,body:r,defaultHeaders:n,perRequestHeaders:i}=e,o={...n,...i};return r===void 0||t==="GET"||t==="HEAD"?{body:void 0,headers:o}:Zz(r)?{body:r,headers:o}:(Jz(o,"content-type")||(o["Content-Type"]=Kz),{body:JSON.stringify(r),headers:o})}function t8(e){const{timeoutMs:t,externalSignal:r}=e,n=t&&t>0?AbortSignal.timeout(t):void 0;return n&&r?AbortSignal.any([r,n]):n??r}async function r8(e,t){switch(t){case"void":return;case"text":return await e.text();case"blob":return await e.blob();case"arrayBuffer":return await e.arrayBuffer();case"json":default:{const r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch(n){throw new tc({message:"Failed to parse JSON response body",status:e.status,statusText:e.statusText,responseBody:r,cause:n})}}}}async function n8(e){try{return await e.text()}catch{return}}function i8(e){const{cause:t,externalSignal:r,timeoutMs:n}=e,i=!!(n&&n>0);if(t instanceof Error&&(t.name==="AbortError"||t.name==="TimeoutError")){const o=r?.aborted??!1,s=!o&&(t.name==="TimeoutError"||i);return new tc({message:s?"Request timed out":"Request aborted",isTimeout:s,isAbort:o,cause:t})}return new tc({message:t instanceof Error?t.message:"Network request failed",cause:t})}let o8=class{baseUrl;defaultHeaders;fetchImpl;constructor(t={}){this.baseUrl=t.baseUrl,this.defaultHeaders=t.headers??{},this.fetchImpl=t.fetch}getFetch(){return this.fetchImpl??globalThis.fetch.bind(globalThis)}get(t,r){return this.request({...r,method:"GET",url:t}).then(n=>n.data)}post(t,r,n){return this.request({...n,method:"POST",url:t,body:r}).then(i=>i.data)}put(t,r,n){return this.request({...n,method:"PUT",url:t,body:r}).then(i=>i.data)}patch(t,r,n){return this.request({...n,method:"PATCH",url:t,body:r}).then(i=>i.data)}delete(t,r){return this.request({...r,method:"DELETE",url:t}).then(n=>n.data)}head(t,r){return this.request({...r,method:"HEAD",url:t,responseType:"void"}).then(()=>{})}async request(t){const r=Qz({url:t.url,params:t.params,baseUrl:this.baseUrl}),{body:n,headers:i}=e8({method:t.method,body:t.body,defaultHeaders:this.defaultHeaders,perRequestHeaders:t.headers}),o=t8({timeoutMs:t.timeoutMs,externalSignal:t.signal}),s=t.throwOnHttpError??!0,u=t.responseType??"json";let c;try{c=await this.getFetch()(r,{method:t.method,headers:i,body:n,signal:o})}catch(f){throw i8({cause:f,externalSignal:t.signal,timeoutMs:t.timeoutMs})}if(!c.ok&&s){const f=await n8(c);throw new tc({message:`HTTP error ${c.status} ${c.statusText}`.trim(),status:c.status,statusText:c.statusText,responseBody:f})}return{data:await r8(c,u),status:c.status,statusText:c.statusText,headers:c.headers,ok:c.ok}}};var Ou=(e=>(e.currency="currency",e.plugin="plugin",e.tool="tool",e.swap="swap",e))(Ou||{});const a8=1,s8="0";let ep=class{constructor(t){this.error=t,this.originalError=t}_tag="FetchError";originalError};var Tu=(e=>(e.currency="currency",e.plugin="plugin",e.tool="tool",e.swap="swap",e))(Tu||{}),l8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},u8=(e,t)=>(r,n)=>t(r,n,e);const Vo=e=>e instanceof tc&&e.cause!==void 0?new ep(e.cause):new ep(e);let pR=class{http;_provider=a8;_firmwareDistributionSalt=s8;constructor({managerApiUrl:t,provider:r,firmwareDistributionSalt:n}){this.http=new o8({baseUrl:t}),this._provider=r,this._firmwareDistributionSalt=n}setProvider(t){this._provider===t||t<1||(this._provider=t)}getProvider(){return this._provider}getAppList(t){const{targetId:r,firmwareVersionName:n}=t;return gt(()=>this.http.get("/v2/apps/by-target",{params:{target_id:r,provider:this._provider,firmware_version_name:n}})).chain(i=>this.mapApplicationDtoToApplication(i)).mapLeft(Vo)}getMcuList(){return gt(()=>this.http.get("/mcu_versions")).chain(t=>this.mapMcuDtoToMcu(t)).mapLeft(Vo)}getDeviceVersion(t){const{targetId:r}=t;return gt(()=>this.http.get("/get_device_version",{params:{target_id:r,provider:this._provider}})).chain(n=>this.mapDeviceVersionDto(n)).mapLeft(Vo)}getFirmwareVersion(t){const{deviceId:r,version:n}=t;return gt(()=>this.http.get("/get_firmware_version",{params:{device_version:r,version_name:n,provider:this._provider}})).chain(i=>this.mapFinalFirmwareDto(i)).mapLeft(Vo)}getFirmwareVersionById(t){return gt(()=>this.http.get(`/firmware_final_versions/${t}`)).chain(r=>this.mapFinalFirmwareDto(r)).mapLeft(Vo)}getOsuFirmwareVersion(t){const{deviceId:r,version:n}=t;return gt(()=>this.http.get("/get_osu_version",{params:{device_version:r,version_name:n,provider:this._provider}})).chain(i=>this.mapOsuFirmwareDto(i)).mapLeft(Vo)}getLatestFirmwareVersion(t){const r="34.27.0",{currentFinalFirmwareId:n,deviceId:i}=t;return gt(()=>this.http.get("/get_latest_firmware",{params:{current_se_firmware_final_version:n,device_version:i,provider:this._provider,salt:this._firmwareDistributionSalt,livecommonversion:r}})).chain(o=>this.mapLatestFirmwareDto(o)).mapLeft(Vo)}getAppsByHash(t){const{hashes:r}=t;return gt(()=>this.http.post("/v2/apps/hash",r)).chain(n=>this.mapNullableApplicationDtoToApplication(n)).mapLeft(Vo)}getLanguagePackages(t){const{deviceId:r,currentFinalFirmwareId:n}=t;return gt(()=>this.http.get("/language-packages",{params:{device_version:r,current_se_firmware_final_version:n}})).chain(i=>this.mapLanguagesDtoToLanguages(i)).mapLeft(Vo)}mapAppTypeDtoToAppType(t){if(t===null)return null;switch(t){case Tu.currency:return Ou.currency;case Tu.plugin:return Ou.plugin;case Tu.tool:return Ou.tool;case Tu.swap:return Ou.swap}}mapApplicationDtoToApplication(t){return gt(()=>Promise.resolve(t.map(r=>this.mapApplicationDto(r))))}mapNullableApplicationDtoToApplication(t){return gt(()=>Promise.resolve(t.map(r=>r===null?null:this.mapApplicationDto(r))))}mapApplicationDto(t){if(typeof t!="object"||typeof t.versionId!="number"||typeof t.versionName!="string"||t.versionDisplayName!==null&&typeof t.versionDisplayName!="string"||typeof t.version!="string"||t.currencyId!==null&&typeof t.currencyId!="string"||t.description!==null&&typeof t.description!="string"||t.applicationType!==null&&typeof t.applicationType!="string"||typeof t.dateModified!="string"||t.icon!==null&&typeof t.icon!="string"||t.authorName!==null&&typeof t.authorName!="string"||t.supportURL!==null&&typeof t.supportURL!="string"||t.contactURL!==null&&typeof t.contactURL!="string"||t.sourceURL!==null&&typeof t.sourceURL!="string"||t.compatibleWallets!==null&&typeof t.compatibleWallets!="string"||typeof t.hash!="string"||typeof t.perso!="string"||typeof t.firmware!="string"||typeof t.firmwareKey!="string"||typeof t.delete!="string"||typeof t.deleteKey!="string"||t.bytes!==null&&typeof t.bytes!="number"||t.warning!==null&&typeof t.warning!="string"||typeof t.isDevTools!="boolean"||t.category!==null&&typeof t.category!="number"||t.parent!==null&&typeof t.parent!="number"||t.parentName!==null&&typeof t.parentName!="string")throw new Error(`Incomplete application: ${JSON.stringify(t)}`);const{applicationType:r,hash:n,perso:i,firmware:o,firmwareKey:s,delete:u,deleteKey:c,...f}=t;return{...f,hash:n,perso:i,firmware:o,firmwareKey:s,delete:u,deleteKey:c,applicationType:this.mapAppTypeDtoToAppType(r)}}mapMcuDtoToMcu(t){return gt(()=>Promise.resolve(t.map(r=>{if(typeof r!="object"||typeof r.id!="number"||typeof r.name!="string")throw new Error(`Incomplete MCU version: ${JSON.stringify(r)}`);return{id:r.id,name:r.name}})))}mapDeviceVersionDto(t){return gt(()=>{if(typeof t!="object"||typeof t.id!="number")throw new Error(`Incomplete device version: ${JSON.stringify(t)}`);const r={id:t.id};return Promise.resolve(r)})}mapFinalFirmwareDto(t){return gt(()=>{if(typeof t!="object"||typeof t.id!="number"||typeof t.version!="string"||typeof t.perso!="string"||t.firmware!==null&&typeof t.firmware!="string"||t.firmware_key!==null&&typeof t.firmware_key!="string"||t.hash!==null&&typeof t.hash!="string"||t.bytes!==null&&typeof t.bytes!="number"||!Array.isArray(t.mcu_versions))throw new Error(`Incomplete final firmware: ${JSON.stringify(t)}`);const r={id:t.id,version:t.version,perso:t.perso,firmware:t.firmware,firmwareKey:t.firmware_key,hash:t.hash,bytes:t.bytes,mcuVersions:t.mcu_versions};return Promise.resolve(r)})}mapLatestFirmwareDto(t){return gt(()=>{if(t.result!=="success"||!t.se_firmware_osu_version)throw new Error(`Latest firmware could not be retrieved: ${t.result}`);const r=t.se_firmware_osu_version;return Promise.resolve(r)}).chain(r=>this.mapOsuFirmwareDto(r))}mapOsuFirmwareDto(t){return gt(()=>{if(typeof t!="object"||typeof t.id!="number"||typeof t.perso!="string"||typeof t.firmware!="string"||typeof t.firmware_key!="string"||t.hash!==null&&typeof t.hash!="string"||typeof t.next_se_firmware_final_version!="number")throw new Error(`Incomplete latest firmware: ${JSON.stringify(t)}`);const r={id:t.id,perso:t.perso,firmware:t.firmware,firmwareKey:t.firmware_key,hash:t.hash,nextFinalFirmware:t.next_se_firmware_final_version};return Promise.resolve(r)})}mapLanguagesDtoToLanguages(t){return gt(()=>Promise.resolve(t.map(r=>this.mapLanguageDto(r))))}mapLanguageDto(t){if(typeof t!="object"||typeof t.language!="string"||typeof t.languagePackageVersionId!="number"||typeof t.version!="string"||typeof t.language_package_id!="number"||typeof t.apdu_install_url!="string"||typeof t.apdu_uninstall_url!="string"||typeof t.bytes!="number"||typeof t.date_creation!="string"||typeof t.date_last_modified!="string")throw new Error(`Incomplete language version: ${JSON.stringify(t)}`);return{language:t.language,languagePackageVersionId:t.languagePackageVersionId,version:t.version,languagePackageId:t.language_package_id,apduInstallUrl:t.apdu_install_url,apduUninstallUrl:t.apdu_uninstall_url,bytes:t.bytes,dateCreation:t.date_creation,dateLastModified:t.date_last_modified}}};pR=l8([Et(),u8(0,tt(Ap.DmkConfig))],pR);var c8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},f8=(e,t)=>(r,n)=>t(r,n,e);let hR=class{constructor(t){this.dataSource=t}getAppList(t){const r={targetId:t.targetId.toString(),firmwareVersionName:t.seVersion};return this.dataSource.getAppList(r)}getDeviceVersion(t){const r={targetId:t.targetId.toString()};return this.dataSource.getDeviceVersion(r)}getFirmwareVersion(t,r){const n={version:t.seVersion,deviceId:r.id};return this.dataSource.getFirmwareVersion(n)}getOsuFirmwareVersion(t,r){const n={version:t.seVersion,deviceId:r.id};return this.dataSource.getOsuFirmwareVersion(n)}getLatestFirmwareVersion(t,r){const n={currentFinalFirmwareId:t.id,deviceId:r.id};return this.dataSource.getLatestFirmwareVersion(n)}getNextFirmwareVersion(t){return this.dataSource.getFirmwareVersionById(t.nextFinalFirmware)}getLanguagePackages(t,r){const n={deviceId:t.id,currentFinalFirmwareId:r.id};return this.dataSource.getLanguagePackages(n)}getMcuList(){return this.dataSource.getMcuList()}getAppsByHash(t){const r={hashes:t};return gt(async({fromPromise:n,throwE:i})=>{if(r.hashes.length===0)return[];try{return await n(this.dataSource.getAppsByHash(r))}catch(o){return o instanceof ep?i(o):i(new ep(o))}})}};hR=c8([Et(),f8(0,tt(Ap.ManagerApiDataSource))],hR);var d8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},gR=(e,t)=>(r,n)=>t(r,n,e);let vR=class{constructor(t,r){this.sessionService=t,this.managerApiDataSource=r}execute(t){for(const r of this.sessionService.getDeviceSessions()){const n=r.getDeviceSessionState();n.sessionStateType!==Zu.Connected&&r.setDeviceSessionState({...n,firmwareUpdateContext:void 0,installedApps:[],appsUpdates:void 0,catalog:void 0})}this.managerApiDataSource.setProvider(t)}};vR=d8([Et(),gR(0,tt(fn.DeviceSessionService)),gR(1,tt(Ap.ManagerApiDataSource))],vR);var Ya={},$u={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var p8=$u.exports,mR;function h8(){return mR||(mR=1,(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof self=="object"&&self;(o.global===o||o.window===o||o.self===o)&&(r=o);var s,u=2147483647,c=36,f=1,d=26,g=38,h=700,y=72,m=128,S="-",b=/^xn--/,C=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=c-f,_=Math.floor,A=String.fromCharCode,O;function I(U){throw new RangeError($[U])}function L(U,D){for(var P=U.length,G=[];P--;)G[P]=D(U[P]);return G}function F(U,D){var P=U.split("@"),G="";P.length>1&&(G=P[0]+"@",U=P[1]),U=U.replace(x,".");var Z=U.split("."),te=L(Z,D).join(".");return G+te}function W(U){for(var D=[],P=0,G=U.length,Z,te;P<G;)Z=U.charCodeAt(P++),Z>=55296&&Z<=56319&&P<G?(te=U.charCodeAt(P++),(te&64512)==56320?D.push(((Z&1023)<<10)+(te&1023)+65536):(D.push(Z),P--)):D.push(Z);return D}function z(U){return L(U,function(D){var P="";return D>65535&&(D-=65536,P+=A(D>>>10&1023|55296),D=56320|D&1023),P+=A(D),P}).join("")}function B(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:c}function j(U,D){return U+22+75*(U<26)-((D!=0)<<5)}function N(U,D,P){var G=0;for(U=P?_(U/h):U>>1,U+=_(U/D);U>T*d>>1;G+=c)U=_(U/T);return _(G+(T+1)*U/(U+g))}function X(U){var D=[],P=U.length,G,Z=0,te=m,K=y,ye,ae,be,he,xe,Se,Oe,Ee,_e;for(ye=U.lastIndexOf(S),ye<0&&(ye=0),ae=0;ae<ye;++ae)U.charCodeAt(ae)>=128&&I("not-basic"),D.push(U.charCodeAt(ae));for(be=ye>0?ye+1:0;be<P;){for(he=Z,xe=1,Se=c;be>=P&&I("invalid-input"),Oe=B(U.charCodeAt(be++)),(Oe>=c||Oe>_((u-Z)/xe))&&I("overflow"),Z+=Oe*xe,Ee=Se<=K?f:Se>=K+d?d:Se-K,!(Oe<Ee);Se+=c)_e=c-Ee,xe>_(u/_e)&&I("overflow"),xe*=_e;G=D.length+1,K=N(Z-he,G,he==0),_(Z/G)>u-te&&I("overflow"),te+=_(Z/G),Z%=G,D.splice(Z++,0,te)}return z(D)}function q(U){var D,P,G,Z,te,K,ye,ae,be,he,xe,Se=[],Oe,Ee,_e,$e;for(U=W(U),Oe=U.length,D=m,P=0,te=y,K=0;K<Oe;++K)xe=U[K],xe<128&&Se.push(A(xe));for(G=Z=Se.length,Z&&Se.push(S);G<Oe;){for(ye=u,K=0;K<Oe;++K)xe=U[K],xe>=D&&xe<ye&&(ye=xe);for(Ee=G+1,ye-D>_((u-P)/Ee)&&I("overflow"),P+=(ye-D)*Ee,D=ye,K=0;K<Oe;++K)if(xe=U[K],xe<D&&++P>u&&I("overflow"),xe==D){for(ae=P,be=c;he=be<=te?f:be>=te+d?d:be-te,!(ae<he);be+=c)$e=ae-he,_e=c-he,Se.push(A(j(he+$e%_e,0))),ae=_($e/_e);Se.push(A(j(ae,0))),te=N(P,Ee,G==Z),P=0,++G}++P,++D}return Se.join("")}function M(U){return F(U,function(D){return b.test(D)?X(D.slice(4).toLowerCase()):D})}function J(U){return F(U,function(D){return C.test(D)?"xn--"+q(D):D})}if(s={version:"1.4.1",ucs2:{decode:W,encode:z},decode:X,encode:q,toASCII:J,toUnicode:M},n&&i)if(e.exports==n)i.exports=s;else for(O in s)s.hasOwnProperty(O)&&(n[O]=s[O]);else r.punycode=s})(p8)})($u,$u.exports)),$u.exports}var rm,yR;function Ll(){return yR||(yR=1,rm=TypeError),rm}const g8={},v8=Object.freeze(Object.defineProperty({__proto__:null,default:g8},Symbol.toStringTag,{value:"Module"})),m8=M1(v8);var nm,bR;function Ip(){if(bR)return nm;bR=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&o&&typeof o.get=="function"?o.get:null,u=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,f=c?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,g=d?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,y=h?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,S=Object.prototype.toString,b=Function.prototype.toString,C=String.prototype.match,x=String.prototype.slice,$=String.prototype.replace,T=String.prototype.toUpperCase,_=String.prototype.toLowerCase,A=RegExp.prototype.test,O=Array.prototype.concat,I=Array.prototype.join,L=Array.prototype.slice,F=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,j=typeof Symbol=="function"&&typeof Symbol.iterator=="object",N=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(V){return V.__proto__}:null);function M(V,ee){if(V===1/0||V===-1/0||V!==V||V&&V>-1e3&&V<1e3||A.call(/e/,ee))return ee;var Re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof V=="number"){var le=V<0?-F(-V):F(V);if(le!==V){var fe=String(le),ve=x.call(ee,fe.length+1);return $.call(fe,Re,"$&_")+"."+$.call($.call(ve,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $.call(ee,Re,"$&_")}var J=m8,U=J.custom,D=Oe(U)?U:null,P={__proto__:null,double:'"',single:"'"},G={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};nm=function V(ee,Re,le,fe){var ve=Re||{};if($e(ve,"quoteStyle")&&!$e(P,ve.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($e(ve,"maxStringLength")&&(typeof ve.maxStringLength=="number"?ve.maxStringLength<0&&ve.maxStringLength!==1/0:ve.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ae=$e(ve,"customInspect")?ve.customInspect:!0;if(typeof Ae!="boolean"&&Ae!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($e(ve,"indent")&&ve.indent!==null&&ve.indent!==" "&&!(parseInt(ve.indent,10)===ve.indent&&ve.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($e(ve,"numericSeparator")&&typeof ve.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Me=ve.numericSeparator;if(typeof ee>"u")return"undefined";if(ee===null)return"null";if(typeof ee=="boolean")return ee?"true":"false";if(typeof ee=="string")return lt(ee,ve);if(typeof ee=="number"){if(ee===0)return 1/0/ee>0?"0":"-0";var ze=String(ee);return Me?M(ee,ze):ze}if(typeof ee=="bigint"){var Je=String(ee)+"n";return Me?M(ee,Je):Je}var Ze=typeof ve.depth>"u"?5:ve.depth;if(typeof le>"u"&&(le=0),le>=Ze&&Ze>0&&typeof ee=="object")return K(ee)?"[Array]":"[Object]";var et=se(ve,le);if(typeof fe>"u")fe=[];else if(Qe(fe,ee)>=0)return"[Circular]";function Nt(er,_r,Fe){if(_r&&(fe=L.call(fe),fe.push(_r)),Fe){var Zn={depth:ve.depth};return $e(ve,"quoteStyle")&&(Zn.quoteStyle=ve.quoteStyle),V(er,Zn,le+1,fe)}return V(er,ve,le+1,fe)}if(typeof ee=="function"&&!ae(ee)){var ct=qe(ee),pt=Y(ee,Nt);return"[Function"+(ct?": "+ct:" (anonymous)")+"]"+(pt.length>0?" { "+I.call(pt,", ")+" }":"")}if(Oe(ee)){var bt=j?$.call(String(ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):B.call(ee);return typeof ee=="object"&&!j?dt(bt):bt}if(Ge(ee)){for(var ht="<"+_.call(String(ee.nodeName)),mt=ee.attributes||[],_t=0;_t<mt.length;_t++)ht+=" "+mt[_t].name+"="+Z(te(mt[_t].value),"double",ve);return ht+=">",ee.childNodes&&ee.childNodes.length&&(ht+="..."),ht+="</"+_.call(String(ee.nodeName))+">",ht}if(K(ee)){if(ee.length===0)return"[]";var jt=Y(ee,Nt);return et&&!ne(jt)?"["+pe(jt,et)+"]":"[ "+I.call(jt,", ")+" ]"}if(be(ee)){var ar=Y(ee,Nt);return!("cause"in Error.prototype)&&"cause"in ee&&!X.call(ee,"cause")?"{ ["+String(ee)+"] "+I.call(O.call("[cause]: "+Nt(ee.cause),ar),", ")+" }":ar.length===0?"["+String(ee)+"]":"{ ["+String(ee)+"] "+I.call(ar,", ")+" }"}if(typeof ee=="object"&&Ae){if(D&&typeof ee[D]=="function"&&J)return J(ee,{depth:Ze-le});if(Ae!=="symbol"&&typeof ee.inspect=="function")return ee.inspect()}if(Ne(ee)){var dr=[];return n&&n.call(ee,function(er,_r){dr.push(Nt(_r,ee,!0)+" => "+Nt(er,ee))}),$t("Map",r.call(ee),dr,et)}if(Ve(ee)){var mr=[];return u&&u.call(ee,function(er){mr.push(Nt(er,ee))}),$t("Set",s.call(ee),mr,et)}if(je(ee))return Dt("WeakMap");if(Ce(ee))return Dt("WeakSet");if(Ke(ee))return Dt("WeakRef");if(xe(ee))return dt(Nt(Number(ee)));if(Ee(ee))return dt(Nt(W.call(ee)));if(Se(ee))return dt(m.call(ee));if(he(ee))return dt(Nt(String(ee)));if(typeof window<"u"&&ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ee===globalThis||typeof self<"u"&&ee===self)return"{ [object globalThis] }";if(!ye(ee)&&!ae(ee)){var Cr=Y(ee,Nt),Pr=q?q(ee)===Object.prototype:ee instanceof Object||ee.constructor===Object,kr=ee instanceof Object?"":"null prototype",pr=!Pr&&N&&Object(ee)===ee&&N in ee?x.call(Pe(ee),8,-1):kr?"Object":"",hn=Pr||typeof ee.constructor!="function"?"":ee.constructor.name?ee.constructor.name+" ":"",Ht=hn+(pr||kr?"["+I.call(O.call([],pr||[],kr||[]),": ")+"] ":"");return Cr.length===0?Ht+"{}":et?Ht+"{"+pe(Cr,et)+"}":Ht+"{ "+I.call(Cr,", ")+" }"}return String(ee)};function Z(V,ee,Re){var le=Re.quoteStyle||ee,fe=P[le];return fe+V+fe}function te(V){return $.call(String(V),/"/g,"&quot;")}function K(V){return Pe(V)==="[object Array]"&&(!N||!(typeof V=="object"&&N in V))}function ye(V){return Pe(V)==="[object Date]"&&(!N||!(typeof V=="object"&&N in V))}function ae(V){return Pe(V)==="[object RegExp]"&&(!N||!(typeof V=="object"&&N in V))}function be(V){return Pe(V)==="[object Error]"&&(!N||!(typeof V=="object"&&N in V))}function he(V){return Pe(V)==="[object String]"&&(!N||!(typeof V=="object"&&N in V))}function xe(V){return Pe(V)==="[object Number]"&&(!N||!(typeof V=="object"&&N in V))}function Se(V){return Pe(V)==="[object Boolean]"&&(!N||!(typeof V=="object"&&N in V))}function Oe(V){if(j)return V&&typeof V=="object"&&V instanceof Symbol;if(typeof V=="symbol")return!0;if(!V||typeof V!="object"||!B)return!1;try{return B.call(V),!0}catch{}return!1}function Ee(V){if(!V||typeof V!="object"||!W)return!1;try{return W.call(V),!0}catch{}return!1}var _e=Object.prototype.hasOwnProperty||function(V){return V in this};function $e(V,ee){return _e.call(V,ee)}function Pe(V){return S.call(V)}function qe(V){if(V.name)return V.name;var ee=C.call(b.call(V),/^function\s*([\w$]+)/);return ee?ee[1]:null}function Qe(V,ee){if(V.indexOf)return V.indexOf(ee);for(var Re=0,le=V.length;Re<le;Re++)if(V[Re]===ee)return Re;return-1}function Ne(V){if(!r||!V||typeof V!="object")return!1;try{r.call(V);try{s.call(V)}catch{return!0}return V instanceof Map}catch{}return!1}function je(V){if(!f||!V||typeof V!="object")return!1;try{f.call(V,f);try{g.call(V,g)}catch{return!0}return V instanceof WeakMap}catch{}return!1}function Ke(V){if(!y||!V||typeof V!="object")return!1;try{return y.call(V),!0}catch{}return!1}function Ve(V){if(!s||!V||typeof V!="object")return!1;try{s.call(V);try{r.call(V)}catch{return!0}return V instanceof Set}catch{}return!1}function Ce(V){if(!g||!V||typeof V!="object")return!1;try{g.call(V,g);try{f.call(V,f)}catch{return!0}return V instanceof WeakSet}catch{}return!1}function Ge(V){return!V||typeof V!="object"?!1:typeof HTMLElement<"u"&&V instanceof HTMLElement?!0:typeof V.nodeName=="string"&&typeof V.getAttribute=="function"}function lt(V,ee){if(V.length>ee.maxStringLength){var Re=V.length-ee.maxStringLength,le="... "+Re+" more character"+(Re>1?"s":"");return lt(x.call(V,0,ee.maxStringLength),ee)+le}var fe=G[ee.quoteStyle||"single"];fe.lastIndex=0;var ve=$.call($.call(V,fe,"\\$1"),/[\x00-\x1f]/g,At);return Z(ve,"single",ee)}function At(V){var ee=V.charCodeAt(0),Re={8:"b",9:"t",10:"n",12:"f",13:"r"}[ee];return Re?"\\"+Re:"\\x"+(ee<16?"0":"")+T.call(ee.toString(16))}function dt(V){return"Object("+V+")"}function Dt(V){return V+" { ? }"}function $t(V,ee,Re,le){var fe=le?pe(Re,le):I.call(Re,", ");return V+" ("+ee+") {"+fe+"}"}function ne(V){for(var ee=0;ee<V.length;ee++)if(Qe(V[ee],`
525
+ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.name}"`);Lu(c.constructor,kd,Md,y_(u(c),f))}})(e,t)(r,n,i)}catch(o){Lj(r,n,i,o)}}}function Kv(e,t){return r=>{const n=t(r);return i=>(n(i),e(i))}}function tt(e){return Fj(Dj(ec.singleInjection,e),Pj)}(function(e){e[e.method=0]="method",e[e.parameter=1]="parameter",e[e.property=2]="property"})(wa||(wa={}));const b_="@inversifyjs/core/classIsInjectableFlagReflectKey",Nj=[Array,BigInt,Boolean,Function,Number,Object,String];function jj(e){const t=pb(e,"design:paramtypes");t!==void 0&&Lu(e,kd,Md,(function(r){return n=>(r.forEach(((i,o)=>{var s;n.constructorArguments[o]!==void 0||(s=i,Nj.includes(s))||(n.constructorArguments[o]=(function(u){return{isFromTypescriptParamType:!0,kind:ec.singleInjection,name:void 0,optional:!1,tags:new Map,value:u}})(i))})),n)})(t))}function Et(e){return t=>{(function(r){if(pb(r,b_)!==void 0)throw new Aa(vo.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${r.name}"`);$j(r,b_,!0)})(t),jj(t)}}var S_;(function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection"})(S_||(S_={}));var w_;(function(e){e[e.singleMandatory=0]="singleMandatory",e[e.singleOptional=1]="singleOptional",e[e.multipleMandatory=2]="multipleMandatory",e[e.multipleOptional=3]="multipleOptional",e[e.length=4]="length"})(w_||(w_={}));let zj=class{constructor(t,r,n,i,o){this.deviceModel=t,this.serviceUuid=r,this.writeUuid=n,this.writeCmdUuid=i,this.notifyUuid=o}},Us=class{id;productName;usbProductId;bootloaderUsbProductId;usbOnly;memorySize;getBlockSize;masks;bluetoothSpec;constructor(t){this.id=t.id,this.productName=t.productName,this.usbProductId=t.usbProductId,this.bootloaderUsbProductId=t.bootloaderUsbProductId,this.usbOnly=t.usbOnly,this.memorySize=t.memorySize,this.getBlockSize=t.getBlockSize,this.masks=t.masks,this.bluetoothSpec=t.bluetoothSpec}};var Bj=Object.defineProperty,Vj=(e,t,r)=>t in e?Bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hj=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Uj=(e,t,r)=>Vj(e,t+"",r);let rs=class{getAllDeviceModels(){return Object.values(rs.deviceModelByIds)}getDeviceModel(t){return rs.deviceModelByIds[t.id]}filterDeviceModels(t){return this.getAllDeviceModels().filter(r=>Object.entries(t).every(([n,i])=>r[n]===i))}getBluetoothServicesInfos(){return Object.values(rs.deviceModelByIds).reduce((t,r)=>{const{bluetoothSpec:n}=r;return n?{...t,...n.reduce((i,o)=>({...i,[o.serviceUuid]:new zj(r,o.serviceUuid,o.writeUuid,o.writeCmdUuid,o.notifyUuid)}),{})}:t},{})}getBluetoothServices(){return Object.values(rs.deviceModelByIds).map(t=>(t.bluetoothSpec||[]).map(r=>r.serviceUuid)).flat().filter(t=>!!t)}};Uj(rs,"deviceModelByIds",{[Yt.NANO_S]:new Us({id:Yt.NANO_S,productName:"Ledger Nano S",usbProductId:16,bootloaderUsbProductId:1,usbOnly:!0,memorySize:320*1024,getBlockSize:e=>i_.lt(i_.coerce(e.firmwareVersion)??"","2.0.0")?4*1024:2*1024,masks:[823132160]}),[Yt.NANO_SP]:new Us({id:Yt.NANO_SP,productName:"Ledger Nano S Plus",usbProductId:80,bootloaderUsbProductId:5,usbOnly:!0,memorySize:1533*1024,getBlockSize:()=>32,masks:[856686592]}),[Yt.NANO_X]:new Us({id:Yt.NANO_X,productName:"Ledger Nano X",usbProductId:64,bootloaderUsbProductId:4,usbOnly:!1,memorySize:2*1024*1024,getBlockSize:()=>4*1024,masks:[855638016],bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]}),[Yt.STAX]:new Us({id:Yt.STAX,productName:"Ledger Stax",usbProductId:96,bootloaderUsbProductId:6,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[857735168],bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}),[Yt.FLEX]:new Us({id:Yt.FLEX,productName:"Ledger Flex",usbProductId:112,bootloaderUsbProductId:7,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[858783744],bluetoothSpec:[{serviceUuid:"13d63400-2c97-3004-0000-4c6564676572",notifyUuid:"13d63400-2c97-3004-0001-4c6564676572",writeUuid:"13d63400-2c97-3004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-3004-0003-4c6564676572"}]}),[Yt.APEX]:new Us({id:Yt.APEX,productName:"Ledger Nano Gen5",usbProductId:128,bootloaderUsbProductId:8,usbOnly:!1,memorySize:1533*1024,getBlockSize:()=>32,masks:[859832320],bluetoothSpec:[{serviceUuid:"13d63400-2c97-8004-0000-4c6564676572",notifyUuid:"13d63400-2c97-8004-0001-4c6564676572",writeUuid:"13d63400-2c97-8004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-8004-0003-4c6564676572"},{serviceUuid:"13d63400-2c97-9004-0000-4c6564676572",notifyUuid:"13d63400-2c97-9004-0001-4c6564676572",writeUuid:"13d63400-2c97-9004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-9004-0003-4c6564676572"}]})}),rs=Hj([Et()],rs);let Wj=class{statusCode;data;constructor({statusCode:t,data:r}){this.statusCode=t,this.data=r}};const qj=5,Ja=1,xy=2,ll=2,Ey=2,Fr=[];for(let e=0;e<256;++e)Fr.push((e+256).toString(16).slice(1));function Gj(e,t=0){return(Fr[e[t+0]]+Fr[e[t+1]]+Fr[e[t+2]]+Fr[e[t+3]]+"-"+Fr[e[t+4]]+Fr[e[t+5]]+"-"+Fr[e[t+6]]+Fr[e[t+7]]+"-"+Fr[e[t+8]]+Fr[e[t+9]]+"-"+Fr[e[t+10]]+Fr[e[t+11]]+Fr[e[t+12]]+Fr[e[t+13]]+Fr[e[t+14]]+Fr[e[t+15]]).toLowerCase()}let Yv;const Xj=new Uint8Array(16);function Kj(){if(!Yv){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Yv=crypto.getRandomValues.bind(crypto)}return Yv(Xj)}const Yj=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),x_={randomUUID:Yj};function $p(e,t,r){if(x_.randomUUID&&!e)return x_.randomUUID();e=e||{};const n=e.random||(e.rng||Kj)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Gj(n)}const as={getLastBytesFrom(e,t){return e.slice(-t)},getFirstBytesFrom(e,t){return e.slice(0,t)},bytesToNumber(e){return e.reduce((t,r,n)=>t+r*Math.pow(256,e.length-1-n),0)},numberToByteArray(e,t){return new Uint8Array(t).map((r,n)=>e>>8*(t-1-n)&255)}},E_=2,Qv=800;let C_=class{_tag="FramerOverflowError";originalError;constructor(){this.originalError=new Error("Frame header length is greater than frame size")}},Qj=class{_tag="FramerApduError";originalError;constructor(){this.originalError=new Error("Frame offset is greater than apdu length")}},__=class{_tag="ReceiverApduError";originalError;constructor(t){this.originalError=new Error(t??"Unable to parse apdu")}},R_=class{_tag="DeviceSessionNotFound";originalError;constructor(t){this.originalError=t??new Error("Device session not found")}},PI=class{_header;_data;constructor({header:t,data:r}){this._header=t,this._data=r}toString(){return JSON.stringify({header:this._header.toString(),data:Ju(this._data)},null,2)}getRawData(){const t=this._header.getRawData(),r=new Uint8Array(t.length+this._data.length);return r.set(t,0),r.set(this._data,t.length),r}getHeader(){return this._header}getData(){return this._data}},kI=class{_uuid;_channel;_headTag;_index;_length;_dataLength;constructor({uuid:t,dataSize:r,index:n,headTag:i,length:o,channel:s}){this._uuid=t,this._dataLength=r,this._index=n,this._headTag=i,this._length=o,this._channel=s}getDataLength(){return this._dataLength.map(t=>as.bytesToNumber(t))}setDataSize(t){return this._dataLength=t,this}getLength(){return this._length}toString(){return JSON.stringify({uuid:this._uuid.toString(),dataSize:this._dataLength.extract()?.toString(),index:this._index.toString(),headTag:this._headTag.toString(),length:this._length.toString(),channel:this._channel.extract()?.toString()})}getRawData(){return new Uint8Array([...this._channel.caseOf({Just:t=>[...t],Nothing:()=>[]}),...this._headTag,...this._index,...this._dataLength.caseOf({Just:t=>[...t],Nothing:()=>[]})])}};const Er={LoggerPublisherServiceFactory:Symbol.for("LoggerPublisherServiceFactory")};var Jj=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Zj=(e,t)=>(r,n)=>t(r,n,e);let O_=class{_channel;_logger;_pendingFrames;constructor({channel:t=Cn.zero()},r){this._channel=t,this._logger=r("ApduReceiverService"),this._pendingFrames=[]}handleFrame(t){return this.getFrameFromBytes(t).map(r=>{if(this._pendingFrames.push(r),!this._pendingFrames[0])return Gt;const n=this._pendingFrames[0].getHeader().getDataLength();return this.getCompleteFrame(n)})}getCompleteFrame(t){return t.chain(r=>{if(!this.isComplete(r))return this._logger.debug("frame is not complete, waiting for more"),Gt;const n=as.getFirstBytesFrom(this.concatFrames(this._pendingFrames),r),i=as.getFirstBytesFrom(n,n.length-E_),o=as.getLastBytesFrom(n,E_);return this._pendingFrames=[],ln(new Wj({data:i,statusCode:o}))})}getFrameFromBytes(t){const r=this._channel.caseOf({Just:()=>xy,Nothing:()=>0}),n=t.slice(r,r+Ja),i=t.slice(r+Ja,r+Ja+ll),o=i.reduce((h,y)=>h+y,0)===0;if(!o&&this._pendingFrames.length===0)return Qr(new __);const s=r+Ja+ll,u=o?Ey:0;if(t.length<r+Ja+ll+u)return Qr(new __("Unable to parse header from apdu"));const c=o?ln(t.slice(s,s+u)):Gt,f=s+u,d=t.slice(f),g=new PI({header:new kI({uuid:$p(),channel:this._channel,dataSize:c,headTag:n,index:i,length:r+Ja+ll+u}),data:d});return Jr(g)}isComplete(t){return this._pendingFrames.reduce((r,n)=>r+n.getData().length,0)>=t}concatFrames(t){return t.reduce((r,n)=>Uint8Array.from([...r,...n.getData()]),new Uint8Array(0))}};O_=Jj([Et(),Zj(1,tt(Er.LoggerPublisherServiceFactory))],O_);var ez=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},tz=(e,t)=>(r,n)=>t(r,n,e);let T_=class{_frameSize;_channel;_padding;_logger;constructor({frameSize:t,channel:r=Cn.zero(),padding:n=!1},i){this._frameSize=t,this._channel=r,this._padding=n,this._logger=i("DefaultApduSenderService")}getFrames(t){const r=[];let n=0,i=this.getFrameAtIndex(t,n);for(;i.isRight();)r.push(i.extract()),n+=1,i=this.getFrameAtIndex(t,n).mapLeft(o=>(o instanceof C_||this._logger.error("Error while parsing frame",{data:{error:o}}),o));return r}getFrameAtIndex(t,r){const n=this.getFrameHeaderFrom(r,t.length),i=r===0?0:r*this._frameSize-this.getHeaderSizeSumFrom(r);if(i>=t.length)return Qr(new C_);if(n.getLength()>this._frameSize)return Qr(new Qj);const o=this._frameSize-n.getLength(),s=t.slice(i,i+this._frameSize-n.getLength()),u=this._padding?new Uint8Array(o).fill(0):new Uint8Array(s.length<o?s.length:o);u.set(s,0);const c=new PI({header:n,data:u});return Jr(c)}getFrameHeaderFrom(t,r){const n=new kI({uuid:$p(),channel:this._channel.map(i=>as.getLastBytesFrom(i,xy)),headTag:new Uint8Array([qj]),index:as.numberToByteArray(t,ll),length:this.getFrameHeaderSizeFromIndex(t),dataSize:Cn.zero()});return t===0&&n.setDataSize(Cn.of(as.numberToByteArray(r,Ey))),n}getHeaderSizeSumFrom(t){let r=this.getFrameHeaderSizeFromIndex(0),n=1;for(;n<t;)r+=this.getFrameHeaderSizeFromIndex(n),n+=1;return r}getFrameHeaderSizeFromIndex(t){return this._channel.caseOf({Just:()=>xy,Nothing:()=>0})+ll+Ja+(t===0?Ey:0)}};T_=ez([Et(),tz(1,tt(Er.LoggerPublisherServiceFactory))],T_);const Cy={LocalConfigDataSource:Symbol.for("LocalConfigDataSource"),RemoteConfigDataSource:Symbol.for("RemoteConfigDataSource"),ConfigService:Symbol.for("ConfigService")},fn={ApduSenderServiceFactory:Symbol.for("ApduSenderServiceFactory"),ApduReceiverServiceFactory:Symbol.for("ApduReceiverServiceFactory"),DeviceSessionService:Symbol.for("DeviceSessionService")},$_={ConnectUseCase:Symbol.for("ConnectUseCase"),DisconnectUseCase:Symbol.for("DisconnectUseCase")},Ap={ManagerApiService:Symbol.for("ManagerApiService"),ManagerApiDataSource:Symbol.for("ManagerApiDataSource"),DmkConfig:Symbol.for("ManagerApiDmkConfig")},Ia={DmkConfig:Symbol.for("TransportDmkConfig"),TransportService:Symbol.for("TransportService"),TransportsInput:Symbol.for("TransportsInput")};var rz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},A_=(e,t)=>(r,n)=>t(r,n,e);let I_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("SendCommandUseCase")}async execute({sessionId:t,command:r,abortTimeout:n}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:async i=>await i.sendCommand(r,n),Left:i=>{throw this._logger.error("Error getting session",{data:{error:i}}),i}})}};I_=rz([Et(),A_(0,tt(fn.DeviceSessionService)),A_(1,tt(Er.LoggerPublisherServiceFactory))],I_);var nz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let P_=class{execute=vi.fn(()=>"stub")};P_=nz([Et()],P_);var iz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},k_=(e,t)=>(r,n)=>t(r,n,e);let M_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("ExecuteDeviceActionUseCase")}execute({sessionId:t,deviceAction:r}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:n=>n.executeDeviceAction(r),Left:n=>{throw this._logger.error("Error getting session",{data:{error:n}}),n}})}};M_=iz([Et(),k_(0,tt(fn.DeviceSessionService)),k_(1,tt(Er.LoggerPublisherServiceFactory))],M_);function oz(e){return typeof e=="object"&&e!==null&&"version"in e&&"name"in e&&typeof e.version=="string"&&typeof e.name=="string"}let D_=class{constructor(t){this.err=t,this.originalError=t}_tag="ApiCallError";originalError},az=class{constructor(t){this.err=t,this.originalError=t}_tag="ParseResponseError";originalError},MI=class{constructor(t){this.err=t,this.originalError=t}_tag="JSONParseError";originalError},sz=class{constructor(t){this.err=t,this.originalError=t}_tag="ReadFileError";originalError};const lz="@ledgerhq/device-management-kit",uz="0.0.0-develop-20260506002607",L_={name:lz,version:uz};var cz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};const fz={name:L_.name,version:L_.version},dz=()=>JSON.stringify(fz);let F_=class{getConfig(){return Wn.encase(()=>dz()).mapLeft(t=>new sz(t)).chain(t=>Wn.encase(()=>{const r=JSON.parse(t);if(oz(r))return r;throw new Error("Invalid config file")}).mapLeft(r=>new MI(r)))}};F_=cz([Et()],F_);var pz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let N_=class{getConfig(){return Wn.of({name:"DeviceSDK",version:"0.0.0-stub.1"})}};N_=pz([Et()],N_);var hz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let j_=class{async getConfig(){const t=await this._callApi();if(t.isLeft())return Qr(new D_(t.extract()));if(!t.extract().ok)return Qr(new D_(new Error("response not ok")));const r=await t.extract().json();return r.isLeft()?Qr(new MI):r.chain(n=>this._parseResponse(n)).map(n=>n)}_parseResponse(t){const{name:r,version:n}=t;return!r||!n?Qr(new az):Wn.of({name:r,version:n})}_callApi(){return new Promise(t=>{t(Wn.of({ok:!0,json:async()=>new Promise(r=>{r(Wn.of({name:"DeviceSDK",version:"0.0.0-fake.1",yolo:"yolo"}))})}))})}};j_=hz([Et()],j_);var gz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let z_=class{async getConfig(){return new Promise(t=>t(Wn.of({name:"DeviceSDK",version:"0.0.0-fake.2"})))}};z_=gz([Et()],z_);var vz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Jv=(e,t)=>(r,n)=>t(r,n,e);let B_=class{_local;_remote;_logger;constructor(t,r,n){this._local=t,this._remote=r,this._logger=n("config")}async getDmkConfig(){const t=this._local.getConfig().ifLeft(r=>{this._logger.error("Local config not available",{data:{error:r}})});if(t.isRight()){const r=t.extract();return this._logger.info("Local config available",{data:{config:r}}),r}return this._remote.getConfig().then(r=>r.mapLeft(n=>(this._logger.error("Local config available",{data:{error:n}}),{name:"DeadDmk",version:"0.0.0-dead.1"})).extract())}};B_=vz([Et(),Jv(0,tt(Cy.LocalConfigDataSource)),Jv(1,tt(Cy.RemoteConfigDataSource)),Jv(2,tt(Er.LoggerPublisherServiceFactory))],B_);var mz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},yz=(e,t)=>(r,n)=>t(r,n,e);let V_=class{_configService;constructor(t){this._configService=t}async getDmkVersion(){return(await this._configService.getDmkConfig()).version}};V_=mz([Et(),yz(0,tt(Cy.ConfigService))],V_);const bz={DeviceModelDataSource:Symbol.for("DeviceModelDataSource")};var Sz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},H_=(e,t)=>(r,n)=>t(r,n,e);let U_=class{constructor(t,r){this._sessionService=t,this._logger=r("DisableDeviceSessionRefresherUseCase")}_logger;execute({sessionId:t,blockerId:r}){return this._sessionService.getDeviceSessionById(t).caseOf({Left:n=>{throw this._logger.error("Error getting device session",{data:{error:n}}),n},Right:n=>n.disableRefresher(r)})}};U_=Sz([Et(),H_(0,tt(fn.DeviceSessionService)),H_(1,tt(Er.LoggerPublisherServiceFactory))],U_);var wz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},xz=(e,t)=>(r,n)=>t(r,n,e);let W_=class{_sessions;_sessionsSubject;_logger;constructor(t){this._sessions=[],this._sessionsSubject=new dI,this._logger=t("DeviceSessionService")}get sessionsObs(){return this._sessionsSubject.asObservable()}addDeviceSession(t){return this._sessions.find(r=>r.id===t.id)?(this._logger.warn("DeviceSession already exists",{data:{deviceSession:t}}),this):(this._sessions.push(t),this._sessionsSubject.next(t),this._logger.info("DeviceSession added",{data:{sessionId:t.id}}),this)}removeDeviceSession(t){const r=this._sessions.find(n=>n.id===t);return r?(r.close(),this._sessions=this._sessions.filter(n=>n.id!==t),this._logger.info("DeviceSession removed",{data:{sessionId:t}}),this):(this._logger.warn("DeviceSession not found",{data:{sessionId:t}}),this)}getDeviceSessionById(t){return Cn.fromNullable(this._sessions.find(r=>r.id===t)).toEither(new R_)}getDeviceSessionsByDeviceId(t){return Cn.fromPredicate(({length:r})=>r>0,this._sessions.filter(r=>r.connectedDevice.id===t)).toEither(new R_)}getDeviceSessions(){return this._sessions}};W_=wz([Et(),xz(0,tt(Er.LoggerPublisherServiceFactory))],W_);var Ez=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},q_=(e,t)=>(r,n)=>t(r,n,e);let G_=class{_sessionService;_transportService;constructor(t,r){this._sessionService=t,this._transportService=r}execute(){const t=this._sessionService.getDeviceSessions();for(const r of t)this._transportService.closeConnection(r.connectedDevice),this._sessionService.removeDeviceSession(r.id)}};G_=Ez([Et(),q_(0,tt(fn.DeviceSessionService)),q_(1,tt(Ia.TransportService))],G_);var Cz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},X_=(e,t)=>(r,n)=>t(r,n,e);let K_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("GetDeviceSessionStateUseCase")}execute({sessionId:t}){return this._sessionService.getDeviceSessionById(t).caseOf({Left:r=>{throw this._logger.error("Error getting session device",{data:{error:r}}),r},Right:r=>r.state})}};K_=Cz([Et(),X_(0,tt(fn.DeviceSessionService)),X_(1,tt(Er.LoggerPublisherServiceFactory))],K_);var _z=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Y_=(e,t)=>(r,n)=>t(r,n,e);let Q_=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("UnsafeBypassIntentQueueUseCase")}execute({sessionId:t,bypass:r}){this._sessionService.getDeviceSessionById(t).caseOf({Left:n=>{throw this._logger.error("Error getting session",{data:{error:n}}),n},Right:n=>{this._logger.warn(`UNSAFE: ${r?"Enabling":"Disabling"} intent queue bypass for session ${t}`),n._unsafeBypassIntentQueue(r)}})}};Q_=_z([Et(),Y_(0,tt(fn.DeviceSessionService)),Y_(1,tt(Er.LoggerPublisherServiceFactory))],Q_);function Rz(e){return`[will send APDU] ~...> ${Ju(e,!1)}`}function Oz(e){return`[exchange] <= ${Ju(e.data,!1)}${Ju(e.statusCode,!1)}`}const _y=1e3,Zv=1e3,Tz={isRefresherDisabled:!1,pollingInterval:1e3};var ur=(e=>(e.NEW_STATE="NEW_STATE",e.REFRESH_NEEDED="REFRESH_NEEDED",e.COMMAND_SUCCEEDED="COMMAND_SUCCEEDED",e.DEVICE_STATE_UPDATE_BUSY="DEVICE_STATE_UPDATE_BUSY",e.DEVICE_STATE_UPDATE_LOCKED="DEVICE_STATE_UPDATE_LOCKED",e.DEVICE_STATE_UPDATE_CONNECTED="DEVICE_STATE_UPDATE_CONNECTED",e.DEVICE_STATE_UPDATE_UNKNOWN="DEVICE_STATE_UPDATE_UNKNOWN",e))(ur||{});let $z=class{_eventEmitter=new Dl;listen(){return this._eventEmitter.asObservable()}dispatch(t){this._eventEmitter.next(t)}},Az=class{constructor(t,r){this.loggerModuleFactory=t,this.sessionEventDispatcher=r,this._logger=this.loggerModuleFactory("IntentQueueService")}_logger;_queue=[];_isProcessing=!1;_currentSubscription=null;enqueue(t){this._logger.debug("Enqueueing intent",{data:{type:t.type}});const r=new Dl,n={intent:t,subject:r,isCancelled:!1};this._queue.push(n);const i=()=>{this._logger.debug("Cancelling intent",{data:{type:t.type}}),n.isCancelled=!0,this._queue[0]===n&&this._currentSubscription?(this._currentSubscription.unsubscribe(),this._currentSubscription=null,r.complete(),this._queue.shift(),this._isProcessing=!1,this._processQueue()):(!this._isProcessing||this._queue[0]!==n)&&r.complete()};return this._isProcessing||this._processQueue(),{observable:r.asObservable().pipe(hj(()=>{this._logger.debug("Intent observable finalized",{data:{type:t.type}})})),cancel:i}}_processQueue(){if(this._isProcessing)return;if(this._queue.length===0){this.sessionEventDispatcher.dispatch({eventName:ur.NEW_STATE});return}this.sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_BUSY}),this._isProcessing=!0;const t=this._queue[0];if(t.isCancelled){this._logger.debug("Skipping cancelled intent",{data:{type:t.intent.type}}),t.subject.complete(),this._queue.shift(),this._isProcessing=!1,this._processQueue();return}this._logger.debug("Processing intent",{data:{type:t.intent.type}}),this._currentSubscription=t.intent.execute().subscribe({next:r=>{t.isCancelled||t.subject.next(r)},error:r=>{t.isCancelled||t.subject.error(r),this._onIntentComplete()},complete:()=>{t.isCancelled||t.subject.complete(),this._onIntentComplete()}})}_onIntentComplete(){this._logger.debug("Intent completed"),this._currentSubscription=null,this._queue.shift(),this._isProcessing=!1,this._processQueue()}},Iz=class{constructor(t,r){this._refresher=r,this._logger=t("refresher-service")}_refresherBlockers=new Set;_logger;disableRefresher(t){const r=`${t}-${$p()}`;this.addRefresherBlocker(r),this._logger.debug("Refresher disabled",{data:{blockerId:r,blockers:Array.from(this._refresherBlockers)}});let n=!1;return()=>{n||(n=!0,this.removeRefresherBlocker(r),this._logger.debug("Refresher re-enabled",{data:{blockerId:r,blockers:Array.from(this._refresherBlockers)}}))}}addRefresherBlocker(t){const r=this._refresherBlockers.size;this._refresherBlockers.add(t),r===0&&this._refresher.stop()}removeRefresherBlocker(t){const r=this._refresherBlockers.size;this._refresherBlockers.delete(t),r>0&&this._refresherBlockers.size===0&&this._refresher.start()}},Pz=class{constructor(t,r,n,i){this.connectedDevice=r,this._sessionEventDispatcher=n,this._sendCommandFunction=i,this._logger=t("device-pinger"),this._subscription=this._sessionEventDispatcher.listen().subscribe(async o=>await this.mapEventAction(o))}_sendCommandFunction;_subscription;_logger;async ping(){try{return await this.mapDevicePingAction(this.connectedDevice.deviceModel.id)}catch(t){return this._logger.error("Error while pinging device",{data:{error:t}}),null}}mapEventAction=async t=>{switch(t.eventName){case ur.REFRESH_NEEDED:return await this.ping();default:return null}};async mapDevicePingAction(t){switch(t){case Yt.NANO_S:{const r=async()=>{const o=await this._sendCommandFunction(new dC,Qv);return this._sendCommandFunction(new S4,Qv),o},n=new Promise(o=>{setTimeout(()=>o(null),_y*2+100)}),i=await Promise.race([r(),n]);return i?this._sessionEventDispatcher.dispatch({eventName:ur.COMMAND_SUCCEEDED,eventData:i}):this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_LOCKED}),i}default:{const r=await this._sendCommandFunction(new dC,Qv);return this._sessionEventDispatcher.dispatch({eventName:ur.COMMAND_SUCCEEDED,eventData:r}),r}}}unsubscribe(){this._subscription.unsubscribe()}},kz=class{constructor(t,r,n,i){this._sessionEventDispatcher=n,this._refresherOptions=r,this._logger=t("device-session-refresher"),this._connectedDeviceID=i.deviceModel.id}_refresherSubscription;_refresherOptions;_logger;_connectedDeviceID;startRefresher(){if(this._refresherOptions.isRefresherDisabled||this._refresherSubscription)return;const t=this.getValidPollingInterval(this._refresherOptions,this._logger)*2,r=this._sessionEventDispatcher.listen().pipe(p_(n=>n.eventName===ur.DEVICE_STATE_UPDATE_BUSY||n.eventName===ur.NEW_STATE),$a(n=>n.eventName===ur.DEVICE_STATE_UPDATE_BUSY),vj(!1),dj());this._refresherSubscription=uj(0,t).pipe(mj(r),h_(([n,i])=>{i&&this._logger.debug("Refresh skipped: device is busy")}),p_(([n,i])=>!i),h_(()=>this._sessionEventDispatcher.dispatch({eventName:ur.REFRESH_NEEDED}))).subscribe(),this._logger.info("Refresher started.")}stopRefresher(){this._refresherSubscription&&(this._refresherSubscription.unsubscribe(),this._refresherSubscription=void 0,this._logger.info("Refresher stopped."))}restartRefresher(){this.stopRefresher(),this.startRefresher(),this._logger.info("Refresher restarted.")}getValidPollingInterval=(t,r)=>{const{pollingInterval:n}=t;switch(this._connectedDeviceID){case Yt.NANO_S:{const i=_y*2;return n!==void 0&&n<i?(r.warn(`Polling interval of ${n} is too low, setting to minimum as ${i}`),i):n??i}default:return n!==void 0&&n<Zv?(r.warn(`Polling interval of ${n} is too low, setting to minimum as ${Zv}`),Zv):n??_y}}},Mz=class{constructor(t,r,n,i,o){this._sessionEventDispatcher=r,this._connectedDevice=n,this._deviceState=i,this.setDeviceSessionState=o,this._subscription=this._sessionEventDispatcher.listen().subscribe(s=>this.mapEventAction(s)),this._logger=t("device-session-state-handler")}_subscription;_logger;_pendingDeviceStatus=uo.BUSY;_updateDeviceState(t){const r=this._parseDeviceStatus(t);if(r){const{sessionStateType:n,deviceStatus:i,currentApp:o}=r,s=this._deviceState.getValue();s.sessionStateType===Zu.Connected?this.setDeviceSessionState({sessionStateType:n,deviceStatus:i,deviceModelId:this._connectedDevice.deviceModel.id,currentApp:o,installedApps:[],isSecureConnectionAllowed:!1}):this.setDeviceSessionState({...s,sessionStateType:n,deviceStatus:i,deviceModelId:this._connectedDevice.deviceModel.id,currentApp:o})}}mapEventAction=t=>{const{eventName:r}=t;switch(r){case ur.COMMAND_SUCCEEDED:return this._updateDeviceState(t.eventData);case ur.DEVICE_STATE_UPDATE_BUSY:return this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:uo.BUSY});case ur.DEVICE_STATE_UPDATE_LOCKED:this._pendingDeviceStatus=uo.LOCKED;return;case ur.DEVICE_STATE_UPDATE_CONNECTED:this._pendingDeviceStatus=uo.CONNECTED;return;case ur.NEW_STATE:{const n=this._pendingDeviceStatus;return this._pendingDeviceStatus=uo.BUSY,this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:n})}case ur.DEVICE_STATE_UPDATE_UNKNOWN:return this.setDeviceSessionState({...this._deviceState.getValue(),deviceStatus:uo.BUSY});case ur.REFRESH_NEEDED:return;default:{const n=r;throw new Error(`Unhandled context type ${n}`)}}};_parseDeviceStatus(t){return B3(t)?{sessionStateType:Zu.ReadyWithoutSecureChannel,deviceStatus:uo.CONNECTED,currentApp:{name:t.data.name,version:t.data.version}}:(this._logger.debug("Error while parsing APDU response",{data:{parsedResponse:t}}),null)}unsubscribe(){this._subscription.unsubscribe()}},Dz=class{_id;_connectedDevice;_deviceState;_managerApiService;_secureChannelService;_logger;_loggerModuleFactory;_refresherOptions;_pinger;_deviceSessionRefresher;_refresherService;_intentQueueService;_sessionEventDispatcher=new $z;_bypassIntentQueue=!1;constructor({connectedDevice:t,id:r=$p()},n,i,o,s,u=c=>new Az(n,c)){this._id=r,this._connectedDevice=t,this._loggerModuleFactory=n,this._logger=n("device-session"),this._managerApiService=i,this._intentQueueService=u(this._sessionEventDispatcher),this._secureChannelService=o,this._refresherOptions={...Tz,...s},this._deviceState=new F4({sessionStateType:Zu.Connected,deviceStatus:uo.CONNECTED,deviceModelId:this._connectedDevice.deviceModel.id}),this._pinger=new Pz(n,t,this._sessionEventDispatcher,(c,f)=>this.sendCommand(c,f)),this._deviceSessionRefresher=new kz(n,this._refresherOptions,this._sessionEventDispatcher,this._connectedDevice),new Mz(n,this._sessionEventDispatcher,this._connectedDevice,this._deviceState,c=>this.setDeviceSessionState(c)),this._refresherService=new Iz(n,{start:()=>this._deviceSessionRefresher.restartRefresher(),stop:()=>this._deviceSessionRefresher.stopRefresher()})}async initialiseSession(){try{this._refresherOptions.isRefresherDisabled?await this._pinger.ping():this._deviceSessionRefresher.startRefresher()}catch(t){throw this._logger.error("Error while initialising session",{data:{error:t}}),t}}get id(){return this._id}get connectedDevice(){return this._connectedDevice}get state(){return this._deviceState.asObservable()}getDeviceSessionState(){return this._deviceState.getValue()}setDeviceSessionState(t){this._deviceState.next(t)}sendApdu(t,r={isPolling:!1,triggersDisconnection:!1,abortTimeout:void 0}){return this._bypassIntentQueue?this._unsafeInternalSendApdu(t,r):this._internalSendApdu(t,r)}_internalSendApdu(t,r){const n=r.abortTimeout,i=Date.now(),{observable:o,cancel:s}=this._intentQueueService.enqueue({type:"send-apdu",execute:()=>wl((async()=>{const c=Date.now()-i;return await this._unsafeInternalSendApdu(t,{isPolling:r.isPolling,triggersDisconnection:r.triggersDisconnection,abortTimeout:n?n-c:void 0})})())}),u=n?o.pipe(f_({each:n,with:()=>{throw s(),new yj}})):o;return c_(u)}async _unsafeInternalSendApdu(t,r={isPolling:!1,triggersDisconnection:!1,abortTimeout:void 0}){return this._logger.debug(Rz(t)),(await this._connectedDevice.sendApdu(t,r.triggersDisconnection,r.abortTimeout)).ifRight(n=>{this._logger.debug(Oz(n)),Y1.isLockedDeviceResponse(n)?this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_LOCKED}):this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_CONNECTED})}).ifLeft(()=>{this._sessionEventDispatcher.dispatch({eventName:ur.DEVICE_STATE_UPDATE_UNKNOWN})})}sendCommand(t,r){return this._logger.debug(`[sendCommand] ${t.name}`),this._bypassIntentQueue?this._unsafeInternalSendCommand(t,r):this._internalSendCommand(t,r)}_internalSendCommand(t,r){const n=Date.now(),{observable:i,cancel:o}=this._intentQueueService.enqueue({type:"send-command",execute:()=>wl((async()=>{const u=Date.now()-n;return await this._unsafeInternalSendCommand(t,r?r-u:void 0)})())}),s=r?i.pipe(f_({each:r,with:()=>{throw o(),new bj}})):i;return c_(s)}async _unsafeInternalSendCommand(t,r){const n=t.getApdu();return(await this._unsafeInternalSendApdu(n.getRawApdu(),{isPolling:!1,triggersDisconnection:t.triggersDisconnection??!1,abortTimeout:r})).caseOf({Left:i=>{throw this._logger.error("[sendCommand] error",{data:{err:i}}),i},Right:i=>{const o=t.parseResponse(i,this._connectedDevice.deviceModel.id);return this._logger.debug("[sendCommand] result",{data:{result:o}}),o}})}executeDeviceAction(t){return this._bypassIntentQueue?this._unsafeInternalExecuteDeviceAction(t):this._internalExecuteDeviceAction(t)}_internalExecuteDeviceAction(t){let r;const{observable:n,cancel:i}=this._intentQueueService.enqueue({type:"device-action",execute:()=>{const{observable:o,cancel:s}=this._unsafeInternalExecuteDeviceAction(t);return r=s,o}});return{observable:n,cancel:()=>{r?.(),i()}}}_unsafeInternalExecuteDeviceAction(t){const{observable:r,cancel:n}=t._execute({sendApdu:async i=>this._unsafeInternalSendApdu(i),sendCommand:async i=>this._unsafeInternalSendCommand(i),getDeviceModel:()=>this._connectedDevice.deviceModel,getDeviceSessionState:()=>this._deviceState.getValue(),getDeviceSessionStateObservable:()=>this.state,setDeviceSessionState:i=>(this.setDeviceSessionState(i),this._deviceState.getValue()),getManagerApiService:()=>this._managerApiService,getSecureChannelService:()=>this._secureChannelService,loggerFactory:this._loggerModuleFactory});return{observable:r,cancel:n}}close(){this._updateDeviceStatus(uo.NOT_CONNECTED),this._deviceState.complete(),this._deviceSessionRefresher.stopRefresher(),this._pinger.unsubscribe()}disableRefresher(t){return this._refresherService.disableRefresher(t)}_unsafeBypassIntentQueue(t){this._bypassIntentQueue=t}_updateDeviceStatus(t){const r=this._deviceState.getValue();this._deviceState.next({...r,deviceStatus:t})}};const hb={SecureChannelService:Symbol.for("SecureChannelService"),SecureChannelDataSource:Symbol.for("SecureChannelDataSource"),DmkConfig:Symbol.for("SecureChannelDmkConfig")};var Lz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},mu=(e,t)=>(r,n)=>t(r,n,e);let J_=class{_transportService;_sessionService;_loggerFactory;_managerApi;_secureChannel;_logger;constructor(t,r,n,i,o){this._sessionService=r,this._transportService=t,this._loggerFactory=n,this._logger=n("ConnectUseCase"),this._managerApi=i,this._secureChannel=o}handleDeviceDisconnect(t){this._sessionService.getDeviceSessionsByDeviceId(t).ifRight(r=>{r.forEach(n=>{this._sessionService.removeDeviceSession(n.id),this._logger.info("Session removed",{data:{deviceId:t,sessionId:n.id}})})})}async execute({device:t,sessionRefresherOptions:r}){const n=this._transportService.getTransport(t.transport),i="sessionId"in t?t.sessionId:void 0;return gt.liftEither(n.toEither(new db(new Error("Unknown transport")))).chain(async o=>o.connect({deviceId:t.id,onDisconnect:s=>this.handleDeviceDisconnect(s)})).ifLeft(o=>{this._logger.error("Error connecting to device")}).map(async o=>{const s=new Dz({connectedDevice:o,id:i},this._loggerFactory,this._managerApi,this._secureChannel,r);return this._sessionService.addDeviceSession(s),await s.initialiseSession(),s.id}).caseOf({Left:o=>{throw o},Right:o=>o})}};J_=Lz([Et(),mu(0,tt(Ia.TransportService)),mu(1,tt(fn.DeviceSessionService)),mu(2,tt(Er.LoggerPublisherServiceFactory)),mu(3,tt(Ap.ManagerApiService)),mu(4,tt(hb.SecureChannelService))],J_);var Fz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},em=(e,t)=>(r,n)=>t(r,n,e);let Z_=class{_transportService;_sessionService;_logger;constructor(t,r,n){this._sessionService=r,this._transportService=t,this._logger=n("DisconnectUseCase")}async execute({sessionId:t}){return this._logger.debug("Disconnecting from device",{data:{test:this._sessionService.getDeviceSessions().map(r=>r.id)}}),gt(async({liftEither:r})=>{const n=await r(this._sessionService.getDeviceSessionById(t).ifLeft(s=>{this._logger.error("Device session not found",{data:{sessionId:t,error:s}})})),i=n.connectedDevice.transport,o=await r(this._transportService.getTransport(i).toEither(new db(new Error("Unknown transport"))));n.close(),this._sessionService.removeDeviceSession(t),await o.disconnect({connectedDevice:n.connectedDevice})}).caseOf({Left:r=>{throw this._logger.error("Error disconnecting from device",{data:{error:r}}),r},Right:()=>{}})}};Z_=Fz([Et(),em(0,tt(Ia.TransportService)),em(1,tt(fn.DeviceSessionService)),em(2,tt(Er.LoggerPublisherServiceFactory))],Z_);let gb=class{id;sessionId;modelId;name;type;transport;constructor({transportConnectedDevice:{id:t,deviceModel:{id:r,productName:n},type:i,transport:o,name:s},sessionId:u}){this.id=t,this.sessionId=u,this.modelId=r,this.name=s??n,this.type=i,this.transport=o}};var Nz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},eR=(e,t)=>(r,n)=>t(r,n,e);let tR=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("GetConnectedDeviceUseCase")}execute({sessionId:t}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:r=>new gb({sessionId:r.id,transportConnectedDevice:r.connectedDevice}),Left:r=>{throw this._logger.error("Error getting session",{data:{error:r}}),r}})}};tR=Nz([Et(),eR(0,tt(fn.DeviceSessionService)),eR(1,tt(Er.LoggerPublisherServiceFactory))],tR);var jz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},rR=(e,t)=>(r,n)=>t(r,n,e);let nR=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("ListConnectedDeviceUseCase")}execute(){return this._logger.info("Listing connected devices"),this._sessionService.getDeviceSessions().map(t=>new gb({transportConnectedDevice:t.connectedDevice,sessionId:t.id}))}};nR=jz([Et(),rR(0,tt(fn.DeviceSessionService)),rR(1,tt(Er.LoggerPublisherServiceFactory))],nR);var zz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},iR=(e,t)=>(r,n)=>t(r,n,e);let oR=class{_transports;_transportService;_logger;constructor(t,r){this._transports=t.getAllTransports(),this._transportService=t,this._logger=r("ListenToAvailableDevicesUseCase")}mapTransportDiscoveredDeviceToDiscoveredDevice(t){const r=new tI({id:t.id,model:t.deviceModel.id,name:t.deviceModel.productName});return{id:t.id,deviceModel:r,transport:t.transport,name:t.name||r.name,rssi:t.rssi}}execute({transport:t}={}){if(this._logger.info("Listening to available devices"),this._transports.length===0)return this._logger.warn("No transports available"),wl([[]]);if(!t){this._logger.info("Discovering all available transports");const r=this._transports.map((n,i)=>n.listenToAvailableDevices().pipe($a(o=>({index:i,arr:o}))));return cj(...r).pipe(gj((n,{index:i,arr:o})=>(n[i]=o,n),{}),$a(n=>Object.values(n).flat().map(this.mapTransportDiscoveredDeviceToDiscoveredDevice)))}return this._logger.info(`Discovering devices on transport ${t}`),this._transportService.getTransport(t).caseOf({Nothing:()=>(this._logger.error(`Transport ${t} not found`),TI([])),Just:r=>r.listenToAvailableDevices().pipe($a(n=>n.map(this.mapTransportDiscoveredDeviceToDiscoveredDevice)))})}};oR=zz([Et(),iR(0,tt(Ia.TransportService)),iR(1,tt(Er.LoggerPublisherServiceFactory))],oR);var Bz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},aR=(e,t)=>(r,n)=>t(r,n,e);let sR=class{constructor(t,r){this._sessionService=t,this._logger=r("ListenToConnectedDeviceUseCase")}_logger;execute(){return this._logger.info("Observe connected devices"),this._sessionService.sessionsObs.pipe($a(t=>new gb({transportConnectedDevice:t.connectedDevice,sessionId:t.id})))}};sR=Bz([Et(),aR(0,tt(fn.DeviceSessionService)),aR(1,tt(Er.LoggerPublisherServiceFactory))],sR);var Vz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},tm=(e,t)=>(r,n)=>t(r,n,e);let lR=class{constructor(t,r,n){this.connectUseCase=t,this.disconnectUseCase=r,this._logger=n("ReconnectUseCase")}_logger;async execute({device:t,sessionRefresherOptions:r}){return this._logger.debug("Reconnecting device session",{data:{deviceId:t.id,transport:t.transport}}),await this.disconnectUseCase.execute({sessionId:t.sessionId}),this.connectUseCase.execute({device:t,sessionRefresherOptions:r})}};lR=Vz([Et(),tm(0,tt($_.ConnectUseCase)),tm(1,tt($_.DisconnectUseCase)),tm(2,tt(Er.LoggerPublisherServiceFactory))],lR);var Hz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Uz=(e,t)=>(r,n)=>t(r,n,e);let uR=class{constructor(t){this._transportService=t}mapDiscoveredDevice(t){const r=new tI({id:t.id,model:t.deviceModel.id,name:t.deviceModel.productName});return{id:t.id,deviceModel:r,transport:t.transport,name:t.name||r.name,rssi:t.rssi}}execute({transport:t}={}){if(!t){const r=this._transportService.getAllTransports();return TI(...r).pipe(fb(n=>n.startDiscovering().pipe($a(i=>this.mapDiscoveredDevice(i)))))}return this._transportService.getTransport(t).caseOf({Just:r=>r.startDiscovering().pipe($a(n=>this.mapDiscoveredDevice(n))),Nothing:()=>{throw new db(new Error("Unknown transport"))}})}};uR=Hz([Et(),Uz(0,tt(Ia.TransportService))],uR);var Wz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},cR=(e,t)=>(r,n)=>t(r,n,e);let fR=class{constructor(t,r){this.transportService=t,this._logger=r("StopDiscoveringUseCase")}_logger;async execute(){this._logger.debug("Stopping discovering devices");for(const t of this.transportService.getAllTransports())await t.stopDiscovering()}};fR=Wz([Et(),cR(0,tt(Ia.TransportService)),cR(1,tt(Er.LoggerPublisherServiceFactory))],fR);var Ru=(e=>(e[e.Fatal=0]="Fatal",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e))(Ru||{});let qz=class{format(t){return Array.isArray(t)?t.map(r=>`[${r}]`).join(" "):`[${t}]`}};function Ry(e,t){if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return t.has(e)?"[Circular]":(t.add(e),e.map(r=>Ry(r,t)));if(e!==null&&typeof e=="object"){if(t.has(e))return"[Circular]";t.add(e);const r={};for(const[n,i]of Object.entries(e))r[n]=Ry(i,t);return r}return e}function Gz(e){const t=new WeakSet;t.add(e);const r={};for(const[n,i]of Object.entries(e))r[n]=Ry(i,t);return r}var Xz=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i};let dR=class{subscribers;tag;tagFormatter;constructor(t,r,n=new qz){this.subscribers=t,this.tag=r,this.tagFormatter=n}_log(t,r,n){const i=n?.data?Gz(n.data):void 0,o=n?.tag??this.tag,s=this.tagFormatter.format(o);this.subscribers.forEach(u=>{const c={timestamp:n?.timestamp??Date.now(),tag:s,data:i};u.log(t,r,c)})}info(t,r){this._log(Ru.Info,t,r)}warn(t,r){this._log(Ru.Warning,t,r)}debug(t,r){this._log(Ru.Debug,t,r)}error(t,r){this._log(Ru.Error,t,r)}};dR=Xz([Et()],dR);let tc=class extends Error{status;statusText;responseBody;isTimeout;isAbort;cause;constructor(t){super(t.message),this.name="DmkNetworkClientError",this.status=t.status,this.statusText=t.statusText,this.responseBody=t.responseBody,this.isTimeout=t.isTimeout??!1,this.isAbort=t.isAbort??!1,this.cause=t.cause}};const Kz="application/json";function Yz(e,t){if(!t)return e;const r=e.endsWith("/")?e.slice(0,-1):e,n=t.startsWith("/")?t:`/${t}`;return`${r}${n}`}function Qz(e){const t=[];for(const[r,n]of Object.entries(e))n!=null&&t.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(n))}`);return t.join("&")}function Jz(e){const{url:t,params:r,baseUrl:n}=e,i=/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:n?Yz(n,t):t,o=r?Qz(r):"";if(o.length===0)return new URL(i);const s=i.includes("?")?"&":"?";return new URL(`${i}${s}${o}`)}function Zz(e,t){const r=t.toLowerCase();return Object.keys(e).some(n=>n.toLowerCase()===r)}function e8(e){return!!(typeof e=="string"||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof Blob<"u"&&e instanceof Blob||typeof FormData<"u"&&e instanceof FormData||typeof URLSearchParams<"u"&&e instanceof URLSearchParams||typeof ReadableStream<"u"&&e instanceof ReadableStream)}function t8(e){const{method:t,body:r,defaultHeaders:n,perRequestHeaders:i}=e,o={...n,...i};return r===void 0||t==="GET"||t==="HEAD"?{body:void 0,headers:o}:e8(r)?{body:r,headers:o}:(Zz(o,"content-type")||(o["Content-Type"]=Kz),{body:JSON.stringify(r),headers:o})}function r8(e){const{timeoutMs:t,externalSignal:r}=e,n=t&&t>0?AbortSignal.timeout(t):void 0;return n&&r?AbortSignal.any([r,n]):n??r}async function n8(e,t){switch(t){case"void":return;case"text":return await e.text();case"blob":return await e.blob();case"arrayBuffer":return await e.arrayBuffer();case"json":default:{const r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch(n){throw new tc({message:"Failed to parse JSON response body",status:e.status,statusText:e.statusText,responseBody:r,cause:n})}}}}async function i8(e){try{return await e.text()}catch{return}}function o8(e){const{cause:t,externalSignal:r,timeoutMs:n}=e,i=!!(n&&n>0);if(t instanceof Error&&(t.name==="AbortError"||t.name==="TimeoutError")){const o=r?.aborted??!1,s=!o&&(t.name==="TimeoutError"||i);return new tc({message:s?"Request timed out":"Request aborted",isTimeout:s,isAbort:o,cause:t})}return new tc({message:t instanceof Error?t.message:"Network request failed",cause:t})}let a8=class{baseUrl;defaultHeaders;fetchImpl;constructor(t={}){this.baseUrl=t.baseUrl,this.defaultHeaders=t.headers??{},this.fetchImpl=t.fetch}getFetch(){return this.fetchImpl??globalThis.fetch.bind(globalThis)}get(t,r){return this.request({...r,method:"GET",url:t}).then(n=>n.data)}post(t,r,n){return this.request({...n,method:"POST",url:t,body:r}).then(i=>i.data)}put(t,r,n){return this.request({...n,method:"PUT",url:t,body:r}).then(i=>i.data)}patch(t,r,n){return this.request({...n,method:"PATCH",url:t,body:r}).then(i=>i.data)}delete(t,r){return this.request({...r,method:"DELETE",url:t}).then(n=>n.data)}head(t,r){return this.request({...r,method:"HEAD",url:t,responseType:"void"}).then(()=>{})}async request(t){const r=Jz({url:t.url,params:t.params,baseUrl:this.baseUrl}),{body:n,headers:i}=t8({method:t.method,body:t.body,defaultHeaders:this.defaultHeaders,perRequestHeaders:t.headers}),o=r8({timeoutMs:t.timeoutMs,externalSignal:t.signal}),s=t.throwOnHttpError??!0,u=t.responseType??"json";let c;try{c=await this.getFetch()(r.toString(),{method:t.method,headers:i,body:n,signal:o})}catch(f){throw o8({cause:f,externalSignal:t.signal,timeoutMs:t.timeoutMs})}if(!c.ok&&s){const f=await i8(c);throw new tc({message:`HTTP error ${c.status} ${c.statusText}`.trim(),status:c.status,statusText:c.statusText,responseBody:f})}return{data:await n8(c,u),status:c.status,statusText:c.statusText,headers:c.headers,ok:c.ok}}};var Ou=(e=>(e.currency="currency",e.plugin="plugin",e.tool="tool",e.swap="swap",e))(Ou||{});const s8=1,l8="0";let ep=class{constructor(t){this.error=t,this.originalError=t}_tag="FetchError";originalError};var Tu=(e=>(e.currency="currency",e.plugin="plugin",e.tool="tool",e.swap="swap",e))(Tu||{}),u8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},c8=(e,t)=>(r,n)=>t(r,n,e);const Vo=e=>e instanceof tc&&e.cause!==void 0?new ep(e.cause):new ep(e);let pR=class{http;_provider=s8;_firmwareDistributionSalt=l8;constructor({managerApiUrl:t,provider:r,firmwareDistributionSalt:n}){this.http=new a8({baseUrl:t}),this._provider=r,this._firmwareDistributionSalt=n}setProvider(t){this._provider===t||t<1||(this._provider=t)}getProvider(){return this._provider}getAppList(t){const{targetId:r,firmwareVersionName:n}=t;return gt(()=>this.http.get("/v2/apps/by-target",{params:{target_id:r,provider:this._provider,firmware_version_name:n}})).chain(i=>this.mapApplicationDtoToApplication(i)).mapLeft(Vo)}getMcuList(){return gt(()=>this.http.get("/mcu_versions")).chain(t=>this.mapMcuDtoToMcu(t)).mapLeft(Vo)}getDeviceVersion(t){const{targetId:r}=t;return gt(()=>this.http.get("/get_device_version",{params:{target_id:r,provider:this._provider}})).chain(n=>this.mapDeviceVersionDto(n)).mapLeft(Vo)}getFirmwareVersion(t){const{deviceId:r,version:n}=t;return gt(()=>this.http.get("/get_firmware_version",{params:{device_version:r,version_name:n,provider:this._provider}})).chain(i=>this.mapFinalFirmwareDto(i)).mapLeft(Vo)}getFirmwareVersionById(t){return gt(()=>this.http.get(`/firmware_final_versions/${t}`)).chain(r=>this.mapFinalFirmwareDto(r)).mapLeft(Vo)}getOsuFirmwareVersion(t){const{deviceId:r,version:n}=t;return gt(()=>this.http.get("/get_osu_version",{params:{device_version:r,version_name:n,provider:this._provider}})).chain(i=>this.mapOsuFirmwareDto(i)).mapLeft(Vo)}getLatestFirmwareVersion(t){const r="34.27.0",{currentFinalFirmwareId:n,deviceId:i}=t;return gt(()=>this.http.get("/get_latest_firmware",{params:{current_se_firmware_final_version:n,device_version:i,provider:this._provider,salt:this._firmwareDistributionSalt,livecommonversion:r}})).chain(o=>this.mapLatestFirmwareDto(o)).mapLeft(Vo)}getAppsByHash(t){const{hashes:r}=t;return gt(()=>this.http.post("/v2/apps/hash",r)).chain(n=>this.mapNullableApplicationDtoToApplication(n)).mapLeft(Vo)}getLanguagePackages(t){const{deviceId:r,currentFinalFirmwareId:n}=t;return gt(()=>this.http.get("/language-packages",{params:{device_version:r,current_se_firmware_final_version:n}})).chain(i=>this.mapLanguagesDtoToLanguages(i)).mapLeft(Vo)}mapAppTypeDtoToAppType(t){if(t===null)return null;switch(t){case Tu.currency:return Ou.currency;case Tu.plugin:return Ou.plugin;case Tu.tool:return Ou.tool;case Tu.swap:return Ou.swap}}mapApplicationDtoToApplication(t){return gt(()=>Promise.resolve(t.map(r=>this.mapApplicationDto(r))))}mapNullableApplicationDtoToApplication(t){return gt(()=>Promise.resolve(t.map(r=>r===null?null:this.mapApplicationDto(r))))}mapApplicationDto(t){if(typeof t!="object"||typeof t.versionId!="number"||typeof t.versionName!="string"||t.versionDisplayName!==null&&typeof t.versionDisplayName!="string"||typeof t.version!="string"||t.currencyId!==null&&typeof t.currencyId!="string"||t.description!==null&&typeof t.description!="string"||t.applicationType!==null&&typeof t.applicationType!="string"||typeof t.dateModified!="string"||t.icon!==null&&typeof t.icon!="string"||t.authorName!==null&&typeof t.authorName!="string"||t.supportURL!==null&&typeof t.supportURL!="string"||t.contactURL!==null&&typeof t.contactURL!="string"||t.sourceURL!==null&&typeof t.sourceURL!="string"||t.compatibleWallets!==null&&typeof t.compatibleWallets!="string"||typeof t.hash!="string"||typeof t.perso!="string"||typeof t.firmware!="string"||typeof t.firmwareKey!="string"||typeof t.delete!="string"||typeof t.deleteKey!="string"||t.bytes!==null&&typeof t.bytes!="number"||t.warning!==null&&typeof t.warning!="string"||typeof t.isDevTools!="boolean"||t.category!==null&&typeof t.category!="number"||t.parent!==null&&typeof t.parent!="number"||t.parentName!==null&&typeof t.parentName!="string")throw new Error(`Incomplete application: ${JSON.stringify(t)}`);const{applicationType:r,hash:n,perso:i,firmware:o,firmwareKey:s,delete:u,deleteKey:c,...f}=t;return{...f,hash:n,perso:i,firmware:o,firmwareKey:s,delete:u,deleteKey:c,applicationType:this.mapAppTypeDtoToAppType(r)}}mapMcuDtoToMcu(t){return gt(()=>Promise.resolve(t.map(r=>{if(typeof r!="object"||typeof r.id!="number"||typeof r.name!="string")throw new Error(`Incomplete MCU version: ${JSON.stringify(r)}`);return{id:r.id,name:r.name}})))}mapDeviceVersionDto(t){return gt(()=>{if(typeof t!="object"||typeof t.id!="number")throw new Error(`Incomplete device version: ${JSON.stringify(t)}`);const r={id:t.id};return Promise.resolve(r)})}mapFinalFirmwareDto(t){return gt(()=>{if(typeof t!="object"||typeof t.id!="number"||typeof t.version!="string"||typeof t.perso!="string"||t.firmware!==null&&typeof t.firmware!="string"||t.firmware_key!==null&&typeof t.firmware_key!="string"||t.hash!==null&&typeof t.hash!="string"||t.bytes!==null&&typeof t.bytes!="number"||!Array.isArray(t.mcu_versions))throw new Error(`Incomplete final firmware: ${JSON.stringify(t)}`);const r={id:t.id,version:t.version,perso:t.perso,firmware:t.firmware,firmwareKey:t.firmware_key,hash:t.hash,bytes:t.bytes,mcuVersions:t.mcu_versions};return Promise.resolve(r)})}mapLatestFirmwareDto(t){return gt(()=>{if(t.result!=="success"||!t.se_firmware_osu_version)throw new Error(`Latest firmware could not be retrieved: ${t.result}`);const r=t.se_firmware_osu_version;return Promise.resolve(r)}).chain(r=>this.mapOsuFirmwareDto(r))}mapOsuFirmwareDto(t){return gt(()=>{if(typeof t!="object"||typeof t.id!="number"||typeof t.perso!="string"||typeof t.firmware!="string"||typeof t.firmware_key!="string"||t.hash!==null&&typeof t.hash!="string"||typeof t.next_se_firmware_final_version!="number")throw new Error(`Incomplete latest firmware: ${JSON.stringify(t)}`);const r={id:t.id,perso:t.perso,firmware:t.firmware,firmwareKey:t.firmware_key,hash:t.hash,nextFinalFirmware:t.next_se_firmware_final_version};return Promise.resolve(r)})}mapLanguagesDtoToLanguages(t){return gt(()=>Promise.resolve(t.map(r=>this.mapLanguageDto(r))))}mapLanguageDto(t){if(typeof t!="object"||typeof t.language!="string"||typeof t.languagePackageVersionId!="number"||typeof t.version!="string"||typeof t.language_package_id!="number"||typeof t.apdu_install_url!="string"||typeof t.apdu_uninstall_url!="string"||typeof t.bytes!="number"||typeof t.date_creation!="string"||typeof t.date_last_modified!="string")throw new Error(`Incomplete language version: ${JSON.stringify(t)}`);return{language:t.language,languagePackageVersionId:t.languagePackageVersionId,version:t.version,languagePackageId:t.language_package_id,apduInstallUrl:t.apdu_install_url,apduUninstallUrl:t.apdu_uninstall_url,bytes:t.bytes,dateCreation:t.date_creation,dateLastModified:t.date_last_modified}}};pR=u8([Et(),c8(0,tt(Ap.DmkConfig))],pR);var f8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},d8=(e,t)=>(r,n)=>t(r,n,e);let hR=class{constructor(t){this.dataSource=t}getAppList(t){const r={targetId:t.targetId.toString(),firmwareVersionName:t.seVersion};return this.dataSource.getAppList(r)}getDeviceVersion(t){const r={targetId:t.targetId.toString()};return this.dataSource.getDeviceVersion(r)}getFirmwareVersion(t,r){const n={version:t.seVersion,deviceId:r.id};return this.dataSource.getFirmwareVersion(n)}getOsuFirmwareVersion(t,r){const n={version:t.seVersion,deviceId:r.id};return this.dataSource.getOsuFirmwareVersion(n)}getLatestFirmwareVersion(t,r){const n={currentFinalFirmwareId:t.id,deviceId:r.id};return this.dataSource.getLatestFirmwareVersion(n)}getNextFirmwareVersion(t){return this.dataSource.getFirmwareVersionById(t.nextFinalFirmware)}getLanguagePackages(t,r){const n={deviceId:t.id,currentFinalFirmwareId:r.id};return this.dataSource.getLanguagePackages(n)}getMcuList(){return this.dataSource.getMcuList()}getAppsByHash(t){const r={hashes:t};return gt(async({fromPromise:n,throwE:i})=>{if(r.hashes.length===0)return[];try{return await n(this.dataSource.getAppsByHash(r))}catch(o){return o instanceof ep?i(o):i(new ep(o))}})}};hR=f8([Et(),d8(0,tt(Ap.ManagerApiDataSource))],hR);var p8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},gR=(e,t)=>(r,n)=>t(r,n,e);let vR=class{constructor(t,r){this.sessionService=t,this.managerApiDataSource=r}execute(t){for(const r of this.sessionService.getDeviceSessions()){const n=r.getDeviceSessionState();n.sessionStateType!==Zu.Connected&&r.setDeviceSessionState({...n,firmwareUpdateContext:void 0,installedApps:[],appsUpdates:void 0,catalog:void 0})}this.managerApiDataSource.setProvider(t)}};vR=p8([Et(),gR(0,tt(fn.DeviceSessionService)),gR(1,tt(Ap.ManagerApiDataSource))],vR);var Ya={},$u={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var h8=$u.exports,mR;function g8(){return mR||(mR=1,(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof self=="object"&&self;(o.global===o||o.window===o||o.self===o)&&(r=o);var s,u=2147483647,c=36,f=1,d=26,g=38,h=700,y=72,m=128,S="-",b=/^xn--/,C=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=c-f,_=Math.floor,A=String.fromCharCode,O;function I(U){throw new RangeError($[U])}function L(U,D){for(var P=U.length,G=[];P--;)G[P]=D(U[P]);return G}function F(U,D){var P=U.split("@"),G="";P.length>1&&(G=P[0]+"@",U=P[1]),U=U.replace(x,".");var Z=U.split("."),te=L(Z,D).join(".");return G+te}function W(U){for(var D=[],P=0,G=U.length,Z,te;P<G;)Z=U.charCodeAt(P++),Z>=55296&&Z<=56319&&P<G?(te=U.charCodeAt(P++),(te&64512)==56320?D.push(((Z&1023)<<10)+(te&1023)+65536):(D.push(Z),P--)):D.push(Z);return D}function z(U){return L(U,function(D){var P="";return D>65535&&(D-=65536,P+=A(D>>>10&1023|55296),D=56320|D&1023),P+=A(D),P}).join("")}function B(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:c}function j(U,D){return U+22+75*(U<26)-((D!=0)<<5)}function N(U,D,P){var G=0;for(U=P?_(U/h):U>>1,U+=_(U/D);U>T*d>>1;G+=c)U=_(U/T);return _(G+(T+1)*U/(U+g))}function X(U){var D=[],P=U.length,G,Z=0,te=m,K=y,ye,ae,be,he,xe,Se,Oe,Ee,_e;for(ye=U.lastIndexOf(S),ye<0&&(ye=0),ae=0;ae<ye;++ae)U.charCodeAt(ae)>=128&&I("not-basic"),D.push(U.charCodeAt(ae));for(be=ye>0?ye+1:0;be<P;){for(he=Z,xe=1,Se=c;be>=P&&I("invalid-input"),Oe=B(U.charCodeAt(be++)),(Oe>=c||Oe>_((u-Z)/xe))&&I("overflow"),Z+=Oe*xe,Ee=Se<=K?f:Se>=K+d?d:Se-K,!(Oe<Ee);Se+=c)_e=c-Ee,xe>_(u/_e)&&I("overflow"),xe*=_e;G=D.length+1,K=N(Z-he,G,he==0),_(Z/G)>u-te&&I("overflow"),te+=_(Z/G),Z%=G,D.splice(Z++,0,te)}return z(D)}function q(U){var D,P,G,Z,te,K,ye,ae,be,he,xe,Se=[],Oe,Ee,_e,$e;for(U=W(U),Oe=U.length,D=m,P=0,te=y,K=0;K<Oe;++K)xe=U[K],xe<128&&Se.push(A(xe));for(G=Z=Se.length,Z&&Se.push(S);G<Oe;){for(ye=u,K=0;K<Oe;++K)xe=U[K],xe>=D&&xe<ye&&(ye=xe);for(Ee=G+1,ye-D>_((u-P)/Ee)&&I("overflow"),P+=(ye-D)*Ee,D=ye,K=0;K<Oe;++K)if(xe=U[K],xe<D&&++P>u&&I("overflow"),xe==D){for(ae=P,be=c;he=be<=te?f:be>=te+d?d:be-te,!(ae<he);be+=c)$e=ae-he,_e=c-he,Se.push(A(j(he+$e%_e,0))),ae=_($e/_e);Se.push(A(j(ae,0))),te=N(P,Ee,G==Z),P=0,++G}++P,++D}return Se.join("")}function M(U){return F(U,function(D){return b.test(D)?X(D.slice(4).toLowerCase()):D})}function J(U){return F(U,function(D){return C.test(D)?"xn--"+q(D):D})}if(s={version:"1.4.1",ucs2:{decode:W,encode:z},decode:X,encode:q,toASCII:J,toUnicode:M},n&&i)if(e.exports==n)i.exports=s;else for(O in s)s.hasOwnProperty(O)&&(n[O]=s[O]);else r.punycode=s})(h8)})($u,$u.exports)),$u.exports}var rm,yR;function Ll(){return yR||(yR=1,rm=TypeError),rm}const v8={},m8=Object.freeze(Object.defineProperty({__proto__:null,default:v8},Symbol.toStringTag,{value:"Module"})),y8=M1(m8);var nm,bR;function Ip(){if(bR)return nm;bR=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&o&&typeof o.get=="function"?o.get:null,u=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,f=c?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,g=d?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,y=h?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,S=Object.prototype.toString,b=Function.prototype.toString,C=String.prototype.match,x=String.prototype.slice,$=String.prototype.replace,T=String.prototype.toUpperCase,_=String.prototype.toLowerCase,A=RegExp.prototype.test,O=Array.prototype.concat,I=Array.prototype.join,L=Array.prototype.slice,F=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,j=typeof Symbol=="function"&&typeof Symbol.iterator=="object",N=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(V){return V.__proto__}:null);function M(V,ee){if(V===1/0||V===-1/0||V!==V||V&&V>-1e3&&V<1e3||A.call(/e/,ee))return ee;var Re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof V=="number"){var le=V<0?-F(-V):F(V);if(le!==V){var fe=String(le),ve=x.call(ee,fe.length+1);return $.call(fe,Re,"$&_")+"."+$.call($.call(ve,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $.call(ee,Re,"$&_")}var J=y8,U=J.custom,D=Oe(U)?U:null,P={__proto__:null,double:'"',single:"'"},G={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};nm=function V(ee,Re,le,fe){var ve=Re||{};if($e(ve,"quoteStyle")&&!$e(P,ve.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($e(ve,"maxStringLength")&&(typeof ve.maxStringLength=="number"?ve.maxStringLength<0&&ve.maxStringLength!==1/0:ve.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ae=$e(ve,"customInspect")?ve.customInspect:!0;if(typeof Ae!="boolean"&&Ae!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($e(ve,"indent")&&ve.indent!==null&&ve.indent!==" "&&!(parseInt(ve.indent,10)===ve.indent&&ve.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($e(ve,"numericSeparator")&&typeof ve.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Me=ve.numericSeparator;if(typeof ee>"u")return"undefined";if(ee===null)return"null";if(typeof ee=="boolean")return ee?"true":"false";if(typeof ee=="string")return lt(ee,ve);if(typeof ee=="number"){if(ee===0)return 1/0/ee>0?"0":"-0";var ze=String(ee);return Me?M(ee,ze):ze}if(typeof ee=="bigint"){var Je=String(ee)+"n";return Me?M(ee,Je):Je}var Ze=typeof ve.depth>"u"?5:ve.depth;if(typeof le>"u"&&(le=0),le>=Ze&&Ze>0&&typeof ee=="object")return K(ee)?"[Array]":"[Object]";var et=se(ve,le);if(typeof fe>"u")fe=[];else if(Qe(fe,ee)>=0)return"[Circular]";function Nt(er,_r,Fe){if(_r&&(fe=L.call(fe),fe.push(_r)),Fe){var Zn={depth:ve.depth};return $e(ve,"quoteStyle")&&(Zn.quoteStyle=ve.quoteStyle),V(er,Zn,le+1,fe)}return V(er,ve,le+1,fe)}if(typeof ee=="function"&&!ae(ee)){var ct=qe(ee),pt=Y(ee,Nt);return"[Function"+(ct?": "+ct:" (anonymous)")+"]"+(pt.length>0?" { "+I.call(pt,", ")+" }":"")}if(Oe(ee)){var bt=j?$.call(String(ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):B.call(ee);return typeof ee=="object"&&!j?dt(bt):bt}if(Ge(ee)){for(var ht="<"+_.call(String(ee.nodeName)),mt=ee.attributes||[],_t=0;_t<mt.length;_t++)ht+=" "+mt[_t].name+"="+Z(te(mt[_t].value),"double",ve);return ht+=">",ee.childNodes&&ee.childNodes.length&&(ht+="..."),ht+="</"+_.call(String(ee.nodeName))+">",ht}if(K(ee)){if(ee.length===0)return"[]";var jt=Y(ee,Nt);return et&&!ne(jt)?"["+pe(jt,et)+"]":"[ "+I.call(jt,", ")+" ]"}if(be(ee)){var ar=Y(ee,Nt);return!("cause"in Error.prototype)&&"cause"in ee&&!X.call(ee,"cause")?"{ ["+String(ee)+"] "+I.call(O.call("[cause]: "+Nt(ee.cause),ar),", ")+" }":ar.length===0?"["+String(ee)+"]":"{ ["+String(ee)+"] "+I.call(ar,", ")+" }"}if(typeof ee=="object"&&Ae){if(D&&typeof ee[D]=="function"&&J)return J(ee,{depth:Ze-le});if(Ae!=="symbol"&&typeof ee.inspect=="function")return ee.inspect()}if(Ne(ee)){var dr=[];return n&&n.call(ee,function(er,_r){dr.push(Nt(_r,ee,!0)+" => "+Nt(er,ee))}),$t("Map",r.call(ee),dr,et)}if(Ve(ee)){var mr=[];return u&&u.call(ee,function(er){mr.push(Nt(er,ee))}),$t("Set",s.call(ee),mr,et)}if(je(ee))return Dt("WeakMap");if(Ce(ee))return Dt("WeakSet");if(Ke(ee))return Dt("WeakRef");if(xe(ee))return dt(Nt(Number(ee)));if(Ee(ee))return dt(Nt(W.call(ee)));if(Se(ee))return dt(m.call(ee));if(he(ee))return dt(Nt(String(ee)));if(typeof window<"u"&&ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ee===globalThis||typeof self<"u"&&ee===self)return"{ [object globalThis] }";if(!ye(ee)&&!ae(ee)){var Cr=Y(ee,Nt),Pr=q?q(ee)===Object.prototype:ee instanceof Object||ee.constructor===Object,kr=ee instanceof Object?"":"null prototype",pr=!Pr&&N&&Object(ee)===ee&&N in ee?x.call(Pe(ee),8,-1):kr?"Object":"",hn=Pr||typeof ee.constructor!="function"?"":ee.constructor.name?ee.constructor.name+" ":"",Ht=hn+(pr||kr?"["+I.call(O.call([],pr||[],kr||[]),": ")+"] ":"");return Cr.length===0?Ht+"{}":et?Ht+"{"+pe(Cr,et)+"}":Ht+"{ "+I.call(Cr,", ")+" }"}return String(ee)};function Z(V,ee,Re){var le=Re.quoteStyle||ee,fe=P[le];return fe+V+fe}function te(V){return $.call(String(V),/"/g,"&quot;")}function K(V){return Pe(V)==="[object Array]"&&(!N||!(typeof V=="object"&&N in V))}function ye(V){return Pe(V)==="[object Date]"&&(!N||!(typeof V=="object"&&N in V))}function ae(V){return Pe(V)==="[object RegExp]"&&(!N||!(typeof V=="object"&&N in V))}function be(V){return Pe(V)==="[object Error]"&&(!N||!(typeof V=="object"&&N in V))}function he(V){return Pe(V)==="[object String]"&&(!N||!(typeof V=="object"&&N in V))}function xe(V){return Pe(V)==="[object Number]"&&(!N||!(typeof V=="object"&&N in V))}function Se(V){return Pe(V)==="[object Boolean]"&&(!N||!(typeof V=="object"&&N in V))}function Oe(V){if(j)return V&&typeof V=="object"&&V instanceof Symbol;if(typeof V=="symbol")return!0;if(!V||typeof V!="object"||!B)return!1;try{return B.call(V),!0}catch{}return!1}function Ee(V){if(!V||typeof V!="object"||!W)return!1;try{return W.call(V),!0}catch{}return!1}var _e=Object.prototype.hasOwnProperty||function(V){return V in this};function $e(V,ee){return _e.call(V,ee)}function Pe(V){return S.call(V)}function qe(V){if(V.name)return V.name;var ee=C.call(b.call(V),/^function\s*([\w$]+)/);return ee?ee[1]:null}function Qe(V,ee){if(V.indexOf)return V.indexOf(ee);for(var Re=0,le=V.length;Re<le;Re++)if(V[Re]===ee)return Re;return-1}function Ne(V){if(!r||!V||typeof V!="object")return!1;try{r.call(V);try{s.call(V)}catch{return!0}return V instanceof Map}catch{}return!1}function je(V){if(!f||!V||typeof V!="object")return!1;try{f.call(V,f);try{g.call(V,g)}catch{return!0}return V instanceof WeakMap}catch{}return!1}function Ke(V){if(!y||!V||typeof V!="object")return!1;try{return y.call(V),!0}catch{}return!1}function Ve(V){if(!s||!V||typeof V!="object")return!1;try{s.call(V);try{r.call(V)}catch{return!0}return V instanceof Set}catch{}return!1}function Ce(V){if(!g||!V||typeof V!="object")return!1;try{g.call(V,g);try{f.call(V,f)}catch{return!0}return V instanceof WeakSet}catch{}return!1}function Ge(V){return!V||typeof V!="object"?!1:typeof HTMLElement<"u"&&V instanceof HTMLElement?!0:typeof V.nodeName=="string"&&typeof V.getAttribute=="function"}function lt(V,ee){if(V.length>ee.maxStringLength){var Re=V.length-ee.maxStringLength,le="... "+Re+" more character"+(Re>1?"s":"");return lt(x.call(V,0,ee.maxStringLength),ee)+le}var fe=G[ee.quoteStyle||"single"];fe.lastIndex=0;var ve=$.call($.call(V,fe,"\\$1"),/[\x00-\x1f]/g,At);return Z(ve,"single",ee)}function At(V){var ee=V.charCodeAt(0),Re={8:"b",9:"t",10:"n",12:"f",13:"r"}[ee];return Re?"\\"+Re:"\\x"+(ee<16?"0":"")+T.call(ee.toString(16))}function dt(V){return"Object("+V+")"}function Dt(V){return V+" { ? }"}function $t(V,ee,Re,le){var fe=le?pe(Re,le):I.call(Re,", ");return V+" ("+ee+") {"+fe+"}"}function ne(V){for(var ee=0;ee<V.length;ee++)if(Qe(V[ee],`
526
526
  `)>=0)return!1;return!0}function se(V,ee){var Re;if(V.indent===" ")Re=" ";else if(typeof V.indent=="number"&&V.indent>0)Re=I.call(Array(V.indent+1)," ");else return null;return{base:Re,prev:I.call(Array(ee+1),Re)}}function pe(V,ee){if(V.length===0)return"";var Re=`
527
527
  `+ee.prev+ee.base;return Re+I.call(V,","+Re)+`
528
- `+ee.prev}function Y(V,ee){var Re=K(V),le=[];if(Re){le.length=V.length;for(var fe=0;fe<V.length;fe++)le[fe]=$e(V,fe)?ee(V[fe],V):""}var ve=typeof z=="function"?z(V):[],Ae;if(j){Ae={};for(var Me=0;Me<ve.length;Me++)Ae["$"+ve[Me]]=ve[Me]}for(var ze in V)$e(V,ze)&&(Re&&String(Number(ze))===ze&&ze<V.length||j&&Ae["$"+ze]instanceof Symbol||(A.call(/[^\w$]/,ze)?le.push(ee(ze,V)+": "+ee(V[ze],V)):le.push(ze+": "+ee(V[ze],V))));if(typeof z=="function")for(var Je=0;Je<ve.length;Je++)X.call(V,ve[Je])&&le.push("["+ee(ve[Je])+"]: "+ee(V[ve[Je]],V));return le}return nm}var im,SR;function y8(){if(SR)return im;SR=1;var e=Ip(),t=Ll(),r=function(u,c,f){for(var d=u,g;(g=d.next)!=null;d=g)if(g.key===c)return d.next=g.next,f||(g.next=u.next,u.next=g),g},n=function(u,c){if(u){var f=r(u,c);return f&&f.value}},i=function(u,c,f){var d=r(u,c);d?d.value=f:u.next={key:c,next:u.next,value:f}},o=function(u,c){return u?!!r(u,c):!1},s=function(u,c){if(u)return r(u,c,!0)};return im=function(){var c,f={assert:function(d){if(!f.has(d))throw new t("Side channel does not contain "+e(d))},delete:function(d){var g=c&&c.next,h=s(c,d);return h&&g&&g===h&&(c=void 0),!!h},get:function(d){return n(c,d)},has:function(d){return o(c,d)},set:function(d,g){c||(c={next:void 0}),i(c,d,g)}};return f},im}var om,wR;function DI(){return wR||(wR=1,om=Object),om}var am,xR;function b8(){return xR||(xR=1,am=Error),am}var sm,ER;function S8(){return ER||(ER=1,sm=EvalError),sm}var lm,CR;function w8(){return CR||(CR=1,lm=RangeError),lm}var um,_R;function x8(){return _R||(_R=1,um=ReferenceError),um}var cm,RR;function E8(){return RR||(RR=1,cm=SyntaxError),cm}var fm,OR;function C8(){return OR||(OR=1,fm=URIError),fm}var dm,TR;function _8(){return TR||(TR=1,dm=Math.abs),dm}var pm,$R;function R8(){return $R||($R=1,pm=Math.floor),pm}var hm,AR;function O8(){return AR||(AR=1,hm=Math.max),hm}var gm,IR;function T8(){return IR||(IR=1,gm=Math.min),gm}var vm,PR;function $8(){return PR||(PR=1,vm=Math.pow),vm}var mm,kR;function A8(){return kR||(kR=1,mm=Math.round),mm}var ym,MR;function I8(){return MR||(MR=1,ym=Number.isNaN||function(t){return t!==t}),ym}var bm,DR;function P8(){if(DR)return bm;DR=1;var e=I8();return bm=function(r){return e(r)||r===0?r:r<0?-1:1},bm}var Sm,LR;function k8(){return LR||(LR=1,Sm=Object.getOwnPropertyDescriptor),Sm}var wm,FR;function LI(){if(FR)return wm;FR=1;var e=k8();if(e)try{e([],"length")}catch{e=null}return wm=e,wm}var xm,NR;function M8(){if(NR)return xm;NR=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return xm=e,xm}var Em,jR;function D8(){return jR||(jR=1,Em=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0}),Em}var Cm,zR;function L8(){if(zR)return Cm;zR=1;var e=typeof Symbol<"u"&&Symbol,t=D8();return Cm=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Cm}var _m,BR;function FI(){return BR||(BR=1,_m=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),_m}var Rm,VR;function NI(){if(VR)return Rm;VR=1;var e=DI();return Rm=e.getPrototypeOf||null,Rm}var Om,HR;function F8(){if(HR)return Om;HR=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(c,f){for(var d=[],g=0;g<c.length;g+=1)d[g]=c[g];for(var h=0;h<f.length;h+=1)d[h+c.length]=f[h];return d},o=function(c,f){for(var d=[],g=f,h=0;g<c.length;g+=1,h+=1)d[h]=c[g];return d},s=function(u,c){for(var f="",d=0;d<u.length;d+=1)f+=u[d],d+1<u.length&&(f+=c);return f};return Om=function(c){var f=this;if(typeof f!="function"||t.apply(f)!==n)throw new TypeError(e+f);for(var d=o(arguments,1),g,h=function(){if(this instanceof g){var C=f.apply(this,i(d,arguments));return Object(C)===C?C:this}return f.apply(c,i(d,arguments))},y=r(0,f.length-d.length),m=[],S=0;S<y;S++)m[S]="$"+S;if(g=Function("binder","return function ("+s(m,",")+"){ return binder.apply(this,arguments); }")(h),f.prototype){var b=function(){};b.prototype=f.prototype,g.prototype=new b,b.prototype=null}return g},Om}var Tm,UR;function Pp(){if(UR)return Tm;UR=1;var e=F8();return Tm=Function.prototype.bind||e,Tm}var $m,WR;function vb(){return WR||(WR=1,$m=Function.prototype.call),$m}var Am,qR;function jI(){return qR||(qR=1,Am=Function.prototype.apply),Am}var Im,GR;function N8(){return GR||(GR=1,Im=typeof Reflect<"u"&&Reflect&&Reflect.apply),Im}var Pm,XR;function j8(){if(XR)return Pm;XR=1;var e=Pp(),t=jI(),r=vb(),n=N8();return Pm=n||e.call(r,t),Pm}var km,KR;function zI(){if(KR)return km;KR=1;var e=Pp(),t=Ll(),r=vb(),n=j8();return km=function(o){if(o.length<1||typeof o[0]!="function")throw new t("a function is required");return n(e,r,o)},km}var Mm,YR;function z8(){if(YR)return Mm;YR=1;var e=zI(),t=LI(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Mm=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(u){return o(u==null?u:i(u))}:!1,Mm}var Dm,QR;function B8(){if(QR)return Dm;QR=1;var e=FI(),t=NI(),r=z8();return Dm=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,Dm}var Lm,JR;function V8(){if(JR)return Lm;JR=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Pp();return Lm=r.call(e,t),Lm}var Fm,ZR;function mb(){if(ZR)return Fm;ZR=1;var e,t=DI(),r=b8(),n=S8(),i=w8(),o=x8(),s=E8(),u=Ll(),c=C8(),f=_8(),d=R8(),g=O8(),h=T8(),y=$8(),m=A8(),S=P8(),b=Function,C=function(be){try{return b('"use strict"; return ('+be+").constructor;")()}catch{}},x=LI(),$=M8(),T=function(){throw new u},_=x?(function(){try{return arguments.callee,T}catch{try{return x(arguments,"callee").get}catch{return T}}})():T,A=L8()(),O=B8(),I=NI(),L=FI(),F=jI(),W=vb(),z={},B=typeof Uint8Array>"u"||!O?e:O(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&O?O([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":z,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&O?O(O([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!O?e:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!O?e:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&O?O(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":_,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":F,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":I,"%Math.abs%":f,"%Math.floor%":d,"%Math.max%":g,"%Math.min%":h,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":S,"%Reflect.getPrototypeOf%":L};if(O)try{null.error}catch(be){var N=O(O(be));j["%Error.prototype%"]=N}var X=function be(he){var xe;if(he==="%AsyncFunction%")xe=C("async function () {}");else if(he==="%GeneratorFunction%")xe=C("function* () {}");else if(he==="%AsyncGeneratorFunction%")xe=C("async function* () {}");else if(he==="%AsyncGenerator%"){var Se=be("%AsyncGeneratorFunction%");Se&&(xe=Se.prototype)}else if(he==="%AsyncIteratorPrototype%"){var Oe=be("%AsyncGenerator%");Oe&&O&&(xe=O(Oe.prototype))}return j[he]=xe,xe},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=Pp(),J=V8(),U=M.call(W,Array.prototype.concat),D=M.call(F,Array.prototype.splice),P=M.call(W,String.prototype.replace),G=M.call(W,String.prototype.slice),Z=M.call(W,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,ye=function(he){var xe=G(he,0,1),Se=G(he,-1);if(xe==="%"&&Se!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Se==="%"&&xe!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Oe=[];return P(he,te,function(Ee,_e,$e,Pe){Oe[Oe.length]=$e?P(Pe,K,"$1"):_e||Ee}),Oe},ae=function(he,xe){var Se=he,Oe;if(J(q,Se)&&(Oe=q[Se],Se="%"+Oe[0]+"%"),J(j,Se)){var Ee=j[Se];if(Ee===z&&(Ee=X(Se)),typeof Ee>"u"&&!xe)throw new u("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:Oe,name:Se,value:Ee}}throw new s("intrinsic "+he+" does not exist!")};return Fm=function(he,xe){if(typeof he!="string"||he.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof xe!="boolean")throw new u('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,he)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Se=ye(he),Oe=Se.length>0?Se[0]:"",Ee=ae("%"+Oe+"%",xe),_e=Ee.name,$e=Ee.value,Pe=!1,qe=Ee.alias;qe&&(Oe=qe[0],D(Se,U([0,1],qe)));for(var Qe=1,Ne=!0;Qe<Se.length;Qe+=1){var je=Se[Qe],Ke=G(je,0,1),Ve=G(je,-1);if((Ke==='"'||Ke==="'"||Ke==="`"||Ve==='"'||Ve==="'"||Ve==="`")&&Ke!==Ve)throw new s("property names with quotes must have matching quotes");if((je==="constructor"||!Ne)&&(Pe=!0),Oe+="."+je,_e="%"+Oe+"%",J(j,_e))$e=j[_e];else if($e!=null){if(!(je in $e)){if(!xe)throw new u("base intrinsic for "+he+" exists, but the property is not available.");return}if(x&&Qe+1>=Se.length){var Ce=x($e,je);Ne=!!Ce,Ne&&"get"in Ce&&!("originalValue"in Ce.get)?$e=Ce.get:$e=$e[je]}else Ne=J($e,je),$e=$e[je];Ne&&!Pe&&(j[_e]=$e)}}return $e},Fm}var Nm,eO;function BI(){if(eO)return Nm;eO=1;var e=mb(),t=zI(),r=t([e("%String.prototype.indexOf%")]);return Nm=function(i,o){var s=e(i,!!o);return typeof s=="function"&&r(i,".prototype.")>-1?t([s]):s},Nm}var jm,tO;function VI(){if(tO)return jm;tO=1;var e=mb(),t=BI(),r=Ip(),n=Ll(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),u=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),f=t("Map.prototype.size",!0);return jm=!!i&&function(){var g,h={assert:function(y){if(!h.has(y))throw new n("Side channel does not contain "+r(y))},delete:function(y){if(g){var m=c(g,y);return f(g)===0&&(g=void 0),m}return!1},get:function(y){if(g)return o(g,y)},has:function(y){return g?u(g,y):!1},set:function(y,m){g||(g=new i),s(g,y,m)}};return h},jm}var zm,rO;function H8(){if(rO)return zm;rO=1;var e=mb(),t=BI(),r=Ip(),n=VI(),i=Ll(),o=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),u=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),f=t("WeakMap.prototype.delete",!0);return zm=o?(function(){var g,h,y={assert:function(m){if(!y.has(m))throw new i("Side channel does not contain "+r(m))},delete:function(m){if(o&&m&&(typeof m=="object"||typeof m=="function")){if(g)return f(g,m)}else if(n&&h)return h.delete(m);return!1},get:function(m){return o&&m&&(typeof m=="object"||typeof m=="function")&&g?s(g,m):h&&h.get(m)},has:function(m){return o&&m&&(typeof m=="object"||typeof m=="function")&&g?c(g,m):!!h&&h.has(m)},set:function(m,S){o&&m&&(typeof m=="object"||typeof m=="function")?(g||(g=new o),u(g,m,S)):n&&(h||(h=n()),h.set(m,S))}};return y}):n,zm}var Bm,nO;function HI(){if(nO)return Bm;nO=1;var e=Ll(),t=Ip(),r=y8(),n=VI(),i=H8(),o=i||n||r;return Bm=function(){var u,c={assert:function(f){if(!c.has(f))throw new e("Side channel does not contain "+t(f))},delete:function(f){return!!u&&u.delete(f)},get:function(f){return u&&u.get(f)},has:function(f){return!!u&&u.has(f)},set:function(f,d){u||(u=o()),u.set(f,d)}};return c},Bm}var Vm,iO;function yb(){if(iO)return Vm;iO=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Vm={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Vm}var Hm,oO;function UI(){if(oO)return Hm;oO=1;var e=yb(),t=HI(),r=Object.prototype.hasOwnProperty,n=Array.isArray,i=t(),o=function(O,I){return i.set(O,I),O},s=function(O){return i.has(O)},u=function(O){return i.get(O)},c=function(O,I){i.set(O,I)},f=(function(){for(var A=[],O=0;O<256;++O)A.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return A})(),d=function(O){for(;O.length>1;){var I=O.pop(),L=I.obj[I.prop];if(n(L)){for(var F=[],W=0;W<L.length;++W)typeof L[W]<"u"&&F.push(L[W]);I.obj[I.prop]=F}}},g=function(O,I){for(var L=I&&I.plainObjects?{__proto__:null}:{},F=0;F<O.length;++F)typeof O[F]<"u"&&(L[F]=O[F]);return L},h=function A(O,I,L){if(!I)return O;if(typeof I!="object"&&typeof I!="function"){if(n(O))O.push(I);else if(O&&typeof O=="object")if(s(O)){var F=u(O)+1;O[F]=I,c(O,F)}else(L&&(L.plainObjects||L.allowPrototypes)||!r.call(Object.prototype,I))&&(O[I]=!0);else return[O,I];return O}if(!O||typeof O!="object"){if(s(I)){for(var W=Object.keys(I),z=L&&L.plainObjects?{__proto__:null,0:O}:{0:O},B=0;B<W.length;B++){var j=parseInt(W[B],10);z[j+1]=I[W[B]]}return o(z,u(I)+1)}return[O].concat(I)}var N=O;return n(O)&&!n(I)&&(N=g(O,L)),n(O)&&n(I)?(I.forEach(function(X,q){if(r.call(O,q)){var M=O[q];M&&typeof M=="object"&&X&&typeof X=="object"?O[q]=A(M,X,L):O.push(X)}else O[q]=X}),O):Object.keys(I).reduce(function(X,q){var M=I[q];return r.call(X,q)?X[q]=A(X[q],M,L):X[q]=M,X},N)},y=function(O,I){return Object.keys(I).reduce(function(L,F){return L[F]=I[F],L},O)},m=function(A,O,I){var L=A.replace(/\+/g," ");if(I==="iso-8859-1")return L.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(L)}catch{return L}},S=1024,b=function(O,I,L,F,W){if(O.length===0)return O;var z=O;if(typeof O=="symbol"?z=Symbol.prototype.toString.call(O):typeof O!="string"&&(z=String(O)),L==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var B="",j=0;j<z.length;j+=S){for(var N=z.length>=S?z.slice(j,j+S):z,X=[],q=0;q<N.length;++q){var M=N.charCodeAt(q);if(M===45||M===46||M===95||M===126||M>=48&&M<=57||M>=65&&M<=90||M>=97&&M<=122||W===e.RFC1738&&(M===40||M===41)){X[X.length]=N.charAt(q);continue}if(M<128){X[X.length]=f[M];continue}if(M<2048){X[X.length]=f[192|M>>6]+f[128|M&63];continue}if(M<55296||M>=57344){X[X.length]=f[224|M>>12]+f[128|M>>6&63]+f[128|M&63];continue}q+=1,M=65536+((M&1023)<<10|N.charCodeAt(q)&1023),X[X.length]=f[240|M>>18]+f[128|M>>12&63]+f[128|M>>6&63]+f[128|M&63]}B+=X.join("")}return B},C=function(O){for(var I=[{obj:{o:O},prop:"o"}],L=[],F=0;F<I.length;++F)for(var W=I[F],z=W.obj[W.prop],B=Object.keys(z),j=0;j<B.length;++j){var N=B[j],X=z[N];typeof X=="object"&&X!==null&&L.indexOf(X)===-1&&(I.push({obj:z,prop:N}),L.push(X))}return d(I),O},x=function(O){return Object.prototype.toString.call(O)==="[object RegExp]"},$=function(O){return!O||typeof O!="object"?!1:!!(O.constructor&&O.constructor.isBuffer&&O.constructor.isBuffer(O))},T=function(O,I,L,F){if(s(O)){var W=u(O)+1;return O[W]=I,c(O,W),O}var z=[].concat(O,I);return z.length>L?o(g(z,{plainObjects:F}),z.length-1):z},_=function(O,I){if(n(O)){for(var L=[],F=0;F<O.length;F+=1)L.push(I(O[F]));return L}return I(O)};return Hm={arrayToObject:g,assign:y,combine:T,compact:C,decode:m,encode:b,isBuffer:$,isOverflow:s,isRegExp:x,maybeMap:_,merge:h},Hm}var Um,aO;function U8(){if(aO)return Um;aO=1;var e=HI(),t=UI(),r=yb(),n=Object.prototype.hasOwnProperty,i={brackets:function(b){return b+"[]"},comma:"comma",indices:function(b,C){return b+"["+C+"]"},repeat:function(b){return b}},o=Array.isArray,s=Array.prototype.push,u=function(S,b){s.apply(S,o(b)?b:[b])},c=Date.prototype.toISOString,f=r.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:r.formatters[f],indices:!1,serializeDate:function(b){return c.call(b)},skipNulls:!1,strictNullHandling:!1},g=function(b){return typeof b=="string"||typeof b=="number"||typeof b=="boolean"||typeof b=="symbol"||typeof b=="bigint"},h={},y=function S(b,C,x,$,T,_,A,O,I,L,F,W,z,B,j,N,X,q){for(var M=b,J=q,U=0,D=!1;(J=J.get(h))!==void 0&&!D;){var P=J.get(b);if(U+=1,typeof P<"u"){if(P===U)throw new RangeError("Cyclic object value");D=!0}typeof J.get(h)>"u"&&(U=0)}if(typeof L=="function"?M=L(C,M):M instanceof Date?M=z(M):x==="comma"&&o(M)&&(M=t.maybeMap(M,function(_e){return _e instanceof Date?z(_e):_e})),M===null){if(_)return I&&!N?I(C,d.encoder,X,"key",B):C;M=""}if(g(M)||t.isBuffer(M)){if(I){var G=N?C:I(C,d.encoder,X,"key",B);return[j(G)+"="+j(I(M,d.encoder,X,"value",B))]}return[j(C)+"="+j(String(M))]}var Z=[];if(typeof M>"u")return Z;var te;if(x==="comma"&&o(M))N&&I&&(M=t.maybeMap(M,I)),te=[{value:M.length>0?M.join(",")||null:void 0}];else if(o(L))te=L;else{var K=Object.keys(M);te=F?K.sort(F):K}var ye=O?String(C).replace(/\./g,"%2E"):String(C),ae=$&&o(M)&&M.length===1?ye+"[]":ye;if(T&&o(M)&&M.length===0)return ae+"[]";for(var be=0;be<te.length;++be){var he=te[be],xe=typeof he=="object"&&he&&typeof he.value<"u"?he.value:M[he];if(!(A&&xe===null)){var Se=W&&O?String(he).replace(/\./g,"%2E"):String(he),Oe=o(M)?typeof x=="function"?x(ae,Se):ae:ae+(W?"."+Se:"["+Se+"]");q.set(b,U);var Ee=e();Ee.set(h,q),u(Z,S(xe,Oe,x,$,T,_,A,O,x==="comma"&&N&&o(M)?null:I,L,F,W,z,B,j,N,X,Ee))}}return Z},m=function(b){if(!b)return d;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.encodeDotInKeys<"u"&&typeof b.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(b.encoder!==null&&typeof b.encoder<"u"&&typeof b.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=b.charset||d.charset;if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var x=r.default;if(typeof b.format<"u"){if(!n.call(r.formatters,b.format))throw new TypeError("Unknown format option provided.");x=b.format}var $=r.formatters[x],T=d.filter;(typeof b.filter=="function"||o(b.filter))&&(T=b.filter);var _;if(b.arrayFormat in i?_=b.arrayFormat:"indices"in b?_=b.indices?"indices":"repeat":_=d.arrayFormat,"commaRoundTrip"in b&&typeof b.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof b.allowDots>"u"?b.encodeDotInKeys===!0?!0:d.allowDots:!!b.allowDots;return{addQueryPrefix:typeof b.addQueryPrefix=="boolean"?b.addQueryPrefix:d.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:_,charset:C,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!b.commaRoundTrip,delimiter:typeof b.delimiter>"u"?d.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:d.encode,encodeDotInKeys:typeof b.encodeDotInKeys=="boolean"?b.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof b.encoder=="function"?b.encoder:d.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:d.encodeValuesOnly,filter:T,format:x,formatter:$,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:d.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:d.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:d.strictNullHandling}};return Um=function(S,b){var C=S,x=m(b),$,T;typeof x.filter=="function"?(T=x.filter,C=T("",C)):o(x.filter)&&(T=x.filter,$=T);var _=[];if(typeof C!="object"||C===null)return"";var A=i[x.arrayFormat],O=A==="comma"&&x.commaRoundTrip;$||($=Object.keys(C)),x.sort&&$.sort(x.sort);for(var I=e(),L=0;L<$.length;++L){var F=$[L],W=C[F];x.skipNulls&&W===null||u(_,y(W,F,A,O,x.allowEmptyArrays,x.strictNullHandling,x.skipNulls,x.encodeDotInKeys,x.encode?x.encoder:null,x.filter,x.sort,x.allowDots,x.serializeDate,x.format,x.formatter,x.encodeValuesOnly,x.charset,I))}var z=_.join(x.delimiter),B=x.addQueryPrefix===!0?"?":"";return x.charsetSentinel&&(x.charset==="iso-8859-1"?B+="utf8=%26%2310003%3B&":B+="utf8=%E2%9C%93&"),z.length>0?B+z:""},Um}var Wm,sO;function W8(){if(sO)return Wm;sO=1;var e=UI(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(y){return y.replace(/&#(\d+);/g,function(m,S){return String.fromCharCode(parseInt(S,10))})},o=function(y,m,S){if(y&&typeof y=="string"&&m.comma&&y.indexOf(",")>-1)return y.split(",");if(m.throwOnLimitExceeded&&S>=m.arrayLimit)throw new RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(m.arrayLimit===1?"":"s")+" allowed in an array.");return y},s="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=function(m,S){var b={__proto__:null},C=S.ignoreQueryPrefix?m.replace(/^\?/,""):m;C=C.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var x=S.parameterLimit===1/0?void 0:S.parameterLimit,$=C.split(S.delimiter,S.throwOnLimitExceeded?x+1:x);if(S.throwOnLimitExceeded&&$.length>x)throw new RangeError("Parameter limit exceeded. Only "+x+" parameter"+(x===1?"":"s")+" allowed.");var T=-1,_,A=S.charset;if(S.charsetSentinel)for(_=0;_<$.length;++_)$[_].indexOf("utf8=")===0&&($[_]===u?A="utf-8":$[_]===s&&(A="iso-8859-1"),T=_,_=$.length);for(_=0;_<$.length;++_)if(_!==T){var O=$[_],I=O.indexOf("]="),L=I===-1?O.indexOf("="):I+1,F,W;if(L===-1?(F=S.decoder(O,n.decoder,A,"key"),W=S.strictNullHandling?null:""):(F=S.decoder(O.slice(0,L),n.decoder,A,"key"),F!==null&&(W=e.maybeMap(o(O.slice(L+1),S,r(b[F])?b[F].length:0),function(B){return S.decoder(B,n.decoder,A,"value")}))),W&&S.interpretNumericEntities&&A==="iso-8859-1"&&(W=i(String(W))),O.indexOf("[]=")>-1&&(W=r(W)?[W]:W),F!==null){var z=t.call(b,F);z&&S.duplicates==="combine"?b[F]=e.combine(b[F],W,S.arrayLimit,S.plainObjects):(!z||S.duplicates==="last")&&(b[F]=W)}}return b},f=function(y,m,S,b){var C=0;if(y.length>0&&y[y.length-1]==="[]"){var x=y.slice(0,-1).join("");C=Array.isArray(m)&&m[x]?m[x].length:0}for(var $=b?m:o(m,S,C),T=y.length-1;T>=0;--T){var _,A=y[T];if(A==="[]"&&S.parseArrays)e.isOverflow($)?_=$:_=S.allowEmptyArrays&&($===""||S.strictNullHandling&&$===null)?[]:e.combine([],$,S.arrayLimit,S.plainObjects);else{_=S.plainObjects?{__proto__:null}:{};var O=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,I=S.decodeDotInKeys?O.replace(/%2E/g,"."):O,L=parseInt(I,10);!S.parseArrays&&I===""?_={0:$}:!isNaN(L)&&A!==I&&String(L)===I&&L>=0&&S.parseArrays&&L<=S.arrayLimit?(_=[],_[L]=$):I!=="__proto__"&&(_[I]=$)}$=_}return $},d=function(m,S){var b=S.allowDots?m.replace(/\.([^.[]+)/g,"[$1]"):m;if(S.depth<=0)return!S.plainObjects&&t.call(Object.prototype,b)&&!S.allowPrototypes?void 0:[b];var C=/(\[[^[\]]*])/,x=/(\[[^[\]]*])/g,$=C.exec(b),T=$?b.slice(0,$.index):b,_=[];if(T){if(!S.plainObjects&&t.call(Object.prototype,T)&&!S.allowPrototypes)return;_.push(T)}for(var A=0;($=x.exec(b))!==null&&A<S.depth;){A+=1;var O=$[1].slice(1,-1);if(!S.plainObjects&&t.call(Object.prototype,O)&&!S.allowPrototypes)return;_.push($[1])}if($){if(S.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+S.depth+" and strictDepth is true");_.push("["+b.slice($.index)+"]")}return _},g=function(m,S,b,C){if(m){var x=d(m,b);if(x)return f(x,S,b,C)}},h=function(m){if(!m)return n;if(typeof m.allowEmptyArrays<"u"&&typeof m.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof m.decodeDotInKeys<"u"&&typeof m.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(m.decoder!==null&&typeof m.decoder<"u"&&typeof m.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof m.charset<"u"&&m.charset!=="utf-8"&&m.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof m.throwOnLimitExceeded<"u"&&typeof m.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof m.charset>"u"?n.charset:m.charset,b=typeof m.duplicates>"u"?n.duplicates:m.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var C=typeof m.allowDots>"u"?m.decodeDotInKeys===!0?!0:n.allowDots:!!m.allowDots;return{allowDots:C,allowEmptyArrays:typeof m.allowEmptyArrays=="boolean"?!!m.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof m.allowPrototypes=="boolean"?m.allowPrototypes:n.allowPrototypes,allowSparse:typeof m.allowSparse=="boolean"?m.allowSparse:n.allowSparse,arrayLimit:typeof m.arrayLimit=="number"?m.arrayLimit:n.arrayLimit,charset:S,charsetSentinel:typeof m.charsetSentinel=="boolean"?m.charsetSentinel:n.charsetSentinel,comma:typeof m.comma=="boolean"?m.comma:n.comma,decodeDotInKeys:typeof m.decodeDotInKeys=="boolean"?m.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof m.decoder=="function"?m.decoder:n.decoder,delimiter:typeof m.delimiter=="string"||e.isRegExp(m.delimiter)?m.delimiter:n.delimiter,depth:typeof m.depth=="number"||m.depth===!1?+m.depth:n.depth,duplicates:b,ignoreQueryPrefix:m.ignoreQueryPrefix===!0,interpretNumericEntities:typeof m.interpretNumericEntities=="boolean"?m.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof m.parameterLimit=="number"?m.parameterLimit:n.parameterLimit,parseArrays:m.parseArrays!==!1,plainObjects:typeof m.plainObjects=="boolean"?m.plainObjects:n.plainObjects,strictDepth:typeof m.strictDepth=="boolean"?!!m.strictDepth:n.strictDepth,strictNullHandling:typeof m.strictNullHandling=="boolean"?m.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof m.throwOnLimitExceeded=="boolean"?m.throwOnLimitExceeded:!1}};return Wm=function(y,m){var S=h(m);if(y===""||y===null||typeof y>"u")return S.plainObjects?{__proto__:null}:{};for(var b=typeof y=="string"?c(y,S):y,C=S.plainObjects?{__proto__:null}:{},x=Object.keys(b),$=0;$<x.length;++$){var T=x[$],_=g(T,b[T],S,typeof y=="string");C=e.merge(C,_,S)}return S.allowSparse===!0?C:e.compact(C)},Wm}var qm,lO;function q8(){if(lO)return qm;lO=1;var e=U8(),t=W8(),r=yb();return qm={formats:r,parse:t,stringify:e},qm}var uO;function G8(){if(uO)return Ya;uO=1;var e=h8();function t(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
529
- `," "],s=["{","}","|","\\","^","`"].concat(o),u=["'"].concat(s),c=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=q8();function C(_,A,O){if(_&&typeof _=="object"&&_ instanceof t)return _;var I=new t;return I.parse(_,A,O),I}t.prototype.parse=function(_,A,O){if(typeof _!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var I=_.indexOf("?"),L=I!==-1&&I<_.indexOf("#")?"?":"#",F=_.split(L),W=/\\/g;F[0]=F[0].replace(W,"/"),_=F.join(L);var z=_;if(z=z.trim(),!O&&_.split("#").length===1){var B=i.exec(z);if(B)return this.path=z,this.href=z,this.pathname=B[1],B[2]?(this.search=B[2],A?this.query=b.parse(this.search.substr(1)):this.query=this.search.substr(1)):A&&(this.search="",this.query={}),this}var j=r.exec(z);if(j){j=j[0];var N=j.toLowerCase();this.protocol=N,z=z.substr(j.length)}if(O||j||z.match(/^\/\/[^@/]+@[^@/]+/)){var X=z.substr(0,2)==="//";X&&!(j&&m[j])&&(z=z.substr(2),this.slashes=!0)}if(!m[j]&&(X||j&&!S[j])){for(var q=-1,M=0;M<f.length;M++){var J=z.indexOf(f[M]);J!==-1&&(q===-1||J<q)&&(q=J)}var U,D;q===-1?D=z.lastIndexOf("@"):D=z.lastIndexOf("@",q),D!==-1&&(U=z.slice(0,D),z=z.slice(D+1),this.auth=decodeURIComponent(U)),q=-1;for(var M=0;M<c.length;M++){var J=z.indexOf(c[M]);J!==-1&&(q===-1||J<q)&&(q=J)}q===-1&&(q=z.length),this.host=z.slice(0,q),z=z.slice(q),this.parseHost(),this.hostname=this.hostname||"";var P=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!P)for(var G=this.hostname.split(/\./),M=0,Z=G.length;M<Z;M++){var te=G[M];if(te&&!te.match(g)){for(var K="",ye=0,ae=te.length;ye<ae;ye++)te.charCodeAt(ye)>127?K+="x":K+=te[ye];if(!K.match(g)){var be=G.slice(0,M),he=G.slice(M+1),xe=te.match(h);xe&&(be.push(xe[1]),he.unshift(xe[2])),he.length&&(z="/"+he.join(".")+z),this.hostname=be.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=e.toASCII(this.hostname));var Se=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Se,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),z[0]!=="/"&&(z="/"+z))}if(!y[N])for(var M=0,Z=u.length;M<Z;M++){var Ee=u[M];if(z.indexOf(Ee)!==-1){var _e=encodeURIComponent(Ee);_e===Ee&&(_e=escape(Ee)),z=z.split(Ee).join(_e)}}var $e=z.indexOf("#");$e!==-1&&(this.hash=z.substr($e),z=z.slice(0,$e));var Pe=z.indexOf("?");if(Pe!==-1?(this.search=z.substr(Pe),this.query=z.substr(Pe+1),A&&(this.query=b.parse(this.query)),z=z.slice(0,Pe)):A&&(this.search="",this.query={}),z&&(this.pathname=z),S[N]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Se=this.pathname||"",qe=this.search||"";this.path=Se+qe}return this.href=this.format(),this};function x(_){return typeof _=="string"&&(_=C(_)),_ instanceof t?_.format():t.prototype.format.call(_)}t.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var A=this.protocol||"",O=this.pathname||"",I=this.hash||"",L=!1,F="";this.host?L=_+this.host:this.hostname&&(L=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(L+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(F=b.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var W=this.search||F&&"?"+F||"";return A&&A.substr(-1)!==":"&&(A+=":"),this.slashes||(!A||S[A])&&L!==!1?(L="//"+(L||""),O&&O.charAt(0)!=="/"&&(O="/"+O)):L||(L=""),I&&I.charAt(0)!=="#"&&(I="#"+I),W&&W.charAt(0)!=="?"&&(W="?"+W),O=O.replace(/[?#]/g,function(z){return encodeURIComponent(z)}),W=W.replace("#","%23"),A+L+O+W+I};function $(_,A){return C(_,!1,!0).resolve(A)}t.prototype.resolve=function(_){return this.resolveObject(C(_,!1,!0)).format()};function T(_,A){return _?C(_,!1,!0).resolveObject(A):A}return t.prototype.resolveObject=function(_){if(typeof _=="string"){var A=new t;A.parse(_,!1,!0),_=A}for(var O=new t,I=Object.keys(this),L=0;L<I.length;L++){var F=I[L];O[F]=this[F]}if(O.hash=_.hash,_.href==="")return O.href=O.format(),O;if(_.slashes&&!_.protocol){for(var W=Object.keys(_),z=0;z<W.length;z++){var B=W[z];B!=="protocol"&&(O[B]=_[B])}return S[O.protocol]&&O.hostname&&!O.pathname&&(O.pathname="/",O.path=O.pathname),O.href=O.format(),O}if(_.protocol&&_.protocol!==O.protocol){if(!S[_.protocol]){for(var j=Object.keys(_),N=0;N<j.length;N++){var X=j[N];O[X]=_[X]}return O.href=O.format(),O}if(O.protocol=_.protocol,!_.host&&!m[_.protocol]){for(var Z=(_.pathname||"").split("/");Z.length&&!(_.host=Z.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),O.pathname=Z.join("/")}else O.pathname=_.pathname;if(O.search=_.search,O.query=_.query,O.host=_.host||"",O.auth=_.auth,O.hostname=_.hostname||_.host,O.port=_.port,O.pathname||O.search){var q=O.pathname||"",M=O.search||"";O.path=q+M}return O.slashes=O.slashes||_.slashes,O.href=O.format(),O}var J=O.pathname&&O.pathname.charAt(0)==="/",U=_.host||_.pathname&&_.pathname.charAt(0)==="/",D=U||J||O.host&&_.pathname,P=D,G=O.pathname&&O.pathname.split("/")||[],Z=_.pathname&&_.pathname.split("/")||[],te=O.protocol&&!S[O.protocol];if(te&&(O.hostname="",O.port=null,O.host&&(G[0]===""?G[0]=O.host:G.unshift(O.host)),O.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(Z[0]===""?Z[0]=_.host:Z.unshift(_.host)),_.host=null),D=D&&(Z[0]===""||G[0]==="")),U)O.host=_.host||_.host===""?_.host:O.host,O.hostname=_.hostname||_.hostname===""?_.hostname:O.hostname,O.search=_.search,O.query=_.query,G=Z;else if(Z.length)G||(G=[]),G.pop(),G=G.concat(Z),O.search=_.search,O.query=_.query;else if(_.search!=null){if(te){O.host=G.shift(),O.hostname=O.host;var K=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;K&&(O.auth=K.shift(),O.hostname=K.shift(),O.host=O.hostname)}return O.search=_.search,O.query=_.query,(O.pathname!==null||O.search!==null)&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!G.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var ye=G.slice(-1)[0],ae=(O.host||_.host||G.length>1)&&(ye==="."||ye==="..")||ye==="",be=0,he=G.length;he>=0;he--)ye=G[he],ye==="."?G.splice(he,1):ye===".."?(G.splice(he,1),be++):be&&(G.splice(he,1),be--);if(!D&&!P)for(;be--;be)G.unshift("..");D&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),ae&&G.join("/").substr(-1)!=="/"&&G.push("");var xe=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(te){O.hostname=xe?"":G.length?G.shift():"",O.host=O.hostname;var K=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;K&&(O.auth=K.shift(),O.hostname=K.shift(),O.host=O.hostname)}return D=D||O.host&&G.length,D&&!xe&&G.unshift(""),G.length>0?O.pathname=G.join("/"):(O.pathname=null,O.path=null),(O.pathname!==null||O.search!==null)&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=_.auth||O.auth,O.slashes=O.slashes||_.slashes,O.href=O.format(),O},t.prototype.parseHost=function(){var _=this.host,A=n.exec(_);A&&(A=A[0],A!==":"&&(this.port=A.substr(1)),_=_.substr(0,_.length-A.length)),_&&(this.hostname=_)},Ya.parse=C,Ya.resolve=$,Ya.resolveObject=T,Ya.format=x,Ya.Url=t,Ya}var X8=G8();const Ws=Ir(X8);var K8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Y8=(e,t)=>(r,n)=>t(r,n,e);let cO=class{webSocketBaseUrl;constructor({webSocketUrl:t}){this.webSocketBaseUrl=t}genuineCheck(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/genuine`,query:t});return this._connectWebSocket(r)}installApp(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}listInstalledApps(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/apps/list`,query:t});return this._connectWebSocket(r)}uninstallApp(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}updateFirmware(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}updateMcu(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/mcu`,query:t});return this._connectWebSocket(r)}_connectWebSocket(t){try{return Jr(new xj(t))}catch(r){return Qr(new Tj(r))}}};cO=K8([Et(),Y8(0,tt(hb.DmkConfig))],cO);var Q8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},J8=(e,t)=>(r,n)=>t(r,n,e);let fO=class{constructor(t){this.dataSource=t}genuineCheck(t,r){const n={targetId:t.targetId.toString(),perso:r.perso};return this.dataSource.genuineCheck(n)}installApp(t,r){const{perso:n,firmware:i,firmwareKey:o,hash:s}=r,u={targetId:t.targetId.toString(),perso:n,firmware:i,firmwareKey:o,hash:s};return this.dataSource.installApp(u)}listInstalledApps(t,r){const n={targetId:t.targetId.toString(),perso:r.perso};return this.dataSource.listInstalledApps(n)}uninstallApp(t,r){const{perso:n,delete:i,deleteKey:o,hash:s}=r,u={targetId:t.targetId.toString(),perso:n,firmware:i,firmwareKey:o,hash:s};return this.dataSource.uninstallApp(u)}updateFirmware(t,r){const n={targetId:t.targetId.toString(),perso:r.perso,firmware:r.firmware,firmwareKey:r.firmwareKey};return this.dataSource.updateFirmware(n)}updateMcu(t,r){const n={targetId:t.targetId.toString(),version:r.version};return this.dataSource.updateMcu(n)}};fO=Q8([Et(),J8(0,tt(hb.SecureChannelDataSource))],fO);var Z8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},dO=(e,t)=>(r,n)=>t(r,n,e);let pO=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("SendApduUseCase")}async execute({sessionId:t,apdu:r,abortTimeout:n,triggersDisconnection:i}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:async o=>(await o.sendApdu(r,{abortTimeout:n,triggersDisconnection:i})).caseOf({Right:s=>s,Left:s=>{throw this._logger.error("Error sending APDU",{data:{sessionId:t,apdu:r,error:s}}),s}}),Left:o=>{throw this._logger.error("Error getting deviceSession",{data:{error:o}}),o}})}};pO=Z8([Et(),dO(0,tt(fn.DeviceSessionService)),dO(1,tt(Er.LoggerPublisherServiceFactory))],pO);var eB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},qs=(e,t)=>(r,n)=>t(r,n,e);let hO=class{constructor(t,r,n,i,o,s){if(this._config=r,this._loggerModuleFactory=n,this._deviceModelDataSource=i,this._apduSenderServiceFactory=o,this._apduReceiverServiceFactory=s,this._logger=n("TransportService"),t.length===0)throw this._logger.warn("No transports provided, please check your configuration"),new wj("No transports provided, please check your configuration");for(const u of t){const c=this.addTransport(u);if(c.isLeft())throw c.extract()}}_transports=new Map;_logger;addTransport(t){const r=t({deviceModelDataSource:this._deviceModelDataSource,loggerServiceFactory:this._loggerModuleFactory,config:this._config,apduSenderServiceFactory:this._apduSenderServiceFactory,apduReceiverServiceFactory:this._apduReceiverServiceFactory});return this.addTransportInternal(r)}addTransportInternal(t){return this.getTransport(t.getIdentifier()).isJust()?(this._logger.warn(`Transport ${t.getIdentifier()} already exists, please check your configuration`),Qr(new Sj(`Transport ${t.getIdentifier()} already exists, please check your configuration`))):(this._transports.set(t.getIdentifier(),t),Jr(void 0))}getTransport(t){return Cn.fromNullable(this._transports.get(t))}getAllTransports(){return Array.from(this._transports.values())}closeConnection(t){this.getTransport(t.transport).map(r=>r.disconnect({connectedDevice:t}))}};hO=eB([Et(),qs(0,tt(Ia.TransportsInput)),qs(1,tt(Ia.DmkConfig)),qs(2,tt(Er.LoggerPublisherServiceFactory)),qs(3,tt(bz.DeviceModelDataSource)),qs(4,tt(fn.ApduSenderServiceFactory)),qs(5,tt(fn.ApduReceiverServiceFactory))],hO);const tB={ADD_LOG:"addLog"};function rB(e){return{startListeningCommand:()=>e.sendMessage(Go.START_LISTENING_DEVICES,"{}"),stopListeningCommand:()=>e.sendMessage(Go.STOP_LISTENING_DEVICES,"{}"),startDiscoveringCommand:()=>e.sendMessage(Go.START_DISCOVERING,"{}"),stopDiscoveringCommand:()=>e.sendMessage(Go.STOP_DISCOVERING,"{}"),connectDeviceCommand:(t,r)=>e.sendMessage(Go.CONNECT_DEVICE,JSON.stringify({deviceId:t,sessionRefresherOptions:r}))}}function nB(e){return{getProviderCommand:()=>e.sendMessage(Go.GET_PROVIDER,"{}"),setProviderCommand:t=>e.sendMessage(Go.SET_PROVIDER,JSON.stringify({provider:t}))}}let iB=0;function oB(e){return{sendApduCommand:(t,r)=>{const n=`apdu-${++iB}`,i=r.match(/.{1,2}/g)?.map(o=>parseInt(o,16))||[];return e.sendMessage(Go.SEND_APDU,JSON.stringify({sessionId:t,apdu:i,requestId:n})),n}}}function aB(e){if(e.type!==tB.ADD_LOG)return null;const{timestamp:t,tag:r,verbosity:n,message:i,payloadJSON:o}=JSON.parse(e.payload);return{timestamp:t,tag:r,verbosity:n,message:i,payloadJSON:o,payload:JSON.parse(o)}}function sB(e,t){try{const{module:r}=JSON.parse(e);t(n=>new Set([...n,r]))}catch(r){console.error("Failed to parse moduleConnected payload",r)}}function lB(e,t,r){const n=aB({type:e,payload:t});return n!==null?(r(i=>[...i,n]),!0):!1}function uB(e,t){try{const r=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse connectedDevicesUpdate payload",r)}}function cB(e,t){try{const{sessionId:r,state:n}=JSON.parse(e);t(i=>new Map(i).set(r,n))}catch(r){console.error("Failed to parse deviceSessionStateUpdate payload",r)}}function fB(e,t){try{const r=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse discoveredDevicesUpdate payload",r)}}function dB(e,t){try{const{provider:r}=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse providerValue payload",r)}}function pB(e,t){try{const r=JSON.parse(e);t(n=>new Map(n).set(r.requestId,r))}catch(r){console.error("Failed to parse apduResponse payload",r)}}function hB(e){const[t,r]=E.useState([]),[n,i]=E.useState([]),[o,s]=E.useState([]),[u,c]=E.useState(new Set),[f,d]=E.useState([]),[g,h]=E.useState(new Map),[y,m]=E.useState([]),[S,b]=E.useState(!1),[C,x]=E.useState(!1),[$,T]=E.useState(null),[_,A]=E.useState(new Map),O=E.useMemo(()=>({...e,sendMessage:(M,J)=>{e.sendMessage(M,J),i(U=>[...U,{type:M,payload:J}])}}),[e]);E.useEffect(()=>{const{unsubscribe:M}=e.listenToMessages((J,U)=>{switch(r(D=>[...D,{type:J,payload:U}]),J){case I3:sB(U,c);break;case vu.CONNECTED_DEVICES_UPDATE:uB(U,d);break;case vu.DEVICE_SESSION_STATE_UPDATE:cB(U,h);break;case vu.DISCOVERED_DEVICES_UPDATE:fB(U,m);break;case vu.PROVIDER_VALUE:dB(U,T);break;case vu.APDU_RESPONSE:pB(U,A);break;default:lB(J,U,s);break}});return M},[e]);const I=E.useMemo(()=>rB(O),[O]),L=E.useMemo(()=>nB(O),[O]),F=E.useMemo(()=>oB(O),[O]),W=E.useCallback(()=>{b(!0),m([]),I.startListeningCommand()},[I]),z=E.useCallback(()=>{b(!1),m([]),I.stopListeningCommand()},[I]),B=E.useCallback(()=>{x(!0),m([]),I.startDiscoveringCommand()},[I]),j=E.useCallback(()=>{x(!1),m([]),I.stopDiscoveringCommand()},[I]),N=E.useCallback(()=>{s([])},[]),X=u.has(aC.LOGGER),q=u.has(aC.DMK_INSPECTOR);return{receivedMessages:t,sentMessages:n,logs:o,connectedModules:u,connectedDevices:f,sessionStates:g,discoveredDevices:y,isListening:S,isActivelyDiscovering:C,isLoggerConnected:X,isInspectorConnected:q,providerValue:$,apduResponses:_,sendMessage:O.sendMessage,clearLogs:N,startListening:W,stopListening:z,startDiscovering:B,stopDiscovering:j,connectDevice:I.connectDeviceCommand,getProvider:L.getProviderCommand,setProvider:L.setProviderCommand,sendApdu:F.sendApduCommand}}const gB=we.div`
528
+ `+ee.prev}function Y(V,ee){var Re=K(V),le=[];if(Re){le.length=V.length;for(var fe=0;fe<V.length;fe++)le[fe]=$e(V,fe)?ee(V[fe],V):""}var ve=typeof z=="function"?z(V):[],Ae;if(j){Ae={};for(var Me=0;Me<ve.length;Me++)Ae["$"+ve[Me]]=ve[Me]}for(var ze in V)$e(V,ze)&&(Re&&String(Number(ze))===ze&&ze<V.length||j&&Ae["$"+ze]instanceof Symbol||(A.call(/[^\w$]/,ze)?le.push(ee(ze,V)+": "+ee(V[ze],V)):le.push(ze+": "+ee(V[ze],V))));if(typeof z=="function")for(var Je=0;Je<ve.length;Je++)X.call(V,ve[Je])&&le.push("["+ee(ve[Je])+"]: "+ee(V[ve[Je]],V));return le}return nm}var im,SR;function b8(){if(SR)return im;SR=1;var e=Ip(),t=Ll(),r=function(u,c,f){for(var d=u,g;(g=d.next)!=null;d=g)if(g.key===c)return d.next=g.next,f||(g.next=u.next,u.next=g),g},n=function(u,c){if(u){var f=r(u,c);return f&&f.value}},i=function(u,c,f){var d=r(u,c);d?d.value=f:u.next={key:c,next:u.next,value:f}},o=function(u,c){return u?!!r(u,c):!1},s=function(u,c){if(u)return r(u,c,!0)};return im=function(){var c,f={assert:function(d){if(!f.has(d))throw new t("Side channel does not contain "+e(d))},delete:function(d){var g=c&&c.next,h=s(c,d);return h&&g&&g===h&&(c=void 0),!!h},get:function(d){return n(c,d)},has:function(d){return o(c,d)},set:function(d,g){c||(c={next:void 0}),i(c,d,g)}};return f},im}var om,wR;function DI(){return wR||(wR=1,om=Object),om}var am,xR;function S8(){return xR||(xR=1,am=Error),am}var sm,ER;function w8(){return ER||(ER=1,sm=EvalError),sm}var lm,CR;function x8(){return CR||(CR=1,lm=RangeError),lm}var um,_R;function E8(){return _R||(_R=1,um=ReferenceError),um}var cm,RR;function C8(){return RR||(RR=1,cm=SyntaxError),cm}var fm,OR;function _8(){return OR||(OR=1,fm=URIError),fm}var dm,TR;function R8(){return TR||(TR=1,dm=Math.abs),dm}var pm,$R;function O8(){return $R||($R=1,pm=Math.floor),pm}var hm,AR;function T8(){return AR||(AR=1,hm=Math.max),hm}var gm,IR;function $8(){return IR||(IR=1,gm=Math.min),gm}var vm,PR;function A8(){return PR||(PR=1,vm=Math.pow),vm}var mm,kR;function I8(){return kR||(kR=1,mm=Math.round),mm}var ym,MR;function P8(){return MR||(MR=1,ym=Number.isNaN||function(t){return t!==t}),ym}var bm,DR;function k8(){if(DR)return bm;DR=1;var e=P8();return bm=function(r){return e(r)||r===0?r:r<0?-1:1},bm}var Sm,LR;function M8(){return LR||(LR=1,Sm=Object.getOwnPropertyDescriptor),Sm}var wm,FR;function LI(){if(FR)return wm;FR=1;var e=M8();if(e)try{e([],"length")}catch{e=null}return wm=e,wm}var xm,NR;function D8(){if(NR)return xm;NR=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return xm=e,xm}var Em,jR;function L8(){return jR||(jR=1,Em=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0}),Em}var Cm,zR;function F8(){if(zR)return Cm;zR=1;var e=typeof Symbol<"u"&&Symbol,t=L8();return Cm=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Cm}var _m,BR;function FI(){return BR||(BR=1,_m=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),_m}var Rm,VR;function NI(){if(VR)return Rm;VR=1;var e=DI();return Rm=e.getPrototypeOf||null,Rm}var Om,HR;function N8(){if(HR)return Om;HR=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(c,f){for(var d=[],g=0;g<c.length;g+=1)d[g]=c[g];for(var h=0;h<f.length;h+=1)d[h+c.length]=f[h];return d},o=function(c,f){for(var d=[],g=f,h=0;g<c.length;g+=1,h+=1)d[h]=c[g];return d},s=function(u,c){for(var f="",d=0;d<u.length;d+=1)f+=u[d],d+1<u.length&&(f+=c);return f};return Om=function(c){var f=this;if(typeof f!="function"||t.apply(f)!==n)throw new TypeError(e+f);for(var d=o(arguments,1),g,h=function(){if(this instanceof g){var C=f.apply(this,i(d,arguments));return Object(C)===C?C:this}return f.apply(c,i(d,arguments))},y=r(0,f.length-d.length),m=[],S=0;S<y;S++)m[S]="$"+S;if(g=Function("binder","return function ("+s(m,",")+"){ return binder.apply(this,arguments); }")(h),f.prototype){var b=function(){};b.prototype=f.prototype,g.prototype=new b,b.prototype=null}return g},Om}var Tm,UR;function Pp(){if(UR)return Tm;UR=1;var e=N8();return Tm=Function.prototype.bind||e,Tm}var $m,WR;function vb(){return WR||(WR=1,$m=Function.prototype.call),$m}var Am,qR;function jI(){return qR||(qR=1,Am=Function.prototype.apply),Am}var Im,GR;function j8(){return GR||(GR=1,Im=typeof Reflect<"u"&&Reflect&&Reflect.apply),Im}var Pm,XR;function z8(){if(XR)return Pm;XR=1;var e=Pp(),t=jI(),r=vb(),n=j8();return Pm=n||e.call(r,t),Pm}var km,KR;function zI(){if(KR)return km;KR=1;var e=Pp(),t=Ll(),r=vb(),n=z8();return km=function(o){if(o.length<1||typeof o[0]!="function")throw new t("a function is required");return n(e,r,o)},km}var Mm,YR;function B8(){if(YR)return Mm;YR=1;var e=zI(),t=LI(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Mm=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(u){return o(u==null?u:i(u))}:!1,Mm}var Dm,QR;function V8(){if(QR)return Dm;QR=1;var e=FI(),t=NI(),r=B8();return Dm=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,Dm}var Lm,JR;function H8(){if(JR)return Lm;JR=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Pp();return Lm=r.call(e,t),Lm}var Fm,ZR;function mb(){if(ZR)return Fm;ZR=1;var e,t=DI(),r=S8(),n=w8(),i=x8(),o=E8(),s=C8(),u=Ll(),c=_8(),f=R8(),d=O8(),g=T8(),h=$8(),y=A8(),m=I8(),S=k8(),b=Function,C=function(be){try{return b('"use strict"; return ('+be+").constructor;")()}catch{}},x=LI(),$=D8(),T=function(){throw new u},_=x?(function(){try{return arguments.callee,T}catch{try{return x(arguments,"callee").get}catch{return T}}})():T,A=F8()(),O=V8(),I=NI(),L=FI(),F=jI(),W=vb(),z={},B=typeof Uint8Array>"u"||!O?e:O(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&O?O([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":z,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&O?O(O([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!O?e:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!O?e:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&O?O(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":_,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":F,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":I,"%Math.abs%":f,"%Math.floor%":d,"%Math.max%":g,"%Math.min%":h,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":S,"%Reflect.getPrototypeOf%":L};if(O)try{null.error}catch(be){var N=O(O(be));j["%Error.prototype%"]=N}var X=function be(he){var xe;if(he==="%AsyncFunction%")xe=C("async function () {}");else if(he==="%GeneratorFunction%")xe=C("function* () {}");else if(he==="%AsyncGeneratorFunction%")xe=C("async function* () {}");else if(he==="%AsyncGenerator%"){var Se=be("%AsyncGeneratorFunction%");Se&&(xe=Se.prototype)}else if(he==="%AsyncIteratorPrototype%"){var Oe=be("%AsyncGenerator%");Oe&&O&&(xe=O(Oe.prototype))}return j[he]=xe,xe},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=Pp(),J=H8(),U=M.call(W,Array.prototype.concat),D=M.call(F,Array.prototype.splice),P=M.call(W,String.prototype.replace),G=M.call(W,String.prototype.slice),Z=M.call(W,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,ye=function(he){var xe=G(he,0,1),Se=G(he,-1);if(xe==="%"&&Se!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Se==="%"&&xe!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Oe=[];return P(he,te,function(Ee,_e,$e,Pe){Oe[Oe.length]=$e?P(Pe,K,"$1"):_e||Ee}),Oe},ae=function(he,xe){var Se=he,Oe;if(J(q,Se)&&(Oe=q[Se],Se="%"+Oe[0]+"%"),J(j,Se)){var Ee=j[Se];if(Ee===z&&(Ee=X(Se)),typeof Ee>"u"&&!xe)throw new u("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:Oe,name:Se,value:Ee}}throw new s("intrinsic "+he+" does not exist!")};return Fm=function(he,xe){if(typeof he!="string"||he.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof xe!="boolean")throw new u('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,he)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Se=ye(he),Oe=Se.length>0?Se[0]:"",Ee=ae("%"+Oe+"%",xe),_e=Ee.name,$e=Ee.value,Pe=!1,qe=Ee.alias;qe&&(Oe=qe[0],D(Se,U([0,1],qe)));for(var Qe=1,Ne=!0;Qe<Se.length;Qe+=1){var je=Se[Qe],Ke=G(je,0,1),Ve=G(je,-1);if((Ke==='"'||Ke==="'"||Ke==="`"||Ve==='"'||Ve==="'"||Ve==="`")&&Ke!==Ve)throw new s("property names with quotes must have matching quotes");if((je==="constructor"||!Ne)&&(Pe=!0),Oe+="."+je,_e="%"+Oe+"%",J(j,_e))$e=j[_e];else if($e!=null){if(!(je in $e)){if(!xe)throw new u("base intrinsic for "+he+" exists, but the property is not available.");return}if(x&&Qe+1>=Se.length){var Ce=x($e,je);Ne=!!Ce,Ne&&"get"in Ce&&!("originalValue"in Ce.get)?$e=Ce.get:$e=$e[je]}else Ne=J($e,je),$e=$e[je];Ne&&!Pe&&(j[_e]=$e)}}return $e},Fm}var Nm,eO;function BI(){if(eO)return Nm;eO=1;var e=mb(),t=zI(),r=t([e("%String.prototype.indexOf%")]);return Nm=function(i,o){var s=e(i,!!o);return typeof s=="function"&&r(i,".prototype.")>-1?t([s]):s},Nm}var jm,tO;function VI(){if(tO)return jm;tO=1;var e=mb(),t=BI(),r=Ip(),n=Ll(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),u=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),f=t("Map.prototype.size",!0);return jm=!!i&&function(){var g,h={assert:function(y){if(!h.has(y))throw new n("Side channel does not contain "+r(y))},delete:function(y){if(g){var m=c(g,y);return f(g)===0&&(g=void 0),m}return!1},get:function(y){if(g)return o(g,y)},has:function(y){return g?u(g,y):!1},set:function(y,m){g||(g=new i),s(g,y,m)}};return h},jm}var zm,rO;function U8(){if(rO)return zm;rO=1;var e=mb(),t=BI(),r=Ip(),n=VI(),i=Ll(),o=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),u=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),f=t("WeakMap.prototype.delete",!0);return zm=o?(function(){var g,h,y={assert:function(m){if(!y.has(m))throw new i("Side channel does not contain "+r(m))},delete:function(m){if(o&&m&&(typeof m=="object"||typeof m=="function")){if(g)return f(g,m)}else if(n&&h)return h.delete(m);return!1},get:function(m){return o&&m&&(typeof m=="object"||typeof m=="function")&&g?s(g,m):h&&h.get(m)},has:function(m){return o&&m&&(typeof m=="object"||typeof m=="function")&&g?c(g,m):!!h&&h.has(m)},set:function(m,S){o&&m&&(typeof m=="object"||typeof m=="function")?(g||(g=new o),u(g,m,S)):n&&(h||(h=n()),h.set(m,S))}};return y}):n,zm}var Bm,nO;function HI(){if(nO)return Bm;nO=1;var e=Ll(),t=Ip(),r=b8(),n=VI(),i=U8(),o=i||n||r;return Bm=function(){var u,c={assert:function(f){if(!c.has(f))throw new e("Side channel does not contain "+t(f))},delete:function(f){return!!u&&u.delete(f)},get:function(f){return u&&u.get(f)},has:function(f){return!!u&&u.has(f)},set:function(f,d){u||(u=o()),u.set(f,d)}};return c},Bm}var Vm,iO;function yb(){if(iO)return Vm;iO=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Vm={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Vm}var Hm,oO;function UI(){if(oO)return Hm;oO=1;var e=yb(),t=HI(),r=Object.prototype.hasOwnProperty,n=Array.isArray,i=t(),o=function(O,I){return i.set(O,I),O},s=function(O){return i.has(O)},u=function(O){return i.get(O)},c=function(O,I){i.set(O,I)},f=(function(){for(var A=[],O=0;O<256;++O)A.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return A})(),d=function(O){for(;O.length>1;){var I=O.pop(),L=I.obj[I.prop];if(n(L)){for(var F=[],W=0;W<L.length;++W)typeof L[W]<"u"&&F.push(L[W]);I.obj[I.prop]=F}}},g=function(O,I){for(var L=I&&I.plainObjects?{__proto__:null}:{},F=0;F<O.length;++F)typeof O[F]<"u"&&(L[F]=O[F]);return L},h=function A(O,I,L){if(!I)return O;if(typeof I!="object"&&typeof I!="function"){if(n(O))O.push(I);else if(O&&typeof O=="object")if(s(O)){var F=u(O)+1;O[F]=I,c(O,F)}else(L&&(L.plainObjects||L.allowPrototypes)||!r.call(Object.prototype,I))&&(O[I]=!0);else return[O,I];return O}if(!O||typeof O!="object"){if(s(I)){for(var W=Object.keys(I),z=L&&L.plainObjects?{__proto__:null,0:O}:{0:O},B=0;B<W.length;B++){var j=parseInt(W[B],10);z[j+1]=I[W[B]]}return o(z,u(I)+1)}return[O].concat(I)}var N=O;return n(O)&&!n(I)&&(N=g(O,L)),n(O)&&n(I)?(I.forEach(function(X,q){if(r.call(O,q)){var M=O[q];M&&typeof M=="object"&&X&&typeof X=="object"?O[q]=A(M,X,L):O.push(X)}else O[q]=X}),O):Object.keys(I).reduce(function(X,q){var M=I[q];return r.call(X,q)?X[q]=A(X[q],M,L):X[q]=M,X},N)},y=function(O,I){return Object.keys(I).reduce(function(L,F){return L[F]=I[F],L},O)},m=function(A,O,I){var L=A.replace(/\+/g," ");if(I==="iso-8859-1")return L.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(L)}catch{return L}},S=1024,b=function(O,I,L,F,W){if(O.length===0)return O;var z=O;if(typeof O=="symbol"?z=Symbol.prototype.toString.call(O):typeof O!="string"&&(z=String(O)),L==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var B="",j=0;j<z.length;j+=S){for(var N=z.length>=S?z.slice(j,j+S):z,X=[],q=0;q<N.length;++q){var M=N.charCodeAt(q);if(M===45||M===46||M===95||M===126||M>=48&&M<=57||M>=65&&M<=90||M>=97&&M<=122||W===e.RFC1738&&(M===40||M===41)){X[X.length]=N.charAt(q);continue}if(M<128){X[X.length]=f[M];continue}if(M<2048){X[X.length]=f[192|M>>6]+f[128|M&63];continue}if(M<55296||M>=57344){X[X.length]=f[224|M>>12]+f[128|M>>6&63]+f[128|M&63];continue}q+=1,M=65536+((M&1023)<<10|N.charCodeAt(q)&1023),X[X.length]=f[240|M>>18]+f[128|M>>12&63]+f[128|M>>6&63]+f[128|M&63]}B+=X.join("")}return B},C=function(O){for(var I=[{obj:{o:O},prop:"o"}],L=[],F=0;F<I.length;++F)for(var W=I[F],z=W.obj[W.prop],B=Object.keys(z),j=0;j<B.length;++j){var N=B[j],X=z[N];typeof X=="object"&&X!==null&&L.indexOf(X)===-1&&(I.push({obj:z,prop:N}),L.push(X))}return d(I),O},x=function(O){return Object.prototype.toString.call(O)==="[object RegExp]"},$=function(O){return!O||typeof O!="object"?!1:!!(O.constructor&&O.constructor.isBuffer&&O.constructor.isBuffer(O))},T=function(O,I,L,F){if(s(O)){var W=u(O)+1;return O[W]=I,c(O,W),O}var z=[].concat(O,I);return z.length>L?o(g(z,{plainObjects:F}),z.length-1):z},_=function(O,I){if(n(O)){for(var L=[],F=0;F<O.length;F+=1)L.push(I(O[F]));return L}return I(O)};return Hm={arrayToObject:g,assign:y,combine:T,compact:C,decode:m,encode:b,isBuffer:$,isOverflow:s,isRegExp:x,maybeMap:_,merge:h},Hm}var Um,aO;function W8(){if(aO)return Um;aO=1;var e=HI(),t=UI(),r=yb(),n=Object.prototype.hasOwnProperty,i={brackets:function(b){return b+"[]"},comma:"comma",indices:function(b,C){return b+"["+C+"]"},repeat:function(b){return b}},o=Array.isArray,s=Array.prototype.push,u=function(S,b){s.apply(S,o(b)?b:[b])},c=Date.prototype.toISOString,f=r.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:r.formatters[f],indices:!1,serializeDate:function(b){return c.call(b)},skipNulls:!1,strictNullHandling:!1},g=function(b){return typeof b=="string"||typeof b=="number"||typeof b=="boolean"||typeof b=="symbol"||typeof b=="bigint"},h={},y=function S(b,C,x,$,T,_,A,O,I,L,F,W,z,B,j,N,X,q){for(var M=b,J=q,U=0,D=!1;(J=J.get(h))!==void 0&&!D;){var P=J.get(b);if(U+=1,typeof P<"u"){if(P===U)throw new RangeError("Cyclic object value");D=!0}typeof J.get(h)>"u"&&(U=0)}if(typeof L=="function"?M=L(C,M):M instanceof Date?M=z(M):x==="comma"&&o(M)&&(M=t.maybeMap(M,function(_e){return _e instanceof Date?z(_e):_e})),M===null){if(_)return I&&!N?I(C,d.encoder,X,"key",B):C;M=""}if(g(M)||t.isBuffer(M)){if(I){var G=N?C:I(C,d.encoder,X,"key",B);return[j(G)+"="+j(I(M,d.encoder,X,"value",B))]}return[j(C)+"="+j(String(M))]}var Z=[];if(typeof M>"u")return Z;var te;if(x==="comma"&&o(M))N&&I&&(M=t.maybeMap(M,I)),te=[{value:M.length>0?M.join(",")||null:void 0}];else if(o(L))te=L;else{var K=Object.keys(M);te=F?K.sort(F):K}var ye=O?String(C).replace(/\./g,"%2E"):String(C),ae=$&&o(M)&&M.length===1?ye+"[]":ye;if(T&&o(M)&&M.length===0)return ae+"[]";for(var be=0;be<te.length;++be){var he=te[be],xe=typeof he=="object"&&he&&typeof he.value<"u"?he.value:M[he];if(!(A&&xe===null)){var Se=W&&O?String(he).replace(/\./g,"%2E"):String(he),Oe=o(M)?typeof x=="function"?x(ae,Se):ae:ae+(W?"."+Se:"["+Se+"]");q.set(b,U);var Ee=e();Ee.set(h,q),u(Z,S(xe,Oe,x,$,T,_,A,O,x==="comma"&&N&&o(M)?null:I,L,F,W,z,B,j,N,X,Ee))}}return Z},m=function(b){if(!b)return d;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.encodeDotInKeys<"u"&&typeof b.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(b.encoder!==null&&typeof b.encoder<"u"&&typeof b.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=b.charset||d.charset;if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var x=r.default;if(typeof b.format<"u"){if(!n.call(r.formatters,b.format))throw new TypeError("Unknown format option provided.");x=b.format}var $=r.formatters[x],T=d.filter;(typeof b.filter=="function"||o(b.filter))&&(T=b.filter);var _;if(b.arrayFormat in i?_=b.arrayFormat:"indices"in b?_=b.indices?"indices":"repeat":_=d.arrayFormat,"commaRoundTrip"in b&&typeof b.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof b.allowDots>"u"?b.encodeDotInKeys===!0?!0:d.allowDots:!!b.allowDots;return{addQueryPrefix:typeof b.addQueryPrefix=="boolean"?b.addQueryPrefix:d.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:_,charset:C,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!b.commaRoundTrip,delimiter:typeof b.delimiter>"u"?d.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:d.encode,encodeDotInKeys:typeof b.encodeDotInKeys=="boolean"?b.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof b.encoder=="function"?b.encoder:d.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:d.encodeValuesOnly,filter:T,format:x,formatter:$,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:d.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:d.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:d.strictNullHandling}};return Um=function(S,b){var C=S,x=m(b),$,T;typeof x.filter=="function"?(T=x.filter,C=T("",C)):o(x.filter)&&(T=x.filter,$=T);var _=[];if(typeof C!="object"||C===null)return"";var A=i[x.arrayFormat],O=A==="comma"&&x.commaRoundTrip;$||($=Object.keys(C)),x.sort&&$.sort(x.sort);for(var I=e(),L=0;L<$.length;++L){var F=$[L],W=C[F];x.skipNulls&&W===null||u(_,y(W,F,A,O,x.allowEmptyArrays,x.strictNullHandling,x.skipNulls,x.encodeDotInKeys,x.encode?x.encoder:null,x.filter,x.sort,x.allowDots,x.serializeDate,x.format,x.formatter,x.encodeValuesOnly,x.charset,I))}var z=_.join(x.delimiter),B=x.addQueryPrefix===!0?"?":"";return x.charsetSentinel&&(x.charset==="iso-8859-1"?B+="utf8=%26%2310003%3B&":B+="utf8=%E2%9C%93&"),z.length>0?B+z:""},Um}var Wm,sO;function q8(){if(sO)return Wm;sO=1;var e=UI(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(y){return y.replace(/&#(\d+);/g,function(m,S){return String.fromCharCode(parseInt(S,10))})},o=function(y,m,S){if(y&&typeof y=="string"&&m.comma&&y.indexOf(",")>-1)return y.split(",");if(m.throwOnLimitExceeded&&S>=m.arrayLimit)throw new RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(m.arrayLimit===1?"":"s")+" allowed in an array.");return y},s="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=function(m,S){var b={__proto__:null},C=S.ignoreQueryPrefix?m.replace(/^\?/,""):m;C=C.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var x=S.parameterLimit===1/0?void 0:S.parameterLimit,$=C.split(S.delimiter,S.throwOnLimitExceeded?x+1:x);if(S.throwOnLimitExceeded&&$.length>x)throw new RangeError("Parameter limit exceeded. Only "+x+" parameter"+(x===1?"":"s")+" allowed.");var T=-1,_,A=S.charset;if(S.charsetSentinel)for(_=0;_<$.length;++_)$[_].indexOf("utf8=")===0&&($[_]===u?A="utf-8":$[_]===s&&(A="iso-8859-1"),T=_,_=$.length);for(_=0;_<$.length;++_)if(_!==T){var O=$[_],I=O.indexOf("]="),L=I===-1?O.indexOf("="):I+1,F,W;if(L===-1?(F=S.decoder(O,n.decoder,A,"key"),W=S.strictNullHandling?null:""):(F=S.decoder(O.slice(0,L),n.decoder,A,"key"),F!==null&&(W=e.maybeMap(o(O.slice(L+1),S,r(b[F])?b[F].length:0),function(B){return S.decoder(B,n.decoder,A,"value")}))),W&&S.interpretNumericEntities&&A==="iso-8859-1"&&(W=i(String(W))),O.indexOf("[]=")>-1&&(W=r(W)?[W]:W),F!==null){var z=t.call(b,F);z&&S.duplicates==="combine"?b[F]=e.combine(b[F],W,S.arrayLimit,S.plainObjects):(!z||S.duplicates==="last")&&(b[F]=W)}}return b},f=function(y,m,S,b){var C=0;if(y.length>0&&y[y.length-1]==="[]"){var x=y.slice(0,-1).join("");C=Array.isArray(m)&&m[x]?m[x].length:0}for(var $=b?m:o(m,S,C),T=y.length-1;T>=0;--T){var _,A=y[T];if(A==="[]"&&S.parseArrays)e.isOverflow($)?_=$:_=S.allowEmptyArrays&&($===""||S.strictNullHandling&&$===null)?[]:e.combine([],$,S.arrayLimit,S.plainObjects);else{_=S.plainObjects?{__proto__:null}:{};var O=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,I=S.decodeDotInKeys?O.replace(/%2E/g,"."):O,L=parseInt(I,10);!S.parseArrays&&I===""?_={0:$}:!isNaN(L)&&A!==I&&String(L)===I&&L>=0&&S.parseArrays&&L<=S.arrayLimit?(_=[],_[L]=$):I!=="__proto__"&&(_[I]=$)}$=_}return $},d=function(m,S){var b=S.allowDots?m.replace(/\.([^.[]+)/g,"[$1]"):m;if(S.depth<=0)return!S.plainObjects&&t.call(Object.prototype,b)&&!S.allowPrototypes?void 0:[b];var C=/(\[[^[\]]*])/,x=/(\[[^[\]]*])/g,$=C.exec(b),T=$?b.slice(0,$.index):b,_=[];if(T){if(!S.plainObjects&&t.call(Object.prototype,T)&&!S.allowPrototypes)return;_.push(T)}for(var A=0;($=x.exec(b))!==null&&A<S.depth;){A+=1;var O=$[1].slice(1,-1);if(!S.plainObjects&&t.call(Object.prototype,O)&&!S.allowPrototypes)return;_.push($[1])}if($){if(S.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+S.depth+" and strictDepth is true");_.push("["+b.slice($.index)+"]")}return _},g=function(m,S,b,C){if(m){var x=d(m,b);if(x)return f(x,S,b,C)}},h=function(m){if(!m)return n;if(typeof m.allowEmptyArrays<"u"&&typeof m.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof m.decodeDotInKeys<"u"&&typeof m.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(m.decoder!==null&&typeof m.decoder<"u"&&typeof m.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof m.charset<"u"&&m.charset!=="utf-8"&&m.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof m.throwOnLimitExceeded<"u"&&typeof m.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof m.charset>"u"?n.charset:m.charset,b=typeof m.duplicates>"u"?n.duplicates:m.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var C=typeof m.allowDots>"u"?m.decodeDotInKeys===!0?!0:n.allowDots:!!m.allowDots;return{allowDots:C,allowEmptyArrays:typeof m.allowEmptyArrays=="boolean"?!!m.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof m.allowPrototypes=="boolean"?m.allowPrototypes:n.allowPrototypes,allowSparse:typeof m.allowSparse=="boolean"?m.allowSparse:n.allowSparse,arrayLimit:typeof m.arrayLimit=="number"?m.arrayLimit:n.arrayLimit,charset:S,charsetSentinel:typeof m.charsetSentinel=="boolean"?m.charsetSentinel:n.charsetSentinel,comma:typeof m.comma=="boolean"?m.comma:n.comma,decodeDotInKeys:typeof m.decodeDotInKeys=="boolean"?m.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof m.decoder=="function"?m.decoder:n.decoder,delimiter:typeof m.delimiter=="string"||e.isRegExp(m.delimiter)?m.delimiter:n.delimiter,depth:typeof m.depth=="number"||m.depth===!1?+m.depth:n.depth,duplicates:b,ignoreQueryPrefix:m.ignoreQueryPrefix===!0,interpretNumericEntities:typeof m.interpretNumericEntities=="boolean"?m.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof m.parameterLimit=="number"?m.parameterLimit:n.parameterLimit,parseArrays:m.parseArrays!==!1,plainObjects:typeof m.plainObjects=="boolean"?m.plainObjects:n.plainObjects,strictDepth:typeof m.strictDepth=="boolean"?!!m.strictDepth:n.strictDepth,strictNullHandling:typeof m.strictNullHandling=="boolean"?m.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof m.throwOnLimitExceeded=="boolean"?m.throwOnLimitExceeded:!1}};return Wm=function(y,m){var S=h(m);if(y===""||y===null||typeof y>"u")return S.plainObjects?{__proto__:null}:{};for(var b=typeof y=="string"?c(y,S):y,C=S.plainObjects?{__proto__:null}:{},x=Object.keys(b),$=0;$<x.length;++$){var T=x[$],_=g(T,b[T],S,typeof y=="string");C=e.merge(C,_,S)}return S.allowSparse===!0?C:e.compact(C)},Wm}var qm,lO;function G8(){if(lO)return qm;lO=1;var e=W8(),t=q8(),r=yb();return qm={formats:r,parse:t,stringify:e},qm}var uO;function X8(){if(uO)return Ya;uO=1;var e=g8();function t(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
529
+ `," "],s=["{","}","|","\\","^","`"].concat(o),u=["'"].concat(s),c=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=G8();function C(_,A,O){if(_&&typeof _=="object"&&_ instanceof t)return _;var I=new t;return I.parse(_,A,O),I}t.prototype.parse=function(_,A,O){if(typeof _!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var I=_.indexOf("?"),L=I!==-1&&I<_.indexOf("#")?"?":"#",F=_.split(L),W=/\\/g;F[0]=F[0].replace(W,"/"),_=F.join(L);var z=_;if(z=z.trim(),!O&&_.split("#").length===1){var B=i.exec(z);if(B)return this.path=z,this.href=z,this.pathname=B[1],B[2]?(this.search=B[2],A?this.query=b.parse(this.search.substr(1)):this.query=this.search.substr(1)):A&&(this.search="",this.query={}),this}var j=r.exec(z);if(j){j=j[0];var N=j.toLowerCase();this.protocol=N,z=z.substr(j.length)}if(O||j||z.match(/^\/\/[^@/]+@[^@/]+/)){var X=z.substr(0,2)==="//";X&&!(j&&m[j])&&(z=z.substr(2),this.slashes=!0)}if(!m[j]&&(X||j&&!S[j])){for(var q=-1,M=0;M<f.length;M++){var J=z.indexOf(f[M]);J!==-1&&(q===-1||J<q)&&(q=J)}var U,D;q===-1?D=z.lastIndexOf("@"):D=z.lastIndexOf("@",q),D!==-1&&(U=z.slice(0,D),z=z.slice(D+1),this.auth=decodeURIComponent(U)),q=-1;for(var M=0;M<c.length;M++){var J=z.indexOf(c[M]);J!==-1&&(q===-1||J<q)&&(q=J)}q===-1&&(q=z.length),this.host=z.slice(0,q),z=z.slice(q),this.parseHost(),this.hostname=this.hostname||"";var P=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!P)for(var G=this.hostname.split(/\./),M=0,Z=G.length;M<Z;M++){var te=G[M];if(te&&!te.match(g)){for(var K="",ye=0,ae=te.length;ye<ae;ye++)te.charCodeAt(ye)>127?K+="x":K+=te[ye];if(!K.match(g)){var be=G.slice(0,M),he=G.slice(M+1),xe=te.match(h);xe&&(be.push(xe[1]),he.unshift(xe[2])),he.length&&(z="/"+he.join(".")+z),this.hostname=be.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=e.toASCII(this.hostname));var Se=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Se,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),z[0]!=="/"&&(z="/"+z))}if(!y[N])for(var M=0,Z=u.length;M<Z;M++){var Ee=u[M];if(z.indexOf(Ee)!==-1){var _e=encodeURIComponent(Ee);_e===Ee&&(_e=escape(Ee)),z=z.split(Ee).join(_e)}}var $e=z.indexOf("#");$e!==-1&&(this.hash=z.substr($e),z=z.slice(0,$e));var Pe=z.indexOf("?");if(Pe!==-1?(this.search=z.substr(Pe),this.query=z.substr(Pe+1),A&&(this.query=b.parse(this.query)),z=z.slice(0,Pe)):A&&(this.search="",this.query={}),z&&(this.pathname=z),S[N]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Se=this.pathname||"",qe=this.search||"";this.path=Se+qe}return this.href=this.format(),this};function x(_){return typeof _=="string"&&(_=C(_)),_ instanceof t?_.format():t.prototype.format.call(_)}t.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var A=this.protocol||"",O=this.pathname||"",I=this.hash||"",L=!1,F="";this.host?L=_+this.host:this.hostname&&(L=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(L+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(F=b.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var W=this.search||F&&"?"+F||"";return A&&A.substr(-1)!==":"&&(A+=":"),this.slashes||(!A||S[A])&&L!==!1?(L="//"+(L||""),O&&O.charAt(0)!=="/"&&(O="/"+O)):L||(L=""),I&&I.charAt(0)!=="#"&&(I="#"+I),W&&W.charAt(0)!=="?"&&(W="?"+W),O=O.replace(/[?#]/g,function(z){return encodeURIComponent(z)}),W=W.replace("#","%23"),A+L+O+W+I};function $(_,A){return C(_,!1,!0).resolve(A)}t.prototype.resolve=function(_){return this.resolveObject(C(_,!1,!0)).format()};function T(_,A){return _?C(_,!1,!0).resolveObject(A):A}return t.prototype.resolveObject=function(_){if(typeof _=="string"){var A=new t;A.parse(_,!1,!0),_=A}for(var O=new t,I=Object.keys(this),L=0;L<I.length;L++){var F=I[L];O[F]=this[F]}if(O.hash=_.hash,_.href==="")return O.href=O.format(),O;if(_.slashes&&!_.protocol){for(var W=Object.keys(_),z=0;z<W.length;z++){var B=W[z];B!=="protocol"&&(O[B]=_[B])}return S[O.protocol]&&O.hostname&&!O.pathname&&(O.pathname="/",O.path=O.pathname),O.href=O.format(),O}if(_.protocol&&_.protocol!==O.protocol){if(!S[_.protocol]){for(var j=Object.keys(_),N=0;N<j.length;N++){var X=j[N];O[X]=_[X]}return O.href=O.format(),O}if(O.protocol=_.protocol,!_.host&&!m[_.protocol]){for(var Z=(_.pathname||"").split("/");Z.length&&!(_.host=Z.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),O.pathname=Z.join("/")}else O.pathname=_.pathname;if(O.search=_.search,O.query=_.query,O.host=_.host||"",O.auth=_.auth,O.hostname=_.hostname||_.host,O.port=_.port,O.pathname||O.search){var q=O.pathname||"",M=O.search||"";O.path=q+M}return O.slashes=O.slashes||_.slashes,O.href=O.format(),O}var J=O.pathname&&O.pathname.charAt(0)==="/",U=_.host||_.pathname&&_.pathname.charAt(0)==="/",D=U||J||O.host&&_.pathname,P=D,G=O.pathname&&O.pathname.split("/")||[],Z=_.pathname&&_.pathname.split("/")||[],te=O.protocol&&!S[O.protocol];if(te&&(O.hostname="",O.port=null,O.host&&(G[0]===""?G[0]=O.host:G.unshift(O.host)),O.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(Z[0]===""?Z[0]=_.host:Z.unshift(_.host)),_.host=null),D=D&&(Z[0]===""||G[0]==="")),U)O.host=_.host||_.host===""?_.host:O.host,O.hostname=_.hostname||_.hostname===""?_.hostname:O.hostname,O.search=_.search,O.query=_.query,G=Z;else if(Z.length)G||(G=[]),G.pop(),G=G.concat(Z),O.search=_.search,O.query=_.query;else if(_.search!=null){if(te){O.host=G.shift(),O.hostname=O.host;var K=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;K&&(O.auth=K.shift(),O.hostname=K.shift(),O.host=O.hostname)}return O.search=_.search,O.query=_.query,(O.pathname!==null||O.search!==null)&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!G.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var ye=G.slice(-1)[0],ae=(O.host||_.host||G.length>1)&&(ye==="."||ye==="..")||ye==="",be=0,he=G.length;he>=0;he--)ye=G[he],ye==="."?G.splice(he,1):ye===".."?(G.splice(he,1),be++):be&&(G.splice(he,1),be--);if(!D&&!P)for(;be--;be)G.unshift("..");D&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),ae&&G.join("/").substr(-1)!=="/"&&G.push("");var xe=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(te){O.hostname=xe?"":G.length?G.shift():"",O.host=O.hostname;var K=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;K&&(O.auth=K.shift(),O.hostname=K.shift(),O.host=O.hostname)}return D=D||O.host&&G.length,D&&!xe&&G.unshift(""),G.length>0?O.pathname=G.join("/"):(O.pathname=null,O.path=null),(O.pathname!==null||O.search!==null)&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=_.auth||O.auth,O.slashes=O.slashes||_.slashes,O.href=O.format(),O},t.prototype.parseHost=function(){var _=this.host,A=n.exec(_);A&&(A=A[0],A!==":"&&(this.port=A.substr(1)),_=_.substr(0,_.length-A.length)),_&&(this.hostname=_)},Ya.parse=C,Ya.resolve=$,Ya.resolveObject=T,Ya.format=x,Ya.Url=t,Ya}var K8=X8();const Ws=Ir(K8);var Y8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Q8=(e,t)=>(r,n)=>t(r,n,e);let cO=class{webSocketBaseUrl;constructor({webSocketUrl:t}){this.webSocketBaseUrl=t}genuineCheck(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/genuine`,query:t});return this._connectWebSocket(r)}installApp(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}listInstalledApps(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/apps/list`,query:t});return this._connectWebSocket(r)}uninstallApp(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}updateFirmware(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/install`,query:t});return this._connectWebSocket(r)}updateMcu(t){const r=Ws.format({pathname:`${this.webSocketBaseUrl}/mcu`,query:t});return this._connectWebSocket(r)}_connectWebSocket(t){try{return Jr(new xj(t))}catch(r){return Qr(new Tj(r))}}};cO=Y8([Et(),Q8(0,tt(hb.DmkConfig))],cO);var J8=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},Z8=(e,t)=>(r,n)=>t(r,n,e);let fO=class{constructor(t){this.dataSource=t}genuineCheck(t,r){const n={targetId:t.targetId.toString(),perso:r.perso};return this.dataSource.genuineCheck(n)}installApp(t,r){const{perso:n,firmware:i,firmwareKey:o,hash:s}=r,u={targetId:t.targetId.toString(),perso:n,firmware:i,firmwareKey:o,hash:s};return this.dataSource.installApp(u)}listInstalledApps(t,r){const n={targetId:t.targetId.toString(),perso:r.perso};return this.dataSource.listInstalledApps(n)}uninstallApp(t,r){const{perso:n,delete:i,deleteKey:o,hash:s}=r,u={targetId:t.targetId.toString(),perso:n,firmware:i,firmwareKey:o,hash:s};return this.dataSource.uninstallApp(u)}updateFirmware(t,r){const n={targetId:t.targetId.toString(),perso:r.perso,firmware:r.firmware,firmwareKey:r.firmwareKey};return this.dataSource.updateFirmware(n)}updateMcu(t,r){const n={targetId:t.targetId.toString(),version:r.version};return this.dataSource.updateMcu(n)}};fO=J8([Et(),Z8(0,tt(hb.SecureChannelDataSource))],fO);var eB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},dO=(e,t)=>(r,n)=>t(r,n,e);let pO=class{_sessionService;_logger;constructor(t,r){this._sessionService=t,this._logger=r("SendApduUseCase")}async execute({sessionId:t,apdu:r,abortTimeout:n,triggersDisconnection:i}){return this._sessionService.getDeviceSessionById(t).caseOf({Right:async o=>(await o.sendApdu(r,{abortTimeout:n,triggersDisconnection:i})).caseOf({Right:s=>s,Left:s=>{throw this._logger.error("Error sending APDU",{data:{sessionId:t,apdu:r,error:s}}),s}}),Left:o=>{throw this._logger.error("Error getting deviceSession",{data:{error:o}}),o}})}};pO=eB([Et(),dO(0,tt(fn.DeviceSessionService)),dO(1,tt(Er.LoggerPublisherServiceFactory))],pO);var tB=(e,t,r,n)=>{for(var i=t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(i)||i);return i},qs=(e,t)=>(r,n)=>t(r,n,e);let hO=class{constructor(t,r,n,i,o,s){if(this._config=r,this._loggerModuleFactory=n,this._deviceModelDataSource=i,this._apduSenderServiceFactory=o,this._apduReceiverServiceFactory=s,this._logger=n("TransportService"),t.length===0)throw this._logger.warn("No transports provided, please check your configuration"),new wj("No transports provided, please check your configuration");for(const u of t){const c=this.addTransport(u);if(c.isLeft())throw c.extract()}}_transports=new Map;_logger;addTransport(t){const r=t({deviceModelDataSource:this._deviceModelDataSource,loggerServiceFactory:this._loggerModuleFactory,config:this._config,apduSenderServiceFactory:this._apduSenderServiceFactory,apduReceiverServiceFactory:this._apduReceiverServiceFactory});return this.addTransportInternal(r)}addTransportInternal(t){return this.getTransport(t.getIdentifier()).isJust()?(this._logger.warn(`Transport ${t.getIdentifier()} already exists, please check your configuration`),Qr(new Sj(`Transport ${t.getIdentifier()} already exists, please check your configuration`))):(this._transports.set(t.getIdentifier(),t),Jr(void 0))}getTransport(t){return Cn.fromNullable(this._transports.get(t))}getAllTransports(){return Array.from(this._transports.values())}closeConnection(t){this.getTransport(t.transport).map(r=>r.disconnect({connectedDevice:t}))}};hO=tB([Et(),qs(0,tt(Ia.TransportsInput)),qs(1,tt(Ia.DmkConfig)),qs(2,tt(Er.LoggerPublisherServiceFactory)),qs(3,tt(bz.DeviceModelDataSource)),qs(4,tt(fn.ApduSenderServiceFactory)),qs(5,tt(fn.ApduReceiverServiceFactory))],hO);const rB={ADD_LOG:"addLog"};function nB(e){return{startListeningCommand:()=>e.sendMessage(Go.START_LISTENING_DEVICES,"{}"),stopListeningCommand:()=>e.sendMessage(Go.STOP_LISTENING_DEVICES,"{}"),startDiscoveringCommand:()=>e.sendMessage(Go.START_DISCOVERING,"{}"),stopDiscoveringCommand:()=>e.sendMessage(Go.STOP_DISCOVERING,"{}"),connectDeviceCommand:(t,r)=>e.sendMessage(Go.CONNECT_DEVICE,JSON.stringify({deviceId:t,sessionRefresherOptions:r}))}}function iB(e){return{getProviderCommand:()=>e.sendMessage(Go.GET_PROVIDER,"{}"),setProviderCommand:t=>e.sendMessage(Go.SET_PROVIDER,JSON.stringify({provider:t}))}}let oB=0;function aB(e){return{sendApduCommand:(t,r)=>{const n=`apdu-${++oB}`,i=r.match(/.{1,2}/g)?.map(o=>parseInt(o,16))||[];return e.sendMessage(Go.SEND_APDU,JSON.stringify({sessionId:t,apdu:i,requestId:n})),n}}}function sB(e){if(e.type!==rB.ADD_LOG)return null;const{timestamp:t,tag:r,verbosity:n,message:i,payloadJSON:o}=JSON.parse(e.payload);return{timestamp:t,tag:r,verbosity:n,message:i,payloadJSON:o,payload:JSON.parse(o)}}function lB(e,t){try{const{module:r}=JSON.parse(e);t(n=>new Set([...n,r]))}catch(r){console.error("Failed to parse moduleConnected payload",r)}}function uB(e,t,r){const n=sB({type:e,payload:t});return n!==null?(r(i=>[...i,n]),!0):!1}function cB(e,t){try{const r=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse connectedDevicesUpdate payload",r)}}function fB(e,t){try{const{sessionId:r,state:n}=JSON.parse(e);t(i=>new Map(i).set(r,n))}catch(r){console.error("Failed to parse deviceSessionStateUpdate payload",r)}}function dB(e,t){try{const r=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse discoveredDevicesUpdate payload",r)}}function pB(e,t){try{const{provider:r}=JSON.parse(e);t(r)}catch(r){console.error("Failed to parse providerValue payload",r)}}function hB(e,t){try{const r=JSON.parse(e);t(n=>new Map(n).set(r.requestId,r))}catch(r){console.error("Failed to parse apduResponse payload",r)}}function gB(e){const[t,r]=E.useState([]),[n,i]=E.useState([]),[o,s]=E.useState([]),[u,c]=E.useState(new Set),[f,d]=E.useState([]),[g,h]=E.useState(new Map),[y,m]=E.useState([]),[S,b]=E.useState(!1),[C,x]=E.useState(!1),[$,T]=E.useState(null),[_,A]=E.useState(new Map),O=E.useMemo(()=>({...e,sendMessage:(M,J)=>{e.sendMessage(M,J),i(U=>[...U,{type:M,payload:J}])}}),[e]);E.useEffect(()=>{const{unsubscribe:M}=e.listenToMessages((J,U)=>{switch(r(D=>[...D,{type:J,payload:U}]),J){case I3:lB(U,c);break;case vu.CONNECTED_DEVICES_UPDATE:cB(U,d);break;case vu.DEVICE_SESSION_STATE_UPDATE:fB(U,h);break;case vu.DISCOVERED_DEVICES_UPDATE:dB(U,m);break;case vu.PROVIDER_VALUE:pB(U,T);break;case vu.APDU_RESPONSE:hB(U,A);break;default:uB(J,U,s);break}});return M},[e]);const I=E.useMemo(()=>nB(O),[O]),L=E.useMemo(()=>iB(O),[O]),F=E.useMemo(()=>aB(O),[O]),W=E.useCallback(()=>{b(!0),m([]),I.startListeningCommand()},[I]),z=E.useCallback(()=>{b(!1),m([]),I.stopListeningCommand()},[I]),B=E.useCallback(()=>{x(!0),m([]),I.startDiscoveringCommand()},[I]),j=E.useCallback(()=>{x(!1),m([]),I.stopDiscoveringCommand()},[I]),N=E.useCallback(()=>{s([])},[]),X=u.has(aC.LOGGER),q=u.has(aC.DMK_INSPECTOR);return{receivedMessages:t,sentMessages:n,logs:o,connectedModules:u,connectedDevices:f,sessionStates:g,discoveredDevices:y,isListening:S,isActivelyDiscovering:C,isLoggerConnected:X,isInspectorConnected:q,providerValue:$,apduResponses:_,sendMessage:O.sendMessage,clearLogs:N,startListening:W,stopListening:z,startDiscovering:B,stopDiscovering:j,connectDevice:I.connectDeviceCommand,getProvider:L.getProviderCommand,setProvider:L.setProviderCommand,sendApdu:F.sendApduCommand}}const vB=we.div`
530
530
  display: flex;
531
531
  flex-direction: column;
532
532
  align-items: center;
@@ -534,21 +534,21 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
534
534
  flex: 1;
535
535
  padding: 24px;
536
536
  opacity: 0.6;
537
- `,vB=we.h3`
537
+ `,mB=we.h3`
538
538
  margin: 0 0 16px 0;
539
539
  font-size: 24px;
540
- `,mB=we.p`
540
+ `,yB=we.p`
541
541
  text-align: center;
542
542
  max-width: 500px;
543
543
  margin: 0;
544
- `,yB=we.pre`
544
+ `,bB=we.pre`
545
545
  background: #f5f5f5;
546
546
  padding: 16px;
547
547
  border-radius: 8px;
548
548
  margin-top: 16px;
549
549
  font-size: 12px;
550
550
  overflow: auto;
551
- `,WI=({title:e,description:t,codeExample:r})=>H.jsxs(gB,{children:[H.jsx(vB,{children:e}),H.jsx(mB,{children:t}),H.jsx(yB,{children:r})]}),bB=cn`
551
+ `,WI=({title:e,description:t,codeExample:r})=>H.jsxs(vB,{children:[H.jsx(mB,{children:e}),H.jsx(yB,{children:t}),H.jsx(bB,{children:r})]}),SB=cn`
552
552
  color: white;
553
553
  border: none;
554
554
  border-radius: 4px;
@@ -561,7 +561,7 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
561
561
  opacity: 0.6;
562
562
  }
563
563
  `,tp=we.button`
564
- ${bB}
564
+ ${SB}
565
565
  background: ${({$variant:e})=>{switch(e){case"danger":return"#ff4444";case"success":return"#4CAF50";case"warning":return"#ff9800";case"primary":default:return"#2196F3"}}};
566
566
  padding: ${({$size:e})=>e==="medium"?"8px 16px":"4px 12px"};
567
567
 
@@ -577,12 +577,12 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
577
577
  ${({$variant:e})=>{switch(e){case"discovered":return"#cce5ff";case"disconnected":return"#ddd";default:return"#ddd"}}};
578
578
  background: ${({$variant:e})=>{switch(e){case"discovered":return"#f0f7ff";case"disconnected":return"#f0f0f0";default:return"#fafafa"}}};
579
579
  opacity: ${({$variant:e})=>e==="disconnected"?.6:1};
580
- `,SB=we.div`
580
+ `,wB=we.div`
581
581
  display: flex;
582
582
  justify-content: space-between;
583
583
  align-items: center;
584
584
  margin-bottom: 8px;
585
- `,wB=we.div`
585
+ `,xB=we.div`
586
586
  display: flex;
587
587
  align-items: center;
588
588
  gap: 8px;
@@ -590,11 +590,11 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
590
590
  margin: 0;
591
591
  font-size: 16px;
592
592
  font-weight: 600;
593
- `,xB=we.div`
593
+ `,EB=we.div`
594
594
  display: flex;
595
595
  flex-direction: column;
596
596
  gap: 4px;
597
- `,EB=we.div`
597
+ `,CB=we.div`
598
598
  display: flex;
599
599
  flex-direction: column;
600
600
  margin-top: 12px;
@@ -607,17 +607,17 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
607
607
  `;we.span`
608
608
  font-size: 12px;
609
609
  color: #999;
610
- `;const CB=we.p`
610
+ `;const _B=we.p`
611
611
  font-size: 12px;
612
612
  color: #999;
613
613
  font-style: italic;
614
614
  margin: 12px 0 0 0;
615
- `,_B=we.p`
615
+ `,RB=we.p`
616
616
  font-size: 12px;
617
617
  color: #666;
618
618
  font-weight: 600;
619
619
  margin: 0 0 4px 0;
620
- `,RB=we.div`
620
+ `,OB=we.div`
621
621
  display: flex;
622
622
  flex-direction: column;
623
623
  margin-bottom: 16px;
@@ -627,12 +627,12 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
627
627
  margin: 0 0 12px 0;
628
628
  font-size: 18px;
629
629
  font-weight: 600;
630
- `,OB=we.h5`
630
+ `,TB=we.h5`
631
631
  margin: 0 0 12px 0;
632
632
  font-size: 16px;
633
633
  font-weight: 500;
634
634
  color: #666;
635
- `,TB=we.div`
635
+ `,$B=we.div`
636
636
  display: flex;
637
637
  gap: 12px;
638
638
  margin-bottom: 12px;
@@ -640,13 +640,13 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
640
640
  display: flex;
641
641
  flex-direction: column;
642
642
  gap: 12px;
643
- `,$B=we.div`
643
+ `,AB=we.div`
644
644
  display: flex;
645
645
  flex-direction: column;
646
646
  flex: 1;
647
647
  padding: 16px;
648
648
  overflow: auto;
649
- `,AB=we.div`
649
+ `,IB=we.div`
650
650
  display: flex;
651
651
  flex-direction: column;
652
652
  align-items: center;
@@ -678,18 +678,18 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
678
678
  border-radius: 50%;
679
679
  background: ${({$variant:e})=>ed[e].dot};
680
680
  }
681
- `,IB=we.div`
681
+ `,PB=we.div`
682
682
  display: flex;
683
683
  flex-wrap: wrap;
684
684
  gap: 6px;
685
685
  align-items: center;
686
- `,PB=we.div`
686
+ `,kB=we.div`
687
687
  display: flex;
688
688
  align-items: center;
689
689
  gap: 8px;
690
690
  cursor: pointer;
691
691
  user-select: none;
692
- `,kB=we.span`
692
+ `,MB=we.span`
693
693
  font-size: 10px;
694
694
  color: #666;
695
695
  transition: transform 0.15s ease;
@@ -699,7 +699,7 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
699
699
  justify-content: center;
700
700
  width: 16px;
701
701
  height: 16px;
702
- `,MB=we.div`
702
+ `,DB=we.div`
703
703
  display: ${({$expanded:e})=>e?"flex":"none"};
704
704
  flex-direction: column;
705
705
  gap: 8px;
@@ -725,30 +725,30 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
725
725
  margin-top: 16px;
726
726
  font-size: 12px;
727
727
  overflow: auto;
728
- `;const DB=we.div`
728
+ `;const LB=we.div`
729
729
  display: flex;
730
730
  gap: 16px;
731
- `,LB=we.div`
731
+ `,FB=we.div`
732
732
  display: flex;
733
733
  flex-direction: column;
734
734
  flex: 1;
735
735
  min-width: 0;
736
- `,FB=we.div`
736
+ `,NB=we.div`
737
737
  display: flex;
738
738
  flex-direction: column;
739
739
  align-items: flex-end;
740
740
  gap: 6px;
741
741
  flex-shrink: 0;
742
- `,NB=we.div`
742
+ `,jB=we.div`
743
743
  display: flex;
744
744
  flex-direction: column;
745
745
  gap: 2px;
746
746
  margin-top: 4px;
747
- `,jB=we.span`
747
+ `,zB=we.span`
748
748
  font-size: 11px;
749
749
  font-weight: 600;
750
750
  color: #888;
751
- `,zB=we.label`
751
+ `,BB=we.label`
752
752
  display: flex;
753
753
  align-items: center;
754
754
  gap: 6px;
@@ -756,14 +756,14 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
756
756
  color: #555;
757
757
  cursor: pointer;
758
758
  white-space: nowrap;
759
- `,BB=we.div`
759
+ `,VB=we.div`
760
760
  display: flex;
761
761
  align-items: center;
762
762
  gap: 6px;
763
763
  font-size: 11px;
764
764
  color: #555;
765
765
  white-space: nowrap;
766
- `,VB=we.input`
766
+ `,HB=we.input`
767
767
  width: 60px;
768
768
  padding: 2px 6px;
769
769
  border: 1px solid #ddd;
@@ -780,7 +780,7 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
780
780
  opacity: 0.4;
781
781
  cursor: not-allowed;
782
782
  }
783
- `,HB=({device:e,onConnect:t})=>{const[r,n]=E.useState(!1),[i,o]=E.useState(!1),[s,u]=E.useState(""),c=E.useCallback(()=>{const f=s?parseInt(s,10):void 0;t({isRefresherDisabled:i,pollingInterval:f&&!isNaN(f)?f:void 0})},[t,i,s]);return H.jsx(qI,{$variant:"discovered",children:H.jsxs(DB,{children:[H.jsxs(LB,{children:[H.jsx(GI,{children:e.name||"Unknown Device"}),H.jsxs(NB,{children:[H.jsxs(Bn,{children:["ID: ",e.id]}),H.jsxs(Bn,{children:["Model: ",e.deviceModel.name]}),H.jsxs(Bn,{children:["Transport: ",e.transport]}),e.rssi!==void 0&&e.rssi!==null&&H.jsxs(Bn,{children:["Signal: ",e.rssi," dBm"]})]})]}),H.jsxs(FB,{children:[H.jsx(tp,{$variant:"success",onClick:c,children:"Connect"}),H.jsxs(PB,{onClick:()=>n(!r),children:[H.jsx(kB,{$expanded:r,children:"▶"}),H.jsx(jB,{children:"Options"})]}),H.jsxs(MB,{$expanded:r,children:[H.jsxs(zB,{children:[H.jsx("input",{type:"checkbox",checked:i,onChange:f=>o(f.target.checked)}),"Disable refresher"]}),H.jsxs(BB,{children:[H.jsx("span",{children:"Polling (ms):"}),H.jsx(VB,{type:"number",min:"1000",placeholder:"1000",value:s,onChange:f=>u(f.target.value),disabled:i})]})]})]})]})})},UB=({discoveredDevices:e,isListening:t,isActivelyDiscovering:r,startListening:n,stopListening:i,startDiscovering:o,stopDiscovering:s,connectDevice:u})=>{const c=t||r;return H.jsxs(RB,{children:[H.jsx(XI,{children:"Device Discovery"}),H.jsxs(TB,{children:[H.jsx(tp,{$variant:t?"warning":"primary",$size:"medium",onClick:t?i:n,disabled:r,children:t?"Stop Listening":"Listen for Devices"}),H.jsx(tp,{$variant:r?"warning":"success",$size:"medium",onClick:r?s:o,disabled:t,children:r?"Stop Discovery":"Start Discovery"})]}),t&&e.length===0&&H.jsx(Bn,{children:"Listening for available devices..."}),r&&e.length===0&&H.jsx(Bn,{children:"Discovering devices..."}),e.length>0&&H.jsx(Oy,{children:e.map(f=>H.jsx(HB,{device:f,onConnect:d=>u(f.id,d)},f.id))}),!c&&e.length===0&&H.jsx(Bn,{children:'Use "Listen for Devices" to see already-paired devices, or "Start Discovery" to scan for new devices.'}),H.jsx(CB,{children:"Note: this may not work in web apps due to browser security restrictions. WebHID and WebBLE require a user gesture (click) in the app context to trigger device discovery."})]})},WB=we.div`
783
+ `,UB=({device:e,onConnect:t})=>{const[r,n]=E.useState(!1),[i,o]=E.useState(!1),[s,u]=E.useState(""),c=E.useCallback(()=>{const f=s?parseInt(s,10):void 0;t({isRefresherDisabled:i,pollingInterval:f&&!isNaN(f)?f:void 0})},[t,i,s]);return H.jsx(qI,{$variant:"discovered",children:H.jsxs(LB,{children:[H.jsxs(FB,{children:[H.jsx(GI,{children:e.name||"Unknown Device"}),H.jsxs(jB,{children:[H.jsxs(Bn,{children:["ID: ",e.id]}),H.jsxs(Bn,{children:["Model: ",e.deviceModel.name]}),H.jsxs(Bn,{children:["Transport: ",e.transport]}),e.rssi!==void 0&&e.rssi!==null&&H.jsxs(Bn,{children:["Signal: ",e.rssi," dBm"]})]})]}),H.jsxs(NB,{children:[H.jsx(tp,{$variant:"success",onClick:c,children:"Connect"}),H.jsxs(kB,{onClick:()=>n(!r),children:[H.jsx(MB,{$expanded:r,children:"▶"}),H.jsx(zB,{children:"Options"})]}),H.jsxs(DB,{$expanded:r,children:[H.jsxs(BB,{children:[H.jsx("input",{type:"checkbox",checked:i,onChange:f=>o(f.target.checked)}),"Disable refresher"]}),H.jsxs(VB,{children:[H.jsx("span",{children:"Polling (ms):"}),H.jsx(HB,{type:"number",min:"1000",placeholder:"1000",value:s,onChange:f=>u(f.target.value),disabled:i})]})]})]})]})})},WB=({discoveredDevices:e,isListening:t,isActivelyDiscovering:r,startListening:n,stopListening:i,startDiscovering:o,stopDiscovering:s,connectDevice:u})=>{const c=t||r;return H.jsxs(OB,{children:[H.jsx(XI,{children:"Device Discovery"}),H.jsxs($B,{children:[H.jsx(tp,{$variant:t?"warning":"primary",$size:"medium",onClick:t?i:n,disabled:r,children:t?"Stop Listening":"Listen for Devices"}),H.jsx(tp,{$variant:r?"warning":"success",$size:"medium",onClick:r?s:o,disabled:t,children:r?"Stop Discovery":"Start Discovery"})]}),t&&e.length===0&&H.jsx(Bn,{children:"Listening for available devices..."}),r&&e.length===0&&H.jsx(Bn,{children:"Discovering devices..."}),e.length>0&&H.jsx(Oy,{children:e.map(f=>H.jsx(UB,{device:f,onConnect:d=>u(f.id,d)},f.id))}),!c&&e.length===0&&H.jsx(Bn,{children:'Use "Listen for Devices" to see already-paired devices, or "Start Discovery" to scan for new devices.'}),H.jsx(_B,{children:"Note: this may not work in web apps due to browser security restrictions. WebHID and WebBLE require a user gesture (click) in the app context to trigger device discovery."})]})},qB=we.div`
784
784
  display: flex;
785
785
  flex-direction: row;
786
786
  align-items: center;
@@ -789,11 +789,11 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
789
789
  background: #f5f5f5;
790
790
  border-radius: 8px;
791
791
  margin-bottom: 16px;
792
- `,qB=we.label`
792
+ `,GB=we.label`
793
793
  font-size: 14px;
794
794
  font-weight: 500;
795
795
  color: #333;
796
- `,GB=we.input`
796
+ `,XB=we.input`
797
797
  width: 80px;
798
798
  padding: 6px 8px;
799
799
  border: 1px solid #ddd;
@@ -805,7 +805,7 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
805
805
  outline: none;
806
806
  border-color: #2196f3;
807
807
  }
808
- `,XB=we.button`
808
+ `,KB=we.button`
809
809
  padding: 4px 8px;
810
810
  border: 1px solid #ddd;
811
811
  border-radius: 4px;
@@ -818,37 +818,37 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
818
818
  background: #f0f0f0;
819
819
  border-color: #bbb;
820
820
  }
821
- `,KB=({currentValue:e,onGet:t,onSet:r})=>{const[n,i]=E.useState(""),[o,s]=E.useState(!1);return E.useEffect(()=>{t()},[t]),E.useEffect(()=>{e!==null&&!o&&i(String(e))},[e,o]),H.jsxs(WB,{children:[H.jsx(qB,{htmlFor:"provider-input",children:"My Ledger API provider:"}),H.jsx(GB,{id:"provider-input",type:"number",min:"0",value:n,onChange:u=>{const c=u.target.value;i(c),s(!0);const f=parseInt(c,10);!isNaN(f)&&f>=0&&String(f)===c&&r(f)},onBlur:()=>s(!1)}),H.jsx(XB,{onClick:()=>{s(!1),t(),e!==null&&i(String(e))},title:"Refresh",children:"🔄"})]})},YB=we.div`
821
+ `,YB=({currentValue:e,onGet:t,onSet:r})=>{const[n,i]=E.useState(""),[o,s]=E.useState(!1);return E.useEffect(()=>{t()},[t]),E.useEffect(()=>{e!==null&&!o&&i(String(e))},[e,o]),H.jsxs(qB,{children:[H.jsx(GB,{htmlFor:"provider-input",children:"My Ledger API provider:"}),H.jsx(XB,{id:"provider-input",type:"number",min:"0",value:n,onChange:u=>{const c=u.target.value;i(c),s(!0);const f=parseInt(c,10);!isNaN(f)&&f>=0&&String(f)===c&&r(f)},onBlur:()=>s(!1)}),H.jsx(KB,{onClick:()=>{s(!1),t(),e!==null&&i(String(e))},title:"Refresh",children:"🔄"})]})},QB=we.div`
822
822
  display: flex;
823
823
  flex-direction: column;
824
824
  gap: 8px;
825
825
  margin-top: 12px;
826
826
  padding-top: 12px;
827
827
  border-top: 1px solid #eee;
828
- `,QB=we.div`
828
+ `,JB=we.div`
829
829
  display: flex;
830
830
  align-items: center;
831
831
  gap: 8px;
832
832
  cursor: pointer;
833
833
  user-select: none;
834
- `,JB=we.span`
834
+ `,ZB=we.span`
835
835
  font-size: 12px;
836
836
  color: #666;
837
837
  transition: transform 0.15s ease;
838
838
  transform: rotate(${({$expanded:e})=>e?"90deg":"0deg"});
839
- `,ZB=we.span`
839
+ `,eV=we.span`
840
840
  font-size: 12px;
841
841
  font-weight: 600;
842
842
  color: #666;
843
- `,eV=we.div`
843
+ `,tV=we.div`
844
844
  display: ${({$expanded:e})=>e?"flex":"none"};
845
845
  flex-direction: column;
846
846
  gap: 8px;
847
- `,tV=we.div`
847
+ `,rV=we.div`
848
848
  display: flex;
849
849
  gap: 8px;
850
850
  align-items: center;
851
- `,rV=we.input`
851
+ `,nV=we.input`
852
852
  flex: 1;
853
853
  padding: 6px 8px;
854
854
  border: 1px solid #ddd;
@@ -864,7 +864,7 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
864
864
  &::placeholder {
865
865
  color: #999;
866
866
  }
867
- `,nV=we.button`
867
+ `,iV=we.button`
868
868
  padding: 6px 12px;
869
869
  border: none;
870
870
  border-radius: 4px;
@@ -882,7 +882,7 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
882
882
  opacity: 0.5;
883
883
  cursor: not-allowed;
884
884
  }
885
- `,iV=we.div`
885
+ `,oV=we.div`
886
886
  padding: 8px;
887
887
  border-radius: 4px;
888
888
  background: ${({$success:e})=>e?"#e8f5e9":"#ffebee"};
@@ -895,39 +895,39 @@ Found @inject decorator at method "${f.toString()}" at class "${c.constructor.na
895
895
  `,Xm=we.span`
896
896
  color: #555;
897
897
  word-break: break-all;
898
- `,oV=({sessionId:e,onSend:t,responses:r})=>{const[n,i]=E.useState(!1),[o,s]=E.useState(""),[u,c]=E.useState(null),f=()=>{if(!o.trim())return;const h=o.replace(/\s/g,"").toUpperCase();if(!/^[0-9A-F]*$/.test(h)||h.length%2!==0){alert("Invalid hex string. Please enter a valid APDU in hex format (e.g., E0C4000000)");return}const y=t(e,h);c(y)},d=u?r.get(u):null,g=h=>!h||!Array.isArray(h)?"":h.map(y=>y.toString(16).padStart(2,"0").toUpperCase()).join(" ");return H.jsxs(YB,{children:[H.jsxs(QB,{onClick:()=>i(!n),children:[H.jsx(JB,{$expanded:n,children:"▶"}),H.jsx(ZB,{children:"Send APDU"})]}),H.jsxs(eV,{$expanded:n,children:[H.jsxs(tV,{children:[H.jsx(rV,{type:"text",placeholder:"APDU hex (e.g., E0C4000000)",value:o,onChange:h=>s(h.target.value),onKeyDown:h=>h.key==="Enter"&&f()}),H.jsx(nV,{onClick:f,disabled:!o.trim(),children:"Send"})]}),d&&H.jsx(iV,{$success:d.success,children:d.success?H.jsxs(H.Fragment,{children:[d.data&&d.data.length>0&&H.jsxs(H.Fragment,{children:[H.jsx(Gm,{children:"Data: "}),H.jsx(Xm,{children:g(d.data)}),H.jsx("br",{})]}),H.jsx(Gm,{children:"Status: "}),H.jsx(Xm,{children:g(d.statusCode)})]}):H.jsxs(H.Fragment,{children:[H.jsx(Gm,{children:"Error: "}),H.jsx(Xm,{children:d.error})]})})]})]})},aV=e=>e?e.deviceStatus!=="NOT CONNECTED":!0;function sV(e){switch(e){case"CONNECTED":return"success";case"LOCKED":return"warning";case"BUSY":return"info";case"NOT CONNECTED":return"error";default:return"neutral"}}function lV(e){switch(String(e)){case"ReadyWithSecureChannel":return"success";case"ReadyWithoutSecureChannel":return"info";case"Connected":return"neutral";default:return"neutral"}}function uV(e){return String(e).replace(/([a-z])([A-Z])/g,"$1 $2")}const vO=({device:e,state:t,onDisconnect:r,onSendApdu:n,apduResponses:i})=>{const o=aV(t);return H.jsxs(qI,{$variant:o?"default":"disconnected",children:[H.jsxs(SB,{children:[H.jsxs(wB,{children:[H.jsx(GI,{children:e.name||"Unknown Device"}),t&&H.jsx(gO,{$variant:sV(t.deviceStatus),children:t.deviceStatus})]}),o&&H.jsx(tp,{$variant:"danger",onClick:r,children:"Disconnect"})]}),H.jsxs(xB,{children:[H.jsxs(Bn,{children:["Session ID: ",e.sessionId]}),H.jsxs(Bn,{children:["Model: ",e.modelId]}),H.jsxs(Bn,{children:["Transport: ",e.transport]}),H.jsxs(Bn,{children:["Type: ",e.type]})]}),t&&H.jsxs(EB,{children:[H.jsx(_B,{children:"Session State"}),H.jsx(IB,{children:H.jsx(gO,{$variant:lV(t.sessionStateType),children:uV(t.sessionStateType)})}),"currentApp"in t&&t.currentApp&&H.jsxs(Bn,{children:["Current App: ",t.currentApp.name," v",t.currentApp.version]}),"firmwareVersion"in t&&t.firmwareVersion&&H.jsxs(Bn,{children:["Firmware: ",t.firmwareVersion.os]})]}),o&&H.jsx(oV,{sessionId:e.sessionId,onSend:n,responses:i})]})},cV=(e,t)=>{const r=t.get(e.sessionId);return r?r.deviceStatus!=="NOT CONNECTED":!0},fV=({devices:e,sessionStates:t,onDisconnect:r,onSendApdu:n,apduResponses:i,isAnyDiscoveryActive:o})=>{const{activeDevices:s,disconnectedDevices:u}=E.useMemo(()=>{const c=[],f=[];for(const d of e)cV(d,t)?c.push(d):f.push(d);return{activeDevices:c,disconnectedDevices:f}},[e,t]);return e.length===0&&!o?H.jsx(AB,{children:H.jsx("p",{children:"No devices connected yet."})}):H.jsxs(H.Fragment,{children:[s.length>0&&H.jsxs(H.Fragment,{children:[H.jsxs(XI,{children:["Active Sessions (",s.length,")"]}),H.jsx(Oy,{style:{marginBottom:16},children:s.map(c=>H.jsx(vO,{device:c,state:t.get(c.sessionId),onDisconnect:()=>r(c.sessionId),onSendApdu:n,apduResponses:i},c.sessionId))})]}),u.length>0&&H.jsxs(H.Fragment,{children:[H.jsxs(OB,{children:["Inactive Sessions (",u.length,")"]}),H.jsx(Oy,{children:u.map(c=>H.jsx(vO,{device:c,state:t.get(c.sessionId),onDisconnect:()=>r(c.sessionId),onSendApdu:n,apduResponses:i},c.sessionId))})]})]})},dV=`import { DevToolsDmkInspector } from "@ledgerhq/device-management-kit-devtools-core";
898
+ `,aV=({sessionId:e,onSend:t,responses:r})=>{const[n,i]=E.useState(!1),[o,s]=E.useState(""),[u,c]=E.useState(null),f=()=>{if(!o.trim())return;const h=o.replace(/\s/g,"").toUpperCase();if(!/^[0-9A-F]*$/.test(h)||h.length%2!==0){alert("Invalid hex string. Please enter a valid APDU in hex format (e.g., E0C4000000)");return}const y=t(e,h);c(y)},d=u?r.get(u):null,g=h=>!h||!Array.isArray(h)?"":h.map(y=>y.toString(16).padStart(2,"0").toUpperCase()).join(" ");return H.jsxs(QB,{children:[H.jsxs(JB,{onClick:()=>i(!n),children:[H.jsx(ZB,{$expanded:n,children:"▶"}),H.jsx(eV,{children:"Send APDU"})]}),H.jsxs(tV,{$expanded:n,children:[H.jsxs(rV,{children:[H.jsx(nV,{type:"text",placeholder:"APDU hex (e.g., E0C4000000)",value:o,onChange:h=>s(h.target.value),onKeyDown:h=>h.key==="Enter"&&f()}),H.jsx(iV,{onClick:f,disabled:!o.trim(),children:"Send"})]}),d&&H.jsx(oV,{$success:d.success,children:d.success?H.jsxs(H.Fragment,{children:[d.data&&d.data.length>0&&H.jsxs(H.Fragment,{children:[H.jsx(Gm,{children:"Data: "}),H.jsx(Xm,{children:g(d.data)}),H.jsx("br",{})]}),H.jsx(Gm,{children:"Status: "}),H.jsx(Xm,{children:g(d.statusCode)})]}):H.jsxs(H.Fragment,{children:[H.jsx(Gm,{children:"Error: "}),H.jsx(Xm,{children:d.error})]})})]})]})},sV=e=>e?e.deviceStatus!=="NOT CONNECTED":!0;function lV(e){switch(e){case"CONNECTED":return"success";case"LOCKED":return"warning";case"BUSY":return"info";case"NOT CONNECTED":return"error";default:return"neutral"}}function uV(e){switch(String(e)){case"ReadyWithSecureChannel":return"success";case"ReadyWithoutSecureChannel":return"info";case"Connected":return"neutral";default:return"neutral"}}function cV(e){return String(e).replace(/([a-z])([A-Z])/g,"$1 $2")}const vO=({device:e,state:t,onDisconnect:r,onSendApdu:n,apduResponses:i})=>{const o=sV(t);return H.jsxs(qI,{$variant:o?"default":"disconnected",children:[H.jsxs(wB,{children:[H.jsxs(xB,{children:[H.jsx(GI,{children:e.name||"Unknown Device"}),t&&H.jsx(gO,{$variant:lV(t.deviceStatus),children:t.deviceStatus})]}),o&&H.jsx(tp,{$variant:"danger",onClick:r,children:"Disconnect"})]}),H.jsxs(EB,{children:[H.jsxs(Bn,{children:["Session ID: ",e.sessionId]}),H.jsxs(Bn,{children:["Model: ",e.modelId]}),H.jsxs(Bn,{children:["Transport: ",e.transport]}),H.jsxs(Bn,{children:["Type: ",e.type]})]}),t&&H.jsxs(CB,{children:[H.jsx(RB,{children:"Session State"}),H.jsx(PB,{children:H.jsx(gO,{$variant:uV(t.sessionStateType),children:cV(t.sessionStateType)})}),"currentApp"in t&&t.currentApp&&H.jsxs(Bn,{children:["Current App: ",t.currentApp.name," v",t.currentApp.version]}),"firmwareVersion"in t&&t.firmwareVersion&&H.jsxs(Bn,{children:["Firmware: ",t.firmwareVersion.os]})]}),o&&H.jsx(aV,{sessionId:e.sessionId,onSend:n,responses:i})]})},fV=(e,t)=>{const r=t.get(e.sessionId);return r?r.deviceStatus!=="NOT CONNECTED":!0},dV=({devices:e,sessionStates:t,onDisconnect:r,onSendApdu:n,apduResponses:i,isAnyDiscoveryActive:o})=>{const{activeDevices:s,disconnectedDevices:u}=E.useMemo(()=>{const c=[],f=[];for(const d of e)fV(d,t)?c.push(d):f.push(d);return{activeDevices:c,disconnectedDevices:f}},[e,t]);return e.length===0&&!o?H.jsx(IB,{children:H.jsx("p",{children:"No devices connected yet."})}):H.jsxs(H.Fragment,{children:[s.length>0&&H.jsxs(H.Fragment,{children:[H.jsxs(XI,{children:["Active Sessions (",s.length,")"]}),H.jsx(Oy,{style:{marginBottom:16},children:s.map(c=>H.jsx(vO,{device:c,state:t.get(c.sessionId),onDisconnect:()=>r(c.sessionId),onSendApdu:n,apduResponses:i},c.sessionId))})]}),u.length>0&&H.jsxs(H.Fragment,{children:[H.jsxs(TB,{children:["Inactive Sessions (",u.length,")"]}),H.jsx(Oy,{children:u.map(c=>H.jsx(vO,{device:c,state:t.get(c.sessionId),onDisconnect:()=>r(c.sessionId),onSendApdu:n,apduResponses:i},c.sessionId))})]})]})},pV=`import { DevToolsDmkInspector } from "@ledgerhq/device-management-kit-devtools-core";
899
899
 
900
900
  const dmk = new DeviceManagementKitBuilder()
901
901
  .addLogger(logger)
902
902
  .build();
903
903
 
904
904
  // Enable inspector after DMK is built
905
- new DevToolsDmkInspector(connector, dmk);`,pV=({devices:e,sessionStates:t,discoveredDevices:r,isListening:n,isActivelyDiscovering:i,sendMessage:o,isConnected:s,startListening:u,stopListening:c,startDiscovering:f,stopDiscovering:d,connectDevice:g,providerValue:h,getProvider:y,setProvider:m,sendApdu:S,apduResponses:b})=>s?H.jsxs($B,{children:[H.jsx(KB,{currentValue:h,onGet:y,onSet:m}),H.jsx(UB,{discoveredDevices:r,isListening:n,isActivelyDiscovering:i,startListening:u,stopListening:c,startDiscovering:f,stopDiscovering:d,connectDevice:g}),H.jsx(fV,{devices:e,sessionStates:t,onDisconnect:C=>{o(Go.DISCONNECT,JSON.stringify({sessionId:C}))},onSendApdu:S,apduResponses:b,isAnyDiscoveryActive:n||i})]}):H.jsx(WI,{title:"Inspector not connected",description:H.jsxs(H.Fragment,{children:["To enable the Inspector, add ",H.jsx("code",{children:"DevToolsDmkInspector"})," to your app after building the DMK:"]}),codeExample:dV});/*
905
+ new DevToolsDmkInspector(connector, dmk);`,hV=({devices:e,sessionStates:t,discoveredDevices:r,isListening:n,isActivelyDiscovering:i,sendMessage:o,isConnected:s,startListening:u,stopListening:c,startDiscovering:f,stopDiscovering:d,connectDevice:g,providerValue:h,getProvider:y,setProvider:m,sendApdu:S,apduResponses:b})=>s?H.jsxs(AB,{children:[H.jsx(YB,{currentValue:h,onGet:y,onSet:m}),H.jsx(WB,{discoveredDevices:r,isListening:n,isActivelyDiscovering:i,startListening:u,stopListening:c,startDiscovering:f,stopDiscovering:d,connectDevice:g}),H.jsx(dV,{devices:e,sessionStates:t,onDisconnect:C=>{o(Go.DISCONNECT,JSON.stringify({sessionId:C}))},onSendApdu:S,apduResponses:b,isAnyDiscoveryActive:n||i})]}):H.jsx(WI,{title:"Inspector not connected",description:H.jsxs(H.Fragment,{children:["To enable the Inspector, add ",H.jsx("code",{children:"DevToolsDmkInspector"})," to your app after building the DMK:"]}),codeExample:pV});/*
906
906
  object-assign
907
907
  (c) Sindre Sorhus
908
908
  @license MIT
909
- */var Km,mO;function hV(){if(mO)return Km;mO=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Km=i()?Object.assign:function(o,s){for(var u,c=n(o),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var g in u)t.call(u,g)&&(c[g]=u[g]);if(e){f=e(u);for(var h=0;h<f.length;h++)r.call(u,f[h])&&(c[f[h]]=u[f[h]])}}return c},Km}var gV=hV();const qi=Ir(gV);var yO=function(t,r){var n=qi({},t,r);for(var i in t){var o;!t[i]||typeof r[i]!="object"||qi(n,(o={},o[i]=qi(t[i],r[i]),o))}return n},vV=function(t){var r={};return Object.keys(t).sort(function(n,i){return n.localeCompare(i,void 0,{numeric:!0,sensitivity:"base"})}).forEach(function(n){r[n]=t[n]}),r},mV={breakpoints:[40,52,64].map(function(e){return e+"em"})},KI=function(t){return"@media screen and (min-width: "+t+")"},yV=function(t,r){return Pa(r,t,t)},Pa=function(t,r,n,i,o){for(r=r&&r.split?r.split("."):[r],i=0;i<r.length;i++)t=t?t[r[i]]:o;return t===o?n:t},bb=function e(t){var r={},n=function(s){var u={},c=!1,f=s.theme&&s.theme.disableStyledSystemCache;for(var d in s)if(t[d]){var g=t[d],h=s[d],y=Pa(s.theme,g.scale,g.defaults);if(typeof h=="object"){if(r.breakpoints=!f&&r.breakpoints||Pa(s.theme,"breakpoints",mV.breakpoints),Array.isArray(h)){r.media=!f&&r.media||[null].concat(r.breakpoints.map(KI)),u=yO(u,bV(r.media,g,y,h,s));continue}h!==null&&(u=yO(u,SV(r.breakpoints,g,y,h,s)),c=!0);continue}qi(u,g(h,y,s))}return c&&(u=vV(u)),u};n.config=t,n.propNames=Object.keys(t),n.cache=r;var i=Object.keys(t).filter(function(o){return o!=="config"});return i.length>1&&i.forEach(function(o){var s;n[o]=e((s={},s[o]=t[o],s))}),n},bV=function(t,r,n,i,o){var s={};return i.slice(0,t.length).forEach(function(u,c){var f=t[c],d=r(u,n,o);if(!f)qi(s,d);else{var g;qi(s,(g={},g[f]=qi({},s[f],d),g))}}),s},SV=function(t,r,n,i,o){var s={};for(var u in i){var c=t[u],f=i[u],d=r(f,n,o);if(!c)qi(s,d);else{var g,h=KI(c);qi(s,(g={},g[h]=qi({},s[h],d),g))}}return s},bO=function(t){var r=t.properties,n=t.property,i=t.scale,o=t.transform,s=o===void 0?yV:o,u=t.defaultScale;r=r||[n];var c=function(d,g,h){var y={},m=s(d,g,h);if(m!==null)return r.forEach(function(S){y[S]=m}),y};return c.scale=i,c.defaults=u,c},pn=function(t){t===void 0&&(t={});var r={};Object.keys(t).forEach(function(i){var o=t[i];if(o===!0){r[i]=bO({property:i,scale:i});return}if(typeof o=="function"){r[i]=o;return}r[i]=bO(o)});var n=bb(r);return n},Sb=function(){for(var t={},r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];n.forEach(function(s){!s||!s.config||qi(t,s.config)});var o=bb(t);return o},wV=function(t){return typeof t=="number"&&!isNaN(t)},xV=function(t,r){return Pa(r,t,!wV(t)||t>1?t:t*100+"%")},EV={width:{property:"width",scale:"sizes",transform:xV},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},Jn=pn(EV),Ty={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Ty.bg=Ty.backgroundColor;var YI=pn(Ty),CV={fontSizes:[12,14,16,20,24,32,48,64,72]},_V={fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:CV.fontSizes},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0},vs=pn(_V),RV={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0},Tn=pn(RV),Ym={space:[0,4,8,16,32,64,128,256,512]},OV={gridGap:{property:"gridGap",scale:"space",defaultScale:Ym.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:Ym.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:Ym.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Ri=pn(OV),jr={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};jr.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"};jr.borderTopColor={property:"borderTopColor",scale:"colors"};jr.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"};jr.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"};jr.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"};jr.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"};jr.borderBottomColor={property:"borderBottomColor",scale:"colors"};jr.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"};jr.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"};jr.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"};jr.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"};jr.borderLeftColor={property:"borderLeftColor",scale:"colors"};jr.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"};jr.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"};jr.borderRightColor={property:"borderRightColor",scale:"colors"};jr.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var Zo=pn(jr),Ko={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};Ko.bgImage=Ko.backgroundImage;Ko.bgSize=Ko.backgroundSize;Ko.bgPosition=Ko.backgroundPosition;Ko.bgRepeat=Ko.backgroundRepeat;var kp=pn(Ko),td={space:[0,4,8,16,32,64,128,256,512]},TV={position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:td.space},right:{property:"right",scale:"space",defaultScale:td.space},bottom:{property:"bottom",scale:"space",defaultScale:td.space},left:{property:"left",scale:"space",defaultScale:td.space}},Fl=pn(TV),xn={space:[0,4,8,16,32,64,128,256,512]},SO=function(t){return typeof t=="number"&&!isNaN(t)},Qa=function(t,r){if(!SO(t))return Pa(r,t,t);var n=t<0,i=Math.abs(t),o=Pa(r,i,i);return SO(o)?o*(n?-1:1):n?"-"+o:o},Tt={};Tt.margin={margin:{property:"margin",scale:"space",transform:Qa,defaultScale:xn.space},marginTop:{property:"marginTop",scale:"space",transform:Qa,defaultScale:xn.space},marginRight:{property:"marginRight",scale:"space",transform:Qa,defaultScale:xn.space},marginBottom:{property:"marginBottom",scale:"space",transform:Qa,defaultScale:xn.space},marginLeft:{property:"marginLeft",scale:"space",transform:Qa,defaultScale:xn.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:Qa,defaultScale:xn.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:Qa,defaultScale:xn.space}};Tt.margin.m=Tt.margin.margin;Tt.margin.mt=Tt.margin.marginTop;Tt.margin.mr=Tt.margin.marginRight;Tt.margin.mb=Tt.margin.marginBottom;Tt.margin.ml=Tt.margin.marginLeft;Tt.margin.mx=Tt.margin.marginX;Tt.margin.my=Tt.margin.marginY;Tt.padding={padding:{property:"padding",scale:"space",defaultScale:xn.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:xn.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:xn.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:xn.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:xn.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:xn.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:xn.space}};Tt.padding.p=Tt.padding.padding;Tt.padding.pt=Tt.padding.paddingTop;Tt.padding.pr=Tt.padding.paddingRight;Tt.padding.pb=Tt.padding.paddingBottom;Tt.padding.pl=Tt.padding.paddingLeft;Tt.padding.px=Tt.padding.paddingX;Tt.padding.py=Tt.padding.paddingY;var $V=pn(Tt.margin),AV=pn(Tt.padding),IV=Sb($V,AV);pn({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function rc(){return rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}var co=function(t,r,n,i,o){for(r=r&&r.split?r.split("."):[r],i=0;i<r.length;i++)t=t?t[r[i]]:o;return t===o?n:t},PV=[40,52,64].map(function(e){return e+"em"}),kV={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},MV={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},wO={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},DV={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},LV=function(t,r){if(typeof r!="number"||r>=0)return co(t,r,r);var n=Math.abs(r),i=co(t,n,n);return typeof i=="string"?"-"+i:i*-1},FV=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var r;return rc({},e,(r={},r[t]=LV,r))},{}),NV=function(t){return function(r){var n={},i=co(r,"breakpoints",PV),o=[null].concat(i.map(function(d){return"@media screen and (min-width: "+d+")"}));for(var s in t){var u=typeof t[s]=="function"?t[s](r):t[s];if(u!=null){if(!Array.isArray(u)){n[s]=u;continue}for(var c=0;c<u.slice(0,o.length).length;c++){var f=o[c];if(!f){n[s]=u[c];continue}n[f]=n[f]||{},u[c]!=null&&(n[f][s]=u[c])}}}return n}},jV=function e(t){return function(r){r===void 0&&(r={});var n=rc({},kV,{},r.theme||r),i={},o=typeof t=="function"?t(n):t,s=NV(o)(n);for(var u in s){var c=s[u],f=typeof c=="function"?c(n):c;if(u==="variant"){var d=e(co(n,f))(n);i=rc({},i,{},d);continue}if(f&&typeof f=="object"){i[u]=e(f)(n);continue}var g=co(MV,u,u),h=co(DV,g),y=co(n,h,co(n,g,{})),m=co(FV,g,co),S=m(y,f,f);if(wO[g])for(var b=wO[g],C=0;C<b.length;C++)i[b[C]]=S;else i[g]=S}return i}},wb=function(t){var r,n=t.scale,i=t.prop,o=i===void 0?"variant":i,s=t.variants,u=s===void 0?{}:s,c=t.key,f;Object.keys(u).length?f=function(y,m,S){return jV(Pa(m,y,null))(S.theme)}:f=function(y,m){return Pa(m,y,null)},f.scale=n||c,f.defaults=u;var d=(r={},r[o]=f,r),g=bb(d);return g};wb({key:"buttons"});wb({key:"textStyles",prop:"textStyle"});wb({key:"colorStyles",prop:"colors"});Jn.width;Jn.height;Jn.minWidth;Jn.minHeight;Jn.maxWidth;Jn.maxHeight;Jn.size;Jn.verticalAlign;Jn.display;var zV=Jn.overflow;Jn.overflowX;Jn.overflowY;YI.opacity;var BV=vs.fontSize;vs.fontFamily;var VV=vs.fontWeight,HV=vs.lineHeight,UV=vs.textAlign;vs.fontStyle;var WV=vs.letterSpacing;Tn.alignItems;Tn.alignContent;Tn.justifyItems;Tn.justifyContent;Tn.flexWrap;Tn.flexDirection;Tn.flex;Tn.flexGrow;Tn.flexShrink;Tn.flexBasis;Tn.justifySelf;Tn.alignSelf;Tn.order;Ri.gridGap;Ri.gridColumnGap;Ri.gridRowGap;Ri.gridColumn;Ri.gridRow;Ri.gridAutoFlow;Ri.gridAutoColumns;Ri.gridAutoRows;Ri.gridTemplateColumns;Ri.gridTemplateRows;Ri.gridTemplateAreas;Ri.gridArea;Zo.borderWidth;Zo.borderStyle;Zo.borderColor;Zo.borderTop;Zo.borderRight;Zo.borderBottom;Zo.borderLeft;Zo.borderRadius;kp.backgroundImage;kp.backgroundSize;kp.backgroundPosition;kp.backgroundRepeat;Fl.zIndex;Fl.top;Fl.right;Fl.bottom;Fl.left;const qV=pn({rowGap:{property:"rowGap",scale:"space"},columnGap:{property:"columnGap",scale:"space"}}),xO=Sb(Tn,IV,Fl,YI,Jn,zV,qV,Zo),QI=new Proxy(we,{apply(e,t,r){return we(e.apply(t,r)(xO))},get(e,t){return typeof e[t]=="function"?we(e[t].apply(we,[xO])):e[t]}}),Yo=QI.div.attrs({display:"flex"})``,GV=e=>{const t=e.ff;return t==null?null:TN(t)},XV=pn({uppercase:{property:"textTransform",transform:e=>e?"uppercase":"none"}}),JI=QI.span.attrs(({variant:e="body",fontSize:t,color:r})=>({fontSize:t||e,color:r||"neutral.c100"}))`
909
+ */var Km,mO;function gV(){if(mO)return Km;mO=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Km=i()?Object.assign:function(o,s){for(var u,c=n(o),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var g in u)t.call(u,g)&&(c[g]=u[g]);if(e){f=e(u);for(var h=0;h<f.length;h++)r.call(u,f[h])&&(c[f[h]]=u[f[h]])}}return c},Km}var vV=gV();const qi=Ir(vV);var yO=function(t,r){var n=qi({},t,r);for(var i in t){var o;!t[i]||typeof r[i]!="object"||qi(n,(o={},o[i]=qi(t[i],r[i]),o))}return n},mV=function(t){var r={};return Object.keys(t).sort(function(n,i){return n.localeCompare(i,void 0,{numeric:!0,sensitivity:"base"})}).forEach(function(n){r[n]=t[n]}),r},yV={breakpoints:[40,52,64].map(function(e){return e+"em"})},KI=function(t){return"@media screen and (min-width: "+t+")"},bV=function(t,r){return Pa(r,t,t)},Pa=function(t,r,n,i,o){for(r=r&&r.split?r.split("."):[r],i=0;i<r.length;i++)t=t?t[r[i]]:o;return t===o?n:t},bb=function e(t){var r={},n=function(s){var u={},c=!1,f=s.theme&&s.theme.disableStyledSystemCache;for(var d in s)if(t[d]){var g=t[d],h=s[d],y=Pa(s.theme,g.scale,g.defaults);if(typeof h=="object"){if(r.breakpoints=!f&&r.breakpoints||Pa(s.theme,"breakpoints",yV.breakpoints),Array.isArray(h)){r.media=!f&&r.media||[null].concat(r.breakpoints.map(KI)),u=yO(u,SV(r.media,g,y,h,s));continue}h!==null&&(u=yO(u,wV(r.breakpoints,g,y,h,s)),c=!0);continue}qi(u,g(h,y,s))}return c&&(u=mV(u)),u};n.config=t,n.propNames=Object.keys(t),n.cache=r;var i=Object.keys(t).filter(function(o){return o!=="config"});return i.length>1&&i.forEach(function(o){var s;n[o]=e((s={},s[o]=t[o],s))}),n},SV=function(t,r,n,i,o){var s={};return i.slice(0,t.length).forEach(function(u,c){var f=t[c],d=r(u,n,o);if(!f)qi(s,d);else{var g;qi(s,(g={},g[f]=qi({},s[f],d),g))}}),s},wV=function(t,r,n,i,o){var s={};for(var u in i){var c=t[u],f=i[u],d=r(f,n,o);if(!c)qi(s,d);else{var g,h=KI(c);qi(s,(g={},g[h]=qi({},s[h],d),g))}}return s},bO=function(t){var r=t.properties,n=t.property,i=t.scale,o=t.transform,s=o===void 0?bV:o,u=t.defaultScale;r=r||[n];var c=function(d,g,h){var y={},m=s(d,g,h);if(m!==null)return r.forEach(function(S){y[S]=m}),y};return c.scale=i,c.defaults=u,c},pn=function(t){t===void 0&&(t={});var r={};Object.keys(t).forEach(function(i){var o=t[i];if(o===!0){r[i]=bO({property:i,scale:i});return}if(typeof o=="function"){r[i]=o;return}r[i]=bO(o)});var n=bb(r);return n},Sb=function(){for(var t={},r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];n.forEach(function(s){!s||!s.config||qi(t,s.config)});var o=bb(t);return o},xV=function(t){return typeof t=="number"&&!isNaN(t)},EV=function(t,r){return Pa(r,t,!xV(t)||t>1?t:t*100+"%")},CV={width:{property:"width",scale:"sizes",transform:EV},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},Jn=pn(CV),Ty={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Ty.bg=Ty.backgroundColor;var YI=pn(Ty),_V={fontSizes:[12,14,16,20,24,32,48,64,72]},RV={fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:_V.fontSizes},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0},vs=pn(RV),OV={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0},Tn=pn(OV),Ym={space:[0,4,8,16,32,64,128,256,512]},TV={gridGap:{property:"gridGap",scale:"space",defaultScale:Ym.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:Ym.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:Ym.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Ri=pn(TV),jr={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};jr.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"};jr.borderTopColor={property:"borderTopColor",scale:"colors"};jr.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"};jr.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"};jr.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"};jr.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"};jr.borderBottomColor={property:"borderBottomColor",scale:"colors"};jr.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"};jr.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"};jr.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"};jr.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"};jr.borderLeftColor={property:"borderLeftColor",scale:"colors"};jr.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"};jr.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"};jr.borderRightColor={property:"borderRightColor",scale:"colors"};jr.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var Zo=pn(jr),Ko={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};Ko.bgImage=Ko.backgroundImage;Ko.bgSize=Ko.backgroundSize;Ko.bgPosition=Ko.backgroundPosition;Ko.bgRepeat=Ko.backgroundRepeat;var kp=pn(Ko),td={space:[0,4,8,16,32,64,128,256,512]},$V={position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:td.space},right:{property:"right",scale:"space",defaultScale:td.space},bottom:{property:"bottom",scale:"space",defaultScale:td.space},left:{property:"left",scale:"space",defaultScale:td.space}},Fl=pn($V),xn={space:[0,4,8,16,32,64,128,256,512]},SO=function(t){return typeof t=="number"&&!isNaN(t)},Qa=function(t,r){if(!SO(t))return Pa(r,t,t);var n=t<0,i=Math.abs(t),o=Pa(r,i,i);return SO(o)?o*(n?-1:1):n?"-"+o:o},Tt={};Tt.margin={margin:{property:"margin",scale:"space",transform:Qa,defaultScale:xn.space},marginTop:{property:"marginTop",scale:"space",transform:Qa,defaultScale:xn.space},marginRight:{property:"marginRight",scale:"space",transform:Qa,defaultScale:xn.space},marginBottom:{property:"marginBottom",scale:"space",transform:Qa,defaultScale:xn.space},marginLeft:{property:"marginLeft",scale:"space",transform:Qa,defaultScale:xn.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:Qa,defaultScale:xn.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:Qa,defaultScale:xn.space}};Tt.margin.m=Tt.margin.margin;Tt.margin.mt=Tt.margin.marginTop;Tt.margin.mr=Tt.margin.marginRight;Tt.margin.mb=Tt.margin.marginBottom;Tt.margin.ml=Tt.margin.marginLeft;Tt.margin.mx=Tt.margin.marginX;Tt.margin.my=Tt.margin.marginY;Tt.padding={padding:{property:"padding",scale:"space",defaultScale:xn.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:xn.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:xn.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:xn.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:xn.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:xn.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:xn.space}};Tt.padding.p=Tt.padding.padding;Tt.padding.pt=Tt.padding.paddingTop;Tt.padding.pr=Tt.padding.paddingRight;Tt.padding.pb=Tt.padding.paddingBottom;Tt.padding.pl=Tt.padding.paddingLeft;Tt.padding.px=Tt.padding.paddingX;Tt.padding.py=Tt.padding.paddingY;var AV=pn(Tt.margin),IV=pn(Tt.padding),PV=Sb(AV,IV);pn({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function rc(){return rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}var co=function(t,r,n,i,o){for(r=r&&r.split?r.split("."):[r],i=0;i<r.length;i++)t=t?t[r[i]]:o;return t===o?n:t},kV=[40,52,64].map(function(e){return e+"em"}),MV={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},DV={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},wO={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},LV={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},FV=function(t,r){if(typeof r!="number"||r>=0)return co(t,r,r);var n=Math.abs(r),i=co(t,n,n);return typeof i=="string"?"-"+i:i*-1},NV=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var r;return rc({},e,(r={},r[t]=FV,r))},{}),jV=function(t){return function(r){var n={},i=co(r,"breakpoints",kV),o=[null].concat(i.map(function(d){return"@media screen and (min-width: "+d+")"}));for(var s in t){var u=typeof t[s]=="function"?t[s](r):t[s];if(u!=null){if(!Array.isArray(u)){n[s]=u;continue}for(var c=0;c<u.slice(0,o.length).length;c++){var f=o[c];if(!f){n[s]=u[c];continue}n[f]=n[f]||{},u[c]!=null&&(n[f][s]=u[c])}}}return n}},zV=function e(t){return function(r){r===void 0&&(r={});var n=rc({},MV,{},r.theme||r),i={},o=typeof t=="function"?t(n):t,s=jV(o)(n);for(var u in s){var c=s[u],f=typeof c=="function"?c(n):c;if(u==="variant"){var d=e(co(n,f))(n);i=rc({},i,{},d);continue}if(f&&typeof f=="object"){i[u]=e(f)(n);continue}var g=co(DV,u,u),h=co(LV,g),y=co(n,h,co(n,g,{})),m=co(NV,g,co),S=m(y,f,f);if(wO[g])for(var b=wO[g],C=0;C<b.length;C++)i[b[C]]=S;else i[g]=S}return i}},wb=function(t){var r,n=t.scale,i=t.prop,o=i===void 0?"variant":i,s=t.variants,u=s===void 0?{}:s,c=t.key,f;Object.keys(u).length?f=function(y,m,S){return zV(Pa(m,y,null))(S.theme)}:f=function(y,m){return Pa(m,y,null)},f.scale=n||c,f.defaults=u;var d=(r={},r[o]=f,r),g=bb(d);return g};wb({key:"buttons"});wb({key:"textStyles",prop:"textStyle"});wb({key:"colorStyles",prop:"colors"});Jn.width;Jn.height;Jn.minWidth;Jn.minHeight;Jn.maxWidth;Jn.maxHeight;Jn.size;Jn.verticalAlign;Jn.display;var BV=Jn.overflow;Jn.overflowX;Jn.overflowY;YI.opacity;var VV=vs.fontSize;vs.fontFamily;var HV=vs.fontWeight,UV=vs.lineHeight,WV=vs.textAlign;vs.fontStyle;var qV=vs.letterSpacing;Tn.alignItems;Tn.alignContent;Tn.justifyItems;Tn.justifyContent;Tn.flexWrap;Tn.flexDirection;Tn.flex;Tn.flexGrow;Tn.flexShrink;Tn.flexBasis;Tn.justifySelf;Tn.alignSelf;Tn.order;Ri.gridGap;Ri.gridColumnGap;Ri.gridRowGap;Ri.gridColumn;Ri.gridRow;Ri.gridAutoFlow;Ri.gridAutoColumns;Ri.gridAutoRows;Ri.gridTemplateColumns;Ri.gridTemplateRows;Ri.gridTemplateAreas;Ri.gridArea;Zo.borderWidth;Zo.borderStyle;Zo.borderColor;Zo.borderTop;Zo.borderRight;Zo.borderBottom;Zo.borderLeft;Zo.borderRadius;kp.backgroundImage;kp.backgroundSize;kp.backgroundPosition;kp.backgroundRepeat;Fl.zIndex;Fl.top;Fl.right;Fl.bottom;Fl.left;const GV=pn({rowGap:{property:"rowGap",scale:"space"},columnGap:{property:"columnGap",scale:"space"}}),xO=Sb(Tn,PV,Fl,YI,Jn,BV,GV,Zo),QI=new Proxy(we,{apply(e,t,r){return we(e.apply(t,r)(xO))},get(e,t){return typeof e[t]=="function"?we(e[t].apply(we,[xO])):e[t]}}),Yo=QI.div.attrs({display:"flex"})``,XV=e=>{const t=e.ff;return t==null?null:TN(t)},KV=pn({uppercase:{property:"textTransform",transform:e=>e?"uppercase":"none"}}),JI=QI.span.attrs(({variant:e="body",fontSize:t,color:r})=>({fontSize:t||e,color:r||"neutral.c100"}))`
910
910
  font-weight: 500;
911
911
  white-space: ${e=>e.whiteSpace??"normal"};
912
912
  ${e=>IN[e.variant||"body"]}
913
- ${Sb(XV,HV,GV,BV,UV,VV,WV,pn({textOverflow:!0}))}
913
+ ${Sb(KV,UV,XV,VV,WV,HV,qV,pn({textOverflow:!0}))}
914
914
  ${e=>e.textTransform?`text-transform: ${e.textTransform};`:""}
915
915
  `,Qm=we(Yo).attrs(e=>({my:e.my||0,height:1,backgroundColor:e.color||"neutral.c40"}))`
916
916
  &[data-variant="light"] {
917
917
  background: ${e=>e.theme.colors.neutral.c30};
918
918
  }
919
- `,KV=e=>e.text?oe.createElement(Yo,{...e,flexDirection:"row",alignItems:"center"},oe.createElement(Qm,{my:6,flex:1}),oe.createElement(JI,{variant:"bodyLineHeight",color:"neutral.c60",mx:6},e.text),oe.createElement(Qm,{my:6,flex:1})):oe.createElement(Qm,{...e}),ms=we.svg.withConfig({shouldForwardProp:e=>!0})`
919
+ `,YV=e=>e.text?oe.createElement(Yo,{...e,flexDirection:"row",alignItems:"center"},oe.createElement(Qm,{my:6,flex:1}),oe.createElement(JI,{variant:"bodyLineHeight",color:"neutral.c60",mx:6},e.text),oe.createElement(Qm,{my:6,flex:1})):oe.createElement(Qm,{...e}),ms=we.svg.withConfig({shouldForwardProp:e=>!0})`
920
920
  ${pn({color:{property:"color",scale:"colors"}})}
921
- `,EO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function Dd({size:e="M",color:t="currentColor",style:r}){const n=EO[e]?.stroke,i=EO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M21 7.5L12 16.5L3 7.5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const CO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function Jm({size:e="M",color:t="currentColor",style:r}){const n=CO[e]?.stroke,i=CO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M21 16.5L11.989 7.5L3 16.5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const _O={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function YV({size:e="M",color:t="currentColor",style:r}){const n=_O[e]?.stroke,i=_O[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M8 10L12 14L16 10",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const RO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function $y({size:e="M",color:t="currentColor",style:r}){const n=RO[e]?.stroke,i=RO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M5 5L19 19M19 5L5 19",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const OO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function QV({size:e="M",color:t="currentColor",style:r}){const n=OO[e]?.stroke,i=OO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.364 5.636L5.634 18.356L18.354 5.626L18.364 5.636Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12 3C7.02 3 3 7.029 3 12C3 16.971 7.029 21 12 21C16.971 21 21 16.971 21 12C21 7.02 16.971 3 12 3Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const TO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function JV({size:e="M",color:t="currentColor",style:r}){const n=TO[e]?.stroke,i=TO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M15.556 11.111L12 14.667M12 14.667L8.444 11.111M12 14.667V4M20 16.444C20 17.3871 19.6254 18.2916 18.9585 18.9585C18.2916 19.6254 17.3871 20 16.444 20H7.556C6.61289 20 5.70841 19.6254 5.04153 18.9585C4.37465 18.2916 4 17.3871 4 16.444",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const $O={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function ZV({size:e="M",color:t="currentColor",style:r}){const n=$O[e]?.stroke,i=$O[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12.8001 3C13.006 3.00003 13.2069 3.06363 13.3753 3.18212C13.5438 3.3006 13.6715 3.4682 13.7411 3.662L14.2491 5.077C14.3297 5.29951 14.4863 5.48647 14.6911 5.605L16.1981 6.475C16.4027 6.59307 16.6426 6.63488 16.8751 6.593L18.3551 6.326C18.5579 6.28912 18.7672 6.31583 18.9543 6.40247C19.1413 6.48911 19.2971 6.63145 19.4001 6.81L20.2001 8.19C20.3034 8.36808 20.3493 8.57371 20.3314 8.77882C20.3135 8.98393 20.2327 9.17851 20.1001 9.336L19.1291 10.484C18.9762 10.6645 18.8922 10.8934 18.8921 11.13V12.87C18.8922 13.1066 18.9762 13.3355 19.1291 13.516L20.1001 14.664C20.2327 14.8215 20.3135 15.0161 20.3314 15.2212C20.3493 15.4263 20.3034 15.6319 20.2001 15.81L19.4001 17.19C19.2971 17.3684 19.1416 17.5106 18.9547 17.5972C18.7678 17.6838 18.5588 17.7107 18.3561 17.674L16.8761 17.407C16.6436 17.3651 16.4037 17.4069 16.1991 17.525L14.6921 18.395C14.4873 18.5135 14.3307 18.7005 14.2501 18.923L13.7421 20.338C13.6724 20.532 13.5446 20.6997 13.3759 20.8182C13.2073 20.9367 13.0062 21.0002 12.8001 21H11.2001C10.9942 21 10.7933 20.9364 10.6249 20.8179C10.4564 20.6994 10.3287 20.5318 10.2591 20.338L9.75111 18.923C9.6705 18.7008 9.51442 18.5139 9.31011 18.395L7.80211 17.525C7.59747 17.4069 7.35763 17.3651 7.12511 17.407L5.64511 17.674C5.44228 17.7109 5.23301 17.6842 5.04594 17.5975C4.85887 17.5109 4.70316 17.3686 4.60011 17.19L3.80011 15.81C3.69678 15.6319 3.65093 15.4263 3.66883 15.2212C3.68672 15.0161 3.76749 14.8215 3.90011 14.664L4.87111 13.516C5.02404 13.3355 5.10801 13.1066 5.10811 12.87V11.13C5.10801 10.8934 5.02404 10.6645 4.87111 10.484L3.91011 9.336C3.77749 9.17851 3.69672 8.98393 3.67883 8.77882C3.66093 8.57371 3.70678 8.36808 3.81011 8.19L4.61011 6.81C4.7131 6.63163 4.86865 6.48942 5.05551 6.40279C5.24238 6.31616 5.45143 6.28934 5.65411 6.326L7.13411 6.593C7.36663 6.63488 7.60647 6.59307 7.81111 6.475L9.31911 5.605C9.52342 5.48609 9.6795 5.29923 9.76011 5.077L10.2681 3.662C10.3372 3.46963 10.4635 3.30305 10.6302 3.18469C10.7968 3.06633 10.9957 3.00187 11.2001 3H12.8001Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12.0001 14.75C13.5189 14.75 14.7501 13.5188 14.7501 12C14.7501 10.4812 13.5189 9.25 12.0001 9.25C10.4813 9.25 9.25011 10.4812 9.25011 12C9.25011 13.5188 10.4813 14.75 12.0001 14.75Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},nc(e,t)}function vt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZI(e){if(Array.isArray(e))return e}function e9(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,u=[],c=!0,f=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function e2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
922
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(e,t){return ZI(e)||e9(e,t)||z1(e,t)||e2()}function Xn(e,t){if(e==null)return{};var r,n,i=yc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V$(n.key),n)}}function en(e,t,r){return t&&AO(e.prototype,t),r&&AO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ys(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}function ic(e){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ic(e)}function xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xb=function(){return!!e})()}function t9(e,t){if(t&&(ft(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vt(e)}function bs(e){var t=xb();return function(){var r,n=ic(e);if(t){var i=ic(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return t9(this,r)}}function r9(e){if(Array.isArray(e))return cy(e)}function t2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
923
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(e){return r9(e)||t2(e)||z1(e)||n9()}var Zm={exports:{}},Bt={};/** @license React v17.0.2
921
+ `,EO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function Dd({size:e="M",color:t="currentColor",style:r}){const n=EO[e]?.stroke,i=EO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M21 7.5L12 16.5L3 7.5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const CO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function Jm({size:e="M",color:t="currentColor",style:r}){const n=CO[e]?.stroke,i=CO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M21 16.5L11.989 7.5L3 16.5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const _O={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function QV({size:e="M",color:t="currentColor",style:r}){const n=_O[e]?.stroke,i=_O[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M8 10L12 14L16 10",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const RO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function $y({size:e="M",color:t="currentColor",style:r}){const n=RO[e]?.stroke,i=RO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M5 5L19 19M19 5L5 19",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const OO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function JV({size:e="M",color:t="currentColor",style:r}){const n=OO[e]?.stroke,i=OO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.364 5.636L5.634 18.356L18.354 5.626L18.364 5.636Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12 3C7.02 3 3 7.029 3 12C3 16.971 7.029 21 12 21C16.971 21 21 16.971 21 12C21 7.02 16.971 3 12 3Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const TO={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function ZV({size:e="M",color:t="currentColor",style:r}){const n=TO[e]?.stroke,i=TO[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M15.556 11.111L12 14.667M12 14.667L8.444 11.111M12 14.667V4M20 16.444C20 17.3871 19.6254 18.2916 18.9585 18.9585C18.2916 19.6254 17.3871 20 16.444 20H7.556C6.61289 20 5.70841 19.6254 5.04153 18.9585C4.37465 18.2916 4 17.3871 4 16.444",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}const $O={XS:{size:16,stroke:1.3},S:{size:20,stroke:1.5},M:{size:24,stroke:1.8},L:{size:40,stroke:2.2},XL:{size:48,stroke:2.5},XXL:{size:70,stroke:2.8}};function e9({size:e="M",color:t="currentColor",style:r}){const n=$O[e]?.stroke,i=$O[e]?.size;return E.createElement(ms,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:t,style:r},E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12.8001 3C13.006 3.00003 13.2069 3.06363 13.3753 3.18212C13.5438 3.3006 13.6715 3.4682 13.7411 3.662L14.2491 5.077C14.3297 5.29951 14.4863 5.48647 14.6911 5.605L16.1981 6.475C16.4027 6.59307 16.6426 6.63488 16.8751 6.593L18.3551 6.326C18.5579 6.28912 18.7672 6.31583 18.9543 6.40247C19.1413 6.48911 19.2971 6.63145 19.4001 6.81L20.2001 8.19C20.3034 8.36808 20.3493 8.57371 20.3314 8.77882C20.3135 8.98393 20.2327 9.17851 20.1001 9.336L19.1291 10.484C18.9762 10.6645 18.8922 10.8934 18.8921 11.13V12.87C18.8922 13.1066 18.9762 13.3355 19.1291 13.516L20.1001 14.664C20.2327 14.8215 20.3135 15.0161 20.3314 15.2212C20.3493 15.4263 20.3034 15.6319 20.2001 15.81L19.4001 17.19C19.2971 17.3684 19.1416 17.5106 18.9547 17.5972C18.7678 17.6838 18.5588 17.7107 18.3561 17.674L16.8761 17.407C16.6436 17.3651 16.4037 17.4069 16.1991 17.525L14.6921 18.395C14.4873 18.5135 14.3307 18.7005 14.2501 18.923L13.7421 20.338C13.6724 20.532 13.5446 20.6997 13.3759 20.8182C13.2073 20.9367 13.0062 21.0002 12.8001 21H11.2001C10.9942 21 10.7933 20.9364 10.6249 20.8179C10.4564 20.6994 10.3287 20.5318 10.2591 20.338L9.75111 18.923C9.6705 18.7008 9.51442 18.5139 9.31011 18.395L7.80211 17.525C7.59747 17.4069 7.35763 17.3651 7.12511 17.407L5.64511 17.674C5.44228 17.7109 5.23301 17.6842 5.04594 17.5975C4.85887 17.5109 4.70316 17.3686 4.60011 17.19L3.80011 15.81C3.69678 15.6319 3.65093 15.4263 3.66883 15.2212C3.68672 15.0161 3.76749 14.8215 3.90011 14.664L4.87111 13.516C5.02404 13.3355 5.10801 13.1066 5.10811 12.87V11.13C5.10801 10.8934 5.02404 10.6645 4.87111 10.484L3.91011 9.336C3.77749 9.17851 3.69672 8.98393 3.67883 8.77882C3.66093 8.57371 3.70678 8.36808 3.81011 8.19L4.61011 6.81C4.7131 6.63163 4.86865 6.48942 5.05551 6.40279C5.24238 6.31616 5.45143 6.28934 5.65411 6.326L7.13411 6.593C7.36663 6.63488 7.60647 6.59307 7.81111 6.475L9.31911 5.605C9.52342 5.48609 9.6795 5.29923 9.76011 5.077L10.2681 3.662C10.3372 3.46963 10.4635 3.30305 10.6302 3.18469C10.7968 3.06633 10.9957 3.00187 11.2001 3H12.8001Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M12.0001 14.75C13.5189 14.75 14.7501 13.5188 14.7501 12C14.7501 10.4812 13.5189 9.25 12.0001 9.25C10.4813 9.25 9.25011 10.4812 9.25011 12C9.25011 13.5188 10.4813 14.75 12.0001 14.75Z",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}))}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},nc(e,t)}function vt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZI(e){if(Array.isArray(e))return e}function t9(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,u=[],c=!0,f=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function e2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
922
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(e,t){return ZI(e)||t9(e,t)||z1(e,t)||e2()}function Xn(e,t){if(e==null)return{};var r,n,i=yc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V$(n.key),n)}}function en(e,t,r){return t&&AO(e.prototype,t),r&&AO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ys(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}function ic(e){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ic(e)}function xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xb=function(){return!!e})()}function r9(e,t){if(t&&(ft(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vt(e)}function bs(e){var t=xb();return function(){var r,n=ic(e);if(t){var i=ic(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return r9(this,r)}}function n9(e){if(Array.isArray(e))return cy(e)}function t2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
923
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(e){return n9(e)||t2(e)||z1(e)||i9()}var Zm={exports:{}},Bt={};/** @license React v17.0.2
924
924
  * react-is.production.min.js
925
925
  *
926
926
  * Copyright (c) Facebook, Inc. and its affiliates.
927
927
  *
928
928
  * This source code is licensed under the MIT license found in the
929
929
  * LICENSE file in the root directory of this source tree.
930
- */var IO;function i9(){if(IO)return Bt;IO=1;var e=60103,t=60106,r=60107,n=60108,i=60114,o=60109,s=60110,u=60112,c=60113,f=60120,d=60115,g=60116,h=60121,y=60122,m=60117,S=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;e=C("react.element"),t=C("react.portal"),r=C("react.fragment"),n=C("react.strict_mode"),i=C("react.profiler"),o=C("react.provider"),s=C("react.context"),u=C("react.forward_ref"),c=C("react.suspense"),f=C("react.suspense_list"),d=C("react.memo"),g=C("react.lazy"),h=C("react.block"),y=C("react.server.block"),m=C("react.fundamental"),S=C("react.debug_trace_mode"),b=C("react.legacy_hidden")}function x(B){if(typeof B=="object"&&B!==null){var j=B.$$typeof;switch(j){case e:switch(B=B.type,B){case r:case i:case n:case c:case f:return B;default:switch(B=B&&B.$$typeof,B){case s:case u:case g:case d:case o:return B;default:return j}}case t:return j}}}var $=o,T=e,_=u,A=r,O=g,I=d,L=t,F=i,W=n,z=c;return Bt.ContextConsumer=s,Bt.ContextProvider=$,Bt.Element=T,Bt.ForwardRef=_,Bt.Fragment=A,Bt.Lazy=O,Bt.Memo=I,Bt.Portal=L,Bt.Profiler=F,Bt.StrictMode=W,Bt.Suspense=z,Bt.isAsyncMode=function(){return!1},Bt.isConcurrentMode=function(){return!1},Bt.isContextConsumer=function(B){return x(B)===s},Bt.isContextProvider=function(B){return x(B)===o},Bt.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===e},Bt.isForwardRef=function(B){return x(B)===u},Bt.isFragment=function(B){return x(B)===r},Bt.isLazy=function(B){return x(B)===g},Bt.isMemo=function(B){return x(B)===d},Bt.isPortal=function(B){return x(B)===t},Bt.isProfiler=function(B){return x(B)===i},Bt.isStrictMode=function(B){return x(B)===n},Bt.isSuspense=function(B){return x(B)===c},Bt.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===i||B===S||B===n||B===c||B===f||B===b||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===d||B.$$typeof===o||B.$$typeof===s||B.$$typeof===u||B.$$typeof===m||B.$$typeof===h||B[0]===y)},Bt.typeOf=x,Bt}var PO;function o9(){return PO||(PO=1,Zm.exports=i9()),Zm.exports}var a9=o9(),_n="top",Si="bottom",wi="right",Rn="left",Eb="auto",Cc=[_n,Si,wi,Rn],xl="start",oc="end",s9="clippingParents",r2="viewport",yu="popper",l9="reference",kO=Cc.reduce(function(e,t){return e.concat([t+"-"+xl,t+"-"+oc])},[]),n2=[].concat(Cc,[Eb]).reduce(function(e,t){return e.concat([t,t+"-"+xl,t+"-"+oc])},[]),u9="beforeRead",c9="read",f9="afterRead",d9="beforeMain",p9="main",h9="afterMain",g9="beforeWrite",v9="write",m9="afterWrite",y9=[u9,c9,f9,d9,p9,h9,g9,v9,m9];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ps(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function bi(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cb(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function b9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!bi(o)||!yo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var u=i[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function S9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=s.reduce(function(c,f){return c[f]="",c},{});!bi(i)||!yo(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const i2={name:"applyStyles",enabled:!0,phase:"write",fn:b9,effect:S9,requires:["computeStyles"]};function mo(e){return e.split("-")[0]}var ss=Math.max,rp=Math.min,El=Math.round;function Ay(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function o2(){return!/^((?!chrome|android).)*safari/i.test(Ay())}function Cl(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&bi(e)&&(i=e.offsetWidth>0&&El(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&El(n.height)/e.offsetHeight||1);var s=ps(e)?Kn(e):window,u=s.visualViewport,c=!o2()&&r,f=(n.left+(c&&u?u.offsetLeft:0))/i,d=(n.top+(c&&u?u.offsetTop:0))/o,g=n.width/i,h=n.height/o;return{width:g,height:h,top:d,right:f+g,bottom:d+h,left:f,x:f,y:d}}function _b(e){var t=Cl(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function a2(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Cb(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(e){return Kn(e).getComputedStyle(e)}function w9(e){return["table","td","th"].indexOf(yo(e))>=0}function Da(e){return((ps(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mp(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(Cb(e)?e.host:null)||Da(e)}function MO(e){return!bi(e)||Qo(e).position==="fixed"?null:e.offsetParent}function x9(e){var t=/firefox/i.test(Ay()),r=/Trident/i.test(Ay());if(r&&bi(e)){var n=Qo(e);if(n.position==="fixed")return null}var i=Mp(e);for(Cb(i)&&(i=i.host);bi(i)&&["html","body"].indexOf(yo(i))<0;){var o=Qo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _c(e){for(var t=Kn(e),r=MO(e);r&&w9(r)&&Qo(r).position==="static";)r=MO(r);return r&&(yo(r)==="html"||yo(r)==="body"&&Qo(r).position==="static")?t:r||x9(e)||t}function Rb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fu(e,t,r){return ss(e,rp(t,r))}function E9(e,t,r){var n=Fu(e,t,r);return n>r?r:n}function s2(){return{top:0,right:0,bottom:0,left:0}}function l2(e){return Object.assign({},s2(),e)}function u2(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var C9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,l2(typeof t!="number"?t:u2(t,Cc))};function _9(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,u=mo(r.placement),c=Rb(u),f=[Rn,wi].indexOf(u)>=0,d=f?"height":"width";if(!(!o||!s)){var g=C9(i.padding,r),h=_b(o),y=c==="y"?_n:Rn,m=c==="y"?Si:wi,S=r.rects.reference[d]+r.rects.reference[c]-s[c]-r.rects.popper[d],b=s[c]-r.rects.reference[c],C=_c(o),x=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,$=S/2-b/2,T=g[y],_=x-h[d]-g[m],A=x/2-h[d]/2+$,O=Fu(T,A,_),I=c;r.modifiersData[n]=(t={},t[I]=O,t.centerOffset=O-A,t)}}function R9(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||a2(t.elements.popper,i)&&(t.elements.arrow=i))}const O9={name:"arrow",enabled:!0,phase:"main",fn:_9,effect:R9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _l(e){return e.split("-")[1]}var T9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $9(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:El(r*i)/i||0,y:El(n*i)/i||0}}function DO(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,g=e.isFixed,h=s.x,y=h===void 0?0:h,m=s.y,S=m===void 0?0:m,b=typeof d=="function"?d({x:y,y:S}):{x:y,y:S};y=b.x,S=b.y;var C=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),$=Rn,T=_n,_=window;if(f){var A=_c(r),O="clientHeight",I="clientWidth";if(A===Kn(r)&&(A=Da(r),Qo(A).position!=="static"&&u==="absolute"&&(O="scrollHeight",I="scrollWidth")),A=A,i===_n||(i===Rn||i===wi)&&o===oc){T=Si;var L=g&&A===_&&_.visualViewport?_.visualViewport.height:A[O];S-=L-n.height,S*=c?1:-1}if(i===Rn||(i===_n||i===Si)&&o===oc){$=wi;var F=g&&A===_&&_.visualViewport?_.visualViewport.width:A[I];y-=F-n.width,y*=c?1:-1}}var W=Object.assign({position:u},f&&T9),z=d===!0?$9({x:y,y:S},Kn(r)):{x:y,y:S};if(y=z.x,S=z.y,c){var B;return Object.assign({},W,(B={},B[T]=x?"0":"",B[$]=C?"0":"",B.transform=(_.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",B))}return Object.assign({},W,(t={},t[T]=x?S+"px":"",t[$]=C?y+"px":"",t.transform="",t))}function A9(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,u=r.roundOffsets,c=u===void 0?!0:u,f={placement:mo(t.placement),variation:_l(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,DO(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,DO(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const I9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A9,data:{}};var rd={passive:!0};function P9(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,u=s===void 0?!0:s,c=Kn(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(d){d.addEventListener("scroll",r.update,rd)}),u&&c.addEventListener("resize",r.update,rd),function(){o&&f.forEach(function(d){d.removeEventListener("scroll",r.update,rd)}),u&&c.removeEventListener("resize",r.update,rd)}}const k9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P9,data:{}};var M9={left:"right",right:"left",bottom:"top",top:"bottom"};function Ld(e){return e.replace(/left|right|bottom|top/g,function(t){return M9[t]})}var D9={start:"end",end:"start"};function LO(e){return e.replace(/start|end/g,function(t){return D9[t]})}function Ob(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Tb(e){return Cl(Da(e)).left+Ob(e).scrollLeft}function L9(e,t){var r=Kn(e),n=Da(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,u=0,c=0;if(i){o=i.width,s=i.height;var f=o2();(f||!f&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:u+Tb(e),y:c}}function F9(e){var t,r=Da(e),n=Ob(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ss(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ss(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+Tb(e),c=-n.scrollTop;return Qo(i||r).direction==="rtl"&&(u+=ss(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:c}}function $b(e){var t=Qo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function c2(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:bi(e)&&$b(e)?e:c2(Mp(e))}function Nu(e,t){var r;t===void 0&&(t=[]);var n=c2(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),s=i?[o].concat(o.visualViewport||[],$b(n)?n:[]):n,u=t.concat(s);return i?u:u.concat(Nu(Mp(s)))}function Iy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function N9(e,t){var r=Cl(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function FO(e,t,r){return t===r2?Iy(L9(e,r)):ps(t)?N9(t,r):Iy(F9(Da(e)))}function j9(e){var t=Nu(Mp(e)),r=["absolute","fixed"].indexOf(Qo(e).position)>=0,n=r&&bi(e)?_c(e):e;return ps(n)?t.filter(function(i){return ps(i)&&a2(i,n)&&yo(i)!=="body"}):[]}function z9(e,t,r,n){var i=t==="clippingParents"?j9(e):[].concat(t),o=[].concat(i,[r]),s=o[0],u=o.reduce(function(c,f){var d=FO(e,f,n);return c.top=ss(d.top,c.top),c.right=rp(d.right,c.right),c.bottom=rp(d.bottom,c.bottom),c.left=ss(d.left,c.left),c},FO(e,s,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function f2(e){var t=e.reference,r=e.element,n=e.placement,i=n?mo(n):null,o=n?_l(n):null,s=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(i){case _n:c={x:s,y:t.y-r.height};break;case Si:c={x:s,y:t.y+t.height};break;case wi:c={x:t.x+t.width,y:u};break;case Rn:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var f=i?Rb(i):null;if(f!=null){var d=f==="y"?"height":"width";switch(o){case xl:c[f]=c[f]-(t[d]/2-r[d]/2);break;case oc:c[f]=c[f]+(t[d]/2-r[d]/2);break}}return c}function ac(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,u=r.boundary,c=u===void 0?s9:u,f=r.rootBoundary,d=f===void 0?r2:f,g=r.elementContext,h=g===void 0?yu:g,y=r.altBoundary,m=y===void 0?!1:y,S=r.padding,b=S===void 0?0:S,C=l2(typeof b!="number"?b:u2(b,Cc)),x=h===yu?l9:yu,$=e.rects.popper,T=e.elements[m?x:h],_=z9(ps(T)?T:T.contextElement||Da(e.elements.popper),c,d,s),A=Cl(e.elements.reference),O=f2({reference:A,element:$,placement:i}),I=Iy(Object.assign({},$,O)),L=h===yu?I:A,F={top:_.top-L.top+C.top,bottom:L.bottom-_.bottom+C.bottom,left:_.left-L.left+C.left,right:L.right-_.right+C.right},W=e.modifiersData.offset;if(h===yu&&W){var z=W[i];Object.keys(F).forEach(function(B){var j=[wi,Si].indexOf(B)>=0?1:-1,N=[_n,Si].indexOf(B)>=0?"y":"x";F[B]+=z[N]*j})}return F}function B9(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,f=c===void 0?n2:c,d=_l(n),g=d?u?kO:kO.filter(function(m){return _l(m)===d}):Cc,h=g.filter(function(m){return f.indexOf(m)>=0});h.length===0&&(h=g);var y=h.reduce(function(m,S){return m[S]=ac(e,{placement:S,boundary:i,rootBoundary:o,padding:s})[mo(S)],m},{});return Object.keys(y).sort(function(m,S){return y[m]-y[S]})}function V9(e){if(mo(e)===Eb)return[];var t=Ld(e);return[LO(e),t,LO(t)]}function H9(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!0:s,c=r.fallbackPlacements,f=r.padding,d=r.boundary,g=r.rootBoundary,h=r.altBoundary,y=r.flipVariations,m=y===void 0?!0:y,S=r.allowedAutoPlacements,b=t.options.placement,C=mo(b),x=C===b,$=c||(x||!m?[Ld(b)]:V9(b)),T=[b].concat($).reduce(function(Z,te){return Z.concat(mo(te)===Eb?B9(t,{placement:te,boundary:d,rootBoundary:g,padding:f,flipVariations:m,allowedAutoPlacements:S}):te)},[]),_=t.rects.reference,A=t.rects.popper,O=new Map,I=!0,L=T[0],F=0;F<T.length;F++){var W=T[F],z=mo(W),B=_l(W)===xl,j=[_n,Si].indexOf(z)>=0,N=j?"width":"height",X=ac(t,{placement:W,boundary:d,rootBoundary:g,altBoundary:h,padding:f}),q=j?B?wi:Rn:B?Si:_n;_[N]>A[N]&&(q=Ld(q));var M=Ld(q),J=[];if(o&&J.push(X[z]<=0),u&&J.push(X[q]<=0,X[M]<=0),J.every(function(Z){return Z})){L=W,I=!1;break}O.set(W,J)}if(I)for(var U=m?3:1,D=function(te){var K=T.find(function(ye){var ae=O.get(ye);if(ae)return ae.slice(0,te).every(function(be){return be})});if(K)return L=K,"break"},P=U;P>0;P--){var G=D(P);if(G==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const U9={name:"flip",enabled:!0,phase:"main",fn:H9,requiresIfExists:["offset"],data:{_skip:!1}};function NO(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jO(e){return[_n,wi,Si,Rn].some(function(t){return e[t]>=0})}function W9(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=ac(t,{elementContext:"reference"}),u=ac(t,{altBoundary:!0}),c=NO(s,n),f=NO(u,i,o),d=jO(c),g=jO(f);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":g})}const q9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:W9};function G9(e,t,r){var n=mo(e),i=[Rn,_n].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],u=o[1];return s=s||0,u=(u||0)*i,[Rn,wi].indexOf(n)>=0?{x:u,y:s}:{x:s,y:u}}function X9(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=n2.reduce(function(d,g){return d[g]=G9(g,t.rects,o),d},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=s}const K9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:X9};function Y9(e){var t=e.state,r=e.name;t.modifiersData[r]=f2({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Q9={name:"popperOffsets",enabled:!0,phase:"read",fn:Y9,data:{}};function J9(e){return e==="x"?"y":"x"}function Z9(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!1:s,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,g=r.padding,h=r.tether,y=h===void 0?!0:h,m=r.tetherOffset,S=m===void 0?0:m,b=ac(t,{boundary:c,rootBoundary:f,padding:g,altBoundary:d}),C=mo(t.placement),x=_l(t.placement),$=!x,T=Rb(C),_=J9(T),A=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,L=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,F=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(A){if(o){var B,j=T==="y"?_n:Rn,N=T==="y"?Si:wi,X=T==="y"?"height":"width",q=A[T],M=q+b[j],J=q-b[N],U=y?-I[X]/2:0,D=x===xl?O[X]:I[X],P=x===xl?-I[X]:-O[X],G=t.elements.arrow,Z=y&&G?_b(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:s2(),K=te[j],ye=te[N],ae=Fu(0,O[X],Z[X]),be=$?O[X]/2-U-ae-K-F.mainAxis:D-ae-K-F.mainAxis,he=$?-O[X]/2+U+ae+ye+F.mainAxis:P+ae+ye+F.mainAxis,xe=t.elements.arrow&&_c(t.elements.arrow),Se=xe?T==="y"?xe.clientTop||0:xe.clientLeft||0:0,Oe=(B=W?.[T])!=null?B:0,Ee=q+be-Oe-Se,_e=q+he-Oe,$e=Fu(y?rp(M,Ee):M,q,y?ss(J,_e):J);A[T]=$e,z[T]=$e-q}if(u){var Pe,qe=T==="x"?_n:Rn,Qe=T==="x"?Si:wi,Ne=A[_],je=_==="y"?"height":"width",Ke=Ne+b[qe],Ve=Ne-b[Qe],Ce=[_n,Rn].indexOf(C)!==-1,Ge=(Pe=W?.[_])!=null?Pe:0,lt=Ce?Ke:Ne-O[je]-I[je]-Ge+F.altAxis,At=Ce?Ne+O[je]+I[je]-Ge-F.altAxis:Ve,dt=y&&Ce?E9(lt,Ne,At):Fu(y?lt:Ke,Ne,y?At:Ve);A[_]=dt,z[_]=dt-Ne}t.modifiersData[n]=z}}const e7={name:"preventOverflow",enabled:!0,phase:"main",fn:Z9,requiresIfExists:["offset"]};function t7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function r7(e){return e===Kn(e)||!bi(e)?Ob(e):t7(e)}function n7(e){var t=e.getBoundingClientRect(),r=El(t.width)/e.offsetWidth||1,n=El(t.height)/e.offsetHeight||1;return r!==1||n!==1}function i7(e,t,r){r===void 0&&(r=!1);var n=bi(t),i=bi(t)&&n7(t),o=Da(t),s=Cl(e,i,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((yo(t)!=="body"||$b(o))&&(u=r7(t)),bi(t)?(c=Cl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Tb(o))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function o7(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function a7(e){var t=o7(e);return y9.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function s7(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function l7(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var zO={placement:"bottom",modifiers:[],strategy:"absolute"};function BO(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function u7(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?zO:i;return function(u,c,f){f===void 0&&(f=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},zO,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},g=[],h=!1,y={state:d,setOptions:function(C){var x=typeof C=="function"?C(d.options):C;S(),d.options=Object.assign({},o,d.options,x),d.scrollParents={reference:ps(u)?Nu(u):u.contextElement?Nu(u.contextElement):[],popper:Nu(c)};var $=a7(l7([].concat(n,d.options.modifiers)));return d.orderedModifiers=$.filter(function(T){return T.enabled}),m(),y.update()},forceUpdate:function(){if(!h){var C=d.elements,x=C.reference,$=C.popper;if(BO(x,$)){d.rects={reference:i7(x,_c($),d.options.strategy==="fixed"),popper:_b($)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var T=0;T<d.orderedModifiers.length;T++){if(d.reset===!0){d.reset=!1,T=-1;continue}var _=d.orderedModifiers[T],A=_.fn,O=_.options,I=O===void 0?{}:O,L=_.name;typeof A=="function"&&(d=A({state:d,options:I,name:L,instance:y})||d)}}}},update:s7(function(){return new Promise(function(b){y.forceUpdate(),b(d)})}),destroy:function(){S(),h=!0}};if(!BO(u,c))return y;y.setOptions(f).then(function(b){!h&&f.onFirstUpdate&&f.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var C=b.name,x=b.options,$=x===void 0?{}:x,T=b.effect;if(typeof T=="function"){var _=T({state:d,name:C,instance:y,options:$}),A=function(){};g.push(_||A)}})}function S(){g.forEach(function(b){return b()}),g=[]}return y}}var c7=[k9,Q9,I9,i2,K9,U9,e7,O9,q9],f7=u7({defaultModifiers:c7}),d7="tippy-box",d2="tippy-content",p7="tippy-backdrop",p2="tippy-arrow",h2="tippy-svg-arrow",Za={passive:!0,capture:!0},g2=function(){return document.body};function e0(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function Ab(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function v2(e,t){return typeof e=="function"?e.apply(void 0,t):e}function VO(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function h7(e){return e.split(/\s+/).filter(Boolean)}function ol(e){return[].concat(e)}function HO(e,t){e.indexOf(t)===-1&&e.push(t)}function g7(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function v7(e){return e.split("-")[0]}function np(e){return[].slice.call(e)}function UO(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function ju(){return document.createElement("div")}function Dp(e){return["Element","Fragment"].some(function(t){return Ab(e,t)})}function m7(e){return Ab(e,"NodeList")}function y7(e){return Ab(e,"MouseEvent")}function b7(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function S7(e){return Dp(e)?[e]:m7(e)?np(e):Array.isArray(e)?e:np(document.querySelectorAll(e))}function t0(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function WO(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function w7(e){var t,r=ol(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function x7(e,t){var r=t.clientX,n=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,u=i.props,c=u.interactiveBorder,f=v7(s.placement),d=s.modifiersData.offset;if(!d)return!0;var g=f==="bottom"?d.top.y:0,h=f==="top"?d.bottom.y:0,y=f==="right"?d.left.x:0,m=f==="left"?d.right.x:0,S=o.top-n+g>c,b=n-o.bottom-h>c,C=o.left-r+y>c,x=r-o.right-m>c;return S||b||C||x})}function r0(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[n](i,r)})}function qO(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var po={isTouch:!1},GO=0;function E7(){po.isTouch||(po.isTouch=!0,window.performance&&document.addEventListener("mousemove",m2))}function m2(){var e=performance.now();e-GO<20&&(po.isTouch=!1,document.removeEventListener("mousemove",m2)),GO=e}function C7(){var e=document.activeElement;if(b7(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function _7(){document.addEventListener("touchstart",E7,Za),window.addEventListener("blur",C7)}var R7=typeof window<"u"&&typeof document<"u",O7=R7?!!window.msCrypto:!1,T7={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},$7={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Wi=Object.assign({appendTo:g2,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},T7,$7),A7=Object.keys(Wi),I7=function(t){var r=Object.keys(t);r.forEach(function(n){Wi[n]=t[n]})};function y2(e){var t=e.plugins||[],r=t.reduce(function(n,i){var o=i.name,s=i.defaultValue;if(o){var u;n[o]=e[o]!==void 0?e[o]:(u=Wi[o])!=null?u:s}return n},{});return Object.assign({},e,r)}function P7(e,t){var r=t?Object.keys(y2(Object.assign({},Wi,{plugins:t}))):A7,n=r.reduce(function(i,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return n}function XO(e,t){var r=Object.assign({},t,{content:v2(t.content,[e])},t.ignoreAttributes?{}:P7(e,t.plugins));return r.aria=Object.assign({},Wi.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var k7=function(){return"innerHTML"};function Py(e,t){e[k7()]=t}function KO(e){var t=ju();return e===!0?t.className=p2:(t.className=h2,Dp(e)?t.appendChild(e):Py(t,e)),t}function YO(e,t){Dp(t.content)?(Py(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Py(e,t.content):e.textContent=t.content)}function ky(e){var t=e.firstElementChild,r=np(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(d2)}),arrow:r.find(function(n){return n.classList.contains(p2)||n.classList.contains(h2)}),backdrop:r.find(function(n){return n.classList.contains(p7)})}}function b2(e){var t=ju(),r=ju();r.className=d7,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=ju();n.className=d2,n.setAttribute("data-state","hidden"),YO(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props);function i(o,s){var u=ky(t),c=u.box,f=u.content,d=u.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&YO(f,e.props),s.arrow?d?o.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(KO(s.arrow))):c.appendChild(KO(s.arrow)):d&&c.removeChild(d)}return{popper:t,onUpdate:i}}b2.$$tippy=!0;var M7=1,nd=[],n0=[];function D7(e,t){var r=XO(e,Object.assign({},Wi,y2(UO(t)))),n,i,o,s=!1,u=!1,c=!1,f=!1,d,g,h,y=[],m=VO(Ee,r.interactiveDebounce),S,b=M7++,C=null,x=g7(r.plugins),$={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},T={id:b,reference:e,popper:ju(),popperInstance:C,props:r,state:$,plugins:x,clearDelayTimeouts:lt,setProps:At,setContent:dt,show:Dt,hide:$t,hideWithInteractivity:ne,enable:Ce,disable:Ge,unmount:se,destroy:pe};if(!r.render)return T;var _=r.render(T),A=_.popper,O=_.onUpdate;A.setAttribute("data-tippy-root",""),A.id="tippy-"+T.id,T.popper=A,e._tippy=T,A._tippy=T;var I=x.map(function(Y){return Y.fn(T)}),L=e.hasAttribute("aria-expanded");return xe(),U(),q(),M("onCreate",[T]),r.showOnCreate&&Ke(),A.addEventListener("mouseenter",function(){T.props.interactive&&T.state.isVisible&&T.clearDelayTimeouts()}),A.addEventListener("mouseleave",function(){T.props.interactive&&T.props.trigger.indexOf("mouseenter")>=0&&j().addEventListener("mousemove",m)}),T;function F(){var Y=T.props.touch;return Array.isArray(Y)?Y:[Y,0]}function W(){return F()[0]==="hold"}function z(){var Y;return!!((Y=T.props.render)!=null&&Y.$$tippy)}function B(){return S||e}function j(){var Y=B().parentNode;return Y?w7(Y):document}function N(){return ky(A)}function X(Y){return T.state.isMounted&&!T.state.isVisible||po.isTouch||d&&d.type==="focus"?0:e0(T.props.delay,Y?0:1,Wi.delay)}function q(Y){Y===void 0&&(Y=!1),A.style.pointerEvents=T.props.interactive&&!Y?"":"none",A.style.zIndex=""+T.props.zIndex}function M(Y,V,ee){if(ee===void 0&&(ee=!0),I.forEach(function(le){le[Y]&&le[Y].apply(le,V)}),ee){var Re;(Re=T.props)[Y].apply(Re,V)}}function J(){var Y=T.props.aria;if(Y.content){var V="aria-"+Y.content,ee=A.id,Re=ol(T.props.triggerTarget||e);Re.forEach(function(le){var fe=le.getAttribute(V);if(T.state.isVisible)le.setAttribute(V,fe?fe+" "+ee:ee);else{var ve=fe&&fe.replace(ee,"").trim();ve?le.setAttribute(V,ve):le.removeAttribute(V)}})}}function U(){if(!(L||!T.props.aria.expanded)){var Y=ol(T.props.triggerTarget||e);Y.forEach(function(V){T.props.interactive?V.setAttribute("aria-expanded",T.state.isVisible&&V===B()?"true":"false"):V.removeAttribute("aria-expanded")})}}function D(){j().removeEventListener("mousemove",m),nd=nd.filter(function(Y){return Y!==m})}function P(Y){if(!(po.isTouch&&(c||Y.type==="mousedown"))){var V=Y.composedPath&&Y.composedPath()[0]||Y.target;if(!(T.props.interactive&&qO(A,V))){if(ol(T.props.triggerTarget||e).some(function(ee){return qO(ee,V)})){if(po.isTouch||T.state.isVisible&&T.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[T,Y]);T.props.hideOnClick===!0&&(T.clearDelayTimeouts(),T.hide(),u=!0,setTimeout(function(){u=!1}),T.state.isMounted||K())}}}function G(){c=!0}function Z(){c=!1}function te(){var Y=j();Y.addEventListener("mousedown",P,!0),Y.addEventListener("touchend",P,Za),Y.addEventListener("touchstart",Z,Za),Y.addEventListener("touchmove",G,Za)}function K(){var Y=j();Y.removeEventListener("mousedown",P,!0),Y.removeEventListener("touchend",P,Za),Y.removeEventListener("touchstart",Z,Za),Y.removeEventListener("touchmove",G,Za)}function ye(Y,V){be(Y,function(){!T.state.isVisible&&A.parentNode&&A.parentNode.contains(A)&&V()})}function ae(Y,V){be(Y,V)}function be(Y,V){var ee=N().box;function Re(le){le.target===ee&&(r0(ee,"remove",Re),V())}if(Y===0)return V();r0(ee,"remove",g),r0(ee,"add",Re),g=Re}function he(Y,V,ee){ee===void 0&&(ee=!1);var Re=ol(T.props.triggerTarget||e);Re.forEach(function(le){le.addEventListener(Y,V,ee),y.push({node:le,eventType:Y,handler:V,options:ee})})}function xe(){W()&&(he("touchstart",Oe,{passive:!0}),he("touchend",_e,{passive:!0})),h7(T.props.trigger).forEach(function(Y){if(Y!=="manual")switch(he(Y,Oe),Y){case"mouseenter":he("mouseleave",_e);break;case"focus":he(O7?"focusout":"blur",$e);break;case"focusin":he("focusout",$e);break}})}function Se(){y.forEach(function(Y){var V=Y.node,ee=Y.eventType,Re=Y.handler,le=Y.options;V.removeEventListener(ee,Re,le)}),y=[]}function Oe(Y){var V,ee=!1;if(!(!T.state.isEnabled||Pe(Y)||u)){var Re=((V=d)==null?void 0:V.type)==="focus";d=Y,S=Y.currentTarget,U(),!T.state.isVisible&&y7(Y)&&nd.forEach(function(le){return le(Y)}),Y.type==="click"&&(T.props.trigger.indexOf("mouseenter")<0||s)&&T.props.hideOnClick!==!1&&T.state.isVisible?ee=!0:Ke(Y),Y.type==="click"&&(s=!ee),ee&&!Re&&Ve(Y)}}function Ee(Y){var V=Y.target,ee=B().contains(V)||A.contains(V);if(!(Y.type==="mousemove"&&ee)){var Re=je().concat(A).map(function(le){var fe,ve=le._tippy,Ae=(fe=ve.popperInstance)==null?void 0:fe.state;return Ae?{popperRect:le.getBoundingClientRect(),popperState:Ae,props:r}:null}).filter(Boolean);x7(Re,Y)&&(D(),Ve(Y))}}function _e(Y){var V=Pe(Y)||T.props.trigger.indexOf("click")>=0&&s;if(!V){if(T.props.interactive){T.hideWithInteractivity(Y);return}Ve(Y)}}function $e(Y){T.props.trigger.indexOf("focusin")<0&&Y.target!==B()||T.props.interactive&&Y.relatedTarget&&A.contains(Y.relatedTarget)||Ve(Y)}function Pe(Y){return po.isTouch?W()!==Y.type.indexOf("touch")>=0:!1}function qe(){Qe();var Y=T.props,V=Y.popperOptions,ee=Y.placement,Re=Y.offset,le=Y.getReferenceClientRect,fe=Y.moveTransition,ve=z()?ky(A).arrow:null,Ae=le?{getBoundingClientRect:le,contextElement:le.contextElement||B()}:e,Me={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ze){var et=Ze.state;if(z()){var Nt=N(),ct=Nt.box;["placement","reference-hidden","escaped"].forEach(function(pt){pt==="placement"?ct.setAttribute("data-placement",et.placement):et.attributes.popper["data-popper-"+pt]?ct.setAttribute("data-"+pt,""):ct.removeAttribute("data-"+pt)}),et.attributes.popper={}}}},ze=[{name:"offset",options:{offset:Re}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!fe}},Me];z()&&ve&&ze.push({name:"arrow",options:{element:ve,padding:3}}),ze.push.apply(ze,V?.modifiers||[]),T.popperInstance=f7(Ae,A,Object.assign({},V,{placement:ee,onFirstUpdate:h,modifiers:ze}))}function Qe(){T.popperInstance&&(T.popperInstance.destroy(),T.popperInstance=null)}function Ne(){var Y=T.props.appendTo,V,ee=B();T.props.interactive&&Y===g2||Y==="parent"?V=ee.parentNode:V=v2(Y,[ee]),V.contains(A)||V.appendChild(A),T.state.isMounted=!0,qe()}function je(){return np(A.querySelectorAll("[data-tippy-root]"))}function Ke(Y){T.clearDelayTimeouts(),Y&&M("onTrigger",[T,Y]),te();var V=X(!0),ee=F(),Re=ee[0],le=ee[1];po.isTouch&&Re==="hold"&&le&&(V=le),V?n=setTimeout(function(){T.show()},V):T.show()}function Ve(Y){if(T.clearDelayTimeouts(),M("onUntrigger",[T,Y]),!T.state.isVisible){K();return}if(!(T.props.trigger.indexOf("mouseenter")>=0&&T.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Y.type)>=0&&s)){var V=X(!1);V?i=setTimeout(function(){T.state.isVisible&&T.hide()},V):o=requestAnimationFrame(function(){T.hide()})}}function Ce(){T.state.isEnabled=!0}function Ge(){T.hide(),T.state.isEnabled=!1}function lt(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(o)}function At(Y){if(!T.state.isDestroyed){M("onBeforeUpdate",[T,Y]),Se();var V=T.props,ee=XO(e,Object.assign({},V,UO(Y),{ignoreAttributes:!0}));T.props=ee,xe(),V.interactiveDebounce!==ee.interactiveDebounce&&(D(),m=VO(Ee,ee.interactiveDebounce)),V.triggerTarget&&!ee.triggerTarget?ol(V.triggerTarget).forEach(function(Re){Re.removeAttribute("aria-expanded")}):ee.triggerTarget&&e.removeAttribute("aria-expanded"),U(),q(),O&&O(V,ee),T.popperInstance&&(qe(),je().forEach(function(Re){requestAnimationFrame(Re._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[T,Y])}}function dt(Y){T.setProps({content:Y})}function Dt(){var Y=T.state.isVisible,V=T.state.isDestroyed,ee=!T.state.isEnabled,Re=po.isTouch&&!T.props.touch,le=e0(T.props.duration,0,Wi.duration);if(!(Y||V||ee||Re)&&!B().hasAttribute("disabled")&&(M("onShow",[T],!1),T.props.onShow(T)!==!1)){if(T.state.isVisible=!0,z()&&(A.style.visibility="visible"),q(),te(),T.state.isMounted||(A.style.transition="none"),z()){var fe=N(),ve=fe.box,Ae=fe.content;t0([ve,Ae],0)}h=function(){var ze;if(!(!T.state.isVisible||f)){if(f=!0,A.offsetHeight,A.style.transition=T.props.moveTransition,z()&&T.props.animation){var Je=N(),Ze=Je.box,et=Je.content;t0([Ze,et],le),WO([Ze,et],"visible")}J(),U(),HO(n0,T),(ze=T.popperInstance)==null||ze.forceUpdate(),M("onMount",[T]),T.props.animation&&z()&&ae(le,function(){T.state.isShown=!0,M("onShown",[T])})}},Ne()}}function $t(){var Y=!T.state.isVisible,V=T.state.isDestroyed,ee=!T.state.isEnabled,Re=e0(T.props.duration,1,Wi.duration);if(!(Y||V||ee)&&(M("onHide",[T],!1),T.props.onHide(T)!==!1)){if(T.state.isVisible=!1,T.state.isShown=!1,f=!1,s=!1,z()&&(A.style.visibility="hidden"),D(),K(),q(!0),z()){var le=N(),fe=le.box,ve=le.content;T.props.animation&&(t0([fe,ve],Re),WO([fe,ve],"hidden"))}J(),U(),T.props.animation?z()&&ye(Re,T.unmount):T.unmount()}}function ne(Y){j().addEventListener("mousemove",m),HO(nd,m),m(Y)}function se(){T.state.isVisible&&T.hide(),T.state.isMounted&&(Qe(),je().forEach(function(Y){Y._tippy.unmount()}),A.parentNode&&A.parentNode.removeChild(A),n0=n0.filter(function(Y){return Y!==T}),T.state.isMounted=!1,M("onHidden",[T]))}function pe(){T.state.isDestroyed||(T.clearDelayTimeouts(),T.unmount(),Se(),delete e._tippy,T.state.isDestroyed=!0,M("onDestroy",[T]))}}function Rc(e,t){t===void 0&&(t={});var r=Wi.plugins.concat(t.plugins||[]);_7();var n=Object.assign({},t,{plugins:r}),i=S7(e),o=i.reduce(function(s,u){var c=u&&D7(u,n);return c&&s.push(c),s},[]);return Dp(e)?o[0]:o}Rc.defaultProps=Wi;Rc.setDefaultProps=I7;Rc.currentInput=po;Object.assign({},i2,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});Rc.setDefaultProps({render:b2});function S2(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var w2=typeof window<"u"&&typeof document<"u";function My(e,t){e&&(typeof e=="function"&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function QO(){return w2&&document.createElement("div")}function L7(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}function x2(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(t.hasOwnProperty(r)){if(!x2(e[r],t[r]))return!1}else return!1;return!0}else return!1}function F7(e){var t=[];return e.forEach(function(r){t.find(function(n){return x2(r,n)})||t.push(r)}),t}function N7(e,t){var r,n;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:F7([].concat(((r=e.popperOptions)==null?void 0:r.modifiers)||[],((n=t.popperOptions)==null?void 0:n.modifiers)||[]))})})}var i0=w2?E.useLayoutEffect:E.useEffect;function j7(e){var t=E.useRef();return t.current||(t.current=typeof e=="function"?e():e),t.current}function JO(e,t,r){r.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var z7={name:"className",defaultValue:"",fn:function(t){var r=t.popper.firstElementChild,n=function(){var u;return!!((u=t.props.render)!=null&&u.$$tippy)};function i(){t.props.className&&!n()||JO(r,"add",t.props.className)}function o(){n()&&JO(r,"remove",t.props.className)}return{onCreate:i,onBeforeUpdate:o,onAfterUpdate:i}}};function B7(e){function t(r){var n=r.children,i=r.content,o=r.visible,s=r.singleton,u=r.render,c=r.reference,f=r.disabled,d=f===void 0?!1:f,g=r.ignoreAttributes,h=g===void 0?!0:g;r.__source,r.__self;var y=S2(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),m=o!==void 0,S=s!==void 0,b=E.useState(!1),C=b[0],x=b[1],$=E.useState({}),T=$[0],_=$[1],A=E.useState(),O=A[0],I=A[1],L=j7(function(){return{container:QO(),renders:1}}),F=Object.assign({ignoreAttributes:h},y,{content:L.container});m&&(F.trigger="manual",F.hideOnClick=!1),S&&(d=!0);var W=F,z=F.plugins||[];u&&(W=Object.assign({},F,{plugins:S&&s.data!=null?[].concat(z,[{fn:function(){return{onTrigger:function(X,q){var M=s.data.children.find(function(J){var U=J.instance;return U.reference===q.currentTarget});X.state.$$activeSingletonInstance=M.instance,I(M.content)}}}}]):z,render:function(){return{popper:L.container}}}));var B=[c].concat(n?[n.type]:[]);return i0(function(){var j=c;c&&c.hasOwnProperty("current")&&(j=c.current);var N=e(j||L.ref||QO(),Object.assign({},W,{plugins:[z7].concat(F.plugins||[])}));return L.instance=N,d&&N.disable(),o&&N.show(),S&&s.hook({instance:N,content:i,props:W,setSingletonContent:I}),x(!0),function(){N.destroy(),s?.cleanup(N)}},B),i0(function(){var j;if(L.renders===1){L.renders++;return}var N=L.instance;N.setProps(N7(N.props,W)),(j=N.popperInstance)==null||j.forceUpdate(),d?N.disable():N.enable(),m&&(o?N.show():N.hide()),S&&s.hook({instance:N,content:i,props:W,setSingletonContent:I})}),i0(function(){var j;if(u){var N=L.instance;N.setProps({popperOptions:Object.assign({},N.props.popperOptions,{modifiers:[].concat((((j=N.props.popperOptions)==null?void 0:j.modifiers)||[]).filter(function(X){var q=X.name;return q!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(q){var M,J=q.state,U=(M=J.modifiersData)==null?void 0:M.hide;(T.placement!==J.placement||T.referenceHidden!==U?.isReferenceHidden||T.escaped!==U?.hasPopperEscaped)&&_({placement:J.placement,referenceHidden:U?.isReferenceHidden,escaped:U?.hasPopperEscaped}),J.attributes.popper={}}}])})})}},[T.placement,T.referenceHidden,T.escaped].concat(B)),oe.createElement(oe.Fragment,null,n?E.cloneElement(n,{ref:function(N){L.ref=N,My(n.ref,N)}}):null,C&&Sp.createPortal(u?u(L7(T),O,L.instance):i,L.container))}return t}var V7=(function(e,t){return E.forwardRef(function(n,i){var o=n.children,s=S2(n,["children"]);return oe.createElement(e,Object.assign({},t,s),o?E.cloneElement(o,{ref:function(c){My(i,c),My(o.ref,c)}}):null)})}),H7=V7(B7(Rc));const U7=E.forwardRef((e,t)=>{const r=oe.Children.count(e.children);try{const n=oe.Children.only(e.children),i=oe.isValidElement(n),o=a9.isForwardRef(n),s=i&&typeof n.type=="string";return o||s?oe.cloneElement(n,{ref:t}):oe.createElement("span",{ref:t},e.children)}catch{return r<1?null:oe.createElement("span",{ref:t},e.children)}});function W7(e){const{content:t,placement:r="auto",children:n,...i}=e;return oe.createElement(H7,{...i,placement:r,content:oe.createElement(JI,{fontWeight:"medium",variant:"paragraph",color:"neutral.c00"},t)},oe.createElement(U7,{children:n}))}const E2=we.div`
930
+ */var IO;function o9(){if(IO)return Bt;IO=1;var e=60103,t=60106,r=60107,n=60108,i=60114,o=60109,s=60110,u=60112,c=60113,f=60120,d=60115,g=60116,h=60121,y=60122,m=60117,S=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;e=C("react.element"),t=C("react.portal"),r=C("react.fragment"),n=C("react.strict_mode"),i=C("react.profiler"),o=C("react.provider"),s=C("react.context"),u=C("react.forward_ref"),c=C("react.suspense"),f=C("react.suspense_list"),d=C("react.memo"),g=C("react.lazy"),h=C("react.block"),y=C("react.server.block"),m=C("react.fundamental"),S=C("react.debug_trace_mode"),b=C("react.legacy_hidden")}function x(B){if(typeof B=="object"&&B!==null){var j=B.$$typeof;switch(j){case e:switch(B=B.type,B){case r:case i:case n:case c:case f:return B;default:switch(B=B&&B.$$typeof,B){case s:case u:case g:case d:case o:return B;default:return j}}case t:return j}}}var $=o,T=e,_=u,A=r,O=g,I=d,L=t,F=i,W=n,z=c;return Bt.ContextConsumer=s,Bt.ContextProvider=$,Bt.Element=T,Bt.ForwardRef=_,Bt.Fragment=A,Bt.Lazy=O,Bt.Memo=I,Bt.Portal=L,Bt.Profiler=F,Bt.StrictMode=W,Bt.Suspense=z,Bt.isAsyncMode=function(){return!1},Bt.isConcurrentMode=function(){return!1},Bt.isContextConsumer=function(B){return x(B)===s},Bt.isContextProvider=function(B){return x(B)===o},Bt.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===e},Bt.isForwardRef=function(B){return x(B)===u},Bt.isFragment=function(B){return x(B)===r},Bt.isLazy=function(B){return x(B)===g},Bt.isMemo=function(B){return x(B)===d},Bt.isPortal=function(B){return x(B)===t},Bt.isProfiler=function(B){return x(B)===i},Bt.isStrictMode=function(B){return x(B)===n},Bt.isSuspense=function(B){return x(B)===c},Bt.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===i||B===S||B===n||B===c||B===f||B===b||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===d||B.$$typeof===o||B.$$typeof===s||B.$$typeof===u||B.$$typeof===m||B.$$typeof===h||B[0]===y)},Bt.typeOf=x,Bt}var PO;function a9(){return PO||(PO=1,Zm.exports=o9()),Zm.exports}var s9=a9(),_n="top",Si="bottom",wi="right",Rn="left",Eb="auto",Cc=[_n,Si,wi,Rn],xl="start",oc="end",l9="clippingParents",r2="viewport",yu="popper",u9="reference",kO=Cc.reduce(function(e,t){return e.concat([t+"-"+xl,t+"-"+oc])},[]),n2=[].concat(Cc,[Eb]).reduce(function(e,t){return e.concat([t,t+"-"+xl,t+"-"+oc])},[]),c9="beforeRead",f9="read",d9="afterRead",p9="beforeMain",h9="main",g9="afterMain",v9="beforeWrite",m9="write",y9="afterWrite",b9=[c9,f9,d9,p9,h9,g9,v9,m9,y9];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ps(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function bi(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cb(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function S9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!bi(o)||!yo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var u=i[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function w9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=s.reduce(function(c,f){return c[f]="",c},{});!bi(i)||!yo(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const i2={name:"applyStyles",enabled:!0,phase:"write",fn:S9,effect:w9,requires:["computeStyles"]};function mo(e){return e.split("-")[0]}var ss=Math.max,rp=Math.min,El=Math.round;function Ay(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function o2(){return!/^((?!chrome|android).)*safari/i.test(Ay())}function Cl(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&bi(e)&&(i=e.offsetWidth>0&&El(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&El(n.height)/e.offsetHeight||1);var s=ps(e)?Kn(e):window,u=s.visualViewport,c=!o2()&&r,f=(n.left+(c&&u?u.offsetLeft:0))/i,d=(n.top+(c&&u?u.offsetTop:0))/o,g=n.width/i,h=n.height/o;return{width:g,height:h,top:d,right:f+g,bottom:d+h,left:f,x:f,y:d}}function _b(e){var t=Cl(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function a2(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Cb(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(e){return Kn(e).getComputedStyle(e)}function x9(e){return["table","td","th"].indexOf(yo(e))>=0}function Da(e){return((ps(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mp(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(Cb(e)?e.host:null)||Da(e)}function MO(e){return!bi(e)||Qo(e).position==="fixed"?null:e.offsetParent}function E9(e){var t=/firefox/i.test(Ay()),r=/Trident/i.test(Ay());if(r&&bi(e)){var n=Qo(e);if(n.position==="fixed")return null}var i=Mp(e);for(Cb(i)&&(i=i.host);bi(i)&&["html","body"].indexOf(yo(i))<0;){var o=Qo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _c(e){for(var t=Kn(e),r=MO(e);r&&x9(r)&&Qo(r).position==="static";)r=MO(r);return r&&(yo(r)==="html"||yo(r)==="body"&&Qo(r).position==="static")?t:r||E9(e)||t}function Rb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fu(e,t,r){return ss(e,rp(t,r))}function C9(e,t,r){var n=Fu(e,t,r);return n>r?r:n}function s2(){return{top:0,right:0,bottom:0,left:0}}function l2(e){return Object.assign({},s2(),e)}function u2(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var _9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,l2(typeof t!="number"?t:u2(t,Cc))};function R9(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,u=mo(r.placement),c=Rb(u),f=[Rn,wi].indexOf(u)>=0,d=f?"height":"width";if(!(!o||!s)){var g=_9(i.padding,r),h=_b(o),y=c==="y"?_n:Rn,m=c==="y"?Si:wi,S=r.rects.reference[d]+r.rects.reference[c]-s[c]-r.rects.popper[d],b=s[c]-r.rects.reference[c],C=_c(o),x=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,$=S/2-b/2,T=g[y],_=x-h[d]-g[m],A=x/2-h[d]/2+$,O=Fu(T,A,_),I=c;r.modifiersData[n]=(t={},t[I]=O,t.centerOffset=O-A,t)}}function O9(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||a2(t.elements.popper,i)&&(t.elements.arrow=i))}const T9={name:"arrow",enabled:!0,phase:"main",fn:R9,effect:O9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _l(e){return e.split("-")[1]}var $9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function A9(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:El(r*i)/i||0,y:El(n*i)/i||0}}function DO(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,g=e.isFixed,h=s.x,y=h===void 0?0:h,m=s.y,S=m===void 0?0:m,b=typeof d=="function"?d({x:y,y:S}):{x:y,y:S};y=b.x,S=b.y;var C=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),$=Rn,T=_n,_=window;if(f){var A=_c(r),O="clientHeight",I="clientWidth";if(A===Kn(r)&&(A=Da(r),Qo(A).position!=="static"&&u==="absolute"&&(O="scrollHeight",I="scrollWidth")),A=A,i===_n||(i===Rn||i===wi)&&o===oc){T=Si;var L=g&&A===_&&_.visualViewport?_.visualViewport.height:A[O];S-=L-n.height,S*=c?1:-1}if(i===Rn||(i===_n||i===Si)&&o===oc){$=wi;var F=g&&A===_&&_.visualViewport?_.visualViewport.width:A[I];y-=F-n.width,y*=c?1:-1}}var W=Object.assign({position:u},f&&$9),z=d===!0?A9({x:y,y:S},Kn(r)):{x:y,y:S};if(y=z.x,S=z.y,c){var B;return Object.assign({},W,(B={},B[T]=x?"0":"",B[$]=C?"0":"",B.transform=(_.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",B))}return Object.assign({},W,(t={},t[T]=x?S+"px":"",t[$]=C?y+"px":"",t.transform="",t))}function I9(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,u=r.roundOffsets,c=u===void 0?!0:u,f={placement:mo(t.placement),variation:_l(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,DO(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,DO(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const P9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:I9,data:{}};var rd={passive:!0};function k9(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,u=s===void 0?!0:s,c=Kn(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(d){d.addEventListener("scroll",r.update,rd)}),u&&c.addEventListener("resize",r.update,rd),function(){o&&f.forEach(function(d){d.removeEventListener("scroll",r.update,rd)}),u&&c.removeEventListener("resize",r.update,rd)}}const M9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k9,data:{}};var D9={left:"right",right:"left",bottom:"top",top:"bottom"};function Ld(e){return e.replace(/left|right|bottom|top/g,function(t){return D9[t]})}var L9={start:"end",end:"start"};function LO(e){return e.replace(/start|end/g,function(t){return L9[t]})}function Ob(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Tb(e){return Cl(Da(e)).left+Ob(e).scrollLeft}function F9(e,t){var r=Kn(e),n=Da(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,u=0,c=0;if(i){o=i.width,s=i.height;var f=o2();(f||!f&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:u+Tb(e),y:c}}function N9(e){var t,r=Da(e),n=Ob(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ss(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ss(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+Tb(e),c=-n.scrollTop;return Qo(i||r).direction==="rtl"&&(u+=ss(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:c}}function $b(e){var t=Qo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function c2(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:bi(e)&&$b(e)?e:c2(Mp(e))}function Nu(e,t){var r;t===void 0&&(t=[]);var n=c2(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),s=i?[o].concat(o.visualViewport||[],$b(n)?n:[]):n,u=t.concat(s);return i?u:u.concat(Nu(Mp(s)))}function Iy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function j9(e,t){var r=Cl(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function FO(e,t,r){return t===r2?Iy(F9(e,r)):ps(t)?j9(t,r):Iy(N9(Da(e)))}function z9(e){var t=Nu(Mp(e)),r=["absolute","fixed"].indexOf(Qo(e).position)>=0,n=r&&bi(e)?_c(e):e;return ps(n)?t.filter(function(i){return ps(i)&&a2(i,n)&&yo(i)!=="body"}):[]}function B9(e,t,r,n){var i=t==="clippingParents"?z9(e):[].concat(t),o=[].concat(i,[r]),s=o[0],u=o.reduce(function(c,f){var d=FO(e,f,n);return c.top=ss(d.top,c.top),c.right=rp(d.right,c.right),c.bottom=rp(d.bottom,c.bottom),c.left=ss(d.left,c.left),c},FO(e,s,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function f2(e){var t=e.reference,r=e.element,n=e.placement,i=n?mo(n):null,o=n?_l(n):null,s=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(i){case _n:c={x:s,y:t.y-r.height};break;case Si:c={x:s,y:t.y+t.height};break;case wi:c={x:t.x+t.width,y:u};break;case Rn:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var f=i?Rb(i):null;if(f!=null){var d=f==="y"?"height":"width";switch(o){case xl:c[f]=c[f]-(t[d]/2-r[d]/2);break;case oc:c[f]=c[f]+(t[d]/2-r[d]/2);break}}return c}function ac(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,u=r.boundary,c=u===void 0?l9:u,f=r.rootBoundary,d=f===void 0?r2:f,g=r.elementContext,h=g===void 0?yu:g,y=r.altBoundary,m=y===void 0?!1:y,S=r.padding,b=S===void 0?0:S,C=l2(typeof b!="number"?b:u2(b,Cc)),x=h===yu?u9:yu,$=e.rects.popper,T=e.elements[m?x:h],_=B9(ps(T)?T:T.contextElement||Da(e.elements.popper),c,d,s),A=Cl(e.elements.reference),O=f2({reference:A,element:$,placement:i}),I=Iy(Object.assign({},$,O)),L=h===yu?I:A,F={top:_.top-L.top+C.top,bottom:L.bottom-_.bottom+C.bottom,left:_.left-L.left+C.left,right:L.right-_.right+C.right},W=e.modifiersData.offset;if(h===yu&&W){var z=W[i];Object.keys(F).forEach(function(B){var j=[wi,Si].indexOf(B)>=0?1:-1,N=[_n,Si].indexOf(B)>=0?"y":"x";F[B]+=z[N]*j})}return F}function V9(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,f=c===void 0?n2:c,d=_l(n),g=d?u?kO:kO.filter(function(m){return _l(m)===d}):Cc,h=g.filter(function(m){return f.indexOf(m)>=0});h.length===0&&(h=g);var y=h.reduce(function(m,S){return m[S]=ac(e,{placement:S,boundary:i,rootBoundary:o,padding:s})[mo(S)],m},{});return Object.keys(y).sort(function(m,S){return y[m]-y[S]})}function H9(e){if(mo(e)===Eb)return[];var t=Ld(e);return[LO(e),t,LO(t)]}function U9(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!0:s,c=r.fallbackPlacements,f=r.padding,d=r.boundary,g=r.rootBoundary,h=r.altBoundary,y=r.flipVariations,m=y===void 0?!0:y,S=r.allowedAutoPlacements,b=t.options.placement,C=mo(b),x=C===b,$=c||(x||!m?[Ld(b)]:H9(b)),T=[b].concat($).reduce(function(Z,te){return Z.concat(mo(te)===Eb?V9(t,{placement:te,boundary:d,rootBoundary:g,padding:f,flipVariations:m,allowedAutoPlacements:S}):te)},[]),_=t.rects.reference,A=t.rects.popper,O=new Map,I=!0,L=T[0],F=0;F<T.length;F++){var W=T[F],z=mo(W),B=_l(W)===xl,j=[_n,Si].indexOf(z)>=0,N=j?"width":"height",X=ac(t,{placement:W,boundary:d,rootBoundary:g,altBoundary:h,padding:f}),q=j?B?wi:Rn:B?Si:_n;_[N]>A[N]&&(q=Ld(q));var M=Ld(q),J=[];if(o&&J.push(X[z]<=0),u&&J.push(X[q]<=0,X[M]<=0),J.every(function(Z){return Z})){L=W,I=!1;break}O.set(W,J)}if(I)for(var U=m?3:1,D=function(te){var K=T.find(function(ye){var ae=O.get(ye);if(ae)return ae.slice(0,te).every(function(be){return be})});if(K)return L=K,"break"},P=U;P>0;P--){var G=D(P);if(G==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const W9={name:"flip",enabled:!0,phase:"main",fn:U9,requiresIfExists:["offset"],data:{_skip:!1}};function NO(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jO(e){return[_n,wi,Si,Rn].some(function(t){return e[t]>=0})}function q9(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=ac(t,{elementContext:"reference"}),u=ac(t,{altBoundary:!0}),c=NO(s,n),f=NO(u,i,o),d=jO(c),g=jO(f);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":g})}const G9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:q9};function X9(e,t,r){var n=mo(e),i=[Rn,_n].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],u=o[1];return s=s||0,u=(u||0)*i,[Rn,wi].indexOf(n)>=0?{x:u,y:s}:{x:s,y:u}}function K9(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=n2.reduce(function(d,g){return d[g]=X9(g,t.rects,o),d},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=s}const Y9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K9};function Q9(e){var t=e.state,r=e.name;t.modifiersData[r]=f2({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const J9={name:"popperOffsets",enabled:!0,phase:"read",fn:Q9,data:{}};function Z9(e){return e==="x"?"y":"x"}function e7(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!1:s,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,g=r.padding,h=r.tether,y=h===void 0?!0:h,m=r.tetherOffset,S=m===void 0?0:m,b=ac(t,{boundary:c,rootBoundary:f,padding:g,altBoundary:d}),C=mo(t.placement),x=_l(t.placement),$=!x,T=Rb(C),_=Z9(T),A=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,L=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,F=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(A){if(o){var B,j=T==="y"?_n:Rn,N=T==="y"?Si:wi,X=T==="y"?"height":"width",q=A[T],M=q+b[j],J=q-b[N],U=y?-I[X]/2:0,D=x===xl?O[X]:I[X],P=x===xl?-I[X]:-O[X],G=t.elements.arrow,Z=y&&G?_b(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:s2(),K=te[j],ye=te[N],ae=Fu(0,O[X],Z[X]),be=$?O[X]/2-U-ae-K-F.mainAxis:D-ae-K-F.mainAxis,he=$?-O[X]/2+U+ae+ye+F.mainAxis:P+ae+ye+F.mainAxis,xe=t.elements.arrow&&_c(t.elements.arrow),Se=xe?T==="y"?xe.clientTop||0:xe.clientLeft||0:0,Oe=(B=W?.[T])!=null?B:0,Ee=q+be-Oe-Se,_e=q+he-Oe,$e=Fu(y?rp(M,Ee):M,q,y?ss(J,_e):J);A[T]=$e,z[T]=$e-q}if(u){var Pe,qe=T==="x"?_n:Rn,Qe=T==="x"?Si:wi,Ne=A[_],je=_==="y"?"height":"width",Ke=Ne+b[qe],Ve=Ne-b[Qe],Ce=[_n,Rn].indexOf(C)!==-1,Ge=(Pe=W?.[_])!=null?Pe:0,lt=Ce?Ke:Ne-O[je]-I[je]-Ge+F.altAxis,At=Ce?Ne+O[je]+I[je]-Ge-F.altAxis:Ve,dt=y&&Ce?C9(lt,Ne,At):Fu(y?lt:Ke,Ne,y?At:Ve);A[_]=dt,z[_]=dt-Ne}t.modifiersData[n]=z}}const t7={name:"preventOverflow",enabled:!0,phase:"main",fn:e7,requiresIfExists:["offset"]};function r7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function n7(e){return e===Kn(e)||!bi(e)?Ob(e):r7(e)}function i7(e){var t=e.getBoundingClientRect(),r=El(t.width)/e.offsetWidth||1,n=El(t.height)/e.offsetHeight||1;return r!==1||n!==1}function o7(e,t,r){r===void 0&&(r=!1);var n=bi(t),i=bi(t)&&i7(t),o=Da(t),s=Cl(e,i,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((yo(t)!=="body"||$b(o))&&(u=n7(t)),bi(t)?(c=Cl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Tb(o))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function a7(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function s7(e){var t=a7(e);return b9.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function l7(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function u7(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var zO={placement:"bottom",modifiers:[],strategy:"absolute"};function BO(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function c7(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?zO:i;return function(u,c,f){f===void 0&&(f=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},zO,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},g=[],h=!1,y={state:d,setOptions:function(C){var x=typeof C=="function"?C(d.options):C;S(),d.options=Object.assign({},o,d.options,x),d.scrollParents={reference:ps(u)?Nu(u):u.contextElement?Nu(u.contextElement):[],popper:Nu(c)};var $=s7(u7([].concat(n,d.options.modifiers)));return d.orderedModifiers=$.filter(function(T){return T.enabled}),m(),y.update()},forceUpdate:function(){if(!h){var C=d.elements,x=C.reference,$=C.popper;if(BO(x,$)){d.rects={reference:o7(x,_c($),d.options.strategy==="fixed"),popper:_b($)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var T=0;T<d.orderedModifiers.length;T++){if(d.reset===!0){d.reset=!1,T=-1;continue}var _=d.orderedModifiers[T],A=_.fn,O=_.options,I=O===void 0?{}:O,L=_.name;typeof A=="function"&&(d=A({state:d,options:I,name:L,instance:y})||d)}}}},update:l7(function(){return new Promise(function(b){y.forceUpdate(),b(d)})}),destroy:function(){S(),h=!0}};if(!BO(u,c))return y;y.setOptions(f).then(function(b){!h&&f.onFirstUpdate&&f.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var C=b.name,x=b.options,$=x===void 0?{}:x,T=b.effect;if(typeof T=="function"){var _=T({state:d,name:C,instance:y,options:$}),A=function(){};g.push(_||A)}})}function S(){g.forEach(function(b){return b()}),g=[]}return y}}var f7=[M9,J9,P9,i2,Y9,W9,t7,T9,G9],d7=c7({defaultModifiers:f7}),p7="tippy-box",d2="tippy-content",h7="tippy-backdrop",p2="tippy-arrow",h2="tippy-svg-arrow",Za={passive:!0,capture:!0},g2=function(){return document.body};function e0(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function Ab(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function v2(e,t){return typeof e=="function"?e.apply(void 0,t):e}function VO(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function g7(e){return e.split(/\s+/).filter(Boolean)}function ol(e){return[].concat(e)}function HO(e,t){e.indexOf(t)===-1&&e.push(t)}function v7(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function m7(e){return e.split("-")[0]}function np(e){return[].slice.call(e)}function UO(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function ju(){return document.createElement("div")}function Dp(e){return["Element","Fragment"].some(function(t){return Ab(e,t)})}function y7(e){return Ab(e,"NodeList")}function b7(e){return Ab(e,"MouseEvent")}function S7(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function w7(e){return Dp(e)?[e]:y7(e)?np(e):Array.isArray(e)?e:np(document.querySelectorAll(e))}function t0(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function WO(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function x7(e){var t,r=ol(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function E7(e,t){var r=t.clientX,n=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,u=i.props,c=u.interactiveBorder,f=m7(s.placement),d=s.modifiersData.offset;if(!d)return!0;var g=f==="bottom"?d.top.y:0,h=f==="top"?d.bottom.y:0,y=f==="right"?d.left.x:0,m=f==="left"?d.right.x:0,S=o.top-n+g>c,b=n-o.bottom-h>c,C=o.left-r+y>c,x=r-o.right-m>c;return S||b||C||x})}function r0(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[n](i,r)})}function qO(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var po={isTouch:!1},GO=0;function C7(){po.isTouch||(po.isTouch=!0,window.performance&&document.addEventListener("mousemove",m2))}function m2(){var e=performance.now();e-GO<20&&(po.isTouch=!1,document.removeEventListener("mousemove",m2)),GO=e}function _7(){var e=document.activeElement;if(S7(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function R7(){document.addEventListener("touchstart",C7,Za),window.addEventListener("blur",_7)}var O7=typeof window<"u"&&typeof document<"u",T7=O7?!!window.msCrypto:!1,$7={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},A7={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Wi=Object.assign({appendTo:g2,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},$7,A7),I7=Object.keys(Wi),P7=function(t){var r=Object.keys(t);r.forEach(function(n){Wi[n]=t[n]})};function y2(e){var t=e.plugins||[],r=t.reduce(function(n,i){var o=i.name,s=i.defaultValue;if(o){var u;n[o]=e[o]!==void 0?e[o]:(u=Wi[o])!=null?u:s}return n},{});return Object.assign({},e,r)}function k7(e,t){var r=t?Object.keys(y2(Object.assign({},Wi,{plugins:t}))):I7,n=r.reduce(function(i,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return n}function XO(e,t){var r=Object.assign({},t,{content:v2(t.content,[e])},t.ignoreAttributes?{}:k7(e,t.plugins));return r.aria=Object.assign({},Wi.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var M7=function(){return"innerHTML"};function Py(e,t){e[M7()]=t}function KO(e){var t=ju();return e===!0?t.className=p2:(t.className=h2,Dp(e)?t.appendChild(e):Py(t,e)),t}function YO(e,t){Dp(t.content)?(Py(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Py(e,t.content):e.textContent=t.content)}function ky(e){var t=e.firstElementChild,r=np(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(d2)}),arrow:r.find(function(n){return n.classList.contains(p2)||n.classList.contains(h2)}),backdrop:r.find(function(n){return n.classList.contains(h7)})}}function b2(e){var t=ju(),r=ju();r.className=p7,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=ju();n.className=d2,n.setAttribute("data-state","hidden"),YO(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props);function i(o,s){var u=ky(t),c=u.box,f=u.content,d=u.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&YO(f,e.props),s.arrow?d?o.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(KO(s.arrow))):c.appendChild(KO(s.arrow)):d&&c.removeChild(d)}return{popper:t,onUpdate:i}}b2.$$tippy=!0;var D7=1,nd=[],n0=[];function L7(e,t){var r=XO(e,Object.assign({},Wi,y2(UO(t)))),n,i,o,s=!1,u=!1,c=!1,f=!1,d,g,h,y=[],m=VO(Ee,r.interactiveDebounce),S,b=D7++,C=null,x=v7(r.plugins),$={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},T={id:b,reference:e,popper:ju(),popperInstance:C,props:r,state:$,plugins:x,clearDelayTimeouts:lt,setProps:At,setContent:dt,show:Dt,hide:$t,hideWithInteractivity:ne,enable:Ce,disable:Ge,unmount:se,destroy:pe};if(!r.render)return T;var _=r.render(T),A=_.popper,O=_.onUpdate;A.setAttribute("data-tippy-root",""),A.id="tippy-"+T.id,T.popper=A,e._tippy=T,A._tippy=T;var I=x.map(function(Y){return Y.fn(T)}),L=e.hasAttribute("aria-expanded");return xe(),U(),q(),M("onCreate",[T]),r.showOnCreate&&Ke(),A.addEventListener("mouseenter",function(){T.props.interactive&&T.state.isVisible&&T.clearDelayTimeouts()}),A.addEventListener("mouseleave",function(){T.props.interactive&&T.props.trigger.indexOf("mouseenter")>=0&&j().addEventListener("mousemove",m)}),T;function F(){var Y=T.props.touch;return Array.isArray(Y)?Y:[Y,0]}function W(){return F()[0]==="hold"}function z(){var Y;return!!((Y=T.props.render)!=null&&Y.$$tippy)}function B(){return S||e}function j(){var Y=B().parentNode;return Y?x7(Y):document}function N(){return ky(A)}function X(Y){return T.state.isMounted&&!T.state.isVisible||po.isTouch||d&&d.type==="focus"?0:e0(T.props.delay,Y?0:1,Wi.delay)}function q(Y){Y===void 0&&(Y=!1),A.style.pointerEvents=T.props.interactive&&!Y?"":"none",A.style.zIndex=""+T.props.zIndex}function M(Y,V,ee){if(ee===void 0&&(ee=!0),I.forEach(function(le){le[Y]&&le[Y].apply(le,V)}),ee){var Re;(Re=T.props)[Y].apply(Re,V)}}function J(){var Y=T.props.aria;if(Y.content){var V="aria-"+Y.content,ee=A.id,Re=ol(T.props.triggerTarget||e);Re.forEach(function(le){var fe=le.getAttribute(V);if(T.state.isVisible)le.setAttribute(V,fe?fe+" "+ee:ee);else{var ve=fe&&fe.replace(ee,"").trim();ve?le.setAttribute(V,ve):le.removeAttribute(V)}})}}function U(){if(!(L||!T.props.aria.expanded)){var Y=ol(T.props.triggerTarget||e);Y.forEach(function(V){T.props.interactive?V.setAttribute("aria-expanded",T.state.isVisible&&V===B()?"true":"false"):V.removeAttribute("aria-expanded")})}}function D(){j().removeEventListener("mousemove",m),nd=nd.filter(function(Y){return Y!==m})}function P(Y){if(!(po.isTouch&&(c||Y.type==="mousedown"))){var V=Y.composedPath&&Y.composedPath()[0]||Y.target;if(!(T.props.interactive&&qO(A,V))){if(ol(T.props.triggerTarget||e).some(function(ee){return qO(ee,V)})){if(po.isTouch||T.state.isVisible&&T.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[T,Y]);T.props.hideOnClick===!0&&(T.clearDelayTimeouts(),T.hide(),u=!0,setTimeout(function(){u=!1}),T.state.isMounted||K())}}}function G(){c=!0}function Z(){c=!1}function te(){var Y=j();Y.addEventListener("mousedown",P,!0),Y.addEventListener("touchend",P,Za),Y.addEventListener("touchstart",Z,Za),Y.addEventListener("touchmove",G,Za)}function K(){var Y=j();Y.removeEventListener("mousedown",P,!0),Y.removeEventListener("touchend",P,Za),Y.removeEventListener("touchstart",Z,Za),Y.removeEventListener("touchmove",G,Za)}function ye(Y,V){be(Y,function(){!T.state.isVisible&&A.parentNode&&A.parentNode.contains(A)&&V()})}function ae(Y,V){be(Y,V)}function be(Y,V){var ee=N().box;function Re(le){le.target===ee&&(r0(ee,"remove",Re),V())}if(Y===0)return V();r0(ee,"remove",g),r0(ee,"add",Re),g=Re}function he(Y,V,ee){ee===void 0&&(ee=!1);var Re=ol(T.props.triggerTarget||e);Re.forEach(function(le){le.addEventListener(Y,V,ee),y.push({node:le,eventType:Y,handler:V,options:ee})})}function xe(){W()&&(he("touchstart",Oe,{passive:!0}),he("touchend",_e,{passive:!0})),g7(T.props.trigger).forEach(function(Y){if(Y!=="manual")switch(he(Y,Oe),Y){case"mouseenter":he("mouseleave",_e);break;case"focus":he(T7?"focusout":"blur",$e);break;case"focusin":he("focusout",$e);break}})}function Se(){y.forEach(function(Y){var V=Y.node,ee=Y.eventType,Re=Y.handler,le=Y.options;V.removeEventListener(ee,Re,le)}),y=[]}function Oe(Y){var V,ee=!1;if(!(!T.state.isEnabled||Pe(Y)||u)){var Re=((V=d)==null?void 0:V.type)==="focus";d=Y,S=Y.currentTarget,U(),!T.state.isVisible&&b7(Y)&&nd.forEach(function(le){return le(Y)}),Y.type==="click"&&(T.props.trigger.indexOf("mouseenter")<0||s)&&T.props.hideOnClick!==!1&&T.state.isVisible?ee=!0:Ke(Y),Y.type==="click"&&(s=!ee),ee&&!Re&&Ve(Y)}}function Ee(Y){var V=Y.target,ee=B().contains(V)||A.contains(V);if(!(Y.type==="mousemove"&&ee)){var Re=je().concat(A).map(function(le){var fe,ve=le._tippy,Ae=(fe=ve.popperInstance)==null?void 0:fe.state;return Ae?{popperRect:le.getBoundingClientRect(),popperState:Ae,props:r}:null}).filter(Boolean);E7(Re,Y)&&(D(),Ve(Y))}}function _e(Y){var V=Pe(Y)||T.props.trigger.indexOf("click")>=0&&s;if(!V){if(T.props.interactive){T.hideWithInteractivity(Y);return}Ve(Y)}}function $e(Y){T.props.trigger.indexOf("focusin")<0&&Y.target!==B()||T.props.interactive&&Y.relatedTarget&&A.contains(Y.relatedTarget)||Ve(Y)}function Pe(Y){return po.isTouch?W()!==Y.type.indexOf("touch")>=0:!1}function qe(){Qe();var Y=T.props,V=Y.popperOptions,ee=Y.placement,Re=Y.offset,le=Y.getReferenceClientRect,fe=Y.moveTransition,ve=z()?ky(A).arrow:null,Ae=le?{getBoundingClientRect:le,contextElement:le.contextElement||B()}:e,Me={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ze){var et=Ze.state;if(z()){var Nt=N(),ct=Nt.box;["placement","reference-hidden","escaped"].forEach(function(pt){pt==="placement"?ct.setAttribute("data-placement",et.placement):et.attributes.popper["data-popper-"+pt]?ct.setAttribute("data-"+pt,""):ct.removeAttribute("data-"+pt)}),et.attributes.popper={}}}},ze=[{name:"offset",options:{offset:Re}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!fe}},Me];z()&&ve&&ze.push({name:"arrow",options:{element:ve,padding:3}}),ze.push.apply(ze,V?.modifiers||[]),T.popperInstance=d7(Ae,A,Object.assign({},V,{placement:ee,onFirstUpdate:h,modifiers:ze}))}function Qe(){T.popperInstance&&(T.popperInstance.destroy(),T.popperInstance=null)}function Ne(){var Y=T.props.appendTo,V,ee=B();T.props.interactive&&Y===g2||Y==="parent"?V=ee.parentNode:V=v2(Y,[ee]),V.contains(A)||V.appendChild(A),T.state.isMounted=!0,qe()}function je(){return np(A.querySelectorAll("[data-tippy-root]"))}function Ke(Y){T.clearDelayTimeouts(),Y&&M("onTrigger",[T,Y]),te();var V=X(!0),ee=F(),Re=ee[0],le=ee[1];po.isTouch&&Re==="hold"&&le&&(V=le),V?n=setTimeout(function(){T.show()},V):T.show()}function Ve(Y){if(T.clearDelayTimeouts(),M("onUntrigger",[T,Y]),!T.state.isVisible){K();return}if(!(T.props.trigger.indexOf("mouseenter")>=0&&T.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Y.type)>=0&&s)){var V=X(!1);V?i=setTimeout(function(){T.state.isVisible&&T.hide()},V):o=requestAnimationFrame(function(){T.hide()})}}function Ce(){T.state.isEnabled=!0}function Ge(){T.hide(),T.state.isEnabled=!1}function lt(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(o)}function At(Y){if(!T.state.isDestroyed){M("onBeforeUpdate",[T,Y]),Se();var V=T.props,ee=XO(e,Object.assign({},V,UO(Y),{ignoreAttributes:!0}));T.props=ee,xe(),V.interactiveDebounce!==ee.interactiveDebounce&&(D(),m=VO(Ee,ee.interactiveDebounce)),V.triggerTarget&&!ee.triggerTarget?ol(V.triggerTarget).forEach(function(Re){Re.removeAttribute("aria-expanded")}):ee.triggerTarget&&e.removeAttribute("aria-expanded"),U(),q(),O&&O(V,ee),T.popperInstance&&(qe(),je().forEach(function(Re){requestAnimationFrame(Re._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[T,Y])}}function dt(Y){T.setProps({content:Y})}function Dt(){var Y=T.state.isVisible,V=T.state.isDestroyed,ee=!T.state.isEnabled,Re=po.isTouch&&!T.props.touch,le=e0(T.props.duration,0,Wi.duration);if(!(Y||V||ee||Re)&&!B().hasAttribute("disabled")&&(M("onShow",[T],!1),T.props.onShow(T)!==!1)){if(T.state.isVisible=!0,z()&&(A.style.visibility="visible"),q(),te(),T.state.isMounted||(A.style.transition="none"),z()){var fe=N(),ve=fe.box,Ae=fe.content;t0([ve,Ae],0)}h=function(){var ze;if(!(!T.state.isVisible||f)){if(f=!0,A.offsetHeight,A.style.transition=T.props.moveTransition,z()&&T.props.animation){var Je=N(),Ze=Je.box,et=Je.content;t0([Ze,et],le),WO([Ze,et],"visible")}J(),U(),HO(n0,T),(ze=T.popperInstance)==null||ze.forceUpdate(),M("onMount",[T]),T.props.animation&&z()&&ae(le,function(){T.state.isShown=!0,M("onShown",[T])})}},Ne()}}function $t(){var Y=!T.state.isVisible,V=T.state.isDestroyed,ee=!T.state.isEnabled,Re=e0(T.props.duration,1,Wi.duration);if(!(Y||V||ee)&&(M("onHide",[T],!1),T.props.onHide(T)!==!1)){if(T.state.isVisible=!1,T.state.isShown=!1,f=!1,s=!1,z()&&(A.style.visibility="hidden"),D(),K(),q(!0),z()){var le=N(),fe=le.box,ve=le.content;T.props.animation&&(t0([fe,ve],Re),WO([fe,ve],"hidden"))}J(),U(),T.props.animation?z()&&ye(Re,T.unmount):T.unmount()}}function ne(Y){j().addEventListener("mousemove",m),HO(nd,m),m(Y)}function se(){T.state.isVisible&&T.hide(),T.state.isMounted&&(Qe(),je().forEach(function(Y){Y._tippy.unmount()}),A.parentNode&&A.parentNode.removeChild(A),n0=n0.filter(function(Y){return Y!==T}),T.state.isMounted=!1,M("onHidden",[T]))}function pe(){T.state.isDestroyed||(T.clearDelayTimeouts(),T.unmount(),Se(),delete e._tippy,T.state.isDestroyed=!0,M("onDestroy",[T]))}}function Rc(e,t){t===void 0&&(t={});var r=Wi.plugins.concat(t.plugins||[]);R7();var n=Object.assign({},t,{plugins:r}),i=w7(e),o=i.reduce(function(s,u){var c=u&&L7(u,n);return c&&s.push(c),s},[]);return Dp(e)?o[0]:o}Rc.defaultProps=Wi;Rc.setDefaultProps=P7;Rc.currentInput=po;Object.assign({},i2,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});Rc.setDefaultProps({render:b2});function S2(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var w2=typeof window<"u"&&typeof document<"u";function My(e,t){e&&(typeof e=="function"&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function QO(){return w2&&document.createElement("div")}function F7(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}function x2(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(t.hasOwnProperty(r)){if(!x2(e[r],t[r]))return!1}else return!1;return!0}else return!1}function N7(e){var t=[];return e.forEach(function(r){t.find(function(n){return x2(r,n)})||t.push(r)}),t}function j7(e,t){var r,n;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:N7([].concat(((r=e.popperOptions)==null?void 0:r.modifiers)||[],((n=t.popperOptions)==null?void 0:n.modifiers)||[]))})})}var i0=w2?E.useLayoutEffect:E.useEffect;function z7(e){var t=E.useRef();return t.current||(t.current=typeof e=="function"?e():e),t.current}function JO(e,t,r){r.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var B7={name:"className",defaultValue:"",fn:function(t){var r=t.popper.firstElementChild,n=function(){var u;return!!((u=t.props.render)!=null&&u.$$tippy)};function i(){t.props.className&&!n()||JO(r,"add",t.props.className)}function o(){n()&&JO(r,"remove",t.props.className)}return{onCreate:i,onBeforeUpdate:o,onAfterUpdate:i}}};function V7(e){function t(r){var n=r.children,i=r.content,o=r.visible,s=r.singleton,u=r.render,c=r.reference,f=r.disabled,d=f===void 0?!1:f,g=r.ignoreAttributes,h=g===void 0?!0:g;r.__source,r.__self;var y=S2(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),m=o!==void 0,S=s!==void 0,b=E.useState(!1),C=b[0],x=b[1],$=E.useState({}),T=$[0],_=$[1],A=E.useState(),O=A[0],I=A[1],L=z7(function(){return{container:QO(),renders:1}}),F=Object.assign({ignoreAttributes:h},y,{content:L.container});m&&(F.trigger="manual",F.hideOnClick=!1),S&&(d=!0);var W=F,z=F.plugins||[];u&&(W=Object.assign({},F,{plugins:S&&s.data!=null?[].concat(z,[{fn:function(){return{onTrigger:function(X,q){var M=s.data.children.find(function(J){var U=J.instance;return U.reference===q.currentTarget});X.state.$$activeSingletonInstance=M.instance,I(M.content)}}}}]):z,render:function(){return{popper:L.container}}}));var B=[c].concat(n?[n.type]:[]);return i0(function(){var j=c;c&&c.hasOwnProperty("current")&&(j=c.current);var N=e(j||L.ref||QO(),Object.assign({},W,{plugins:[B7].concat(F.plugins||[])}));return L.instance=N,d&&N.disable(),o&&N.show(),S&&s.hook({instance:N,content:i,props:W,setSingletonContent:I}),x(!0),function(){N.destroy(),s?.cleanup(N)}},B),i0(function(){var j;if(L.renders===1){L.renders++;return}var N=L.instance;N.setProps(j7(N.props,W)),(j=N.popperInstance)==null||j.forceUpdate(),d?N.disable():N.enable(),m&&(o?N.show():N.hide()),S&&s.hook({instance:N,content:i,props:W,setSingletonContent:I})}),i0(function(){var j;if(u){var N=L.instance;N.setProps({popperOptions:Object.assign({},N.props.popperOptions,{modifiers:[].concat((((j=N.props.popperOptions)==null?void 0:j.modifiers)||[]).filter(function(X){var q=X.name;return q!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(q){var M,J=q.state,U=(M=J.modifiersData)==null?void 0:M.hide;(T.placement!==J.placement||T.referenceHidden!==U?.isReferenceHidden||T.escaped!==U?.hasPopperEscaped)&&_({placement:J.placement,referenceHidden:U?.isReferenceHidden,escaped:U?.hasPopperEscaped}),J.attributes.popper={}}}])})})}},[T.placement,T.referenceHidden,T.escaped].concat(B)),oe.createElement(oe.Fragment,null,n?E.cloneElement(n,{ref:function(N){L.ref=N,My(n.ref,N)}}):null,C&&Sp.createPortal(u?u(F7(T),O,L.instance):i,L.container))}return t}var H7=(function(e,t){return E.forwardRef(function(n,i){var o=n.children,s=S2(n,["children"]);return oe.createElement(e,Object.assign({},t,s),o?E.cloneElement(o,{ref:function(c){My(i,c),My(o.ref,c)}}):null)})}),U7=H7(V7(Rc));const W7=E.forwardRef((e,t)=>{const r=oe.Children.count(e.children);try{const n=oe.Children.only(e.children),i=oe.isValidElement(n),o=s9.isForwardRef(n),s=i&&typeof n.type=="string";return o||s?oe.cloneElement(n,{ref:t}):oe.createElement("span",{ref:t},e.children)}catch{return r<1?null:oe.createElement("span",{ref:t},e.children)}});function q7(e){const{content:t,placement:r="auto",children:n,...i}=e;return oe.createElement(U7,{...i,placement:r,content:oe.createElement(JI,{fontWeight:"medium",variant:"paragraph",color:"neutral.c00"},t)},oe.createElement(W7,{children:n}))}const E2=we.div`
931
931
  position: relative;
932
932
  flex: 1;
933
933
  min-width: 150px;
@@ -956,7 +956,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
956
956
  &::placeholder {
957
957
  color: #999;
958
958
  }
959
- `,R2="devtools-logger-recent-filters",q7=10,G7=15e3;function X7(){try{const e=localStorage.getItem(R2);if(e){const t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}}catch{}return[]}function ZO(e){try{localStorage.setItem(R2,JSON.stringify(e))}catch{}}const K7=e=>{const[t,r]=E.useState(()=>X7()),n=E.useRef(""),i=E.useCallback(s=>{s.trim()&&r(u=>{const c=u.filter(d=>d!==s),f=[s,...c].slice(0,q7);return ZO(f),f})},[]),o=E.useCallback(s=>{r(u=>{const c=u.filter(f=>f!==s);return ZO(c),c})},[]);return E.useEffect(()=>{const s=e.trim();if(!s||s===n.current)return;const u=setTimeout(()=>{i(s),n.current=s},G7);return()=>{clearTimeout(u)}},[e,i]),{recentFilters:t,addFilter:i,removeFilter:o}},Y7=we.div`
959
+ `,R2="devtools-logger-recent-filters",G7=10,X7=15e3;function K7(){try{const e=localStorage.getItem(R2);if(e){const t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}}catch{}return[]}function ZO(e){try{localStorage.setItem(R2,JSON.stringify(e))}catch{}}const Y7=e=>{const[t,r]=E.useState(()=>K7()),n=E.useRef(""),i=E.useCallback(s=>{s.trim()&&r(u=>{const c=u.filter(d=>d!==s),f=[s,...c].slice(0,G7);return ZO(f),f})},[]),o=E.useCallback(s=>{r(u=>{const c=u.filter(f=>f!==s);return ZO(c),c})},[]);return E.useEffect(()=>{const s=e.trim();if(!s||s===n.current)return;const u=setTimeout(()=>{i(s),n.current=s},X7);return()=>{clearTimeout(u)}},[e,i]),{recentFilters:t,addFilter:i,removeFilter:o}},Q7=we.div`
960
960
  position: absolute;
961
961
  top: 100%;
962
962
  left: 0;
@@ -969,13 +969,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
969
969
  overflow-y: auto;
970
970
  z-index: 1000;
971
971
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
972
- `,Q7=we.div`
972
+ `,J7=we.div`
973
973
  padding: 6px 10px;
974
974
  font-size: 10px;
975
975
  color: #666;
976
976
  text-transform: uppercase;
977
977
  border-bottom: 1px solid #eee;
978
- `,J7=we.div`
978
+ `,Z7=we.div`
979
979
  display: flex;
980
980
  align-items: center;
981
981
  justify-content: space-between;
@@ -989,12 +989,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
989
989
  &:hover {
990
990
  background-color: ${({$highlighted:e})=>e?"#e8f0fe":"#f5f5f5"};
991
991
  }
992
- `,Z7=we.span`
992
+ `,eH=we.span`
993
993
  flex: 1;
994
994
  overflow: hidden;
995
995
  text-overflow: ellipsis;
996
996
  white-space: nowrap;
997
- `,eH=we.button`
997
+ `,tH=we.button`
998
998
  background: none;
999
999
  border: none;
1000
1000
  padding: 2px;
@@ -1008,12 +1008,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1008
1008
  &:hover {
1009
1009
  opacity: 1;
1010
1010
  }
1011
- `,tH=we.div`
1011
+ `,rH=we.div`
1012
1012
  padding: 12px 10px;
1013
1013
  font-size: 12px;
1014
1014
  color: #999;
1015
1015
  text-align: center;
1016
- `,rH=we.button`
1016
+ `,nH=we.button`
1017
1017
  background: none;
1018
1018
  border: none;
1019
1019
  padding: 4px 8px;
@@ -1025,7 +1025,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1025
1025
  &:hover {
1026
1026
  color: #333;
1027
1027
  }
1028
- `,nH=we.button`
1028
+ `,iH=we.button`
1029
1029
  background: none;
1030
1030
  border: none;
1031
1031
  padding: 4px;
@@ -1039,20 +1039,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1039
1039
  &:hover {
1040
1040
  opacity: 1;
1041
1041
  }
1042
- `,iH=({value:e,onChange:t})=>{const[r,n]=E.useState(!1),[i,o]=E.useState(!1),[s,u]=E.useState(-1),{recentFilters:c,removeFilter:f}=K7(e),d=E.useRef(null),g=E.useRef(null);E.useEffect(()=>{const $=T=>{d.current&&!d.current.contains(T.target)&&n(!1)};return document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[]);const h=E.useCallback(()=>{o(!0)},[]),y=E.useCallback(()=>{n($=>($||u(-1),!$))},[]),m=E.useCallback(()=>{o(!1)},[]),S=E.useCallback($=>{t($),n(!1),u(-1),g.current?.focus()},[t]),b=E.useCallback($=>{$.key==="Escape"?r?(n(!1),u(-1)):g.current?.blur():$.key==="ArrowDown"?($.preventDefault(),r&&c.length>0&&u(T=>T<c.length-1?T+1:T)):$.key==="ArrowUp"?($.preventDefault(),r&&u(T=>T>-1?T-1:-1)):$.key==="Enter"&&r&&s>=0&&c[s]&&($.preventDefault(),S(c[s]))},[r,c,s,S]),C=E.useCallback(($,T)=>{$.stopPropagation(),f(T)},[f]),x=E.useCallback(()=>{t(""),g.current?.focus()},[t]);return H.jsxs(E2,{ref:d,children:[H.jsxs(C2,{$focused:i,children:[H.jsx(_2,{ref:g,type:"text",placeholder:"Filter (e.g. error, -debug, /regex/)",value:e,onChange:$=>t($.target.value),onFocus:h,onBlur:m,onKeyDown:b}),e&&H.jsx(nH,{onClick:x,title:"Clear filter",children:H.jsx($y,{size:"XS"})}),H.jsx(rH,{type:"button",onClick:y,$active:r,title:"Recent filters",children:H.jsx(Dd,{size:"XS"})})]}),r&&H.jsxs(Y7,{children:[H.jsx(Q7,{children:"Recent filters"}),c.length===0?H.jsx(tH,{children:"No recent filters"}):c.map(($,T)=>H.jsxs(J7,{$highlighted:T===s,onClick:()=>S($),children:[H.jsx(Z7,{children:$}),H.jsx(eH,{onClick:_=>C(_,$),title:"Remove from recent",children:H.jsx($y,{size:"XS"})})]},$))]})]})};var o0={exports:{}};/*!
1042
+ `,oH=({value:e,onChange:t})=>{const[r,n]=E.useState(!1),[i,o]=E.useState(!1),[s,u]=E.useState(-1),{recentFilters:c,removeFilter:f}=Y7(e),d=E.useRef(null),g=E.useRef(null);E.useEffect(()=>{const $=T=>{d.current&&!d.current.contains(T.target)&&n(!1)};return document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[]);const h=E.useCallback(()=>{o(!0)},[]),y=E.useCallback(()=>{n($=>($||u(-1),!$))},[]),m=E.useCallback(()=>{o(!1)},[]),S=E.useCallback($=>{t($),n(!1),u(-1),g.current?.focus()},[t]),b=E.useCallback($=>{$.key==="Escape"?r?(n(!1),u(-1)):g.current?.blur():$.key==="ArrowDown"?($.preventDefault(),r&&c.length>0&&u(T=>T<c.length-1?T+1:T)):$.key==="ArrowUp"?($.preventDefault(),r&&u(T=>T>-1?T-1:-1)):$.key==="Enter"&&r&&s>=0&&c[s]&&($.preventDefault(),S(c[s]))},[r,c,s,S]),C=E.useCallback(($,T)=>{$.stopPropagation(),f(T)},[f]),x=E.useCallback(()=>{t(""),g.current?.focus()},[t]);return H.jsxs(E2,{ref:d,children:[H.jsxs(C2,{$focused:i,children:[H.jsx(_2,{ref:g,type:"text",placeholder:"Filter (e.g. error, -debug, /regex/)",value:e,onChange:$=>t($.target.value),onFocus:h,onBlur:m,onKeyDown:b}),e&&H.jsx(iH,{onClick:x,title:"Clear filter",children:H.jsx($y,{size:"XS"})}),H.jsx(nH,{type:"button",onClick:y,$active:r,title:"Recent filters",children:H.jsx(Dd,{size:"XS"})})]}),r&&H.jsxs(Q7,{children:[H.jsx(J7,{children:"Recent filters"}),c.length===0?H.jsx(rH,{children:"No recent filters"}):c.map(($,T)=>H.jsxs(Z7,{$highlighted:T===s,onClick:()=>S($),children:[H.jsx(eH,{children:$}),H.jsx(tH,{onClick:_=>C(_,$),title:"Remove from recent",children:H.jsx($y,{size:"XS"})})]},$))]})]})};var o0={exports:{}};/*!
1043
1043
  Copyright (c) 2018 Jed Watson.
1044
1044
  Licensed under the MIT License (MIT), see
1045
1045
  http://jedwatson.github.io/classnames
1046
- */var eT;function oH(){return eT||(eT=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(o=i(o,n(u)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var u in o)t.call(o,u)&&o[u]&&(s=i(s,u));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(o0)),o0.exports}var aH=oH();const xt=Ir(aH);var sH=Symbol.for("react.element"),lH=Symbol.for("react.transitional.element"),uH=Symbol.for("react.fragment");function O2(e){return e&&ft(e)==="object"&&(e.$$typeof===sH||e.$$typeof===lH)&&e.type===uH}function Rl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return oe.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Rl(n)):O2(n)&&n.props?r=r.concat(Rl(n.props.children,t)):r.push(n))}),r}var Dy={},cH=function(t){};function fH(e,t){}function dH(e,t){}function pH(){Dy={}}function T2(e,t,r){!t&&!Dy[r]&&(e(!1,r),Dy[r]=!0)}function qn(e,t){T2(fH,e,t)}function hH(e,t){T2(dH,e,t)}qn.preMessage=cH;qn.resetWarned=pH;qn.noteOnce=hH;function sc(e){return e instanceof HTMLElement||e instanceof SVGElement}function gH(e){return e&&ft(e)==="object"&&sc(e.nativeElement)?e.nativeElement:sc(e)?e:null}function Fd(e){var t=gH(e);if(t)return t;if(e instanceof oe.Component){var r;return(r=vE.findDOMNode)===null||r===void 0?void 0:r.call(vE,e)}return null}function Ib(e,t,r){var n=E.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var vH=Number(E.version.split(".")[0]),Pb=function(t,r){typeof t=="function"?t(r):ft(t)==="object"&&t&&"current"in t&&(t.current=r)},Lp=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(o){r.forEach(function(s){Pb(s,o)})}},kb=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ib(function(){return Lp.apply(void 0,r)},r,function(i,o){return i.length!==o.length||i.every(function(s,u){return s!==o[u]})})},Fp=function(t){var r,n;if(!t)return!1;if($2(t)&&vH>=19)return!0;var i=ku.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==ku.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ku.ForwardRef)};function $2(e){return E.isValidElement(e)&&!O2(e)}var Mb=function(t){if(t&&$2(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Ly=E.createContext(null);function mH(e){var t=e.children,r=e.onBatchResize,n=E.useRef(0),i=E.useRef([]),o=E.useContext(Ly),s=E.useCallback(function(u,c,f){n.current+=1;var d=n.current;i.current.push({size:u,element:c,data:f}),Promise.resolve().then(function(){d===n.current&&(r?.(i.current),i.current=[])}),o?.(u,c,f)},[r,o]);return E.createElement(Ly.Provider,{value:s},t)}var A2=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];r.call(n,s[1],s[0])}},t})()})(),Fy=typeof window<"u"&&typeof document<"u"&&window.document===document,ip=(function(){return typeof self<"u"&&self.Math===Math||typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),yH=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ip):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),bH=2;function SH(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function s(){yH(o)}function u(){var c=Date.now();if(r){if(c-i<bH)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=c}return u}var wH=20,xH=["top","right","bottom","left","width","height","size","weight"],EH=typeof MutationObserver<"u",CH=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=SH(this.refresh.bind(this),wH)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Fy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),EH?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Fy||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=xH.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),I2=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),Ol=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ip}),P2=Np(0,0,0,0);function op(e){return parseFloat(e)||0}function tT(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+op(o)},0)}function _H(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],s=e["padding-"+o];r[o]=op(s)}return r}function RH(e){var t=e.getBBox();return Np(0,0,t.width,t.height)}function OH(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return P2;var n=Ol(e).getComputedStyle(e),i=_H(n),o=i.left+i.right,s=i.top+i.bottom,u=op(n.width),c=op(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=tT(n,"left","right")+o),Math.round(c+s)!==r&&(c-=tT(n,"top","bottom")+s)),!$H(e)){var f=Math.round(u+o)-t,d=Math.round(c+s)-r;Math.abs(f)!==1&&(u-=f),Math.abs(d)!==1&&(c-=d)}return Np(i.left,i.top,u,c)}var TH=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ol(e).SVGGraphicsElement}:function(e){return e instanceof Ol(e).SVGElement&&typeof e.getBBox=="function"}})();function $H(e){return e===Ol(e).document.documentElement}function AH(e){return Fy?TH(e)?RH(e):OH(e):P2}function IH(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return I2(s,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),s}function Np(e,t,r,n){return{x:e,y:t,width:r,height:n}}var PH=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Np(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=AH(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),kH=(function(){function e(t,r){var n=IH(r);I2(this,{target:t,contentRect:n})}return e})(),MH=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new A2,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new PH(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new kH(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),k2=typeof WeakMap<"u"?new WeakMap:new A2,M2=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=CH.getInstance(),n=new MH(t,r,this);k2.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){M2.prototype[e]=function(){var t;return(t=k2.get(this))[e].apply(t,arguments)}});var DH=(function(){return typeof ip.ResizeObserver<"u"?ip.ResizeObserver:M2})(),xa=new Map;function LH(e){e.forEach(function(t){var r,n=t.target;(r=xa.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var D2=new DH(LH);function FH(e,t){xa.has(e)||(xa.set(e,new Set),D2.observe(e)),xa.get(e).add(t)}function NH(e,t){xa.has(e)&&(xa.get(e).delete(t),xa.get(e).size||(D2.unobserve(e),xa.delete(e)))}var jH=(function(e){ys(r,e);var t=bs(r);function r(){return Zr(this,r),t.apply(this,arguments)}return en(r,[{key:"render",value:function(){return this.props.children}}]),r})(E.Component);function zH(e,t){var r=e.children,n=e.disabled,i=E.useRef(null),o=E.useRef(null),s=E.useContext(Ly),u=typeof r=="function",c=u?r(i):r,f=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!u&&E.isValidElement(c)&&Fp(c),g=d?Mb(c):null,h=kb(g,i),y=function(){var C;return Fd(i.current)||(i.current&&ft(i.current)==="object"?Fd((C=i.current)===null||C===void 0?void 0:C.nativeElement):null)||Fd(o.current)};E.useImperativeHandle(t,function(){return y()});var m=E.useRef(e);m.current=e;var S=E.useCallback(function(b){var C=m.current,x=C.onResize,$=C.data,T=b.getBoundingClientRect(),_=T.width,A=T.height,O=b.offsetWidth,I=b.offsetHeight,L=Math.floor(_),F=Math.floor(A);if(f.current.width!==L||f.current.height!==F||f.current.offsetWidth!==O||f.current.offsetHeight!==I){var W={width:L,height:F,offsetWidth:O,offsetHeight:I};f.current=W;var z=O===Math.round(_)?_:O,B=I===Math.round(A)?A:I,j=me(me({},W),{},{offsetWidth:z,offsetHeight:B});s?.(j,b,$),x&&Promise.resolve().then(function(){x(j,b)})}},[]);return E.useEffect(function(){var b=y();return b&&!n&&FH(b,S),function(){return NH(b,S)}},[i.current,n]),E.createElement(jH,{ref:o},d?E.cloneElement(c,{ref:h}):c)}var BH=E.forwardRef(zH),VH="rc-observer-key";function HH(e,t){var r=e.children,n=typeof r=="function"?[r]:Rl(r);return n.map(function(i,o){var s=i?.key||"".concat(VH,"-").concat(o);return E.createElement(BH,fr({},e,{key:s,ref:o===0?t:void 0}),i)})}var Oc=E.forwardRef(HH);Oc.Collection=mH;function L2(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var F2=function(t){return+setTimeout(t,16)},N2=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(F2=function(t){return window.requestAnimationFrame(t)},N2=function(t){return window.cancelAnimationFrame(t)});var rT=0,Db=new Map;function j2(e){Db.delete(e)}var lc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rT+=1;var n=rT;function i(o){if(o===0)j2(n),t();else{var s=F2(function(){i(o-1)});Db.set(n,s)}}return i(r),n};lc.cancel=function(e){var t=Db.get(e);return j2(e),N2(t)};function uc(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function On(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function UH(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var nT="data-rc-order",iT="data-rc-priority",WH="rc-util-key",Ny=new Map;function z2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):WH}function jp(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function qH(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lb(e){return Array.from((Ny.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function B2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!On())return null;var r=t.csp,n=t.prepend,i=t.priority,o=i===void 0?0:i,s=qH(n),u=s==="prependQueue",c=document.createElement("style");c.setAttribute(nT,s),u&&o&&c.setAttribute(iT,"".concat(o)),r!=null&&r.nonce&&(c.nonce=r?.nonce),c.innerHTML=e;var f=jp(t),d=f.firstChild;if(n){if(u){var g=(t.styles||Lb(f)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(nT)))return!1;var y=Number(h.getAttribute(iT)||0);return o>=y});if(g.length)return f.insertBefore(c,g[g.length-1].nextSibling),c}f.insertBefore(c,d)}else f.appendChild(c);return c}function V2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=jp(t);return(t.styles||Lb(r)).find(function(n){return n.getAttribute(z2(t))===e})}function cc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=V2(e,t);if(r){var n=jp(t);n.removeChild(r)}}function GH(e,t){var r=Ny.get(e);if(!r||!UH(document,r)){var n=B2("",t),i=n.parentNode;Ny.set(e,i),e.removeChild(n)}}function Xo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=jp(r),i=Lb(n),o=me(me({},r),{},{styles:i});GH(n,o);var s=V2(t,o);if(s){var u,c;if((u=o.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var f;s.nonce=(f=o.csp)===null||f===void 0?void 0:f.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=B2(e,o);return d.setAttribute(z2(o),t),d}function jy(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(o);if(qn(!c,"Warning: There may be circular references"),c)return!1;if(o===s)return!0;if(r&&u>1)return!1;n.add(o);var f=u+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(var d=0;d<o.length;d++)if(!i(o[d],s[d],f))return!1;return!0}if(o&&s&&ft(o)==="object"&&ft(s)==="object"){var g=Object.keys(o);return g.length!==Object.keys(s).length?!1:g.every(function(h){return i(o[h],s[h],f)})}return!1}return i(e,t)}var XH="%";function zy(e){return e.join(XH)}var KH=(function(){function e(t){Zr(this,e),ue(this,"instanceId",void 0),ue(this,"cache",new Map),ue(this,"extracted",new Set),this.instanceId=t}return en(e,[{key:"get",value:function(r){return this.opGet(zy(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(zy(r),n)}},{key:"opUpdate",value:function(r,n){var i=this.cache.get(r),o=n(i);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e})(),Tl="data-token-hash",Gi="data-css-hash",Ea="__cssinjs_instance__";function YH(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Gi,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[Ea]=i[Ea]||e,i[Ea]===e&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Gi,"]"))).forEach(function(i){var o=i.getAttribute(Gi);if(n[o]){if(i[Ea]===e){var s;(s=i.parentNode)===null||s===void 0||s.removeChild(i)}}else n[o]=!0})}return new KH(e)}var zp=E.createContext({hashPriority:"low",cache:YH(),defaultCache:!0});function QH(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Fb=(function(){function e(){Zr(this,e),ue(this,"cache",void 0),ue(this,"keys",void 0),ue(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return en(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(u){if(!s)s=void 0;else{var c;s=(c=s)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(u)}}),(n=s)!==null&&n!==void 0&&n.value&&o&&(s.value[1]=this.cacheCallTimes++),(i=s)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(f,d){var g=Le(f,2),h=g[1];return i.internalGet(d)[1]<h?[d,i.internalGet(d)[1]]:f},[this.keys[0],this.cacheCallTimes]),s=Le(o,1),u=s[0];this.delete(u)}this.keys.push(r)}var c=this.cache;r.forEach(function(f,d){if(d===r.length-1)c.set(f,{value:[n,i.cacheCallTimes++]});else{var g=c.get(f);g?g.map||(g.map=new Map):c.set(f,{map:new Map}),c=c.get(f).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var o;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var s=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!QH(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ue(Fb,"MAX_CACHE_SIZE",20);ue(Fb,"MAX_CACHE_OFFSET",5);var oT=0,H2=(function(){function e(t){Zr(this,e),ue(this,"derivatives",void 0),ue(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=oT,t.length===0&&(t.length>0,void 0),oT+=1}return en(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e})(),a0=new Fb;function By(e){var t=Array.isArray(e)?e:[e];return a0.has(t)||a0.set(t,new H2(t)),a0.get(t)}var JH=new WeakMap,s0={};function ZH(e,t){for(var r=JH,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(s0)||r.set(s0,e()),r.get(s0)}var aT=new WeakMap;function zu(e){var t=aT.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof H2?t+=n.id:n&&ft(n)==="object"?t+=zu(n):t+=n}),t=uc(t),aT.set(e,t)),t}function sT(e,t){return uc("".concat(t,"_").concat(zu(e)))}var Vy=On();function Ft(e){return typeof e=="number"?"".concat(e,"px"):e}function ap(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=me(me({},n),{},ue(ue({},Tl,t),Gi,r)),s=Object.keys(o).map(function(u){var c=o[u];return c?"".concat(u,'="').concat(c,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Nd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},eU=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(i){var o=Le(i,2),s=o[0],u=o[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},U2=function(t,r,n){var i={},o={};return Object.entries(t).forEach(function(s){var u,c,f=Le(s,2),d=f[0],g=f[1];if(n!=null&&(u=n.preserve)!==null&&u!==void 0&&u[d])o[d]=g;else if((typeof g=="string"||typeof g=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[d])){var h,y=Nd(d,n?.prefix);i[y]=typeof g=="number"&&!(n!=null&&(h=n.unitless)!==null&&h!==void 0&&h[d])?"".concat(g,"px"):String(g),o[d]="var(".concat(y,")")}}),[o,eU(i,r,{scope:n?.scope})]},lT=On()?E.useLayoutEffect:E.useEffect,or=function(t,r){var n=E.useRef(!0);lT(function(){return t(n.current)},r),lT(function(){return n.current=!1,function(){n.current=!0}},[])},uT=function(t,r){or(function(n){if(!n)return t()},r)},tU=me({},bp),cT=tU.useInsertionEffect,rU=function(t,r,n){E.useMemo(t,n),or(function(){return r(!0)},n)},nU=cT?function(e,t,r){return cT(function(){return e(),t()},r)}:rU,iU=me({},bp),oU=iU.useInsertionEffect,aU=function(t){var r=[],n=!1;function i(o){n||r.push(o)}return E.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),i},sU=function(){return function(t){t()}},lU=typeof oU<"u"?aU:sU;function Nb(e,t,r,n,i){var o=E.useContext(zp),s=o.cache,u=[e].concat(ot(t)),c=zy(u),f=lU([c]),d=function(m){s.opUpdate(c,function(S){var b=S||[void 0,void 0],C=Le(b,2),x=C[0],$=x===void 0?0:x,T=C[1],_=T,A=_||r(),O=[$,A];return m?m(O):O})};E.useMemo(function(){d()},[c]);var g=s.opGet(c),h=g[1];return nU(function(){i?.(h)},function(y){return d(function(m){var S=Le(m,2),b=S[0],C=S[1];return y&&b===0&&i?.(h),[b+1,C]}),function(){s.opUpdate(c,function(m){var S=m||[],b=Le(S,2),C=b[0],x=C===void 0?0:C,$=b[1],T=x-1;return T===0?(f(function(){(y||!s.opGet(c))&&n?.($,!1)}),null):[x-1,$]})}},[c]),h}var uU={},cU="css",es=new Map;function fU(e){es.set(e,(es.get(e)||0)+1)}function dU(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Tl,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ea]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var pU=0;function hU(e,t){es.set(e,(es.get(e)||0)-1);var r=new Set;es.forEach(function(n,i){n<=0&&r.add(i)}),es.size-r.size>pU&&r.forEach(function(n){dU(n,t),es.delete(n)})}var gU=function(t,r,n,i){var o=n.getDerivativeToken(t),s=me(me({},o),r);return i&&(s=i(s)),s},W2="token";function vU(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.useContext(zp),i=n.cache.instanceId,o=n.container,s=r.salt,u=s===void 0?"":s,c=r.override,f=c===void 0?uU:c,d=r.formatToken,g=r.getComputedToken,h=r.cssVar,y=ZH(function(){return Object.assign.apply(Object,[{}].concat(ot(t)))},t),m=zu(y),S=zu(f),b=h?zu(h):"",C=Nb(W2,[u,e.id,m,S,b],function(){var x,$=g?g(y,f,e):gU(y,f,e,d),T=me({},$),_="";if(h){var A=U2($,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),O=Le(A,2);$=O[0],_=O[1]}var I=sT($,u);$._tokenKey=I,T._tokenKey=sT(T,u);var L=(x=h?.key)!==null&&x!==void 0?x:I;$._themeKey=L,fU(L);var F="".concat(cU,"-").concat(uc(I));return $._hashId=F,[$,F,T,_,h?.key||""]},function(x){hU(x[0]._themeKey,i)},function(x){var $=Le(x,4),T=$[0],_=$[3];if(h&&_){var A=Xo(_,uc("css-variables-".concat(T._themeKey)),{mark:Gi,prepend:"queue",attachTo:o,priority:-999});A[Ea]=i,A.setAttribute(Tl,T._themeKey)}});return C}var mU=function(t,r,n){var i=Le(t,5),o=i[2],s=i[3],u=i[4],c=n||{},f=c.plain;if(!s)return null;var d=o._tokenKey,g=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=ap(s,u,d,h,f);return[g,d,y]},q2="comm",G2="rule",X2="decl",yU="@import",bU="@keyframes",SU="@layer",K2=Math.abs,jb=String.fromCharCode;function Y2(e){return e.trim()}function jd(e,t,r){return e.replace(t,r)}function wU(e,t,r){return e.indexOf(t,r)}function fc(e,t){return e.charCodeAt(t)|0}function $l(e,t,r){return e.slice(t,r)}function fo(e){return e.length}function xU(e){return e.length}function id(e,t){return t.push(e),e}var Bp=1,Al=1,Q2=0,xi=0,vr=0,Nl="";function zb(e,t,r,n,i,o,s,u){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Bp,column:Al,length:s,return:"",siblings:u}}function EU(){return vr}function CU(){return vr=xi>0?fc(Nl,--xi):0,Al--,vr===10&&(Al=1,Bp--),vr}function Xi(){return vr=xi<Q2?fc(Nl,xi++):0,Al++,vr===10&&(Al=1,Bp++),vr}function Ca(){return fc(Nl,xi)}function zd(){return xi}function Vp(e,t){return $l(Nl,e,t)}function dc(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 _U(e){return Bp=Al=1,Q2=fo(Nl=e),xi=0,[]}function RU(e){return Nl="",e}function l0(e){return Y2(Vp(xi-1,Hy(e===91?e+2:e===40?e+1:e)))}function OU(e){for(;(vr=Ca())&&vr<33;)Xi();return dc(e)>2||dc(vr)>3?"":" "}function TU(e,t){for(;--t&&Xi()&&!(vr<48||vr>102||vr>57&&vr<65||vr>70&&vr<97););return Vp(e,zd()+(t<6&&Ca()==32&&Xi()==32))}function Hy(e){for(;Xi();)switch(vr){case e:return xi;case 34:case 39:e!==34&&e!==39&&Hy(vr);break;case 40:e===41&&Hy(e);break;case 92:Xi();break}return xi}function $U(e,t){for(;Xi()&&e+vr!==57;)if(e+vr===84&&Ca()===47)break;return"/*"+Vp(t,xi-1)+"*"+jb(e===47?e:Xi())}function AU(e){for(;!dc(Ca());)Xi();return Vp(e,xi)}function IU(e){return RU(Bd("",null,null,null,[""],e=_U(e),0,[0],e))}function Bd(e,t,r,n,i,o,s,u,c){for(var f=0,d=0,g=s,h=0,y=0,m=0,S=1,b=1,C=1,x=0,$="",T=i,_=o,A=n,O=$;b;)switch(m=x,x=Xi()){case 40:if(m!=108&&fc(O,g-1)==58){wU(O+=jd(l0(x),"&","&\f"),"&\f",K2(f?u[f-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:O+=l0(x);break;case 9:case 10:case 13:case 32:O+=OU(m);break;case 92:O+=TU(zd()-1,7);continue;case 47:switch(Ca()){case 42:case 47:id(PU($U(Xi(),zd()),t,r,c),c),(dc(m||1)==5||dc(Ca()||1)==5)&&fo(O)&&$l(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*S:u[f++]=fo(O)*C;case 125*S:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+d:C==-1&&(O=jd(O,/\f/g,"")),y>0&&(fo(O)-g||S===0&&m===47)&&id(y>32?dT(O+";",n,r,g-1,c):dT(jd(O," ","")+";",n,r,g-2,c),c);break;case 59:O+=";";default:if(id(A=fT(O,t,r,f,d,i,u,$,T=[],_=[],g,o),o),x===123)if(d===0)Bd(O,t,A,A,T,o,g,u,_);else switch(h===99&&fc(O,3)===110?100:h){case 100:case 108:case 109:case 115:Bd(e,A,A,n&&id(fT(e,A,A,0,0,i,u,$,i,T=[],g,_),_),i,_,g,u,n?T:_);break;default:Bd(O,A,A,A,[""],_,0,u,_)}}f=d=y=0,S=C=1,$=O="",g=s;break;case 58:g=1+fo(O),y=m;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&CU()==125)continue}switch(O+=jb(x),x*S){case 38:C=d>0?1:(O+="\f",-1);break;case 44:u[f++]=(fo(O)-1)*C,C=1;break;case 64:Ca()===45&&(O+=l0(Xi())),h=Ca(),d=g=fo($=O+=AU(zd())),x++;break;case 45:m===45&&fo(O)==2&&(S=0)}}return o}function fT(e,t,r,n,i,o,s,u,c,f,d,g){for(var h=i-1,y=i===0?o:[""],m=xU(y),S=0,b=0,C=0;S<n;++S)for(var x=0,$=$l(e,h+1,h=K2(b=s[S])),T=e;x<m;++x)(T=Y2(b>0?y[x]+" "+$:jd($,/&\f/g,y[x])))&&(c[C++]=T);return zb(e,t,r,i===0?G2:u,c,f,d,g)}function PU(e,t,r,n){return zb(e,t,r,q2,jb(EU()),$l(e,2,-2),0,n)}function dT(e,t,r,n,i){return zb(e,t,r,X2,$l(e,0,n),$l(e,n+1,-1),n,i)}function Uy(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function kU(e,t,r,n){switch(e.type){case SU:if(e.children.length)break;case yU:case X2:return e.return=e.return||e.value;case q2:return"";case bU:return e.return=e.value+"{"+Uy(e.children,n)+"}";case G2:if(!fo(e.value=e.props.join(",")))return""}return fo(r=Uy(e.children,n))?e.return=e.value+"{"+r+"}":""}var pT="data-ant-cssinjs-cache-path",J2="_FILE_STYLE__",ls,Z2=!0;function MU(){if(!ls&&(ls={},On())){var e=document.createElement("div");e.className=pT,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),s=Le(o,2),u=s[0],c=s[1];ls[u]=c});var r=document.querySelector("style[".concat(pT,"]"));if(r){var n;Z2=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function DU(e){return MU(),!!ls[e]}function LU(e){var t=ls[e],r=null;if(t&&On())if(Z2)r=J2;else{var n=document.querySelector("style[".concat(Gi,'="').concat(ls[e],'"]'));n?r=n.innerHTML:delete ls[e]}return[r,t]}var FU="_skip_check_",eP="_multi_value_";function Vd(e){var t=Uy(IU(e),kU);return t.replace(/\{%%%\:[^;];}/g,";")}function NU(e){return ft(e)==="object"&&e&&(FU in e||eP in e)}function hT(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(s){var u,c=s.trim().split(/\s+/),f=c[0]||"",d=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(d).concat(i).concat(f.slice(d.length)),[f].concat(ot(c.slice(1))).join(" ")});return o.join(",")}var jU=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,s=n.parentSelectors,u=r.hashId,c=r.layer;r.path;var f=r.hashPriority,d=r.transformers,g=d===void 0?[]:d;r.linters;var h="",y={};function m(C){var x=C.getName(u);if(!y[x]){var $=e(C.style,r,{root:!1,parentSelectors:s}),T=Le($,1),_=T[0];y[x]="@keyframes ".concat(C.getName(u)).concat(_)}}function S(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function($){Array.isArray($)?S($,x):$&&x.push($)}),x}var b=S(Array.isArray(t)?t:[t]);return b.forEach(function(C){var x=typeof C=="string"&&!i?{}:C;if(typeof x=="string")h+="".concat(x,`
1047
- `);else if(x._keyframe)m(x);else{var $=g.reduce(function(T,_){var A;return(_==null||(A=_.visit)===null||A===void 0?void 0:A.call(_,T))||T},x);Object.keys($).forEach(function(T){var _=$[T];if(ft(_)==="object"&&_&&(T!=="animationName"||!_._keyframe)&&!NU(_)){var A=!1,O=T.trim(),I=!1;(i||o)&&u?O.startsWith("@")?A=!0:O==="&"?O=hT("",u,f):O=hT(T,u,f):i&&!u&&(O==="&"||O==="")&&(O="",I=!0);var L=e(_,r,{root:I,injectHash:A,parentSelectors:[].concat(ot(s),[O])}),F=Le(L,2),W=F[0],z=F[1];y=me(me({},y),z),h+="".concat(O).concat(W)}else{let N=function(X,q){var M=X.replace(/[A-Z]/g,function(U){return"-".concat(U.toLowerCase())}),J=q;!yA[X]&&typeof J=="number"&&J!==0&&(J="".concat(J,"px")),X==="animationName"&&q!==null&&q!==void 0&&q._keyframe&&(m(q),J=q.getName(u)),h+="".concat(M,":").concat(J,";")};var B,j=(B=_?.value)!==null&&B!==void 0?B:_;ft(_)==="object"&&_!==null&&_!==void 0&&_[eP]&&Array.isArray(j)?j.forEach(function(X){N(T,X)}):N(T,j)}})}}),i?c&&(h&&(h="@layer ".concat(c.name," {").concat(h,"}")),c.dependencies&&(y["@layer ".concat(c.name)]=c.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(c.name,";")}).join(`
1048
- `))):h="{".concat(h,"}"),[h,y]};function tP(e,t){return uc("".concat(e.join("%")).concat(t))}function zU(){return null}var rP="style";function Wy(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,s=e.nonce,u=e.clientOnly,c=e.order,f=c===void 0?0:c,d=E.useContext(zp),g=d.autoClear;d.mock;var h=d.defaultCache,y=d.hashPriority,m=d.container,S=d.ssrInline,b=d.transformers,C=d.linters,x=d.cache,$=d.layer,T=r._tokenKey,_=[T];$&&_.push("layer"),_.push.apply(_,ot(n));var A=Vy,O=Nb(rP,_,function(){var z=_.join("|");if(DU(z)){var B=LU(z),j=Le(B,2),N=j[0],X=j[1];if(N)return[N,T,X,{},u,f]}var q=t(),M=jU(q,{hashId:i,hashPriority:y,layer:$?o:void 0,path:n.join("-"),transformers:b,linters:C}),J=Le(M,2),U=J[0],D=J[1],P=Vd(U),G=tP(_,P);return[P,T,G,D,u,f]},function(z,B){var j=Le(z,3),N=j[2];(B||g)&&Vy&&cc(N,{mark:Gi,attachTo:m})},function(z){var B=Le(z,4),j=B[0];B[1];var N=B[2],X=B[3];if(A&&j!==J2){var q={mark:Gi,prepend:$?!1:"queue",attachTo:m,priority:f},M=typeof s=="function"?s():s;M&&(q.csp={nonce:M});var J=[],U=[];Object.keys(X).forEach(function(P){P.startsWith("@layer")?J.push(P):U.push(P)}),J.forEach(function(P){Xo(Vd(X[P]),"_layer-".concat(P),me(me({},q),{},{prepend:!0}))});var D=Xo(j,N,q);D[Ea]=x.instanceId,D.setAttribute(Tl,T),U.forEach(function(P){Xo(Vd(X[P]),"_effect-".concat(P),q)})}}),I=Le(O,3),L=I[0],F=I[1],W=I[2];return function(z){var B;return!S||A||!h?B=E.createElement(zU,null):B=E.createElement("style",fr({},ue(ue({},Tl,F),Gi,W),{dangerouslySetInnerHTML:{__html:L}})),E.createElement(E.Fragment,null,B,z)}}var BU=function(t,r,n){var i=Le(t,6),o=i[0],s=i[1],u=i[2],c=i[3],f=i[4],d=i[5],g=n||{},h=g.plain;if(f)return null;var y=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return y=ap(o,s,u,m,h),c&&Object.keys(c).forEach(function(S){if(!r[S]){r[S]=!0;var b=Vd(c[S]),C=ap(b,s,"_effect-".concat(S),m,h);S.startsWith("@layer")?y=C+y:y+=C}}),[d,u,y]},nP="cssVar",VU=function(t,r){var n=t.key,i=t.prefix,o=t.unitless,s=t.ignore,u=t.token,c=t.scope,f=c===void 0?"":c,d=E.useContext(zp),g=d.cache.instanceId,h=d.container,y=u._tokenKey,m=[].concat(ot(t.path),[n,f,y]),S=Nb(nP,m,function(){var b=r(),C=U2(b,n,{prefix:i,unitless:o,ignore:s,scope:f}),x=Le(C,2),$=x[0],T=x[1],_=tP(m,T);return[$,T,_,n]},function(b){var C=Le(b,3),x=C[2];Vy&&cc(x,{mark:Gi,attachTo:h})},function(b){var C=Le(b,3),x=C[1],$=C[2];if(x){var T=Xo(x,$,{mark:Gi,prepend:"queue",attachTo:h,priority:-999});T[Ea]=g,T.setAttribute(Tl,n)}});return S},HU=function(t,r,n){var i=Le(t,4),o=i[1],s=i[2],u=i[3],c=n||{},f=c.plain;if(!o)return null;var d=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},h=ap(o,u,s,g,f);return[d,s,h]};ue(ue(ue({},rP,BU),W2,mU),nP,HU);var Oi=(function(){function e(t,r){Zr(this,e),ue(this,"name",void 0),ue(this,"style",void 0),ue(this,"_keyframe",!0),this.name=t,this.style=r}return en(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function Gs(e){return e.notSplit=!0,e}Gs(["borderTop","borderBottom"]),Gs(["borderTop"]),Gs(["borderBottom"]),Gs(["borderLeft","borderRight"]),Gs(["borderLeft"]),Gs(["borderRight"]);var Bb=E.createContext({});function UU(e){return ZI(e)||t2(e)||z1(e)||e2()}function go(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function iP(e,t,r,n){if(!t.length)return r;var i=UU(t),o=i[0],s=i.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=ot(e):u=me({},e),n&&r===void 0&&s.length===1?delete u[o][s[0]]:u[o]=iP(u[o],s,r,n),u}function Bi(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!go(e,t.slice(0,-1))?e:iP(e,t,r,n)}function WU(e){return ft(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function gT(e){return Array.isArray(e)?[]:{}}var qU=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ul(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=gT(t[0]);return t.forEach(function(i){function o(s,u){var c=new Set(u),f=go(i,s),d=Array.isArray(f);if(d||WU(f)){if(!c.has(f)){c.add(f);var g=go(n,s);d?n=Bi(n,s,[]):(!g||ft(g)!=="object")&&(n=Bi(n,s,gT(f))),qU(f).forEach(function(h){o([].concat(ot(s),[h]),c)})}}else n=Bi(n,s,f)}o([])}),n}function GU(){}const XU=E.createContext({}),oP=()=>{const e=()=>{};return e.deprecated=GU,e},KU=E.createContext(void 0);var YU={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},QU={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},JU=me(me({},QU),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const aP={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vT={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},JU),timePickerLocale:Object.assign({},aP)},Ln="${label} is not a valid ${type}",Il={locale:"en",Pagination:YU,DatePicker:vT,TimePicker:aP,Calendar:vT,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Il.Modal);let Hd=[];const mT=()=>Hd.reduce((e,t)=>Object.assign(Object.assign({},e),t),Il.Modal);function ZU(e){if(e){const t=Object.assign({},e);return Hd.push(t),mT(),()=>{Hd=Hd.filter(r=>r!==t),mT()}}Object.assign({},Il.Modal)}const Vb=E.createContext(void 0),eW=(e,t)=>{const r=E.useContext(Vb),n=E.useMemo(()=>{var o;const s=Il[e],u=(o=r?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[e,t,r]),i=E.useMemo(()=>{const o=r?.locale;return r?.exist&&!o?Il.locale:o},[r]);return[n,i]},tW="internalMark",rW=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;E.useEffect(()=>ZU(t?.Modal),[t]);const i=E.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return E.createElement(Vb.Provider,{value:i},r)},Ar=Math.round;function u0(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const yT=(e,t,r)=>r===0?e:e/100;function bu(e,t){const r=t||255;return e>r?r:e<0?0:e}class cl{constructor(t){ue(this,"isValid",!0),ue(this,"r",0),ue(this,"g",0),ue(this,"b",0),ue(this,"a",1),ue(this,"_h",void 0),ue(this,"_s",void 0),ue(this,"_l",void 0),ue(this,"_v",void 0),ue(this,"_max",void 0),ue(this,"_min",void 0),ue(this,"_brightness",void 0);function r(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(s){return i.startsWith(s)};var n=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof cl)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=bu(t.r),this.g=bu(t.g),this.b=bu(t.b),this.a=typeof t.a=="number"?bu(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(o){const s=o/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ar(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,o=u=>(n[u]-this[u])*i+this[u],s={r:Ar(o("r")),g:Ar(o("g")),b:Ar(o("b")),a:Ar(o("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),i=o=>Ar((this[o]*this.a+r[o]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Ar(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Ar(this.getSaturation()*100),n=Ar(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const i=this.clone();return i[t]=bu(r,n),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(i,o){return parseInt(r[i]+r[o||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const h=Ar(n*255);this.r=h,this.g=h,this.b=h}let o=0,s=0,u=0;const c=t/60,f=(1-Math.abs(2*n-1))*r,d=f*(1-Math.abs(c%2-1));c>=0&&c<1?(o=f,s=d):c>=1&&c<2?(o=d,s=f):c>=2&&c<3?(s=f,u=d):c>=3&&c<4?(s=d,u=f):c>=4&&c<5?(o=d,u=f):c>=5&&c<6&&(o=f,u=d);const g=n-f/2;this.r=Ar((o+g)*255),this.g=Ar((s+g)*255),this.b=Ar((u+g)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const o=Ar(n*255);if(this.r=o,this.g=o,this.b=o,r<=0)return;const s=t/60,u=Math.floor(s),c=s-u,f=Ar(n*(1-r)*255),d=Ar(n*(1-r*c)*255),g=Ar(n*(1-r*(1-c))*255);switch(u){case 0:this.g=g,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=g;break;case 3:this.r=f,this.g=d;break;case 4:this.r=g,this.g=f;break;case 5:default:this.g=f,this.b=d;break}}fromHsvString(t){const r=u0(t,yT);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=u0(t,yT);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=u0(t,(n,i)=>i.includes("%")?Ar(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var od=2,bT=.16,nW=.05,iW=.05,oW=.15,sP=5,lP=4,aW=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ST(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-od*t:Math.round(e.h)+od*t:n=r?Math.round(e.h)+od*t:Math.round(e.h)-od*t,n<0?n+=360:n>=360&&(n-=360),n}function wT(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-bT*t:t===lP?n=e.s+bT:n=e.s+nW*t,n>1&&(n=1),r&&t===sP&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function xT(e,t,r){var n;return r?n=e.v+iW*t:n=e.v-oW*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function pc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new cl(e),i=n.toHsv(),o=sP;o>0;o-=1){var s=new cl({h:ST(i,o,!0),s:wT(i,o,!0),v:xT(i,o,!0)});r.push(s)}r.push(n);for(var u=1;u<=lP;u+=1){var c=new cl({h:ST(i,u),s:wT(i,u),v:xT(i,u)});r.push(c)}return t.theme==="dark"?aW.map(function(f){var d=f.index,g=f.amount;return new cl(t.backgroundColor||"#141414").mix(r[d],g).toHexString()}):r.map(function(f){return f.toHexString()})}var c0={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},qy=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];qy.primary=qy[5];var Gy=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Gy.primary=Gy[5];var Xy=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Xy.primary=Xy[5];var sp=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];sp.primary=sp[5];var Ky=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ky.primary=Ky[5];var Yy=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Yy.primary=Yy[5];var Qy=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Qy.primary=Qy[5];var Jy=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Jy.primary=Jy[5];var lp=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];lp.primary=lp[5];var Zy=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Zy.primary=Zy[5];var e1=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];e1.primary=e1[5];var t1=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];t1.primary=t1[5];var r1=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];r1.primary=r1[5];var f0={red:qy,volcano:Gy,orange:Xy,gold:sp,yellow:Ky,lime:Yy,green:Qy,cyan:Jy,blue:lp,geekblue:Zy,purple:e1,magenta:t1,grey:r1};const uP={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},hc=Object.assign(Object.assign({},uP),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1046
+ */var eT;function aH(){return eT||(eT=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(o=i(o,n(u)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var u in o)t.call(o,u)&&o[u]&&(s=i(s,u));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(o0)),o0.exports}var sH=aH();const xt=Ir(sH);var lH=Symbol.for("react.element"),uH=Symbol.for("react.transitional.element"),cH=Symbol.for("react.fragment");function O2(e){return e&&ft(e)==="object"&&(e.$$typeof===lH||e.$$typeof===uH)&&e.type===cH}function Rl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return oe.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Rl(n)):O2(n)&&n.props?r=r.concat(Rl(n.props.children,t)):r.push(n))}),r}var Dy={},fH=function(t){};function dH(e,t){}function pH(e,t){}function hH(){Dy={}}function T2(e,t,r){!t&&!Dy[r]&&(e(!1,r),Dy[r]=!0)}function qn(e,t){T2(dH,e,t)}function gH(e,t){T2(pH,e,t)}qn.preMessage=fH;qn.resetWarned=hH;qn.noteOnce=gH;function sc(e){return e instanceof HTMLElement||e instanceof SVGElement}function vH(e){return e&&ft(e)==="object"&&sc(e.nativeElement)?e.nativeElement:sc(e)?e:null}function Fd(e){var t=vH(e);if(t)return t;if(e instanceof oe.Component){var r;return(r=vE.findDOMNode)===null||r===void 0?void 0:r.call(vE,e)}return null}function Ib(e,t,r){var n=E.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var mH=Number(E.version.split(".")[0]),Pb=function(t,r){typeof t=="function"?t(r):ft(t)==="object"&&t&&"current"in t&&(t.current=r)},Lp=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(o){r.forEach(function(s){Pb(s,o)})}},kb=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ib(function(){return Lp.apply(void 0,r)},r,function(i,o){return i.length!==o.length||i.every(function(s,u){return s!==o[u]})})},Fp=function(t){var r,n;if(!t)return!1;if($2(t)&&mH>=19)return!0;var i=ku.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==ku.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ku.ForwardRef)};function $2(e){return E.isValidElement(e)&&!O2(e)}var Mb=function(t){if(t&&$2(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Ly=E.createContext(null);function yH(e){var t=e.children,r=e.onBatchResize,n=E.useRef(0),i=E.useRef([]),o=E.useContext(Ly),s=E.useCallback(function(u,c,f){n.current+=1;var d=n.current;i.current.push({size:u,element:c,data:f}),Promise.resolve().then(function(){d===n.current&&(r?.(i.current),i.current=[])}),o?.(u,c,f)},[r,o]);return E.createElement(Ly.Provider,{value:s},t)}var A2=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];r.call(n,s[1],s[0])}},t})()})(),Fy=typeof window<"u"&&typeof document<"u"&&window.document===document,ip=(function(){return typeof self<"u"&&self.Math===Math||typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),bH=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ip):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),SH=2;function wH(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function s(){bH(o)}function u(){var c=Date.now();if(r){if(c-i<SH)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=c}return u}var xH=20,EH=["top","right","bottom","left","width","height","size","weight"],CH=typeof MutationObserver<"u",_H=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=wH(this.refresh.bind(this),xH)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Fy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),CH?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Fy||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=EH.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),I2=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),Ol=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ip}),P2=Np(0,0,0,0);function op(e){return parseFloat(e)||0}function tT(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+op(o)},0)}function RH(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],s=e["padding-"+o];r[o]=op(s)}return r}function OH(e){var t=e.getBBox();return Np(0,0,t.width,t.height)}function TH(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return P2;var n=Ol(e).getComputedStyle(e),i=RH(n),o=i.left+i.right,s=i.top+i.bottom,u=op(n.width),c=op(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=tT(n,"left","right")+o),Math.round(c+s)!==r&&(c-=tT(n,"top","bottom")+s)),!AH(e)){var f=Math.round(u+o)-t,d=Math.round(c+s)-r;Math.abs(f)!==1&&(u-=f),Math.abs(d)!==1&&(c-=d)}return Np(i.left,i.top,u,c)}var $H=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ol(e).SVGGraphicsElement}:function(e){return e instanceof Ol(e).SVGElement&&typeof e.getBBox=="function"}})();function AH(e){return e===Ol(e).document.documentElement}function IH(e){return Fy?$H(e)?OH(e):TH(e):P2}function PH(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return I2(s,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),s}function Np(e,t,r,n){return{x:e,y:t,width:r,height:n}}var kH=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Np(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=IH(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),MH=(function(){function e(t,r){var n=PH(r);I2(this,{target:t,contentRect:n})}return e})(),DH=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new A2,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new kH(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new MH(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),k2=typeof WeakMap<"u"?new WeakMap:new A2,M2=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=_H.getInstance(),n=new DH(t,r,this);k2.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){M2.prototype[e]=function(){var t;return(t=k2.get(this))[e].apply(t,arguments)}});var LH=(function(){return typeof ip.ResizeObserver<"u"?ip.ResizeObserver:M2})(),xa=new Map;function FH(e){e.forEach(function(t){var r,n=t.target;(r=xa.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var D2=new LH(FH);function NH(e,t){xa.has(e)||(xa.set(e,new Set),D2.observe(e)),xa.get(e).add(t)}function jH(e,t){xa.has(e)&&(xa.get(e).delete(t),xa.get(e).size||(D2.unobserve(e),xa.delete(e)))}var zH=(function(e){ys(r,e);var t=bs(r);function r(){return Zr(this,r),t.apply(this,arguments)}return en(r,[{key:"render",value:function(){return this.props.children}}]),r})(E.Component);function BH(e,t){var r=e.children,n=e.disabled,i=E.useRef(null),o=E.useRef(null),s=E.useContext(Ly),u=typeof r=="function",c=u?r(i):r,f=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!u&&E.isValidElement(c)&&Fp(c),g=d?Mb(c):null,h=kb(g,i),y=function(){var C;return Fd(i.current)||(i.current&&ft(i.current)==="object"?Fd((C=i.current)===null||C===void 0?void 0:C.nativeElement):null)||Fd(o.current)};E.useImperativeHandle(t,function(){return y()});var m=E.useRef(e);m.current=e;var S=E.useCallback(function(b){var C=m.current,x=C.onResize,$=C.data,T=b.getBoundingClientRect(),_=T.width,A=T.height,O=b.offsetWidth,I=b.offsetHeight,L=Math.floor(_),F=Math.floor(A);if(f.current.width!==L||f.current.height!==F||f.current.offsetWidth!==O||f.current.offsetHeight!==I){var W={width:L,height:F,offsetWidth:O,offsetHeight:I};f.current=W;var z=O===Math.round(_)?_:O,B=I===Math.round(A)?A:I,j=me(me({},W),{},{offsetWidth:z,offsetHeight:B});s?.(j,b,$),x&&Promise.resolve().then(function(){x(j,b)})}},[]);return E.useEffect(function(){var b=y();return b&&!n&&NH(b,S),function(){return jH(b,S)}},[i.current,n]),E.createElement(zH,{ref:o},d?E.cloneElement(c,{ref:h}):c)}var VH=E.forwardRef(BH),HH="rc-observer-key";function UH(e,t){var r=e.children,n=typeof r=="function"?[r]:Rl(r);return n.map(function(i,o){var s=i?.key||"".concat(HH,"-").concat(o);return E.createElement(VH,fr({},e,{key:s,ref:o===0?t:void 0}),i)})}var Oc=E.forwardRef(UH);Oc.Collection=yH;function L2(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var F2=function(t){return+setTimeout(t,16)},N2=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(F2=function(t){return window.requestAnimationFrame(t)},N2=function(t){return window.cancelAnimationFrame(t)});var rT=0,Db=new Map;function j2(e){Db.delete(e)}var lc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rT+=1;var n=rT;function i(o){if(o===0)j2(n),t();else{var s=F2(function(){i(o-1)});Db.set(n,s)}}return i(r),n};lc.cancel=function(e){var t=Db.get(e);return j2(e),N2(t)};function uc(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function On(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function WH(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var nT="data-rc-order",iT="data-rc-priority",qH="rc-util-key",Ny=new Map;function z2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):qH}function jp(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function GH(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lb(e){return Array.from((Ny.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function B2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!On())return null;var r=t.csp,n=t.prepend,i=t.priority,o=i===void 0?0:i,s=GH(n),u=s==="prependQueue",c=document.createElement("style");c.setAttribute(nT,s),u&&o&&c.setAttribute(iT,"".concat(o)),r!=null&&r.nonce&&(c.nonce=r?.nonce),c.innerHTML=e;var f=jp(t),d=f.firstChild;if(n){if(u){var g=(t.styles||Lb(f)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(nT)))return!1;var y=Number(h.getAttribute(iT)||0);return o>=y});if(g.length)return f.insertBefore(c,g[g.length-1].nextSibling),c}f.insertBefore(c,d)}else f.appendChild(c);return c}function V2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=jp(t);return(t.styles||Lb(r)).find(function(n){return n.getAttribute(z2(t))===e})}function cc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=V2(e,t);if(r){var n=jp(t);n.removeChild(r)}}function XH(e,t){var r=Ny.get(e);if(!r||!WH(document,r)){var n=B2("",t),i=n.parentNode;Ny.set(e,i),e.removeChild(n)}}function Xo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=jp(r),i=Lb(n),o=me(me({},r),{},{styles:i});XH(n,o);var s=V2(t,o);if(s){var u,c;if((u=o.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var f;s.nonce=(f=o.csp)===null||f===void 0?void 0:f.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=B2(e,o);return d.setAttribute(z2(o),t),d}function jy(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(o);if(qn(!c,"Warning: There may be circular references"),c)return!1;if(o===s)return!0;if(r&&u>1)return!1;n.add(o);var f=u+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(var d=0;d<o.length;d++)if(!i(o[d],s[d],f))return!1;return!0}if(o&&s&&ft(o)==="object"&&ft(s)==="object"){var g=Object.keys(o);return g.length!==Object.keys(s).length?!1:g.every(function(h){return i(o[h],s[h],f)})}return!1}return i(e,t)}var KH="%";function zy(e){return e.join(KH)}var YH=(function(){function e(t){Zr(this,e),ue(this,"instanceId",void 0),ue(this,"cache",new Map),ue(this,"extracted",new Set),this.instanceId=t}return en(e,[{key:"get",value:function(r){return this.opGet(zy(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(zy(r),n)}},{key:"opUpdate",value:function(r,n){var i=this.cache.get(r),o=n(i);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e})(),Tl="data-token-hash",Gi="data-css-hash",Ea="__cssinjs_instance__";function QH(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Gi,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[Ea]=i[Ea]||e,i[Ea]===e&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Gi,"]"))).forEach(function(i){var o=i.getAttribute(Gi);if(n[o]){if(i[Ea]===e){var s;(s=i.parentNode)===null||s===void 0||s.removeChild(i)}}else n[o]=!0})}return new YH(e)}var zp=E.createContext({hashPriority:"low",cache:QH(),defaultCache:!0});function JH(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Fb=(function(){function e(){Zr(this,e),ue(this,"cache",void 0),ue(this,"keys",void 0),ue(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return en(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(u){if(!s)s=void 0;else{var c;s=(c=s)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(u)}}),(n=s)!==null&&n!==void 0&&n.value&&o&&(s.value[1]=this.cacheCallTimes++),(i=s)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(f,d){var g=Le(f,2),h=g[1];return i.internalGet(d)[1]<h?[d,i.internalGet(d)[1]]:f},[this.keys[0],this.cacheCallTimes]),s=Le(o,1),u=s[0];this.delete(u)}this.keys.push(r)}var c=this.cache;r.forEach(function(f,d){if(d===r.length-1)c.set(f,{value:[n,i.cacheCallTimes++]});else{var g=c.get(f);g?g.map||(g.map=new Map):c.set(f,{map:new Map}),c=c.get(f).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var o;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var s=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!JH(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ue(Fb,"MAX_CACHE_SIZE",20);ue(Fb,"MAX_CACHE_OFFSET",5);var oT=0,H2=(function(){function e(t){Zr(this,e),ue(this,"derivatives",void 0),ue(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=oT,t.length===0&&(t.length>0,void 0),oT+=1}return en(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e})(),a0=new Fb;function By(e){var t=Array.isArray(e)?e:[e];return a0.has(t)||a0.set(t,new H2(t)),a0.get(t)}var ZH=new WeakMap,s0={};function eU(e,t){for(var r=ZH,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(s0)||r.set(s0,e()),r.get(s0)}var aT=new WeakMap;function zu(e){var t=aT.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof H2?t+=n.id:n&&ft(n)==="object"?t+=zu(n):t+=n}),t=uc(t),aT.set(e,t)),t}function sT(e,t){return uc("".concat(t,"_").concat(zu(e)))}var Vy=On();function Ft(e){return typeof e=="number"?"".concat(e,"px"):e}function ap(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=me(me({},n),{},ue(ue({},Tl,t),Gi,r)),s=Object.keys(o).map(function(u){var c=o[u];return c?"".concat(u,'="').concat(c,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Nd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},tU=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(i){var o=Le(i,2),s=o[0],u=o[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},U2=function(t,r,n){var i={},o={};return Object.entries(t).forEach(function(s){var u,c,f=Le(s,2),d=f[0],g=f[1];if(n!=null&&(u=n.preserve)!==null&&u!==void 0&&u[d])o[d]=g;else if((typeof g=="string"||typeof g=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[d])){var h,y=Nd(d,n?.prefix);i[y]=typeof g=="number"&&!(n!=null&&(h=n.unitless)!==null&&h!==void 0&&h[d])?"".concat(g,"px"):String(g),o[d]="var(".concat(y,")")}}),[o,tU(i,r,{scope:n?.scope})]},lT=On()?E.useLayoutEffect:E.useEffect,or=function(t,r){var n=E.useRef(!0);lT(function(){return t(n.current)},r),lT(function(){return n.current=!1,function(){n.current=!0}},[])},uT=function(t,r){or(function(n){if(!n)return t()},r)},rU=me({},bp),cT=rU.useInsertionEffect,nU=function(t,r,n){E.useMemo(t,n),or(function(){return r(!0)},n)},iU=cT?function(e,t,r){return cT(function(){return e(),t()},r)}:nU,oU=me({},bp),aU=oU.useInsertionEffect,sU=function(t){var r=[],n=!1;function i(o){n||r.push(o)}return E.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),i},lU=function(){return function(t){t()}},uU=typeof aU<"u"?sU:lU;function Nb(e,t,r,n,i){var o=E.useContext(zp),s=o.cache,u=[e].concat(ot(t)),c=zy(u),f=uU([c]),d=function(m){s.opUpdate(c,function(S){var b=S||[void 0,void 0],C=Le(b,2),x=C[0],$=x===void 0?0:x,T=C[1],_=T,A=_||r(),O=[$,A];return m?m(O):O})};E.useMemo(function(){d()},[c]);var g=s.opGet(c),h=g[1];return iU(function(){i?.(h)},function(y){return d(function(m){var S=Le(m,2),b=S[0],C=S[1];return y&&b===0&&i?.(h),[b+1,C]}),function(){s.opUpdate(c,function(m){var S=m||[],b=Le(S,2),C=b[0],x=C===void 0?0:C,$=b[1],T=x-1;return T===0?(f(function(){(y||!s.opGet(c))&&n?.($,!1)}),null):[x-1,$]})}},[c]),h}var cU={},fU="css",es=new Map;function dU(e){es.set(e,(es.get(e)||0)+1)}function pU(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Tl,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ea]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var hU=0;function gU(e,t){es.set(e,(es.get(e)||0)-1);var r=new Set;es.forEach(function(n,i){n<=0&&r.add(i)}),es.size-r.size>hU&&r.forEach(function(n){pU(n,t),es.delete(n)})}var vU=function(t,r,n,i){var o=n.getDerivativeToken(t),s=me(me({},o),r);return i&&(s=i(s)),s},W2="token";function mU(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.useContext(zp),i=n.cache.instanceId,o=n.container,s=r.salt,u=s===void 0?"":s,c=r.override,f=c===void 0?cU:c,d=r.formatToken,g=r.getComputedToken,h=r.cssVar,y=eU(function(){return Object.assign.apply(Object,[{}].concat(ot(t)))},t),m=zu(y),S=zu(f),b=h?zu(h):"",C=Nb(W2,[u,e.id,m,S,b],function(){var x,$=g?g(y,f,e):vU(y,f,e,d),T=me({},$),_="";if(h){var A=U2($,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),O=Le(A,2);$=O[0],_=O[1]}var I=sT($,u);$._tokenKey=I,T._tokenKey=sT(T,u);var L=(x=h?.key)!==null&&x!==void 0?x:I;$._themeKey=L,dU(L);var F="".concat(fU,"-").concat(uc(I));return $._hashId=F,[$,F,T,_,h?.key||""]},function(x){gU(x[0]._themeKey,i)},function(x){var $=Le(x,4),T=$[0],_=$[3];if(h&&_){var A=Xo(_,uc("css-variables-".concat(T._themeKey)),{mark:Gi,prepend:"queue",attachTo:o,priority:-999});A[Ea]=i,A.setAttribute(Tl,T._themeKey)}});return C}var yU=function(t,r,n){var i=Le(t,5),o=i[2],s=i[3],u=i[4],c=n||{},f=c.plain;if(!s)return null;var d=o._tokenKey,g=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=ap(s,u,d,h,f);return[g,d,y]},q2="comm",G2="rule",X2="decl",bU="@import",SU="@keyframes",wU="@layer",K2=Math.abs,jb=String.fromCharCode;function Y2(e){return e.trim()}function jd(e,t,r){return e.replace(t,r)}function xU(e,t,r){return e.indexOf(t,r)}function fc(e,t){return e.charCodeAt(t)|0}function $l(e,t,r){return e.slice(t,r)}function fo(e){return e.length}function EU(e){return e.length}function id(e,t){return t.push(e),e}var Bp=1,Al=1,Q2=0,xi=0,vr=0,Nl="";function zb(e,t,r,n,i,o,s,u){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Bp,column:Al,length:s,return:"",siblings:u}}function CU(){return vr}function _U(){return vr=xi>0?fc(Nl,--xi):0,Al--,vr===10&&(Al=1,Bp--),vr}function Xi(){return vr=xi<Q2?fc(Nl,xi++):0,Al++,vr===10&&(Al=1,Bp++),vr}function Ca(){return fc(Nl,xi)}function zd(){return xi}function Vp(e,t){return $l(Nl,e,t)}function dc(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 RU(e){return Bp=Al=1,Q2=fo(Nl=e),xi=0,[]}function OU(e){return Nl="",e}function l0(e){return Y2(Vp(xi-1,Hy(e===91?e+2:e===40?e+1:e)))}function TU(e){for(;(vr=Ca())&&vr<33;)Xi();return dc(e)>2||dc(vr)>3?"":" "}function $U(e,t){for(;--t&&Xi()&&!(vr<48||vr>102||vr>57&&vr<65||vr>70&&vr<97););return Vp(e,zd()+(t<6&&Ca()==32&&Xi()==32))}function Hy(e){for(;Xi();)switch(vr){case e:return xi;case 34:case 39:e!==34&&e!==39&&Hy(vr);break;case 40:e===41&&Hy(e);break;case 92:Xi();break}return xi}function AU(e,t){for(;Xi()&&e+vr!==57;)if(e+vr===84&&Ca()===47)break;return"/*"+Vp(t,xi-1)+"*"+jb(e===47?e:Xi())}function IU(e){for(;!dc(Ca());)Xi();return Vp(e,xi)}function PU(e){return OU(Bd("",null,null,null,[""],e=RU(e),0,[0],e))}function Bd(e,t,r,n,i,o,s,u,c){for(var f=0,d=0,g=s,h=0,y=0,m=0,S=1,b=1,C=1,x=0,$="",T=i,_=o,A=n,O=$;b;)switch(m=x,x=Xi()){case 40:if(m!=108&&fc(O,g-1)==58){xU(O+=jd(l0(x),"&","&\f"),"&\f",K2(f?u[f-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:O+=l0(x);break;case 9:case 10:case 13:case 32:O+=TU(m);break;case 92:O+=$U(zd()-1,7);continue;case 47:switch(Ca()){case 42:case 47:id(kU(AU(Xi(),zd()),t,r,c),c),(dc(m||1)==5||dc(Ca()||1)==5)&&fo(O)&&$l(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*S:u[f++]=fo(O)*C;case 125*S:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+d:C==-1&&(O=jd(O,/\f/g,"")),y>0&&(fo(O)-g||S===0&&m===47)&&id(y>32?dT(O+";",n,r,g-1,c):dT(jd(O," ","")+";",n,r,g-2,c),c);break;case 59:O+=";";default:if(id(A=fT(O,t,r,f,d,i,u,$,T=[],_=[],g,o),o),x===123)if(d===0)Bd(O,t,A,A,T,o,g,u,_);else switch(h===99&&fc(O,3)===110?100:h){case 100:case 108:case 109:case 115:Bd(e,A,A,n&&id(fT(e,A,A,0,0,i,u,$,i,T=[],g,_),_),i,_,g,u,n?T:_);break;default:Bd(O,A,A,A,[""],_,0,u,_)}}f=d=y=0,S=C=1,$=O="",g=s;break;case 58:g=1+fo(O),y=m;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&_U()==125)continue}switch(O+=jb(x),x*S){case 38:C=d>0?1:(O+="\f",-1);break;case 44:u[f++]=(fo(O)-1)*C,C=1;break;case 64:Ca()===45&&(O+=l0(Xi())),h=Ca(),d=g=fo($=O+=IU(zd())),x++;break;case 45:m===45&&fo(O)==2&&(S=0)}}return o}function fT(e,t,r,n,i,o,s,u,c,f,d,g){for(var h=i-1,y=i===0?o:[""],m=EU(y),S=0,b=0,C=0;S<n;++S)for(var x=0,$=$l(e,h+1,h=K2(b=s[S])),T=e;x<m;++x)(T=Y2(b>0?y[x]+" "+$:jd($,/&\f/g,y[x])))&&(c[C++]=T);return zb(e,t,r,i===0?G2:u,c,f,d,g)}function kU(e,t,r,n){return zb(e,t,r,q2,jb(CU()),$l(e,2,-2),0,n)}function dT(e,t,r,n,i){return zb(e,t,r,X2,$l(e,0,n),$l(e,n+1,-1),n,i)}function Uy(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function MU(e,t,r,n){switch(e.type){case wU:if(e.children.length)break;case bU:case X2:return e.return=e.return||e.value;case q2:return"";case SU:return e.return=e.value+"{"+Uy(e.children,n)+"}";case G2:if(!fo(e.value=e.props.join(",")))return""}return fo(r=Uy(e.children,n))?e.return=e.value+"{"+r+"}":""}var pT="data-ant-cssinjs-cache-path",J2="_FILE_STYLE__",ls,Z2=!0;function DU(){if(!ls&&(ls={},On())){var e=document.createElement("div");e.className=pT,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),s=Le(o,2),u=s[0],c=s[1];ls[u]=c});var r=document.querySelector("style[".concat(pT,"]"));if(r){var n;Z2=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function LU(e){return DU(),!!ls[e]}function FU(e){var t=ls[e],r=null;if(t&&On())if(Z2)r=J2;else{var n=document.querySelector("style[".concat(Gi,'="').concat(ls[e],'"]'));n?r=n.innerHTML:delete ls[e]}return[r,t]}var NU="_skip_check_",eP="_multi_value_";function Vd(e){var t=Uy(PU(e),MU);return t.replace(/\{%%%\:[^;];}/g,";")}function jU(e){return ft(e)==="object"&&e&&(NU in e||eP in e)}function hT(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(s){var u,c=s.trim().split(/\s+/),f=c[0]||"",d=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(d).concat(i).concat(f.slice(d.length)),[f].concat(ot(c.slice(1))).join(" ")});return o.join(",")}var zU=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,s=n.parentSelectors,u=r.hashId,c=r.layer;r.path;var f=r.hashPriority,d=r.transformers,g=d===void 0?[]:d;r.linters;var h="",y={};function m(C){var x=C.getName(u);if(!y[x]){var $=e(C.style,r,{root:!1,parentSelectors:s}),T=Le($,1),_=T[0];y[x]="@keyframes ".concat(C.getName(u)).concat(_)}}function S(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function($){Array.isArray($)?S($,x):$&&x.push($)}),x}var b=S(Array.isArray(t)?t:[t]);return b.forEach(function(C){var x=typeof C=="string"&&!i?{}:C;if(typeof x=="string")h+="".concat(x,`
1047
+ `);else if(x._keyframe)m(x);else{var $=g.reduce(function(T,_){var A;return(_==null||(A=_.visit)===null||A===void 0?void 0:A.call(_,T))||T},x);Object.keys($).forEach(function(T){var _=$[T];if(ft(_)==="object"&&_&&(T!=="animationName"||!_._keyframe)&&!jU(_)){var A=!1,O=T.trim(),I=!1;(i||o)&&u?O.startsWith("@")?A=!0:O==="&"?O=hT("",u,f):O=hT(T,u,f):i&&!u&&(O==="&"||O==="")&&(O="",I=!0);var L=e(_,r,{root:I,injectHash:A,parentSelectors:[].concat(ot(s),[O])}),F=Le(L,2),W=F[0],z=F[1];y=me(me({},y),z),h+="".concat(O).concat(W)}else{let N=function(X,q){var M=X.replace(/[A-Z]/g,function(U){return"-".concat(U.toLowerCase())}),J=q;!yA[X]&&typeof J=="number"&&J!==0&&(J="".concat(J,"px")),X==="animationName"&&q!==null&&q!==void 0&&q._keyframe&&(m(q),J=q.getName(u)),h+="".concat(M,":").concat(J,";")};var B,j=(B=_?.value)!==null&&B!==void 0?B:_;ft(_)==="object"&&_!==null&&_!==void 0&&_[eP]&&Array.isArray(j)?j.forEach(function(X){N(T,X)}):N(T,j)}})}}),i?c&&(h&&(h="@layer ".concat(c.name," {").concat(h,"}")),c.dependencies&&(y["@layer ".concat(c.name)]=c.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(c.name,";")}).join(`
1048
+ `))):h="{".concat(h,"}"),[h,y]};function tP(e,t){return uc("".concat(e.join("%")).concat(t))}function BU(){return null}var rP="style";function Wy(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,s=e.nonce,u=e.clientOnly,c=e.order,f=c===void 0?0:c,d=E.useContext(zp),g=d.autoClear;d.mock;var h=d.defaultCache,y=d.hashPriority,m=d.container,S=d.ssrInline,b=d.transformers,C=d.linters,x=d.cache,$=d.layer,T=r._tokenKey,_=[T];$&&_.push("layer"),_.push.apply(_,ot(n));var A=Vy,O=Nb(rP,_,function(){var z=_.join("|");if(LU(z)){var B=FU(z),j=Le(B,2),N=j[0],X=j[1];if(N)return[N,T,X,{},u,f]}var q=t(),M=zU(q,{hashId:i,hashPriority:y,layer:$?o:void 0,path:n.join("-"),transformers:b,linters:C}),J=Le(M,2),U=J[0],D=J[1],P=Vd(U),G=tP(_,P);return[P,T,G,D,u,f]},function(z,B){var j=Le(z,3),N=j[2];(B||g)&&Vy&&cc(N,{mark:Gi,attachTo:m})},function(z){var B=Le(z,4),j=B[0];B[1];var N=B[2],X=B[3];if(A&&j!==J2){var q={mark:Gi,prepend:$?!1:"queue",attachTo:m,priority:f},M=typeof s=="function"?s():s;M&&(q.csp={nonce:M});var J=[],U=[];Object.keys(X).forEach(function(P){P.startsWith("@layer")?J.push(P):U.push(P)}),J.forEach(function(P){Xo(Vd(X[P]),"_layer-".concat(P),me(me({},q),{},{prepend:!0}))});var D=Xo(j,N,q);D[Ea]=x.instanceId,D.setAttribute(Tl,T),U.forEach(function(P){Xo(Vd(X[P]),"_effect-".concat(P),q)})}}),I=Le(O,3),L=I[0],F=I[1],W=I[2];return function(z){var B;return!S||A||!h?B=E.createElement(BU,null):B=E.createElement("style",fr({},ue(ue({},Tl,F),Gi,W),{dangerouslySetInnerHTML:{__html:L}})),E.createElement(E.Fragment,null,B,z)}}var VU=function(t,r,n){var i=Le(t,6),o=i[0],s=i[1],u=i[2],c=i[3],f=i[4],d=i[5],g=n||{},h=g.plain;if(f)return null;var y=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return y=ap(o,s,u,m,h),c&&Object.keys(c).forEach(function(S){if(!r[S]){r[S]=!0;var b=Vd(c[S]),C=ap(b,s,"_effect-".concat(S),m,h);S.startsWith("@layer")?y=C+y:y+=C}}),[d,u,y]},nP="cssVar",HU=function(t,r){var n=t.key,i=t.prefix,o=t.unitless,s=t.ignore,u=t.token,c=t.scope,f=c===void 0?"":c,d=E.useContext(zp),g=d.cache.instanceId,h=d.container,y=u._tokenKey,m=[].concat(ot(t.path),[n,f,y]),S=Nb(nP,m,function(){var b=r(),C=U2(b,n,{prefix:i,unitless:o,ignore:s,scope:f}),x=Le(C,2),$=x[0],T=x[1],_=tP(m,T);return[$,T,_,n]},function(b){var C=Le(b,3),x=C[2];Vy&&cc(x,{mark:Gi,attachTo:h})},function(b){var C=Le(b,3),x=C[1],$=C[2];if(x){var T=Xo(x,$,{mark:Gi,prepend:"queue",attachTo:h,priority:-999});T[Ea]=g,T.setAttribute(Tl,n)}});return S},UU=function(t,r,n){var i=Le(t,4),o=i[1],s=i[2],u=i[3],c=n||{},f=c.plain;if(!o)return null;var d=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},h=ap(o,u,s,g,f);return[d,s,h]};ue(ue(ue({},rP,VU),W2,yU),nP,UU);var Oi=(function(){function e(t,r){Zr(this,e),ue(this,"name",void 0),ue(this,"style",void 0),ue(this,"_keyframe",!0),this.name=t,this.style=r}return en(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function Gs(e){return e.notSplit=!0,e}Gs(["borderTop","borderBottom"]),Gs(["borderTop"]),Gs(["borderBottom"]),Gs(["borderLeft","borderRight"]),Gs(["borderLeft"]),Gs(["borderRight"]);var Bb=E.createContext({});function WU(e){return ZI(e)||t2(e)||z1(e)||e2()}function go(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function iP(e,t,r,n){if(!t.length)return r;var i=WU(t),o=i[0],s=i.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=ot(e):u=me({},e),n&&r===void 0&&s.length===1?delete u[o][s[0]]:u[o]=iP(u[o],s,r,n),u}function Bi(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!go(e,t.slice(0,-1))?e:iP(e,t,r,n)}function qU(e){return ft(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function gT(e){return Array.isArray(e)?[]:{}}var GU=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ul(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=gT(t[0]);return t.forEach(function(i){function o(s,u){var c=new Set(u),f=go(i,s),d=Array.isArray(f);if(d||qU(f)){if(!c.has(f)){c.add(f);var g=go(n,s);d?n=Bi(n,s,[]):(!g||ft(g)!=="object")&&(n=Bi(n,s,gT(f))),GU(f).forEach(function(h){o([].concat(ot(s),[h]),c)})}}else n=Bi(n,s,f)}o([])}),n}function XU(){}const KU=E.createContext({}),oP=()=>{const e=()=>{};return e.deprecated=XU,e},YU=E.createContext(void 0);var QU={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},JU={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ZU=me(me({},JU),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const aP={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vT={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},ZU),timePickerLocale:Object.assign({},aP)},Ln="${label} is not a valid ${type}",Il={locale:"en",Pagination:QU,DatePicker:vT,TimePicker:aP,Calendar:vT,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Il.Modal);let Hd=[];const mT=()=>Hd.reduce((e,t)=>Object.assign(Object.assign({},e),t),Il.Modal);function eW(e){if(e){const t=Object.assign({},e);return Hd.push(t),mT(),()=>{Hd=Hd.filter(r=>r!==t),mT()}}Object.assign({},Il.Modal)}const Vb=E.createContext(void 0),tW=(e,t)=>{const r=E.useContext(Vb),n=E.useMemo(()=>{var o;const s=Il[e],u=(o=r?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[e,t,r]),i=E.useMemo(()=>{const o=r?.locale;return r?.exist&&!o?Il.locale:o},[r]);return[n,i]},rW="internalMark",nW=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;E.useEffect(()=>eW(t?.Modal),[t]);const i=E.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return E.createElement(Vb.Provider,{value:i},r)},Ar=Math.round;function u0(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const yT=(e,t,r)=>r===0?e:e/100;function bu(e,t){const r=t||255;return e>r?r:e<0?0:e}class cl{constructor(t){ue(this,"isValid",!0),ue(this,"r",0),ue(this,"g",0),ue(this,"b",0),ue(this,"a",1),ue(this,"_h",void 0),ue(this,"_s",void 0),ue(this,"_l",void 0),ue(this,"_v",void 0),ue(this,"_max",void 0),ue(this,"_min",void 0),ue(this,"_brightness",void 0);function r(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(s){return i.startsWith(s)};var n=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof cl)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=bu(t.r),this.g=bu(t.g),this.b=bu(t.b),this.a=typeof t.a=="number"?bu(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(o){const s=o/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ar(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,o=u=>(n[u]-this[u])*i+this[u],s={r:Ar(o("r")),g:Ar(o("g")),b:Ar(o("b")),a:Ar(o("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),i=o=>Ar((this[o]*this.a+r[o]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Ar(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Ar(this.getSaturation()*100),n=Ar(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const i=this.clone();return i[t]=bu(r,n),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(i,o){return parseInt(r[i]+r[o||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const h=Ar(n*255);this.r=h,this.g=h,this.b=h}let o=0,s=0,u=0;const c=t/60,f=(1-Math.abs(2*n-1))*r,d=f*(1-Math.abs(c%2-1));c>=0&&c<1?(o=f,s=d):c>=1&&c<2?(o=d,s=f):c>=2&&c<3?(s=f,u=d):c>=3&&c<4?(s=d,u=f):c>=4&&c<5?(o=d,u=f):c>=5&&c<6&&(o=f,u=d);const g=n-f/2;this.r=Ar((o+g)*255),this.g=Ar((s+g)*255),this.b=Ar((u+g)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const o=Ar(n*255);if(this.r=o,this.g=o,this.b=o,r<=0)return;const s=t/60,u=Math.floor(s),c=s-u,f=Ar(n*(1-r)*255),d=Ar(n*(1-r*c)*255),g=Ar(n*(1-r*(1-c))*255);switch(u){case 0:this.g=g,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=g;break;case 3:this.r=f,this.g=d;break;case 4:this.r=g,this.g=f;break;case 5:default:this.g=f,this.b=d;break}}fromHsvString(t){const r=u0(t,yT);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=u0(t,yT);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=u0(t,(n,i)=>i.includes("%")?Ar(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var od=2,bT=.16,iW=.05,oW=.05,aW=.15,sP=5,lP=4,sW=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ST(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-od*t:Math.round(e.h)+od*t:n=r?Math.round(e.h)+od*t:Math.round(e.h)-od*t,n<0?n+=360:n>=360&&(n-=360),n}function wT(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-bT*t:t===lP?n=e.s+bT:n=e.s+iW*t,n>1&&(n=1),r&&t===sP&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function xT(e,t,r){var n;return r?n=e.v+oW*t:n=e.v-aW*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function pc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new cl(e),i=n.toHsv(),o=sP;o>0;o-=1){var s=new cl({h:ST(i,o,!0),s:wT(i,o,!0),v:xT(i,o,!0)});r.push(s)}r.push(n);for(var u=1;u<=lP;u+=1){var c=new cl({h:ST(i,u),s:wT(i,u),v:xT(i,u)});r.push(c)}return t.theme==="dark"?sW.map(function(f){var d=f.index,g=f.amount;return new cl(t.backgroundColor||"#141414").mix(r[d],g).toHexString()}):r.map(function(f){return f.toHexString()})}var c0={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},qy=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];qy.primary=qy[5];var Gy=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Gy.primary=Gy[5];var Xy=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Xy.primary=Xy[5];var sp=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];sp.primary=sp[5];var Ky=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ky.primary=Ky[5];var Yy=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Yy.primary=Yy[5];var Qy=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Qy.primary=Qy[5];var Jy=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Jy.primary=Jy[5];var lp=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];lp.primary=lp[5];var Zy=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Zy.primary=Zy[5];var e1=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];e1.primary=e1[5];var t1=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];t1.primary=t1[5];var r1=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];r1.primary=r1[5];var f0={red:qy,volcano:Gy,orange:Xy,gold:sp,yellow:Ky,lime:Yy,green:Qy,cyan:Jy,blue:lp,geekblue:Zy,purple:e1,magenta:t1,grey:r1};const uP={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},hc=Object.assign(Object.assign({},uP),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1049
1049
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
1050
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Nr(e,t){sW(e)&&(e="100%");var r=lW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ad(e){return Math.min(1,Math.max(0,e))}function sW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function lW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cP(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function sd(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ns(e){return e.length===1?"0"+e:String(e)}function uW(e,t,r){return{r:Nr(e,255)*255,g:Nr(t,255)*255,b:Nr(r,255)*255}}function ET(e,t,r){e=Nr(e,255),t=Nr(t,255),r=Nr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,s=0,u=(n+i)/2;if(n===i)s=0,o=0;else{var c=n-i;switch(s=u>.5?c/(2-n-i):c/(n+i),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s,l:u}}function d0(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function cW(e,t,r){var n,i,o;if(e=Nr(e,360),t=Nr(t,100),r=Nr(r,100),t===0)i=r,o=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=d0(u,s,e+1/3),i=d0(u,s,e),o=d0(u,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function CT(e,t,r){e=Nr(e,255),t=Nr(t,255),r=Nr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,s=n,u=n-i,c=n===0?0:u/n;if(n===i)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:c,v:s}}function fW(e,t,r){e=Nr(e,360)*6,t=Nr(t,100),r=Nr(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),u=r*(1-(1-i)*t),c=n%6,f=[r,s,o,o,u,r][c],d=[u,r,r,s,o,o][c],g=[o,o,u,r,r,s][c];return{r:f*255,g:d*255,b:g*255}}function _T(e,t,r,n){var i=[ns(Math.round(e).toString(16)),ns(Math.round(t).toString(16)),ns(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function dW(e,t,r,n,i){var o=[ns(Math.round(e).toString(16)),ns(Math.round(t).toString(16)),ns(Math.round(r).toString(16)),ns(pW(n))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function pW(e){return Math.round(parseFloat(e)*255).toString(16)}function RT(e){return zn(e)/255}function zn(e){return parseInt(e,16)}function hW(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var n1={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function gW(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,s=!1,u=!1;return typeof e=="string"&&(e=yW(e)),typeof e=="object"&&(Ho(e.r)&&Ho(e.g)&&Ho(e.b)?(t=uW(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ho(e.h)&&Ho(e.s)&&Ho(e.v)?(n=sd(e.s),i=sd(e.v),t=fW(e.h,n,i),s=!0,u="hsv"):Ho(e.h)&&Ho(e.s)&&Ho(e.l)&&(n=sd(e.s),o=sd(e.l),t=cW(e.h,n,o),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=cP(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var vW="[-\\+]?\\d+%?",mW="[-\\+]?\\d*\\.\\d+%?",_a="(?:".concat(mW,")|(?:").concat(vW,")"),p0="[\\s|\\(]+(".concat(_a,")[,|\\s]+(").concat(_a,")[,|\\s]+(").concat(_a,")\\s*\\)?"),h0="[\\s|\\(]+(".concat(_a,")[,|\\s]+(").concat(_a,")[,|\\s]+(").concat(_a,")[,|\\s]+(").concat(_a,")\\s*\\)?"),zi={CSS_UNIT:new RegExp(_a),rgb:new RegExp("rgb"+p0),rgba:new RegExp("rgba"+h0),hsl:new RegExp("hsl"+p0),hsla:new RegExp("hsla"+h0),hsv:new RegExp("hsv"+p0),hsva:new RegExp("hsva"+h0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function yW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(n1[e])e=n1[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=zi.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=zi.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=zi.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=zi.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=zi.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=zi.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=zi.hex8.exec(e),r?{r:zn(r[1]),g:zn(r[2]),b:zn(r[3]),a:RT(r[4]),format:t?"name":"hex8"}:(r=zi.hex6.exec(e),r?{r:zn(r[1]),g:zn(r[2]),b:zn(r[3]),format:t?"name":"hex"}:(r=zi.hex4.exec(e),r?{r:zn(r[1]+r[1]),g:zn(r[2]+r[2]),b:zn(r[3]+r[3]),a:RT(r[4]+r[4]),format:t?"name":"hex8"}:(r=zi.hex3.exec(e),r?{r:zn(r[1]+r[1]),g:zn(r[2]+r[2]),b:zn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ho(e){return!!zi.CSS_UNIT.exec(String(e))}var Hn=(function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=hW(t)),this.originalInput=t;var i=gW(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,o=t.r/255,s=t.g/255,u=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cP(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=CT(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=CT(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ET(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ET(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),_T(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),dW(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Nr(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Nr(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+_T(this.r,this.g,this.b,!1),r=0,n=Object.entries(n1);r<n.length;r++){var i=n[r],o=i[0],s=i[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,o=!r&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ad(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ad(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ad(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ad(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100,s={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,o=r.v,s=[],u=1/t;t--;)s.push(new e({h:n,s:i,v:o})),o=(o+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,s=1;s<t;s++)i.push(new e({h:(n+s*o)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function bW(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:s,colorInfo:u,colorPrimary:c,colorBgBase:f,colorTextBase:d}=e,g=r(c),h=r(i),y=r(o),m=r(s),S=r(u),b=n(f,d),C=e.colorLink||e.colorInfo,x=r(C);return Object.assign(Object.assign({},b),{colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new Hn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const SW=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function wW(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},SW(n))}const xW=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function EW(e){return(e+8)/e}function CW(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,o=e*Math.pow(Math.E,i/5),s=n>1?Math.floor(o):Math.ceil(o);return Math.floor(s/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:EW(r)}))}const _W=e=>{const t=CW(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),i=r[1],o=r[0],s=r[2],u=n[1],c=n[0],f=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:u,lineHeightLG:f,lineHeightSM:c,fontHeight:Math.round(u*i),fontHeightLG:Math.round(f*s),fontHeightSM:Math.round(c*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function RW(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Uo=(e,t)=>new Hn(e).setAlpha(t).toRgbString(),Su=(e,t)=>new Hn(e).darken(t).toHexString(),OW=e=>{const t=pc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},TW=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Uo(n,.88),colorTextSecondary:Uo(n,.65),colorTextTertiary:Uo(n,.45),colorTextQuaternary:Uo(n,.25),colorFill:Uo(n,.15),colorFillSecondary:Uo(n,.06),colorFillTertiary:Uo(n,.04),colorFillQuaternary:Uo(n,.02),colorBgLayout:Su(r,4),colorBgContainer:Su(r,0),colorBgElevated:Su(r,0),colorBgSpotlight:Uo(n,.85),colorBgBlur:"transparent",colorBorder:Su(r,15),colorBorderSecondary:Su(r,6)}};function $W(e){c0.pink=c0.magenta,f0.pink=f0.magenta;const t=Object.keys(uP).map(r=>{const n=e[r]===c0[r]?f0[r]:pc(e[r]);return new Array(10).fill(1).reduce((i,o,s)=>(i[`${r}-${s+1}`]=n[s],i[`${r}${s+1}`]=n[s],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),bW(e,{generateColorPalettes:OW,generateNeutralColorPalettes:TW})),_W(e.fontSize)),RW(e)),xW(e)),wW(e))}const fP=By($W),i1={token:hc,override:{override:hc},hashed:!0},dP=oe.createContext(i1),o1="ant",pP="anticon",AW=["outlined","borderless","filled"],IW=(e,t)=>t||(e?`${o1}-${e}`:o1),Ei=E.createContext({getPrefixCls:IW,iconPrefixCls:pP}),{Consumer:Rte}=Ei,PW=`-ant-${Date.now()}-${Math.random()}`;function kW(e,t){const r={},n=(s,u)=>{let c=s.clone();return c=u?.(c)||c,c.toRgbString()},i=(s,u)=>{const c=new Hn(s),f=pc(c.toRgbString());r[`${u}-color`]=n(c),r[`${u}-color-disabled`]=f[1],r[`${u}-color-hover`]=f[4],r[`${u}-color-active`]=f[6],r[`${u}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${u}-color-deprecated-bg`]=f[0],r[`${u}-color-deprecated-border`]=f[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new Hn(t.primaryColor),u=pc(s.toRgbString());u.forEach((f,d)=>{r[`primary-${d+1}`]=f}),r["primary-color-deprecated-l-35"]=n(s,f=>f.lighten(35)),r["primary-color-deprecated-l-20"]=n(s,f=>f.lighten(20)),r["primary-color-deprecated-t-20"]=n(s,f=>f.tint(20)),r["primary-color-deprecated-t-50"]=n(s,f=>f.tint(50)),r["primary-color-deprecated-f-12"]=n(s,f=>f.setAlpha(f.getAlpha()*.12));const c=new Hn(u[0]);r["primary-color-active-deprecated-f-30"]=n(c,f=>f.setAlpha(f.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,f=>f.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
1050
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Nr(e,t){lW(e)&&(e="100%");var r=uW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ad(e){return Math.min(1,Math.max(0,e))}function lW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function uW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cP(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function sd(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ns(e){return e.length===1?"0"+e:String(e)}function cW(e,t,r){return{r:Nr(e,255)*255,g:Nr(t,255)*255,b:Nr(r,255)*255}}function ET(e,t,r){e=Nr(e,255),t=Nr(t,255),r=Nr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,s=0,u=(n+i)/2;if(n===i)s=0,o=0;else{var c=n-i;switch(s=u>.5?c/(2-n-i):c/(n+i),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s,l:u}}function d0(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function fW(e,t,r){var n,i,o;if(e=Nr(e,360),t=Nr(t,100),r=Nr(r,100),t===0)i=r,o=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=d0(u,s,e+1/3),i=d0(u,s,e),o=d0(u,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function CT(e,t,r){e=Nr(e,255),t=Nr(t,255),r=Nr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,s=n,u=n-i,c=n===0?0:u/n;if(n===i)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:c,v:s}}function dW(e,t,r){e=Nr(e,360)*6,t=Nr(t,100),r=Nr(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),u=r*(1-(1-i)*t),c=n%6,f=[r,s,o,o,u,r][c],d=[u,r,r,s,o,o][c],g=[o,o,u,r,r,s][c];return{r:f*255,g:d*255,b:g*255}}function _T(e,t,r,n){var i=[ns(Math.round(e).toString(16)),ns(Math.round(t).toString(16)),ns(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function pW(e,t,r,n,i){var o=[ns(Math.round(e).toString(16)),ns(Math.round(t).toString(16)),ns(Math.round(r).toString(16)),ns(hW(n))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function hW(e){return Math.round(parseFloat(e)*255).toString(16)}function RT(e){return zn(e)/255}function zn(e){return parseInt(e,16)}function gW(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var n1={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function vW(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,s=!1,u=!1;return typeof e=="string"&&(e=bW(e)),typeof e=="object"&&(Ho(e.r)&&Ho(e.g)&&Ho(e.b)?(t=cW(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ho(e.h)&&Ho(e.s)&&Ho(e.v)?(n=sd(e.s),i=sd(e.v),t=dW(e.h,n,i),s=!0,u="hsv"):Ho(e.h)&&Ho(e.s)&&Ho(e.l)&&(n=sd(e.s),o=sd(e.l),t=fW(e.h,n,o),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=cP(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var mW="[-\\+]?\\d+%?",yW="[-\\+]?\\d*\\.\\d+%?",_a="(?:".concat(yW,")|(?:").concat(mW,")"),p0="[\\s|\\(]+(".concat(_a,")[,|\\s]+(").concat(_a,")[,|\\s]+(").concat(_a,")\\s*\\)?"),h0="[\\s|\\(]+(".concat(_a,")[,|\\s]+(").concat(_a,")[,|\\s]+(").concat(_a,")[,|\\s]+(").concat(_a,")\\s*\\)?"),zi={CSS_UNIT:new RegExp(_a),rgb:new RegExp("rgb"+p0),rgba:new RegExp("rgba"+h0),hsl:new RegExp("hsl"+p0),hsla:new RegExp("hsla"+h0),hsv:new RegExp("hsv"+p0),hsva:new RegExp("hsva"+h0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function bW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(n1[e])e=n1[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=zi.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=zi.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=zi.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=zi.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=zi.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=zi.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=zi.hex8.exec(e),r?{r:zn(r[1]),g:zn(r[2]),b:zn(r[3]),a:RT(r[4]),format:t?"name":"hex8"}:(r=zi.hex6.exec(e),r?{r:zn(r[1]),g:zn(r[2]),b:zn(r[3]),format:t?"name":"hex"}:(r=zi.hex4.exec(e),r?{r:zn(r[1]+r[1]),g:zn(r[2]+r[2]),b:zn(r[3]+r[3]),a:RT(r[4]+r[4]),format:t?"name":"hex8"}:(r=zi.hex3.exec(e),r?{r:zn(r[1]+r[1]),g:zn(r[2]+r[2]),b:zn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ho(e){return!!zi.CSS_UNIT.exec(String(e))}var Hn=(function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=gW(t)),this.originalInput=t;var i=vW(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,o=t.r/255,s=t.g/255,u=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cP(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=CT(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=CT(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ET(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ET(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),_T(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),pW(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Nr(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Nr(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+_T(this.r,this.g,this.b,!1),r=0,n=Object.entries(n1);r<n.length;r++){var i=n[r],o=i[0],s=i[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,o=!r&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ad(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ad(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ad(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ad(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100,s={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,o=r.v,s=[],u=1/t;t--;)s.push(new e({h:n,s:i,v:o})),o=(o+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,s=1;s<t;s++)i.push(new e({h:(n+s*o)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function SW(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:s,colorInfo:u,colorPrimary:c,colorBgBase:f,colorTextBase:d}=e,g=r(c),h=r(i),y=r(o),m=r(s),S=r(u),b=n(f,d),C=e.colorLink||e.colorInfo,x=r(C);return Object.assign(Object.assign({},b),{colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new Hn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const wW=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function xW(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},wW(n))}const EW=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function CW(e){return(e+8)/e}function _W(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,o=e*Math.pow(Math.E,i/5),s=n>1?Math.floor(o):Math.ceil(o);return Math.floor(s/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:CW(r)}))}const RW=e=>{const t=_W(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),i=r[1],o=r[0],s=r[2],u=n[1],c=n[0],f=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:u,lineHeightLG:f,lineHeightSM:c,fontHeight:Math.round(u*i),fontHeightLG:Math.round(f*s),fontHeightSM:Math.round(c*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function OW(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Uo=(e,t)=>new Hn(e).setAlpha(t).toRgbString(),Su=(e,t)=>new Hn(e).darken(t).toHexString(),TW=e=>{const t=pc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},$W=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Uo(n,.88),colorTextSecondary:Uo(n,.65),colorTextTertiary:Uo(n,.45),colorTextQuaternary:Uo(n,.25),colorFill:Uo(n,.15),colorFillSecondary:Uo(n,.06),colorFillTertiary:Uo(n,.04),colorFillQuaternary:Uo(n,.02),colorBgLayout:Su(r,4),colorBgContainer:Su(r,0),colorBgElevated:Su(r,0),colorBgSpotlight:Uo(n,.85),colorBgBlur:"transparent",colorBorder:Su(r,15),colorBorderSecondary:Su(r,6)}};function AW(e){c0.pink=c0.magenta,f0.pink=f0.magenta;const t=Object.keys(uP).map(r=>{const n=e[r]===c0[r]?f0[r]:pc(e[r]);return new Array(10).fill(1).reduce((i,o,s)=>(i[`${r}-${s+1}`]=n[s],i[`${r}${s+1}`]=n[s],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),SW(e,{generateColorPalettes:TW,generateNeutralColorPalettes:$W})),RW(e.fontSize)),OW(e)),EW(e)),xW(e))}const fP=By(AW),i1={token:hc,override:{override:hc},hashed:!0},dP=oe.createContext(i1),o1="ant",pP="anticon",IW=["outlined","borderless","filled"],PW=(e,t)=>t||(e?`${o1}-${e}`:o1),Ei=E.createContext({getPrefixCls:PW,iconPrefixCls:pP}),{Consumer:Ote}=Ei,kW=`-ant-${Date.now()}-${Math.random()}`;function MW(e,t){const r={},n=(s,u)=>{let c=s.clone();return c=u?.(c)||c,c.toRgbString()},i=(s,u)=>{const c=new Hn(s),f=pc(c.toRgbString());r[`${u}-color`]=n(c),r[`${u}-color-disabled`]=f[1],r[`${u}-color-hover`]=f[4],r[`${u}-color-active`]=f[6],r[`${u}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${u}-color-deprecated-bg`]=f[0],r[`${u}-color-deprecated-border`]=f[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new Hn(t.primaryColor),u=pc(s.toRgbString());u.forEach((f,d)=>{r[`primary-${d+1}`]=f}),r["primary-color-deprecated-l-35"]=n(s,f=>f.lighten(35)),r["primary-color-deprecated-l-20"]=n(s,f=>f.lighten(20)),r["primary-color-deprecated-t-20"]=n(s,f=>f.tint(20)),r["primary-color-deprecated-t-50"]=n(s,f=>f.tint(50)),r["primary-color-deprecated-f-12"]=n(s,f=>f.setAlpha(f.getAlpha()*.12));const c=new Hn(u[0]);r["primary-color-active-deprecated-f-30"]=n(c,f=>f.setAlpha(f.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,f=>f.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
1051
1051
  :root {
1052
1052
  ${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(`
1053
1053
  `)}
1054
1054
  }
1055
- `.trim()}function MW(e,t){const r=kW(e,t);On()&&Xo(r,`${PW}-dynamic-theme`)}const up=E.createContext(!1),DW=e=>{let{children:t,disabled:r}=e;const n=E.useContext(up);return E.createElement(up.Provider,{value:r??n},t)},Pl=E.createContext(void 0),LW=e=>{let{children:t,size:r}=e;const n=E.useContext(Pl);return E.createElement(Pl.Provider,{value:r||n},t)};function FW(){const e=E.useContext(up),t=E.useContext(Pl);return{componentDisabled:e,componentSize:t}}var hP=en(function e(){Zr(this,e)}),gP="CALC_UNIT",NW=new RegExp(gP,"g");function g0(e){return typeof e=="number"?"".concat(e).concat(gP):e}var jW=(function(e){ys(r,e);var t=bs(r);function r(n,i){var o;Zr(this,r),o=t.call(this),ue(vt(o),"result",""),ue(vt(o),"unitlessCssVar",void 0),ue(vt(o),"lowPriority",void 0);var s=ft(n);return o.unitlessCssVar=i,n instanceof r?o.result="(".concat(n.result,")"):s==="number"?o.result=g0(n):s==="string"&&(o.result=n),o}return en(r,[{key:"add",value:function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(g0(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(g0(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,s=i||{},u=s.unit,c=!0;return typeof u=="boolean"?c=u:Array.from(this.unitlessCssVar).some(function(f){return o.result.includes(f)})&&(c=!1),this.result=this.result.replace(NW,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(hP),zW=(function(e){ys(r,e);var t=bs(r);function r(n){var i;return Zr(this,r),i=t.call(this),ue(vt(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return en(r,[{key:"add",value:function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),r})(hP),BW=function(t,r){var n=t==="css"?jW:zW;return function(i){return new n(i,r)}},OT=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Vn(e){var t=E.useRef();t.current=e;var r=E.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function gc(e){var t=E.useRef(!1),r=E.useState(e),n=Le(r,2),i=n[0],o=n[1];E.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(u,c){c&&t.current||o(u)}return[i,s]}function v0(e){return e!==void 0}function vc(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,s=r.postState,u=gc(function(){return v0(i)?i:v0(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=Le(u,2),f=c[0],d=c[1],g=i!==void 0?i:f,h=s?s(g):g,y=Vn(o),m=gc([g]),S=Le(m,2),b=S[0],C=S[1];uT(function(){var $=b[0];f!==$&&y(f,$)},[b]),uT(function(){v0(i)||d(i)},[i]);var x=Vn(function($,T){d($,T),C([g],T)});return[h,x]}function TT(e,t,r,n){var i=me({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(u){var c=Le(u,2),f=c[0],d=c[1];if(i!=null&&i[f]||i!=null&&i[d]){var g;(g=i[d])!==null&&g!==void 0||(i[d]=i?.[f])}})}var s=me(me({},r),i);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var vP=typeof CSSINJS_STATISTIC<"u",a1=!0;function Ss(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!vP)return Object.assign.apply(Object,[{}].concat(t));a1=!1;var n={};return t.forEach(function(i){if(ft(i)==="object"){var o=Object.keys(i);o.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return i[s]}})})}}),a1=!0,n}var $T={};function VW(){}var HW=function(t){var r,n=t,i=VW;return vP&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(s,u){if(a1){var c;(c=r)===null||c===void 0||c.add(u)}return s[u]}}),i=function(s,u){var c;$T[s]={global:Array.from(r),component:me(me({},(c=$T[s])===null||c===void 0?void 0:c.component),u)}}),{token:n,keys:r,flush:i}};function AT(e,t,r){if(typeof r=="function"){var n;return r(Ss(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function UW(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(o){return Ft(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(o){return Ft(o)}).join(","),")")}}}var WW=1e3*60*10,qW=(function(){function e(){Zr(this,e),ue(this,"map",new Map),ue(this,"objectIDMap",new WeakMap),ue(this,"nextID",0),ue(this,"lastAccessBeat",new Map),ue(this,"accessBeat",0)}return en(e,[{key:"set",value:function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(r){var n=this,i=r.map(function(o){return o&&ft(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(ft(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,o){n-i>WW&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),IT=new qW;function GW(e,t){return oe.useMemo(function(){var r=IT.get(t);if(r)return r;var n=e();return IT.set(t,n),n},t)}var XW=function(){return{}};function KW(e){var t=e.useCSP,r=t===void 0?XW:t,n=e.useToken,i=e.usePrefix,o=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function c(h,y,m,S){var b=Array.isArray(h)?h[0]:h;function C(I){return"".concat(String(b)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var x=S?.unitless||{},$=typeof u=="function"?u(h):{},T=me(me({},$),{},ue({},C("zIndexPopup"),!0));Object.keys(x).forEach(function(I){T[C(I)]=x[I]});var _=me(me({},S),{},{unitless:T,prefixToken:C}),A=d(h,y,m,_),O=f(b,m,_);return function(I){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,F=A(I,L),W=Le(F,2),z=W[1],B=O(L),j=Le(B,2),N=j[0],X=j[1];return[N,z,X]}}function f(h,y,m){var S=m.unitless,b=m.injectStyle,C=b===void 0?!0:b,x=m.prefixToken,$=m.ignore,T=function(O){var I=O.rootCls,L=O.cssVar,F=L===void 0?{}:L,W=n(),z=W.realToken;return VU({path:[h],prefix:F.prefix,key:F.key,unitless:S,ignore:$,token:z,scope:I},function(){var B=AT(h,z,y),j=TT(h,z,B,{deprecatedTokens:m?.deprecatedTokens});return Object.keys(B).forEach(function(N){j[x(N)]=j[N],delete j[N]}),j}),null},_=function(O){var I=n(),L=I.cssVar;return[function(F){return C&&L?oe.createElement(oe.Fragment,null,oe.createElement(T,{rootCls:O,cssVar:L,component:h}),F):F},L?.key]};return _}function d(h,y,m){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(h)?h:[h,h],C=Le(b,1),x=C[0],$=b.join("-"),T=e.layer||{name:"antd"};return function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,O=n(),I=O.theme,L=O.realToken,F=O.hashId,W=O.token,z=O.cssVar,B=i(),j=B.rootPrefixCls,N=B.iconPrefixCls,X=r(),q=z?"css":"js",M=GW(function(){var Z=new Set;return z&&Object.keys(S.unitless||{}).forEach(function(te){Z.add(Nd(te,z.prefix)),Z.add(Nd(te,OT(x,z.prefix)))}),BW(q,Z)},[q,x,z?.prefix]),J=UW(q),U=J.max,D=J.min,P={theme:I,token:W,hashId:F,nonce:function(){return X.nonce},clientOnly:S.clientOnly,layer:T,order:S.order||-999};typeof o=="function"&&Wy(me(me({},P),{},{clientOnly:!1,path:["Shared",j]}),function(){return o(W,{prefix:{rootPrefixCls:j,iconPrefixCls:N},csp:X})});var G=Wy(me(me({},P),{},{path:[$,_,N]}),function(){if(S.injectStyle===!1)return[];var Z=HW(W),te=Z.token,K=Z.flush,ye=AT(x,L,m),ae=".".concat(_),be=TT(x,L,ye,{deprecatedTokens:S.deprecatedTokens});z&&ye&&ft(ye)==="object"&&Object.keys(ye).forEach(function(Oe){ye[Oe]="var(".concat(Nd(Oe,OT(x,z.prefix)),")")});var he=Ss(te,{componentCls:ae,prefixCls:_,iconCls:".".concat(N),antCls:".".concat(j),calc:M,max:U,min:D},z?ye:be),xe=y(he,{hashId:F,prefixCls:_,rootPrefixCls:j,iconPrefixCls:N});K(x,be);var Se=typeof s=="function"?s(he,_,A,S.resetFont):null;return[S.resetStyle===!1?null:Se,xe]});return[G,F]}}function g(h,y,m){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(h,y,m,me({resetStyle:!1,order:-998},S)),C=function($){var T=$.prefixCls,_=$.rootCls,A=_===void 0?T:_;return b(T,A),null};return C}return{genStyleHooks:c,genSubStyleComponent:g,genComponentStyleHook:d}}const cp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],YW="5.20.0";function m0(e){return e>=0&&e<=255}function ld(e,t){const{r,g:n,b:i,a:o}=new Hn(e).toRgb();if(o<1)return e;const{r:s,g:u,b:c}=new Hn(t).toRgb();for(let f=.01;f<=1;f+=.01){const d=Math.round((r-s*(1-f))/f),g=Math.round((n-u*(1-f))/f),h=Math.round((i-c*(1-f))/f);if(m0(d)&&m0(g)&&m0(h))return new Hn({r:d,g,b:h,a:Math.round(f*100)/100}).toRgbString()}return new Hn({r,g:n,b:i,a:1}).toRgbString()}var QW=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function mP(e){const{override:t}=e,r=QW(e,["override"]),n=Object.assign({},t);Object.keys(hc).forEach(h=>{delete n[h]});const i=Object.assign(Object.assign({},r),n),o=480,s=576,u=768,c=992,f=1200,d=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:ld(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:ld(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:ld(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:ld(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
1055
+ `.trim()}function DW(e,t){const r=MW(e,t);On()&&Xo(r,`${kW}-dynamic-theme`)}const up=E.createContext(!1),LW=e=>{let{children:t,disabled:r}=e;const n=E.useContext(up);return E.createElement(up.Provider,{value:r??n},t)},Pl=E.createContext(void 0),FW=e=>{let{children:t,size:r}=e;const n=E.useContext(Pl);return E.createElement(Pl.Provider,{value:r||n},t)};function NW(){const e=E.useContext(up),t=E.useContext(Pl);return{componentDisabled:e,componentSize:t}}var hP=en(function e(){Zr(this,e)}),gP="CALC_UNIT",jW=new RegExp(gP,"g");function g0(e){return typeof e=="number"?"".concat(e).concat(gP):e}var zW=(function(e){ys(r,e);var t=bs(r);function r(n,i){var o;Zr(this,r),o=t.call(this),ue(vt(o),"result",""),ue(vt(o),"unitlessCssVar",void 0),ue(vt(o),"lowPriority",void 0);var s=ft(n);return o.unitlessCssVar=i,n instanceof r?o.result="(".concat(n.result,")"):s==="number"?o.result=g0(n):s==="string"&&(o.result=n),o}return en(r,[{key:"add",value:function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(g0(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(g0(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,s=i||{},u=s.unit,c=!0;return typeof u=="boolean"?c=u:Array.from(this.unitlessCssVar).some(function(f){return o.result.includes(f)})&&(c=!1),this.result=this.result.replace(jW,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(hP),BW=(function(e){ys(r,e);var t=bs(r);function r(n){var i;return Zr(this,r),i=t.call(this),ue(vt(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return en(r,[{key:"add",value:function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),r})(hP),VW=function(t,r){var n=t==="css"?zW:BW;return function(i){return new n(i,r)}},OT=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Vn(e){var t=E.useRef();t.current=e;var r=E.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function gc(e){var t=E.useRef(!1),r=E.useState(e),n=Le(r,2),i=n[0],o=n[1];E.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(u,c){c&&t.current||o(u)}return[i,s]}function v0(e){return e!==void 0}function vc(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,s=r.postState,u=gc(function(){return v0(i)?i:v0(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=Le(u,2),f=c[0],d=c[1],g=i!==void 0?i:f,h=s?s(g):g,y=Vn(o),m=gc([g]),S=Le(m,2),b=S[0],C=S[1];uT(function(){var $=b[0];f!==$&&y(f,$)},[b]),uT(function(){v0(i)||d(i)},[i]);var x=Vn(function($,T){d($,T),C([g],T)});return[h,x]}function TT(e,t,r,n){var i=me({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(u){var c=Le(u,2),f=c[0],d=c[1];if(i!=null&&i[f]||i!=null&&i[d]){var g;(g=i[d])!==null&&g!==void 0||(i[d]=i?.[f])}})}var s=me(me({},r),i);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var vP=typeof CSSINJS_STATISTIC<"u",a1=!0;function Ss(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!vP)return Object.assign.apply(Object,[{}].concat(t));a1=!1;var n={};return t.forEach(function(i){if(ft(i)==="object"){var o=Object.keys(i);o.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return i[s]}})})}}),a1=!0,n}var $T={};function HW(){}var UW=function(t){var r,n=t,i=HW;return vP&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(s,u){if(a1){var c;(c=r)===null||c===void 0||c.add(u)}return s[u]}}),i=function(s,u){var c;$T[s]={global:Array.from(r),component:me(me({},(c=$T[s])===null||c===void 0?void 0:c.component),u)}}),{token:n,keys:r,flush:i}};function AT(e,t,r){if(typeof r=="function"){var n;return r(Ss(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function WW(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(o){return Ft(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(o){return Ft(o)}).join(","),")")}}}var qW=1e3*60*10,GW=(function(){function e(){Zr(this,e),ue(this,"map",new Map),ue(this,"objectIDMap",new WeakMap),ue(this,"nextID",0),ue(this,"lastAccessBeat",new Map),ue(this,"accessBeat",0)}return en(e,[{key:"set",value:function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(r){var n=this,i=r.map(function(o){return o&&ft(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(ft(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,o){n-i>qW&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),IT=new GW;function XW(e,t){return oe.useMemo(function(){var r=IT.get(t);if(r)return r;var n=e();return IT.set(t,n),n},t)}var KW=function(){return{}};function YW(e){var t=e.useCSP,r=t===void 0?KW:t,n=e.useToken,i=e.usePrefix,o=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function c(h,y,m,S){var b=Array.isArray(h)?h[0]:h;function C(I){return"".concat(String(b)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var x=S?.unitless||{},$=typeof u=="function"?u(h):{},T=me(me({},$),{},ue({},C("zIndexPopup"),!0));Object.keys(x).forEach(function(I){T[C(I)]=x[I]});var _=me(me({},S),{},{unitless:T,prefixToken:C}),A=d(h,y,m,_),O=f(b,m,_);return function(I){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,F=A(I,L),W=Le(F,2),z=W[1],B=O(L),j=Le(B,2),N=j[0],X=j[1];return[N,z,X]}}function f(h,y,m){var S=m.unitless,b=m.injectStyle,C=b===void 0?!0:b,x=m.prefixToken,$=m.ignore,T=function(O){var I=O.rootCls,L=O.cssVar,F=L===void 0?{}:L,W=n(),z=W.realToken;return HU({path:[h],prefix:F.prefix,key:F.key,unitless:S,ignore:$,token:z,scope:I},function(){var B=AT(h,z,y),j=TT(h,z,B,{deprecatedTokens:m?.deprecatedTokens});return Object.keys(B).forEach(function(N){j[x(N)]=j[N],delete j[N]}),j}),null},_=function(O){var I=n(),L=I.cssVar;return[function(F){return C&&L?oe.createElement(oe.Fragment,null,oe.createElement(T,{rootCls:O,cssVar:L,component:h}),F):F},L?.key]};return _}function d(h,y,m){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(h)?h:[h,h],C=Le(b,1),x=C[0],$=b.join("-"),T=e.layer||{name:"antd"};return function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,O=n(),I=O.theme,L=O.realToken,F=O.hashId,W=O.token,z=O.cssVar,B=i(),j=B.rootPrefixCls,N=B.iconPrefixCls,X=r(),q=z?"css":"js",M=XW(function(){var Z=new Set;return z&&Object.keys(S.unitless||{}).forEach(function(te){Z.add(Nd(te,z.prefix)),Z.add(Nd(te,OT(x,z.prefix)))}),VW(q,Z)},[q,x,z?.prefix]),J=WW(q),U=J.max,D=J.min,P={theme:I,token:W,hashId:F,nonce:function(){return X.nonce},clientOnly:S.clientOnly,layer:T,order:S.order||-999};typeof o=="function"&&Wy(me(me({},P),{},{clientOnly:!1,path:["Shared",j]}),function(){return o(W,{prefix:{rootPrefixCls:j,iconPrefixCls:N},csp:X})});var G=Wy(me(me({},P),{},{path:[$,_,N]}),function(){if(S.injectStyle===!1)return[];var Z=UW(W),te=Z.token,K=Z.flush,ye=AT(x,L,m),ae=".".concat(_),be=TT(x,L,ye,{deprecatedTokens:S.deprecatedTokens});z&&ye&&ft(ye)==="object"&&Object.keys(ye).forEach(function(Oe){ye[Oe]="var(".concat(Nd(Oe,OT(x,z.prefix)),")")});var he=Ss(te,{componentCls:ae,prefixCls:_,iconCls:".".concat(N),antCls:".".concat(j),calc:M,max:U,min:D},z?ye:be),xe=y(he,{hashId:F,prefixCls:_,rootPrefixCls:j,iconPrefixCls:N});K(x,be);var Se=typeof s=="function"?s(he,_,A,S.resetFont):null;return[S.resetStyle===!1?null:Se,xe]});return[G,F]}}function g(h,y,m){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(h,y,m,me({resetStyle:!1,order:-998},S)),C=function($){var T=$.prefixCls,_=$.rootCls,A=_===void 0?T:_;return b(T,A),null};return C}return{genStyleHooks:c,genSubStyleComponent:g,genComponentStyleHook:d}}const cp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],QW="5.20.0";function m0(e){return e>=0&&e<=255}function ld(e,t){const{r,g:n,b:i,a:o}=new Hn(e).toRgb();if(o<1)return e;const{r:s,g:u,b:c}=new Hn(t).toRgb();for(let f=.01;f<=1;f+=.01){const d=Math.round((r-s*(1-f))/f),g=Math.round((n-u*(1-f))/f),h=Math.round((i-c*(1-f))/f);if(m0(d)&&m0(g)&&m0(h))return new Hn({r:d,g,b:h,a:Math.round(f*100)/100}).toRgbString()}return new Hn({r,g:n,b:i,a:1}).toRgbString()}var JW=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function mP(e){const{override:t}=e,r=JW(e,["override"]),n=Object.assign({},t);Object.keys(hc).forEach(h=>{delete n[h]});const i=Object.assign(Object.assign({},r),n),o=480,s=576,u=768,c=992,f=1200,d=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:ld(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:ld(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:ld(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:ld(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
1056
1056
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
1057
1057
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
1058
1058
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
@@ -1084,7 +1084,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1084
1084
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
1085
1085
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
1086
1086
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
1087
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var PT=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const yP={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},JW={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},ZW={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},bP=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i}=t,o=PT(t,["override"]);let s=Object.assign(Object.assign({},n),{override:i});return s=mP(s),o&&Object.entries(o).forEach(u=>{let[c,f]=u;const{theme:d}=f,g=PT(f,["theme"]);let h=g;d&&(h=bP(Object.assign(Object.assign({},s),g),{override:g},d)),s[c]=h}),s};function jl(){const{token:e,hashed:t,theme:r,override:n,cssVar:i}=oe.useContext(dP),o=`${YW}-${t||""}`,s=r||fP,[u,c,f]=vU(s,[hc,e],{salt:o,override:n,getComputedToken:bP,formatToken:mP,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:yP,ignore:JW,preserve:ZW}});return[s,f,t?c:"",u,i]}const SP=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Hb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},eq=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),tq=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),rq=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),nq=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return n!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),s),{[i]:s})}},wP=(e,t)=>{const[r,n]=jl();return Wy({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},eq()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Ub}=KW({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=E.useContext(Ei);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i]=jl();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=E.useContext(Ei);return wP(t,e),e??{}},getResetStyles:e=>[{"&":rq(e)}],getCommonStyle:nq,getCompUnitless:()=>yP});function iq(e,t){return cp.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],s=e[`${n}6`],u=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:s,textColor:u}))},{})}const oq=Object.assign({},bp),{useId:kT}=oq,aq=()=>"",sq=typeof kT>"u"?aq:kT;function lq(e,t,r){var n;oP();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},i1),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:i1.hashed,cssVar:t?.cssVar}):t,s=sq();return Ib(()=>{var u,c;if(!e)return t;const f=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const d=`css-var-${s.replace(/:/g,"")}`,g=((u=i.cssVar)!==null&&u!==void 0?u:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((c=i.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:f,cssVar:g})},[i,o],(u,c)=>u.some((f,d)=>{const g=c[d];return!jy(f,g,!0)}))}var uq=["children"],xP=E.createContext({});function cq(e){var t=e.children,r=Xn(e,uq);return E.createElement(xP.Provider,{value:r},t)}var fq=(function(e){ys(r,e);var t=bs(r);function r(){return Zr(this,r),t.apply(this,arguments)}return en(r,[{key:"render",value:function(){return this.props.children}}]),r})(E.Component);function dq(e){var t=E.useReducer(function(u){return u+1},0),r=Le(t,2),n=r[1],i=E.useRef(e),o=Vn(function(){return i.current}),s=Vn(function(u){i.current=typeof u=="function"?u(i.current):u,n()});return[o,s]}var Sa="none",ud="appear",cd="enter",fd="leave",MT="none",Vi="prepare",fl="start",dl="active",Wb="end",EP="prepared";function DT(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function pq(e,t){var r={animationend:DT("Animation","AnimationEnd"),transitionend:DT("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var hq=pq(On(),typeof window<"u"?window:{}),CP={};if(On()){var gq=document.createElement("div");CP=gq.style}var dd={};function _P(e){if(dd[e])return dd[e];var t=hq[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in CP)return dd[e]=t[o],dd[e]}return""}var RP=_P("animationend"),OP=_P("transitionend"),TP=!!(RP&&OP),LT=RP||"animationend",FT=OP||"transitionend";function NT(e,t){if(!e)return null;if(ft(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const vq=(function(e){var t=E.useRef();function r(i){i&&(i.removeEventListener(FT,e),i.removeEventListener(LT,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(FT,e),i.addEventListener(LT,e),t.current=i)}return E.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var $P=On()?E.useLayoutEffect:E.useEffect;const mq=(function(){var e=E.useRef(null);function t(){lc.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=lc(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1)});e.current=o}return E.useEffect(function(){return function(){t()}},[]),[r,t]});var yq=[Vi,fl,dl,Wb],bq=[Vi,EP],AP=!1,Sq=!0;function IP(e){return e===dl||e===Wb}const wq=(function(e,t,r){var n=gc(MT),i=Le(n,2),o=i[0],s=i[1],u=mq(),c=Le(u,2),f=c[0],d=c[1];function g(){s(Vi,!0)}var h=t?bq:yq;return $P(function(){if(o!==MT&&o!==Wb){var y=h.indexOf(o),m=h[y+1],S=r(o);S===AP?s(m,!0):m&&f(function(b){function C(){b.isCanceled()||s(m,!0)}S===!0?C():Promise.resolve(S).then(C)})}},[e,o]),E.useEffect(function(){return function(){d()}},[]),[g,o]});function xq(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,s=n.motionAppear,u=s===void 0?!0:s,c=n.motionLeave,f=c===void 0?!0:c,d=n.motionDeadline,g=n.motionLeaveImmediately,h=n.onAppearPrepare,y=n.onEnterPrepare,m=n.onLeavePrepare,S=n.onAppearStart,b=n.onEnterStart,C=n.onLeaveStart,x=n.onAppearActive,$=n.onEnterActive,T=n.onLeaveActive,_=n.onAppearEnd,A=n.onEnterEnd,O=n.onLeaveEnd,I=n.onVisibleChanged,L=gc(),F=Le(L,2),W=F[0],z=F[1],B=dq(Sa),j=Le(B,2),N=j[0],X=j[1],q=gc(null),M=Le(q,2),J=M[0],U=M[1],D=N(),P=E.useRef(!1),G=E.useRef(null);function Z(){return r()}var te=E.useRef(!1);function K(){X(Sa),U(null,!0)}var ye=Vn(function(je){var Ke=N();if(Ke!==Sa){var Ve=Z();if(!(je&&!je.deadline&&je.target!==Ve)){var Ce=te.current,Ge;Ke===ud&&Ce?Ge=_?.(Ve,je):Ke===cd&&Ce?Ge=A?.(Ve,je):Ke===fd&&Ce&&(Ge=O?.(Ve,je)),Ce&&Ge!==!1&&K()}}}),ae=vq(ye),be=Le(ae,1),he=be[0],xe=function(Ke){switch(Ke){case ud:return ue(ue(ue({},Vi,h),fl,S),dl,x);case cd:return ue(ue(ue({},Vi,y),fl,b),dl,$);case fd:return ue(ue(ue({},Vi,m),fl,C),dl,T);default:return{}}},Se=E.useMemo(function(){return xe(D)},[D]),Oe=wq(D,!e,function(je){if(je===Vi){var Ke=Se[Vi];return Ke?Ke(Z()):AP}if($e in Se){var Ve;U(((Ve=Se[$e])===null||Ve===void 0?void 0:Ve.call(Se,Z(),null))||null)}return $e===dl&&D!==Sa&&(he(Z()),d>0&&(clearTimeout(G.current),G.current=setTimeout(function(){ye({deadline:!0})},d))),$e===EP&&K(),Sq}),Ee=Le(Oe,2),_e=Ee[0],$e=Ee[1],Pe=IP($e);te.current=Pe;var qe=E.useRef(null);$P(function(){if(!(P.current&&qe.current===t)){z(t);var je=P.current;P.current=!0;var Ke;!je&&t&&u&&(Ke=ud),je&&t&&o&&(Ke=cd),(je&&!t&&f||!je&&g&&!t&&f)&&(Ke=fd);var Ve=xe(Ke);Ke&&(e||Ve[Vi])?(X(Ke),_e()):X(Sa),qe.current=t}},[t]),E.useEffect(function(){(D===ud&&!u||D===cd&&!o||D===fd&&!f)&&X(Sa)},[u,o,f]),E.useEffect(function(){return function(){P.current=!1,clearTimeout(G.current)}},[]);var Qe=E.useRef(!1);E.useEffect(function(){W&&(Qe.current=!0),W!==void 0&&D===Sa&&((Qe.current||W)&&I?.(W),Qe.current=!0)},[W,D]);var Ne=J;return Se[Vi]&&$e===fl&&(Ne=me({transition:"none"},Ne)),[D,$e,Ne,W??t]}function Eq(e){var t=e;ft(e)==="object"&&(t=e.transitionSupport);function r(i,o){return!!(i.motionName&&t&&o!==!1)}var n=E.forwardRef(function(i,o){var s=i.visible,u=s===void 0?!0:s,c=i.removeOnLeave,f=c===void 0?!0:c,d=i.forceRender,g=i.children,h=i.motionName,y=i.leavedClassName,m=i.eventProps,S=E.useContext(xP),b=S.motion,C=r(i,b),x=E.useRef(),$=E.useRef();function T(){try{return x.current instanceof HTMLElement?x.current:Fd($.current)}catch{return null}}var _=xq(C,u,T,i),A=Le(_,4),O=A[0],I=A[1],L=A[2],F=A[3],W=E.useRef(F);F&&(W.current=!0);var z=E.useCallback(function(M){x.current=M,Pb(o,M)},[o]),B,j=me(me({},m),{},{visible:u});if(!g)B=null;else if(O===Sa)F?B=g(me({},j),z):!f&&W.current&&y?B=g(me(me({},j),{},{className:y}),z):d||!f&&!y?B=g(me(me({},j),{},{style:{display:"none"}}),z):B=null;else{var N;I===Vi?N="prepare":IP(I)?N="active":I===fl&&(N="start");var X=NT(h,"".concat(O,"-").concat(N));B=g(me(me({},j),{},{className:xt(NT(h,O),ue(ue({},X,X&&N),h,typeof h=="string")),style:L}),z)}if(E.isValidElement(B)&&Fp(B)){var q=Mb(B);q||(B=E.cloneElement(B,{ref:z}))}return E.createElement(fq,{ref:$},B)});return n.displayName="CSSMotion",n}const qb=Eq(TP);var s1="add",l1="keep",u1="remove",y0="removed";function Cq(e){var t;return e&&ft(e)==="object"&&"key"in e?t=e:t={key:e},me(me({},t),{},{key:String(t.key)})}function c1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Cq)}function _q(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=c1(e),s=c1(t);o.forEach(function(f){for(var d=!1,g=n;g<i;g+=1){var h=s[g];if(h.key===f.key){n<g&&(r=r.concat(s.slice(n,g).map(function(y){return me(me({},y),{},{status:s1})})),n=g),r.push(me(me({},h),{},{status:l1})),n+=1,d=!0;break}}d||r.push(me(me({},f),{},{status:u1}))}),n<i&&(r=r.concat(s.slice(n).map(function(f){return me(me({},f),{},{status:s1})})));var u={};r.forEach(function(f){var d=f.key;u[d]=(u[d]||0)+1});var c=Object.keys(u).filter(function(f){return u[f]>1});return c.forEach(function(f){r=r.filter(function(d){var g=d.key,h=d.status;return g!==f||h!==u1}),r.forEach(function(d){d.key===f&&(d.status=l1)})}),r}var Rq=["component","children","onVisibleChanged","onAllRemoved"],Oq=["status"],Tq=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $q(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qb,r=(function(n){ys(o,n);var i=bs(o);function o(){var s;Zr(this,o);for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return s=i.call.apply(i,[this].concat(c)),ue(vt(s),"state",{keyEntities:[]}),ue(vt(s),"removeKey",function(d){s.setState(function(g){var h=g.keyEntities.map(function(y){return y.key!==d?y:me(me({},y),{},{status:y0})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(y){var m=y.status;return m!==y0}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return en(o,[{key:"render",value:function(){var u=this,c=this.state.keyEntities,f=this.props,d=f.component,g=f.children,h=f.onVisibleChanged;f.onAllRemoved;var y=Xn(f,Rq),m=d||E.Fragment,S={};return Tq.forEach(function(b){S[b]=y[b],delete y[b]}),delete y.keys,E.createElement(m,y,c.map(function(b,C){var x=b.status,$=Xn(b,Oq),T=x===s1||x===l1;return E.createElement(t,fr({},S,{key:$.key,visible:T,eventProps:$,onVisibleChanged:function(A){h?.(A,{key:$.key}),A||u.removeKey($.key)}}),function(_,A){return g(me(me({},_),{},{index:C}),A)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,c){var f=u.keys,d=c.keyEntities,g=c1(f),h=_q(d,g);return{keyEntities:h.filter(function(y){var m=d.find(function(S){var b=S.key;return y.key===b});return!(m&&m.status===y0&&y.status===u1)})}}}]),o})(E.Component);return ue(r,"defaultProps",{component:"div"}),r}$q(TP);function Aq(e){const{children:t}=e,[,r]=jl(),{motion:n}=r,i=E.useRef(!1);return i.current=i.current||n===!1,i.current?E.createElement(cq,{motion:n},t):t}const Iq=()=>null;var Pq=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const kq=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let PP;function Mq(){return PP||o1}function Dq(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Lq=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&(PP=t),n&&Dq(n)&&MW(Mq(),n)},Fq=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:o,form:s,locale:u,componentSize:c,direction:f,space:d,virtual:g,dropdownMatchSelectWidth:h,popupMatchSelectWidth:y,popupOverflow:m,legacyLocale:S,parentContext:b,iconPrefixCls:C,theme:x,componentDisabled:$,segmented:T,statistic:_,spin:A,calendar:O,carousel:I,cascader:L,collapse:F,typography:W,checkbox:z,descriptions:B,divider:j,drawer:N,skeleton:X,steps:q,image:M,layout:J,list:U,mentions:D,modal:P,progress:G,result:Z,slider:te,breadcrumb:K,menu:ye,pagination:ae,input:be,textArea:he,empty:xe,badge:Se,radio:Oe,rate:Ee,switch:_e,transfer:$e,avatar:Pe,message:qe,tag:Qe,table:Ne,card:je,tabs:Ke,timeline:Ve,timePicker:Ce,upload:Ge,notification:lt,tree:At,colorPicker:dt,datePicker:Dt,rangePicker:$t,flex:ne,wave:se,dropdown:pe,warning:Y,tour:V,floatButtonGroup:ee,variant:Re,inputNumber:le,treeSelect:fe}=e,ve=E.useCallback((ht,mt)=>{const{prefixCls:_t}=e;if(mt)return mt;const jt=_t||b.getPrefixCls("");return ht?`${jt}-${ht}`:jt},[b.getPrefixCls,e.prefixCls]),Ae=C||b.iconPrefixCls||pP,Me=r||b.csp;wP(Ae,Me);const ze=lq(x,b.theme,{prefixCls:ve("")}),Je={csp:Me,autoInsertSpaceInButton:n,alert:i,anchor:o,locale:u||S,direction:f,space:d,virtual:g,popupMatchSelectWidth:y??h,popupOverflow:m,getPrefixCls:ve,iconPrefixCls:Ae,theme:ze,segmented:T,statistic:_,spin:A,calendar:O,carousel:I,cascader:L,collapse:F,typography:W,checkbox:z,descriptions:B,divider:j,drawer:N,skeleton:X,steps:q,image:M,input:be,textArea:he,layout:J,list:U,mentions:D,modal:P,progress:G,result:Z,slider:te,breadcrumb:K,menu:ye,pagination:ae,empty:xe,badge:Se,radio:Oe,rate:Ee,switch:_e,transfer:$e,avatar:Pe,message:qe,tag:Qe,table:Ne,card:je,tabs:Ke,timeline:Ve,timePicker:Ce,upload:Ge,notification:lt,tree:At,colorPicker:dt,datePicker:Dt,rangePicker:$t,flex:ne,wave:se,dropdown:pe,warning:Y,tour:V,floatButtonGroup:ee,variant:Re,inputNumber:le,treeSelect:fe},Ze=Object.assign({},b);Object.keys(Je).forEach(ht=>{Je[ht]!==void 0&&(Ze[ht]=Je[ht])}),kq.forEach(ht=>{const mt=e[ht];mt&&(Ze[ht]=mt)}),typeof n<"u"&&(Ze.button=Object.assign({autoInsertSpace:n},Ze.button));const et=Ib(()=>Ze,Ze,(ht,mt)=>{const _t=Object.keys(ht),jt=Object.keys(mt);return _t.length!==jt.length||_t.some(ar=>ht[ar]!==mt[ar])}),Nt=E.useMemo(()=>({prefixCls:Ae,csp:Me}),[Ae,Me]);let ct=E.createElement(E.Fragment,null,E.createElement(Iq,{dropdownMatchSelectWidth:h}),t);const pt=E.useMemo(()=>{var ht,mt,_t,jt;return ul(((ht=Il.Form)===null||ht===void 0?void 0:ht.defaultValidateMessages)||{},((_t=(mt=et.locale)===null||mt===void 0?void 0:mt.Form)===null||_t===void 0?void 0:_t.defaultValidateMessages)||{},((jt=et.form)===null||jt===void 0?void 0:jt.validateMessages)||{},s?.validateMessages||{})},[et,s?.validateMessages]);Object.keys(pt).length>0&&(ct=E.createElement(KU.Provider,{value:pt},ct)),u&&(ct=E.createElement(rW,{locale:u,_ANT_MARK__:tW},ct)),ct=E.createElement(Bb.Provider,{value:Nt},ct),c&&(ct=E.createElement(LW,{size:c},ct)),ct=E.createElement(Aq,null,ct);const bt=E.useMemo(()=>{const ht=ze||{},{algorithm:mt,token:_t,components:jt,cssVar:ar}=ht,dr=Pq(ht,["algorithm","token","components","cssVar"]),mr=mt&&(!Array.isArray(mt)||mt.length>0)?By(mt):fP,Cr={};Object.entries(jt||{}).forEach(kr=>{let[pr,hn]=kr;const Ht=Object.assign({},hn);"algorithm"in Ht&&(Ht.algorithm===!0?Ht.theme=mr:(Array.isArray(Ht.algorithm)||typeof Ht.algorithm=="function")&&(Ht.theme=By(Ht.algorithm)),delete Ht.algorithm),Cr[pr]=Ht});const Pr=Object.assign(Object.assign({},hc),_t);return Object.assign(Object.assign({},dr),{theme:mr,token:Pr,components:Cr,override:Object.assign({override:Pr},Cr),cssVar:ar})},[ze]);return x&&(ct=E.createElement(dP.Provider,{value:bt},ct)),et.warning&&(ct=E.createElement(XU.Provider,{value:et.warning},ct)),$!==void 0&&(ct=E.createElement(DW,{disabled:$},ct)),E.createElement(Ei.Provider,{value:et},ct)},Tc=e=>{const t=E.useContext(Ei),r=E.useContext(Vb);return E.createElement(Fq,Object.assign({parentContext:t,legacyLocale:r},e))};Tc.ConfigContext=Ei;Tc.SizeContext=Pl;Tc.config=Lq;Tc.useConfig=FW;Object.defineProperty(Tc,"SizeContext",{get:()=>Pl});function kP(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Nq(e){return kP(e)instanceof ShadowRoot}function fp(e){return Nq(e)?kP(e):null}function jq(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function zq(e,t){qn(e,"[@ant-design/icons] ".concat(t))}function jT(e){return ft(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ft(e.icon)==="object"||typeof e.icon=="function")}function zT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[jq(r)]=n}return t},{})}function f1(e,t,r){return r?oe.createElement(e.tag,me(me({key:t},zT(e.attrs)),r),(e.children||[]).map(function(n,i){return f1(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):oe.createElement(e.tag,me({key:t},zT(e.attrs)),(e.children||[]).map(function(n,i){return f1(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function MP(e){return pc(e)[0]}function DP(e){return e?Array.isArray(e)?e:[e]:[]}var Bq=`
1087
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var PT=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const yP={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ZW={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},eq={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},bP=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i}=t,o=PT(t,["override"]);let s=Object.assign(Object.assign({},n),{override:i});return s=mP(s),o&&Object.entries(o).forEach(u=>{let[c,f]=u;const{theme:d}=f,g=PT(f,["theme"]);let h=g;d&&(h=bP(Object.assign(Object.assign({},s),g),{override:g},d)),s[c]=h}),s};function jl(){const{token:e,hashed:t,theme:r,override:n,cssVar:i}=oe.useContext(dP),o=`${QW}-${t||""}`,s=r||fP,[u,c,f]=mU(s,[hc,e],{salt:o,override:n,getComputedToken:bP,formatToken:mP,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:yP,ignore:ZW,preserve:eq}});return[s,f,t?c:"",u,i]}const SP=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Hb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},tq=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),rq=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),nq=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),iq=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return n!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),s),{[i]:s})}},wP=(e,t)=>{const[r,n]=jl();return Wy({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},tq()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Ub}=YW({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=E.useContext(Ei);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i]=jl();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=E.useContext(Ei);return wP(t,e),e??{}},getResetStyles:e=>[{"&":nq(e)}],getCommonStyle:iq,getCompUnitless:()=>yP});function oq(e,t){return cp.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],s=e[`${n}6`],u=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:s,textColor:u}))},{})}const aq=Object.assign({},bp),{useId:kT}=aq,sq=()=>"",lq=typeof kT>"u"?sq:kT;function uq(e,t,r){var n;oP();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},i1),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:i1.hashed,cssVar:t?.cssVar}):t,s=lq();return Ib(()=>{var u,c;if(!e)return t;const f=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const d=`css-var-${s.replace(/:/g,"")}`,g=((u=i.cssVar)!==null&&u!==void 0?u:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((c=i.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:f,cssVar:g})},[i,o],(u,c)=>u.some((f,d)=>{const g=c[d];return!jy(f,g,!0)}))}var cq=["children"],xP=E.createContext({});function fq(e){var t=e.children,r=Xn(e,cq);return E.createElement(xP.Provider,{value:r},t)}var dq=(function(e){ys(r,e);var t=bs(r);function r(){return Zr(this,r),t.apply(this,arguments)}return en(r,[{key:"render",value:function(){return this.props.children}}]),r})(E.Component);function pq(e){var t=E.useReducer(function(u){return u+1},0),r=Le(t,2),n=r[1],i=E.useRef(e),o=Vn(function(){return i.current}),s=Vn(function(u){i.current=typeof u=="function"?u(i.current):u,n()});return[o,s]}var Sa="none",ud="appear",cd="enter",fd="leave",MT="none",Vi="prepare",fl="start",dl="active",Wb="end",EP="prepared";function DT(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function hq(e,t){var r={animationend:DT("Animation","AnimationEnd"),transitionend:DT("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var gq=hq(On(),typeof window<"u"?window:{}),CP={};if(On()){var vq=document.createElement("div");CP=vq.style}var dd={};function _P(e){if(dd[e])return dd[e];var t=gq[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in CP)return dd[e]=t[o],dd[e]}return""}var RP=_P("animationend"),OP=_P("transitionend"),TP=!!(RP&&OP),LT=RP||"animationend",FT=OP||"transitionend";function NT(e,t){if(!e)return null;if(ft(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const mq=(function(e){var t=E.useRef();function r(i){i&&(i.removeEventListener(FT,e),i.removeEventListener(LT,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(FT,e),i.addEventListener(LT,e),t.current=i)}return E.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var $P=On()?E.useLayoutEffect:E.useEffect;const yq=(function(){var e=E.useRef(null);function t(){lc.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=lc(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1)});e.current=o}return E.useEffect(function(){return function(){t()}},[]),[r,t]});var bq=[Vi,fl,dl,Wb],Sq=[Vi,EP],AP=!1,wq=!0;function IP(e){return e===dl||e===Wb}const xq=(function(e,t,r){var n=gc(MT),i=Le(n,2),o=i[0],s=i[1],u=yq(),c=Le(u,2),f=c[0],d=c[1];function g(){s(Vi,!0)}var h=t?Sq:bq;return $P(function(){if(o!==MT&&o!==Wb){var y=h.indexOf(o),m=h[y+1],S=r(o);S===AP?s(m,!0):m&&f(function(b){function C(){b.isCanceled()||s(m,!0)}S===!0?C():Promise.resolve(S).then(C)})}},[e,o]),E.useEffect(function(){return function(){d()}},[]),[g,o]});function Eq(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,s=n.motionAppear,u=s===void 0?!0:s,c=n.motionLeave,f=c===void 0?!0:c,d=n.motionDeadline,g=n.motionLeaveImmediately,h=n.onAppearPrepare,y=n.onEnterPrepare,m=n.onLeavePrepare,S=n.onAppearStart,b=n.onEnterStart,C=n.onLeaveStart,x=n.onAppearActive,$=n.onEnterActive,T=n.onLeaveActive,_=n.onAppearEnd,A=n.onEnterEnd,O=n.onLeaveEnd,I=n.onVisibleChanged,L=gc(),F=Le(L,2),W=F[0],z=F[1],B=pq(Sa),j=Le(B,2),N=j[0],X=j[1],q=gc(null),M=Le(q,2),J=M[0],U=M[1],D=N(),P=E.useRef(!1),G=E.useRef(null);function Z(){return r()}var te=E.useRef(!1);function K(){X(Sa),U(null,!0)}var ye=Vn(function(je){var Ke=N();if(Ke!==Sa){var Ve=Z();if(!(je&&!je.deadline&&je.target!==Ve)){var Ce=te.current,Ge;Ke===ud&&Ce?Ge=_?.(Ve,je):Ke===cd&&Ce?Ge=A?.(Ve,je):Ke===fd&&Ce&&(Ge=O?.(Ve,je)),Ce&&Ge!==!1&&K()}}}),ae=mq(ye),be=Le(ae,1),he=be[0],xe=function(Ke){switch(Ke){case ud:return ue(ue(ue({},Vi,h),fl,S),dl,x);case cd:return ue(ue(ue({},Vi,y),fl,b),dl,$);case fd:return ue(ue(ue({},Vi,m),fl,C),dl,T);default:return{}}},Se=E.useMemo(function(){return xe(D)},[D]),Oe=xq(D,!e,function(je){if(je===Vi){var Ke=Se[Vi];return Ke?Ke(Z()):AP}if($e in Se){var Ve;U(((Ve=Se[$e])===null||Ve===void 0?void 0:Ve.call(Se,Z(),null))||null)}return $e===dl&&D!==Sa&&(he(Z()),d>0&&(clearTimeout(G.current),G.current=setTimeout(function(){ye({deadline:!0})},d))),$e===EP&&K(),wq}),Ee=Le(Oe,2),_e=Ee[0],$e=Ee[1],Pe=IP($e);te.current=Pe;var qe=E.useRef(null);$P(function(){if(!(P.current&&qe.current===t)){z(t);var je=P.current;P.current=!0;var Ke;!je&&t&&u&&(Ke=ud),je&&t&&o&&(Ke=cd),(je&&!t&&f||!je&&g&&!t&&f)&&(Ke=fd);var Ve=xe(Ke);Ke&&(e||Ve[Vi])?(X(Ke),_e()):X(Sa),qe.current=t}},[t]),E.useEffect(function(){(D===ud&&!u||D===cd&&!o||D===fd&&!f)&&X(Sa)},[u,o,f]),E.useEffect(function(){return function(){P.current=!1,clearTimeout(G.current)}},[]);var Qe=E.useRef(!1);E.useEffect(function(){W&&(Qe.current=!0),W!==void 0&&D===Sa&&((Qe.current||W)&&I?.(W),Qe.current=!0)},[W,D]);var Ne=J;return Se[Vi]&&$e===fl&&(Ne=me({transition:"none"},Ne)),[D,$e,Ne,W??t]}function Cq(e){var t=e;ft(e)==="object"&&(t=e.transitionSupport);function r(i,o){return!!(i.motionName&&t&&o!==!1)}var n=E.forwardRef(function(i,o){var s=i.visible,u=s===void 0?!0:s,c=i.removeOnLeave,f=c===void 0?!0:c,d=i.forceRender,g=i.children,h=i.motionName,y=i.leavedClassName,m=i.eventProps,S=E.useContext(xP),b=S.motion,C=r(i,b),x=E.useRef(),$=E.useRef();function T(){try{return x.current instanceof HTMLElement?x.current:Fd($.current)}catch{return null}}var _=Eq(C,u,T,i),A=Le(_,4),O=A[0],I=A[1],L=A[2],F=A[3],W=E.useRef(F);F&&(W.current=!0);var z=E.useCallback(function(M){x.current=M,Pb(o,M)},[o]),B,j=me(me({},m),{},{visible:u});if(!g)B=null;else if(O===Sa)F?B=g(me({},j),z):!f&&W.current&&y?B=g(me(me({},j),{},{className:y}),z):d||!f&&!y?B=g(me(me({},j),{},{style:{display:"none"}}),z):B=null;else{var N;I===Vi?N="prepare":IP(I)?N="active":I===fl&&(N="start");var X=NT(h,"".concat(O,"-").concat(N));B=g(me(me({},j),{},{className:xt(NT(h,O),ue(ue({},X,X&&N),h,typeof h=="string")),style:L}),z)}if(E.isValidElement(B)&&Fp(B)){var q=Mb(B);q||(B=E.cloneElement(B,{ref:z}))}return E.createElement(dq,{ref:$},B)});return n.displayName="CSSMotion",n}const qb=Cq(TP);var s1="add",l1="keep",u1="remove",y0="removed";function _q(e){var t;return e&&ft(e)==="object"&&"key"in e?t=e:t={key:e},me(me({},t),{},{key:String(t.key)})}function c1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(_q)}function Rq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=c1(e),s=c1(t);o.forEach(function(f){for(var d=!1,g=n;g<i;g+=1){var h=s[g];if(h.key===f.key){n<g&&(r=r.concat(s.slice(n,g).map(function(y){return me(me({},y),{},{status:s1})})),n=g),r.push(me(me({},h),{},{status:l1})),n+=1,d=!0;break}}d||r.push(me(me({},f),{},{status:u1}))}),n<i&&(r=r.concat(s.slice(n).map(function(f){return me(me({},f),{},{status:s1})})));var u={};r.forEach(function(f){var d=f.key;u[d]=(u[d]||0)+1});var c=Object.keys(u).filter(function(f){return u[f]>1});return c.forEach(function(f){r=r.filter(function(d){var g=d.key,h=d.status;return g!==f||h!==u1}),r.forEach(function(d){d.key===f&&(d.status=l1)})}),r}var Oq=["component","children","onVisibleChanged","onAllRemoved"],Tq=["status"],$q=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Aq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qb,r=(function(n){ys(o,n);var i=bs(o);function o(){var s;Zr(this,o);for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return s=i.call.apply(i,[this].concat(c)),ue(vt(s),"state",{keyEntities:[]}),ue(vt(s),"removeKey",function(d){s.setState(function(g){var h=g.keyEntities.map(function(y){return y.key!==d?y:me(me({},y),{},{status:y0})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(y){var m=y.status;return m!==y0}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return en(o,[{key:"render",value:function(){var u=this,c=this.state.keyEntities,f=this.props,d=f.component,g=f.children,h=f.onVisibleChanged;f.onAllRemoved;var y=Xn(f,Oq),m=d||E.Fragment,S={};return $q.forEach(function(b){S[b]=y[b],delete y[b]}),delete y.keys,E.createElement(m,y,c.map(function(b,C){var x=b.status,$=Xn(b,Tq),T=x===s1||x===l1;return E.createElement(t,fr({},S,{key:$.key,visible:T,eventProps:$,onVisibleChanged:function(A){h?.(A,{key:$.key}),A||u.removeKey($.key)}}),function(_,A){return g(me(me({},_),{},{index:C}),A)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,c){var f=u.keys,d=c.keyEntities,g=c1(f),h=Rq(d,g);return{keyEntities:h.filter(function(y){var m=d.find(function(S){var b=S.key;return y.key===b});return!(m&&m.status===y0&&y.status===u1)})}}}]),o})(E.Component);return ue(r,"defaultProps",{component:"div"}),r}Aq(TP);function Iq(e){const{children:t}=e,[,r]=jl(),{motion:n}=r,i=E.useRef(!1);return i.current=i.current||n===!1,i.current?E.createElement(fq,{motion:n},t):t}const Pq=()=>null;var kq=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Mq=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let PP;function Dq(){return PP||o1}function Lq(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Fq=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&(PP=t),n&&Lq(n)&&DW(Dq(),n)},Nq=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:o,form:s,locale:u,componentSize:c,direction:f,space:d,virtual:g,dropdownMatchSelectWidth:h,popupMatchSelectWidth:y,popupOverflow:m,legacyLocale:S,parentContext:b,iconPrefixCls:C,theme:x,componentDisabled:$,segmented:T,statistic:_,spin:A,calendar:O,carousel:I,cascader:L,collapse:F,typography:W,checkbox:z,descriptions:B,divider:j,drawer:N,skeleton:X,steps:q,image:M,layout:J,list:U,mentions:D,modal:P,progress:G,result:Z,slider:te,breadcrumb:K,menu:ye,pagination:ae,input:be,textArea:he,empty:xe,badge:Se,radio:Oe,rate:Ee,switch:_e,transfer:$e,avatar:Pe,message:qe,tag:Qe,table:Ne,card:je,tabs:Ke,timeline:Ve,timePicker:Ce,upload:Ge,notification:lt,tree:At,colorPicker:dt,datePicker:Dt,rangePicker:$t,flex:ne,wave:se,dropdown:pe,warning:Y,tour:V,floatButtonGroup:ee,variant:Re,inputNumber:le,treeSelect:fe}=e,ve=E.useCallback((ht,mt)=>{const{prefixCls:_t}=e;if(mt)return mt;const jt=_t||b.getPrefixCls("");return ht?`${jt}-${ht}`:jt},[b.getPrefixCls,e.prefixCls]),Ae=C||b.iconPrefixCls||pP,Me=r||b.csp;wP(Ae,Me);const ze=uq(x,b.theme,{prefixCls:ve("")}),Je={csp:Me,autoInsertSpaceInButton:n,alert:i,anchor:o,locale:u||S,direction:f,space:d,virtual:g,popupMatchSelectWidth:y??h,popupOverflow:m,getPrefixCls:ve,iconPrefixCls:Ae,theme:ze,segmented:T,statistic:_,spin:A,calendar:O,carousel:I,cascader:L,collapse:F,typography:W,checkbox:z,descriptions:B,divider:j,drawer:N,skeleton:X,steps:q,image:M,input:be,textArea:he,layout:J,list:U,mentions:D,modal:P,progress:G,result:Z,slider:te,breadcrumb:K,menu:ye,pagination:ae,empty:xe,badge:Se,radio:Oe,rate:Ee,switch:_e,transfer:$e,avatar:Pe,message:qe,tag:Qe,table:Ne,card:je,tabs:Ke,timeline:Ve,timePicker:Ce,upload:Ge,notification:lt,tree:At,colorPicker:dt,datePicker:Dt,rangePicker:$t,flex:ne,wave:se,dropdown:pe,warning:Y,tour:V,floatButtonGroup:ee,variant:Re,inputNumber:le,treeSelect:fe},Ze=Object.assign({},b);Object.keys(Je).forEach(ht=>{Je[ht]!==void 0&&(Ze[ht]=Je[ht])}),Mq.forEach(ht=>{const mt=e[ht];mt&&(Ze[ht]=mt)}),typeof n<"u"&&(Ze.button=Object.assign({autoInsertSpace:n},Ze.button));const et=Ib(()=>Ze,Ze,(ht,mt)=>{const _t=Object.keys(ht),jt=Object.keys(mt);return _t.length!==jt.length||_t.some(ar=>ht[ar]!==mt[ar])}),Nt=E.useMemo(()=>({prefixCls:Ae,csp:Me}),[Ae,Me]);let ct=E.createElement(E.Fragment,null,E.createElement(Pq,{dropdownMatchSelectWidth:h}),t);const pt=E.useMemo(()=>{var ht,mt,_t,jt;return ul(((ht=Il.Form)===null||ht===void 0?void 0:ht.defaultValidateMessages)||{},((_t=(mt=et.locale)===null||mt===void 0?void 0:mt.Form)===null||_t===void 0?void 0:_t.defaultValidateMessages)||{},((jt=et.form)===null||jt===void 0?void 0:jt.validateMessages)||{},s?.validateMessages||{})},[et,s?.validateMessages]);Object.keys(pt).length>0&&(ct=E.createElement(YU.Provider,{value:pt},ct)),u&&(ct=E.createElement(nW,{locale:u,_ANT_MARK__:rW},ct)),ct=E.createElement(Bb.Provider,{value:Nt},ct),c&&(ct=E.createElement(FW,{size:c},ct)),ct=E.createElement(Iq,null,ct);const bt=E.useMemo(()=>{const ht=ze||{},{algorithm:mt,token:_t,components:jt,cssVar:ar}=ht,dr=kq(ht,["algorithm","token","components","cssVar"]),mr=mt&&(!Array.isArray(mt)||mt.length>0)?By(mt):fP,Cr={};Object.entries(jt||{}).forEach(kr=>{let[pr,hn]=kr;const Ht=Object.assign({},hn);"algorithm"in Ht&&(Ht.algorithm===!0?Ht.theme=mr:(Array.isArray(Ht.algorithm)||typeof Ht.algorithm=="function")&&(Ht.theme=By(Ht.algorithm)),delete Ht.algorithm),Cr[pr]=Ht});const Pr=Object.assign(Object.assign({},hc),_t);return Object.assign(Object.assign({},dr),{theme:mr,token:Pr,components:Cr,override:Object.assign({override:Pr},Cr),cssVar:ar})},[ze]);return x&&(ct=E.createElement(dP.Provider,{value:bt},ct)),et.warning&&(ct=E.createElement(KU.Provider,{value:et.warning},ct)),$!==void 0&&(ct=E.createElement(LW,{disabled:$},ct)),E.createElement(Ei.Provider,{value:et},ct)},Tc=e=>{const t=E.useContext(Ei),r=E.useContext(Vb);return E.createElement(Nq,Object.assign({parentContext:t,legacyLocale:r},e))};Tc.ConfigContext=Ei;Tc.SizeContext=Pl;Tc.config=Fq;Tc.useConfig=NW;Object.defineProperty(Tc,"SizeContext",{get:()=>Pl});function kP(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function jq(e){return kP(e)instanceof ShadowRoot}function fp(e){return jq(e)?kP(e):null}function zq(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Bq(e,t){qn(e,"[@ant-design/icons] ".concat(t))}function jT(e){return ft(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ft(e.icon)==="object"||typeof e.icon=="function")}function zT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[zq(r)]=n}return t},{})}function f1(e,t,r){return r?oe.createElement(e.tag,me(me({key:t},zT(e.attrs)),r),(e.children||[]).map(function(n,i){return f1(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):oe.createElement(e.tag,me({key:t},zT(e.attrs)),(e.children||[]).map(function(n,i){return f1(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function MP(e){return pc(e)[0]}function DP(e){return e?Array.isArray(e)?e:[e]:[]}var Vq=`
1088
1088
  .anticon {
1089
1089
  display: inline-flex;
1090
1090
  align-items: center;
@@ -1139,26 +1139,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1139
1139
  transform: rotate(360deg);
1140
1140
  }
1141
1141
  }
1142
- `,Vq=function(t){var r=E.useContext(Bb),n=r.csp,i=r.prefixCls,o=r.layer,s=Bq;i&&(s=s.replace(/anticon/g,i)),o&&(s="@layer ".concat(o,` {
1142
+ `,Hq=function(t){var r=E.useContext(Bb),n=r.csp,i=r.prefixCls,o=r.layer,s=Vq;i&&(s=s.replace(/anticon/g,i)),o&&(s="@layer ".concat(o,` {
1143
1143
  `).concat(s,`
1144
- }`)),E.useEffect(function(){var u=t.current,c=fp(u);Xo(s,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},Hq=["icon","className","onClick","style","primaryColor","secondaryColor"],Bu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Uq(e){var t=e.primaryColor,r=e.secondaryColor;Bu.primaryColor=t,Bu.secondaryColor=r||MP(t),Bu.calculated=!!r}function Wq(){return me({},Bu)}var zl=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,s=t.primaryColor,u=t.secondaryColor,c=Xn(t,Hq),f=E.useRef(),d=Bu;if(s&&(d={primaryColor:s,secondaryColor:u||MP(s)}),Vq(f),zq(jT(r),"icon should be icon definiton, but got ".concat(r)),!jT(r))return null;var g=r;return g&&typeof g.icon=="function"&&(g=me(me({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),f1(g.icon,"svg-".concat(g.name),me(me({className:n,onClick:i,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:f}))};zl.displayName="IconReact";zl.getTwoToneColors=Wq;zl.setTwoToneColors=Uq;function LP(e){var t=DP(e),r=Le(t,2),n=r[0],i=r[1];return zl.setTwoToneColors({primaryColor:n,secondaryColor:i})}function qq(){var e=zl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Gq=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];LP(lp.primary);var ea=E.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,c=e.twoToneColor,f=Xn(e,Gq),d=E.useContext(Bb),g=d.prefixCls,h=g===void 0?"anticon":g,y=d.rootClassName,m=xt(y,h,ue(ue({},"".concat(h,"-").concat(n.name),!!n.name),"".concat(h,"-spin"),!!i||n.name==="loading"),r),S=s;S===void 0&&u&&(S=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=DP(c),x=Le(C,2),$=x[0],T=x[1];return E.createElement("span",fr({role:"img","aria-label":n.name},f,{ref:t,tabIndex:S,onClick:u,className:m}),E.createElement(zl,{icon:n,primaryColor:$,secondaryColor:T,style:b}))});ea.displayName="AntdIcon";ea.getTwoToneColor=qq;ea.setTwoToneColor=LP;var Xq={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Kq=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:Xq}))},Yq=E.forwardRef(Kq);function Qq(e){return e&&oe.isValidElement(e)&&e.type===oe.Fragment}const Jq=(e,t,r)=>oe.isValidElement(e)?oe.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function FP(e,t){return Jq(e,e,t)}const Zq=e=>{const[,,,,t]=jl();return t?`${e}-css-var`:""};var dp={ENTER:13,ESC:27},eG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},tG=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:eG}))},rG=E.forwardRef(tG);const NP=oe.createContext(void 0),Xs=100,jP={Modal:Xs,Drawer:Xs,Popover:Xs,Popconfirm:Xs,Tooltip:Xs,Tour:Xs},nG={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function iG(e){return e in jP}function oG(e,t){const[,r]=jl(),n=oe.useContext(NP),i=iG(e);let o;if(t!==void 0)o=[t,t];else{let s=n??0;i?s+=(n?0:r.zIndexPopupBase)+jP[e]:s+=nG[e],o=[n===void 0?t:s,s]}return o}function zP(e,t){this.v=e,this.k=t}function Yr(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}Yr=function(s,u,c,f){function d(g,h){Yr(s,g,function(y){return this._invoke(g,h,y)})}u?i?i(s,u,{value:c,enumerable:!f,configurable:!f,writable:!f}):s[u]=c:(d("next",0),d("throw",1),d("return",2))},Yr(e,t,r,n)}function Gb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(y,m,S,b){var C=m&&m.prototype instanceof u?m:u,x=Object.create(C.prototype);return Yr(x,"_invoke",(function($,T,_){var A,O,I,L=0,F=_||[],W=!1,z={p:0,n:0,v:e,a:B,f:B.bind(e,4),d:function(N,X){return A=N,O=0,I=e,z.n=X,s}};function B(j,N){for(O=j,I=N,t=0;!W&&L&&!X&&t<F.length;t++){var X,q=F[t],M=z.p,J=q[2];j>3?(X=J===N)&&(I=q[(O=q[4])?5:(O=3,3)],q[4]=q[5]=e):q[0]<=M&&((X=j<2&&M<q[1])?(O=0,z.v=N,z.n=q[1]):M<J&&(X=j<3||q[0]>N||N>J)&&(q[4]=j,q[5]=N,z.n=J,O=0))}if(X||j>1)return s;throw W=!0,N}return function(j,N,X){if(L>1)throw TypeError("Generator is already running");for(W&&N===1&&B(N,X),O=N,I=X;(t=O<2?e:I)||!W;){A||(O?O<3?(O>1&&(z.n=-1),B(O,I)):z.n=I:z.v=I);try{if(L=2,A){if(O||(j="next"),t=A[j]){if(!(t=t.call(A,I)))throw TypeError("iterator result is not an object");if(!t.done)return t;I=t.value,O<2&&(O=0)}else O===1&&(t=A.return)&&t.call(A),O<2&&(I=TypeError("The iterator does not provide a '"+j+"' method"),O=1);A=e}else if((t=(W=z.n<0)?I:$.call(T,z))!==s)break}catch(q){A=e,O=1,I=q}finally{L=1}}return{value:t,done:W}}})(y,S,b),!0),x}var s={};function u(){}function c(){}function f(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(Yr(t={},n,function(){return this}),t),g=f.prototype=u.prototype=Object.create(d);function h(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,f):(y.__proto__=f,Yr(y,i,"GeneratorFunction")),y.prototype=Object.create(g),y}return c.prototype=f,Yr(g,"constructor",f),Yr(f,"constructor",c),c.displayName="GeneratorFunction",Yr(f,i,"GeneratorFunction"),Yr(g),Yr(g,i,"Generator"),Yr(g,n,function(){return this}),Yr(g,"toString",function(){return"[object Generator]"}),(Gb=function(){return{w:o,m:h}})()}function pp(e,t){function r(i,o,s,u){try{var c=e[i](o),f=c.value;return f instanceof zP?t.resolve(f.v).then(function(d){r("next",d,s,u)},function(d){r("throw",d,s,u)}):t.resolve(f).then(function(d){c.value=d,s(c)},function(d){return r("throw",d,s,u)})}catch(d){u(d)}}var n;this.next||(Yr(pp.prototype),Yr(pp.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Yr(this,"_invoke",function(i,o,s){function u(){return new t(function(c,f){r(i,s,c,f)})}return n=n?n.then(u,u):u()},!0)}function BP(e,t,r,n,i){return new pp(Gb().w(e,t,r,n),i||Promise)}function aG(e,t,r,n,i){var o=BP(e,t,r,n,i);return o.next().then(function(s){return s.done?s.value:o.next()})}function sG(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in t)return i.value=n,i.done=!1,i;return i.done=!0,i}}function BT(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ft(e)+" is not iterable")}function Ci(){var e=Gb(),t=e.m(Ci),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===r||(u.displayName||u.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(s){var u,c;return function(f){u||(u={stop:function(){return c(f.a,2)},catch:function(){return f.v},abrupt:function(g,h){return c(f.a,i[g],h)},delegateYield:function(g,h,y){return u.resultName=h,c(f.d,BT(g),y)},finish:function(g){return c(f.f,g)}},c=function(g,h,y){f.p=u.prev,f.n=u.next;try{return g(h,y)}finally{u.next=f.n}}),u.resultName&&(u[u.resultName]=f.v,u.resultName=void 0),u.sent=f.v,u.next=f.n;try{return s.call(this,u)}finally{f.p=u.prev,f.n=u.next}}}return(Ci=function(){return{wrap:function(c,f,d,g){return e.w(o(c),f,d,g&&g.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(c,f){return new zP(c,f)},AsyncIterator:pp,async:function(c,f,d,g,h){return(n(f)?BP:aG)(o(c),f,d,g,h)},keys:sG,values:BT}})()}function VT(e,t,r,n,i,o,s){try{var u=e[o](s),c=u.value}catch(f){return void r(f)}u.done?t(c):Promise.resolve(c).then(n,i)}function $c(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(c){VT(o,n,i,s,u,"next",c)}function u(c){VT(o,n,i,s,u,"throw",c)}s(void 0)})}}const lG=(e,t,r)=>r!==void 0?r:`${e}-${t}`,uG=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,s=i.height;if(o||s)return!0}}return!1}),cG=e=>{const t=oe.useContext(Pl);return oe.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},fG=E.createContext(null),dG=e=>{let{children:t}=e;return E.createElement(fG.Provider,{value:null},t)};function pG(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,s=o?"> *":"",u=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function hG(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function gG(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},pG(e,n,t)),hG(r,n,t))}}var VP=E.createContext(null),HT=[];function vG(e,t){var r=E.useState(function(){if(!On())return null;var m=document.createElement("div");return m}),n=Le(r,1),i=n[0],o=E.useRef(!1),s=E.useContext(VP),u=E.useState(HT),c=Le(u,2),f=c[0],d=c[1],g=s||(o.current?void 0:function(m){d(function(S){var b=[m].concat(ot(S));return b})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function y(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),o.current=!1}return or(function(){return e?s?s(h):h():y(),y},[e]),or(function(){f.length&&(f.forEach(function(m){return m()}),d(HT))},[f]),[i,g]}function mG(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,o;if(e){var s=getComputedStyle(e);n.scrollbarColor=s.scrollbarColor,n.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(u.width,10),f=parseInt(u.height,10);try{var d=c?"width: ".concat(u.width,";"):"",g=f?"height: ".concat(u.height,";"):"";Xo(`
1144
+ }`)),E.useEffect(function(){var u=t.current,c=fp(u);Xo(s,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},Uq=["icon","className","onClick","style","primaryColor","secondaryColor"],Bu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Wq(e){var t=e.primaryColor,r=e.secondaryColor;Bu.primaryColor=t,Bu.secondaryColor=r||MP(t),Bu.calculated=!!r}function qq(){return me({},Bu)}var zl=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,s=t.primaryColor,u=t.secondaryColor,c=Xn(t,Uq),f=E.useRef(),d=Bu;if(s&&(d={primaryColor:s,secondaryColor:u||MP(s)}),Hq(f),Bq(jT(r),"icon should be icon definiton, but got ".concat(r)),!jT(r))return null;var g=r;return g&&typeof g.icon=="function"&&(g=me(me({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),f1(g.icon,"svg-".concat(g.name),me(me({className:n,onClick:i,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:f}))};zl.displayName="IconReact";zl.getTwoToneColors=qq;zl.setTwoToneColors=Wq;function LP(e){var t=DP(e),r=Le(t,2),n=r[0],i=r[1];return zl.setTwoToneColors({primaryColor:n,secondaryColor:i})}function Gq(){var e=zl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Xq=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];LP(lp.primary);var ea=E.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,c=e.twoToneColor,f=Xn(e,Xq),d=E.useContext(Bb),g=d.prefixCls,h=g===void 0?"anticon":g,y=d.rootClassName,m=xt(y,h,ue(ue({},"".concat(h,"-").concat(n.name),!!n.name),"".concat(h,"-spin"),!!i||n.name==="loading"),r),S=s;S===void 0&&u&&(S=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=DP(c),x=Le(C,2),$=x[0],T=x[1];return E.createElement("span",fr({role:"img","aria-label":n.name},f,{ref:t,tabIndex:S,onClick:u,className:m}),E.createElement(zl,{icon:n,primaryColor:$,secondaryColor:T,style:b}))});ea.displayName="AntdIcon";ea.getTwoToneColor=Gq;ea.setTwoToneColor=LP;var Kq={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Yq=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:Kq}))},Qq=E.forwardRef(Yq);function Jq(e){return e&&oe.isValidElement(e)&&e.type===oe.Fragment}const Zq=(e,t,r)=>oe.isValidElement(e)?oe.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function FP(e,t){return Zq(e,e,t)}const eG=e=>{const[,,,,t]=jl();return t?`${e}-css-var`:""};var dp={ENTER:13,ESC:27},tG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},rG=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:tG}))},nG=E.forwardRef(rG);const NP=oe.createContext(void 0),Xs=100,jP={Modal:Xs,Drawer:Xs,Popover:Xs,Popconfirm:Xs,Tooltip:Xs,Tour:Xs},iG={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function oG(e){return e in jP}function aG(e,t){const[,r]=jl(),n=oe.useContext(NP),i=oG(e);let o;if(t!==void 0)o=[t,t];else{let s=n??0;i?s+=(n?0:r.zIndexPopupBase)+jP[e]:s+=iG[e],o=[n===void 0?t:s,s]}return o}function zP(e,t){this.v=e,this.k=t}function Yr(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}Yr=function(s,u,c,f){function d(g,h){Yr(s,g,function(y){return this._invoke(g,h,y)})}u?i?i(s,u,{value:c,enumerable:!f,configurable:!f,writable:!f}):s[u]=c:(d("next",0),d("throw",1),d("return",2))},Yr(e,t,r,n)}function Gb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(y,m,S,b){var C=m&&m.prototype instanceof u?m:u,x=Object.create(C.prototype);return Yr(x,"_invoke",(function($,T,_){var A,O,I,L=0,F=_||[],W=!1,z={p:0,n:0,v:e,a:B,f:B.bind(e,4),d:function(N,X){return A=N,O=0,I=e,z.n=X,s}};function B(j,N){for(O=j,I=N,t=0;!W&&L&&!X&&t<F.length;t++){var X,q=F[t],M=z.p,J=q[2];j>3?(X=J===N)&&(I=q[(O=q[4])?5:(O=3,3)],q[4]=q[5]=e):q[0]<=M&&((X=j<2&&M<q[1])?(O=0,z.v=N,z.n=q[1]):M<J&&(X=j<3||q[0]>N||N>J)&&(q[4]=j,q[5]=N,z.n=J,O=0))}if(X||j>1)return s;throw W=!0,N}return function(j,N,X){if(L>1)throw TypeError("Generator is already running");for(W&&N===1&&B(N,X),O=N,I=X;(t=O<2?e:I)||!W;){A||(O?O<3?(O>1&&(z.n=-1),B(O,I)):z.n=I:z.v=I);try{if(L=2,A){if(O||(j="next"),t=A[j]){if(!(t=t.call(A,I)))throw TypeError("iterator result is not an object");if(!t.done)return t;I=t.value,O<2&&(O=0)}else O===1&&(t=A.return)&&t.call(A),O<2&&(I=TypeError("The iterator does not provide a '"+j+"' method"),O=1);A=e}else if((t=(W=z.n<0)?I:$.call(T,z))!==s)break}catch(q){A=e,O=1,I=q}finally{L=1}}return{value:t,done:W}}})(y,S,b),!0),x}var s={};function u(){}function c(){}function f(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(Yr(t={},n,function(){return this}),t),g=f.prototype=u.prototype=Object.create(d);function h(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,f):(y.__proto__=f,Yr(y,i,"GeneratorFunction")),y.prototype=Object.create(g),y}return c.prototype=f,Yr(g,"constructor",f),Yr(f,"constructor",c),c.displayName="GeneratorFunction",Yr(f,i,"GeneratorFunction"),Yr(g),Yr(g,i,"Generator"),Yr(g,n,function(){return this}),Yr(g,"toString",function(){return"[object Generator]"}),(Gb=function(){return{w:o,m:h}})()}function pp(e,t){function r(i,o,s,u){try{var c=e[i](o),f=c.value;return f instanceof zP?t.resolve(f.v).then(function(d){r("next",d,s,u)},function(d){r("throw",d,s,u)}):t.resolve(f).then(function(d){c.value=d,s(c)},function(d){return r("throw",d,s,u)})}catch(d){u(d)}}var n;this.next||(Yr(pp.prototype),Yr(pp.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Yr(this,"_invoke",function(i,o,s){function u(){return new t(function(c,f){r(i,s,c,f)})}return n=n?n.then(u,u):u()},!0)}function BP(e,t,r,n,i){return new pp(Gb().w(e,t,r,n),i||Promise)}function sG(e,t,r,n,i){var o=BP(e,t,r,n,i);return o.next().then(function(s){return s.done?s.value:o.next()})}function lG(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in t)return i.value=n,i.done=!1,i;return i.done=!0,i}}function BT(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ft(e)+" is not iterable")}function Ci(){var e=Gb(),t=e.m(Ci),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===r||(u.displayName||u.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(s){var u,c;return function(f){u||(u={stop:function(){return c(f.a,2)},catch:function(){return f.v},abrupt:function(g,h){return c(f.a,i[g],h)},delegateYield:function(g,h,y){return u.resultName=h,c(f.d,BT(g),y)},finish:function(g){return c(f.f,g)}},c=function(g,h,y){f.p=u.prev,f.n=u.next;try{return g(h,y)}finally{u.next=f.n}}),u.resultName&&(u[u.resultName]=f.v,u.resultName=void 0),u.sent=f.v,u.next=f.n;try{return s.call(this,u)}finally{f.p=u.prev,f.n=u.next}}}return(Ci=function(){return{wrap:function(c,f,d,g){return e.w(o(c),f,d,g&&g.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(c,f){return new zP(c,f)},AsyncIterator:pp,async:function(c,f,d,g,h){return(n(f)?BP:sG)(o(c),f,d,g,h)},keys:lG,values:BT}})()}function VT(e,t,r,n,i,o,s){try{var u=e[o](s),c=u.value}catch(f){return void r(f)}u.done?t(c):Promise.resolve(c).then(n,i)}function $c(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(c){VT(o,n,i,s,u,"next",c)}function u(c){VT(o,n,i,s,u,"throw",c)}s(void 0)})}}const uG=(e,t,r)=>r!==void 0?r:`${e}-${t}`,cG=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,s=i.height;if(o||s)return!0}}return!1}),fG=e=>{const t=oe.useContext(Pl);return oe.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},dG=E.createContext(null),pG=e=>{let{children:t}=e;return E.createElement(dG.Provider,{value:null},t)};function hG(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,s=o?"> *":"",u=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function gG(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function vG(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},hG(e,n,t)),gG(r,n,t))}}var VP=E.createContext(null),HT=[];function mG(e,t){var r=E.useState(function(){if(!On())return null;var m=document.createElement("div");return m}),n=Le(r,1),i=n[0],o=E.useRef(!1),s=E.useContext(VP),u=E.useState(HT),c=Le(u,2),f=c[0],d=c[1],g=s||(o.current?void 0:function(m){d(function(S){var b=[m].concat(ot(S));return b})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function y(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),o.current=!1}return or(function(){return e?s?s(h):h():y(),y},[e]),or(function(){f.length&&(f.forEach(function(m){return m()}),d(HT))},[f]),[i,g]}function yG(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,o;if(e){var s=getComputedStyle(e);n.scrollbarColor=s.scrollbarColor,n.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(u.width,10),f=parseInt(u.height,10);try{var d=c?"width: ".concat(u.width,";"):"",g=f?"height: ".concat(u.height,";"):"";Xo(`
1145
1145
  #`.concat(t,`::-webkit-scrollbar {
1146
1146
  `).concat(d,`
1147
1147
  `).concat(g,`
1148
- }`),t)}catch(m){console.error(m),i=c,o=f}}document.body.appendChild(r);var h=e&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,y=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),cc(t),{width:h,height:y}}function yG(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:mG(e)}function bG(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var SG="rc-util-locker-".concat(Date.now()),UT=0;function wG(e){var t=!!e,r=E.useState(function(){return UT+=1,"".concat(SG,"_").concat(UT)}),n=Le(r,1),i=n[0];or(function(){if(t){var o=yG(document.body).width,s=bG();Xo(`
1148
+ }`),t)}catch(m){console.error(m),i=c,o=f}}document.body.appendChild(r);var h=e&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,y=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),cc(t),{width:h,height:y}}function bG(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:yG(e)}function SG(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var wG="rc-util-locker-".concat(Date.now()),UT=0;function xG(e){var t=!!e,r=E.useState(function(){return UT+=1,"".concat(wG,"_").concat(UT)}),n=Le(r,1),i=n[0];or(function(){if(t){var o=bG(document.body).width,s=SG();Xo(`
1149
1149
  html body {
1150
1150
  overflow-y: hidden;
1151
1151
  `.concat(s?"width: calc(100% - ".concat(o,"px);"):"",`
1152
- }`),i)}else cc(i);return function(){cc(i)}},[t,i])}var xG=!1;function EG(e){return xG}var WT=function(t){return t===!1?!1:!On()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},HP=E.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,s=o===void 0?!0:o,u=e.children,c=E.useState(r),f=Le(c,2),d=f[0],g=f[1],h=d||r;E.useEffect(function(){(s||r)&&g(r)},[r,s]);var y=E.useState(function(){return WT(i)}),m=Le(y,2),S=m[0],b=m[1];E.useEffect(function(){var W=WT(i);b(W??null)});var C=vG(h&&!S),x=Le(C,2),$=x[0],T=x[1],_=S??$;wG(n&&r&&On()&&(_===$||_===document.body));var A=null;if(u&&Fp(u)&&t){var O=u;A=O.ref}var I=kb(A,t);if(!h||!On()||S===void 0)return null;var L=_===!1||EG(),F=u;return t&&(F=E.cloneElement(u,{ref:I})),E.createElement(VP.Provider,{value:T},L?F:Sp.createPortal(F,_))});function CG(){var e=me({},bp);return e.useId}var qT=0,GT=CG();const _G=GT?(function(t){var r=GT();return t||r}):(function(t){var r=E.useState("ssr-id"),n=Le(r,2),i=n[0],o=n[1];return E.useEffect(function(){var s=qT;qT+=1,o("rc_unique_".concat(s))},[]),t||i});var is="RC_FORM_INTERNAL_HOOKS",Vt=function(){qn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kl=E.createContext({getFieldValue:Vt,getFieldsValue:Vt,getFieldError:Vt,getFieldWarning:Vt,getFieldsError:Vt,isFieldsTouched:Vt,isFieldTouched:Vt,isFieldValidating:Vt,isFieldsValidating:Vt,resetFields:Vt,setFields:Vt,setFieldValue:Vt,setFieldsValue:Vt,validateFields:Vt,submit:Vt,getInternalHooks:function(){return Vt(),{dispatch:Vt,initEntityValue:Vt,registerField:Vt,useSubscribe:Vt,setInitialValues:Vt,destroyForm:Vt,setCallbacks:Vt,registerWatch:Vt,getFields:Vt,setValidateMessages:Vt,setPreserve:Vt,getInitialValue:Vt}}}),hp=E.createContext(null);function d1(e){return e==null?[]:Array.isArray(e)?e:[e]}function RG(e){return e&&!!e._init}function p1(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var h1=p1();function OG(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function TG(e,t,r){if(xb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&nc(i,r.prototype),i}function g1(e){var t=typeof Map=="function"?new Map:void 0;return g1=function(n){if(n===null||!OG(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return TG(n,arguments,ic(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),nc(i,n)},g1(e)}var $G=/%[sdj%]/g,AG=function(){};function v1(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Un(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace($G,function(u){if(u==="%%")return"%";if(i>=o)return u;switch(u){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return u}});return s}return e}function IG(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function xr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||IG(t)&&typeof e=="string"&&!e)}function PG(e,t,r){var n=[],i=0,o=e.length;function s(u){n.push.apply(n,ot(u||[])),i++,i===o&&r(n)}e.forEach(function(u){t(u,s)})}function XT(e,t,r){var n=0,i=e.length;function o(s){if(s&&s.length){r(s);return}var u=n;n=n+1,u<i?t(e[u],o):r([])}o([])}function kG(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ot(e[r]||[]))}),t}var KT=(function(e){ys(r,e);var t=bs(r);function r(n,i){var o;return Zr(this,r),o=t.call(this,"Async Validation Error"),ue(vt(o),"errors",void 0),ue(vt(o),"fields",void 0),o.errors=n,o.fields=i,o}return en(r)})(g1(Error));function MG(e,t,r,n,i){if(t.first){var o=new Promise(function(h,y){var m=function(C){return n(C),C.length?y(new KT(C,v1(C))):h(i)},S=kG(e);XT(S,r,m)});return o.catch(function(h){return h}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),c=u.length,f=0,d=[],g=new Promise(function(h,y){var m=function(b){if(d.push.apply(d,b),f++,f===c)return n(d),d.length?y(new KT(d,v1(d))):h(i)};u.length||(n(d),h(i)),u.forEach(function(S){var b=e[S];s.indexOf(S)!==-1?XT(b,r,m):PG(b,r,m)})});return g.catch(function(h){return h}),g}function DG(e){return!!(e&&e.message!==void 0)}function LG(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function YT(e,t){return function(r){var n;return e.fullFields?n=LG(t,e.fullFields):n=t[r.field||e.fullField],DG(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function QT(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];ft(n)==="object"&&ft(e[r])==="object"?e[r]=me(me({},e[r]),n):e[r]=n}}return e}var Ks="enum",FG=function(t,r,n,i,o){t[Ks]=Array.isArray(t[Ks])?t[Ks]:[],t[Ks].indexOf(r)===-1&&i.push(Un(o.messages[Ks],t.fullField,t[Ks].join(", ")))},NG=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Un(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(r)||i.push(Un(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},jG=function(t,r,n,i,o){var s=typeof t.len=="number",u=typeof t.min=="number",c=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,g=null,h=typeof r=="number",y=typeof r=="string",m=Array.isArray(r);if(h?g="number":y?g="string":m&&(g="array"),!g)return!1;m&&(d=r.length),y&&(d=r.replace(f,"_").length),s?d!==t.len&&i.push(Un(o.messages[g].len,t.fullField,t.len)):u&&!c&&d<t.min?i.push(Un(o.messages[g].min,t.fullField,t.min)):c&&!u&&d>t.max?i.push(Un(o.messages[g].max,t.fullField,t.max)):u&&c&&(d<t.min||d>t.max)&&i.push(Un(o.messages[g].range,t.fullField,t.min,t.max))},UP=function(t,r,n,i,o,s){t.required&&(!n.hasOwnProperty(t.field)||xr(r,s||t.type))&&i.push(Un(o.messages.required,t.fullField))},pd;const zG=(function(){if(pd)return pd;var e="[a-fA-F\\d:]",t=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(i.join("|"),")").concat(o),u=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),c=new RegExp("^".concat(r,"$")),f=new RegExp("^".concat(s,"$")),d=function(A){return A&&A.exact?u:new RegExp("(?:".concat(t(A)).concat(r).concat(t(A),")|(?:").concat(t(A)).concat(s).concat(t(A),")"),"g")};d.v4=function(_){return _&&_.exact?c:new RegExp("".concat(t(_)).concat(r).concat(t(_)),"g")},d.v6=function(_){return _&&_.exact?f:new RegExp("".concat(t(_)).concat(s).concat(t(_)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",y=d.v4().source,m=d.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",$='(?:[/?#][^\\s"]*)?',T="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(y,"|").concat(m,"|").concat(S).concat(b).concat(C,")").concat(x).concat($);return pd=new RegExp("(?:^".concat(T,"$)"),"i"),pd});var b0={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Au={integer:function(t){return Au.number(t)&&parseInt(t,10)===t},float:function(t){return Au.number(t)&&!Au.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ft(t)==="object"&&!Au.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(b0.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(b0.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(zG())},hex:function(t){return typeof t=="string"&&!!t.match(b0.hex)}},BG=function(t,r,n,i,o){if(t.required&&r===void 0){UP(t,r,n,i,o);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;s.indexOf(u)>-1?Au[u](r)||i.push(Un(o.messages.types[u],t.fullField,t.type)):u&&ft(r)!==t.type&&i.push(Un(o.messages.types[u],t.fullField,t.type))},VG=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(Un(o.messages.whitespace,t.fullField))};const wt={required:UP,whitespace:VG,type:BG,range:jG,enum:FG,pattern:NG};var HG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o)}n(s)},UG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(r==null&&!t.required)return n();wt.required(t,r,i,s,o,"array"),r!=null&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},WG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt.type(t,r,i,s,o)}n(s)},qG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r,"date")&&!t.required)return n();if(wt.required(t,r,i,s,o),!xr(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),wt.type(t,c,i,s,o),c&&wt.range(t,c.getTime(),i,s,o)}}n(s)},GG="enum",XG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt[GG](t,r,i,s,o)}n(s)},KG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},YG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},QG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt.type(t,r,i,s,o)}n(s)},JG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(r===""&&(r=void 0),xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},ZG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt.type(t,r,i,s,o)}n(s)},eX=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r,"string")&&!t.required)return n();wt.required(t,r,i,s,o),xr(r,"string")||wt.pattern(t,r,i,s,o)}n(s)},tX=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),xr(r)||wt.type(t,r,i,s,o)}n(s)},rX=function(t,r,n,i,o){var s=[],u=Array.isArray(r)?"array":ft(r);wt.required(t,r,i,s,o,u),n(s)},nX=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r,"string")&&!t.required)return n();wt.required(t,r,i,s,o,"string"),xr(r,"string")||(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o),wt.pattern(t,r,i,s,o),t.whitespace===!0&&wt.whitespace(t,r,i,s,o))}n(s)},hd=function(t,r,n,i,o){var s=t.type,u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(xr(r,s)&&!t.required)return n();wt.required(t,r,i,u,o,s),xr(r,s)||wt.type(t,r,i,u,o)}n(u)};const Vu={string:nX,method:QG,number:JG,boolean:WG,regexp:tX,integer:YG,float:KG,array:UG,object:ZG,enum:XG,pattern:eX,date:qG,url:hd,hex:hd,email:hd,tel:hd,required:rX,any:HG};var Ac=(function(){function e(t){Zr(this,e),ue(this,"rules",null),ue(this,"_messages",h1),this.define(t)}return en(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ft(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];n.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=QT(p1(),r)),this._messages}},{key:"validate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=r,u=i,c=o;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function f(m){var S=[],b={};function C($){if(Array.isArray($)){var T;S=(T=S).concat.apply(T,ot($))}else S.push($)}for(var x=0;x<m.length;x++)C(m[x]);S.length?(b=v1(S),c(S,b)):c(null,s)}if(u.messages){var d=this.messages();d===h1&&(d=p1()),QT(d,u.messages),u.messages=d}else u.messages=this.messages();var g={},h=u.keys||Object.keys(this.rules);h.forEach(function(m){var S=n.rules[m],b=s[m];S.forEach(function(C){var x=C;typeof x.transform=="function"&&(s===r&&(s=me({},s)),b=s[m]=x.transform(b),b!=null&&(x.type=x.type||(Array.isArray(b)?"array":ft(b)))),typeof x=="function"?x={validator:x}:x=me({},x),x.validator=n.getValidationMethod(x),x.validator&&(x.field=m,x.fullField=x.fullField||m,x.type=n.getType(x),g[m]=g[m]||[],g[m].push({rule:x,value:b,source:s,field:m}))})});var y={};return MG(g,u,function(m,S){var b=m.rule,C=(b.type==="object"||b.type==="array")&&(ft(b.fields)==="object"||ft(b.defaultField)==="object");C=C&&(b.required||!b.required&&m.value),b.field=m.field;function x(O,I){return me(me({},I),{},{fullField:"".concat(b.fullField,".").concat(O),fullFields:b.fullFields?[].concat(ot(b.fullFields),[O]):[O]})}function $(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(O)?O:[O];!u.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&b.message!==void 0&&b.message!==null&&(I=[].concat(b.message));var L=I.map(YT(b,s));if(u.first&&L.length)return y[b.field]=1,S(L);if(!C)S(L);else{if(b.required&&!m.value)return b.message!==void 0?L=[].concat(b.message).map(YT(b,s)):u.error&&(L=[u.error(b,Un(u.messages.required,b.field))]),S(L);var F={};b.defaultField&&Object.keys(m.value).map(function(B){F[B]=b.defaultField}),F=me(me({},F),m.rule.fields);var W={};Object.keys(F).forEach(function(B){var j=F[B],N=Array.isArray(j)?j:[j];W[B]=N.map(x.bind(null,B))});var z=new e(W);z.messages(u.messages),m.rule.options&&(m.rule.options.messages=u.messages,m.rule.options.error=u.error),z.validate(m.value,m.rule.options||u,function(B){var j=[];L&&L.length&&j.push.apply(j,ot(L)),B&&B.length&&j.push.apply(j,ot(B)),S(j.length?j:null)})}}var T;if(b.asyncValidator)T=b.asyncValidator(b,m.value,$,m.source,u);else if(b.validator){try{T=b.validator(b,m.value,$,m.source,u)}catch(O){var _,A;(_=(A=console).error)===null||_===void 0||_.call(A,O),u.suppressValidatorError||setTimeout(function(){throw O},0),$(O.message)}T===!0?$():T===!1?$(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):T instanceof Array?$(T):T instanceof Error&&$(T.message)}T&&T.then&&T.then(function(){return $()},function(O){return $(O)})},function(m){f(m)},s)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Vu.hasOwnProperty(r.type))throw new Error(Un("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?Vu.required:Vu[this.getType(r)]||void 0}}]),e})();ue(Ac,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Vu[t]=r});ue(Ac,"warning",AG);ue(Ac,"messages",h1);ue(Ac,"validators",Vu);var Fn="'${name}' is not a valid ${type}",WP={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Fn,method:Fn,array:Fn,object:Fn,number:Fn,date:Fn,boolean:Fn,integer:Fn,float:Fn,regexp:Fn,email:Fn,url:Fn,hex:Fn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},JT=Ac;function iX(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var ZT="CODE_LOGIC_ERROR";function m1(e,t,r,n,i){return y1.apply(this,arguments)}function y1(){return y1=$c(Ci().mark(function e(t,r,n,i,o){var s,u,c,f,d,g,h,y,m;return Ci().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=me({},n),delete s.ruleIndex,JT.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(ZT)}}),c=null,s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField),f=new JT(ue({},t,[s])),d=ul(WP,i.validateMessages),f.messages(d),g=[],b.prev=10,b.next=13,Promise.resolve(f.validate(ue({},t,r),me({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(g=b.t0.errors.map(function(C,x){var $=C.message,T=$===ZT?d.default:$;return E.isValidElement(T)?E.cloneElement(T,{key:"error_".concat(x)}):T}));case 18:if(!(!g.length&&c)){b.next=23;break}return b.next=21,Promise.all(r.map(function(C,x){return m1("".concat(t,".").concat(x),C,c,i,o)}));case 21:return h=b.sent,b.abrupt("return",h.reduce(function(C,x){return[].concat(ot(C),ot(x))},[]));case 23:return y=me(me({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),m=g.map(function(C){return typeof C=="string"?iX(C,y):C}),b.abrupt("return",m);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),y1.apply(this,arguments)}function oX(e,t,r,n,i,o){var s=e.join("."),u=r.map(function(d,g){var h=d.validator,y=me(me({},d),{},{ruleIndex:g});return h&&(y.validator=function(m,S,b){var C=!1,x=function(){for(var _=arguments.length,A=new Array(_),O=0;O<_;O++)A[O]=arguments[O];Promise.resolve().then(function(){qn(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||b.apply(void 0,A)})},$=h(m,S,x);C=$&&typeof $.then=="function"&&typeof $.catch=="function",qn(C,"`callback` is deprecated. Please return a promise instead."),C&&$.then(function(){b()}).catch(function(T){b(T||" ")})}),y}).sort(function(d,g){var h=d.warningOnly,y=d.ruleIndex,m=g.warningOnly,S=g.ruleIndex;return!!h==!!m?y-S:h?1:-1}),c;if(i===!0)c=new Promise((function(){var d=$c(Ci().mark(function g(h,y){var m,S,b;return Ci().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:m=0;case 1:if(!(m<u.length)){x.next=12;break}return S=u[m],x.next=5,m1(s,t,S,n,o);case 5:if(b=x.sent,!b.length){x.next=9;break}return y([{errors:b,rule:S}]),x.abrupt("return");case 9:m+=1,x.next=1;break;case 12:h([]);case 13:case"end":return x.stop()}},g)}));return function(g,h){return d.apply(this,arguments)}})());else{var f=u.map(function(d){return m1(s,t,d,n,o).then(function(g){return{errors:g,rule:d}})});c=(i?sX(f):aX(f)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function aX(e){return b1.apply(this,arguments)}function b1(){return b1=$c(Ci().mark(function e(t){return Ci().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var o,s=(o=[]).concat.apply(o,ot(i));return s}));case 1:case"end":return n.stop()}},e)})),b1.apply(this,arguments)}function sX(e){return S1.apply(this,arguments)}function S1(){return S1=$c(Ci().mark(function e(t){var r;return Ci().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(o){t.forEach(function(s){s.then(function(u){u.errors.length&&o([u]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),S1.apply(this,arguments)}function lr(e){return d1(e)}function e$(e,t){var r={};return t.forEach(function(n){var i=go(e,n);r=Bi(r,n,i)}),r}function hl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return qP(t,n,r)})}function qP(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,i){return e[i]===n})}function lX(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ft(e)!=="object"||ft(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return ot(i).every(function(o){var s=e[o],u=t[o];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function uX(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ft(t.target)==="object"&&e in t.target?t.target[e]:t}function t$(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(ot(e.slice(0,r)),[i],ot(e.slice(r,t)),ot(e.slice(t+1,n))):o<0?[].concat(ot(e.slice(0,t)),ot(e.slice(t+1,r+1)),[i],ot(e.slice(r+1,n))):e}var cX=["name"],di=[];function r$(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var Xb=(function(e){ys(r,e);var t=bs(r);function r(n){var i;if(Zr(this,r),i=t.call(this,n),ue(vt(i),"state",{resetCount:0}),ue(vt(i),"cancelRegisterFunc",null),ue(vt(i),"mounted",!1),ue(vt(i),"touched",!1),ue(vt(i),"dirty",!1),ue(vt(i),"validatePromise",void 0),ue(vt(i),"prevValidating",void 0),ue(vt(i),"errors",di),ue(vt(i),"warnings",di),ue(vt(i),"cancelRegister",function(){var c=i.props,f=c.preserve,d=c.isListField,g=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,f,lr(g)),i.cancelRegisterFunc=null}),ue(vt(i),"getNamePath",function(){var c=i.props,f=c.name,d=c.fieldContext,g=d.prefixName,h=g===void 0?[]:g;return f!==void 0?[].concat(ot(h),ot(f)):[]}),ue(vt(i),"getRules",function(){var c=i.props,f=c.rules,d=f===void 0?[]:f,g=c.fieldContext;return d.map(function(h){return typeof h=="function"?h(g):h})}),ue(vt(i),"refresh",function(){i.mounted&&i.setState(function(c){var f=c.resetCount;return{resetCount:f+1}})}),ue(vt(i),"metaCache",null),ue(vt(i),"triggerMetaEvent",function(c){var f=i.props.onMetaChange;if(f){var d=me(me({},i.getMeta()),{},{destroy:c});jy(i.metaCache,d)||f(d),i.metaCache=d}else i.metaCache=null}),ue(vt(i),"onStoreChange",function(c,f,d){var g=i.props,h=g.shouldUpdate,y=g.dependencies,m=y===void 0?[]:y,S=g.onReset,b=d.store,C=i.getNamePath(),x=i.getValue(c),$=i.getValue(b),T=f&&hl(f,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!jy(x,$)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=di,i.warnings=di,i.triggerMetaEvent()),d.type){case"reset":if(!f||T){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=di,i.warnings=di,i.triggerMetaEvent(),S?.(),i.refresh();return}break;case"remove":{if(h){i.reRender();return}break}case"setField":{var _=d.data;if(T){"touched"in _&&(i.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(i.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(i.errors=_.errors||di),"warnings"in _&&(i.warnings=_.warnings||di),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in _&&hl(f,C,!0)){i.reRender();return}if(h&&!C.length&&r$(h,c,b,x,$,d)){i.reRender();return}break}case"dependenciesUpdate":{var A=m.map(lr);if(A.some(function(O){return hl(d.relatedFields,O)})){i.reRender();return}break}default:if(T||(!m.length||C.length||h)&&r$(h,c,b,x,$,d)){i.reRender();return}break}h===!0&&i.reRender()}),ue(vt(i),"validateRules",function(c){var f=i.getNamePath(),d=i.getValue(),g=c||{},h=g.triggerName,y=g.validateOnly,m=y===void 0?!1:y,S=Promise.resolve().then($c(Ci().mark(function b(){var C,x,$,T,_,A,O;return Ci().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i.mounted){L.next=2;break}return L.abrupt("return",[]);case 2:if(C=i.props,x=C.validateFirst,$=x===void 0?!1:x,T=C.messageVariables,_=C.validateDebounce,A=i.getRules(),h&&(A=A.filter(function(F){return F}).filter(function(F){var W=F.validateTrigger;if(!W)return!0;var z=d1(W);return z.includes(h)})),!(_&&h)){L.next=10;break}return L.next=8,new Promise(function(F){setTimeout(F,_)});case 8:if(i.validatePromise===S){L.next=10;break}return L.abrupt("return",[]);case 10:return O=oX(f,d,A,c,$,T),O.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:di;if(i.validatePromise===S){var W;i.validatePromise=null;var z=[],B=[];(W=F.forEach)===null||W===void 0||W.call(F,function(j){var N=j.rule.warningOnly,X=j.errors,q=X===void 0?di:X;N?B.push.apply(B,ot(q)):z.push.apply(z,ot(q))}),i.errors=z,i.warnings=B,i.triggerMetaEvent(),i.reRender()}}),L.abrupt("return",O);case 13:case"end":return L.stop()}},b)})));return m||(i.validatePromise=S,i.dirty=!0,i.errors=di,i.warnings=di,i.triggerMetaEvent(),i.reRender()),S}),ue(vt(i),"isFieldValidating",function(){return!!i.validatePromise}),ue(vt(i),"isFieldTouched",function(){return i.touched}),ue(vt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,f=c.getInternalHooks(is),d=f.getInitialValue;return d(i.getNamePath())!==void 0}),ue(vt(i),"getErrors",function(){return i.errors}),ue(vt(i),"getWarnings",function(){return i.warnings}),ue(vt(i),"isListField",function(){return i.props.isListField}),ue(vt(i),"isList",function(){return i.props.isList}),ue(vt(i),"isPreserve",function(){return i.props.preserve}),ue(vt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),ue(vt(i),"getOnlyChild",function(c){if(typeof c=="function"){var f=i.getMeta();return me(me({},i.getOnlyChild(c(i.getControlled(),f,i.props.fieldContext))),{},{isFunction:!0})}var d=Rl(c);return d.length!==1||!E.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),ue(vt(i),"getValue",function(c){var f=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return go(c||f(!0),d)}),ue(vt(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=i.props,d=f.name,g=f.trigger,h=f.validateTrigger,y=f.getValueFromEvent,m=f.normalize,S=f.valuePropName,b=f.getValueProps,C=f.fieldContext,x=h!==void 0?h:C.validateTrigger,$=i.getNamePath(),T=C.getInternalHooks,_=C.getFieldsValue,A=T(is),O=A.dispatch,I=i.getValue(),L=b||function(j){return ue({},S,j)},F=c[g],W=d!==void 0?L(I):{},z=me(me({},c),W);z[g]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,N=arguments.length,X=new Array(N),q=0;q<N;q++)X[q]=arguments[q];y?j=y.apply(void 0,X):j=uX.apply(void 0,[S].concat(X)),m&&(j=m(j,I,_(!0))),O({type:"updateValue",namePath:$,value:j}),F&&F.apply(void 0,X)};var B=d1(x||[]);return B.forEach(function(j){var N=z[j];z[j]=function(){N&&N.apply(void 0,arguments);var X=i.props.rules;X&&X.length&&O({type:"validateField",namePath:$,triggerName:j})}}),z}),n.fieldContext){var o=n.fieldContext.getInternalHooks,s=o(is),u=s.initEntityValue;u(vt(i))}return i}return en(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,s=i.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,c=u(is),f=c.registerField;this.cancelRegisterFunc=f(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,s=this.getOnlyChild(o),u=s.child,c=s.isFunction,f;return c?f=u:E.isValidElement(u)?f=E.cloneElement(u,this.getControlled(u.props)):(qn(!u,"`children` of Field is not validate ReactElement."),f=u),E.createElement(E.Fragment,{key:i},f)}}]),r})(E.Component);ue(Xb,"contextType",kl);ue(Xb,"defaultProps",{trigger:"onChange",valuePropName:"value"});function GP(e){var t=e.name,r=Xn(e,cX),n=E.useContext(kl),i=E.useContext(hp),o=t!==void 0?lr(t):void 0,s="keep";return r.isListField||(s="_".concat((o||[]).join("_"))),E.createElement(Xb,fr({key:s,name:o,isListField:!!i},r,{fieldContext:n}))}function fX(e){var t=e.name,r=e.initialValue,n=e.children,i=e.rules,o=e.validateTrigger,s=e.isListField,u=E.useContext(kl),c=E.useContext(hp),f=E.useRef({keys:[],id:0}),d=f.current,g=E.useMemo(function(){var S=lr(u.prefixName)||[];return[].concat(ot(S),ot(lr(t)))},[u.prefixName,t]),h=E.useMemo(function(){return me(me({},u),{},{prefixName:g})},[u,g]),y=E.useMemo(function(){return{getKey:function(b){var C=g.length,x=b[C];return[d.keys[x],b.slice(C+1)]}}},[g]);if(typeof n!="function")return qn(!1,"Form.List only accepts function as children."),null;var m=function(b,C,x){var $=x.source;return $==="internal"?!1:b!==C};return E.createElement(hp.Provider,{value:y},E.createElement(kl.Provider,{value:h},E.createElement(GP,{name:[],shouldUpdate:m,rules:i,validateTrigger:o,initialValue:r,isList:!0,isListField:s??!!c},function(S,b){var C=S.value,x=C===void 0?[]:C,$=S.onChange,T=u.getFieldValue,_=function(){var L=T(g||[]);return L||[]},A={add:function(L,F){var W=_();F>=0&&F<=W.length?(d.keys=[].concat(ot(d.keys.slice(0,F)),[d.id],ot(d.keys.slice(F))),$([].concat(ot(W.slice(0,F)),[L],ot(W.slice(F))))):(d.keys=[].concat(ot(d.keys),[d.id]),$([].concat(ot(W),[L]))),d.id+=1},remove:function(L){var F=_(),W=new Set(Array.isArray(L)?L:[L]);W.size<=0||(d.keys=d.keys.filter(function(z,B){return!W.has(B)}),$(F.filter(function(z,B){return!W.has(B)})))},move:function(L,F){if(L!==F){var W=_();L<0||L>=W.length||F<0||F>=W.length||(d.keys=t$(d.keys,L,F),$(t$(W,L,F)))}}},O=x||[];return Array.isArray(O)||(O=[]),n(O.map(function(I,L){var F=d.keys[L];return F===void 0&&(d.keys[L]=d.id,F=d.keys[L],d.id+=1),{name:L,key:F,isListField:!0}}),A,b)})))}function dX(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(s,u){s.catch(function(c){return t=!0,c}).then(function(c){r-=1,n[u]=c,!(r>0)&&(t&&o(n),i(n))})})}):Promise.resolve([])}var XP="__@field_split__";function S0(e){return e.map(function(t){return"".concat(ft(t),":").concat(t)}).join(XP)}var Ys=(function(){function e(){Zr(this,e),ue(this,"kvs",new Map)}return en(e,[{key:"set",value:function(r,n){this.kvs.set(S0(r),n)}},{key:"get",value:function(r){return this.kvs.get(S0(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(S0(r))}},{key:"map",value:function(r){return ot(this.kvs.entries()).map(function(n){var i=Le(n,2),o=i[0],s=i[1],u=o.split(XP);return r({key:u.map(function(c){var f=c.match(/^([^:]*):(.*)$/),d=Le(f,3),g=d[1],h=d[2];return g==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e})(),pX=["name"],hX=en(function e(t){var r=this;Zr(this,e),ue(this,"formHooked",!1),ue(this,"forceRootUpdate",void 0),ue(this,"subscribable",!0),ue(this,"store",{}),ue(this,"fieldEntities",[]),ue(this,"initialValues",{}),ue(this,"callbacks",{}),ue(this,"validateMessages",null),ue(this,"preserve",null),ue(this,"lastValidatePromise",null),ue(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),ue(this,"getInternalHooks",function(n){return n===is?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(qn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ue(this,"useSubscribe",function(n){r.subscribable=n}),ue(this,"prevWithoutPreserves",null),ue(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var o,s=ul(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(u){var c=u.key;s=Bi(s,c,go(n,c))}),r.prevWithoutPreserves=null,r.updateStore(s)}}),ue(this,"destroyForm",function(n){if(n)r.updateStore({});else{var i=new Ys;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=i}}),ue(this,"getInitialValue",function(n){var i=go(r.initialValues,n);return n.length?ul(i):i}),ue(this,"setCallbacks",function(n){r.callbacks=n}),ue(this,"setValidateMessages",function(n){r.validateMessages=n}),ue(this,"setPreserve",function(n){r.preserve=n}),ue(this,"watchList",[]),ue(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),ue(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(s){s(i,o,n)})}}),ue(this,"timeoutId",null),ue(this,"warningUnhooked",function(){}),ue(this,"updateStore",function(n){r.store=n}),ue(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities}),ue(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Ys;return r.getFieldEntities(n).forEach(function(o){var s=o.getNamePath();i.set(s,o)}),i}),ue(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var s=lr(o);return i.get(s)||{INVALIDATE_NAME_PATH:lr(o)}})}),ue(this,"getFieldsValue",function(n,i){r.warningUnhooked();var o,s,u;if(n===!0||Array.isArray(n)?(o=n,s=i):n&&ft(n)==="object"&&(u=n.strict,s=n.filter),o===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),f=[];return c.forEach(function(d){var g,h,y="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(u){var m,S;if((m=(S=d).isList)!==null&&m!==void 0&&m.call(S))return}else if(!o&&(g=(h=d).isListField)!==null&&g!==void 0&&g.call(h))return;if(!s)f.push(y);else{var b="getMeta"in d?d.getMeta():null;s(b)&&f.push(y)}}),e$(r.store,f.map(lr))}),ue(this,"getFieldValue",function(n){r.warningUnhooked();var i=lr(n);return go(r.store,i)}),ue(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,s){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:lr(n[s]),errors:[],warnings:[]}})}),ue(this,"getFieldError",function(n){r.warningUnhooked();var i=lr(n),o=r.getFieldsError([i])[0];return o.errors}),ue(this,"getFieldWarning",function(n){r.warningUnhooked();var i=lr(n),o=r.getFieldsError([i])[0];return o.warnings}),ue(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=i[0],u=i[1],c,f=!1;i.length===0?c=null:i.length===1?Array.isArray(s)?(c=s.map(lr),f=!1):(c=null,f=s):(c=s.map(lr),f=u);var d=r.getFieldEntities(!0),g=function(b){return b.isFieldTouched()};if(!c)return f?d.every(function(S){return g(S)||S.isList()}):d.some(g);var h=new Ys;c.forEach(function(S){h.set(S,[])}),d.forEach(function(S){var b=S.getNamePath();c.forEach(function(C){C.every(function(x,$){return b[$]===x})&&h.update(C,function(x){return[].concat(ot(x),[S])})})});var y=function(b){return b.some(g)},m=h.map(function(S){var b=S.value;return b});return f?m.every(y):m.some(y)}),ue(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),ue(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(s){return s.isFieldValidating()});var o=n.map(lr);return i.some(function(s){var u=s.getNamePath();return hl(o,u)&&s.isFieldValidating()})}),ue(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),ue(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Ys,o=r.getFieldEntities(!0);o.forEach(function(c){var f=c.props.initialValue,d=c.getNamePath();if(f!==void 0){var g=i.get(d)||new Set;g.add({entity:c,value:f}),i.set(d,g)}});var s=function(f){f.forEach(function(d){var g=d.props.initialValue;if(g!==void 0){var h=d.getNamePath(),y=r.getInitialValue(h);if(y!==void 0)qn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var m=i.get(h);if(m&&m.size>1)qn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var S=r.getFieldValue(h),b=d.isListField();!b&&(!n.skipExist||S===void 0)&&r.updateStore(Bi(r.store,h,ot(m)[0].value))}}}})},u;n.entities?u=n.entities:n.namePathList?(u=[],n.namePathList.forEach(function(c){var f=i.get(c);if(f){var d;(d=u).push.apply(d,ot(ot(f).map(function(g){return g.entity})))}})):u=o,s(u)}),ue(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(ul(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(lr);o.forEach(function(s){var u=r.getInitialValue(s);r.updateStore(Bi(r.store,s,u))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o)}),ue(this,"setFields",function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(s){var u=s.name,c=Xn(s,pX),f=lr(u);o.push(f),"value"in c&&r.updateStore(Bi(r.store,f,c.value)),r.notifyObservers(i,[f],{type:"setField",data:s})}),r.notifyWatch(o)}),ue(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var s=o.getNamePath(),u=o.getMeta(),c=me(me({},u),{},{name:s,value:r.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),ue(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),s=go(r.store,o);s===void 0&&r.updateStore(Bi(r.store,o,i))}}),ue(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),ue(this,"registerField",function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(g){return g!==n}),!r.isMergedPreserve(u)&&(!s||c.length>1)){var f=s?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==f&&r.fieldEntities.every(function(g){return!qP(g.getNamePath(),i)})){var d=r.store;r.updateStore(Bi(d,i,f,!0)),r.notifyObservers(d,[i],{type:"remove"}),r.triggerDependenciesUpdate(d,i)}}r.notifyWatch([i])}}),ue(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var s=n.namePath,u=n.triggerName;r.validateFields([s],{triggerName:u});break}}}),ue(this,"notifyObservers",function(n,i,o){if(r.subscribable){var s=me(me({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(u){var c=u.onStoreChange;c(n,i,s)})}else r.forceRootUpdate()}),ue(this,"triggerDependenciesUpdate",function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(ot(o))}),o}),ue(this,"updateValue",function(n,i){var o=lr(n),s=r.store;r.updateStore(Bi(r.store,o,i)),r.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var u=r.triggerDependenciesUpdate(s,o),c=r.callbacks.onValuesChange;if(c){var f=e$(r.store,[o]);c(f,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(ot(u)))}),ue(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var o=ul(r.store,n);r.updateStore(o)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),ue(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i}])}),ue(this,"getDependencyChildrenFields",function(n){var i=new Set,o=[],s=new Ys;r.getFieldEntities().forEach(function(c){var f=c.props.dependencies;(f||[]).forEach(function(d){var g=lr(d);s.update(g,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(c),h})})});var u=function c(f){var d=s.get(f)||new Set;d.forEach(function(g){if(!i.has(g)){i.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(o.push(h),c(h))}})};return u(n),o}),ue(this,"triggerOnFieldsChange",function(n,i){var o=r.callbacks.onFieldsChange;if(o){var s=r.getFields();if(i){var u=new Ys;i.forEach(function(f){var d=f.name,g=f.errors;u.set(d,g)}),s.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var c=s.filter(function(f){var d=f.name;return hl(n,d)});c.length&&o(c,s)}}),ue(this,"validateFields",function(n,i){r.warningUnhooked();var o,s;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,s=i):s=n;var u=!!o,c=u?o.map(lr):[],f=[],d=String(Date.now()),g=new Set,h=s||{},y=h.recursive,m=h.dirty;r.getFieldEntities(!0).forEach(function(x){if(u||c.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(m&&!x.isFieldDirty())){var $=x.getNamePath();if(g.add($.join(d)),!u||hl(c,$,y)){var T=x.validateRules(me({validateMessages:me(me({},WP),r.validateMessages)},s));f.push(T.then(function(){return{name:$,errors:[],warnings:[]}}).catch(function(_){var A,O=[],I=[];return(A=_.forEach)===null||A===void 0||A.call(_,function(L){var F=L.rule.warningOnly,W=L.errors;F?I.push.apply(I,ot(W)):O.push.apply(O,ot(W))}),O.length?Promise.reject({name:$,errors:O,warnings:I}):{name:$,errors:O,warnings:I}}))}}});var S=dX(f);r.lastValidatePromise=S,S.catch(function(x){return x}).then(function(x){var $=x.map(function(T){var _=T.name;return _});r.notifyObservers(r.store,$,{type:"validateFinish"}),r.triggerOnFieldsChange($,x)});var b=S.then(function(){return r.lastValidatePromise===S?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(x){var $=x.filter(function(T){return T&&T.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:$,outOfDate:r.lastValidatePromise!==S})});b.catch(function(x){return x});var C=c.filter(function(x){return g.has(x.join(d))});return r.triggerOnFieldsChange(C),b}),ue(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(o){console.error(o)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=t});function KP(e){var t=E.useRef(),r=E.useState({}),n=Le(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},s=new hX(o);t.current=s.getForm()}return[t.current]}var w1=E.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),gX=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,s=E.useContext(w1),u=E.useRef({});return E.createElement(w1.Provider,{value:me(me({},s),{},{validateMessages:me(me({},s.validateMessages),r),triggerFormChange:function(f,d){n&&n(f,{changedFields:d,forms:u.current}),s.triggerFormChange(f,d)},triggerFormFinish:function(f,d){i&&i(f,{values:d,forms:u.current}),s.triggerFormFinish(f,d)},registerForm:function(f,d){f&&(u.current=me(me({},u.current),{},ue({},f,d))),s.registerForm(f,d)},unregisterForm:function(f){var d=me({},u.current);delete d[f],u.current=d,s.unregisterForm(f)}})},o)},vX=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],mX=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,s=t.form,u=t.preserve,c=t.children,f=t.component,d=f===void 0?"form":f,g=t.validateMessages,h=t.validateTrigger,y=h===void 0?"onChange":h,m=t.onValuesChange,S=t.onFieldsChange,b=t.onFinish,C=t.onFinishFailed,x=t.clearOnDestroy,$=Xn(t,vX),T=E.useRef(null),_=E.useContext(w1),A=KP(s),O=Le(A,1),I=O[0],L=I.getInternalHooks(is),F=L.useSubscribe,W=L.setInitialValues,z=L.setCallbacks,B=L.setValidateMessages,j=L.setPreserve,N=L.destroyForm;E.useImperativeHandle(r,function(){return me(me({},I),{},{nativeElement:T.current})}),E.useEffect(function(){return _.registerForm(n,I),function(){_.unregisterForm(n)}},[_,I,n]),B(me(me({},_.validateMessages),g)),z({onValuesChange:m,onFieldsChange:function(Z){if(_.triggerFormChange(n,Z),S){for(var te=arguments.length,K=new Array(te>1?te-1:0),ye=1;ye<te;ye++)K[ye-1]=arguments[ye];S.apply(void 0,[Z].concat(K))}},onFinish:function(Z){_.triggerFormFinish(n,Z),b&&b(Z)},onFinishFailed:C}),j(u);var X=E.useRef(null);W(i,!X.current),X.current||(X.current=!0),E.useEffect(function(){return function(){return N(x)}},[]);var q,M=typeof c=="function";if(M){var J=I.getFieldsValue(!0);q=c(J,I)}else q=c;F(!M);var U=E.useRef();E.useEffect(function(){lX(U.current||[],o||[])||I.setFields(o||[]),U.current=o},[o,I]);var D=E.useMemo(function(){return me(me({},I),{},{validateTrigger:y})},[I,y]),P=E.createElement(hp.Provider,{value:null},E.createElement(kl.Provider,{value:D},q));return d===!1?P:E.createElement(d,fr({},$,{ref:T,onSubmit:function(Z){Z.preventDefault(),Z.stopPropagation(),I.submit()},onReset:function(Z){var te;Z.preventDefault(),I.resetFields(),(te=$.onReset)===null||te===void 0||te.call($,Z)}}),P)};function n$(e){try{return JSON.stringify(e)}catch{return Math.random()}}function yX(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=i===void 0?{}:i,s=RG(o)?{form:o}:o,u=s.form,c=E.useState(),f=Le(c,2),d=f[0],g=f[1],h=E.useMemo(function(){return n$(d)},[d]),y=E.useRef(h);y.current=h;var m=E.useContext(kl),S=u||m,b=S&&S._init,C=lr(n),x=E.useRef(C);return x.current=C,E.useEffect(function(){if(b){var $=S.getFieldsValue,T=S.getInternalHooks,_=T(is),A=_.registerWatch,O=function(W,z){var B=s.preserve?z:W;return typeof n=="function"?n(B):go(B,x.current)},I=A(function(F,W){var z=O(F,W),B=n$(z);y.current!==B&&(y.current=B,g(z))}),L=O($(),$(!0));return d!==L&&g(L),I}},[b]),d}var bX=E.forwardRef(mX),Ic=bX;Ic.FormProvider=gX;Ic.Field=GP;Ic.List=fX;Ic.useForm=KP;Ic.useWatch=yX;const x1=E.createContext({}),SX=e=>{let{children:t,status:r,override:n}=e;const i=E.useContext(x1),o=E.useMemo(()=>{const s=Object.assign({},i);return n&&delete s.isFormItemInput,r&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[r,n,i]);return E.createElement(x1.Provider,{value:o},t)},wX=E.createContext(void 0),xX=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let i=n;return r&&(i=oe.createElement(SX,{override:!0,status:!0},i)),t&&(i=oe.createElement(dG,null,i)),i};var EX=function(t){if(On()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(i){return i in n.style})}return!1};function i$(e,t){return EX(e)}const CX=e=>({animationDuration:e,animationFillMode:"both"}),_X=e=>({animationDuration:e,animationFillMode:"both"}),RX=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
1152
+ }`),i)}else cc(i);return function(){cc(i)}},[t,i])}var EG=!1;function CG(e){return EG}var WT=function(t){return t===!1?!1:!On()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},HP=E.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,s=o===void 0?!0:o,u=e.children,c=E.useState(r),f=Le(c,2),d=f[0],g=f[1],h=d||r;E.useEffect(function(){(s||r)&&g(r)},[r,s]);var y=E.useState(function(){return WT(i)}),m=Le(y,2),S=m[0],b=m[1];E.useEffect(function(){var W=WT(i);b(W??null)});var C=mG(h&&!S),x=Le(C,2),$=x[0],T=x[1],_=S??$;xG(n&&r&&On()&&(_===$||_===document.body));var A=null;if(u&&Fp(u)&&t){var O=u;A=O.ref}var I=kb(A,t);if(!h||!On()||S===void 0)return null;var L=_===!1||CG(),F=u;return t&&(F=E.cloneElement(u,{ref:I})),E.createElement(VP.Provider,{value:T},L?F:Sp.createPortal(F,_))});function _G(){var e=me({},bp);return e.useId}var qT=0,GT=_G();const RG=GT?(function(t){var r=GT();return t||r}):(function(t){var r=E.useState("ssr-id"),n=Le(r,2),i=n[0],o=n[1];return E.useEffect(function(){var s=qT;qT+=1,o("rc_unique_".concat(s))},[]),t||i});var is="RC_FORM_INTERNAL_HOOKS",Vt=function(){qn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kl=E.createContext({getFieldValue:Vt,getFieldsValue:Vt,getFieldError:Vt,getFieldWarning:Vt,getFieldsError:Vt,isFieldsTouched:Vt,isFieldTouched:Vt,isFieldValidating:Vt,isFieldsValidating:Vt,resetFields:Vt,setFields:Vt,setFieldValue:Vt,setFieldsValue:Vt,validateFields:Vt,submit:Vt,getInternalHooks:function(){return Vt(),{dispatch:Vt,initEntityValue:Vt,registerField:Vt,useSubscribe:Vt,setInitialValues:Vt,destroyForm:Vt,setCallbacks:Vt,registerWatch:Vt,getFields:Vt,setValidateMessages:Vt,setPreserve:Vt,getInitialValue:Vt}}}),hp=E.createContext(null);function d1(e){return e==null?[]:Array.isArray(e)?e:[e]}function OG(e){return e&&!!e._init}function p1(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var h1=p1();function TG(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function $G(e,t,r){if(xb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&nc(i,r.prototype),i}function g1(e){var t=typeof Map=="function"?new Map:void 0;return g1=function(n){if(n===null||!TG(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return $G(n,arguments,ic(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),nc(i,n)},g1(e)}var AG=/%[sdj%]/g,IG=function(){};function v1(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Un(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace(AG,function(u){if(u==="%%")return"%";if(i>=o)return u;switch(u){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return u}});return s}return e}function PG(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function xr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||PG(t)&&typeof e=="string"&&!e)}function kG(e,t,r){var n=[],i=0,o=e.length;function s(u){n.push.apply(n,ot(u||[])),i++,i===o&&r(n)}e.forEach(function(u){t(u,s)})}function XT(e,t,r){var n=0,i=e.length;function o(s){if(s&&s.length){r(s);return}var u=n;n=n+1,u<i?t(e[u],o):r([])}o([])}function MG(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ot(e[r]||[]))}),t}var KT=(function(e){ys(r,e);var t=bs(r);function r(n,i){var o;return Zr(this,r),o=t.call(this,"Async Validation Error"),ue(vt(o),"errors",void 0),ue(vt(o),"fields",void 0),o.errors=n,o.fields=i,o}return en(r)})(g1(Error));function DG(e,t,r,n,i){if(t.first){var o=new Promise(function(h,y){var m=function(C){return n(C),C.length?y(new KT(C,v1(C))):h(i)},S=MG(e);XT(S,r,m)});return o.catch(function(h){return h}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),c=u.length,f=0,d=[],g=new Promise(function(h,y){var m=function(b){if(d.push.apply(d,b),f++,f===c)return n(d),d.length?y(new KT(d,v1(d))):h(i)};u.length||(n(d),h(i)),u.forEach(function(S){var b=e[S];s.indexOf(S)!==-1?XT(b,r,m):kG(b,r,m)})});return g.catch(function(h){return h}),g}function LG(e){return!!(e&&e.message!==void 0)}function FG(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function YT(e,t){return function(r){var n;return e.fullFields?n=FG(t,e.fullFields):n=t[r.field||e.fullField],LG(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function QT(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];ft(n)==="object"&&ft(e[r])==="object"?e[r]=me(me({},e[r]),n):e[r]=n}}return e}var Ks="enum",NG=function(t,r,n,i,o){t[Ks]=Array.isArray(t[Ks])?t[Ks]:[],t[Ks].indexOf(r)===-1&&i.push(Un(o.messages[Ks],t.fullField,t[Ks].join(", ")))},jG=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Un(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(r)||i.push(Un(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},zG=function(t,r,n,i,o){var s=typeof t.len=="number",u=typeof t.min=="number",c=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,g=null,h=typeof r=="number",y=typeof r=="string",m=Array.isArray(r);if(h?g="number":y?g="string":m&&(g="array"),!g)return!1;m&&(d=r.length),y&&(d=r.replace(f,"_").length),s?d!==t.len&&i.push(Un(o.messages[g].len,t.fullField,t.len)):u&&!c&&d<t.min?i.push(Un(o.messages[g].min,t.fullField,t.min)):c&&!u&&d>t.max?i.push(Un(o.messages[g].max,t.fullField,t.max)):u&&c&&(d<t.min||d>t.max)&&i.push(Un(o.messages[g].range,t.fullField,t.min,t.max))},UP=function(t,r,n,i,o,s){t.required&&(!n.hasOwnProperty(t.field)||xr(r,s||t.type))&&i.push(Un(o.messages.required,t.fullField))},pd;const BG=(function(){if(pd)return pd;var e="[a-fA-F\\d:]",t=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(i.join("|"),")").concat(o),u=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),c=new RegExp("^".concat(r,"$")),f=new RegExp("^".concat(s,"$")),d=function(A){return A&&A.exact?u:new RegExp("(?:".concat(t(A)).concat(r).concat(t(A),")|(?:").concat(t(A)).concat(s).concat(t(A),")"),"g")};d.v4=function(_){return _&&_.exact?c:new RegExp("".concat(t(_)).concat(r).concat(t(_)),"g")},d.v6=function(_){return _&&_.exact?f:new RegExp("".concat(t(_)).concat(s).concat(t(_)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",y=d.v4().source,m=d.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",$='(?:[/?#][^\\s"]*)?',T="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(y,"|").concat(m,"|").concat(S).concat(b).concat(C,")").concat(x).concat($);return pd=new RegExp("(?:^".concat(T,"$)"),"i"),pd});var b0={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Au={integer:function(t){return Au.number(t)&&parseInt(t,10)===t},float:function(t){return Au.number(t)&&!Au.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ft(t)==="object"&&!Au.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(b0.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(b0.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(BG())},hex:function(t){return typeof t=="string"&&!!t.match(b0.hex)}},VG=function(t,r,n,i,o){if(t.required&&r===void 0){UP(t,r,n,i,o);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;s.indexOf(u)>-1?Au[u](r)||i.push(Un(o.messages.types[u],t.fullField,t.type)):u&&ft(r)!==t.type&&i.push(Un(o.messages.types[u],t.fullField,t.type))},HG=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(Un(o.messages.whitespace,t.fullField))};const wt={required:UP,whitespace:HG,type:VG,range:zG,enum:NG,pattern:jG};var UG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o)}n(s)},WG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(r==null&&!t.required)return n();wt.required(t,r,i,s,o,"array"),r!=null&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},qG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt.type(t,r,i,s,o)}n(s)},GG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r,"date")&&!t.required)return n();if(wt.required(t,r,i,s,o),!xr(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),wt.type(t,c,i,s,o),c&&wt.range(t,c.getTime(),i,s,o)}}n(s)},XG="enum",KG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt[XG](t,r,i,s,o)}n(s)},YG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},QG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},JG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt.type(t,r,i,s,o)}n(s)},ZG=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(r===""&&(r=void 0),xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o))}n(s)},eX=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),r!==void 0&&wt.type(t,r,i,s,o)}n(s)},tX=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r,"string")&&!t.required)return n();wt.required(t,r,i,s,o),xr(r,"string")||wt.pattern(t,r,i,s,o)}n(s)},rX=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r)&&!t.required)return n();wt.required(t,r,i,s,o),xr(r)||wt.type(t,r,i,s,o)}n(s)},nX=function(t,r,n,i,o){var s=[],u=Array.isArray(r)?"array":ft(r);wt.required(t,r,i,s,o,u),n(s)},iX=function(t,r,n,i,o){var s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(xr(r,"string")&&!t.required)return n();wt.required(t,r,i,s,o,"string"),xr(r,"string")||(wt.type(t,r,i,s,o),wt.range(t,r,i,s,o),wt.pattern(t,r,i,s,o),t.whitespace===!0&&wt.whitespace(t,r,i,s,o))}n(s)},hd=function(t,r,n,i,o){var s=t.type,u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(xr(r,s)&&!t.required)return n();wt.required(t,r,i,u,o,s),xr(r,s)||wt.type(t,r,i,u,o)}n(u)};const Vu={string:iX,method:JG,number:ZG,boolean:qG,regexp:rX,integer:QG,float:YG,array:WG,object:eX,enum:KG,pattern:tX,date:GG,url:hd,hex:hd,email:hd,tel:hd,required:nX,any:UG};var Ac=(function(){function e(t){Zr(this,e),ue(this,"rules",null),ue(this,"_messages",h1),this.define(t)}return en(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ft(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];n.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=QT(p1(),r)),this._messages}},{key:"validate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=r,u=i,c=o;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function f(m){var S=[],b={};function C($){if(Array.isArray($)){var T;S=(T=S).concat.apply(T,ot($))}else S.push($)}for(var x=0;x<m.length;x++)C(m[x]);S.length?(b=v1(S),c(S,b)):c(null,s)}if(u.messages){var d=this.messages();d===h1&&(d=p1()),QT(d,u.messages),u.messages=d}else u.messages=this.messages();var g={},h=u.keys||Object.keys(this.rules);h.forEach(function(m){var S=n.rules[m],b=s[m];S.forEach(function(C){var x=C;typeof x.transform=="function"&&(s===r&&(s=me({},s)),b=s[m]=x.transform(b),b!=null&&(x.type=x.type||(Array.isArray(b)?"array":ft(b)))),typeof x=="function"?x={validator:x}:x=me({},x),x.validator=n.getValidationMethod(x),x.validator&&(x.field=m,x.fullField=x.fullField||m,x.type=n.getType(x),g[m]=g[m]||[],g[m].push({rule:x,value:b,source:s,field:m}))})});var y={};return DG(g,u,function(m,S){var b=m.rule,C=(b.type==="object"||b.type==="array")&&(ft(b.fields)==="object"||ft(b.defaultField)==="object");C=C&&(b.required||!b.required&&m.value),b.field=m.field;function x(O,I){return me(me({},I),{},{fullField:"".concat(b.fullField,".").concat(O),fullFields:b.fullFields?[].concat(ot(b.fullFields),[O]):[O]})}function $(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(O)?O:[O];!u.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&b.message!==void 0&&b.message!==null&&(I=[].concat(b.message));var L=I.map(YT(b,s));if(u.first&&L.length)return y[b.field]=1,S(L);if(!C)S(L);else{if(b.required&&!m.value)return b.message!==void 0?L=[].concat(b.message).map(YT(b,s)):u.error&&(L=[u.error(b,Un(u.messages.required,b.field))]),S(L);var F={};b.defaultField&&Object.keys(m.value).map(function(B){F[B]=b.defaultField}),F=me(me({},F),m.rule.fields);var W={};Object.keys(F).forEach(function(B){var j=F[B],N=Array.isArray(j)?j:[j];W[B]=N.map(x.bind(null,B))});var z=new e(W);z.messages(u.messages),m.rule.options&&(m.rule.options.messages=u.messages,m.rule.options.error=u.error),z.validate(m.value,m.rule.options||u,function(B){var j=[];L&&L.length&&j.push.apply(j,ot(L)),B&&B.length&&j.push.apply(j,ot(B)),S(j.length?j:null)})}}var T;if(b.asyncValidator)T=b.asyncValidator(b,m.value,$,m.source,u);else if(b.validator){try{T=b.validator(b,m.value,$,m.source,u)}catch(O){var _,A;(_=(A=console).error)===null||_===void 0||_.call(A,O),u.suppressValidatorError||setTimeout(function(){throw O},0),$(O.message)}T===!0?$():T===!1?$(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):T instanceof Array?$(T):T instanceof Error&&$(T.message)}T&&T.then&&T.then(function(){return $()},function(O){return $(O)})},function(m){f(m)},s)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Vu.hasOwnProperty(r.type))throw new Error(Un("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?Vu.required:Vu[this.getType(r)]||void 0}}]),e})();ue(Ac,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Vu[t]=r});ue(Ac,"warning",IG);ue(Ac,"messages",h1);ue(Ac,"validators",Vu);var Fn="'${name}' is not a valid ${type}",WP={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Fn,method:Fn,array:Fn,object:Fn,number:Fn,date:Fn,boolean:Fn,integer:Fn,float:Fn,regexp:Fn,email:Fn,url:Fn,hex:Fn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},JT=Ac;function oX(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var ZT="CODE_LOGIC_ERROR";function m1(e,t,r,n,i){return y1.apply(this,arguments)}function y1(){return y1=$c(Ci().mark(function e(t,r,n,i,o){var s,u,c,f,d,g,h,y,m;return Ci().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=me({},n),delete s.ruleIndex,JT.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(ZT)}}),c=null,s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField),f=new JT(ue({},t,[s])),d=ul(WP,i.validateMessages),f.messages(d),g=[],b.prev=10,b.next=13,Promise.resolve(f.validate(ue({},t,r),me({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(g=b.t0.errors.map(function(C,x){var $=C.message,T=$===ZT?d.default:$;return E.isValidElement(T)?E.cloneElement(T,{key:"error_".concat(x)}):T}));case 18:if(!(!g.length&&c)){b.next=23;break}return b.next=21,Promise.all(r.map(function(C,x){return m1("".concat(t,".").concat(x),C,c,i,o)}));case 21:return h=b.sent,b.abrupt("return",h.reduce(function(C,x){return[].concat(ot(C),ot(x))},[]));case 23:return y=me(me({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),m=g.map(function(C){return typeof C=="string"?oX(C,y):C}),b.abrupt("return",m);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),y1.apply(this,arguments)}function aX(e,t,r,n,i,o){var s=e.join("."),u=r.map(function(d,g){var h=d.validator,y=me(me({},d),{},{ruleIndex:g});return h&&(y.validator=function(m,S,b){var C=!1,x=function(){for(var _=arguments.length,A=new Array(_),O=0;O<_;O++)A[O]=arguments[O];Promise.resolve().then(function(){qn(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||b.apply(void 0,A)})},$=h(m,S,x);C=$&&typeof $.then=="function"&&typeof $.catch=="function",qn(C,"`callback` is deprecated. Please return a promise instead."),C&&$.then(function(){b()}).catch(function(T){b(T||" ")})}),y}).sort(function(d,g){var h=d.warningOnly,y=d.ruleIndex,m=g.warningOnly,S=g.ruleIndex;return!!h==!!m?y-S:h?1:-1}),c;if(i===!0)c=new Promise((function(){var d=$c(Ci().mark(function g(h,y){var m,S,b;return Ci().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:m=0;case 1:if(!(m<u.length)){x.next=12;break}return S=u[m],x.next=5,m1(s,t,S,n,o);case 5:if(b=x.sent,!b.length){x.next=9;break}return y([{errors:b,rule:S}]),x.abrupt("return");case 9:m+=1,x.next=1;break;case 12:h([]);case 13:case"end":return x.stop()}},g)}));return function(g,h){return d.apply(this,arguments)}})());else{var f=u.map(function(d){return m1(s,t,d,n,o).then(function(g){return{errors:g,rule:d}})});c=(i?lX(f):sX(f)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function sX(e){return b1.apply(this,arguments)}function b1(){return b1=$c(Ci().mark(function e(t){return Ci().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var o,s=(o=[]).concat.apply(o,ot(i));return s}));case 1:case"end":return n.stop()}},e)})),b1.apply(this,arguments)}function lX(e){return S1.apply(this,arguments)}function S1(){return S1=$c(Ci().mark(function e(t){var r;return Ci().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(o){t.forEach(function(s){s.then(function(u){u.errors.length&&o([u]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),S1.apply(this,arguments)}function lr(e){return d1(e)}function e$(e,t){var r={};return t.forEach(function(n){var i=go(e,n);r=Bi(r,n,i)}),r}function hl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return qP(t,n,r)})}function qP(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,i){return e[i]===n})}function uX(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ft(e)!=="object"||ft(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return ot(i).every(function(o){var s=e[o],u=t[o];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function cX(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ft(t.target)==="object"&&e in t.target?t.target[e]:t}function t$(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(ot(e.slice(0,r)),[i],ot(e.slice(r,t)),ot(e.slice(t+1,n))):o<0?[].concat(ot(e.slice(0,t)),ot(e.slice(t+1,r+1)),[i],ot(e.slice(r+1,n))):e}var fX=["name"],di=[];function r$(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var Xb=(function(e){ys(r,e);var t=bs(r);function r(n){var i;if(Zr(this,r),i=t.call(this,n),ue(vt(i),"state",{resetCount:0}),ue(vt(i),"cancelRegisterFunc",null),ue(vt(i),"mounted",!1),ue(vt(i),"touched",!1),ue(vt(i),"dirty",!1),ue(vt(i),"validatePromise",void 0),ue(vt(i),"prevValidating",void 0),ue(vt(i),"errors",di),ue(vt(i),"warnings",di),ue(vt(i),"cancelRegister",function(){var c=i.props,f=c.preserve,d=c.isListField,g=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,f,lr(g)),i.cancelRegisterFunc=null}),ue(vt(i),"getNamePath",function(){var c=i.props,f=c.name,d=c.fieldContext,g=d.prefixName,h=g===void 0?[]:g;return f!==void 0?[].concat(ot(h),ot(f)):[]}),ue(vt(i),"getRules",function(){var c=i.props,f=c.rules,d=f===void 0?[]:f,g=c.fieldContext;return d.map(function(h){return typeof h=="function"?h(g):h})}),ue(vt(i),"refresh",function(){i.mounted&&i.setState(function(c){var f=c.resetCount;return{resetCount:f+1}})}),ue(vt(i),"metaCache",null),ue(vt(i),"triggerMetaEvent",function(c){var f=i.props.onMetaChange;if(f){var d=me(me({},i.getMeta()),{},{destroy:c});jy(i.metaCache,d)||f(d),i.metaCache=d}else i.metaCache=null}),ue(vt(i),"onStoreChange",function(c,f,d){var g=i.props,h=g.shouldUpdate,y=g.dependencies,m=y===void 0?[]:y,S=g.onReset,b=d.store,C=i.getNamePath(),x=i.getValue(c),$=i.getValue(b),T=f&&hl(f,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!jy(x,$)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=di,i.warnings=di,i.triggerMetaEvent()),d.type){case"reset":if(!f||T){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=di,i.warnings=di,i.triggerMetaEvent(),S?.(),i.refresh();return}break;case"remove":{if(h){i.reRender();return}break}case"setField":{var _=d.data;if(T){"touched"in _&&(i.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(i.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(i.errors=_.errors||di),"warnings"in _&&(i.warnings=_.warnings||di),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in _&&hl(f,C,!0)){i.reRender();return}if(h&&!C.length&&r$(h,c,b,x,$,d)){i.reRender();return}break}case"dependenciesUpdate":{var A=m.map(lr);if(A.some(function(O){return hl(d.relatedFields,O)})){i.reRender();return}break}default:if(T||(!m.length||C.length||h)&&r$(h,c,b,x,$,d)){i.reRender();return}break}h===!0&&i.reRender()}),ue(vt(i),"validateRules",function(c){var f=i.getNamePath(),d=i.getValue(),g=c||{},h=g.triggerName,y=g.validateOnly,m=y===void 0?!1:y,S=Promise.resolve().then($c(Ci().mark(function b(){var C,x,$,T,_,A,O;return Ci().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i.mounted){L.next=2;break}return L.abrupt("return",[]);case 2:if(C=i.props,x=C.validateFirst,$=x===void 0?!1:x,T=C.messageVariables,_=C.validateDebounce,A=i.getRules(),h&&(A=A.filter(function(F){return F}).filter(function(F){var W=F.validateTrigger;if(!W)return!0;var z=d1(W);return z.includes(h)})),!(_&&h)){L.next=10;break}return L.next=8,new Promise(function(F){setTimeout(F,_)});case 8:if(i.validatePromise===S){L.next=10;break}return L.abrupt("return",[]);case 10:return O=aX(f,d,A,c,$,T),O.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:di;if(i.validatePromise===S){var W;i.validatePromise=null;var z=[],B=[];(W=F.forEach)===null||W===void 0||W.call(F,function(j){var N=j.rule.warningOnly,X=j.errors,q=X===void 0?di:X;N?B.push.apply(B,ot(q)):z.push.apply(z,ot(q))}),i.errors=z,i.warnings=B,i.triggerMetaEvent(),i.reRender()}}),L.abrupt("return",O);case 13:case"end":return L.stop()}},b)})));return m||(i.validatePromise=S,i.dirty=!0,i.errors=di,i.warnings=di,i.triggerMetaEvent(),i.reRender()),S}),ue(vt(i),"isFieldValidating",function(){return!!i.validatePromise}),ue(vt(i),"isFieldTouched",function(){return i.touched}),ue(vt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,f=c.getInternalHooks(is),d=f.getInitialValue;return d(i.getNamePath())!==void 0}),ue(vt(i),"getErrors",function(){return i.errors}),ue(vt(i),"getWarnings",function(){return i.warnings}),ue(vt(i),"isListField",function(){return i.props.isListField}),ue(vt(i),"isList",function(){return i.props.isList}),ue(vt(i),"isPreserve",function(){return i.props.preserve}),ue(vt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),ue(vt(i),"getOnlyChild",function(c){if(typeof c=="function"){var f=i.getMeta();return me(me({},i.getOnlyChild(c(i.getControlled(),f,i.props.fieldContext))),{},{isFunction:!0})}var d=Rl(c);return d.length!==1||!E.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),ue(vt(i),"getValue",function(c){var f=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return go(c||f(!0),d)}),ue(vt(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=i.props,d=f.name,g=f.trigger,h=f.validateTrigger,y=f.getValueFromEvent,m=f.normalize,S=f.valuePropName,b=f.getValueProps,C=f.fieldContext,x=h!==void 0?h:C.validateTrigger,$=i.getNamePath(),T=C.getInternalHooks,_=C.getFieldsValue,A=T(is),O=A.dispatch,I=i.getValue(),L=b||function(j){return ue({},S,j)},F=c[g],W=d!==void 0?L(I):{},z=me(me({},c),W);z[g]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,N=arguments.length,X=new Array(N),q=0;q<N;q++)X[q]=arguments[q];y?j=y.apply(void 0,X):j=cX.apply(void 0,[S].concat(X)),m&&(j=m(j,I,_(!0))),O({type:"updateValue",namePath:$,value:j}),F&&F.apply(void 0,X)};var B=d1(x||[]);return B.forEach(function(j){var N=z[j];z[j]=function(){N&&N.apply(void 0,arguments);var X=i.props.rules;X&&X.length&&O({type:"validateField",namePath:$,triggerName:j})}}),z}),n.fieldContext){var o=n.fieldContext.getInternalHooks,s=o(is),u=s.initEntityValue;u(vt(i))}return i}return en(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,s=i.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,c=u(is),f=c.registerField;this.cancelRegisterFunc=f(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,s=this.getOnlyChild(o),u=s.child,c=s.isFunction,f;return c?f=u:E.isValidElement(u)?f=E.cloneElement(u,this.getControlled(u.props)):(qn(!u,"`children` of Field is not validate ReactElement."),f=u),E.createElement(E.Fragment,{key:i},f)}}]),r})(E.Component);ue(Xb,"contextType",kl);ue(Xb,"defaultProps",{trigger:"onChange",valuePropName:"value"});function GP(e){var t=e.name,r=Xn(e,fX),n=E.useContext(kl),i=E.useContext(hp),o=t!==void 0?lr(t):void 0,s="keep";return r.isListField||(s="_".concat((o||[]).join("_"))),E.createElement(Xb,fr({key:s,name:o,isListField:!!i},r,{fieldContext:n}))}function dX(e){var t=e.name,r=e.initialValue,n=e.children,i=e.rules,o=e.validateTrigger,s=e.isListField,u=E.useContext(kl),c=E.useContext(hp),f=E.useRef({keys:[],id:0}),d=f.current,g=E.useMemo(function(){var S=lr(u.prefixName)||[];return[].concat(ot(S),ot(lr(t)))},[u.prefixName,t]),h=E.useMemo(function(){return me(me({},u),{},{prefixName:g})},[u,g]),y=E.useMemo(function(){return{getKey:function(b){var C=g.length,x=b[C];return[d.keys[x],b.slice(C+1)]}}},[g]);if(typeof n!="function")return qn(!1,"Form.List only accepts function as children."),null;var m=function(b,C,x){var $=x.source;return $==="internal"?!1:b!==C};return E.createElement(hp.Provider,{value:y},E.createElement(kl.Provider,{value:h},E.createElement(GP,{name:[],shouldUpdate:m,rules:i,validateTrigger:o,initialValue:r,isList:!0,isListField:s??!!c},function(S,b){var C=S.value,x=C===void 0?[]:C,$=S.onChange,T=u.getFieldValue,_=function(){var L=T(g||[]);return L||[]},A={add:function(L,F){var W=_();F>=0&&F<=W.length?(d.keys=[].concat(ot(d.keys.slice(0,F)),[d.id],ot(d.keys.slice(F))),$([].concat(ot(W.slice(0,F)),[L],ot(W.slice(F))))):(d.keys=[].concat(ot(d.keys),[d.id]),$([].concat(ot(W),[L]))),d.id+=1},remove:function(L){var F=_(),W=new Set(Array.isArray(L)?L:[L]);W.size<=0||(d.keys=d.keys.filter(function(z,B){return!W.has(B)}),$(F.filter(function(z,B){return!W.has(B)})))},move:function(L,F){if(L!==F){var W=_();L<0||L>=W.length||F<0||F>=W.length||(d.keys=t$(d.keys,L,F),$(t$(W,L,F)))}}},O=x||[];return Array.isArray(O)||(O=[]),n(O.map(function(I,L){var F=d.keys[L];return F===void 0&&(d.keys[L]=d.id,F=d.keys[L],d.id+=1),{name:L,key:F,isListField:!0}}),A,b)})))}function pX(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(s,u){s.catch(function(c){return t=!0,c}).then(function(c){r-=1,n[u]=c,!(r>0)&&(t&&o(n),i(n))})})}):Promise.resolve([])}var XP="__@field_split__";function S0(e){return e.map(function(t){return"".concat(ft(t),":").concat(t)}).join(XP)}var Ys=(function(){function e(){Zr(this,e),ue(this,"kvs",new Map)}return en(e,[{key:"set",value:function(r,n){this.kvs.set(S0(r),n)}},{key:"get",value:function(r){return this.kvs.get(S0(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(S0(r))}},{key:"map",value:function(r){return ot(this.kvs.entries()).map(function(n){var i=Le(n,2),o=i[0],s=i[1],u=o.split(XP);return r({key:u.map(function(c){var f=c.match(/^([^:]*):(.*)$/),d=Le(f,3),g=d[1],h=d[2];return g==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e})(),hX=["name"],gX=en(function e(t){var r=this;Zr(this,e),ue(this,"formHooked",!1),ue(this,"forceRootUpdate",void 0),ue(this,"subscribable",!0),ue(this,"store",{}),ue(this,"fieldEntities",[]),ue(this,"initialValues",{}),ue(this,"callbacks",{}),ue(this,"validateMessages",null),ue(this,"preserve",null),ue(this,"lastValidatePromise",null),ue(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),ue(this,"getInternalHooks",function(n){return n===is?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(qn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ue(this,"useSubscribe",function(n){r.subscribable=n}),ue(this,"prevWithoutPreserves",null),ue(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var o,s=ul(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(u){var c=u.key;s=Bi(s,c,go(n,c))}),r.prevWithoutPreserves=null,r.updateStore(s)}}),ue(this,"destroyForm",function(n){if(n)r.updateStore({});else{var i=new Ys;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=i}}),ue(this,"getInitialValue",function(n){var i=go(r.initialValues,n);return n.length?ul(i):i}),ue(this,"setCallbacks",function(n){r.callbacks=n}),ue(this,"setValidateMessages",function(n){r.validateMessages=n}),ue(this,"setPreserve",function(n){r.preserve=n}),ue(this,"watchList",[]),ue(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),ue(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(s){s(i,o,n)})}}),ue(this,"timeoutId",null),ue(this,"warningUnhooked",function(){}),ue(this,"updateStore",function(n){r.store=n}),ue(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities}),ue(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Ys;return r.getFieldEntities(n).forEach(function(o){var s=o.getNamePath();i.set(s,o)}),i}),ue(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var s=lr(o);return i.get(s)||{INVALIDATE_NAME_PATH:lr(o)}})}),ue(this,"getFieldsValue",function(n,i){r.warningUnhooked();var o,s,u;if(n===!0||Array.isArray(n)?(o=n,s=i):n&&ft(n)==="object"&&(u=n.strict,s=n.filter),o===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),f=[];return c.forEach(function(d){var g,h,y="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(u){var m,S;if((m=(S=d).isList)!==null&&m!==void 0&&m.call(S))return}else if(!o&&(g=(h=d).isListField)!==null&&g!==void 0&&g.call(h))return;if(!s)f.push(y);else{var b="getMeta"in d?d.getMeta():null;s(b)&&f.push(y)}}),e$(r.store,f.map(lr))}),ue(this,"getFieldValue",function(n){r.warningUnhooked();var i=lr(n);return go(r.store,i)}),ue(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,s){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:lr(n[s]),errors:[],warnings:[]}})}),ue(this,"getFieldError",function(n){r.warningUnhooked();var i=lr(n),o=r.getFieldsError([i])[0];return o.errors}),ue(this,"getFieldWarning",function(n){r.warningUnhooked();var i=lr(n),o=r.getFieldsError([i])[0];return o.warnings}),ue(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=i[0],u=i[1],c,f=!1;i.length===0?c=null:i.length===1?Array.isArray(s)?(c=s.map(lr),f=!1):(c=null,f=s):(c=s.map(lr),f=u);var d=r.getFieldEntities(!0),g=function(b){return b.isFieldTouched()};if(!c)return f?d.every(function(S){return g(S)||S.isList()}):d.some(g);var h=new Ys;c.forEach(function(S){h.set(S,[])}),d.forEach(function(S){var b=S.getNamePath();c.forEach(function(C){C.every(function(x,$){return b[$]===x})&&h.update(C,function(x){return[].concat(ot(x),[S])})})});var y=function(b){return b.some(g)},m=h.map(function(S){var b=S.value;return b});return f?m.every(y):m.some(y)}),ue(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),ue(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(s){return s.isFieldValidating()});var o=n.map(lr);return i.some(function(s){var u=s.getNamePath();return hl(o,u)&&s.isFieldValidating()})}),ue(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),ue(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Ys,o=r.getFieldEntities(!0);o.forEach(function(c){var f=c.props.initialValue,d=c.getNamePath();if(f!==void 0){var g=i.get(d)||new Set;g.add({entity:c,value:f}),i.set(d,g)}});var s=function(f){f.forEach(function(d){var g=d.props.initialValue;if(g!==void 0){var h=d.getNamePath(),y=r.getInitialValue(h);if(y!==void 0)qn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var m=i.get(h);if(m&&m.size>1)qn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var S=r.getFieldValue(h),b=d.isListField();!b&&(!n.skipExist||S===void 0)&&r.updateStore(Bi(r.store,h,ot(m)[0].value))}}}})},u;n.entities?u=n.entities:n.namePathList?(u=[],n.namePathList.forEach(function(c){var f=i.get(c);if(f){var d;(d=u).push.apply(d,ot(ot(f).map(function(g){return g.entity})))}})):u=o,s(u)}),ue(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(ul(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(lr);o.forEach(function(s){var u=r.getInitialValue(s);r.updateStore(Bi(r.store,s,u))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o)}),ue(this,"setFields",function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(s){var u=s.name,c=Xn(s,hX),f=lr(u);o.push(f),"value"in c&&r.updateStore(Bi(r.store,f,c.value)),r.notifyObservers(i,[f],{type:"setField",data:s})}),r.notifyWatch(o)}),ue(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var s=o.getNamePath(),u=o.getMeta(),c=me(me({},u),{},{name:s,value:r.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),ue(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),s=go(r.store,o);s===void 0&&r.updateStore(Bi(r.store,o,i))}}),ue(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),ue(this,"registerField",function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(g){return g!==n}),!r.isMergedPreserve(u)&&(!s||c.length>1)){var f=s?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==f&&r.fieldEntities.every(function(g){return!qP(g.getNamePath(),i)})){var d=r.store;r.updateStore(Bi(d,i,f,!0)),r.notifyObservers(d,[i],{type:"remove"}),r.triggerDependenciesUpdate(d,i)}}r.notifyWatch([i])}}),ue(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var s=n.namePath,u=n.triggerName;r.validateFields([s],{triggerName:u});break}}}),ue(this,"notifyObservers",function(n,i,o){if(r.subscribable){var s=me(me({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(u){var c=u.onStoreChange;c(n,i,s)})}else r.forceRootUpdate()}),ue(this,"triggerDependenciesUpdate",function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(ot(o))}),o}),ue(this,"updateValue",function(n,i){var o=lr(n),s=r.store;r.updateStore(Bi(r.store,o,i)),r.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var u=r.triggerDependenciesUpdate(s,o),c=r.callbacks.onValuesChange;if(c){var f=e$(r.store,[o]);c(f,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(ot(u)))}),ue(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var o=ul(r.store,n);r.updateStore(o)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),ue(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i}])}),ue(this,"getDependencyChildrenFields",function(n){var i=new Set,o=[],s=new Ys;r.getFieldEntities().forEach(function(c){var f=c.props.dependencies;(f||[]).forEach(function(d){var g=lr(d);s.update(g,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(c),h})})});var u=function c(f){var d=s.get(f)||new Set;d.forEach(function(g){if(!i.has(g)){i.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(o.push(h),c(h))}})};return u(n),o}),ue(this,"triggerOnFieldsChange",function(n,i){var o=r.callbacks.onFieldsChange;if(o){var s=r.getFields();if(i){var u=new Ys;i.forEach(function(f){var d=f.name,g=f.errors;u.set(d,g)}),s.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var c=s.filter(function(f){var d=f.name;return hl(n,d)});c.length&&o(c,s)}}),ue(this,"validateFields",function(n,i){r.warningUnhooked();var o,s;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,s=i):s=n;var u=!!o,c=u?o.map(lr):[],f=[],d=String(Date.now()),g=new Set,h=s||{},y=h.recursive,m=h.dirty;r.getFieldEntities(!0).forEach(function(x){if(u||c.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(m&&!x.isFieldDirty())){var $=x.getNamePath();if(g.add($.join(d)),!u||hl(c,$,y)){var T=x.validateRules(me({validateMessages:me(me({},WP),r.validateMessages)},s));f.push(T.then(function(){return{name:$,errors:[],warnings:[]}}).catch(function(_){var A,O=[],I=[];return(A=_.forEach)===null||A===void 0||A.call(_,function(L){var F=L.rule.warningOnly,W=L.errors;F?I.push.apply(I,ot(W)):O.push.apply(O,ot(W))}),O.length?Promise.reject({name:$,errors:O,warnings:I}):{name:$,errors:O,warnings:I}}))}}});var S=pX(f);r.lastValidatePromise=S,S.catch(function(x){return x}).then(function(x){var $=x.map(function(T){var _=T.name;return _});r.notifyObservers(r.store,$,{type:"validateFinish"}),r.triggerOnFieldsChange($,x)});var b=S.then(function(){return r.lastValidatePromise===S?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(x){var $=x.filter(function(T){return T&&T.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:$,outOfDate:r.lastValidatePromise!==S})});b.catch(function(x){return x});var C=c.filter(function(x){return g.has(x.join(d))});return r.triggerOnFieldsChange(C),b}),ue(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(o){console.error(o)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=t});function KP(e){var t=E.useRef(),r=E.useState({}),n=Le(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},s=new gX(o);t.current=s.getForm()}return[t.current]}var w1=E.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),vX=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,s=E.useContext(w1),u=E.useRef({});return E.createElement(w1.Provider,{value:me(me({},s),{},{validateMessages:me(me({},s.validateMessages),r),triggerFormChange:function(f,d){n&&n(f,{changedFields:d,forms:u.current}),s.triggerFormChange(f,d)},triggerFormFinish:function(f,d){i&&i(f,{values:d,forms:u.current}),s.triggerFormFinish(f,d)},registerForm:function(f,d){f&&(u.current=me(me({},u.current),{},ue({},f,d))),s.registerForm(f,d)},unregisterForm:function(f){var d=me({},u.current);delete d[f],u.current=d,s.unregisterForm(f)}})},o)},mX=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],yX=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,s=t.form,u=t.preserve,c=t.children,f=t.component,d=f===void 0?"form":f,g=t.validateMessages,h=t.validateTrigger,y=h===void 0?"onChange":h,m=t.onValuesChange,S=t.onFieldsChange,b=t.onFinish,C=t.onFinishFailed,x=t.clearOnDestroy,$=Xn(t,mX),T=E.useRef(null),_=E.useContext(w1),A=KP(s),O=Le(A,1),I=O[0],L=I.getInternalHooks(is),F=L.useSubscribe,W=L.setInitialValues,z=L.setCallbacks,B=L.setValidateMessages,j=L.setPreserve,N=L.destroyForm;E.useImperativeHandle(r,function(){return me(me({},I),{},{nativeElement:T.current})}),E.useEffect(function(){return _.registerForm(n,I),function(){_.unregisterForm(n)}},[_,I,n]),B(me(me({},_.validateMessages),g)),z({onValuesChange:m,onFieldsChange:function(Z){if(_.triggerFormChange(n,Z),S){for(var te=arguments.length,K=new Array(te>1?te-1:0),ye=1;ye<te;ye++)K[ye-1]=arguments[ye];S.apply(void 0,[Z].concat(K))}},onFinish:function(Z){_.triggerFormFinish(n,Z),b&&b(Z)},onFinishFailed:C}),j(u);var X=E.useRef(null);W(i,!X.current),X.current||(X.current=!0),E.useEffect(function(){return function(){return N(x)}},[]);var q,M=typeof c=="function";if(M){var J=I.getFieldsValue(!0);q=c(J,I)}else q=c;F(!M);var U=E.useRef();E.useEffect(function(){uX(U.current||[],o||[])||I.setFields(o||[]),U.current=o},[o,I]);var D=E.useMemo(function(){return me(me({},I),{},{validateTrigger:y})},[I,y]),P=E.createElement(hp.Provider,{value:null},E.createElement(kl.Provider,{value:D},q));return d===!1?P:E.createElement(d,fr({},$,{ref:T,onSubmit:function(Z){Z.preventDefault(),Z.stopPropagation(),I.submit()},onReset:function(Z){var te;Z.preventDefault(),I.resetFields(),(te=$.onReset)===null||te===void 0||te.call($,Z)}}),P)};function n$(e){try{return JSON.stringify(e)}catch{return Math.random()}}function bX(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=i===void 0?{}:i,s=OG(o)?{form:o}:o,u=s.form,c=E.useState(),f=Le(c,2),d=f[0],g=f[1],h=E.useMemo(function(){return n$(d)},[d]),y=E.useRef(h);y.current=h;var m=E.useContext(kl),S=u||m,b=S&&S._init,C=lr(n),x=E.useRef(C);return x.current=C,E.useEffect(function(){if(b){var $=S.getFieldsValue,T=S.getInternalHooks,_=T(is),A=_.registerWatch,O=function(W,z){var B=s.preserve?z:W;return typeof n=="function"?n(B):go(B,x.current)},I=A(function(F,W){var z=O(F,W),B=n$(z);y.current!==B&&(y.current=B,g(z))}),L=O($(),$(!0));return d!==L&&g(L),I}},[b]),d}var SX=E.forwardRef(yX),Ic=SX;Ic.FormProvider=vX;Ic.Field=GP;Ic.List=dX;Ic.useForm=KP;Ic.useWatch=bX;const x1=E.createContext({}),wX=e=>{let{children:t,status:r,override:n}=e;const i=E.useContext(x1),o=E.useMemo(()=>{const s=Object.assign({},i);return n&&delete s.isFormItemInput,r&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[r,n,i]);return E.createElement(x1.Provider,{value:o},t)},xX=E.createContext(void 0),EX=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let i=n;return r&&(i=oe.createElement(wX,{override:!0,status:!0},i)),t&&(i=oe.createElement(pG,null,i)),i};var CX=function(t){if(On()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(i){return i in n.style})}return!1};function i$(e,t){return CX(e)}const _X=e=>({animationDuration:e,animationFillMode:"both"}),RX=e=>({animationDuration:e,animationFillMode:"both"}),OX=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
1153
1153
  ${o}${e}-enter,
1154
1154
  ${o}${e}-appear
1155
- `]:Object.assign(Object.assign({},CX(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},_X(n)),{animationPlayState:"paused"}),[`
1155
+ `]:Object.assign(Object.assign({},_X(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},RX(n)),{animationPlayState:"paused"}),[`
1156
1156
  ${o}${e}-enter${e}-enter-active,
1157
1157
  ${o}${e}-appear${e}-appear-active
1158
- `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},OX=new Oi("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),TX=new Oi("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),o$=new Oi("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a$=new Oi("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),$X=new Oi("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),AX=new Oi("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),IX=new Oi("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),PX=new Oi("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),kX=new Oi("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),MX=new Oi("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),DX=new Oi("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),LX=new Oi("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),FX={zoom:{inKeyframes:OX,outKeyframes:TX},"zoom-big":{inKeyframes:o$,outKeyframes:a$},"zoom-big-fast":{inKeyframes:o$,outKeyframes:a$},"zoom-left":{inKeyframes:IX,outKeyframes:PX},"zoom-right":{inKeyframes:kX,outKeyframes:MX},"zoom-up":{inKeyframes:$X,outKeyframes:AX},"zoom-down":{inKeyframes:DX,outKeyframes:LX}},NX=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=FX[t];return[RX(n,i,o,e.motionDurationFast),{[`
1158
+ `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},TX=new Oi("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$X=new Oi("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),o$=new Oi("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a$=new Oi("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),AX=new Oi("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),IX=new Oi("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),PX=new Oi("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),kX=new Oi("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),MX=new Oi("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),DX=new Oi("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),LX=new Oi("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FX=new Oi("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NX={zoom:{inKeyframes:TX,outKeyframes:$X},"zoom-big":{inKeyframes:o$,outKeyframes:a$},"zoom-big-fast":{inKeyframes:o$,outKeyframes:a$},"zoom-left":{inKeyframes:PX,outKeyframes:kX},"zoom-right":{inKeyframes:MX,outKeyframes:DX},"zoom-up":{inKeyframes:AX,outKeyframes:IX},"zoom-down":{inKeyframes:LX,outKeyframes:FX}},jX=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=NX[t];return[OX(n,i,o,e.motionDurationFast),{[`
1159
1159
  ${n}-enter,
1160
1160
  ${n}-appear
1161
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jX=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});function zX(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},s=o.className,u=o.content,c=i.x,f=c===void 0?0:c,d=i.y,g=d===void 0?0:d,h=E.useRef();if(!r||!r.points)return null;var y={position:"absolute"};if(r.autoArrow!==!1){var m=r.points[0],S=r.points[1],b=m[0],C=m[1],x=S[0],$=S[1];b===x||!["t","b"].includes(b)?y.top=g:b==="t"?y.top=0:y.bottom=0,C===$||!["l","r"].includes(C)?y.left=f:C==="l"?y.left=0:y.right=0}return E.createElement("div",{ref:h,className:xt("".concat(t,"-arrow"),s),style:y},u)}function BX(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?E.createElement(qb,fr({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var u=s.className;return E.createElement("div",{style:{zIndex:n},className:xt("".concat(t,"-mask"),u)})}):null}var VX=E.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),HX=E.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,s=e.target,u=e.onVisibleChanged,c=e.open,f=e.keepDom,d=e.fresh,g=e.onClick,h=e.mask,y=e.arrow,m=e.arrowPos,S=e.align,b=e.motion,C=e.maskMotion,x=e.forceRender,$=e.getPopupContainer,T=e.autoDestroy,_=e.portal,A=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,L=e.onPointerEnter,F=e.onPointerDownCapture,W=e.ready,z=e.offsetX,B=e.offsetY,j=e.offsetR,N=e.offsetB,X=e.onAlign,q=e.onPrepare,M=e.stretch,J=e.targetWidth,U=e.targetHeight,D=typeof r=="function"?r():r,P=c||f,G=$?.length>0,Z=E.useState(!$||!G),te=Le(Z,2),K=te[0],ye=te[1];if(or(function(){!K&&G&&s&&ye(!0)},[K,G,s]),!K)return null;var ae="auto",be={left:"-1000vw",top:"-1000vh",right:ae,bottom:ae};if(W||!c){var he,xe=S.points,Se=S.dynamicInset||((he=S._experimental)===null||he===void 0?void 0:he.dynamicInset),Oe=Se&&xe[0][1]==="r",Ee=Se&&xe[0][0]==="b";Oe?(be.right=j,be.left=ae):(be.left=z,be.right=ae),Ee?(be.bottom=N,be.top=ae):(be.top=B,be.bottom=ae)}var _e={};return M&&(M.includes("height")&&U?_e.height=U:M.includes("minHeight")&&U&&(_e.minHeight=U),M.includes("width")&&J?_e.width=J:M.includes("minWidth")&&J&&(_e.minWidth=J)),c||(_e.pointerEvents="none"),E.createElement(_,{open:x||P,getContainer:$&&function(){return $(s)},autoDestroy:T},E.createElement(BX,{prefixCls:i,open:c,zIndex:A,mask:h,motion:C}),E.createElement(Oc,{onResize:X,disabled:!c},function($e){return E.createElement(qb,fr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:q,onEnterPrepare:q,visible:c,onVisibleChanged:function(qe){var Qe;b==null||(Qe=b.onVisibleChanged)===null||Qe===void 0||Qe.call(b,qe),u(qe)}}),function(Pe,qe){var Qe=Pe.className,Ne=Pe.style,je=xt(i,Qe,n);return E.createElement("div",{ref:Lp($e,t,qe),className:je,style:me(me(me(me({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},be),_e),Ne),{},{boxSizing:"border-box",zIndex:A},o),onMouseEnter:O,onMouseLeave:I,onPointerEnter:L,onClick:g,onPointerDownCapture:F},y&&E.createElement(zX,{prefixCls:i,arrow:y,arrowPos:m,align:S}),E.createElement(VX,{cache:!c&&!d},D))})}))}),UX=E.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Fp(r),o=E.useCallback(function(u){Pb(t,n?n(u):u)},[n]),s=kb(o,Mb(r));return i?E.cloneElement(r,{ref:s}):r}),s$=E.createContext(null);function l$(e){return e?Array.isArray(e)?e:[e]:[]}function WX(e,t,r,n){return E.useMemo(function(){var i=l$(r??t),o=l$(n??t),s=new Set(i),u=new Set(o);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[e,t,r,n])}function qX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function GX(e,t,r,n){for(var i=r.points,o=Object.keys(e),s=0;s<o.length;s+=1){var u,c=o[s];if(qX((u=e[c])===null||u===void 0?void 0:u.points,i,n))return"".concat(t,"-placement-").concat(c)}return""}function u$(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Pc(e){return e.ownerDocument.defaultView}function E1(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=Pc(r).getComputedStyle(r),o=i.overflowX,s=i.overflowY,u=i.overflow;[o,s,u].some(function(c){return n.includes(c)})&&t.push(r),r=r.parentElement}return t}function mc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function wu(e){return mc(parseFloat(e),0)}function c$(e,t){var r=me({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=Pc(n).getComputedStyle(n),o=i.overflow,s=i.overflowClipMargin,u=i.borderTopWidth,c=i.borderBottomWidth,f=i.borderLeftWidth,d=i.borderRightWidth,g=n.getBoundingClientRect(),h=n.offsetHeight,y=n.clientHeight,m=n.offsetWidth,S=n.clientWidth,b=wu(u),C=wu(c),x=wu(f),$=wu(d),T=mc(Math.round(g.width/m*1e3)/1e3),_=mc(Math.round(g.height/h*1e3)/1e3),A=(m-S-x-$)*T,O=(h-y-b-C)*_,I=b*_,L=C*_,F=x*T,W=$*T,z=0,B=0;if(o==="clip"){var j=wu(s);z=j*T,B=j*_}var N=g.x+F-z,X=g.y+I-B,q=N+g.width+2*z-F-W-A,M=X+g.height+2*B-I-L-O;r.left=Math.max(r.left,N),r.top=Math.max(r.top,X),r.right=Math.min(r.right,q),r.bottom=Math.min(r.bottom,M)}}),r}function f$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function d$(e,t){var r=t||[],n=Le(r,2),i=n[0],o=n[1];return[f$(e.width,i),f$(e.height,o)]}function p$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Qs(e,t){var r=t[0],n=t[1],i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function ya(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function XX(e,t,r,n,i,o,s){var u=E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),c=Le(u,2),f=c[0],d=c[1],g=E.useRef(0),h=E.useMemo(function(){return t?E1(t):[]},[t]),y=E.useRef({}),m=function(){y.current={}};e||m();var S=Vn(function(){if(t&&r&&e){let Xt=function(Rr,Mr){var rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge,Ur=P.x+Rr,Ao=P.y+Mr,ro=Ur+Ee,Be=Ao+Oe,rt=Math.max(Ur,rn.left),It=Math.max(Ao,rn.top),Lt=Math.min(ro,rn.right),Pt=Math.min(Be,rn.bottom);return Math.max(0,(Lt-rt)*(Pt-It))},br=function(){Ht=P.y+bt,er=Ht+Oe,_r=P.x+pt,Fe=_r+Ee};var $o=Xt,oi=br,x,$,T,_,A=t,O=A.ownerDocument,I=Pc(A),L=I.getComputedStyle(A),F=L.position,W=A.style.left,z=A.style.top,B=A.style.right,j=A.style.bottom,N=A.style.overflow,X=me(me({},i[n]),o),q=O.createElement("div");(x=A.parentElement)===null||x===void 0||x.appendChild(q),q.style.left="".concat(A.offsetLeft,"px"),q.style.top="".concat(A.offsetTop,"px"),q.style.position=F,q.style.height="".concat(A.offsetHeight,"px"),q.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var M;if(Array.isArray(r))M={x:r[0],y:r[1],width:0,height:0};else{var J,U,D=r.getBoundingClientRect();D.x=(J=D.x)!==null&&J!==void 0?J:D.left,D.y=(U=D.y)!==null&&U!==void 0?U:D.top,M={x:D.x,y:D.y,width:D.width,height:D.height}}var P=A.getBoundingClientRect(),G=I.getComputedStyle(A),Z=G.height,te=G.width;P.x=($=P.x)!==null&&$!==void 0?$:P.left,P.y=(T=P.y)!==null&&T!==void 0?T:P.top;var K=O.documentElement,ye=K.clientWidth,ae=K.clientHeight,be=K.scrollWidth,he=K.scrollHeight,xe=K.scrollTop,Se=K.scrollLeft,Oe=P.height,Ee=P.width,_e=M.height,$e=M.width,Pe={left:0,top:0,right:ye,bottom:ae},qe={left:-Se,top:-xe,right:be-Se,bottom:he-xe},Qe=X.htmlRegion,Ne="visible",je="visibleFirst";Qe!=="scroll"&&Qe!==je&&(Qe=Ne);var Ke=Qe===je,Ve=c$(qe,h),Ce=c$(Pe,h),Ge=Qe===Ne?Ce:Ve,lt=Ke?Ce:Ge;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var At=A.getBoundingClientRect();A.style.left=W,A.style.top=z,A.style.right=B,A.style.bottom=j,A.style.overflow=N,(_=A.parentElement)===null||_===void 0||_.removeChild(q);var dt=mc(Math.round(Ee/parseFloat(te)*1e3)/1e3),Dt=mc(Math.round(Oe/parseFloat(Z)*1e3)/1e3);if(dt===0||Dt===0||sc(r)&&!uG(r))return;var $t=X.offset,ne=X.targetOffset,se=d$(P,$t),pe=Le(se,2),Y=pe[0],V=pe[1],ee=d$(M,ne),Re=Le(ee,2),le=Re[0],fe=Re[1];M.x-=le,M.y-=fe;var ve=X.points||[],Ae=Le(ve,2),Me=Ae[0],ze=Ae[1],Je=p$(ze),Ze=p$(Me),et=Qs(M,Je),Nt=Qs(P,Ze),ct=me({},X),pt=et.x-Nt.x+Y,bt=et.y-Nt.y+V,ht=Xt(pt,bt),mt=Xt(pt,bt,Ce),_t=Qs(M,["t","l"]),jt=Qs(P,["t","l"]),ar=Qs(M,["b","r"]),dr=Qs(P,["b","r"]),mr=X.overflow||{},Cr=mr.adjustX,Pr=mr.adjustY,kr=mr.shiftX,pr=mr.shiftY,hn=function(Mr){return typeof Mr=="boolean"?Mr:Mr>=0},Ht,er,_r,Fe;br();var Zn=hn(Pr),Ut=Ze[0]===Je[0];if(Zn&&Ze[0]==="t"&&(er>lt.bottom||y.current.bt)){var ei=bt;Ut?ei-=Oe-_e:ei=_t.y-dr.y-V;var So=Xt(pt,ei),zt=Xt(pt,ei,Ce);So>ht||So===ht&&(!Ke||zt>=mt)?(y.current.bt=!0,bt=ei,V=-V,ct.points=[ya(Ze,0),ya(Je,0)]):y.current.bt=!1}if(Zn&&Ze[0]==="b"&&(Ht<lt.top||y.current.tb)){var ti=bt;Ut?ti+=Oe-_e:ti=ar.y-jt.y-V;var Ti=Xt(pt,ti),wo=Xt(pt,ti,Ce);Ti>ht||Ti===ht&&(!Ke||wo>=mt)?(y.current.tb=!0,bt=ti,V=-V,ct.points=[ya(Ze,0),ya(Je,0)]):y.current.tb=!1}var ri=hn(Cr),xo=Ze[1]===Je[1];if(ri&&Ze[1]==="l"&&(Fe>lt.right||y.current.rl)){var $n=pt;xo?$n-=Ee-$e:$n=_t.x-dr.x-Y;var tn=Xt($n,bt),yr=Xt($n,bt,Ce);tn>ht||tn===ht&&(!Ke||yr>=mt)?(y.current.rl=!0,pt=$n,Y=-Y,ct.points=[ya(Ze,1),ya(Je,1)]):y.current.rl=!1}if(ri&&Ze[1]==="r"&&(_r<lt.left||y.current.lr)){var ni=pt;xo?ni+=Ee-$e:ni=ar.x-jt.x-Y;var hr=Xt(ni,bt),$i=Xt(ni,bt,Ce);hr>ht||hr===ht&&(!Ke||$i>=mt)?(y.current.lr=!0,pt=ni,Y=-Y,ct.points=[ya(Ze,1),ya(Je,1)]):y.current.lr=!1}br();var zr=kr===!0?0:kr;typeof zr=="number"&&(_r<Ce.left&&(pt-=_r-Ce.left-Y,M.x+$e<Ce.left+zr&&(pt+=M.x-Ce.left+$e-zr)),Fe>Ce.right&&(pt-=Fe-Ce.right-Y,M.x>Ce.right-zr&&(pt+=M.x-Ce.right+zr)));var An=pr===!0?0:pr;typeof An=="number"&&(Ht<Ce.top&&(bt-=Ht-Ce.top-V,M.y+_e<Ce.top+An&&(bt+=M.y-Ce.top+_e-An)),er>Ce.bottom&&(bt-=er-Ce.bottom-V,M.y>Ce.bottom-An&&(bt+=M.y-Ce.bottom+An)));var Br=P.x+pt,Vr=Br+Ee,gn=P.y+bt,Ai=gn+Oe,Eo=M.x,Co=Eo+$e,ii=M.y,_o=ii+_e,Zi=Math.max(Br,Eo),In=Math.min(Vr,Co),ta=(Zi+In)/2,eo=ta-Br,St=Math.max(gn,ii),Ro=Math.min(Ai,_o),Oo=(St+Ro)/2,to=Oo-gn;s?.(t,ct);var Hr=At.right-P.x-(pt+P.width),Ii=At.bottom-P.y-(bt+P.height);dt===1&&(pt=Math.round(pt),Hr=Math.round(Hr)),Dt===1&&(bt=Math.round(bt),Ii=Math.round(Ii));var To={ready:!0,offsetX:pt/dt,offsetY:bt/Dt,offsetR:Hr/dt,offsetB:Ii/Dt,arrowX:eo/dt,arrowY:to/Dt,scaleX:dt,scaleY:Dt,align:ct};d(To)}}),b=function(){g.current+=1;var $=g.current;Promise.resolve().then(function(){g.current===$&&S()})},C=function(){d(function($){return me(me({},$),{},{ready:!1})})};return or(C,[n]),or(function(){e||C()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function KX(e,t,r,n,i){or(function(){if(e&&t&&r){let h=function(){n(),i()};var g=h,o=t,s=r,u=E1(o),c=E1(s),f=Pc(s),d=new Set([f].concat(ot(u),ot(c)));return d.forEach(function(y){y.addEventListener("scroll",h,{passive:!0})}),f.addEventListener("resize",h,{passive:!0}),n(),function(){d.forEach(function(y){y.removeEventListener("scroll",h),f.removeEventListener("resize",h)})}}},[e,t,r])}function YX(e,t,r,n,i,o,s,u){var c=E.useRef(e);c.current=e;var f=E.useRef(!1);E.useEffect(function(){if(t&&n&&(!i||o)){var g=function(){f.current=!1},h=function(b){var C;c.current&&!s(((C=b.composedPath)===null||C===void 0||(C=C.call(b))===null||C===void 0?void 0:C[0])||b.target)&&!f.current&&u(!1)},y=Pc(n);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",h,!0),y.addEventListener("contextmenu",h,!0);var m=fp(r);return m&&(m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",h,!0),y.removeEventListener("contextmenu",h,!0),m&&(m.removeEventListener("mousedown",h,!0),m.removeEventListener("contextmenu",h,!0))}}},[t,r,n,i,o]);function d(){f.current=!0}return d}var QX=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function JX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:HP,t=E.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,s=r.children,u=r.action,c=u===void 0?"hover":u,f=r.showAction,d=r.hideAction,g=r.popupVisible,h=r.defaultPopupVisible,y=r.onPopupVisibleChange,m=r.afterPopupVisibleChange,S=r.mouseEnterDelay,b=r.mouseLeaveDelay,C=b===void 0?.1:b,x=r.focusDelay,$=r.blurDelay,T=r.mask,_=r.maskClosable,A=_===void 0?!0:_,O=r.getPopupContainer,I=r.forceRender,L=r.autoDestroy,F=r.destroyPopupOnHide,W=r.popup,z=r.popupClassName,B=r.popupStyle,j=r.popupPlacement,N=r.builtinPlacements,X=N===void 0?{}:N,q=r.popupAlign,M=r.zIndex,J=r.stretch,U=r.getPopupClassNameFromAlign,D=r.fresh,P=r.alignPoint,G=r.onPopupClick,Z=r.onPopupAlign,te=r.arrow,K=r.popupMotion,ye=r.maskMotion,ae=r.popupTransitionName,be=r.popupAnimation,he=r.maskTransitionName,xe=r.maskAnimation,Se=r.className,Oe=r.getTriggerDOMNode,Ee=Xn(r,QX),_e=L||F||!1,$e=E.useState(!1),Pe=Le($e,2),qe=Pe[0],Qe=Pe[1];or(function(){Qe(jX())},[]);var Ne=E.useRef({}),je=E.useContext(s$),Ke=E.useMemo(function(){return{registerSubPopup:function(rt,It){Ne.current[rt]=It,je?.registerSubPopup(rt,It)}}},[je]),Ve=_G(),Ce=E.useState(null),Ge=Le(Ce,2),lt=Ge[0],At=Ge[1],dt=E.useRef(null),Dt=Vn(function(Be){dt.current=Be,sc(Be)&&lt!==Be&&At(Be),je?.registerSubPopup(Ve,Be)}),$t=E.useState(null),ne=Le($t,2),se=ne[0],pe=ne[1],Y=E.useRef(null),V=Vn(function(Be){sc(Be)&&se!==Be&&(pe(Be),Y.current=Be)}),ee=E.Children.only(s),Re=ee?.props||{},le={},fe=Vn(function(Be){var rt,It,Lt=se;return Lt?.contains(Be)||((rt=fp(Lt))===null||rt===void 0?void 0:rt.host)===Be||Be===Lt||lt?.contains(Be)||((It=fp(lt))===null||It===void 0?void 0:It.host)===Be||Be===lt||Object.values(Ne.current).some(function(Pt){return Pt?.contains(Be)||Be===Pt})}),ve=u$(o,K,be,ae),Ae=u$(o,ye,xe,he),Me=E.useState(h||!1),ze=Le(Me,2),Je=ze[0],Ze=ze[1],et=g??Je,Nt=Vn(function(Be){g===void 0&&Ze(Be)});or(function(){Ze(g||!1)},[g]);var ct=E.useRef(et);ct.current=et;var pt=E.useRef([]);pt.current=[];var bt=Vn(function(Be){var rt;Nt(Be),((rt=pt.current[pt.current.length-1])!==null&&rt!==void 0?rt:et)!==Be&&(pt.current.push(Be),y?.(Be))}),ht=E.useRef(),mt=function(){clearTimeout(ht.current)},_t=function(rt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;mt(),It===0?bt(rt):ht.current=setTimeout(function(){bt(rt)},It*1e3)};E.useEffect(function(){return mt},[]);var jt=E.useState(!1),ar=Le(jt,2),dr=ar[0],mr=ar[1];or(function(Be){(!Be||et)&&mr(!0)},[et]);var Cr=E.useState(null),Pr=Le(Cr,2),kr=Pr[0],pr=Pr[1],hn=E.useState(null),Ht=Le(hn,2),er=Ht[0],_r=Ht[1],Fe=function(rt){_r([rt.clientX,rt.clientY])},Zn=XX(et,lt,P&&er!==null?er:se,j,X,q,Z),Ut=Le(Zn,11),ei=Ut[0],So=Ut[1],zt=Ut[2],ti=Ut[3],Ti=Ut[4],wo=Ut[5],ri=Ut[6],xo=Ut[7],$n=Ut[8],tn=Ut[9],yr=Ut[10],ni=WX(qe,c,f,d),hr=Le(ni,2),$i=hr[0],zr=hr[1],An=$i.has("click"),Br=zr.has("click")||zr.has("contextMenu"),Vr=Vn(function(){dr||yr()}),gn=function(){ct.current&&P&&Br&&_t(!1)};KX(et,se,lt,Vr,gn),or(function(){Vr()},[er,j]),or(function(){et&&!(X!=null&&X[j])&&Vr()},[JSON.stringify(q)]);var Ai=E.useMemo(function(){var Be=GX(X,o,tn,P);return xt(Be,U?.(tn))},[tn,U,X,o,P]);E.useImperativeHandle(n,function(){return{nativeElement:Y.current,popupElement:dt.current,forceAlign:Vr}});var Eo=E.useState(0),Co=Le(Eo,2),ii=Co[0],_o=Co[1],Zi=E.useState(0),In=Le(Zi,2),ta=In[0],eo=In[1],St=function(){if(J&&se){var rt=se.getBoundingClientRect();_o(rt.width),eo(rt.height)}},Ro=function(){St(),Vr()},Oo=function(rt){mr(!1),yr(),m?.(rt)},to=function(){return new Promise(function(rt){St(),pr(function(){return rt})})};or(function(){kr&&(yr(),kr(),pr(null))},[kr]);function Hr(Be,rt,It,Lt){le[Be]=function(Pt){var Io;Lt?.(Pt),_t(rt,It);for(var Po=arguments.length,ra=new Array(Po>1?Po-1:0),Pi=1;Pi<Po;Pi++)ra[Pi-1]=arguments[Pi];(Io=Re[Be])===null||Io===void 0||Io.call.apply(Io,[Re,Pt].concat(ra))}}(An||Br)&&(le.onClick=function(Be){var rt;ct.current&&Br?_t(!1):!ct.current&&An&&(Fe(Be),_t(!0));for(var It=arguments.length,Lt=new Array(It>1?It-1:0),Pt=1;Pt<It;Pt++)Lt[Pt-1]=arguments[Pt];(rt=Re.onClick)===null||rt===void 0||rt.call.apply(rt,[Re,Be].concat(Lt))});var Ii=YX(et,Br,se,lt,T,A,fe,_t),To=$i.has("hover"),$o=zr.has("hover"),oi,Xt;To&&(Hr("onMouseEnter",!0,S,function(Be){Fe(Be)}),Hr("onPointerEnter",!0,S,function(Be){Fe(Be)}),oi=function(rt){(et||dr)&&lt!==null&&lt!==void 0&&lt.contains(rt.target)&&_t(!0,S)},P&&(le.onMouseMove=function(Be){var rt;(rt=Re.onMouseMove)===null||rt===void 0||rt.call(Re,Be)})),$o&&(Hr("onMouseLeave",!1,C),Hr("onPointerLeave",!1,C),Xt=function(){_t(!1,C)}),$i.has("focus")&&Hr("onFocus",!0,x),zr.has("focus")&&Hr("onBlur",!1,$),$i.has("contextMenu")&&(le.onContextMenu=function(Be){var rt;ct.current&&zr.has("contextMenu")?_t(!1):(Fe(Be),_t(!0)),Be.preventDefault();for(var It=arguments.length,Lt=new Array(It>1?It-1:0),Pt=1;Pt<It;Pt++)Lt[Pt-1]=arguments[Pt];(rt=Re.onContextMenu)===null||rt===void 0||rt.call.apply(rt,[Re,Be].concat(Lt))}),Se&&(le.className=xt(Re.className,Se));var br=E.useRef(!1);br.current||(br.current=I||et||dr);var Rr=me(me({},Re),le),Mr={},rn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];rn.forEach(function(Be){Ee[Be]&&(Mr[Be]=function(){for(var rt,It=arguments.length,Lt=new Array(It),Pt=0;Pt<It;Pt++)Lt[Pt]=arguments[Pt];(rt=Rr[Be])===null||rt===void 0||rt.call.apply(rt,[Rr].concat(Lt)),Ee[Be].apply(Ee,Lt)})});var Ur=E.cloneElement(ee,me(me({},Rr),Mr)),Ao={x:wo,y:ri},ro=te?me({},te!==!0?te:{}):null;return E.createElement(E.Fragment,null,E.createElement(Oc,{disabled:!et,ref:V,onResize:Ro},E.createElement(UX,{getTriggerDOMNode:Oe},Ur)),br.current&&E.createElement(s$.Provider,{value:Ke},E.createElement(HX,{portal:e,ref:Dt,prefixCls:o,popup:W,className:xt(z,Ai),style:B,target:se,onMouseEnter:oi,onMouseLeave:Xt,onPointerEnter:oi,zIndex:M,open:et,keepDom:dr,fresh:D,onClick:G,onPointerDownCapture:Ii,mask:T,motion:ve,maskMotion:Ae,onVisibleChanged:Oo,onPrepare:to,forceRender:I,autoDestroy:_e,getPopupContainer:O,align:tn,arrow:ro,arrowPos:Ao,ready:ei,offsetX:So,offsetY:zt,offsetR:ti,offsetB:Ti,onAlign:Vr,stretch:J,targetWidth:ii/xo,targetHeight:ta/$n})))});return t}const ZX=JX(HP);function eK(e,t,r){return xt({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const tK=(e,t)=>t||e,rK=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,i;const{variant:o,[e]:s}=E.useContext(Ei),u=E.useContext(wX),c=s?.variant;let f;typeof t<"u"?f=t:r===!1?f="borderless":f=(i=(n=u??c)!==null&&n!==void 0?n:o)!==null&&i!==void 0?i:"outlined";const d=AW.includes(f);return[f,d]};var nK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},iK=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:nK}))},oK=E.forwardRef(iK);function YP(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,s=e.style;return E.createElement("div",{className:xt("".concat(r,"-content"),o),style:s},E.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var Js={shiftX:64,adjustY:1},Zs={adjustX:1,shiftY:!0},pi=[0,0],aK={left:{points:["cr","cl"],overflow:Zs,offset:[-4,0],targetOffset:pi},right:{points:["cl","cr"],overflow:Zs,offset:[4,0],targetOffset:pi},top:{points:["bc","tc"],overflow:Js,offset:[0,-4],targetOffset:pi},bottom:{points:["tc","bc"],overflow:Js,offset:[0,4],targetOffset:pi},topLeft:{points:["bl","tl"],overflow:Js,offset:[0,-4],targetOffset:pi},leftTop:{points:["tr","tl"],overflow:Zs,offset:[-4,0],targetOffset:pi},topRight:{points:["br","tr"],overflow:Js,offset:[0,-4],targetOffset:pi},rightTop:{points:["tl","tr"],overflow:Zs,offset:[4,0],targetOffset:pi},bottomRight:{points:["tr","br"],overflow:Js,offset:[0,4],targetOffset:pi},rightBottom:{points:["bl","br"],overflow:Zs,offset:[4,0],targetOffset:pi},bottomLeft:{points:["tl","bl"],overflow:Js,offset:[0,4],targetOffset:pi},leftBottom:{points:["br","bl"],overflow:Zs,offset:[-4,0],targetOffset:pi}},sK=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],lK=function(t,r){var n=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,s=t.mouseEnterDelay,u=s===void 0?0:s,c=t.mouseLeaveDelay,f=c===void 0?.1:c,d=t.overlayStyle,g=t.prefixCls,h=g===void 0?"rc-tooltip":g,y=t.children,m=t.onVisibleChange,S=t.afterVisibleChange,b=t.transitionName,C=t.animation,x=t.motion,$=t.placement,T=$===void 0?"right":$,_=t.align,A=_===void 0?{}:_,O=t.destroyTooltipOnHide,I=O===void 0?!1:O,L=t.defaultVisible,F=t.getTooltipContainer,W=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,B=t.id,j=t.showArrow,N=j===void 0?!0:j,X=Xn(t,sK),q=E.useRef(null);E.useImperativeHandle(r,function(){return q.current});var M=me({},X);"visible"in t&&(M.popupVisible=t.visible);var J=function(){return E.createElement(YP,{key:"content",prefixCls:h,id:B,overlayInnerStyle:W},z)};return E.createElement(ZX,fr({popupClassName:n,prefixCls:h,popup:J,action:o,builtinPlacements:aK,popupPlacement:T,ref:q,popupAlign:A,getPopupContainer:F,onPopupVisibleChange:m,afterPopupVisibleChange:S,popupTransitionName:b,popupAnimation:C,popupMotion:x,defaultPopupVisible:L,autoDestroy:I,mouseLeaveDelay:f,popupStyle:d,mouseEnterDelay:u,arrow:N},M),y)};const uK=E.forwardRef(lK);function cK(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,o=0,s=i,u=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),f=i-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),g=2*i-f,h=d,y=2*i-u,m=c,S=2*i-o,b=s,C=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),$=`polygon(${x}px 100%, 50% ${x}px, ${2*i-x}px 100%, ${x}px 100%)`,T=`path('M ${o} ${s} A ${n} ${n} 0 0 0 ${u} ${c} L ${f} ${d} A ${r} ${r} 0 0 1 ${g} ${h} L ${y} ${m} A ${n} ${n} 0 0 0 ${S} ${b} Z')`;return{arrowShadowWidth:C,arrowPath:T,arrowPolygon:$}}const fK=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:u,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ft(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},QP=8;function JP(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?QP:n}}function gd(e,t){return e?t:{}}function dK(e,t,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},fK(e,t,i)),{"&:before":{background:t}})]},gd(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ft(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),gd(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ft(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),gd(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),gd(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function pK(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const s=Object.assign(Object.assign({},o),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const h$={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},hK={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},gK=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vK(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,s=t/2,u={};return Object.keys(h$).forEach(c=>{const f=n&&hK[c]||h$[c],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(u[c]=d,gK.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const g=JP({contentRadius:o,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-g.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=g.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-g.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":d.offset[1]=g.arrowOffsetHorizontal+s;break}d.overflow=pK(c,g,t,r),d.htmlRegion="visibleFirst"}),u}const mK=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:u,boxShadowSecondary:c,paddingSM:f,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Hb(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:u,padding:`${Ft(e.calc(f).div(2).equal())} ${Ft(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,QP)}},[`${t}-content`]:{position:"relative"}}),iq(e,(g,h)=>{let{darkColor:y}=h;return{[`&${t}-${g}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},dK(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},yK=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},JP({contentRadius:e.borderRadius,limitVerticalRadius:!0})),cK(Ss(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ZP=(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ub("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:s}=n,u=Ss(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:s});return[mK(u),NX(n,"zoom-big-fast")]},yK,{resetStyle:!1,injectStyle:t})(e)}),bK=cp.map(e=>`${e}-inverse`);function SK(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ot(bK),ot(cp)).includes(e):cp.includes(e)}function e5(e,t){const r=SK(t),n=xt({[`${e}-${t}`]:t&&r}),i={},o={};return t&&!r&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:o}}const wK=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:s}=e,{getPrefixCls:u}=E.useContext(Ei),c=u("tooltip",t),[f,d,g]=ZP(c),h=e5(c,o),y=h.arrowStyle,m=Object.assign(Object.assign({},s),h.overlayStyle),S=xt(d,g,c,`${c}-pure`,`${c}-placement-${n}`,r,h.className);return f(E.createElement("div",{className:S,style:y},E.createElement("div",{className:`${c}-arrow`}),E.createElement(YP,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),i)))};var xK=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const EK=E.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:s,overlayClassName:u,color:c,overlayInnerStyle:f,children:d,afterOpenChange:g,afterVisibleChange:h,destroyTooltipOnHide:y,arrow:m=!0,title:S,overlay:b,builtinPlacements:C,arrowPointAtCenter:x=!1,autoAdjustOverflow:$=!0}=e,T=!!m,[,_]=jl(),{getPopupContainer:A,getPrefixCls:O,direction:I}=E.useContext(Ei),L=oP(),F=E.useRef(null),W=()=>{var Ve;(Ve=F.current)===null||Ve===void 0||Ve.forceAlign()};E.useImperativeHandle(t,()=>{var Ve;return{forceAlign:W,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),W()},nativeElement:(Ve=F.current)===null||Ve===void 0?void 0:Ve.nativeElement}});const[z,B]=vc(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),j=!S&&!b&&S!==0,N=Ve=>{var Ce,Ge;B(j?!1:Ve),j||((Ce=e.onOpenChange)===null||Ce===void 0||Ce.call(e,Ve),(Ge=e.onVisibleChange)===null||Ge===void 0||Ge.call(e,Ve))},X=E.useMemo(()=>{var Ve,Ce;let Ge=x;return typeof m=="object"&&(Ge=(Ce=(Ve=m.pointAtCenter)!==null&&Ve!==void 0?Ve:m.arrowPointAtCenter)!==null&&Ce!==void 0?Ce:x),C||vK({arrowPointAtCenter:Ge,autoAdjustOverflow:$,arrowWidth:T?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS})},[x,m,C,_]),q=E.useMemo(()=>S===0?S:b||S||"",[b,S]),M=E.createElement(xX,{space:!0},typeof q=="function"?q():q),{getPopupContainer:J,placement:U="top",mouseEnterDelay:D=.1,mouseLeaveDelay:P=.1,overlayStyle:G,rootClassName:Z}=e,te=xK(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=O("tooltip",i),ye=O(),ae=e["data-popover-inject"];let be=z;!("open"in e)&&!("visible"in e)&&j&&(be=!1);const he=E.isValidElement(d)&&!Qq(d)?d:E.createElement("span",null,d),xe=he.props,Se=!xe.className||typeof xe.className=="string"?xt(xe.className,o||`${K}-open`):xe.className,[Oe,Ee,_e]=ZP(K,!ae),$e=e5(K,c),Pe=$e.arrowStyle,qe=Object.assign(Object.assign({},f),$e.overlayStyle),Qe=xt(u,{[`${K}-rtl`]:I==="rtl"},$e.className,Z,Ee,_e),[Ne,je]=oG("Tooltip",te.zIndex),Ke=E.createElement(uK,Object.assign({},te,{zIndex:Ne,showArrow:T,placement:U,mouseEnterDelay:D,mouseLeaveDelay:P,prefixCls:K,overlayClassName:Qe,overlayStyle:Object.assign(Object.assign({},Pe),G),getTooltipContainer:J||s||A,ref:F,builtinPlacements:X,overlay:M,visible:be,onVisibleChange:N,afterVisibleChange:g??h,overlayInnerStyle:qe,arrowContent:E.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:lG(ye,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),be?FP(he,{className:Se}):he);return Oe(E.createElement(NP.Provider,{value:je},Ke))}),Hp=EK;Hp._InternalPanelDoNotUseOrYouWillBeFired=wK;function CK(e){return Ss(e,{inputAffixPadding:e.paddingXXS})}const _K=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:s,fontSizeLG:u,lineHeightLG:c,paddingSM:f,controlPaddingHorizontalSM:d,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:y,colorPrimary:m,controlOutlineWidth:S,controlOutline:b,colorErrorOutline:C,colorWarningOutline:x,colorBgContainer:$}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-i,0),paddingBlockLG:Math.ceil((s-u*c)/2*10)/10-i,paddingInline:f-i,paddingInlineSM:d-i,paddingInlineLG:g-i,addonBg:h,activeBorderColor:m,hoverBorderColor:y,activeShadow:`0 0 0 ${S}px ${b}`,errorActiveShadow:`0 0 0 ${S}px ${C}`,warningActiveShadow:`0 0 0 ${S}px ${x}`,hoverBg:$,activeBg:$,inputFontSize:r,inputFontSizeLG:u,inputFontSizeSM:r}},RK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Kb=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},RK(Ss(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),t5=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),g$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},t5(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),OK=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t5(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kb(e))}),g$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),g$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),v$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),TK=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},v$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),v$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Kb(e))}})}),$K=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},r5=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},r5(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),AK=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r5(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kb(e))}),m$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),y$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),IK=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},y$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),y$(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),PK=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),n5=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${Ft(t)} ${Ft(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},i5=e=>({padding:`${Ft(e.paddingBlockSM)} ${Ft(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),o5=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ft(e.paddingBlock)} ${Ft(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},PK(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},n5(e)),"&-sm":Object.assign({},i5(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),kK=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},n5(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},i5(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ft(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Ft(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ft(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Ft(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${Ft(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},tq()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
1161
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},zX=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});function BX(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},s=o.className,u=o.content,c=i.x,f=c===void 0?0:c,d=i.y,g=d===void 0?0:d,h=E.useRef();if(!r||!r.points)return null;var y={position:"absolute"};if(r.autoArrow!==!1){var m=r.points[0],S=r.points[1],b=m[0],C=m[1],x=S[0],$=S[1];b===x||!["t","b"].includes(b)?y.top=g:b==="t"?y.top=0:y.bottom=0,C===$||!["l","r"].includes(C)?y.left=f:C==="l"?y.left=0:y.right=0}return E.createElement("div",{ref:h,className:xt("".concat(t,"-arrow"),s),style:y},u)}function VX(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?E.createElement(qb,fr({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var u=s.className;return E.createElement("div",{style:{zIndex:n},className:xt("".concat(t,"-mask"),u)})}):null}var HX=E.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),UX=E.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,s=e.target,u=e.onVisibleChanged,c=e.open,f=e.keepDom,d=e.fresh,g=e.onClick,h=e.mask,y=e.arrow,m=e.arrowPos,S=e.align,b=e.motion,C=e.maskMotion,x=e.forceRender,$=e.getPopupContainer,T=e.autoDestroy,_=e.portal,A=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,L=e.onPointerEnter,F=e.onPointerDownCapture,W=e.ready,z=e.offsetX,B=e.offsetY,j=e.offsetR,N=e.offsetB,X=e.onAlign,q=e.onPrepare,M=e.stretch,J=e.targetWidth,U=e.targetHeight,D=typeof r=="function"?r():r,P=c||f,G=$?.length>0,Z=E.useState(!$||!G),te=Le(Z,2),K=te[0],ye=te[1];if(or(function(){!K&&G&&s&&ye(!0)},[K,G,s]),!K)return null;var ae="auto",be={left:"-1000vw",top:"-1000vh",right:ae,bottom:ae};if(W||!c){var he,xe=S.points,Se=S.dynamicInset||((he=S._experimental)===null||he===void 0?void 0:he.dynamicInset),Oe=Se&&xe[0][1]==="r",Ee=Se&&xe[0][0]==="b";Oe?(be.right=j,be.left=ae):(be.left=z,be.right=ae),Ee?(be.bottom=N,be.top=ae):(be.top=B,be.bottom=ae)}var _e={};return M&&(M.includes("height")&&U?_e.height=U:M.includes("minHeight")&&U&&(_e.minHeight=U),M.includes("width")&&J?_e.width=J:M.includes("minWidth")&&J&&(_e.minWidth=J)),c||(_e.pointerEvents="none"),E.createElement(_,{open:x||P,getContainer:$&&function(){return $(s)},autoDestroy:T},E.createElement(VX,{prefixCls:i,open:c,zIndex:A,mask:h,motion:C}),E.createElement(Oc,{onResize:X,disabled:!c},function($e){return E.createElement(qb,fr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:q,onEnterPrepare:q,visible:c,onVisibleChanged:function(qe){var Qe;b==null||(Qe=b.onVisibleChanged)===null||Qe===void 0||Qe.call(b,qe),u(qe)}}),function(Pe,qe){var Qe=Pe.className,Ne=Pe.style,je=xt(i,Qe,n);return E.createElement("div",{ref:Lp($e,t,qe),className:je,style:me(me(me(me({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},be),_e),Ne),{},{boxSizing:"border-box",zIndex:A},o),onMouseEnter:O,onMouseLeave:I,onPointerEnter:L,onClick:g,onPointerDownCapture:F},y&&E.createElement(BX,{prefixCls:i,arrow:y,arrowPos:m,align:S}),E.createElement(HX,{cache:!c&&!d},D))})}))}),WX=E.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Fp(r),o=E.useCallback(function(u){Pb(t,n?n(u):u)},[n]),s=kb(o,Mb(r));return i?E.cloneElement(r,{ref:s}):r}),s$=E.createContext(null);function l$(e){return e?Array.isArray(e)?e:[e]:[]}function qX(e,t,r,n){return E.useMemo(function(){var i=l$(r??t),o=l$(n??t),s=new Set(i),u=new Set(o);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[e,t,r,n])}function GX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function XX(e,t,r,n){for(var i=r.points,o=Object.keys(e),s=0;s<o.length;s+=1){var u,c=o[s];if(GX((u=e[c])===null||u===void 0?void 0:u.points,i,n))return"".concat(t,"-placement-").concat(c)}return""}function u$(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Pc(e){return e.ownerDocument.defaultView}function E1(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=Pc(r).getComputedStyle(r),o=i.overflowX,s=i.overflowY,u=i.overflow;[o,s,u].some(function(c){return n.includes(c)})&&t.push(r),r=r.parentElement}return t}function mc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function wu(e){return mc(parseFloat(e),0)}function c$(e,t){var r=me({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=Pc(n).getComputedStyle(n),o=i.overflow,s=i.overflowClipMargin,u=i.borderTopWidth,c=i.borderBottomWidth,f=i.borderLeftWidth,d=i.borderRightWidth,g=n.getBoundingClientRect(),h=n.offsetHeight,y=n.clientHeight,m=n.offsetWidth,S=n.clientWidth,b=wu(u),C=wu(c),x=wu(f),$=wu(d),T=mc(Math.round(g.width/m*1e3)/1e3),_=mc(Math.round(g.height/h*1e3)/1e3),A=(m-S-x-$)*T,O=(h-y-b-C)*_,I=b*_,L=C*_,F=x*T,W=$*T,z=0,B=0;if(o==="clip"){var j=wu(s);z=j*T,B=j*_}var N=g.x+F-z,X=g.y+I-B,q=N+g.width+2*z-F-W-A,M=X+g.height+2*B-I-L-O;r.left=Math.max(r.left,N),r.top=Math.max(r.top,X),r.right=Math.min(r.right,q),r.bottom=Math.min(r.bottom,M)}}),r}function f$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function d$(e,t){var r=t||[],n=Le(r,2),i=n[0],o=n[1];return[f$(e.width,i),f$(e.height,o)]}function p$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Qs(e,t){var r=t[0],n=t[1],i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function ya(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function KX(e,t,r,n,i,o,s){var u=E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),c=Le(u,2),f=c[0],d=c[1],g=E.useRef(0),h=E.useMemo(function(){return t?E1(t):[]},[t]),y=E.useRef({}),m=function(){y.current={}};e||m();var S=Vn(function(){if(t&&r&&e){let Xt=function(Rr,Mr){var rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge,Ur=P.x+Rr,Ao=P.y+Mr,ro=Ur+Ee,Be=Ao+Oe,rt=Math.max(Ur,rn.left),It=Math.max(Ao,rn.top),Lt=Math.min(ro,rn.right),Pt=Math.min(Be,rn.bottom);return Math.max(0,(Lt-rt)*(Pt-It))},br=function(){Ht=P.y+bt,er=Ht+Oe,_r=P.x+pt,Fe=_r+Ee};var $o=Xt,oi=br,x,$,T,_,A=t,O=A.ownerDocument,I=Pc(A),L=I.getComputedStyle(A),F=L.position,W=A.style.left,z=A.style.top,B=A.style.right,j=A.style.bottom,N=A.style.overflow,X=me(me({},i[n]),o),q=O.createElement("div");(x=A.parentElement)===null||x===void 0||x.appendChild(q),q.style.left="".concat(A.offsetLeft,"px"),q.style.top="".concat(A.offsetTop,"px"),q.style.position=F,q.style.height="".concat(A.offsetHeight,"px"),q.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var M;if(Array.isArray(r))M={x:r[0],y:r[1],width:0,height:0};else{var J,U,D=r.getBoundingClientRect();D.x=(J=D.x)!==null&&J!==void 0?J:D.left,D.y=(U=D.y)!==null&&U!==void 0?U:D.top,M={x:D.x,y:D.y,width:D.width,height:D.height}}var P=A.getBoundingClientRect(),G=I.getComputedStyle(A),Z=G.height,te=G.width;P.x=($=P.x)!==null&&$!==void 0?$:P.left,P.y=(T=P.y)!==null&&T!==void 0?T:P.top;var K=O.documentElement,ye=K.clientWidth,ae=K.clientHeight,be=K.scrollWidth,he=K.scrollHeight,xe=K.scrollTop,Se=K.scrollLeft,Oe=P.height,Ee=P.width,_e=M.height,$e=M.width,Pe={left:0,top:0,right:ye,bottom:ae},qe={left:-Se,top:-xe,right:be-Se,bottom:he-xe},Qe=X.htmlRegion,Ne="visible",je="visibleFirst";Qe!=="scroll"&&Qe!==je&&(Qe=Ne);var Ke=Qe===je,Ve=c$(qe,h),Ce=c$(Pe,h),Ge=Qe===Ne?Ce:Ve,lt=Ke?Ce:Ge;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var At=A.getBoundingClientRect();A.style.left=W,A.style.top=z,A.style.right=B,A.style.bottom=j,A.style.overflow=N,(_=A.parentElement)===null||_===void 0||_.removeChild(q);var dt=mc(Math.round(Ee/parseFloat(te)*1e3)/1e3),Dt=mc(Math.round(Oe/parseFloat(Z)*1e3)/1e3);if(dt===0||Dt===0||sc(r)&&!cG(r))return;var $t=X.offset,ne=X.targetOffset,se=d$(P,$t),pe=Le(se,2),Y=pe[0],V=pe[1],ee=d$(M,ne),Re=Le(ee,2),le=Re[0],fe=Re[1];M.x-=le,M.y-=fe;var ve=X.points||[],Ae=Le(ve,2),Me=Ae[0],ze=Ae[1],Je=p$(ze),Ze=p$(Me),et=Qs(M,Je),Nt=Qs(P,Ze),ct=me({},X),pt=et.x-Nt.x+Y,bt=et.y-Nt.y+V,ht=Xt(pt,bt),mt=Xt(pt,bt,Ce),_t=Qs(M,["t","l"]),jt=Qs(P,["t","l"]),ar=Qs(M,["b","r"]),dr=Qs(P,["b","r"]),mr=X.overflow||{},Cr=mr.adjustX,Pr=mr.adjustY,kr=mr.shiftX,pr=mr.shiftY,hn=function(Mr){return typeof Mr=="boolean"?Mr:Mr>=0},Ht,er,_r,Fe;br();var Zn=hn(Pr),Ut=Ze[0]===Je[0];if(Zn&&Ze[0]==="t"&&(er>lt.bottom||y.current.bt)){var ei=bt;Ut?ei-=Oe-_e:ei=_t.y-dr.y-V;var So=Xt(pt,ei),zt=Xt(pt,ei,Ce);So>ht||So===ht&&(!Ke||zt>=mt)?(y.current.bt=!0,bt=ei,V=-V,ct.points=[ya(Ze,0),ya(Je,0)]):y.current.bt=!1}if(Zn&&Ze[0]==="b"&&(Ht<lt.top||y.current.tb)){var ti=bt;Ut?ti+=Oe-_e:ti=ar.y-jt.y-V;var Ti=Xt(pt,ti),wo=Xt(pt,ti,Ce);Ti>ht||Ti===ht&&(!Ke||wo>=mt)?(y.current.tb=!0,bt=ti,V=-V,ct.points=[ya(Ze,0),ya(Je,0)]):y.current.tb=!1}var ri=hn(Cr),xo=Ze[1]===Je[1];if(ri&&Ze[1]==="l"&&(Fe>lt.right||y.current.rl)){var $n=pt;xo?$n-=Ee-$e:$n=_t.x-dr.x-Y;var tn=Xt($n,bt),yr=Xt($n,bt,Ce);tn>ht||tn===ht&&(!Ke||yr>=mt)?(y.current.rl=!0,pt=$n,Y=-Y,ct.points=[ya(Ze,1),ya(Je,1)]):y.current.rl=!1}if(ri&&Ze[1]==="r"&&(_r<lt.left||y.current.lr)){var ni=pt;xo?ni+=Ee-$e:ni=ar.x-jt.x-Y;var hr=Xt(ni,bt),$i=Xt(ni,bt,Ce);hr>ht||hr===ht&&(!Ke||$i>=mt)?(y.current.lr=!0,pt=ni,Y=-Y,ct.points=[ya(Ze,1),ya(Je,1)]):y.current.lr=!1}br();var zr=kr===!0?0:kr;typeof zr=="number"&&(_r<Ce.left&&(pt-=_r-Ce.left-Y,M.x+$e<Ce.left+zr&&(pt+=M.x-Ce.left+$e-zr)),Fe>Ce.right&&(pt-=Fe-Ce.right-Y,M.x>Ce.right-zr&&(pt+=M.x-Ce.right+zr)));var An=pr===!0?0:pr;typeof An=="number"&&(Ht<Ce.top&&(bt-=Ht-Ce.top-V,M.y+_e<Ce.top+An&&(bt+=M.y-Ce.top+_e-An)),er>Ce.bottom&&(bt-=er-Ce.bottom-V,M.y>Ce.bottom-An&&(bt+=M.y-Ce.bottom+An)));var Br=P.x+pt,Vr=Br+Ee,gn=P.y+bt,Ai=gn+Oe,Eo=M.x,Co=Eo+$e,ii=M.y,_o=ii+_e,Zi=Math.max(Br,Eo),In=Math.min(Vr,Co),ta=(Zi+In)/2,eo=ta-Br,St=Math.max(gn,ii),Ro=Math.min(Ai,_o),Oo=(St+Ro)/2,to=Oo-gn;s?.(t,ct);var Hr=At.right-P.x-(pt+P.width),Ii=At.bottom-P.y-(bt+P.height);dt===1&&(pt=Math.round(pt),Hr=Math.round(Hr)),Dt===1&&(bt=Math.round(bt),Ii=Math.round(Ii));var To={ready:!0,offsetX:pt/dt,offsetY:bt/Dt,offsetR:Hr/dt,offsetB:Ii/Dt,arrowX:eo/dt,arrowY:to/Dt,scaleX:dt,scaleY:Dt,align:ct};d(To)}}),b=function(){g.current+=1;var $=g.current;Promise.resolve().then(function(){g.current===$&&S()})},C=function(){d(function($){return me(me({},$),{},{ready:!1})})};return or(C,[n]),or(function(){e||C()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function YX(e,t,r,n,i){or(function(){if(e&&t&&r){let h=function(){n(),i()};var g=h,o=t,s=r,u=E1(o),c=E1(s),f=Pc(s),d=new Set([f].concat(ot(u),ot(c)));return d.forEach(function(y){y.addEventListener("scroll",h,{passive:!0})}),f.addEventListener("resize",h,{passive:!0}),n(),function(){d.forEach(function(y){y.removeEventListener("scroll",h),f.removeEventListener("resize",h)})}}},[e,t,r])}function QX(e,t,r,n,i,o,s,u){var c=E.useRef(e);c.current=e;var f=E.useRef(!1);E.useEffect(function(){if(t&&n&&(!i||o)){var g=function(){f.current=!1},h=function(b){var C;c.current&&!s(((C=b.composedPath)===null||C===void 0||(C=C.call(b))===null||C===void 0?void 0:C[0])||b.target)&&!f.current&&u(!1)},y=Pc(n);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",h,!0),y.addEventListener("contextmenu",h,!0);var m=fp(r);return m&&(m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",h,!0),y.removeEventListener("contextmenu",h,!0),m&&(m.removeEventListener("mousedown",h,!0),m.removeEventListener("contextmenu",h,!0))}}},[t,r,n,i,o]);function d(){f.current=!0}return d}var JX=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ZX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:HP,t=E.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,s=r.children,u=r.action,c=u===void 0?"hover":u,f=r.showAction,d=r.hideAction,g=r.popupVisible,h=r.defaultPopupVisible,y=r.onPopupVisibleChange,m=r.afterPopupVisibleChange,S=r.mouseEnterDelay,b=r.mouseLeaveDelay,C=b===void 0?.1:b,x=r.focusDelay,$=r.blurDelay,T=r.mask,_=r.maskClosable,A=_===void 0?!0:_,O=r.getPopupContainer,I=r.forceRender,L=r.autoDestroy,F=r.destroyPopupOnHide,W=r.popup,z=r.popupClassName,B=r.popupStyle,j=r.popupPlacement,N=r.builtinPlacements,X=N===void 0?{}:N,q=r.popupAlign,M=r.zIndex,J=r.stretch,U=r.getPopupClassNameFromAlign,D=r.fresh,P=r.alignPoint,G=r.onPopupClick,Z=r.onPopupAlign,te=r.arrow,K=r.popupMotion,ye=r.maskMotion,ae=r.popupTransitionName,be=r.popupAnimation,he=r.maskTransitionName,xe=r.maskAnimation,Se=r.className,Oe=r.getTriggerDOMNode,Ee=Xn(r,JX),_e=L||F||!1,$e=E.useState(!1),Pe=Le($e,2),qe=Pe[0],Qe=Pe[1];or(function(){Qe(zX())},[]);var Ne=E.useRef({}),je=E.useContext(s$),Ke=E.useMemo(function(){return{registerSubPopup:function(rt,It){Ne.current[rt]=It,je?.registerSubPopup(rt,It)}}},[je]),Ve=RG(),Ce=E.useState(null),Ge=Le(Ce,2),lt=Ge[0],At=Ge[1],dt=E.useRef(null),Dt=Vn(function(Be){dt.current=Be,sc(Be)&&lt!==Be&&At(Be),je?.registerSubPopup(Ve,Be)}),$t=E.useState(null),ne=Le($t,2),se=ne[0],pe=ne[1],Y=E.useRef(null),V=Vn(function(Be){sc(Be)&&se!==Be&&(pe(Be),Y.current=Be)}),ee=E.Children.only(s),Re=ee?.props||{},le={},fe=Vn(function(Be){var rt,It,Lt=se;return Lt?.contains(Be)||((rt=fp(Lt))===null||rt===void 0?void 0:rt.host)===Be||Be===Lt||lt?.contains(Be)||((It=fp(lt))===null||It===void 0?void 0:It.host)===Be||Be===lt||Object.values(Ne.current).some(function(Pt){return Pt?.contains(Be)||Be===Pt})}),ve=u$(o,K,be,ae),Ae=u$(o,ye,xe,he),Me=E.useState(h||!1),ze=Le(Me,2),Je=ze[0],Ze=ze[1],et=g??Je,Nt=Vn(function(Be){g===void 0&&Ze(Be)});or(function(){Ze(g||!1)},[g]);var ct=E.useRef(et);ct.current=et;var pt=E.useRef([]);pt.current=[];var bt=Vn(function(Be){var rt;Nt(Be),((rt=pt.current[pt.current.length-1])!==null&&rt!==void 0?rt:et)!==Be&&(pt.current.push(Be),y?.(Be))}),ht=E.useRef(),mt=function(){clearTimeout(ht.current)},_t=function(rt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;mt(),It===0?bt(rt):ht.current=setTimeout(function(){bt(rt)},It*1e3)};E.useEffect(function(){return mt},[]);var jt=E.useState(!1),ar=Le(jt,2),dr=ar[0],mr=ar[1];or(function(Be){(!Be||et)&&mr(!0)},[et]);var Cr=E.useState(null),Pr=Le(Cr,2),kr=Pr[0],pr=Pr[1],hn=E.useState(null),Ht=Le(hn,2),er=Ht[0],_r=Ht[1],Fe=function(rt){_r([rt.clientX,rt.clientY])},Zn=KX(et,lt,P&&er!==null?er:se,j,X,q,Z),Ut=Le(Zn,11),ei=Ut[0],So=Ut[1],zt=Ut[2],ti=Ut[3],Ti=Ut[4],wo=Ut[5],ri=Ut[6],xo=Ut[7],$n=Ut[8],tn=Ut[9],yr=Ut[10],ni=qX(qe,c,f,d),hr=Le(ni,2),$i=hr[0],zr=hr[1],An=$i.has("click"),Br=zr.has("click")||zr.has("contextMenu"),Vr=Vn(function(){dr||yr()}),gn=function(){ct.current&&P&&Br&&_t(!1)};YX(et,se,lt,Vr,gn),or(function(){Vr()},[er,j]),or(function(){et&&!(X!=null&&X[j])&&Vr()},[JSON.stringify(q)]);var Ai=E.useMemo(function(){var Be=XX(X,o,tn,P);return xt(Be,U?.(tn))},[tn,U,X,o,P]);E.useImperativeHandle(n,function(){return{nativeElement:Y.current,popupElement:dt.current,forceAlign:Vr}});var Eo=E.useState(0),Co=Le(Eo,2),ii=Co[0],_o=Co[1],Zi=E.useState(0),In=Le(Zi,2),ta=In[0],eo=In[1],St=function(){if(J&&se){var rt=se.getBoundingClientRect();_o(rt.width),eo(rt.height)}},Ro=function(){St(),Vr()},Oo=function(rt){mr(!1),yr(),m?.(rt)},to=function(){return new Promise(function(rt){St(),pr(function(){return rt})})};or(function(){kr&&(yr(),kr(),pr(null))},[kr]);function Hr(Be,rt,It,Lt){le[Be]=function(Pt){var Io;Lt?.(Pt),_t(rt,It);for(var Po=arguments.length,ra=new Array(Po>1?Po-1:0),Pi=1;Pi<Po;Pi++)ra[Pi-1]=arguments[Pi];(Io=Re[Be])===null||Io===void 0||Io.call.apply(Io,[Re,Pt].concat(ra))}}(An||Br)&&(le.onClick=function(Be){var rt;ct.current&&Br?_t(!1):!ct.current&&An&&(Fe(Be),_t(!0));for(var It=arguments.length,Lt=new Array(It>1?It-1:0),Pt=1;Pt<It;Pt++)Lt[Pt-1]=arguments[Pt];(rt=Re.onClick)===null||rt===void 0||rt.call.apply(rt,[Re,Be].concat(Lt))});var Ii=QX(et,Br,se,lt,T,A,fe,_t),To=$i.has("hover"),$o=zr.has("hover"),oi,Xt;To&&(Hr("onMouseEnter",!0,S,function(Be){Fe(Be)}),Hr("onPointerEnter",!0,S,function(Be){Fe(Be)}),oi=function(rt){(et||dr)&&lt!==null&&lt!==void 0&&lt.contains(rt.target)&&_t(!0,S)},P&&(le.onMouseMove=function(Be){var rt;(rt=Re.onMouseMove)===null||rt===void 0||rt.call(Re,Be)})),$o&&(Hr("onMouseLeave",!1,C),Hr("onPointerLeave",!1,C),Xt=function(){_t(!1,C)}),$i.has("focus")&&Hr("onFocus",!0,x),zr.has("focus")&&Hr("onBlur",!1,$),$i.has("contextMenu")&&(le.onContextMenu=function(Be){var rt;ct.current&&zr.has("contextMenu")?_t(!1):(Fe(Be),_t(!0)),Be.preventDefault();for(var It=arguments.length,Lt=new Array(It>1?It-1:0),Pt=1;Pt<It;Pt++)Lt[Pt-1]=arguments[Pt];(rt=Re.onContextMenu)===null||rt===void 0||rt.call.apply(rt,[Re,Be].concat(Lt))}),Se&&(le.className=xt(Re.className,Se));var br=E.useRef(!1);br.current||(br.current=I||et||dr);var Rr=me(me({},Re),le),Mr={},rn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];rn.forEach(function(Be){Ee[Be]&&(Mr[Be]=function(){for(var rt,It=arguments.length,Lt=new Array(It),Pt=0;Pt<It;Pt++)Lt[Pt]=arguments[Pt];(rt=Rr[Be])===null||rt===void 0||rt.call.apply(rt,[Rr].concat(Lt)),Ee[Be].apply(Ee,Lt)})});var Ur=E.cloneElement(ee,me(me({},Rr),Mr)),Ao={x:wo,y:ri},ro=te?me({},te!==!0?te:{}):null;return E.createElement(E.Fragment,null,E.createElement(Oc,{disabled:!et,ref:V,onResize:Ro},E.createElement(WX,{getTriggerDOMNode:Oe},Ur)),br.current&&E.createElement(s$.Provider,{value:Ke},E.createElement(UX,{portal:e,ref:Dt,prefixCls:o,popup:W,className:xt(z,Ai),style:B,target:se,onMouseEnter:oi,onMouseLeave:Xt,onPointerEnter:oi,zIndex:M,open:et,keepDom:dr,fresh:D,onClick:G,onPointerDownCapture:Ii,mask:T,motion:ve,maskMotion:Ae,onVisibleChanged:Oo,onPrepare:to,forceRender:I,autoDestroy:_e,getPopupContainer:O,align:tn,arrow:ro,arrowPos:Ao,ready:ei,offsetX:So,offsetY:zt,offsetR:ti,offsetB:Ti,onAlign:Vr,stretch:J,targetWidth:ii/xo,targetHeight:ta/$n})))});return t}const eK=ZX(HP);function tK(e,t,r){return xt({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const rK=(e,t)=>t||e,nK=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,i;const{variant:o,[e]:s}=E.useContext(Ei),u=E.useContext(xX),c=s?.variant;let f;typeof t<"u"?f=t:r===!1?f="borderless":f=(i=(n=u??c)!==null&&n!==void 0?n:o)!==null&&i!==void 0?i:"outlined";const d=IW.includes(f);return[f,d]};var iK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},oK=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:iK}))},aK=E.forwardRef(oK);function YP(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,s=e.style;return E.createElement("div",{className:xt("".concat(r,"-content"),o),style:s},E.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var Js={shiftX:64,adjustY:1},Zs={adjustX:1,shiftY:!0},pi=[0,0],sK={left:{points:["cr","cl"],overflow:Zs,offset:[-4,0],targetOffset:pi},right:{points:["cl","cr"],overflow:Zs,offset:[4,0],targetOffset:pi},top:{points:["bc","tc"],overflow:Js,offset:[0,-4],targetOffset:pi},bottom:{points:["tc","bc"],overflow:Js,offset:[0,4],targetOffset:pi},topLeft:{points:["bl","tl"],overflow:Js,offset:[0,-4],targetOffset:pi},leftTop:{points:["tr","tl"],overflow:Zs,offset:[-4,0],targetOffset:pi},topRight:{points:["br","tr"],overflow:Js,offset:[0,-4],targetOffset:pi},rightTop:{points:["tl","tr"],overflow:Zs,offset:[4,0],targetOffset:pi},bottomRight:{points:["tr","br"],overflow:Js,offset:[0,4],targetOffset:pi},rightBottom:{points:["bl","br"],overflow:Zs,offset:[4,0],targetOffset:pi},bottomLeft:{points:["tl","bl"],overflow:Js,offset:[0,4],targetOffset:pi},leftBottom:{points:["br","bl"],overflow:Zs,offset:[-4,0],targetOffset:pi}},lK=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],uK=function(t,r){var n=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,s=t.mouseEnterDelay,u=s===void 0?0:s,c=t.mouseLeaveDelay,f=c===void 0?.1:c,d=t.overlayStyle,g=t.prefixCls,h=g===void 0?"rc-tooltip":g,y=t.children,m=t.onVisibleChange,S=t.afterVisibleChange,b=t.transitionName,C=t.animation,x=t.motion,$=t.placement,T=$===void 0?"right":$,_=t.align,A=_===void 0?{}:_,O=t.destroyTooltipOnHide,I=O===void 0?!1:O,L=t.defaultVisible,F=t.getTooltipContainer,W=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,B=t.id,j=t.showArrow,N=j===void 0?!0:j,X=Xn(t,lK),q=E.useRef(null);E.useImperativeHandle(r,function(){return q.current});var M=me({},X);"visible"in t&&(M.popupVisible=t.visible);var J=function(){return E.createElement(YP,{key:"content",prefixCls:h,id:B,overlayInnerStyle:W},z)};return E.createElement(eK,fr({popupClassName:n,prefixCls:h,popup:J,action:o,builtinPlacements:sK,popupPlacement:T,ref:q,popupAlign:A,getPopupContainer:F,onPopupVisibleChange:m,afterPopupVisibleChange:S,popupTransitionName:b,popupAnimation:C,popupMotion:x,defaultPopupVisible:L,autoDestroy:I,mouseLeaveDelay:f,popupStyle:d,mouseEnterDelay:u,arrow:N},M),y)};const cK=E.forwardRef(uK);function fK(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,o=0,s=i,u=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),f=i-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),g=2*i-f,h=d,y=2*i-u,m=c,S=2*i-o,b=s,C=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),$=`polygon(${x}px 100%, 50% ${x}px, ${2*i-x}px 100%, ${x}px 100%)`,T=`path('M ${o} ${s} A ${n} ${n} 0 0 0 ${u} ${c} L ${f} ${d} A ${r} ${r} 0 0 1 ${g} ${h} L ${y} ${m} A ${n} ${n} 0 0 0 ${S} ${b} Z')`;return{arrowShadowWidth:C,arrowPath:T,arrowPolygon:$}}const dK=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:u,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ft(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},QP=8;function JP(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?QP:n}}function gd(e,t){return e?t:{}}function pK(e,t,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},dK(e,t,i)),{"&:before":{background:t}})]},gd(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ft(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),gd(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ft(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),gd(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),gd(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function hK(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const s=Object.assign(Object.assign({},o),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const h$={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},gK={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},vK=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function mK(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,s=t/2,u={};return Object.keys(h$).forEach(c=>{const f=n&&gK[c]||h$[c],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(u[c]=d,vK.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const g=JP({contentRadius:o,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-g.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=g.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-g.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":d.offset[1]=g.arrowOffsetHorizontal+s;break}d.overflow=hK(c,g,t,r),d.htmlRegion="visibleFirst"}),u}const yK=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:u,boxShadowSecondary:c,paddingSM:f,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Hb(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:u,padding:`${Ft(e.calc(f).div(2).equal())} ${Ft(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,QP)}},[`${t}-content`]:{position:"relative"}}),oq(e,(g,h)=>{let{darkColor:y}=h;return{[`&${t}-${g}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},pK(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bK=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},JP({contentRadius:e.borderRadius,limitVerticalRadius:!0})),fK(Ss(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ZP=(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ub("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:s}=n,u=Ss(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:s});return[yK(u),jX(n,"zoom-big-fast")]},bK,{resetStyle:!1,injectStyle:t})(e)}),SK=cp.map(e=>`${e}-inverse`);function wK(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ot(SK),ot(cp)).includes(e):cp.includes(e)}function e5(e,t){const r=wK(t),n=xt({[`${e}-${t}`]:t&&r}),i={},o={};return t&&!r&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:o}}const xK=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:s}=e,{getPrefixCls:u}=E.useContext(Ei),c=u("tooltip",t),[f,d,g]=ZP(c),h=e5(c,o),y=h.arrowStyle,m=Object.assign(Object.assign({},s),h.overlayStyle),S=xt(d,g,c,`${c}-pure`,`${c}-placement-${n}`,r,h.className);return f(E.createElement("div",{className:S,style:y},E.createElement("div",{className:`${c}-arrow`}),E.createElement(YP,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),i)))};var EK=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const CK=E.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:s,overlayClassName:u,color:c,overlayInnerStyle:f,children:d,afterOpenChange:g,afterVisibleChange:h,destroyTooltipOnHide:y,arrow:m=!0,title:S,overlay:b,builtinPlacements:C,arrowPointAtCenter:x=!1,autoAdjustOverflow:$=!0}=e,T=!!m,[,_]=jl(),{getPopupContainer:A,getPrefixCls:O,direction:I}=E.useContext(Ei),L=oP(),F=E.useRef(null),W=()=>{var Ve;(Ve=F.current)===null||Ve===void 0||Ve.forceAlign()};E.useImperativeHandle(t,()=>{var Ve;return{forceAlign:W,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),W()},nativeElement:(Ve=F.current)===null||Ve===void 0?void 0:Ve.nativeElement}});const[z,B]=vc(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),j=!S&&!b&&S!==0,N=Ve=>{var Ce,Ge;B(j?!1:Ve),j||((Ce=e.onOpenChange)===null||Ce===void 0||Ce.call(e,Ve),(Ge=e.onVisibleChange)===null||Ge===void 0||Ge.call(e,Ve))},X=E.useMemo(()=>{var Ve,Ce;let Ge=x;return typeof m=="object"&&(Ge=(Ce=(Ve=m.pointAtCenter)!==null&&Ve!==void 0?Ve:m.arrowPointAtCenter)!==null&&Ce!==void 0?Ce:x),C||mK({arrowPointAtCenter:Ge,autoAdjustOverflow:$,arrowWidth:T?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS})},[x,m,C,_]),q=E.useMemo(()=>S===0?S:b||S||"",[b,S]),M=E.createElement(EX,{space:!0},typeof q=="function"?q():q),{getPopupContainer:J,placement:U="top",mouseEnterDelay:D=.1,mouseLeaveDelay:P=.1,overlayStyle:G,rootClassName:Z}=e,te=EK(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=O("tooltip",i),ye=O(),ae=e["data-popover-inject"];let be=z;!("open"in e)&&!("visible"in e)&&j&&(be=!1);const he=E.isValidElement(d)&&!Jq(d)?d:E.createElement("span",null,d),xe=he.props,Se=!xe.className||typeof xe.className=="string"?xt(xe.className,o||`${K}-open`):xe.className,[Oe,Ee,_e]=ZP(K,!ae),$e=e5(K,c),Pe=$e.arrowStyle,qe=Object.assign(Object.assign({},f),$e.overlayStyle),Qe=xt(u,{[`${K}-rtl`]:I==="rtl"},$e.className,Z,Ee,_e),[Ne,je]=aG("Tooltip",te.zIndex),Ke=E.createElement(cK,Object.assign({},te,{zIndex:Ne,showArrow:T,placement:U,mouseEnterDelay:D,mouseLeaveDelay:P,prefixCls:K,overlayClassName:Qe,overlayStyle:Object.assign(Object.assign({},Pe),G),getTooltipContainer:J||s||A,ref:F,builtinPlacements:X,overlay:M,visible:be,onVisibleChange:N,afterVisibleChange:g??h,overlayInnerStyle:qe,arrowContent:E.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:uG(ye,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),be?FP(he,{className:Se}):he);return Oe(E.createElement(NP.Provider,{value:je},Ke))}),Hp=CK;Hp._InternalPanelDoNotUseOrYouWillBeFired=xK;function _K(e){return Ss(e,{inputAffixPadding:e.paddingXXS})}const RK=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:s,fontSizeLG:u,lineHeightLG:c,paddingSM:f,controlPaddingHorizontalSM:d,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:y,colorPrimary:m,controlOutlineWidth:S,controlOutline:b,colorErrorOutline:C,colorWarningOutline:x,colorBgContainer:$}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-i,0),paddingBlockLG:Math.ceil((s-u*c)/2*10)/10-i,paddingInline:f-i,paddingInlineSM:d-i,paddingInlineLG:g-i,addonBg:h,activeBorderColor:m,hoverBorderColor:y,activeShadow:`0 0 0 ${S}px ${b}`,errorActiveShadow:`0 0 0 ${S}px ${C}`,warningActiveShadow:`0 0 0 ${S}px ${x}`,hoverBg:$,activeBg:$,inputFontSize:r,inputFontSizeLG:u,inputFontSizeSM:r}},OK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Kb=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},OK(Ss(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),t5=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),g$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},t5(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),TK=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t5(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kb(e))}),g$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),g$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),v$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),$K=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},v$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),v$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Kb(e))}})}),AK=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},r5=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},r5(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),IK=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r5(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kb(e))}),m$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),y$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),PK=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},y$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),y$(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),kK=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),n5=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${Ft(t)} ${Ft(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},i5=e=>({padding:`${Ft(e.paddingBlockSM)} ${Ft(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),o5=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ft(e.paddingBlock)} ${Ft(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kK(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},n5(e)),"&-sm":Object.assign({},i5(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),MK=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},n5(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},i5(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ft(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Ft(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ft(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Ft(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${Ft(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},rq()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
1162
1162
  & > ${t}-affix-wrapper,
1163
1163
  & > ${t}-number-affix-wrapper,
1164
1164
  & > ${r}-picker-range
@@ -1171,12 +1171,12 @@ html body {
1171
1171
  & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
1172
1172
  & > ${r}-select:last-child > ${r}-select-selector,
1173
1173
  & > ${r}-cascader-picker:last-child ${t},
1174
- & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},MK=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,s=i(r).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hb(e)),o5(e)),OK(e)),AK(e)),$K(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},DK=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ft(e.inputAffixPadding)}`}}}},LK=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:s,iconCls:u}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},o5(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),DK(e)),{[`${u}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}})}},FK=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Hb(e)),kK(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},TK(e)),IK(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},NK=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
1174
+ & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},DK=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,s=i(r).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hb(e)),o5(e)),TK(e)),IK(e)),AK(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},LK=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ft(e.inputAffixPadding)}`}}}},FK=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:s,iconCls:u}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},o5(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),LK(e)),{[`${u}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}})}},NK=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Hb(e)),MK(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},$K(e)),PK(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},jK=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
1175
1175
  > ${t},
1176
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},jK=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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"}},[`
1176
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},zK=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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"}},[`
1177
1177
  &-allow-clear > ${t},
1178
1178
  &-affix-wrapper${n}-has-feedback ${t}
1179
- `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&: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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},zK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},BK=Ub("Input",e=>{const t=Ss(e,CK(e));return[MK(t),jK(t),LK(t),FK(t),NK(t),zK(t),gG(t)]},_K,{resetFont:!1});function VK(e){return!!(e.addonBefore||e.addonAfter)}function HK(e){return!!(e.prefix||e.suffix||e.allowClear)}function b$(e,t,r){var n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function S$(e,t,r,n){if(r){var i=t;if(t.type==="click"){i=b$(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=b$(t,e,n),r(i);return}r(i)}}var UK=oe.forwardRef(function(e,t){var r,n,i=e.inputElement,o=e.children,s=e.prefixCls,u=e.prefix,c=e.suffix,f=e.addonBefore,d=e.addonAfter,g=e.className,h=e.style,y=e.disabled,m=e.readOnly,S=e.focused,b=e.triggerFocus,C=e.allowClear,x=e.value,$=e.handleReset,T=e.hidden,_=e.classes,A=e.classNames,O=e.dataAttrs,I=e.styles,L=e.components,F=e.onClear,W=o??i,z=L?.affixWrapper||"span",B=L?.groupWrapper||"span",j=L?.wrapper||"span",N=L?.groupAddon||"span",X=E.useRef(null),q=function(Ee){var _e;(_e=X.current)!==null&&_e!==void 0&&_e.contains(Ee.target)&&b?.()},M=HK(e),J=E.cloneElement(W,{value:x,className:xt(W.props.className,!M&&A?.variant)||null}),U=E.useRef(null);if(oe.useImperativeHandle(t,function(){return{nativeElement:U.current||X.current}}),M){var D=null;if(C){var P=!y&&!m&&x,G="".concat(s,"-clear-icon"),Z=ft(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";D=oe.createElement("span",{onClick:function(Ee){$?.(Ee),F?.()},onMouseDown:function(Ee){return Ee.preventDefault()},className:xt(G,ue(ue({},"".concat(G,"-hidden"),!P),"".concat(G,"-has-suffix"),!!c)),role:"button",tabIndex:-1},Z)}var te="".concat(s,"-affix-wrapper"),K=xt(te,ue(ue(ue(ue(ue({},"".concat(s,"-disabled"),y),"".concat(te,"-disabled"),y),"".concat(te,"-focused"),S),"".concat(te,"-readonly"),m),"".concat(te,"-input-with-clear-btn"),c&&C&&x),_?.affixWrapper,A?.affixWrapper,A?.variant),ye=(c||C)&&oe.createElement("span",{className:xt("".concat(s,"-suffix"),A?.suffix),style:I?.suffix},D,c);J=oe.createElement(z,fr({className:K,style:I?.affixWrapper,onClick:q},O?.affixWrapper,{ref:X}),u&&oe.createElement("span",{className:xt("".concat(s,"-prefix"),A?.prefix),style:I?.prefix},u),J,ye)}if(VK(e)){var ae="".concat(s,"-group"),be="".concat(ae,"-addon"),he="".concat(ae,"-wrapper"),xe=xt("".concat(s,"-wrapper"),ae,_?.wrapper,A?.wrapper),Se=xt(he,ue({},"".concat(he,"-disabled"),y),_?.group,A?.groupWrapper);J=oe.createElement(B,{className:Se,ref:U},oe.createElement(j,{className:xe},f&&oe.createElement(N,{className:be},f),J,d&&oe.createElement(N,{className:be},d)))}return oe.cloneElement(J,{className:xt((r=J.props)===null||r===void 0?void 0:r.className,g)||null,style:me(me({},(n=J.props)===null||n===void 0?void 0:n.style),h),hidden:T})}),WK=["show"];function qK(e,t){return E.useMemo(function(){var r={};t&&(r.show=ft(t)==="object"&&t.formatter?t.formatter:!!t),r=me(me({},r),e);var n=r,i=n.show,o=Xn(n,WK);return me(me({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(s){return s.length}})},[e,t])}const GK=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:oe.createElement(Yq,null)}),t};function XK(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}var KK=`
1179
+ `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&: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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},BK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},VK=Ub("Input",e=>{const t=Ss(e,_K(e));return[DK(t),zK(t),FK(t),NK(t),jK(t),BK(t),vG(t)]},RK,{resetFont:!1});function HK(e){return!!(e.addonBefore||e.addonAfter)}function UK(e){return!!(e.prefix||e.suffix||e.allowClear)}function b$(e,t,r){var n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function S$(e,t,r,n){if(r){var i=t;if(t.type==="click"){i=b$(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=b$(t,e,n),r(i);return}r(i)}}var WK=oe.forwardRef(function(e,t){var r,n,i=e.inputElement,o=e.children,s=e.prefixCls,u=e.prefix,c=e.suffix,f=e.addonBefore,d=e.addonAfter,g=e.className,h=e.style,y=e.disabled,m=e.readOnly,S=e.focused,b=e.triggerFocus,C=e.allowClear,x=e.value,$=e.handleReset,T=e.hidden,_=e.classes,A=e.classNames,O=e.dataAttrs,I=e.styles,L=e.components,F=e.onClear,W=o??i,z=L?.affixWrapper||"span",B=L?.groupWrapper||"span",j=L?.wrapper||"span",N=L?.groupAddon||"span",X=E.useRef(null),q=function(Ee){var _e;(_e=X.current)!==null&&_e!==void 0&&_e.contains(Ee.target)&&b?.()},M=UK(e),J=E.cloneElement(W,{value:x,className:xt(W.props.className,!M&&A?.variant)||null}),U=E.useRef(null);if(oe.useImperativeHandle(t,function(){return{nativeElement:U.current||X.current}}),M){var D=null;if(C){var P=!y&&!m&&x,G="".concat(s,"-clear-icon"),Z=ft(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";D=oe.createElement("span",{onClick:function(Ee){$?.(Ee),F?.()},onMouseDown:function(Ee){return Ee.preventDefault()},className:xt(G,ue(ue({},"".concat(G,"-hidden"),!P),"".concat(G,"-has-suffix"),!!c)),role:"button",tabIndex:-1},Z)}var te="".concat(s,"-affix-wrapper"),K=xt(te,ue(ue(ue(ue(ue({},"".concat(s,"-disabled"),y),"".concat(te,"-disabled"),y),"".concat(te,"-focused"),S),"".concat(te,"-readonly"),m),"".concat(te,"-input-with-clear-btn"),c&&C&&x),_?.affixWrapper,A?.affixWrapper,A?.variant),ye=(c||C)&&oe.createElement("span",{className:xt("".concat(s,"-suffix"),A?.suffix),style:I?.suffix},D,c);J=oe.createElement(z,fr({className:K,style:I?.affixWrapper,onClick:q},O?.affixWrapper,{ref:X}),u&&oe.createElement("span",{className:xt("".concat(s,"-prefix"),A?.prefix),style:I?.prefix},u),J,ye)}if(HK(e)){var ae="".concat(s,"-group"),be="".concat(ae,"-addon"),he="".concat(ae,"-wrapper"),xe=xt("".concat(s,"-wrapper"),ae,_?.wrapper,A?.wrapper),Se=xt(he,ue({},"".concat(he,"-disabled"),y),_?.group,A?.groupWrapper);J=oe.createElement(B,{className:Se,ref:U},oe.createElement(j,{className:xe},f&&oe.createElement(N,{className:be},f),J,d&&oe.createElement(N,{className:be},d)))}return oe.cloneElement(J,{className:xt((r=J.props)===null||r===void 0?void 0:r.className,g)||null,style:me(me({},(n=J.props)===null||n===void 0?void 0:n.style),h),hidden:T})}),qK=["show"];function GK(e,t){return E.useMemo(function(){var r={};t&&(r.show=ft(t)==="object"&&t.formatter?t.formatter:!!t),r=me(me({},r),e);var n=r,i=n.show,o=Xn(n,qK);return me(me({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(s){return s.length}})},[e,t])}const XK=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:oe.createElement(Qq,null)}),t};function KK(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}var YK=`
1180
1180
  min-height:0 !important;
1181
1181
  max-height:none !important;
1182
1182
  height:0 !important;
@@ -1187,27 +1187,27 @@ html body {
1187
1187
  top:0 !important;
1188
1188
  right:0 !important;
1189
1189
  pointer-events: none !important;
1190
- `,YK=["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"],w0={},Nn;function QK(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&&w0[r])return w0[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),u=YK.map(function(f){return"".concat(f,":").concat(n.getPropertyValue(f))}).join(";"),c={sizingStyle:u,paddingSize:o,borderSize:s,boxSizing:i};return t&&r&&(w0[r]=c),c}function JK(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;Nn||(Nn=document.createElement("textarea"),Nn.setAttribute("tab-index","-1"),Nn.setAttribute("aria-hidden","true"),Nn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Nn)),e.getAttribute("wrap")?Nn.setAttribute("wrap",e.getAttribute("wrap")):Nn.removeAttribute("wrap");var i=QK(e,t),o=i.paddingSize,s=i.borderSize,u=i.boxSizing,c=i.sizingStyle;Nn.setAttribute("style","".concat(c,";").concat(KK)),Nn.value=e.value||e.placeholder||"";var f=void 0,d=void 0,g,h=Nn.scrollHeight;if(u==="border-box"?h+=s:u==="content-box"&&(h-=o),r!==null||n!==null){Nn.value=" ";var y=Nn.scrollHeight-o;r!==null&&(f=y*r,u==="border-box"&&(f=f+o+s),h=Math.max(f,h)),n!==null&&(d=y*n,u==="border-box"&&(d=d+o+s),g=h>d?"":"hidden",h=Math.min(d,h))}var m={height:h,overflowY:g,resize:"none"};return f&&(m.minHeight=f),d&&(m.maxHeight=d),m}var ZK=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],x0=0,E0=1,C0=2,eY=E.forwardRef(function(e,t){var r=e,n=r.prefixCls,i=r.defaultValue,o=r.value,s=r.autoSize,u=r.onResize,c=r.className,f=r.style,d=r.disabled,g=r.onChange;r.onInternalAutoSize;var h=Xn(r,ZK),y=vc(i,{value:o,postState:function(Z){return Z??""}}),m=Le(y,2),S=m[0],b=m[1],C=function(Z){b(Z.target.value),g?.(Z)},x=E.useRef();E.useImperativeHandle(t,function(){return{textArea:x.current}});var $=E.useMemo(function(){return s&&ft(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),T=Le($,2),_=T[0],A=T[1],O=!!s,I=function(){try{if(document.activeElement===x.current){var Z=x.current,te=Z.selectionStart,K=Z.selectionEnd,ye=Z.scrollTop;x.current.setSelectionRange(te,K),x.current.scrollTop=ye}}catch{}},L=E.useState(C0),F=Le(L,2),W=F[0],z=F[1],B=E.useState(),j=Le(B,2),N=j[0],X=j[1],q=function(){z(x0)};or(function(){O&&q()},[o,_,A,O]),or(function(){if(W===x0)z(E0);else if(W===E0){var G=JK(x.current,!1,_,A);z(C0),X(G)}else I()},[W]);var M=E.useRef(),J=function(){lc.cancel(M.current)},U=function(Z){W===C0&&(u?.(Z),s&&(J(),M.current=lc(function(){q()})))};E.useEffect(function(){return J},[]);var D=O?N:null,P=me(me({},f),D);return(W===x0||W===E0)&&(P.overflowY="hidden",P.overflowX="hidden"),E.createElement(Oc,{onResize:U,disabled:!(s||u)},E.createElement("textarea",fr({},h,{ref:x,style:P,className:xt(n,c,ue({},"".concat(n,"-disabled"),d)),disabled:d,value:S,onChange:C})))}),tY=["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"],rY=oe.forwardRef(function(e,t){var r,n=e.defaultValue,i=e.value,o=e.onFocus,s=e.onBlur,u=e.onChange,c=e.allowClear,f=e.maxLength,d=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,y=e.prefixCls,m=y===void 0?"rc-textarea":y,S=e.showCount,b=e.count,C=e.className,x=e.style,$=e.disabled,T=e.hidden,_=e.classNames,A=e.styles,O=e.onResize,I=e.onClear,L=e.onPressEnter,F=e.readOnly,W=e.autoSize,z=e.onKeyDown,B=Xn(e,tY),j=vc(n,{value:i,defaultValue:n}),N=Le(j,2),X=N[0],q=N[1],M=X==null?"":String(X),J=oe.useState(!1),U=Le(J,2),D=U[0],P=U[1],G=oe.useRef(!1),Z=oe.useState(null),te=Le(Z,2),K=te[0],ye=te[1],ae=E.useRef(null),be=E.useRef(null),he=function(){var Y;return(Y=be.current)===null||Y===void 0?void 0:Y.textArea},xe=function(){he().focus()};E.useImperativeHandle(t,function(){var pe;return{resizableTextArea:be.current,focus:xe,blur:function(){he().blur()},nativeElement:((pe=ae.current)===null||pe===void 0?void 0:pe.nativeElement)||he()}}),E.useEffect(function(){P(function(pe){return!$&&pe})},[$]);var Se=oe.useState(null),Oe=Le(Se,2),Ee=Oe[0],_e=Oe[1];oe.useEffect(function(){if(Ee){var pe;(pe=he()).setSelectionRange.apply(pe,ot(Ee))}},[Ee]);var $e=qK(b,S),Pe=(r=$e.max)!==null&&r!==void 0?r:f,qe=Number(Pe)>0,Qe=$e.strategy(M),Ne=!!Pe&&Qe>Pe,je=function(Y,V){var ee=V;!G.current&&$e.exceedFormatter&&$e.max&&$e.strategy(V)>$e.max&&(ee=$e.exceedFormatter(V,{max:$e.max}),V!==ee&&_e([he().selectionStart||0,he().selectionEnd||0])),q(ee),S$(Y.currentTarget,Y,u,ee)},Ke=function(Y){G.current=!0,d?.(Y)},Ve=function(Y){G.current=!1,je(Y,Y.currentTarget.value),g?.(Y)},Ce=function(Y){je(Y,Y.target.value)},Ge=function(Y){Y.key==="Enter"&&L&&L(Y),z?.(Y)},lt=function(Y){P(!0),o?.(Y)},At=function(Y){P(!1),s?.(Y)},dt=function(Y){q(""),xe(),S$(he(),Y,u)},Dt=h,$t;$e.show&&($e.showFormatter?$t=$e.showFormatter({value:M,count:Qe,maxLength:Pe}):$t="".concat(Qe).concat(qe?" / ".concat(Pe):""),Dt=oe.createElement(oe.Fragment,null,Dt,oe.createElement("span",{className:xt("".concat(m,"-data-count"),_?.count),style:A?.count},$t)));var ne=function(Y){var V;O?.(Y),(V=he())!==null&&V!==void 0&&V.style.height&&ye(!0)},se=!W&&!S&&!c;return oe.createElement(UK,{ref:ae,value:M,allowClear:c,handleReset:dt,suffix:Dt,prefixCls:m,classNames:me(me({},_),{},{affixWrapper:xt(_?.affixWrapper,ue(ue({},"".concat(m,"-show-count"),S),"".concat(m,"-textarea-allow-clear"),c))}),disabled:$,focused:D,className:xt(C,Ne&&"".concat(m,"-out-of-range")),style:me(me({},x),K&&!se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $t=="string"?$t:void 0}},hidden:T,readOnly:F,onClear:I},oe.createElement(eY,fr({},B,{autoSize:W,maxLength:f,onKeyDown:Ge,onChange:Ce,onFocus:lt,onBlur:At,onCompositionStart:Ke,onCompositionEnd:Ve,className:xt(_?.textarea),style:me(me({},A?.textarea),{},{resize:x?.resize}),disabled:$,prefixCls:m,onResize:ne,ref:be,readOnly:F})))}),nY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const iY=E.forwardRef((e,t)=>{var r,n;const{prefixCls:i,bordered:o=!0,size:s,disabled:u,status:c,allowClear:f,classNames:d,rootClassName:g,className:h,style:y,styles:m,variant:S}=e,b=nY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:C,direction:x,textArea:$}=E.useContext(Ei),T=cG(s),_=E.useContext(up),A=u??_,{status:O,hasFeedback:I,feedbackIcon:L}=E.useContext(x1),F=tK(O,c),W=E.useRef(null);E.useImperativeHandle(t,()=>{var U;return{resizableTextArea:(U=W.current)===null||U===void 0?void 0:U.resizableTextArea,focus:D=>{var P,G;XK((G=(P=W.current)===null||P===void 0?void 0:P.resizableTextArea)===null||G===void 0?void 0:G.textArea,D)},blur:()=>{var D;return(D=W.current)===null||D===void 0?void 0:D.blur()}}});const z=C("input",i),B=Zq(z),[j,N,X]=BK(z,B),[q,M]=rK("textArea",S,o),J=GK(f??$?.allowClear);return j(E.createElement(rY,Object.assign({autoComplete:$?.autoComplete},b,{style:Object.assign(Object.assign({},$?.style),y),styles:Object.assign(Object.assign({},$?.styles),m),disabled:A,allowClear:J,className:xt(X,B,h,g,$?.className),classNames:Object.assign(Object.assign(Object.assign({},d),$?.classNames),{textarea:xt({[`${z}-sm`]:T==="small",[`${z}-lg`]:T==="large"},N,d?.textarea,(r=$?.classNames)===null||r===void 0?void 0:r.textarea),variant:xt({[`${z}-${q}`]:M},eK(z,F)),affixWrapper:xt(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x==="rtl",[`${z}-affix-wrapper-sm`]:T==="small",[`${z}-affix-wrapper-lg`]:T==="large",[`${z}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},N)}),prefixCls:z,suffix:I&&E.createElement("span",{className:`${z}-textarea-suffix`},L),ref:W})))});var oY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},aY=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:oY}))},sY=E.forwardRef(aY),lY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},uY=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:lY}))},cY=E.forwardRef(uY),fY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},dY=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:fY}))},pY=E.forwardRef(dY),hY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const gY={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},C1=E.forwardRef((e,t)=>{const r=d=>{const{keyCode:g}=d;g===dp.ENTER&&d.preventDefault()},n=d=>{const{keyCode:g}=d,{onClick:h}=e;g===dp.ENTER&&h&&h()},{style:i,noStyle:o,disabled:s,tabIndex:u=0}=e,c=hY(e,["style","noStyle","disabled","tabIndex"]);let f={};return o||(f=Object.assign({},gY)),s&&(f.pointerEvents="none"),f=Object.assign(Object.assign({},f),i),E.createElement("div",Object.assign({role:"button",tabIndex:u,ref:t},c,{onKeyDown:r,onKeyUp:n,style:f}))}),vY=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:r,fontWeight:o,fontSize:e,lineHeight:t}},mY=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
1190
+ `,QK=["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"],w0={},Nn;function JK(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&&w0[r])return w0[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),u=QK.map(function(f){return"".concat(f,":").concat(n.getPropertyValue(f))}).join(";"),c={sizingStyle:u,paddingSize:o,borderSize:s,boxSizing:i};return t&&r&&(w0[r]=c),c}function ZK(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;Nn||(Nn=document.createElement("textarea"),Nn.setAttribute("tab-index","-1"),Nn.setAttribute("aria-hidden","true"),Nn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Nn)),e.getAttribute("wrap")?Nn.setAttribute("wrap",e.getAttribute("wrap")):Nn.removeAttribute("wrap");var i=JK(e,t),o=i.paddingSize,s=i.borderSize,u=i.boxSizing,c=i.sizingStyle;Nn.setAttribute("style","".concat(c,";").concat(YK)),Nn.value=e.value||e.placeholder||"";var f=void 0,d=void 0,g,h=Nn.scrollHeight;if(u==="border-box"?h+=s:u==="content-box"&&(h-=o),r!==null||n!==null){Nn.value=" ";var y=Nn.scrollHeight-o;r!==null&&(f=y*r,u==="border-box"&&(f=f+o+s),h=Math.max(f,h)),n!==null&&(d=y*n,u==="border-box"&&(d=d+o+s),g=h>d?"":"hidden",h=Math.min(d,h))}var m={height:h,overflowY:g,resize:"none"};return f&&(m.minHeight=f),d&&(m.maxHeight=d),m}var eY=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],x0=0,E0=1,C0=2,tY=E.forwardRef(function(e,t){var r=e,n=r.prefixCls,i=r.defaultValue,o=r.value,s=r.autoSize,u=r.onResize,c=r.className,f=r.style,d=r.disabled,g=r.onChange;r.onInternalAutoSize;var h=Xn(r,eY),y=vc(i,{value:o,postState:function(Z){return Z??""}}),m=Le(y,2),S=m[0],b=m[1],C=function(Z){b(Z.target.value),g?.(Z)},x=E.useRef();E.useImperativeHandle(t,function(){return{textArea:x.current}});var $=E.useMemo(function(){return s&&ft(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),T=Le($,2),_=T[0],A=T[1],O=!!s,I=function(){try{if(document.activeElement===x.current){var Z=x.current,te=Z.selectionStart,K=Z.selectionEnd,ye=Z.scrollTop;x.current.setSelectionRange(te,K),x.current.scrollTop=ye}}catch{}},L=E.useState(C0),F=Le(L,2),W=F[0],z=F[1],B=E.useState(),j=Le(B,2),N=j[0],X=j[1],q=function(){z(x0)};or(function(){O&&q()},[o,_,A,O]),or(function(){if(W===x0)z(E0);else if(W===E0){var G=ZK(x.current,!1,_,A);z(C0),X(G)}else I()},[W]);var M=E.useRef(),J=function(){lc.cancel(M.current)},U=function(Z){W===C0&&(u?.(Z),s&&(J(),M.current=lc(function(){q()})))};E.useEffect(function(){return J},[]);var D=O?N:null,P=me(me({},f),D);return(W===x0||W===E0)&&(P.overflowY="hidden",P.overflowX="hidden"),E.createElement(Oc,{onResize:U,disabled:!(s||u)},E.createElement("textarea",fr({},h,{ref:x,style:P,className:xt(n,c,ue({},"".concat(n,"-disabled"),d)),disabled:d,value:S,onChange:C})))}),rY=["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"],nY=oe.forwardRef(function(e,t){var r,n=e.defaultValue,i=e.value,o=e.onFocus,s=e.onBlur,u=e.onChange,c=e.allowClear,f=e.maxLength,d=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,y=e.prefixCls,m=y===void 0?"rc-textarea":y,S=e.showCount,b=e.count,C=e.className,x=e.style,$=e.disabled,T=e.hidden,_=e.classNames,A=e.styles,O=e.onResize,I=e.onClear,L=e.onPressEnter,F=e.readOnly,W=e.autoSize,z=e.onKeyDown,B=Xn(e,rY),j=vc(n,{value:i,defaultValue:n}),N=Le(j,2),X=N[0],q=N[1],M=X==null?"":String(X),J=oe.useState(!1),U=Le(J,2),D=U[0],P=U[1],G=oe.useRef(!1),Z=oe.useState(null),te=Le(Z,2),K=te[0],ye=te[1],ae=E.useRef(null),be=E.useRef(null),he=function(){var Y;return(Y=be.current)===null||Y===void 0?void 0:Y.textArea},xe=function(){he().focus()};E.useImperativeHandle(t,function(){var pe;return{resizableTextArea:be.current,focus:xe,blur:function(){he().blur()},nativeElement:((pe=ae.current)===null||pe===void 0?void 0:pe.nativeElement)||he()}}),E.useEffect(function(){P(function(pe){return!$&&pe})},[$]);var Se=oe.useState(null),Oe=Le(Se,2),Ee=Oe[0],_e=Oe[1];oe.useEffect(function(){if(Ee){var pe;(pe=he()).setSelectionRange.apply(pe,ot(Ee))}},[Ee]);var $e=GK(b,S),Pe=(r=$e.max)!==null&&r!==void 0?r:f,qe=Number(Pe)>0,Qe=$e.strategy(M),Ne=!!Pe&&Qe>Pe,je=function(Y,V){var ee=V;!G.current&&$e.exceedFormatter&&$e.max&&$e.strategy(V)>$e.max&&(ee=$e.exceedFormatter(V,{max:$e.max}),V!==ee&&_e([he().selectionStart||0,he().selectionEnd||0])),q(ee),S$(Y.currentTarget,Y,u,ee)},Ke=function(Y){G.current=!0,d?.(Y)},Ve=function(Y){G.current=!1,je(Y,Y.currentTarget.value),g?.(Y)},Ce=function(Y){je(Y,Y.target.value)},Ge=function(Y){Y.key==="Enter"&&L&&L(Y),z?.(Y)},lt=function(Y){P(!0),o?.(Y)},At=function(Y){P(!1),s?.(Y)},dt=function(Y){q(""),xe(),S$(he(),Y,u)},Dt=h,$t;$e.show&&($e.showFormatter?$t=$e.showFormatter({value:M,count:Qe,maxLength:Pe}):$t="".concat(Qe).concat(qe?" / ".concat(Pe):""),Dt=oe.createElement(oe.Fragment,null,Dt,oe.createElement("span",{className:xt("".concat(m,"-data-count"),_?.count),style:A?.count},$t)));var ne=function(Y){var V;O?.(Y),(V=he())!==null&&V!==void 0&&V.style.height&&ye(!0)},se=!W&&!S&&!c;return oe.createElement(WK,{ref:ae,value:M,allowClear:c,handleReset:dt,suffix:Dt,prefixCls:m,classNames:me(me({},_),{},{affixWrapper:xt(_?.affixWrapper,ue(ue({},"".concat(m,"-show-count"),S),"".concat(m,"-textarea-allow-clear"),c))}),disabled:$,focused:D,className:xt(C,Ne&&"".concat(m,"-out-of-range")),style:me(me({},x),K&&!se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $t=="string"?$t:void 0}},hidden:T,readOnly:F,onClear:I},oe.createElement(tY,fr({},B,{autoSize:W,maxLength:f,onKeyDown:Ge,onChange:Ce,onFocus:lt,onBlur:At,onCompositionStart:Ke,onCompositionEnd:Ve,className:xt(_?.textarea),style:me(me({},A?.textarea),{},{resize:x?.resize}),disabled:$,prefixCls:m,onResize:ne,ref:be,readOnly:F})))}),iY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const oY=E.forwardRef((e,t)=>{var r,n;const{prefixCls:i,bordered:o=!0,size:s,disabled:u,status:c,allowClear:f,classNames:d,rootClassName:g,className:h,style:y,styles:m,variant:S}=e,b=iY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:C,direction:x,textArea:$}=E.useContext(Ei),T=fG(s),_=E.useContext(up),A=u??_,{status:O,hasFeedback:I,feedbackIcon:L}=E.useContext(x1),F=rK(O,c),W=E.useRef(null);E.useImperativeHandle(t,()=>{var U;return{resizableTextArea:(U=W.current)===null||U===void 0?void 0:U.resizableTextArea,focus:D=>{var P,G;KK((G=(P=W.current)===null||P===void 0?void 0:P.resizableTextArea)===null||G===void 0?void 0:G.textArea,D)},blur:()=>{var D;return(D=W.current)===null||D===void 0?void 0:D.blur()}}});const z=C("input",i),B=eG(z),[j,N,X]=VK(z,B),[q,M]=nK("textArea",S,o),J=XK(f??$?.allowClear);return j(E.createElement(nY,Object.assign({autoComplete:$?.autoComplete},b,{style:Object.assign(Object.assign({},$?.style),y),styles:Object.assign(Object.assign({},$?.styles),m),disabled:A,allowClear:J,className:xt(X,B,h,g,$?.className),classNames:Object.assign(Object.assign(Object.assign({},d),$?.classNames),{textarea:xt({[`${z}-sm`]:T==="small",[`${z}-lg`]:T==="large"},N,d?.textarea,(r=$?.classNames)===null||r===void 0?void 0:r.textarea),variant:xt({[`${z}-${q}`]:M},tK(z,F)),affixWrapper:xt(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x==="rtl",[`${z}-affix-wrapper-sm`]:T==="small",[`${z}-affix-wrapper-lg`]:T==="large",[`${z}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},N)}),prefixCls:z,suffix:I&&E.createElement("span",{className:`${z}-textarea-suffix`},L),ref:W})))});var aY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},sY=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:aY}))},lY=E.forwardRef(sY),uY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},cY=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:uY}))},fY=E.forwardRef(cY),dY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},pY=function(t,r){return E.createElement(ea,fr({},t,{ref:r,icon:dY}))},hY=E.forwardRef(pY),gY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const vY={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},C1=E.forwardRef((e,t)=>{const r=d=>{const{keyCode:g}=d;g===dp.ENTER&&d.preventDefault()},n=d=>{const{keyCode:g}=d,{onClick:h}=e;g===dp.ENTER&&h&&h()},{style:i,noStyle:o,disabled:s,tabIndex:u=0}=e,c=gY(e,["style","noStyle","disabled","tabIndex"]);let f={};return o||(f=Object.assign({},vY)),s&&(f.pointerEvents="none"),f=Object.assign(Object.assign({},f),i),E.createElement("div",Object.assign({role:"button",tabIndex:u,ref:t},c,{onKeyDown:r,onKeyUp:n,style:f}))}),mY=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:r,fontWeight:o,fontSize:e,lineHeight:t}},yY=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
1191
1191
  h${n}&,
1192
1192
  div&-h${n},
1193
1193
  div&-h${n} > textarea,
1194
1194
  h${n}
1195
- `]=vY(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},yY=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},SP(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},bY=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:sp[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),SY=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Ft(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},wY=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),xY=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),EY=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},mY(e)),{[`
1195
+ `]=mY(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},bY=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},SP(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},SY=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:sp[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),wY=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Ft(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},xY=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),EY=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),CY=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},yY(e)),{[`
1196
1196
  & + h1${t},
1197
1197
  & + h2${t},
1198
1198
  & + h3${t},
1199
1199
  & + h4${t},
1200
1200
  & + h5${t}
1201
- `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),bY(e)),yY(e)),{[`
1201
+ `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),SY(e)),bY(e)),{[`
1202
1202
  ${t}-expand,
1203
1203
  ${t}-collapse,
1204
1204
  ${t}-edit,
1205
1205
  ${t}-copy
1206
- `]:Object.assign(Object.assign({},SP(e)),{marginInlineStart:e.marginXXS})}),SY(e)),wY(e)),xY()),{"&-rtl":{direction:"rtl"}})}},CY=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),a5=Ub("Typography",e=>[EY(e)],CY),_Y=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:o,maxLength:s,autoSize:u=!0,value:c,onSave:f,onCancel:d,onEnd:g,component:h,enterIcon:y=E.createElement(pY,null)}=e,m=E.useRef(null),S=E.useRef(!1),b=E.useRef(),[C,x]=E.useState(c);E.useEffect(()=>{x(c)},[c]),E.useEffect(()=>{var N;if(!((N=m.current)===null||N===void 0)&&N.resizableTextArea){const{textArea:X}=m.current.resizableTextArea;X.focus();const{length:q}=X.value;X.setSelectionRange(q,q)}},[]);const $=N=>{let{target:X}=N;x(X.value.replace(/[\n\r]/g,""))},T=()=>{S.current=!0},_=()=>{S.current=!1},A=N=>{let{keyCode:X}=N;S.current||(b.current=X)},O=()=>{f(C.trim())},I=N=>{let{keyCode:X,ctrlKey:q,altKey:M,metaKey:J,shiftKey:U}=N;b.current===X&&!S.current&&!q&&!M&&!J&&!U&&(X===dp.ENTER?(O(),g?.()):X===dp.ESC&&d())},L=()=>{O()},F=h?`${t}-${h}`:"",[W,z,B]=a5(t),j=xt(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,F,z,B);return W(E.createElement("div",{className:j,style:i},E.createElement(iY,{ref:m,maxLength:s,value:C,onChange:$,onKeyDown:A,onKeyUp:I,onCompositionStart:T,onCompositionEnd:_,onBlur:L,"aria-label":r,rows:1,autoSize:u}),y!==null?FP(y,{className:`${t}-edit-content-confirm`}):null))};var _0,w$;function RY(){return w$||(w$=1,_0=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),_0}var R0,x$;function OY(){if(x$)return R0;x$=1;var e=RY(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var u,c,f,d,g,h,y=!1;s||(s={}),u=s.debug||!1;try{f=e(),d=document.createRange(),g=document.getSelection(),h=document.createElement("span"),h.textContent=o,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(S){if(S.stopPropagation(),s.format)if(S.preventDefault(),typeof S.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[s.format]||t.default;window.clipboardData.setData(b,o)}else S.clipboardData.clearData(),S.clipboardData.setData(s.format,o);s.onCopy&&(S.preventDefault(),s.onCopy(S.clipboardData))}),document.body.appendChild(h),d.selectNodeContents(h),g.addRange(d);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");y=!0}catch(S){u&&console.error("unable to copy using execCommand: ",S),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(b){u&&console.error("unable to copy using clipboardData: ",b),u&&console.error("falling back to prompt"),c=n("message"in s?s.message:r),window.prompt(c,o)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(d):g.removeAllRanges()),h&&document.body.removeChild(h),f()}return y}return R0=i,R0}var TY=OY();const $Y=Ir(TY);var AY=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function u(d){try{f(n.next(d))}catch(g){s(g)}}function c(d){try{f(n.throw(d))}catch(g){s(g)}}function f(d){d.done?o(d.value):i(d.value).then(u,c)}f((n=n.apply(e,t||[])).next())})};const IY=e=>{let{copyConfig:t,children:r}=e;const[n,i]=E.useState(!1),[o,s]=E.useState(!1),u=E.useRef(null),c=()=>{u.current&&clearTimeout(u.current)},f={};t.format&&(f.format=t.format),E.useEffect(()=>c,[]);const d=Vn(g=>AY(void 0,void 0,void 0,function*(){var h;g?.preventDefault(),g?.stopPropagation(),s(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;$Y(y||String(r)||"",f),s(!1),i(!0),c(),u.current=setTimeout(()=>{i(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,g)}catch(y){throw s(!1),y}}));return{copied:n,copyLoading:o,onClick:d}};function O0(e,t){return E.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const PY=e=>{const t=E.useRef();return E.useEffect(()=>{t.current=e}),t.current},kY=(e,t)=>{const r=E.useRef(!1);E.useEffect(()=>{r.current?e():r.current=!0},t)};var MY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const s5=E.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:i,rootClassName:o,setContentRef:s,children:u,direction:c,style:f}=e,d=MY(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,typography:y}=E.useContext(Ei),m=c??h;let S=t;s&&(S=Lp(t,s));const b=g("typography",r),[C,x,$]=a5(b),T=xt(b,y?.className,{[`${b}-rtl`]:m==="rtl"},i,o,x,$),_=Object.assign(Object.assign({},y?.style),f);return C(E.createElement(n,Object.assign({className:T,style:_,ref:S},d),u))});function E$(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function vd(e,t,r){return e===!0||e===void 0?t:e||r&&t}const DY=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:i,tooltips:o,icon:s,loading:u,tabIndex:c,onCopy:f}=e,d=E$(o),g=E$(s),{copied:h,copy:y}=n??{},m=r?vd(d[1],h):vd(d[0],y),b=typeof m=="string"?m:r?h:y;return E.createElement(Hp,{key:"copy",title:m},E.createElement(C1,{className:xt(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:i}),onClick:f,"aria-label":b,tabIndex:c},r?vd(g[1],E.createElement(oK,null),!0):vd(g[0],u?E.createElement(rG,null):E.createElement(sY,null),!0)))},md=E.forwardRef((e,t)=>{let{style:r,children:n}=e;const i=E.useRef(null);return E.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),E.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function l5(e){const t=typeof e;return t==="string"||t==="number"}function LY(e){let t=0;return e.forEach(r=>{l5(r)?t+=String(r).length:t+=1}),t}function C$(e,t){let r=0;const n=[];for(let i=0;i<e.length;i+=1){if(r===t)return n;const o=e[i],u=l5(o)?String(o).length:1,c=r+u;if(c>t){const f=t-r;return n.push(String(o).slice(0,f)),n}n.push(o),r=c}return e}const T0=0,$0=1,A0=2,I0=3,_$=4,yd={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function FY(e){const{enableMeasure:t,width:r,text:n,children:i,rows:o,expanded:s,miscDeps:u,onEllipsis:c}=e,f=E.useMemo(()=>Rl(n),[n]),d=E.useMemo(()=>LY(f),[n]),g=E.useMemo(()=>i(f,!1),[n]),[h,y]=E.useState(null),m=E.useRef(null),S=E.useRef(null),b=E.useRef(null),C=E.useRef(null),x=E.useRef(null),[$,T]=E.useState(!1),[_,A]=E.useState(T0),[O,I]=E.useState(0),[L,F]=E.useState(null);or(()=>{A(t&&r&&d?$0:T0)},[r,n,o,t,f]),or(()=>{var j,N,X,q;if(_===$0){A(A0);const M=S.current&&getComputedStyle(S.current).whiteSpace;F(M)}else if(_===A0){const M=!!(!((j=b.current)===null||j===void 0)&&j.isExceed());A(M?I0:_$),y(M?[0,d]:null),T(M);const J=((N=b.current)===null||N===void 0?void 0:N.getHeight())||0,U=o===1?0:((X=C.current)===null||X===void 0?void 0:X.getHeight())||0,D=((q=x.current)===null||q===void 0?void 0:q.getHeight())||0,P=U+D,G=Math.max(J,P);I(G+1),c(M)}},[_]);const W=h?Math.ceil((h[0]+h[1])/2):0;or(()=>{var j;const[N,X]=h||[0,0];if(N!==X){const M=(((j=m.current)===null||j===void 0?void 0:j.getHeight())||0)>O;let J=W;X-N===1&&(J=M?N:X),y(M?[N,J]:[J,X])}},[h,W]);const z=E.useMemo(()=>{if(_!==I0||!h||h[0]!==h[1]){const j=i(f,!1);return _!==_$&&_!==T0?E.createElement("span",{style:Object.assign(Object.assign({},yd),{WebkitLineClamp:o})},j):j}return i(s?f:C$(f,h[0]),$)},[s,_,h,f].concat(ot(u))),B={width:r,margin:0,padding:0,whiteSpace:L==="nowrap"?"normal":"inherit"};return E.createElement(E.Fragment,null,z,_===A0&&E.createElement(E.Fragment,null,E.createElement(md,{style:Object.assign(Object.assign(Object.assign({},B),yd),{WebkitLineClamp:o}),ref:b},g),E.createElement(md,{style:Object.assign(Object.assign(Object.assign({},B),yd),{WebkitLineClamp:o-1}),ref:C},g),E.createElement(md,{style:Object.assign(Object.assign(Object.assign({},B),yd),{WebkitLineClamp:1}),ref:x},i([],!0))),_===I0&&h&&h[0]!==h[1]&&E.createElement(md,{style:Object.assign(Object.assign({},B),{top:400}),ref:m},i(C$(f,W),!0)),_===$0&&E.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const NY=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:i}=e;return!i?.title||!t?n:E.createElement(Hp,Object.assign({open:r?void 0:!1},i),n)};var jY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function zY(e,t){let{mark:r,code:n,underline:i,delete:o,strong:s,keyboard:u,italic:c}=e,f=t;function d(g,h){h&&(f=E.createElement(g,{},f))}return d("strong",s),d("u",i),d("del",o),d("code",n),d("mark",r),d("kbd",u),d("i",c),f}const BY="...",Up=E.forwardRef((e,t)=>{var r,n,i;const{prefixCls:o,className:s,style:u,type:c,disabled:f,children:d,ellipsis:g,editable:h,copyable:y,component:m,title:S}=e,b=jY(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:x}=E.useContext(Ei),[$]=eW("Text"),T=E.useRef(null),_=E.useRef(null),A=C("typography",o),O=L2(b,["mark","code","delete","underline","strong","keyboard","italic"]),[I,L]=O0(h),[F,W]=vc(!1,{value:L.editing}),{triggerType:z=["icon"]}=L,B=le=>{var fe;le&&((fe=L.onStart)===null||fe===void 0||fe.call(L)),W(le)},j=PY(F);kY(()=>{var le;!F&&j&&((le=_.current)===null||le===void 0||le.focus())},[F]);const N=le=>{le?.preventDefault(),B(!0)},X=le=>{var fe;(fe=L.onChange)===null||fe===void 0||fe.call(L,le),B(!1)},q=()=>{var le;(le=L.onCancel)===null||le===void 0||le.call(L),B(!1)},[M,J]=O0(y),{copied:U,copyLoading:D,onClick:P}=IY({copyConfig:J,children:d}),[G,Z]=E.useState(!1),[te,K]=E.useState(!1),[ye,ae]=E.useState(!1),[be,he]=E.useState(!1),[xe,Se]=E.useState(!0),[Oe,Ee]=O0(g,{expandable:!1,symbol:le=>le?$?.collapse:$?.expand}),[_e,$e]=vc(Ee.defaultExpanded||!1,{value:Ee.expanded}),Pe=Oe&&(!_e||Ee.expandable==="collapsible"),{rows:qe=1}=Ee,Qe=E.useMemo(()=>Pe&&(Ee.suffix!==void 0||Ee.onEllipsis||Ee.expandable||I||M),[Pe,Ee,I,M]);or(()=>{Oe&&!Qe&&(Z(i$("webkitLineClamp")),K(i$("textOverflow")))},[Qe,Oe]);const[Ne,je]=E.useState(Pe),Ke=E.useMemo(()=>Qe?!1:qe===1?te:G,[Qe,te,G]);or(()=>{je(Ke&&Pe)},[Ke,Pe]);const Ve=Pe&&(Ne?be:ye),Ce=Pe&&qe===1&&Ne,Ge=Pe&&qe>1&&Ne,lt=(le,fe)=>{var ve;$e(fe.expanded),(ve=Ee.onExpand)===null||ve===void 0||ve.call(Ee,le,fe)},[At,dt]=E.useState(0),Dt=le=>{let{offsetWidth:fe}=le;dt(fe)},$t=le=>{var fe;ae(le),ye!==le&&((fe=Ee.onEllipsis)===null||fe===void 0||fe.call(Ee,le))};E.useEffect(()=>{const le=T.current;if(Oe&&Ne&&le){const fe=Ge?le.offsetHeight<le.scrollHeight:le.offsetWidth<le.scrollWidth;be!==fe&&he(fe)}},[Oe,Ne,d,Ge,xe,At]),E.useEffect(()=>{const le=T.current;if(typeof IntersectionObserver>"u"||!le||!Ne||!Pe)return;const fe=new IntersectionObserver(()=>{Se(!!le.offsetParent)});return fe.observe(le),()=>{fe.disconnect()}},[Ne,Pe]);let ne={};Ee.tooltip===!0?ne={title:(r=L.text)!==null&&r!==void 0?r:d}:E.isValidElement(Ee.tooltip)?ne={title:Ee.tooltip}:typeof Ee.tooltip=="object"?ne=Object.assign({title:(n=L.text)!==null&&n!==void 0?n:d},Ee.tooltip):ne={title:Ee.tooltip};const se=E.useMemo(()=>{const le=fe=>["string","number"].includes(typeof fe);if(!(!Oe||Ne)){if(le(L.text))return L.text;if(le(d))return d;if(le(S))return S;if(le(ne.title))return ne.title}},[Oe,Ne,S,ne.title,Ve]);if(F)return E.createElement(_Y,{value:(i=L.text)!==null&&i!==void 0?i:typeof d=="string"?d:"",onSave:X,onCancel:q,onEnd:L.onEnd,prefixCls:A,className:s,style:u,direction:x,component:m,maxLength:L.maxLength,autoSize:L.autoSize,enterIcon:L.enterIcon});const pe=()=>{const{expandable:le,symbol:fe}=Ee;return!le||_e&&le!=="collapsible"?null:E.createElement(C1,{key:"expand",className:`${A}-${_e?"collapse":"expand"}`,onClick:ve=>lt(ve,{expanded:!_e}),"aria-label":_e?$.collapse:$?.expand},typeof fe=="function"?fe(_e):fe)},Y=()=>{if(!I)return;const{icon:le,tooltip:fe,tabIndex:ve}=L,Ae=Rl(fe)[0]||$?.edit,Me=typeof Ae=="string"?Ae:"";return z.includes("icon")?E.createElement(Hp,{key:"edit",title:fe===!1?"":Ae},E.createElement(C1,{ref:_,className:`${A}-edit`,onClick:N,"aria-label":Me,tabIndex:ve},le||E.createElement(cY,{role:"button"}))):null},V=()=>M?E.createElement(DY,Object.assign({key:"copy"},J,{prefixCls:A,copied:U,locale:$,onCopy:P,loading:D,iconOnly:d==null})):null,ee=le=>[le&&pe(),Y(),V()],Re=le=>[le&&!_e&&E.createElement("span",{"aria-hidden":!0,key:"ellipsis"},BY),Ee.suffix,ee(le)];return E.createElement(Oc,{onResize:Dt,disabled:!Pe},le=>E.createElement(NY,{tooltipProps:ne,enableEllipsis:Pe,isEllipsis:Ve},E.createElement(s5,Object.assign({className:xt({[`${A}-${c}`]:c,[`${A}-disabled`]:f,[`${A}-ellipsis`]:Oe,[`${A}-ellipsis-single-line`]:Ce,[`${A}-ellipsis-multiple-line`]:Ge},s),prefixCls:o,style:Object.assign(Object.assign({},u),{WebkitLineClamp:Ge?qe:void 0}),component:m,ref:Lp(le,T,t),direction:x,onClick:z.includes("text")?N:void 0,"aria-label":se?.toString(),title:S},O),E.createElement(FY,{enableMeasure:Pe&&!Ne,text:d,rows:qe,width:At,onEllipsis:$t,expanded:_e,miscDeps:[U,_e,D,I,M]},(fe,ve)=>zY(e,E.createElement(E.Fragment,null,fe.length>0&&ve&&!_e&&se?E.createElement("span",{key:"show-content","aria-hidden":!0},fe):fe,Re(ve)))))))});var VY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const HY=E.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,i=VY(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,E.createElement(Up,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),UY=E.forwardRef((e,t)=>E.createElement(Up,Object.assign({ref:t},e,{component:"div"})));var WY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const qY=(e,t)=>{var{ellipsis:r}=e,n=WY(e,["ellipsis"]);const i=E.useMemo(()=>r&&typeof r=="object"?L2(r,["expandable","rows"]):r,[r]);return E.createElement(Up,Object.assign({ref:t},n,{ellipsis:i,component:"span"}))},GY=E.forwardRef(qY);var XY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const KY=[1,2,3,4,5],YY=E.forwardRef((e,t)=>{const{level:r=1}=e,n=XY(e,["level"]);let i;return KY.includes(r)?i=`h${r}`:i="h1",E.createElement(Up,Object.assign({ref:t},n,{component:i}))}),kc=s5;kc.Text=GY;kc.Link=HY;kc.Title=YY;kc.Paragraph=UY;const QY={activeLevels:{debug:!0,info:!0,warning:!0,error:!0,fatal:!0},showTimestamp:!0,showTag:!0,includeTags:new Set,filterText:""},R$=we(Yo).attrs({flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start"})``,O$=we(kc.Title).attrs({level:5})`
1206
+ `]:Object.assign(Object.assign({},SP(e)),{marginInlineStart:e.marginXXS})}),wY(e)),xY(e)),EY()),{"&-rtl":{direction:"rtl"}})}},_Y=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),a5=Ub("Typography",e=>[CY(e)],_Y),RY=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:o,maxLength:s,autoSize:u=!0,value:c,onSave:f,onCancel:d,onEnd:g,component:h,enterIcon:y=E.createElement(hY,null)}=e,m=E.useRef(null),S=E.useRef(!1),b=E.useRef(),[C,x]=E.useState(c);E.useEffect(()=>{x(c)},[c]),E.useEffect(()=>{var N;if(!((N=m.current)===null||N===void 0)&&N.resizableTextArea){const{textArea:X}=m.current.resizableTextArea;X.focus();const{length:q}=X.value;X.setSelectionRange(q,q)}},[]);const $=N=>{let{target:X}=N;x(X.value.replace(/[\n\r]/g,""))},T=()=>{S.current=!0},_=()=>{S.current=!1},A=N=>{let{keyCode:X}=N;S.current||(b.current=X)},O=()=>{f(C.trim())},I=N=>{let{keyCode:X,ctrlKey:q,altKey:M,metaKey:J,shiftKey:U}=N;b.current===X&&!S.current&&!q&&!M&&!J&&!U&&(X===dp.ENTER?(O(),g?.()):X===dp.ESC&&d())},L=()=>{O()},F=h?`${t}-${h}`:"",[W,z,B]=a5(t),j=xt(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,F,z,B);return W(E.createElement("div",{className:j,style:i},E.createElement(oY,{ref:m,maxLength:s,value:C,onChange:$,onKeyDown:A,onKeyUp:I,onCompositionStart:T,onCompositionEnd:_,onBlur:L,"aria-label":r,rows:1,autoSize:u}),y!==null?FP(y,{className:`${t}-edit-content-confirm`}):null))};var _0,w$;function OY(){return w$||(w$=1,_0=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),_0}var R0,x$;function TY(){if(x$)return R0;x$=1;var e=OY(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var u,c,f,d,g,h,y=!1;s||(s={}),u=s.debug||!1;try{f=e(),d=document.createRange(),g=document.getSelection(),h=document.createElement("span"),h.textContent=o,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(S){if(S.stopPropagation(),s.format)if(S.preventDefault(),typeof S.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[s.format]||t.default;window.clipboardData.setData(b,o)}else S.clipboardData.clearData(),S.clipboardData.setData(s.format,o);s.onCopy&&(S.preventDefault(),s.onCopy(S.clipboardData))}),document.body.appendChild(h),d.selectNodeContents(h),g.addRange(d);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");y=!0}catch(S){u&&console.error("unable to copy using execCommand: ",S),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(b){u&&console.error("unable to copy using clipboardData: ",b),u&&console.error("falling back to prompt"),c=n("message"in s?s.message:r),window.prompt(c,o)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(d):g.removeAllRanges()),h&&document.body.removeChild(h),f()}return y}return R0=i,R0}var $Y=TY();const AY=Ir($Y);var IY=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function u(d){try{f(n.next(d))}catch(g){s(g)}}function c(d){try{f(n.throw(d))}catch(g){s(g)}}function f(d){d.done?o(d.value):i(d.value).then(u,c)}f((n=n.apply(e,t||[])).next())})};const PY=e=>{let{copyConfig:t,children:r}=e;const[n,i]=E.useState(!1),[o,s]=E.useState(!1),u=E.useRef(null),c=()=>{u.current&&clearTimeout(u.current)},f={};t.format&&(f.format=t.format),E.useEffect(()=>c,[]);const d=Vn(g=>IY(void 0,void 0,void 0,function*(){var h;g?.preventDefault(),g?.stopPropagation(),s(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;AY(y||String(r)||"",f),s(!1),i(!0),c(),u.current=setTimeout(()=>{i(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,g)}catch(y){throw s(!1),y}}));return{copied:n,copyLoading:o,onClick:d}};function O0(e,t){return E.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const kY=e=>{const t=E.useRef();return E.useEffect(()=>{t.current=e}),t.current},MY=(e,t)=>{const r=E.useRef(!1);E.useEffect(()=>{r.current?e():r.current=!0},t)};var DY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const s5=E.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:i,rootClassName:o,setContentRef:s,children:u,direction:c,style:f}=e,d=DY(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,typography:y}=E.useContext(Ei),m=c??h;let S=t;s&&(S=Lp(t,s));const b=g("typography",r),[C,x,$]=a5(b),T=xt(b,y?.className,{[`${b}-rtl`]:m==="rtl"},i,o,x,$),_=Object.assign(Object.assign({},y?.style),f);return C(E.createElement(n,Object.assign({className:T,style:_,ref:S},d),u))});function E$(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function vd(e,t,r){return e===!0||e===void 0?t:e||r&&t}const LY=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:i,tooltips:o,icon:s,loading:u,tabIndex:c,onCopy:f}=e,d=E$(o),g=E$(s),{copied:h,copy:y}=n??{},m=r?vd(d[1],h):vd(d[0],y),b=typeof m=="string"?m:r?h:y;return E.createElement(Hp,{key:"copy",title:m},E.createElement(C1,{className:xt(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:i}),onClick:f,"aria-label":b,tabIndex:c},r?vd(g[1],E.createElement(aK,null),!0):vd(g[0],u?E.createElement(nG,null):E.createElement(lY,null),!0)))},md=E.forwardRef((e,t)=>{let{style:r,children:n}=e;const i=E.useRef(null);return E.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),E.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function l5(e){const t=typeof e;return t==="string"||t==="number"}function FY(e){let t=0;return e.forEach(r=>{l5(r)?t+=String(r).length:t+=1}),t}function C$(e,t){let r=0;const n=[];for(let i=0;i<e.length;i+=1){if(r===t)return n;const o=e[i],u=l5(o)?String(o).length:1,c=r+u;if(c>t){const f=t-r;return n.push(String(o).slice(0,f)),n}n.push(o),r=c}return e}const T0=0,$0=1,A0=2,I0=3,_$=4,yd={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function NY(e){const{enableMeasure:t,width:r,text:n,children:i,rows:o,expanded:s,miscDeps:u,onEllipsis:c}=e,f=E.useMemo(()=>Rl(n),[n]),d=E.useMemo(()=>FY(f),[n]),g=E.useMemo(()=>i(f,!1),[n]),[h,y]=E.useState(null),m=E.useRef(null),S=E.useRef(null),b=E.useRef(null),C=E.useRef(null),x=E.useRef(null),[$,T]=E.useState(!1),[_,A]=E.useState(T0),[O,I]=E.useState(0),[L,F]=E.useState(null);or(()=>{A(t&&r&&d?$0:T0)},[r,n,o,t,f]),or(()=>{var j,N,X,q;if(_===$0){A(A0);const M=S.current&&getComputedStyle(S.current).whiteSpace;F(M)}else if(_===A0){const M=!!(!((j=b.current)===null||j===void 0)&&j.isExceed());A(M?I0:_$),y(M?[0,d]:null),T(M);const J=((N=b.current)===null||N===void 0?void 0:N.getHeight())||0,U=o===1?0:((X=C.current)===null||X===void 0?void 0:X.getHeight())||0,D=((q=x.current)===null||q===void 0?void 0:q.getHeight())||0,P=U+D,G=Math.max(J,P);I(G+1),c(M)}},[_]);const W=h?Math.ceil((h[0]+h[1])/2):0;or(()=>{var j;const[N,X]=h||[0,0];if(N!==X){const M=(((j=m.current)===null||j===void 0?void 0:j.getHeight())||0)>O;let J=W;X-N===1&&(J=M?N:X),y(M?[N,J]:[J,X])}},[h,W]);const z=E.useMemo(()=>{if(_!==I0||!h||h[0]!==h[1]){const j=i(f,!1);return _!==_$&&_!==T0?E.createElement("span",{style:Object.assign(Object.assign({},yd),{WebkitLineClamp:o})},j):j}return i(s?f:C$(f,h[0]),$)},[s,_,h,f].concat(ot(u))),B={width:r,margin:0,padding:0,whiteSpace:L==="nowrap"?"normal":"inherit"};return E.createElement(E.Fragment,null,z,_===A0&&E.createElement(E.Fragment,null,E.createElement(md,{style:Object.assign(Object.assign(Object.assign({},B),yd),{WebkitLineClamp:o}),ref:b},g),E.createElement(md,{style:Object.assign(Object.assign(Object.assign({},B),yd),{WebkitLineClamp:o-1}),ref:C},g),E.createElement(md,{style:Object.assign(Object.assign(Object.assign({},B),yd),{WebkitLineClamp:1}),ref:x},i([],!0))),_===I0&&h&&h[0]!==h[1]&&E.createElement(md,{style:Object.assign(Object.assign({},B),{top:400}),ref:m},i(C$(f,W),!0)),_===$0&&E.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const jY=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:i}=e;return!i?.title||!t?n:E.createElement(Hp,Object.assign({open:r?void 0:!1},i),n)};var zY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function BY(e,t){let{mark:r,code:n,underline:i,delete:o,strong:s,keyboard:u,italic:c}=e,f=t;function d(g,h){h&&(f=E.createElement(g,{},f))}return d("strong",s),d("u",i),d("del",o),d("code",n),d("mark",r),d("kbd",u),d("i",c),f}const VY="...",Up=E.forwardRef((e,t)=>{var r,n,i;const{prefixCls:o,className:s,style:u,type:c,disabled:f,children:d,ellipsis:g,editable:h,copyable:y,component:m,title:S}=e,b=zY(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:x}=E.useContext(Ei),[$]=tW("Text"),T=E.useRef(null),_=E.useRef(null),A=C("typography",o),O=L2(b,["mark","code","delete","underline","strong","keyboard","italic"]),[I,L]=O0(h),[F,W]=vc(!1,{value:L.editing}),{triggerType:z=["icon"]}=L,B=le=>{var fe;le&&((fe=L.onStart)===null||fe===void 0||fe.call(L)),W(le)},j=kY(F);MY(()=>{var le;!F&&j&&((le=_.current)===null||le===void 0||le.focus())},[F]);const N=le=>{le?.preventDefault(),B(!0)},X=le=>{var fe;(fe=L.onChange)===null||fe===void 0||fe.call(L,le),B(!1)},q=()=>{var le;(le=L.onCancel)===null||le===void 0||le.call(L),B(!1)},[M,J]=O0(y),{copied:U,copyLoading:D,onClick:P}=PY({copyConfig:J,children:d}),[G,Z]=E.useState(!1),[te,K]=E.useState(!1),[ye,ae]=E.useState(!1),[be,he]=E.useState(!1),[xe,Se]=E.useState(!0),[Oe,Ee]=O0(g,{expandable:!1,symbol:le=>le?$?.collapse:$?.expand}),[_e,$e]=vc(Ee.defaultExpanded||!1,{value:Ee.expanded}),Pe=Oe&&(!_e||Ee.expandable==="collapsible"),{rows:qe=1}=Ee,Qe=E.useMemo(()=>Pe&&(Ee.suffix!==void 0||Ee.onEllipsis||Ee.expandable||I||M),[Pe,Ee,I,M]);or(()=>{Oe&&!Qe&&(Z(i$("webkitLineClamp")),K(i$("textOverflow")))},[Qe,Oe]);const[Ne,je]=E.useState(Pe),Ke=E.useMemo(()=>Qe?!1:qe===1?te:G,[Qe,te,G]);or(()=>{je(Ke&&Pe)},[Ke,Pe]);const Ve=Pe&&(Ne?be:ye),Ce=Pe&&qe===1&&Ne,Ge=Pe&&qe>1&&Ne,lt=(le,fe)=>{var ve;$e(fe.expanded),(ve=Ee.onExpand)===null||ve===void 0||ve.call(Ee,le,fe)},[At,dt]=E.useState(0),Dt=le=>{let{offsetWidth:fe}=le;dt(fe)},$t=le=>{var fe;ae(le),ye!==le&&((fe=Ee.onEllipsis)===null||fe===void 0||fe.call(Ee,le))};E.useEffect(()=>{const le=T.current;if(Oe&&Ne&&le){const fe=Ge?le.offsetHeight<le.scrollHeight:le.offsetWidth<le.scrollWidth;be!==fe&&he(fe)}},[Oe,Ne,d,Ge,xe,At]),E.useEffect(()=>{const le=T.current;if(typeof IntersectionObserver>"u"||!le||!Ne||!Pe)return;const fe=new IntersectionObserver(()=>{Se(!!le.offsetParent)});return fe.observe(le),()=>{fe.disconnect()}},[Ne,Pe]);let ne={};Ee.tooltip===!0?ne={title:(r=L.text)!==null&&r!==void 0?r:d}:E.isValidElement(Ee.tooltip)?ne={title:Ee.tooltip}:typeof Ee.tooltip=="object"?ne=Object.assign({title:(n=L.text)!==null&&n!==void 0?n:d},Ee.tooltip):ne={title:Ee.tooltip};const se=E.useMemo(()=>{const le=fe=>["string","number"].includes(typeof fe);if(!(!Oe||Ne)){if(le(L.text))return L.text;if(le(d))return d;if(le(S))return S;if(le(ne.title))return ne.title}},[Oe,Ne,S,ne.title,Ve]);if(F)return E.createElement(RY,{value:(i=L.text)!==null&&i!==void 0?i:typeof d=="string"?d:"",onSave:X,onCancel:q,onEnd:L.onEnd,prefixCls:A,className:s,style:u,direction:x,component:m,maxLength:L.maxLength,autoSize:L.autoSize,enterIcon:L.enterIcon});const pe=()=>{const{expandable:le,symbol:fe}=Ee;return!le||_e&&le!=="collapsible"?null:E.createElement(C1,{key:"expand",className:`${A}-${_e?"collapse":"expand"}`,onClick:ve=>lt(ve,{expanded:!_e}),"aria-label":_e?$.collapse:$?.expand},typeof fe=="function"?fe(_e):fe)},Y=()=>{if(!I)return;const{icon:le,tooltip:fe,tabIndex:ve}=L,Ae=Rl(fe)[0]||$?.edit,Me=typeof Ae=="string"?Ae:"";return z.includes("icon")?E.createElement(Hp,{key:"edit",title:fe===!1?"":Ae},E.createElement(C1,{ref:_,className:`${A}-edit`,onClick:N,"aria-label":Me,tabIndex:ve},le||E.createElement(fY,{role:"button"}))):null},V=()=>M?E.createElement(LY,Object.assign({key:"copy"},J,{prefixCls:A,copied:U,locale:$,onCopy:P,loading:D,iconOnly:d==null})):null,ee=le=>[le&&pe(),Y(),V()],Re=le=>[le&&!_e&&E.createElement("span",{"aria-hidden":!0,key:"ellipsis"},VY),Ee.suffix,ee(le)];return E.createElement(Oc,{onResize:Dt,disabled:!Pe},le=>E.createElement(jY,{tooltipProps:ne,enableEllipsis:Pe,isEllipsis:Ve},E.createElement(s5,Object.assign({className:xt({[`${A}-${c}`]:c,[`${A}-disabled`]:f,[`${A}-ellipsis`]:Oe,[`${A}-ellipsis-single-line`]:Ce,[`${A}-ellipsis-multiple-line`]:Ge},s),prefixCls:o,style:Object.assign(Object.assign({},u),{WebkitLineClamp:Ge?qe:void 0}),component:m,ref:Lp(le,T,t),direction:x,onClick:z.includes("text")?N:void 0,"aria-label":se?.toString(),title:S},O),E.createElement(NY,{enableMeasure:Pe&&!Ne,text:d,rows:qe,width:At,onEllipsis:$t,expanded:_e,miscDeps:[U,_e,D,I,M]},(fe,ve)=>BY(e,E.createElement(E.Fragment,null,fe.length>0&&ve&&!_e&&se?E.createElement("span",{key:"show-content","aria-hidden":!0},fe):fe,Re(ve)))))))});var HY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const UY=E.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,i=HY(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,E.createElement(Up,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),WY=E.forwardRef((e,t)=>E.createElement(Up,Object.assign({ref:t},e,{component:"div"})));var qY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const GY=(e,t)=>{var{ellipsis:r}=e,n=qY(e,["ellipsis"]);const i=E.useMemo(()=>r&&typeof r=="object"?L2(r,["expandable","rows"]):r,[r]);return E.createElement(Up,Object.assign({ref:t},n,{ellipsis:i,component:"span"}))},XY=E.forwardRef(GY);var KY=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const YY=[1,2,3,4,5],QY=E.forwardRef((e,t)=>{const{level:r=1}=e,n=KY(e,["level"]);let i;return YY.includes(r)?i=`h${r}`:i="h1",E.createElement(Up,Object.assign({ref:t},n,{component:i}))}),kc=s5;kc.Text=XY;kc.Link=UY;kc.Title=QY;kc.Paragraph=WY;const JY={activeLevels:{debug:!0,info:!0,warning:!0,error:!0,fatal:!0},showTimestamp:!0,showTag:!0,includeTags:new Set,filterText:""},R$=we(Yo).attrs({flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start"})``,O$=we(kc.Title).attrs({level:5})`
1207
1207
  margin-bottom: 20px;
1208
1208
  `,T$=we(Yo).attrs({columnGap:4,flexDirection:"row",flexWrap:"wrap",flexGrow:1,overflow:"scroll"})``,bd=we.input`
1209
1209
  margin-right: 4px;
1210
- `,JY=({options:e,setOptions:t,uniqueTags:r})=>H.jsxs(Yo,{flexDirection:"column",borderRadius:8,padding:5,rowGap:5,children:[H.jsxs(R$,{children:[H.jsx(O$,{style:{color:"white",whiteSpace:"nowrap"},children:"Log levels"}),H.jsxs(T$,{children:[H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:Object.values(e.activeLevels).every(Boolean),onChange:n=>{const i=Object.fromEntries(Object.keys(e.activeLevels).map(o=>[o,n.target.checked]));t({...e,activeLevels:i})}}),"All"]}),["debug","info","warning","error","fatal"].map(n=>H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:e.activeLevels[n],onChange:i=>{t({...e,activeLevels:{...e.activeLevels,[n]:i.target.checked}})}}),n]},n))]})]}),H.jsxs(R$,{children:[H.jsx(O$,{style:{color:"white",whiteSpace:"nowrap"},children:"Tags"}),H.jsxs(T$,{children:[H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:r.size===e.includeTags.size,onChange:n=>{n.target.checked?r.forEach(i=>e.includeTags.add(i)):e.includeTags.clear(),t({...e})}}),"All"]}),Array.from(r).map(n=>H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:e.includeTags.has(n),onChange:i=>{i.target.checked?e.includeTags.add(n):e.includeTags.delete(n),t({...e})}}),n]},n))]})]})]}),ZY=we.span`
1210
+ `,ZY=({options:e,setOptions:t,uniqueTags:r})=>H.jsxs(Yo,{flexDirection:"column",borderRadius:8,padding:5,rowGap:5,children:[H.jsxs(R$,{children:[H.jsx(O$,{style:{color:"white",whiteSpace:"nowrap"},children:"Log levels"}),H.jsxs(T$,{children:[H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:Object.values(e.activeLevels).every(Boolean),onChange:n=>{const i=Object.fromEntries(Object.keys(e.activeLevels).map(o=>[o,n.target.checked]));t({...e,activeLevels:i})}}),"All"]}),["debug","info","warning","error","fatal"].map(n=>H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:e.activeLevels[n],onChange:i=>{t({...e,activeLevels:{...e.activeLevels,[n]:i.target.checked}})}}),n]},n))]})]}),H.jsxs(R$,{children:[H.jsx(O$,{style:{color:"white",whiteSpace:"nowrap"},children:"Tags"}),H.jsxs(T$,{children:[H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:r.size===e.includeTags.size,onChange:n=>{n.target.checked?r.forEach(i=>e.includeTags.add(i)):e.includeTags.clear(),t({...e})}}),"All"]}),Array.from(r).map(n=>H.jsxs("label",{children:[H.jsx(bd,{type:"checkbox",checked:e.includeTags.has(n),onChange:i=>{i.target.checked?e.includeTags.add(n):e.includeTags.delete(n),t({...e})}}),n]},n))]})]})]}),eQ=we.span`
1211
1211
  font-size: 11px;
1212
1212
  color: #666;
1213
1213
  white-space: nowrap;
@@ -1236,7 +1236,7 @@ html body {
1236
1236
  background-color: transparent;
1237
1237
  }
1238
1238
  }
1239
- `,eQ=we.button`
1239
+ `,tQ=we.button`
1240
1240
  background: none;
1241
1241
  border: none;
1242
1242
  padding: 4px;
@@ -1264,14 +1264,14 @@ html body {
1264
1264
  svg:first-child {
1265
1265
  margin-bottom: -8px;
1266
1266
  }
1267
- `,tQ=({value:e,onChange:t,matchCount:r,currentMatchIndex:n,onNext:i,onPrevious:o,onFirst:s,onLast:u,inputRef:c})=>{const f=E.useRef(null),d=c??f,[g,h]=E.useState(!1),y=E.useCallback(C=>{C.key==="Enter"?(C.preventDefault(),C.shiftKey?o():i()):C.key==="Escape"&&d.current?.blur()},[i,o,d]),m=r>0,S=m?n+1:0,b=E.useCallback(()=>{t(""),d.current?.focus()},[t,d]);return H.jsx(E2,{children:H.jsxs(C2,{$focused:g,children:[H.jsx(_2,{ref:d,type:"text",placeholder:"Search (Ctrl/Cmd+F)",value:e,onChange:C=>t(C.target.value),onFocus:()=>h(!0),onBlur:()=>h(!1),onKeyDown:y}),e&&H.jsx(eQ,{onClick:b,title:"Clear search",children:H.jsx($y,{size:"XS"})}),e&&H.jsxs(ZY,{children:[S,"/",r]}),H.jsx(Sd,{onClick:o,disabled:!m,title:"Previous match (Shift+Enter)",children:H.jsx(Jm,{size:"XS"})}),H.jsx(Sd,{onClick:i,disabled:!m,title:"Next match (Enter)",children:H.jsx(Dd,{size:"XS"})}),H.jsx(Sd,{onClick:s,disabled:!m,title:"First match",children:H.jsxs($$,{children:[H.jsx(Jm,{size:"XS"}),H.jsx(Jm,{size:"XS"})]})}),H.jsx(Sd,{onClick:u,disabled:!m,title:"Last match",children:H.jsxs($$,{children:[H.jsx(Dd,{size:"XS"}),H.jsx(Dd,{size:"XS"})]})})]})})},P0=we.div`
1267
+ `,rQ=({value:e,onChange:t,matchCount:r,currentMatchIndex:n,onNext:i,onPrevious:o,onFirst:s,onLast:u,inputRef:c})=>{const f=E.useRef(null),d=c??f,[g,h]=E.useState(!1),y=E.useCallback(C=>{C.key==="Enter"?(C.preventDefault(),C.shiftKey?o():i()):C.key==="Escape"&&d.current?.blur()},[i,o,d]),m=r>0,S=m?n+1:0,b=E.useCallback(()=>{t(""),d.current?.focus()},[t,d]);return H.jsx(E2,{children:H.jsxs(C2,{$focused:g,children:[H.jsx(_2,{ref:d,type:"text",placeholder:"Search (Ctrl/Cmd+F)",value:e,onChange:C=>t(C.target.value),onFocus:()=>h(!0),onBlur:()=>h(!1),onKeyDown:y}),e&&H.jsx(tQ,{onClick:b,title:"Clear search",children:H.jsx($y,{size:"XS"})}),e&&H.jsxs(eQ,{children:[S,"/",r]}),H.jsx(Sd,{onClick:o,disabled:!m,title:"Previous match (Shift+Enter)",children:H.jsx(Jm,{size:"XS"})}),H.jsx(Sd,{onClick:i,disabled:!m,title:"Next match (Enter)",children:H.jsx(Dd,{size:"XS"})}),H.jsx(Sd,{onClick:s,disabled:!m,title:"First match",children:H.jsxs($$,{children:[H.jsx(Jm,{size:"XS"}),H.jsx(Jm,{size:"XS"})]})}),H.jsx(Sd,{onClick:u,disabled:!m,title:"Last match",children:H.jsxs($$,{children:[H.jsx(Dd,{size:"XS"}),H.jsx(Dd,{size:"XS"})]})})]})})},P0=we.div`
1268
1268
  opacity: 0.65;
1269
1269
  cursor: pointer;
1270
1270
  flex-shrink: 0;
1271
1271
  &:hover {
1272
1272
  opacity: 1;
1273
1273
  }
1274
- `,rQ=({clearLogs:e,downloadLogs:t,options:r,setOptions:n,uniqueTags:i,searchQuery:o,onSearchChange:s,matchCount:u,currentMatchIndex:c,onSearchNext:f,onSearchPrevious:d,onSearchFirst:g,onSearchLast:h,searchInputRef:y})=>H.jsxs(Yo,{flexDirection:"row",columnGap:5,alignItems:"center",flex:1,children:[H.jsx(P0,{onClick:e,children:H.jsx(QV,{size:"S"})}),H.jsx(W7,{trigger:"click",placement:"bottom",interactive:!0,content:H.jsx(JY,{options:r,setOptions:n,uniqueTags:i}),children:H.jsx(P0,{children:H.jsx(ZV,{size:"S"})})}),H.jsx(P0,{onClick:t,children:H.jsx(JV,{size:"S"})}),H.jsx(iH,{value:r.filterText,onChange:m=>n({...r,filterText:m})}),H.jsx(tQ,{value:o,onChange:s,matchCount:u,currentMatchIndex:c,onNext:f,onPrevious:d,onFirst:g,onLast:h,inputRef:y})]});/**
1274
+ `,nQ=({clearLogs:e,downloadLogs:t,options:r,setOptions:n,uniqueTags:i,searchQuery:o,onSearchChange:s,matchCount:u,currentMatchIndex:c,onSearchNext:f,onSearchPrevious:d,onSearchFirst:g,onSearchLast:h,searchInputRef:y})=>H.jsxs(Yo,{flexDirection:"row",columnGap:5,alignItems:"center",flex:1,children:[H.jsx(P0,{onClick:e,children:H.jsx(JV,{size:"S"})}),H.jsx(q7,{trigger:"click",placement:"bottom",interactive:!0,content:H.jsx(ZY,{options:r,setOptions:n,uniqueTags:i}),children:H.jsx(P0,{children:H.jsx(e9,{size:"S"})})}),H.jsx(P0,{onClick:t,children:H.jsx(ZV,{size:"S"})}),H.jsx(oH,{value:r.filterText,onChange:m=>n({...r,filterText:m})}),H.jsx(rQ,{value:o,onChange:s,matchCount:u,currentMatchIndex:c,onNext:f,onPrevious:d,onFirst:g,onLast:h,inputRef:y})]});/**
1275
1275
  * table-core
1276
1276
  *
1277
1277
  * Copyright (c) TanStack
@@ -1280,10 +1280,10 @@ html body {
1280
1280
  * LICENSE.md file in the root directory of this source tree.
1281
1281
  *
1282
1282
  * @license MIT
1283
- */function nQ(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function Ra(e,t){return typeof e=="function"?e(t):e}function Yn(e,t){return r=>{t.setState(n=>({...n,[e]:Ra(r,n[e])}))}}function Wp(e){return e instanceof Function}function iQ(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function oQ(e,t){const r=[],n=i=>{i.forEach(o=>{r.push(o);const s=t(o);s!=null&&s.length&&n(s)})};return n(e),r}function at(e,t,r){let n=[],i;return o=>{let s;r.key&&r.debug&&(s=Date.now());const u=e(o);if(!(u.length!==n.length||u.some((d,g)=>n[g]!==d)))return i;n=u;let f;if(r.key&&r.debug&&(f=Date.now()),i=t(...u),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const d=Math.round((Date.now()-s)*100)/100,g=Math.round((Date.now()-f)*100)/100,h=g/16,y=(m,S)=>{for(m=String(m);m.length<S;)m=" "+m;return m};console.info(`%c⏱ ${y(g,5)} /${y(d,5)} ms`,`
1283
+ */function iQ(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function Ra(e,t){return typeof e=="function"?e(t):e}function Yn(e,t){return r=>{t.setState(n=>({...n,[e]:Ra(r,n[e])}))}}function Wp(e){return e instanceof Function}function oQ(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function aQ(e,t){const r=[],n=i=>{i.forEach(o=>{r.push(o);const s=t(o);s!=null&&s.length&&n(s)})};return n(e),r}function at(e,t,r){let n=[],i;return o=>{let s;r.key&&r.debug&&(s=Date.now());const u=e(o);if(!(u.length!==n.length||u.some((d,g)=>n[g]!==d)))return i;n=u;let f;if(r.key&&r.debug&&(f=Date.now()),i=t(...u),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const d=Math.round((Date.now()-s)*100)/100,g=Math.round((Date.now()-f)*100)/100,h=g/16,y=(m,S)=>{for(m=String(m);m.length<S;)m=" "+m;return m};console.info(`%c⏱ ${y(g,5)} /${y(d,5)} ms`,`
1284
1284
  font-size: .6rem;
1285
1285
  font-weight: bold;
1286
- color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,r?.key)}return i}}function st(e,t,r,n){return{debug:()=>{var i;return(i=e?.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function aQ(e,t,r,n){const i=()=>{var s;return(s=o.getValue())!=null?s:e.options.renderFallbackValue},o={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:at(()=>[e,r,t,o],(s,u,c,f)=>({table:s,column:u,row:c,cell:f,getValue:f.getValue,renderValue:f.renderValue}),st(e.options,"debugCells"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(o,r,t,e)},{}),o}function sQ(e,t,r,n){var i,o;const u={...e._getDefaultColumnDef(),...t},c=u.accessorKey;let f=(i=(o=u.id)!=null?o:c?typeof String.prototype.replaceAll=="function"?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)!=null?i:typeof u.header=="string"?u.header:void 0,d;if(u.accessorFn?d=u.accessorFn:c&&(c.includes(".")?d=h=>{let y=h;for(const S of c.split(".")){var m;y=(m=y)==null?void 0:m[S]}return y}:d=h=>h[u.accessorKey]),!f)throw new Error;let g={id:`${String(f)}`,accessorFn:d,parent:n,depth:r,columnDef:u,columns:[],getFlatColumns:at(()=>[!0],()=>{var h;return[g,...(h=g.columns)==null?void 0:h.flatMap(y=>y.getFlatColumns())]},st(e.options,"debugColumns")),getLeafColumns:at(()=>[e._getOrderColumnsFn()],h=>{var y;if((y=g.columns)!=null&&y.length){let m=g.columns.flatMap(S=>S.getLeafColumns());return h(m)}return[g]},st(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(g,e);return g}const Kr="debugHeaders";function A$(e,t,r){var n;let o={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],u=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(u),s.push(c)};return u(o),s},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(o,e)}),o}const lQ={createTable:e=>{e.getHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var o,s;const u=(o=n?.map(g=>r.find(h=>h.id===g)).filter(Boolean))!=null?o:[],c=(s=i?.map(g=>r.find(h=>h.id===g)).filter(Boolean))!=null?s:[],f=r.filter(g=>!(n!=null&&n.includes(g.id))&&!(i!=null&&i.includes(g.id)));return wd(t,[...u,...f,...c],e)},st(e.options,Kr)),e.getCenterHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(o=>!(n!=null&&n.includes(o.id))&&!(i!=null&&i.includes(o.id))),wd(t,r,e,"center")),st(e.options,Kr)),e.getLeftHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const o=(i=n?.map(s=>r.find(u=>u.id===s)).filter(Boolean))!=null?i:[];return wd(t,o,e,"left")},st(e.options,Kr)),e.getRightHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const o=(i=n?.map(s=>r.find(u=>u.id===s)).filter(Boolean))!=null?i:[];return wd(t,o,e,"right")},st(e.options,Kr)),e.getFooterGroups=at(()=>[e.getHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getLeftFooterGroups=at(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getCenterFooterGroups=at(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getRightFooterGroups=at(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getFlatHeaders=at(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getLeftFlatHeaders=at(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getCenterFlatHeaders=at(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getRightFlatHeaders=at(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getCenterLeafHeaders=at(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),st(e.options,Kr)),e.getLeftLeafHeaders=at(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),st(e.options,Kr)),e.getRightLeafHeaders=at(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),st(e.options,Kr)),e.getLeafHeaders=at(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,o,s,u,c,f;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=r[0])==null?void 0:u.headers)!=null?s:[],...(c=(f=n[0])==null?void 0:f.headers)!=null?c:[]].map(d=>d.getLeafHeaders()).flat()},st(e.options,Kr))}};function wd(e,t,r,n){var i,o;let s=0;const u=function(h,y){y===void 0&&(y=1),s=Math.max(s,y),h.filter(m=>m.getIsVisible()).forEach(m=>{var S;(S=m.columns)!=null&&S.length&&u(m.columns,y+1)},0)};u(e);let c=[];const f=(h,y)=>{const m={depth:y,id:[n,`${y}`].filter(Boolean).join("_"),headers:[]},S=[];h.forEach(b=>{const C=[...S].reverse()[0],x=b.column.depth===m.depth;let $,T=!1;if(x&&b.column.parent?$=b.column.parent:($=b.column,T=!0),C&&C?.column===$)C.subHeaders.push(b);else{const _=A$(r,$,{id:[n,y,$.id,b?.id].filter(Boolean).join("_"),isPlaceholder:T,placeholderId:T?`${S.filter(A=>A.column===$).length}`:void 0,depth:y,index:S.length});_.subHeaders.push(b),S.push(_)}m.headers.push(b),b.headerGroup=m}),c.push(m),y>0&&f(S,y-1)},d=t.map((h,y)=>A$(r,h,{depth:s,index:y}));f(d,s-1),c.reverse();const g=h=>h.filter(m=>m.column.getIsVisible()).map(m=>{let S=0,b=0,C=[0];m.subHeaders&&m.subHeaders.length?(C=[],g(m.subHeaders).forEach($=>{let{colSpan:T,rowSpan:_}=$;S+=T,C.push(_)})):S=1;const x=Math.min(...C);return b=b+x,m.colSpan=S,m.rowSpan=b,{colSpan:S,rowSpan:b}});return g((i=(o=c[0])==null?void 0:o.headers)!=null?i:[]),c}const uQ=(e,t,r,n,i,o,s)=>{let u={id:t,index:n,original:r,depth:i,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(u._valuesCache.hasOwnProperty(c))return u._valuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return u._valuesCache[c]=f.accessorFn(u.original,n),u._valuesCache[c]},getUniqueValues:c=>{if(u._uniqueValuesCache.hasOwnProperty(c))return u._uniqueValuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return f.columnDef.getUniqueValues?(u._uniqueValuesCache[c]=f.columnDef.getUniqueValues(u.original,n),u._uniqueValuesCache[c]):(u._uniqueValuesCache[c]=[u.getValue(c)],u._uniqueValuesCache[c])},renderValue:c=>{var f;return(f=u.getValue(c))!=null?f:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>oQ(u.subRows,c=>c.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let c=[],f=u;for(;;){const d=f.getParentRow();if(!d)break;c.push(d),f=d}return c.reverse()},getAllCells:at(()=>[e.getAllLeafColumns()],c=>c.map(f=>aQ(e,u,f,f.id)),st(e.options,"debugRows")),_getAllCellsByColumnId:at(()=>[u.getAllCells()],c=>c.reduce((f,d)=>(f[d.column.id]=d,f),{}),st(e.options,"debugRows"))};for(let c=0;c<e._features.length;c++){const f=e._features[c];f==null||f.createRow==null||f.createRow(u,e)}return u},cQ={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},u5=(e,t,r)=>{var n,i;const o=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};u5.autoRemove=e=>Ki(e);const c5=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};c5.autoRemove=e=>Ki(e);const f5=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===r?.toLowerCase()};f5.autoRemove=e=>Ki(e);const d5=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};d5.autoRemove=e=>Ki(e)||!(e!=null&&e.length);const p5=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});p5.autoRemove=e=>Ki(e)||!(e!=null&&e.length);const h5=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});h5.autoRemove=e=>Ki(e)||!(e!=null&&e.length);const g5=(e,t,r)=>e.getValue(t)===r;g5.autoRemove=e=>Ki(e);const v5=(e,t,r)=>e.getValue(t)==r;v5.autoRemove=e=>Ki(e);const Yb=(e,t,r)=>{let[n,i]=r;const o=e.getValue(t);return o>=n&&o<=i};Yb.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,o=t===null||Number.isNaN(n)?-1/0:n,s=r===null||Number.isNaN(i)?1/0:i;if(o>s){const u=o;o=s,s=u}return[o,s]};Yb.autoRemove=e=>Ki(e)||Ki(e[0])&&Ki(e[1]);const qo={includesString:u5,includesStringSensitive:c5,equalsString:f5,arrIncludes:d5,arrIncludesAll:p5,arrIncludesSome:h5,equals:g5,weakEquals:v5,inNumberRange:Yb};function Ki(e){return e==null||e===""}const fQ={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Yn("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?qo.includesString:typeof n=="number"?qo.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?qo.equals:Array.isArray(n)?qo.arrIncludes:qo.weakEquals},e.getFilterFn=()=>{var r,n;return Wp(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:qo[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),o=n?.find(d=>d.id===e.id),s=Ra(r,o?o.value:void 0);if(I$(i,s,e)){var u;return(u=n?.filter(d=>d.id!==e.id))!=null?u:[]}const c={id:e.id,value:s};if(o){var f;return(f=n?.map(d=>d.id===e.id?c:d))!=null?f:[]}return n!=null&&n.length?[...n,c]:[c]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=i=>{var o;return(o=Ra(t,i))==null?void 0:o.filter(s=>{const u=r.find(c=>c.id===s.id);if(u){const c=u.getFilterFn();if(I$(c,s.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function I$(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const dQ=(e,t,r)=>r.reduce((n,i)=>{const o=i.getValue(e);return n+(typeof o=="number"?o:0)},0),pQ=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}),n},hQ=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}),n},gQ=(e,t,r)=>{let n,i;return r.forEach(o=>{const s=o.getValue(e);s!=null&&(n===void 0?s>=s&&(n=i=s):(n>s&&(n=s),i<s&&(i=s)))}),[n,i]},vQ=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++r,n+=o)}),r)return n/r},mQ=(e,t)=>{if(!t.length)return;const r=t.map(o=>o.getValue(e));if(!iQ(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((o,s)=>o-s);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},yQ=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),bQ=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,SQ=(e,t)=>t.length,k0={sum:dQ,min:pQ,max:hQ,extent:gQ,mean:vQ,median:mQ,unique:yQ,uniqueCount:bQ,count:SQ},wQ={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Yn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return k0.sum;if(Object.prototype.toString.call(n)==="[object Date]")return k0.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Wp(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:k0[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function xQ(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(o=>!t.includes(o.id));return r==="remove"?n:[...t.map(o=>e.find(s=>s.id===o)).filter(Boolean),...n]}const EQ={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Yn("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=at(r=>[Hu(t,r)],r=>r.findIndex(n=>n.id===e.id),st(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=Hu(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=Hu(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=at(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const s=[...t],u=[...i];for(;u.length&&s.length;){const c=s.shift(),f=u.findIndex(d=>d.id===c);f>-1&&o.push(u.splice(f,1)[0])}o=[...o,...u]}return xQ(o,r,n)},st(e.options,"debugTable"))}},M0=()=>({left:[],right:[]}),CQ={getInitialState:e=>({columnPinning:M0(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Yn("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,s;if(r==="right"){var u,c;return{left:((u=i?.left)!=null?u:[]).filter(g=>!(n!=null&&n.includes(g))),right:[...((c=i?.right)!=null?c:[]).filter(g=>!(n!=null&&n.includes(g))),...n]}}if(r==="left"){var f,d;return{left:[...((f=i?.left)!=null?f:[]).filter(g=>!(n!=null&&n.includes(g))),...n],right:((d=i?.right)!=null?d:[]).filter(g=>!(n!=null&&n.includes(g)))}}return{left:((o=i?.left)!=null?o:[]).filter(g=>!(n!=null&&n.includes(g))),right:((s=i?.right)!=null?s:[]).filter(g=>!(n!=null&&n.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,o,s;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((o=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(u=>u.id),{left:n,right:i}=t.getState().columnPinning,o=r.some(u=>n?.includes(u)),s=r.some(u=>i?.includes(u));return o?"left":s?"right":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=at(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const o=[...n??[],...i??[]];return r.filter(s=>!o.includes(s.column.id))},st(t.options,"debugRows")),e.getLeftVisibleCells=at(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n??[]).map(o=>r.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),st(t.options,"debugRows")),e.getRightVisibleCells=at(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(o=>r.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),st(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?M0():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:M0())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var i,o;return!!((i=n.left)!=null&&i.length||(o=n.right)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=at(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),st(e.options,"debugColumns")),e.getRightLeafColumns=at(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),st(e.options,"debugColumns")),e.getCenterLeafColumns=at(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(o=>!i.includes(o.id))},st(e.options,"debugColumns"))}},xd={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},D0=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),_Q={getDefaultColumnDef:()=>xd,getInitialState:e=>({columnSizing:{},columnSizingInfo:D0(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Yn("columnSizing",e),onColumnSizingInfoChange:Yn("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:xd.minSize,(n=o??e.columnDef.size)!=null?n:xd.size),(i=e.columnDef.maxSize)!=null?i:xd.maxSize)},e.getStart=at(r=>[r,Hu(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,o)=>i+o.getSize(),0),st(t.options,"debugColumns")),e.getAfter=at(r=>[r,Hu(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,o)=>i+o.getSize(),0),st(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var o;r+=(o=i.column.getSize())!=null?o:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const n=t.getColumn(e.column.id),i=n?.getCanResize();return o=>{if(!n||!i||(o.persist==null||o.persist(),L0(o)&&o.touches&&o.touches.length>1))return;const s=e.getSize(),u=e?e.getLeafHeaders().map(C=>[C.column.id,C.column.getSize()]):[[n.id,n.getSize()]],c=L0(o)?Math.round(o.touches[0].clientX):o.clientX,f={},d=(C,x)=>{typeof x=="number"&&(t.setColumnSizingInfo($=>{var T,_;const A=t.options.columnResizeDirection==="rtl"?-1:1,O=(x-((T=$?.startOffset)!=null?T:0))*A,I=Math.max(O/((_=$?.startSize)!=null?_:0),-.999999);return $.columnSizingStart.forEach(L=>{let[F,W]=L;f[F]=Math.round(Math.max(W+W*I,0)*100)/100}),{...$,deltaOffset:O,deltaPercentage:I}}),(t.options.columnResizeMode==="onChange"||C==="end")&&t.setColumnSizing($=>({...$,...f})))},g=C=>d("move",C),h=C=>{d("end",C),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},y=r||typeof document<"u"?document:null,m={moveHandler:C=>g(C.clientX),upHandler:C=>{y?.removeEventListener("mousemove",m.moveHandler),y?.removeEventListener("mouseup",m.upHandler),h(C.clientX)}},S={moveHandler:C=>(C.cancelable&&(C.preventDefault(),C.stopPropagation()),g(C.touches[0].clientX),!1),upHandler:C=>{var x;y?.removeEventListener("touchmove",S.moveHandler),y?.removeEventListener("touchend",S.upHandler),C.cancelable&&(C.preventDefault(),C.stopPropagation()),h((x=C.touches[0])==null?void 0:x.clientX)}},b=RQ()?{passive:!1}:!1;L0(o)?(y?.addEventListener("touchmove",S.moveHandler,b),y?.addEventListener("touchend",S.upHandler,b)):(y?.addEventListener("mousemove",m.moveHandler,b),y?.addEventListener("mouseup",m.upHandler,b)),t.setColumnSizingInfo(C=>({...C,startOffset:c,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?D0():(r=e.initialState.columnSizingInfo)!=null?r:D0())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}};let Ed=null;function RQ(){if(typeof Ed=="boolean")return Ed;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Ed=e,Ed}function L0(e){return e.type==="touchstart"}const OQ={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Yn("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;const i=e.columns;return(r=i.length?i.some(o=>o.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=at(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),st(t.options,"debugRows")),e.getVisibleCells=at(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],st(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>at(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),st(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:r||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function Hu(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const TQ={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},$Q={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Yn("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,o;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>qo.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return Wp(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:qo[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},AQ={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Yn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,o;e.setExpanded(n?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const s=o.split(".");n=Math.max(n,s.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;const o=n===!0?!0:!!(n!=null&&n[e.id]);let s={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{s[u]=!0}):s=n,r=(i=r)!=null?i:!o,!o&&r)return{...s,[e.id]:!0};if(o&&!r){const{[e.id]:u,...c}=s;return c}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},_1=0,R1=10,F0=()=>({pageIndex:_1,pageSize:R1}),IQ={getInitialState:e=>({...e,pagination:{...F0(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Yn("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const i=o=>Ra(n,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?F0():(i=e.initialState.pagination)!=null?i:F0())},e.setPageIndex=n=>{e.setPagination(i=>{let o=Ra(n,i.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,s)),{...i,pageIndex:o}})},e.resetPageIndex=n=>{var i,o;e.setPageIndex(n?_1:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:_1)},e.resetPageSize=n=>{var i,o;e.setPageSize(n?R1:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:R1)},e.setPageSize=n=>{e.setPagination(i=>{const o=Math.max(1,Ra(n,i.pageSize)),s=i.pageSize*i.pageIndex,u=Math.floor(s/o);return{...i,pageIndex:u,pageSize:o}})},e.setPageCount=n=>e.setPagination(i=>{var o;let s=Ra(n,(o=e.options.pageCount)!=null?o:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...i,pageCount:s}}),e.getPageOptions=at(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((o,s)=>s)),i},st(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},N0=()=>({top:[],bottom:[]}),PQ={getInitialState:e=>({rowPinning:N0(),...e}),getDefaultOptions:e=>({onRowPinningChange:Yn("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{const o=n?e.getLeafRows().map(c=>{let{id:f}=c;return f}):[],s=i?e.getParentRows().map(c=>{let{id:f}=c;return f}):[],u=new Set([...s,e.id,...o]);t.setRowPinning(c=>{var f,d;if(r==="bottom"){var g,h;return{top:((g=c?.top)!=null?g:[]).filter(S=>!(u!=null&&u.has(S))),bottom:[...((h=c?.bottom)!=null?h:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)]}}if(r==="top"){var y,m;return{top:[...((y=c?.top)!=null?y:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)],bottom:((m=c?.bottom)!=null?m:[]).filter(S=>!(u!=null&&u.has(S)))}}return{top:((f=c?.top)!=null?f:[]).filter(S=>!(u!=null&&u.has(S))),bottom:((d=c?.bottom)!=null?d:[]).filter(S=>!(u!=null&&u.has(S)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n??i)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,o=r.some(u=>n?.includes(u)),s=r.some(u=>i?.includes(u));return o?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();if(!i)return-1;const o=(r=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(s=>{let{id:u}=s;return u});return(n=o?.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?N0():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:N0())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var i,o;return!!((i=n.top)!=null&&i.length||(o=n.bottom)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(s=>{const u=e.getRow(s,!0);return u.getIsAllParentsExpanded()?u:null}):(r??[]).map(s=>t.find(u=>u.id===s))).filter(Boolean).map(s=>({...s,position:n}))},e.getTopRows=at(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),st(e.options,"debugRows")),e.getBottomRows=at(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),st(e.options,"debugRows")),e.getCenterRows=at(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const i=new Set([...r??[],...n??[]]);return t.filter(o=>!i.has(o.id))},st(e.options,"debugRows"))}},kQ={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Yn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(n[o.id]=!0)}):i.forEach(o=>{delete n[o.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(o=>{O1(i,o.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=at(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?j0(e,r):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getFilteredSelectedRowModel=at(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?j0(e,r):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getGroupedSelectedRowModel=at(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?j0(e,r):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var s;if(r=typeof r<"u"?r:!i,e.getCanSelect()&&i===r)return o;const u={...o};return O1(u,e.id,r,(s=n?.selectChildren)!=null?s:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return Qb(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return T1(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return T1(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},O1=(e,t,r,n,i)=>{var o;const s=i.getRow(t,!0);r?(s.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),s.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(o=s.subRows)!=null&&o.length&&s.getCanSelectSubRows()&&s.subRows.forEach(u=>O1(e,u.id,r,n,i))};function j0(e,t){const r=e.getState().rowSelection,n=[],i={},o=function(s,u){return s.map(c=>{var f;const d=Qb(c,r);if(d&&(n.push(c),i[c.id]=c),(f=c.subRows)!=null&&f.length&&(c={...c,subRows:o(c.subRows)}),d)return c}).filter(Boolean)};return{rows:o(t.rows),flatRows:n,rowsById:i}}function Qb(e,t){var r;return(r=t[e.id])!=null?r:!1}function T1(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,o=!1;return e.subRows.forEach(s=>{if(!(o&&!i)&&(s.getCanSelect()&&(Qb(s,t)?o=!0:i=!1),s.subRows&&s.subRows.length)){const u=T1(s,t);u==="all"?o=!0:(u==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const $1=/([0-9]+)/gm,MQ=(e,t,r)=>m5(ka(e.getValue(r)).toLowerCase(),ka(t.getValue(r)).toLowerCase()),DQ=(e,t,r)=>m5(ka(e.getValue(r)),ka(t.getValue(r))),LQ=(e,t,r)=>Jb(ka(e.getValue(r)).toLowerCase(),ka(t.getValue(r)).toLowerCase()),FQ=(e,t,r)=>Jb(ka(e.getValue(r)),ka(t.getValue(r))),NQ=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},jQ=(e,t,r)=>Jb(e.getValue(r),t.getValue(r));function Jb(e,t){return e===t?0:e>t?1:-1}function ka(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function m5(e,t){const r=e.split($1).filter(Boolean),n=t.split($1).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),o=n.shift(),s=parseInt(i,10),u=parseInt(o,10),c=[s,u].sort();if(isNaN(c[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(c[1]))return isNaN(s)?-1:1;if(s>u)return 1;if(u>s)return-1}return r.length-n.length}const xu={alphanumeric:MQ,alphanumericCaseSensitive:DQ,text:LQ,textCaseSensitive:FQ,datetime:NQ,basic:jQ},zQ={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Yn("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const o=i?.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return xu.datetime;if(typeof o=="string"&&(n=!0,o.split($1).length>1))return xu.alphanumeric}return n?xu.text:xu.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return Wp(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:xu[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const i=e.getNextSortingOrder(),o=typeof r<"u"&&r!==null;t.setSorting(s=>{const u=s?.find(y=>y.id===e.id),c=s?.findIndex(y=>y.id===e.id);let f=[],d,g=o?r:i==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&n?u?d="toggle":d="add":s!=null&&s.length&&c!==s.length-1?d="replace":u?d="toggle":d="replace",d==="toggle"&&(o||i||(d="remove")),d==="add"){var h;f=[...s,{id:e.id,desc:g}],f.splice(0,f.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else d==="toggle"?f=s.map(y=>y.id===e.id?{...y,desc:g}:y):d==="remove"?f=s.filter(y=>y.id!==e.id):f=[{id:e.id,desc:g}];return f})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;const o=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==o&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:s==="desc"?"asc":"desc":o},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},BQ=[lQ,OQ,EQ,CQ,cQ,fQ,TQ,$Q,zQ,wQ,AQ,IQ,PQ,kQ,_Q];function VQ(e){var t,r;const n=[...BQ,...(t=e._features)!=null?t:[]];let i={_features:n};const o=i._features.reduce((h,y)=>Object.assign(h,y.getDefaultOptions==null?void 0:y.getDefaultOptions(i)),{}),s=h=>i.options.mergeOptions?i.options.mergeOptions(o,h):{...o,...h};let c={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(h=>{var y;c=(y=h.getInitialState==null?void 0:h.getInitialState(c))!=null?y:c});const f=[];let d=!1;const g={_features:n,options:{...o,...e},initialState:c,_queue:h=>{f.push(h),d||(d=!0,Promise.resolve().then(()=>{for(;f.length;)f.shift()();d=!1}).catch(y=>setTimeout(()=>{throw y})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const y=Ra(h,i.options);i.options=s(y)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,y,m)=>{var S;return(S=i.options.getRowId==null?void 0:i.options.getRowId(h,y,m))!=null?S:`${m?[m.id,y].join("."):y}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,y)=>{let m=(y?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!m&&(m=i.getCoreRowModel().rowsById[h],!m))throw new Error;return m},_getDefaultColumnDef:at(()=>[i.options.defaultColumn],h=>{var y;return h=(y=h)!=null?y:{},{header:m=>{const S=m.header.column.columnDef;return S.accessorKey?S.accessorKey:S.accessorFn?S.id:null},cell:m=>{var S,b;return(S=(b=m.renderValue())==null||b.toString==null?void 0:b.toString())!=null?S:null},...i._features.reduce((m,S)=>Object.assign(m,S.getDefaultColumnDef==null?void 0:S.getDefaultColumnDef()),{}),...h}},st(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:at(()=>[i._getColumnDefs()],h=>{const y=function(m,S,b){return b===void 0&&(b=0),m.map(C=>{const x=sQ(i,C,b,S),$=C;return x.columns=$.columns?y($.columns,x,b+1):[],x})};return y(h)},st(e,"debugColumns")),getAllFlatColumns:at(()=>[i.getAllColumns()],h=>h.flatMap(y=>y.getFlatColumns()),st(e,"debugColumns")),_getAllFlatColumnsById:at(()=>[i.getAllFlatColumns()],h=>h.reduce((y,m)=>(y[m.id]=m,y),{}),st(e,"debugColumns")),getAllLeafColumns:at(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,y)=>{let m=h.flatMap(S=>S.getLeafColumns());return y(m)},st(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,g);for(let h=0;h<i._features.length;h++){const y=i._features[h];y==null||y.createTable==null||y.createTable(i)}return i}function HQ(){return e=>at(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,o,s){o===void 0&&(o=0);const u=[];for(let f=0;f<i.length;f++){const d=uQ(e,e._getRowId(i[f],f,s),i[f],f,o,void 0,s?.id);if(r.flatRows.push(d),r.rowsById[d.id]=d,u.push(d),e.options.getSubRows){var c;d.originalSubRows=e.options.getSubRows(i[f],f),(c=d.originalSubRows)!=null&&c.length&&(d.subRows=n(d.originalSubRows,o+1,d))}}return u};return r.rows=n(t),r},st(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function UQ(){return e=>at(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],o=n.filter(c=>{var f;return(f=e.getColumn(c.id))==null?void 0:f.getCanSort()}),s={};o.forEach(c=>{const f=e.getColumn(c.id);f&&(s[c.id]={sortUndefined:f.columnDef.sortUndefined,invertSorting:f.columnDef.invertSorting,sortingFn:f.getSortingFn()})});const u=c=>{const f=c.map(d=>({...d}));return f.sort((d,g)=>{for(let y=0;y<o.length;y+=1){var h;const m=o[y],S=s[m.id],b=S.sortUndefined,C=(h=m?.desc)!=null?h:!1;let x=0;if(b){const $=d.getValue(m.id),T=g.getValue(m.id),_=$===void 0,A=T===void 0;if(_||A){if(b==="first")return _?-1:1;if(b==="last")return _?1:-1;x=_&&A?0:_?b:-b}}if(x===0&&(x=S.sortingFn(d,g,m.id)),x!==0)return C&&(x*=-1),S.invertSorting&&(x*=-1),x}return d.index-g.index}),f.forEach(d=>{var g;i.push(d),(g=d.subRows)!=null&&g.length&&(d.subRows=u(d.subRows))}),f};return{rows:u(r.rows),flatRows:i,rowsById:r.rowsById}},st(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
1286
+ color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,r?.key)}return i}}function st(e,t,r,n){return{debug:()=>{var i;return(i=e?.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function sQ(e,t,r,n){const i=()=>{var s;return(s=o.getValue())!=null?s:e.options.renderFallbackValue},o={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:at(()=>[e,r,t,o],(s,u,c,f)=>({table:s,column:u,row:c,cell:f,getValue:f.getValue,renderValue:f.renderValue}),st(e.options,"debugCells"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(o,r,t,e)},{}),o}function lQ(e,t,r,n){var i,o;const u={...e._getDefaultColumnDef(),...t},c=u.accessorKey;let f=(i=(o=u.id)!=null?o:c?typeof String.prototype.replaceAll=="function"?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)!=null?i:typeof u.header=="string"?u.header:void 0,d;if(u.accessorFn?d=u.accessorFn:c&&(c.includes(".")?d=h=>{let y=h;for(const S of c.split(".")){var m;y=(m=y)==null?void 0:m[S]}return y}:d=h=>h[u.accessorKey]),!f)throw new Error;let g={id:`${String(f)}`,accessorFn:d,parent:n,depth:r,columnDef:u,columns:[],getFlatColumns:at(()=>[!0],()=>{var h;return[g,...(h=g.columns)==null?void 0:h.flatMap(y=>y.getFlatColumns())]},st(e.options,"debugColumns")),getLeafColumns:at(()=>[e._getOrderColumnsFn()],h=>{var y;if((y=g.columns)!=null&&y.length){let m=g.columns.flatMap(S=>S.getLeafColumns());return h(m)}return[g]},st(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(g,e);return g}const Kr="debugHeaders";function A$(e,t,r){var n;let o={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],u=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(u),s.push(c)};return u(o),s},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(o,e)}),o}const uQ={createTable:e=>{e.getHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var o,s;const u=(o=n?.map(g=>r.find(h=>h.id===g)).filter(Boolean))!=null?o:[],c=(s=i?.map(g=>r.find(h=>h.id===g)).filter(Boolean))!=null?s:[],f=r.filter(g=>!(n!=null&&n.includes(g.id))&&!(i!=null&&i.includes(g.id)));return wd(t,[...u,...f,...c],e)},st(e.options,Kr)),e.getCenterHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(o=>!(n!=null&&n.includes(o.id))&&!(i!=null&&i.includes(o.id))),wd(t,r,e,"center")),st(e.options,Kr)),e.getLeftHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const o=(i=n?.map(s=>r.find(u=>u.id===s)).filter(Boolean))!=null?i:[];return wd(t,o,e,"left")},st(e.options,Kr)),e.getRightHeaderGroups=at(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const o=(i=n?.map(s=>r.find(u=>u.id===s)).filter(Boolean))!=null?i:[];return wd(t,o,e,"right")},st(e.options,Kr)),e.getFooterGroups=at(()=>[e.getHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getLeftFooterGroups=at(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getCenterFooterGroups=at(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getRightFooterGroups=at(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),st(e.options,Kr)),e.getFlatHeaders=at(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getLeftFlatHeaders=at(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getCenterFlatHeaders=at(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getRightFlatHeaders=at(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),st(e.options,Kr)),e.getCenterLeafHeaders=at(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),st(e.options,Kr)),e.getLeftLeafHeaders=at(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),st(e.options,Kr)),e.getRightLeafHeaders=at(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),st(e.options,Kr)),e.getLeafHeaders=at(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,o,s,u,c,f;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=r[0])==null?void 0:u.headers)!=null?s:[],...(c=(f=n[0])==null?void 0:f.headers)!=null?c:[]].map(d=>d.getLeafHeaders()).flat()},st(e.options,Kr))}};function wd(e,t,r,n){var i,o;let s=0;const u=function(h,y){y===void 0&&(y=1),s=Math.max(s,y),h.filter(m=>m.getIsVisible()).forEach(m=>{var S;(S=m.columns)!=null&&S.length&&u(m.columns,y+1)},0)};u(e);let c=[];const f=(h,y)=>{const m={depth:y,id:[n,`${y}`].filter(Boolean).join("_"),headers:[]},S=[];h.forEach(b=>{const C=[...S].reverse()[0],x=b.column.depth===m.depth;let $,T=!1;if(x&&b.column.parent?$=b.column.parent:($=b.column,T=!0),C&&C?.column===$)C.subHeaders.push(b);else{const _=A$(r,$,{id:[n,y,$.id,b?.id].filter(Boolean).join("_"),isPlaceholder:T,placeholderId:T?`${S.filter(A=>A.column===$).length}`:void 0,depth:y,index:S.length});_.subHeaders.push(b),S.push(_)}m.headers.push(b),b.headerGroup=m}),c.push(m),y>0&&f(S,y-1)},d=t.map((h,y)=>A$(r,h,{depth:s,index:y}));f(d,s-1),c.reverse();const g=h=>h.filter(m=>m.column.getIsVisible()).map(m=>{let S=0,b=0,C=[0];m.subHeaders&&m.subHeaders.length?(C=[],g(m.subHeaders).forEach($=>{let{colSpan:T,rowSpan:_}=$;S+=T,C.push(_)})):S=1;const x=Math.min(...C);return b=b+x,m.colSpan=S,m.rowSpan=b,{colSpan:S,rowSpan:b}});return g((i=(o=c[0])==null?void 0:o.headers)!=null?i:[]),c}const cQ=(e,t,r,n,i,o,s)=>{let u={id:t,index:n,original:r,depth:i,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(u._valuesCache.hasOwnProperty(c))return u._valuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return u._valuesCache[c]=f.accessorFn(u.original,n),u._valuesCache[c]},getUniqueValues:c=>{if(u._uniqueValuesCache.hasOwnProperty(c))return u._uniqueValuesCache[c];const f=e.getColumn(c);if(f!=null&&f.accessorFn)return f.columnDef.getUniqueValues?(u._uniqueValuesCache[c]=f.columnDef.getUniqueValues(u.original,n),u._uniqueValuesCache[c]):(u._uniqueValuesCache[c]=[u.getValue(c)],u._uniqueValuesCache[c])},renderValue:c=>{var f;return(f=u.getValue(c))!=null?f:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>aQ(u.subRows,c=>c.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let c=[],f=u;for(;;){const d=f.getParentRow();if(!d)break;c.push(d),f=d}return c.reverse()},getAllCells:at(()=>[e.getAllLeafColumns()],c=>c.map(f=>sQ(e,u,f,f.id)),st(e.options,"debugRows")),_getAllCellsByColumnId:at(()=>[u.getAllCells()],c=>c.reduce((f,d)=>(f[d.column.id]=d,f),{}),st(e.options,"debugRows"))};for(let c=0;c<e._features.length;c++){const f=e._features[c];f==null||f.createRow==null||f.createRow(u,e)}return u},fQ={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},u5=(e,t,r)=>{var n,i;const o=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};u5.autoRemove=e=>Ki(e);const c5=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};c5.autoRemove=e=>Ki(e);const f5=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===r?.toLowerCase()};f5.autoRemove=e=>Ki(e);const d5=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};d5.autoRemove=e=>Ki(e)||!(e!=null&&e.length);const p5=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});p5.autoRemove=e=>Ki(e)||!(e!=null&&e.length);const h5=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});h5.autoRemove=e=>Ki(e)||!(e!=null&&e.length);const g5=(e,t,r)=>e.getValue(t)===r;g5.autoRemove=e=>Ki(e);const v5=(e,t,r)=>e.getValue(t)==r;v5.autoRemove=e=>Ki(e);const Yb=(e,t,r)=>{let[n,i]=r;const o=e.getValue(t);return o>=n&&o<=i};Yb.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,o=t===null||Number.isNaN(n)?-1/0:n,s=r===null||Number.isNaN(i)?1/0:i;if(o>s){const u=o;o=s,s=u}return[o,s]};Yb.autoRemove=e=>Ki(e)||Ki(e[0])&&Ki(e[1]);const qo={includesString:u5,includesStringSensitive:c5,equalsString:f5,arrIncludes:d5,arrIncludesAll:p5,arrIncludesSome:h5,equals:g5,weakEquals:v5,inNumberRange:Yb};function Ki(e){return e==null||e===""}const dQ={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Yn("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?qo.includesString:typeof n=="number"?qo.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?qo.equals:Array.isArray(n)?qo.arrIncludes:qo.weakEquals},e.getFilterFn=()=>{var r,n;return Wp(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:qo[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),o=n?.find(d=>d.id===e.id),s=Ra(r,o?o.value:void 0);if(I$(i,s,e)){var u;return(u=n?.filter(d=>d.id!==e.id))!=null?u:[]}const c={id:e.id,value:s};if(o){var f;return(f=n?.map(d=>d.id===e.id?c:d))!=null?f:[]}return n!=null&&n.length?[...n,c]:[c]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=i=>{var o;return(o=Ra(t,i))==null?void 0:o.filter(s=>{const u=r.find(c=>c.id===s.id);if(u){const c=u.getFilterFn();if(I$(c,s.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function I$(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const pQ=(e,t,r)=>r.reduce((n,i)=>{const o=i.getValue(e);return n+(typeof o=="number"?o:0)},0),hQ=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}),n},gQ=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}),n},vQ=(e,t,r)=>{let n,i;return r.forEach(o=>{const s=o.getValue(e);s!=null&&(n===void 0?s>=s&&(n=i=s):(n>s&&(n=s),i<s&&(i=s)))}),[n,i]},mQ=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++r,n+=o)}),r)return n/r},yQ=(e,t)=>{if(!t.length)return;const r=t.map(o=>o.getValue(e));if(!oQ(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((o,s)=>o-s);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},bQ=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),SQ=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,wQ=(e,t)=>t.length,k0={sum:pQ,min:hQ,max:gQ,extent:vQ,mean:mQ,median:yQ,unique:bQ,uniqueCount:SQ,count:wQ},xQ={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Yn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return k0.sum;if(Object.prototype.toString.call(n)==="[object Date]")return k0.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Wp(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:k0[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function EQ(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(o=>!t.includes(o.id));return r==="remove"?n:[...t.map(o=>e.find(s=>s.id===o)).filter(Boolean),...n]}const CQ={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Yn("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=at(r=>[Hu(t,r)],r=>r.findIndex(n=>n.id===e.id),st(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=Hu(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=Hu(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=at(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const s=[...t],u=[...i];for(;u.length&&s.length;){const c=s.shift(),f=u.findIndex(d=>d.id===c);f>-1&&o.push(u.splice(f,1)[0])}o=[...o,...u]}return EQ(o,r,n)},st(e.options,"debugTable"))}},M0=()=>({left:[],right:[]}),_Q={getInitialState:e=>({columnPinning:M0(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Yn("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,s;if(r==="right"){var u,c;return{left:((u=i?.left)!=null?u:[]).filter(g=>!(n!=null&&n.includes(g))),right:[...((c=i?.right)!=null?c:[]).filter(g=>!(n!=null&&n.includes(g))),...n]}}if(r==="left"){var f,d;return{left:[...((f=i?.left)!=null?f:[]).filter(g=>!(n!=null&&n.includes(g))),...n],right:((d=i?.right)!=null?d:[]).filter(g=>!(n!=null&&n.includes(g)))}}return{left:((o=i?.left)!=null?o:[]).filter(g=>!(n!=null&&n.includes(g))),right:((s=i?.right)!=null?s:[]).filter(g=>!(n!=null&&n.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,o,s;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((o=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(u=>u.id),{left:n,right:i}=t.getState().columnPinning,o=r.some(u=>n?.includes(u)),s=r.some(u=>i?.includes(u));return o?"left":s?"right":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=at(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const o=[...n??[],...i??[]];return r.filter(s=>!o.includes(s.column.id))},st(t.options,"debugRows")),e.getLeftVisibleCells=at(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n??[]).map(o=>r.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),st(t.options,"debugRows")),e.getRightVisibleCells=at(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(o=>r.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),st(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?M0():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:M0())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var i,o;return!!((i=n.left)!=null&&i.length||(o=n.right)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=at(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),st(e.options,"debugColumns")),e.getRightLeafColumns=at(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),st(e.options,"debugColumns")),e.getCenterLeafColumns=at(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(o=>!i.includes(o.id))},st(e.options,"debugColumns"))}},xd={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},D0=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),RQ={getDefaultColumnDef:()=>xd,getInitialState:e=>({columnSizing:{},columnSizingInfo:D0(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Yn("columnSizing",e),onColumnSizingInfoChange:Yn("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:xd.minSize,(n=o??e.columnDef.size)!=null?n:xd.size),(i=e.columnDef.maxSize)!=null?i:xd.maxSize)},e.getStart=at(r=>[r,Hu(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,o)=>i+o.getSize(),0),st(t.options,"debugColumns")),e.getAfter=at(r=>[r,Hu(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,o)=>i+o.getSize(),0),st(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var o;r+=(o=i.column.getSize())!=null?o:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const n=t.getColumn(e.column.id),i=n?.getCanResize();return o=>{if(!n||!i||(o.persist==null||o.persist(),L0(o)&&o.touches&&o.touches.length>1))return;const s=e.getSize(),u=e?e.getLeafHeaders().map(C=>[C.column.id,C.column.getSize()]):[[n.id,n.getSize()]],c=L0(o)?Math.round(o.touches[0].clientX):o.clientX,f={},d=(C,x)=>{typeof x=="number"&&(t.setColumnSizingInfo($=>{var T,_;const A=t.options.columnResizeDirection==="rtl"?-1:1,O=(x-((T=$?.startOffset)!=null?T:0))*A,I=Math.max(O/((_=$?.startSize)!=null?_:0),-.999999);return $.columnSizingStart.forEach(L=>{let[F,W]=L;f[F]=Math.round(Math.max(W+W*I,0)*100)/100}),{...$,deltaOffset:O,deltaPercentage:I}}),(t.options.columnResizeMode==="onChange"||C==="end")&&t.setColumnSizing($=>({...$,...f})))},g=C=>d("move",C),h=C=>{d("end",C),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},y=r||typeof document<"u"?document:null,m={moveHandler:C=>g(C.clientX),upHandler:C=>{y?.removeEventListener("mousemove",m.moveHandler),y?.removeEventListener("mouseup",m.upHandler),h(C.clientX)}},S={moveHandler:C=>(C.cancelable&&(C.preventDefault(),C.stopPropagation()),g(C.touches[0].clientX),!1),upHandler:C=>{var x;y?.removeEventListener("touchmove",S.moveHandler),y?.removeEventListener("touchend",S.upHandler),C.cancelable&&(C.preventDefault(),C.stopPropagation()),h((x=C.touches[0])==null?void 0:x.clientX)}},b=OQ()?{passive:!1}:!1;L0(o)?(y?.addEventListener("touchmove",S.moveHandler,b),y?.addEventListener("touchend",S.upHandler,b)):(y?.addEventListener("mousemove",m.moveHandler,b),y?.addEventListener("mouseup",m.upHandler,b)),t.setColumnSizingInfo(C=>({...C,startOffset:c,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?D0():(r=e.initialState.columnSizingInfo)!=null?r:D0())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}};let Ed=null;function OQ(){if(typeof Ed=="boolean")return Ed;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Ed=e,Ed}function L0(e){return e.type==="touchstart"}const TQ={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Yn("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;const i=e.columns;return(r=i.length?i.some(o=>o.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=at(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),st(t.options,"debugRows")),e.getVisibleCells=at(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],st(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>at(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),st(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:r||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function Hu(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const $Q={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},AQ={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Yn("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,o;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>qo.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return Wp(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:qo[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},IQ={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Yn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,o;e.setExpanded(n?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const s=o.split(".");n=Math.max(n,s.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;const o=n===!0?!0:!!(n!=null&&n[e.id]);let s={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{s[u]=!0}):s=n,r=(i=r)!=null?i:!o,!o&&r)return{...s,[e.id]:!0};if(o&&!r){const{[e.id]:u,...c}=s;return c}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},_1=0,R1=10,F0=()=>({pageIndex:_1,pageSize:R1}),PQ={getInitialState:e=>({...e,pagination:{...F0(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Yn("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const i=o=>Ra(n,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?F0():(i=e.initialState.pagination)!=null?i:F0())},e.setPageIndex=n=>{e.setPagination(i=>{let o=Ra(n,i.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,s)),{...i,pageIndex:o}})},e.resetPageIndex=n=>{var i,o;e.setPageIndex(n?_1:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:_1)},e.resetPageSize=n=>{var i,o;e.setPageSize(n?R1:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:R1)},e.setPageSize=n=>{e.setPagination(i=>{const o=Math.max(1,Ra(n,i.pageSize)),s=i.pageSize*i.pageIndex,u=Math.floor(s/o);return{...i,pageIndex:u,pageSize:o}})},e.setPageCount=n=>e.setPagination(i=>{var o;let s=Ra(n,(o=e.options.pageCount)!=null?o:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...i,pageCount:s}}),e.getPageOptions=at(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((o,s)=>s)),i},st(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},N0=()=>({top:[],bottom:[]}),kQ={getInitialState:e=>({rowPinning:N0(),...e}),getDefaultOptions:e=>({onRowPinningChange:Yn("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{const o=n?e.getLeafRows().map(c=>{let{id:f}=c;return f}):[],s=i?e.getParentRows().map(c=>{let{id:f}=c;return f}):[],u=new Set([...s,e.id,...o]);t.setRowPinning(c=>{var f,d;if(r==="bottom"){var g,h;return{top:((g=c?.top)!=null?g:[]).filter(S=>!(u!=null&&u.has(S))),bottom:[...((h=c?.bottom)!=null?h:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)]}}if(r==="top"){var y,m;return{top:[...((y=c?.top)!=null?y:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)],bottom:((m=c?.bottom)!=null?m:[]).filter(S=>!(u!=null&&u.has(S)))}}return{top:((f=c?.top)!=null?f:[]).filter(S=>!(u!=null&&u.has(S))),bottom:((d=c?.bottom)!=null?d:[]).filter(S=>!(u!=null&&u.has(S)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n??i)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,o=r.some(u=>n?.includes(u)),s=r.some(u=>i?.includes(u));return o?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();if(!i)return-1;const o=(r=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(s=>{let{id:u}=s;return u});return(n=o?.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?N0():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:N0())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var i,o;return!!((i=n.top)!=null&&i.length||(o=n.bottom)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(s=>{const u=e.getRow(s,!0);return u.getIsAllParentsExpanded()?u:null}):(r??[]).map(s=>t.find(u=>u.id===s))).filter(Boolean).map(s=>({...s,position:n}))},e.getTopRows=at(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),st(e.options,"debugRows")),e.getBottomRows=at(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),st(e.options,"debugRows")),e.getCenterRows=at(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const i=new Set([...r??[],...n??[]]);return t.filter(o=>!i.has(o.id))},st(e.options,"debugRows"))}},MQ={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Yn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(n[o.id]=!0)}):i.forEach(o=>{delete n[o.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(o=>{O1(i,o.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=at(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?j0(e,r):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getFilteredSelectedRowModel=at(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?j0(e,r):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getGroupedSelectedRowModel=at(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?j0(e,r):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var s;if(r=typeof r<"u"?r:!i,e.getCanSelect()&&i===r)return o;const u={...o};return O1(u,e.id,r,(s=n?.selectChildren)!=null?s:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return Qb(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return T1(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return T1(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},O1=(e,t,r,n,i)=>{var o;const s=i.getRow(t,!0);r?(s.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),s.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(o=s.subRows)!=null&&o.length&&s.getCanSelectSubRows()&&s.subRows.forEach(u=>O1(e,u.id,r,n,i))};function j0(e,t){const r=e.getState().rowSelection,n=[],i={},o=function(s,u){return s.map(c=>{var f;const d=Qb(c,r);if(d&&(n.push(c),i[c.id]=c),(f=c.subRows)!=null&&f.length&&(c={...c,subRows:o(c.subRows)}),d)return c}).filter(Boolean)};return{rows:o(t.rows),flatRows:n,rowsById:i}}function Qb(e,t){var r;return(r=t[e.id])!=null?r:!1}function T1(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,o=!1;return e.subRows.forEach(s=>{if(!(o&&!i)&&(s.getCanSelect()&&(Qb(s,t)?o=!0:i=!1),s.subRows&&s.subRows.length)){const u=T1(s,t);u==="all"?o=!0:(u==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const $1=/([0-9]+)/gm,DQ=(e,t,r)=>m5(ka(e.getValue(r)).toLowerCase(),ka(t.getValue(r)).toLowerCase()),LQ=(e,t,r)=>m5(ka(e.getValue(r)),ka(t.getValue(r))),FQ=(e,t,r)=>Jb(ka(e.getValue(r)).toLowerCase(),ka(t.getValue(r)).toLowerCase()),NQ=(e,t,r)=>Jb(ka(e.getValue(r)),ka(t.getValue(r))),jQ=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},zQ=(e,t,r)=>Jb(e.getValue(r),t.getValue(r));function Jb(e,t){return e===t?0:e>t?1:-1}function ka(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function m5(e,t){const r=e.split($1).filter(Boolean),n=t.split($1).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),o=n.shift(),s=parseInt(i,10),u=parseInt(o,10),c=[s,u].sort();if(isNaN(c[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(c[1]))return isNaN(s)?-1:1;if(s>u)return 1;if(u>s)return-1}return r.length-n.length}const xu={alphanumeric:DQ,alphanumericCaseSensitive:LQ,text:FQ,textCaseSensitive:NQ,datetime:jQ,basic:zQ},BQ={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Yn("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const o=i?.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return xu.datetime;if(typeof o=="string"&&(n=!0,o.split($1).length>1))return xu.alphanumeric}return n?xu.text:xu.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return Wp(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:xu[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const i=e.getNextSortingOrder(),o=typeof r<"u"&&r!==null;t.setSorting(s=>{const u=s?.find(y=>y.id===e.id),c=s?.findIndex(y=>y.id===e.id);let f=[],d,g=o?r:i==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&n?u?d="toggle":d="add":s!=null&&s.length&&c!==s.length-1?d="replace":u?d="toggle":d="replace",d==="toggle"&&(o||i||(d="remove")),d==="add"){var h;f=[...s,{id:e.id,desc:g}],f.splice(0,f.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else d==="toggle"?f=s.map(y=>y.id===e.id?{...y,desc:g}:y):d==="remove"?f=s.filter(y=>y.id!==e.id):f=[{id:e.id,desc:g}];return f})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;const o=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==o&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:s==="desc"?"asc":"desc":o},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},VQ=[uQ,TQ,CQ,_Q,fQ,dQ,$Q,AQ,BQ,xQ,IQ,PQ,kQ,MQ,RQ];function HQ(e){var t,r;const n=[...VQ,...(t=e._features)!=null?t:[]];let i={_features:n};const o=i._features.reduce((h,y)=>Object.assign(h,y.getDefaultOptions==null?void 0:y.getDefaultOptions(i)),{}),s=h=>i.options.mergeOptions?i.options.mergeOptions(o,h):{...o,...h};let c={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(h=>{var y;c=(y=h.getInitialState==null?void 0:h.getInitialState(c))!=null?y:c});const f=[];let d=!1;const g={_features:n,options:{...o,...e},initialState:c,_queue:h=>{f.push(h),d||(d=!0,Promise.resolve().then(()=>{for(;f.length;)f.shift()();d=!1}).catch(y=>setTimeout(()=>{throw y})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const y=Ra(h,i.options);i.options=s(y)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,y,m)=>{var S;return(S=i.options.getRowId==null?void 0:i.options.getRowId(h,y,m))!=null?S:`${m?[m.id,y].join("."):y}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,y)=>{let m=(y?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!m&&(m=i.getCoreRowModel().rowsById[h],!m))throw new Error;return m},_getDefaultColumnDef:at(()=>[i.options.defaultColumn],h=>{var y;return h=(y=h)!=null?y:{},{header:m=>{const S=m.header.column.columnDef;return S.accessorKey?S.accessorKey:S.accessorFn?S.id:null},cell:m=>{var S,b;return(S=(b=m.renderValue())==null||b.toString==null?void 0:b.toString())!=null?S:null},...i._features.reduce((m,S)=>Object.assign(m,S.getDefaultColumnDef==null?void 0:S.getDefaultColumnDef()),{}),...h}},st(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:at(()=>[i._getColumnDefs()],h=>{const y=function(m,S,b){return b===void 0&&(b=0),m.map(C=>{const x=lQ(i,C,b,S),$=C;return x.columns=$.columns?y($.columns,x,b+1):[],x})};return y(h)},st(e,"debugColumns")),getAllFlatColumns:at(()=>[i.getAllColumns()],h=>h.flatMap(y=>y.getFlatColumns()),st(e,"debugColumns")),_getAllFlatColumnsById:at(()=>[i.getAllFlatColumns()],h=>h.reduce((y,m)=>(y[m.id]=m,y),{}),st(e,"debugColumns")),getAllLeafColumns:at(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,y)=>{let m=h.flatMap(S=>S.getLeafColumns());return y(m)},st(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,g);for(let h=0;h<i._features.length;h++){const y=i._features[h];y==null||y.createTable==null||y.createTable(i)}return i}function UQ(){return e=>at(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,o,s){o===void 0&&(o=0);const u=[];for(let f=0;f<i.length;f++){const d=cQ(e,e._getRowId(i[f],f,s),i[f],f,o,void 0,s?.id);if(r.flatRows.push(d),r.rowsById[d.id]=d,u.push(d),e.options.getSubRows){var c;d.originalSubRows=e.options.getSubRows(i[f],f),(c=d.originalSubRows)!=null&&c.length&&(d.subRows=n(d.originalSubRows,o+1,d))}}return u};return r.rows=n(t),r},st(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function WQ(){return e=>at(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],o=n.filter(c=>{var f;return(f=e.getColumn(c.id))==null?void 0:f.getCanSort()}),s={};o.forEach(c=>{const f=e.getColumn(c.id);f&&(s[c.id]={sortUndefined:f.columnDef.sortUndefined,invertSorting:f.columnDef.invertSorting,sortingFn:f.getSortingFn()})});const u=c=>{const f=c.map(d=>({...d}));return f.sort((d,g)=>{for(let y=0;y<o.length;y+=1){var h;const m=o[y],S=s[m.id],b=S.sortUndefined,C=(h=m?.desc)!=null?h:!1;let x=0;if(b){const $=d.getValue(m.id),T=g.getValue(m.id),_=$===void 0,A=T===void 0;if(_||A){if(b==="first")return _?-1:1;if(b==="last")return _?1:-1;x=_&&A?0:_?b:-b}}if(x===0&&(x=S.sortingFn(d,g,m.id)),x!==0)return C&&(x*=-1),S.invertSorting&&(x*=-1),x}return d.index-g.index}),f.forEach(d=>{var g;i.push(d),(g=d.subRows)!=null&&g.length&&(d.subRows=u(d.subRows))}),f};return{rows:u(r.rows),flatRows:i,rowsById:r.rowsById}},st(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
1287
1287
  * react-table
1288
1288
  *
1289
1289
  * Copyright (c) TanStack
@@ -1292,10 +1292,10 @@ html body {
1292
1292
  * LICENSE.md file in the root directory of this source tree.
1293
1293
  *
1294
1294
  * @license MIT
1295
- */function y5(e,t){return e?WQ(e)?E.createElement(e,t):e:null}function WQ(e){return qQ(e)||typeof e=="function"||GQ(e)}function qQ(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function GQ(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function XQ(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=E.useState(()=>({current:VQ(t)})),[n,i]=E.useState(()=>r.current.initialState);return r.current.setOptions(o=>({...o,...e,state:{...n,...e.state},onStateChange:s=>{i(s),e.onStateChange==null||e.onStateChange(s)}})),r.current}function el(e,t,r){let n=r.initialDeps??[],i;return()=>{var o,s,u,c;let f;r.key&&((o=r.debug)!=null&&o.call(r))&&(f=Date.now());const d=e();if(!(d.length!==n.length||d.some((y,m)=>n[m]!==y)))return i;n=d;let h;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(h=Date.now()),i=t(...d),r.key&&((u=r.debug)!=null&&u.call(r))){const y=Math.round((Date.now()-f)*100)/100,m=Math.round((Date.now()-h)*100)/100,S=m/16,b=(C,x)=>{for(C=String(C);C.length<x;)C=" "+C;return C};console.info(`%c⏱ ${b(m,5)} /${b(y,5)} ms`,`
1295
+ */function y5(e,t){return e?qQ(e)?E.createElement(e,t):e:null}function qQ(e){return GQ(e)||typeof e=="function"||XQ(e)}function GQ(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function XQ(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function KQ(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=E.useState(()=>({current:HQ(t)})),[n,i]=E.useState(()=>r.current.initialState);return r.current.setOptions(o=>({...o,...e,state:{...n,...e.state},onStateChange:s=>{i(s),e.onStateChange==null||e.onStateChange(s)}})),r.current}function el(e,t,r){let n=r.initialDeps??[],i;return()=>{var o,s,u,c;let f;r.key&&((o=r.debug)!=null&&o.call(r))&&(f=Date.now());const d=e();if(!(d.length!==n.length||d.some((y,m)=>n[m]!==y)))return i;n=d;let h;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(h=Date.now()),i=t(...d),r.key&&((u=r.debug)!=null&&u.call(r))){const y=Math.round((Date.now()-f)*100)/100,m=Math.round((Date.now()-h)*100)/100,S=m/16,b=(C,x)=>{for(C=String(C);C.length<x;)C=" "+C;return C};console.info(`%c⏱ ${b(m,5)} /${b(y,5)} ms`,`
1296
1296
  font-size: .6rem;
1297
1297
  font-weight: bold;
1298
- color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,r?.key)}return(c=r?.onChange)==null||c.call(r,i),i}}function z0(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const KQ=(e,t)=>Math.abs(e-t)<1,YQ=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},QQ=e=>e,JQ=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},ZQ=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=s=>{const{width:u,height:c}=s;t({width:Math.round(u),height:Math.round(c)})};if(i(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const o=new n.ResizeObserver(s=>{const u=s[0];if(u?.borderBoxSize){const c=u.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(r.getBoundingClientRect())});return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},P$={passive:!0},eJ=typeof window>"u"?!0:"onscrollend"in window,tJ=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const o=eJ?()=>{}:YQ(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=f=>()=>{const{horizontal:d,isRtl:g}=e.options;i=d?r.scrollLeft*(g&&-1||1):r.scrollTop,o(),t(i,f)},u=s(!0),c=s(!1);return c(),r.addEventListener("scroll",u,P$),r.addEventListener("scrollend",c,P$),()=>{r.removeEventListener("scroll",u),r.removeEventListener("scrollend",c)}},rJ=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},nJ=(e,{adjustments:t=0,behavior:r},n)=>{var i,o;const s=e+t;(o=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class iJ{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),r=null},observe:i=>{var o;return(o=n())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=n())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:QQ,rangeExtractor:JQ,onChange:()=>{},measureElement:rJ,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=el(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,o=new Map;for(let s=n-1;s>=0;s--){const u=r[s];if(i.has(u.lane))continue;const c=o.get(u.lane);if(c==null||u.end>c.end?o.set(u.lane,u):u.end<c.end&&i.set(u.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((s,u)=>s.end===u.end?s.index-u.index:s.end-u.end)[0]:void 0},this.getMeasurementOptions=el(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,i,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:o,enabled:s}),{key:!1}),this.getMeasurements=el(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:o,enabled:s},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,c);for(let d=c;d<r;d++){const g=o(d),h=this.options.lanes===1?f[d-1]:this.getFurthestMeasurement(f,d),y=h?h.end+this.options.gap:n+i,m=u.get(g),S=typeof m=="number"?m:this.options.estimateSize(d),b=y+S,C=h?h.lane:d%this.options.lanes;f[d]={index:d,start:y,size:S,end:b,key:g,lane:C}}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=el(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,i)=>this.range=r.length>0&&n>0?oJ({measurements:r,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=el(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,i,o)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const i=this.indexFromElement(r),o=this.measurementsCache[i];if(!o)return;const s=o.key,u=this.elementsCache.get(s);u!==r&&(u&&this.observer.unobserve(u),this.observer.observe(r),this.elementsCache.set(s,r)),r.isConnected&&this.resizeItem(i,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const i=this.measurementsCache[r];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,s=n-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,i)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(i))});return}this._measureElement(r,void 0)},this.getVirtualItems=el(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let o=0,s=r.length;o<s;o++){const u=r[o],c=n[u];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return z0(n[b5(0,n.length-1,i=>z0(n[i]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const i=this.getSize(),o=this.getScrollOffset();n==="auto"&&(r<=o?n="start":r>=o+i?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-i:n==="center"&&(r=r-i/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.measurementsCache[r];if(!i)return;const o=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(i.end>=s+o-this.options.scrollPaddingEnd)n="end";else if(i.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const u=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(r,{align:n="auto",behavior:i}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(r,n);if(!o)return;const[s,u]=o;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[f]=z0(this.getOffsetForIndex(r,u));KQ(f,this.getScrollOffset())||this.scrollToIndex(r,{align:u,behavior:i})}else this.scrollToIndex(r,{align:u,behavior:i})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(o=>o.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const b5=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,o=r(i);if(o<n)e=i+1;else if(o>n)t=i-1;else return i}return e>0?e-1:0};function oJ({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,o=b5(0,n,u=>e[u].start,r);let s=o;for(;s<n&&e[s].end<r+t;)s++;return{startIndex:o,endIndex:s}}const aJ=typeof document<"u"?E.useLayoutEffect:E.useEffect;function sJ(e){const t=E.useReducer(()=>({}),{})[1],r={...e,onChange:(i,o)=>{var s;o?Sp.flushSync(t):t(),(s=e.onChange)==null||s.call(e,i,o)}},[n]=E.useState(()=>new iJ(r));return n.setOptions(r),E.useEffect(()=>n._didMount(),[]),aJ(()=>n._willUpdate()),n}function lJ(e){return sJ({observeElementRect:ZQ,observeElementOffset:tJ,scrollToFn:nJ,...e})}const Cd={ROW_HEIGHT_ESTIMATE:42,OVERSCAN:5,MIN_COLUMN_SIZE:50,MAX_COLUMN_SIZE:500},tl={SIZE:50,BOTTOM_OFFSET:25,RIGHT_OFFSET:25,BORDER_RADIUS:25,PADDING_TOP:4},uJ=1,gp={HEADER_FONT_SIZE:12,CELL_PADDING:"3px 0px",RESIZER_WIDTH:"3px",RESIZER_MARGIN:"2px"},cJ=we(Yo)`
1298
+ color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,r?.key)}return(c=r?.onChange)==null||c.call(r,i),i}}function z0(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const YQ=(e,t)=>Math.abs(e-t)<1,QQ=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},JQ=e=>e,ZQ=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},eJ=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=s=>{const{width:u,height:c}=s;t({width:Math.round(u),height:Math.round(c)})};if(i(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const o=new n.ResizeObserver(s=>{const u=s[0];if(u?.borderBoxSize){const c=u.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(r.getBoundingClientRect())});return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},P$={passive:!0},tJ=typeof window>"u"?!0:"onscrollend"in window,rJ=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const o=tJ?()=>{}:QQ(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=f=>()=>{const{horizontal:d,isRtl:g}=e.options;i=d?r.scrollLeft*(g&&-1||1):r.scrollTop,o(),t(i,f)},u=s(!0),c=s(!1);return c(),r.addEventListener("scroll",u,P$),r.addEventListener("scrollend",c,P$),()=>{r.removeEventListener("scroll",u),r.removeEventListener("scrollend",c)}},nJ=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},iJ=(e,{adjustments:t=0,behavior:r},n)=>{var i,o;const s=e+t;(o=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class oJ{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),r=null},observe:i=>{var o;return(o=n())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=n())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:JQ,rangeExtractor:ZQ,onChange:()=>{},measureElement:nJ,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=el(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,o=new Map;for(let s=n-1;s>=0;s--){const u=r[s];if(i.has(u.lane))continue;const c=o.get(u.lane);if(c==null||u.end>c.end?o.set(u.lane,u):u.end<c.end&&i.set(u.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((s,u)=>s.end===u.end?s.index-u.index:s.end-u.end)[0]:void 0},this.getMeasurementOptions=el(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,i,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:o,enabled:s}),{key:!1}),this.getMeasurements=el(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:o,enabled:s},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,c);for(let d=c;d<r;d++){const g=o(d),h=this.options.lanes===1?f[d-1]:this.getFurthestMeasurement(f,d),y=h?h.end+this.options.gap:n+i,m=u.get(g),S=typeof m=="number"?m:this.options.estimateSize(d),b=y+S,C=h?h.lane:d%this.options.lanes;f[d]={index:d,start:y,size:S,end:b,key:g,lane:C}}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=el(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,i)=>this.range=r.length>0&&n>0?aJ({measurements:r,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=el(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,i,o)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const i=this.indexFromElement(r),o=this.measurementsCache[i];if(!o)return;const s=o.key,u=this.elementsCache.get(s);u!==r&&(u&&this.observer.unobserve(u),this.observer.observe(r),this.elementsCache.set(s,r)),r.isConnected&&this.resizeItem(i,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const i=this.measurementsCache[r];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,s=n-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,i)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(i))});return}this._measureElement(r,void 0)},this.getVirtualItems=el(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let o=0,s=r.length;o<s;o++){const u=r[o],c=n[u];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return z0(n[b5(0,n.length-1,i=>z0(n[i]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const i=this.getSize(),o=this.getScrollOffset();n==="auto"&&(r<=o?n="start":r>=o+i?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-i:n==="center"&&(r=r-i/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.measurementsCache[r];if(!i)return;const o=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(i.end>=s+o-this.options.scrollPaddingEnd)n="end";else if(i.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const u=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(r,{align:n="auto",behavior:i}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(r,n);if(!o)return;const[s,u]=o;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[f]=z0(this.getOffsetForIndex(r,u));YQ(f,this.getScrollOffset())||this.scrollToIndex(r,{align:u,behavior:i})}else this.scrollToIndex(r,{align:u,behavior:i})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(o=>o.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const b5=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,o=r(i);if(o<n)e=i+1;else if(o>n)t=i-1;else return i}return e>0?e-1:0};function aJ({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,o=b5(0,n,u=>e[u].start,r);let s=o;for(;s<n&&e[s].end<r+t;)s++;return{startIndex:o,endIndex:s}}const sJ=typeof document<"u"?E.useLayoutEffect:E.useEffect;function lJ(e){const t=E.useReducer(()=>({}),{})[1],r={...e,onChange:(i,o)=>{var s;o?Sp.flushSync(t):t(),(s=e.onChange)==null||s.call(e,i,o)}},[n]=E.useState(()=>new oJ(r));return n.setOptions(r),E.useEffect(()=>n._didMount(),[]),sJ(()=>n._willUpdate()),n}function uJ(e){return lJ({observeElementRect:eJ,observeElementOffset:rJ,scrollToFn:iJ,...e})}const Cd={ROW_HEIGHT_ESTIMATE:42,OVERSCAN:5,MIN_COLUMN_SIZE:50,MAX_COLUMN_SIZE:500},tl={SIZE:50,BOTTOM_OFFSET:25,RIGHT_OFFSET:25,BORDER_RADIUS:25,PADDING_TOP:4},cJ=1,gp={HEADER_FONT_SIZE:12,CELL_PADDING:"3px 0px",RESIZER_WIDTH:"3px",RESIZER_MARGIN:"2px"},fJ=we(Yo)`
1299
1299
  position: absolute;
1300
1300
  bottom: ${tl.BOTTOM_OFFSET}px;
1301
1301
  right: ${tl.RIGHT_OFFSET}px;
@@ -1308,55 +1308,55 @@ html body {
1308
1308
  transition: opacity 0.3s;
1309
1309
  opacity: ${({enabled:e})=>e?0:1};
1310
1310
  pointer-events: ${({enabled:e})=>e?"none":"auto"};
1311
- `,fJ=({onClick:e,enabled:t})=>H.jsx(cJ,{enabled:t,onClick:e,alignItems:"center",justifyContent:"center",bg:"neutral.c100",children:H.jsx(YV,{size:"XL",color:"neutral.c00"})}),dJ=we.tbody`
1311
+ `,dJ=({onClick:e,enabled:t})=>H.jsx(fJ,{enabled:t,onClick:e,alignItems:"center",justifyContent:"center",bg:"neutral.c100",children:H.jsx(QV,{size:"XL",color:"neutral.c00"})}),pJ=we.tbody`
1312
1312
  display: grid;
1313
1313
  height: ${({totalSize:e})=>e}px;
1314
1314
  position: relative;
1315
- `,pJ=we.tr`
1315
+ `,hJ=we.tr`
1316
1316
  display: flex;
1317
1317
  position: absolute;
1318
1318
  transform: translateY(${({start:e})=>e}px);
1319
1319
  width: 100%;
1320
1320
  overflow-anchor: none;
1321
- `,hJ=we.tr`
1321
+ `,gJ=we.tr`
1322
1322
  position: absolute;
1323
1323
  top: ${({totalSize:e})=>e}px;
1324
1324
  height: 1px;
1325
1325
  overflow-anchor: auto;
1326
- `,gJ=we.td`
1326
+ `,vJ=we.td`
1327
1327
  display: flex;
1328
1328
  flex: ${({flexible:e,size:t,minSize:r})=>e?`${t} 1 ${r}px`:`0 0 ${t}px`};
1329
1329
  min-width: ${({flexible:e,size:t,minSize:r})=>e?r:t}px;
1330
1330
  overflow: hidden;
1331
1331
  background-color: ${({isEven:e,isHighlighted:t,isCurrentMatch:r})=>r?"#ffd700":t?"#fff3cd":e?"white":"ghostwhite"};
1332
1332
  padding: ${gp.CELL_PADDING};
1333
- `,vJ=({virtualizer:e,rows:t,highlightedIndices:r,currentHighlightIndex:n})=>{const i=e.getTotalSize();return H.jsxs(dJ,{totalSize:i,children:[e.getVirtualItems().map(o=>{const s=o.index,u=t[o.index];if(!u)return null;const c=r?.has(s)??!1,f=n===s;return H.jsx(pJ,{"data-index":o.index,ref:d=>e.measureElement(d),start:o.start,children:u.getVisibleCells().map(d=>{const g=d.column.columnDef.meta?.flexible??!1,h=d.column.getSize(),y=d.column.columnDef.minSize??50;return H.jsx(gJ,{size:h,minSize:y,flexible:g,isEven:s%2===0,isHighlighted:c,isCurrentMatch:f,children:y5(d.column.columnDef.cell,d.getContext())},d.id)})},u.id)}),H.jsx(hJ,{totalSize:i,children:H.jsx("td",{})})]})};var mJ=Object.create,Zb=Object.defineProperty,yJ=Object.getOwnPropertyDescriptor,S5=Object.getOwnPropertyNames,bJ=Object.getPrototypeOf,SJ=Object.prototype.hasOwnProperty,eS=(e,t)=>function(){return t||(0,e[S5(e)[0]])((t={exports:{}}).exports,t),t.exports},wJ=(e,t)=>{for(var r in t)Zb(e,r,{get:t[r],enumerable:!0})},xJ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S5(t))!SJ.call(e,i)&&i!==r&&Zb(e,i,{get:()=>t[i],enumerable:!(n=yJ(t,i))||n.enumerable});return e},EJ=(e,t,r)=>(r=e!=null?mJ(bJ(e)):{},xJ(Zb(r,"default",{value:e,enumerable:!0}),e)),CJ=eS({"node_modules/is-object/index.js"(e,t){t.exports=function(n){return typeof n=="object"&&n!==null}}}),_J=eS({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),RJ=eS({"node_modules/is-dom/index.js"(e,t){var r=CJ(),n=_J();function i(o){return!r(o)||!n(window)||typeof window.Node!="function"?!1:typeof o.nodeType=="number"&&typeof o.nodeName=="string"}t.exports=i}}),vp={};wJ(vp,{chromeDark:()=>OJ,chromeLight:()=>TJ});var OJ={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},TJ={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},w5=E.createContext([{},()=>{}]),B0={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Ud=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...B0},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...B0},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...B0}}),A1="chromeLight",x5=E.createContext(Ud(vp[A1])),Qn=e=>E.useContext(x5)[e],tS=e=>({theme:r=A1,...n})=>{const i=E.useMemo(()=>{switch(Object.prototype.toString.call(r)){case"[object String]":return Ud(vp[r]);case"[object Object]":return Ud(r);default:return Ud(vp[A1])}},[r]);return oe.createElement(x5.Provider,{value:i},oe.createElement(e,{...n}))},$J=({expanded:e,styles:t})=>oe.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶"),AJ=E.memo(e=>{e={expanded:!0,nodeRenderer:({name:d})=>oe.createElement("span",null,d),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};const{expanded:t,onClick:r,children:n,nodeRenderer:i,title:o,shouldShowArrow:s,shouldShowPlaceholder:u}=e,c=Qn("TreeNode"),f=i;return oe.createElement("li",{"aria-expanded":t,role:"treeitem",style:c.treeNodeBase,title:o},oe.createElement("div",{style:c.treeNodePreviewContainer,onClick:r},s||E.Children.count(n)>0?oe.createElement($J,{expanded:t,styles:c.treeNodeArrow}):u&&oe.createElement("span",{style:c.treeNodePlaceholder}," "),oe.createElement(f,{...e})),oe.createElement("ol",{role:"group",style:c.treeNodeChildNodesContainer},t?n:void 0))}),mp="$",k$="*";function Wd(e,t){return!t(e).next().done}var IJ=e=>Array.from({length:e},(t,r)=>[mp].concat(Array.from({length:r},()=>"*")).join(".")),PJ=(e,t,r,n,i)=>{const o=[].concat(IJ(n)).concat(r).filter(u=>typeof u=="string"),s=[];return o.forEach(u=>{const c=u.split("."),f=(d,g,h)=>{if(h===c.length){s.push(g);return}const y=c[h];if(h===0)Wd(d,t)&&(y===mp||y===k$)&&f(d,mp,h+1);else if(y===k$)for(const{name:m,data:S}of t(d))Wd(S,t)&&f(S,`${g}.${m}`,h+1);else{const m=d[y];Wd(m,t)&&f(m,`${g}.${y}`,h+1)}};f(e,"",0)}),s.reduce((u,c)=>(u[c]=!0,u),{...i})},E5=E.memo(e=>{const{data:t,dataIterator:r,path:n,depth:i,nodeRenderer:o}=e,[s,u]=E.useContext(w5),c=Wd(t,r),f=!!s[n],d=E.useCallback(()=>c&&u(g=>({...g,[n]:!f})),[c,u,n,f]);return oe.createElement(AJ,{expanded:f,onClick:d,shouldShowArrow:c,shouldShowPlaceholder:i>0,nodeRenderer:o,...e},f?[...r(t)].map(({name:g,data:h,...y})=>oe.createElement(E5,{name:g,data:h,depth:i+1,path:`${n}.${g}`,key:g,dataIterator:r,nodeRenderer:o,...y})):null)}),C5=E.memo(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:i,expandLevel:o})=>{const s=Qn("TreeView"),u=E.useState({}),[,c]=u;return E.useLayoutEffect(()=>c(f=>PJ(t,r,i,o,f)),[t,r,i,o]),oe.createElement(w5.Provider,{value:u},oe.createElement("ol",{role:"tree",style:s.treeViewOutline},oe.createElement(E5,{name:e,data:t,dataIterator:r,depth:0,path:mp,nodeRenderer:n})))}),rS=({name:e,dimmed:t=!1,styles:r={}})=>{const n=Qn("ObjectName"),i={...n.base,...t?n.dimmed:{},...r};return oe.createElement("span",{style:i},e)},Uu=({object:e,styles:t})=>{const r=Qn("ObjectValue"),n=i=>({...r[i],...t});switch(typeof e){case"bigint":return oe.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return oe.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return oe.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return oe.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return oe.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?oe.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?oe.createElement("span",null,e.toString()):e instanceof RegExp?oe.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?oe.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?oe.createElement("span",null,`Buffer[${e.length}]`):oe.createElement("span",null,e.constructor.name):oe.createElement("span",null,"Object");case"function":return oe.createElement("span",null,oe.createElement("span",{style:n("objectValueFunctionPrefix")},"ƒ "),oe.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return oe.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return oe.createElement("span",null)}},_5=Object.prototype.hasOwnProperty,kJ=Object.prototype.propertyIsEnumerable;function I1(e,t){const r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function M$(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var P1=({data:e})=>{const t=Qn("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return oe.createElement(Uu,{object:r});if(Array.isArray(r)){const n=t.arrayMaxProperties,i=r.slice(0,n).map((s,u)=>oe.createElement(Uu,{key:u,object:s}));r.length>n&&i.push(oe.createElement("span",{key:"ellipsis"},"…"));const o=r.length;return oe.createElement(oe.Fragment,null,oe.createElement("span",{style:t.objectDescription},o===0?"":`(${o}) `),oe.createElement("span",{style:t.preview},"[",M$(i,", "),"]"))}else{const n=t.objectMaxProperties,i=[];for(const s in r)if(_5.call(r,s)){let u;i.length===n-1&&Object.keys(r).length>n&&(u=oe.createElement("span",{key:"ellipsis"},"…"));const c=I1(r,s);if(i.push(oe.createElement("span",{key:s},oe.createElement(rS,{name:s||'""'}),": ",oe.createElement(Uu,{object:c}),u)),u)break}const o=r.constructor?r.constructor.name:"Object";return oe.createElement(oe.Fragment,null,oe.createElement("span",{style:t.objectDescription},o==="Object"?"":`${o} `),oe.createElement("span",{style:t.preview},"{",M$(i,", "),"}"))}},MJ=({name:e,data:t})=>typeof e=="string"?oe.createElement("span",null,oe.createElement(rS,{name:e}),oe.createElement("span",null,": "),oe.createElement(P1,{data:t})):oe.createElement(P1,{data:t}),DJ=({name:e,data:t,isNonenumerable:r=!1})=>{const n=t;return oe.createElement("span",null,typeof e=="string"?oe.createElement(rS,{name:e,dimmed:r}):oe.createElement(P1,{data:e}),oe.createElement("span",null,": "),oe.createElement(Uu,{object:n}))},LJ=(e,t)=>function*(n){if(!(typeof n=="object"&&n!==null||typeof n=="function"))return;const o=Array.isArray(n);if(!o&&n[Symbol.iterator]){let s=0;for(const u of n){if(Array.isArray(u)&&u.length===2){const[c,f]=u;yield{name:c,data:f}}else yield{name:s.toString(),data:u};s++}}else{const s=Object.getOwnPropertyNames(n);t===!0&&!o?s.sort():typeof t=="function"&&s.sort(t);for(const u of s)if(kJ.call(n,u)){const c=I1(n,u);yield{name:u||'""',data:c}}else if(e){let c;try{c=I1(n,u)}catch{}c!==void 0&&(yield{name:u,data:c,isNonenumerable:!0})}e&&n!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(n),isNonenumerable:!0})}},FJ=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?oe.createElement(MJ,{name:t,data:r}):oe.createElement(DJ,{name:t,data:r,isNonenumerable:n}),NJ=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{const i=LJ(e,t),o=r||FJ;return oe.createElement(C5,{nodeRenderer:o,dataIterator:i,...n})},jJ=tS(NJ);function zJ(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){const n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));const r=t.reduce((n,i)=>{const o=e[i];return typeof o=="object"&&o!==null&&Object.keys(o).reduce((u,c)=>(u.includes(c)||u.push(c),u),n),n},[]);return{rowHeaders:t,colHeaders:r}}}var BJ=({rows:e,columns:t,rowsData:r})=>{const n=Qn("TableInspectorDataContainer"),i=Qn("TableInspectorLeftBorder");return oe.createElement("div",{style:n.div},oe.createElement("table",{style:n.table},oe.createElement("colgroup",null),oe.createElement("tbody",null,e.map((o,s)=>oe.createElement("tr",{key:o,style:n.tr},oe.createElement("td",{style:{...n.td,...i.none}},o),t.map(u=>{const c=r[s];return typeof c=="object"&&c!==null&&_5.call(c,u)?oe.createElement("td",{key:u,style:{...n.td,...i.solid}},oe.createElement(Uu,{object:c[u]})):oe.createElement("td",{key:u,style:{...n.td,...i.solid}})}))))))},VJ=e=>oe.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),HJ=({sortAscending:e})=>{const t=Qn("TableInspectorSortIcon"),r=e?"▲":"▼";return oe.createElement("div",{style:t},r)},D$=({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:i,...o})=>{const s=Qn("TableInspectorTH"),[u,c]=E.useState(!1),f=E.useCallback(()=>c(!0),[]),d=E.useCallback(()=>c(!1),[]);return oe.createElement("th",{...o,style:{...s.base,...n,...u?s.base[":hover"]:{}},onMouseEnter:f,onMouseLeave:d,onClick:r},oe.createElement("div",{style:s.div},i),t&&oe.createElement(VJ,null,oe.createElement(HJ,{sortAscending:e})))},UJ=({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:i,sortAscending:o,onTHClick:s,onIndexTHClick:u})=>{const c=Qn("TableInspectorHeaderContainer"),f=Qn("TableInspectorLeftBorder");return oe.createElement("div",{style:c.base},oe.createElement("table",{style:c.table},oe.createElement("tbody",null,oe.createElement("tr",null,oe.createElement(D$,{borderStyle:f.none,sorted:r&&n,sortAscending:o,onClick:u},e),t.map(d=>oe.createElement(D$,{borderStyle:f.solid,key:d,sorted:r&&i===d,sortAscending:o,onClick:s.bind(null,d)},d))))))},WJ=({data:e,columns:t})=>{const r=Qn("TableInspector"),[{sorted:n,sortIndexColumn:i,sortColumn:o,sortAscending:s},u]=E.useState({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),c=E.useCallback(()=>{u(({sortIndexColumn:m,sortAscending:S})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:m?!S:!0}))},[]),f=E.useCallback(m=>{u(({sortColumn:S,sortAscending:b})=>({sorted:!0,sortIndexColumn:!1,sortColumn:m,sortAscending:m===S?!b:!0}))},[]);if(typeof e!="object"||e===null)return oe.createElement("div",null);let{rowHeaders:d,colHeaders:g}=zJ(e);t!==void 0&&(g=t);let h=d.map(m=>e[m]),y;if(o!==void 0?y=h.map((m,S)=>typeof m=="object"&&m!==null?[m[o],S]:[void 0,S]):i&&(y=d.map((m,S)=>[d[S],S])),y!==void 0){const m=(b,C)=>(x,$)=>{const T=b(x),_=b($),A=typeof T,O=typeof _,I=(F,W)=>F<W?-1:F>W?1:0;let L;if(A===O)L=I(T,_);else{const F={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};L=I(F[A],F[O])}return C||(L=-L),L},S=y.sort(m(b=>b[0],s)).map(b=>b[1]);d=S.map(b=>d[b]),h=S.map(b=>h[b])}return oe.createElement("div",{style:r.base},oe.createElement(UJ,{columns:g,sorted:n,sortIndexColumn:i,sortColumn:o,sortAscending:s,onTHClick:f,onIndexTHClick:c}),oe.createElement(BJ,{rows:d,columns:g,rowsData:h}))},qJ=tS(WJ),GJ=80,R5=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.length<GJ,XJ=({tagName:e,attributes:t,styles:r})=>oe.createElement("span",{style:r.base},"<",oe.createElement("span",{style:r.tagName},e),(()=>{if(t){const n=[];for(let i=0;i<t.length;i++){const o=t[i];n.push(oe.createElement("span",{key:i}," ",oe.createElement("span",{style:r.htmlAttributeName},o.name),'="',oe.createElement("span",{style:r.htmlAttributeValue},o.value),'"'))}return n}})(),">"),L$=({tagName:e,isChildNode:t=!1,styles:r})=>oe.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},"</",oe.createElement("span",{style:r.tagName},e),">"),KJ={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},YJ=({isCloseTag:e,data:t,expanded:r})=>{const n=Qn("DOMNodePreview");if(e)return oe.createElement(L$,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return oe.createElement("span",null,oe.createElement(XJ,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),R5(t)?t.textContent:!r&&"…",!r&&oe.createElement(L$,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return oe.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return oe.createElement("span",null,"<![CDATA["+t.textContent+"]]>");case Node.COMMENT_NODE:return oe.createElement("span",{style:n.htmlComment},"<!--",t.textContent,"-->");case Node.PROCESSING_INSTRUCTION_NODE:return oe.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return oe.createElement("span",{style:n.htmlDoctype},"<!DOCTYPE ",t.name,t.publicId?` PUBLIC "${t.publicId}"`:"",!t.publicId&&t.systemId?" SYSTEM":"",t.systemId?` "${t.systemId}"`:"",">");case Node.DOCUMENT_NODE:return oe.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return oe.createElement("span",null,t.nodeName);default:return oe.createElement("span",null,KJ[t.nodeType])}},QJ=function*(e){if(e&&e.childNodes){if(R5(e))return;for(let r=0;r<e.childNodes.length;r++){const n=e.childNodes[r];n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length===0||(yield{name:`${n.tagName}[${r}]`,data:n})}e.tagName&&(yield{name:"CLOSE_TAG",data:{tagName:e.tagName},isCloseTag:!0})}},JJ=e=>oe.createElement(C5,{nodeRenderer:YJ,dataIterator:QJ,...e}),ZJ=tS(JJ),eZ=EJ(RJ()),tZ=({table:e=!1,data:t,...r})=>e?oe.createElement(qJ,{data:t,...r}):(0,eZ.default)(t)?oe.createElement(ZJ,{data:t,...r}):oe.createElement(jJ,{data:t,...r});const rZ=e=>{const t={whiteSpace:"nowrap",flexShrink:0,alignSelf:"center",fontSize:12};switch(e){case"debug":return{...t,color:"grey"};case"info":return{...t,color:"black"};case"warning":return{...t,color:"darkorange"};case"error":return{...t,color:"red"};case"fatal":return{...t,color:"red"};default:return{...t,color:"grey"}}},qp=we.p(({verbosity:e})=>rZ(e)),nZ=we(qp)`
1333
+ `,mJ=({virtualizer:e,rows:t,highlightedIndices:r,currentHighlightIndex:n})=>{const i=e.getTotalSize();return H.jsxs(pJ,{totalSize:i,children:[e.getVirtualItems().map(o=>{const s=o.index,u=t[o.index];if(!u)return null;const c=r?.has(s)??!1,f=n===s;return H.jsx(hJ,{"data-index":o.index,ref:d=>e.measureElement(d),start:o.start,children:u.getVisibleCells().map(d=>{const g=d.column.columnDef.meta?.flexible??!1,h=d.column.getSize(),y=d.column.columnDef.minSize??50;return H.jsx(vJ,{size:h,minSize:y,flexible:g,isEven:s%2===0,isHighlighted:c,isCurrentMatch:f,children:y5(d.column.columnDef.cell,d.getContext())},d.id)})},u.id)}),H.jsx(gJ,{totalSize:i,children:H.jsx("td",{})})]})};var yJ=Object.create,Zb=Object.defineProperty,bJ=Object.getOwnPropertyDescriptor,S5=Object.getOwnPropertyNames,SJ=Object.getPrototypeOf,wJ=Object.prototype.hasOwnProperty,eS=(e,t)=>function(){return t||(0,e[S5(e)[0]])((t={exports:{}}).exports,t),t.exports},xJ=(e,t)=>{for(var r in t)Zb(e,r,{get:t[r],enumerable:!0})},EJ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S5(t))!wJ.call(e,i)&&i!==r&&Zb(e,i,{get:()=>t[i],enumerable:!(n=bJ(t,i))||n.enumerable});return e},CJ=(e,t,r)=>(r=e!=null?yJ(SJ(e)):{},EJ(Zb(r,"default",{value:e,enumerable:!0}),e)),_J=eS({"node_modules/is-object/index.js"(e,t){t.exports=function(n){return typeof n=="object"&&n!==null}}}),RJ=eS({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),OJ=eS({"node_modules/is-dom/index.js"(e,t){var r=_J(),n=RJ();function i(o){return!r(o)||!n(window)||typeof window.Node!="function"?!1:typeof o.nodeType=="number"&&typeof o.nodeName=="string"}t.exports=i}}),vp={};xJ(vp,{chromeDark:()=>TJ,chromeLight:()=>$J});var TJ={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},$J={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},w5=E.createContext([{},()=>{}]),B0={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Ud=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...B0},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...B0},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...B0}}),A1="chromeLight",x5=E.createContext(Ud(vp[A1])),Qn=e=>E.useContext(x5)[e],tS=e=>({theme:r=A1,...n})=>{const i=E.useMemo(()=>{switch(Object.prototype.toString.call(r)){case"[object String]":return Ud(vp[r]);case"[object Object]":return Ud(r);default:return Ud(vp[A1])}},[r]);return oe.createElement(x5.Provider,{value:i},oe.createElement(e,{...n}))},AJ=({expanded:e,styles:t})=>oe.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶"),IJ=E.memo(e=>{e={expanded:!0,nodeRenderer:({name:d})=>oe.createElement("span",null,d),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};const{expanded:t,onClick:r,children:n,nodeRenderer:i,title:o,shouldShowArrow:s,shouldShowPlaceholder:u}=e,c=Qn("TreeNode"),f=i;return oe.createElement("li",{"aria-expanded":t,role:"treeitem",style:c.treeNodeBase,title:o},oe.createElement("div",{style:c.treeNodePreviewContainer,onClick:r},s||E.Children.count(n)>0?oe.createElement(AJ,{expanded:t,styles:c.treeNodeArrow}):u&&oe.createElement("span",{style:c.treeNodePlaceholder}," "),oe.createElement(f,{...e})),oe.createElement("ol",{role:"group",style:c.treeNodeChildNodesContainer},t?n:void 0))}),mp="$",k$="*";function Wd(e,t){return!t(e).next().done}var PJ=e=>Array.from({length:e},(t,r)=>[mp].concat(Array.from({length:r},()=>"*")).join(".")),kJ=(e,t,r,n,i)=>{const o=[].concat(PJ(n)).concat(r).filter(u=>typeof u=="string"),s=[];return o.forEach(u=>{const c=u.split("."),f=(d,g,h)=>{if(h===c.length){s.push(g);return}const y=c[h];if(h===0)Wd(d,t)&&(y===mp||y===k$)&&f(d,mp,h+1);else if(y===k$)for(const{name:m,data:S}of t(d))Wd(S,t)&&f(S,`${g}.${m}`,h+1);else{const m=d[y];Wd(m,t)&&f(m,`${g}.${y}`,h+1)}};f(e,"",0)}),s.reduce((u,c)=>(u[c]=!0,u),{...i})},E5=E.memo(e=>{const{data:t,dataIterator:r,path:n,depth:i,nodeRenderer:o}=e,[s,u]=E.useContext(w5),c=Wd(t,r),f=!!s[n],d=E.useCallback(()=>c&&u(g=>({...g,[n]:!f})),[c,u,n,f]);return oe.createElement(IJ,{expanded:f,onClick:d,shouldShowArrow:c,shouldShowPlaceholder:i>0,nodeRenderer:o,...e},f?[...r(t)].map(({name:g,data:h,...y})=>oe.createElement(E5,{name:g,data:h,depth:i+1,path:`${n}.${g}`,key:g,dataIterator:r,nodeRenderer:o,...y})):null)}),C5=E.memo(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:i,expandLevel:o})=>{const s=Qn("TreeView"),u=E.useState({}),[,c]=u;return E.useLayoutEffect(()=>c(f=>kJ(t,r,i,o,f)),[t,r,i,o]),oe.createElement(w5.Provider,{value:u},oe.createElement("ol",{role:"tree",style:s.treeViewOutline},oe.createElement(E5,{name:e,data:t,dataIterator:r,depth:0,path:mp,nodeRenderer:n})))}),rS=({name:e,dimmed:t=!1,styles:r={}})=>{const n=Qn("ObjectName"),i={...n.base,...t?n.dimmed:{},...r};return oe.createElement("span",{style:i},e)},Uu=({object:e,styles:t})=>{const r=Qn("ObjectValue"),n=i=>({...r[i],...t});switch(typeof e){case"bigint":return oe.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return oe.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return oe.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return oe.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return oe.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?oe.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?oe.createElement("span",null,e.toString()):e instanceof RegExp?oe.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?oe.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?oe.createElement("span",null,`Buffer[${e.length}]`):oe.createElement("span",null,e.constructor.name):oe.createElement("span",null,"Object");case"function":return oe.createElement("span",null,oe.createElement("span",{style:n("objectValueFunctionPrefix")},"ƒ "),oe.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return oe.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return oe.createElement("span",null)}},_5=Object.prototype.hasOwnProperty,MJ=Object.prototype.propertyIsEnumerable;function I1(e,t){const r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function M$(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var P1=({data:e})=>{const t=Qn("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return oe.createElement(Uu,{object:r});if(Array.isArray(r)){const n=t.arrayMaxProperties,i=r.slice(0,n).map((s,u)=>oe.createElement(Uu,{key:u,object:s}));r.length>n&&i.push(oe.createElement("span",{key:"ellipsis"},"…"));const o=r.length;return oe.createElement(oe.Fragment,null,oe.createElement("span",{style:t.objectDescription},o===0?"":`(${o}) `),oe.createElement("span",{style:t.preview},"[",M$(i,", "),"]"))}else{const n=t.objectMaxProperties,i=[];for(const s in r)if(_5.call(r,s)){let u;i.length===n-1&&Object.keys(r).length>n&&(u=oe.createElement("span",{key:"ellipsis"},"…"));const c=I1(r,s);if(i.push(oe.createElement("span",{key:s},oe.createElement(rS,{name:s||'""'}),": ",oe.createElement(Uu,{object:c}),u)),u)break}const o=r.constructor?r.constructor.name:"Object";return oe.createElement(oe.Fragment,null,oe.createElement("span",{style:t.objectDescription},o==="Object"?"":`${o} `),oe.createElement("span",{style:t.preview},"{",M$(i,", "),"}"))}},DJ=({name:e,data:t})=>typeof e=="string"?oe.createElement("span",null,oe.createElement(rS,{name:e}),oe.createElement("span",null,": "),oe.createElement(P1,{data:t})):oe.createElement(P1,{data:t}),LJ=({name:e,data:t,isNonenumerable:r=!1})=>{const n=t;return oe.createElement("span",null,typeof e=="string"?oe.createElement(rS,{name:e,dimmed:r}):oe.createElement(P1,{data:e}),oe.createElement("span",null,": "),oe.createElement(Uu,{object:n}))},FJ=(e,t)=>function*(n){if(!(typeof n=="object"&&n!==null||typeof n=="function"))return;const o=Array.isArray(n);if(!o&&n[Symbol.iterator]){let s=0;for(const u of n){if(Array.isArray(u)&&u.length===2){const[c,f]=u;yield{name:c,data:f}}else yield{name:s.toString(),data:u};s++}}else{const s=Object.getOwnPropertyNames(n);t===!0&&!o?s.sort():typeof t=="function"&&s.sort(t);for(const u of s)if(MJ.call(n,u)){const c=I1(n,u);yield{name:u||'""',data:c}}else if(e){let c;try{c=I1(n,u)}catch{}c!==void 0&&(yield{name:u,data:c,isNonenumerable:!0})}e&&n!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(n),isNonenumerable:!0})}},NJ=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?oe.createElement(DJ,{name:t,data:r}):oe.createElement(LJ,{name:t,data:r,isNonenumerable:n}),jJ=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{const i=FJ(e,t),o=r||NJ;return oe.createElement(C5,{nodeRenderer:o,dataIterator:i,...n})},zJ=tS(jJ);function BJ(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){const n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));const r=t.reduce((n,i)=>{const o=e[i];return typeof o=="object"&&o!==null&&Object.keys(o).reduce((u,c)=>(u.includes(c)||u.push(c),u),n),n},[]);return{rowHeaders:t,colHeaders:r}}}var VJ=({rows:e,columns:t,rowsData:r})=>{const n=Qn("TableInspectorDataContainer"),i=Qn("TableInspectorLeftBorder");return oe.createElement("div",{style:n.div},oe.createElement("table",{style:n.table},oe.createElement("colgroup",null),oe.createElement("tbody",null,e.map((o,s)=>oe.createElement("tr",{key:o,style:n.tr},oe.createElement("td",{style:{...n.td,...i.none}},o),t.map(u=>{const c=r[s];return typeof c=="object"&&c!==null&&_5.call(c,u)?oe.createElement("td",{key:u,style:{...n.td,...i.solid}},oe.createElement(Uu,{object:c[u]})):oe.createElement("td",{key:u,style:{...n.td,...i.solid}})}))))))},HJ=e=>oe.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),UJ=({sortAscending:e})=>{const t=Qn("TableInspectorSortIcon"),r=e?"▲":"▼";return oe.createElement("div",{style:t},r)},D$=({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:i,...o})=>{const s=Qn("TableInspectorTH"),[u,c]=E.useState(!1),f=E.useCallback(()=>c(!0),[]),d=E.useCallback(()=>c(!1),[]);return oe.createElement("th",{...o,style:{...s.base,...n,...u?s.base[":hover"]:{}},onMouseEnter:f,onMouseLeave:d,onClick:r},oe.createElement("div",{style:s.div},i),t&&oe.createElement(HJ,null,oe.createElement(UJ,{sortAscending:e})))},WJ=({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:i,sortAscending:o,onTHClick:s,onIndexTHClick:u})=>{const c=Qn("TableInspectorHeaderContainer"),f=Qn("TableInspectorLeftBorder");return oe.createElement("div",{style:c.base},oe.createElement("table",{style:c.table},oe.createElement("tbody",null,oe.createElement("tr",null,oe.createElement(D$,{borderStyle:f.none,sorted:r&&n,sortAscending:o,onClick:u},e),t.map(d=>oe.createElement(D$,{borderStyle:f.solid,key:d,sorted:r&&i===d,sortAscending:o,onClick:s.bind(null,d)},d))))))},qJ=({data:e,columns:t})=>{const r=Qn("TableInspector"),[{sorted:n,sortIndexColumn:i,sortColumn:o,sortAscending:s},u]=E.useState({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),c=E.useCallback(()=>{u(({sortIndexColumn:m,sortAscending:S})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:m?!S:!0}))},[]),f=E.useCallback(m=>{u(({sortColumn:S,sortAscending:b})=>({sorted:!0,sortIndexColumn:!1,sortColumn:m,sortAscending:m===S?!b:!0}))},[]);if(typeof e!="object"||e===null)return oe.createElement("div",null);let{rowHeaders:d,colHeaders:g}=BJ(e);t!==void 0&&(g=t);let h=d.map(m=>e[m]),y;if(o!==void 0?y=h.map((m,S)=>typeof m=="object"&&m!==null?[m[o],S]:[void 0,S]):i&&(y=d.map((m,S)=>[d[S],S])),y!==void 0){const m=(b,C)=>(x,$)=>{const T=b(x),_=b($),A=typeof T,O=typeof _,I=(F,W)=>F<W?-1:F>W?1:0;let L;if(A===O)L=I(T,_);else{const F={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};L=I(F[A],F[O])}return C||(L=-L),L},S=y.sort(m(b=>b[0],s)).map(b=>b[1]);d=S.map(b=>d[b]),h=S.map(b=>h[b])}return oe.createElement("div",{style:r.base},oe.createElement(WJ,{columns:g,sorted:n,sortIndexColumn:i,sortColumn:o,sortAscending:s,onTHClick:f,onIndexTHClick:c}),oe.createElement(VJ,{rows:d,columns:g,rowsData:h}))},GJ=tS(qJ),XJ=80,R5=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.length<XJ,KJ=({tagName:e,attributes:t,styles:r})=>oe.createElement("span",{style:r.base},"<",oe.createElement("span",{style:r.tagName},e),(()=>{if(t){const n=[];for(let i=0;i<t.length;i++){const o=t[i];n.push(oe.createElement("span",{key:i}," ",oe.createElement("span",{style:r.htmlAttributeName},o.name),'="',oe.createElement("span",{style:r.htmlAttributeValue},o.value),'"'))}return n}})(),">"),L$=({tagName:e,isChildNode:t=!1,styles:r})=>oe.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},"</",oe.createElement("span",{style:r.tagName},e),">"),YJ={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},QJ=({isCloseTag:e,data:t,expanded:r})=>{const n=Qn("DOMNodePreview");if(e)return oe.createElement(L$,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return oe.createElement("span",null,oe.createElement(KJ,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),R5(t)?t.textContent:!r&&"…",!r&&oe.createElement(L$,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return oe.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return oe.createElement("span",null,"<![CDATA["+t.textContent+"]]>");case Node.COMMENT_NODE:return oe.createElement("span",{style:n.htmlComment},"<!--",t.textContent,"-->");case Node.PROCESSING_INSTRUCTION_NODE:return oe.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return oe.createElement("span",{style:n.htmlDoctype},"<!DOCTYPE ",t.name,t.publicId?` PUBLIC "${t.publicId}"`:"",!t.publicId&&t.systemId?" SYSTEM":"",t.systemId?` "${t.systemId}"`:"",">");case Node.DOCUMENT_NODE:return oe.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return oe.createElement("span",null,t.nodeName);default:return oe.createElement("span",null,YJ[t.nodeType])}},JJ=function*(e){if(e&&e.childNodes){if(R5(e))return;for(let r=0;r<e.childNodes.length;r++){const n=e.childNodes[r];n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length===0||(yield{name:`${n.tagName}[${r}]`,data:n})}e.tagName&&(yield{name:"CLOSE_TAG",data:{tagName:e.tagName},isCloseTag:!0})}},ZJ=e=>oe.createElement(C5,{nodeRenderer:QJ,dataIterator:JJ,...e}),eZ=tS(ZJ),tZ=CJ(OJ()),rZ=({table:e=!1,data:t,...r})=>e?oe.createElement(GJ,{data:t,...r}):(0,tZ.default)(t)?oe.createElement(eZ,{data:t,...r}):oe.createElement(zJ,{data:t,...r});const nZ=e=>{const t={whiteSpace:"nowrap",flexShrink:0,alignSelf:"center",fontSize:12};switch(e){case"debug":return{...t,color:"grey"};case"info":return{...t,color:"black"};case"warning":return{...t,color:"darkorange"};case"error":return{...t,color:"red"};case"fatal":return{...t,color:"red"};default:return{...t,color:"grey"}}},qp=we.p(({verbosity:e})=>nZ(e)),iZ=we(qp)`
1334
1334
  font-size: 10px;
1335
1335
  padding-bottom: 2px;
1336
- `,iZ=we(qp)`
1336
+ `,oZ=we(qp)`
1337
1337
  font-weight: bold;
1338
1338
  width: 190px;
1339
- `,oZ=({timestamp:e,verbosity:t})=>H.jsx("div",{children:H.jsx(nZ,{verbosity:t,children:new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:2,hour12:!1})})}),aZ=({tag:e,verbosity:t})=>H.jsx("div",{children:H.jsx(iZ,{verbosity:t,children:e})}),sZ=({verbosity:e})=>H.jsx("div",{children:H.jsx(qp,{verbosity:e,children:e})}),lZ=({message:e,verbosity:t})=>H.jsx("div",{children:H.jsx(qp,{verbosity:t,children:e})}),uZ=({payload:e})=>typeof e!="string"&&Object.entries(e).length===0?null:H.jsx("div",{children:H.jsx(tZ,{data:e,expandLevel:0,table:!1})}),Eu=nQ(),cZ=()=>[Eu.accessor("timestamp",{header:"Timestamp",cell:e=>H.jsx(oZ,{...e.row.original}),enableSorting:!0,size:85,meta:{flexible:!1}}),Eu.accessor("tag",{header:"Tag",cell:e=>H.jsx(aZ,{...e.row.original}),enableSorting:!1,size:210,meta:{flexible:!1}}),Eu.accessor("verbosity",{header:"Verbosity",cell:e=>H.jsx(sZ,{...e.row.original}),enableSorting:!1,size:65,meta:{flexible:!1}}),Eu.accessor("message",{header:"Message",cell:e=>H.jsx(lZ,{...e.row.original}),enableSorting:!1,size:300,minSize:100,meta:{flexible:!0}}),Eu.accessor("payload",{header:"Payload",cell:e=>H.jsx(uZ,{...e.row.original},e.cell.id),enableSorting:!1,size:200,minSize:100,meta:{flexible:!0}})],fZ=we.thead`
1339
+ `,aZ=({timestamp:e,verbosity:t})=>H.jsx("div",{children:H.jsx(iZ,{verbosity:t,children:new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:2,hour12:!1})})}),sZ=({tag:e,verbosity:t})=>H.jsx("div",{children:H.jsx(oZ,{verbosity:t,children:e})}),lZ=({verbosity:e})=>H.jsx("div",{children:H.jsx(qp,{verbosity:e,children:e})}),uZ=({message:e,verbosity:t})=>H.jsx("div",{children:H.jsx(qp,{verbosity:t,children:e})}),cZ=({payload:e})=>typeof e!="string"&&Object.entries(e).length===0?null:H.jsx("div",{children:H.jsx(rZ,{data:e,expandLevel:0,table:!1})}),Eu=iQ(),fZ=()=>[Eu.accessor("timestamp",{header:"Timestamp",cell:e=>H.jsx(aZ,{...e.row.original}),enableSorting:!0,size:85,meta:{flexible:!1}}),Eu.accessor("tag",{header:"Tag",cell:e=>H.jsx(sZ,{...e.row.original}),enableSorting:!1,size:210,meta:{flexible:!1}}),Eu.accessor("verbosity",{header:"Verbosity",cell:e=>H.jsx(lZ,{...e.row.original}),enableSorting:!1,size:65,meta:{flexible:!1}}),Eu.accessor("message",{header:"Message",cell:e=>H.jsx(uZ,{...e.row.original}),enableSorting:!1,size:300,minSize:100,meta:{flexible:!0}}),Eu.accessor("payload",{header:"Payload",cell:e=>H.jsx(cZ,{...e.row.original},e.cell.id),enableSorting:!1,size:200,minSize:100,meta:{flexible:!0}})],dZ=we.thead`
1340
1340
  display: grid;
1341
1341
  position: sticky;
1342
1342
  top: 0;
1343
1343
  z-index: 1;
1344
1344
  background-color: white;
1345
- `,dZ=we.tr`
1345
+ `,pZ=we.tr`
1346
1346
  display: flex;
1347
1347
  width: 100%;
1348
1348
  background-color: ghostwhite;
1349
- `,pZ=we.th`
1349
+ `,hZ=we.th`
1350
1350
  display: flex;
1351
1351
  flex: ${({flexible:e,size:t,minSize:r})=>e?`${t} 1 ${r}px`:`0 0 ${t}px`};
1352
1352
  min-width: ${({flexible:e,size:t,minSize:r})=>e?r:t}px;
1353
1353
  position: relative;
1354
1354
  overflow: hidden;
1355
- `,hZ=we.div`
1355
+ `,gZ=we.div`
1356
1356
  font-size: ${gp.HEADER_FONT_SIZE}px;
1357
1357
  cursor: ${({canSort:e})=>e?"pointer":"default"};
1358
1358
  user-select: ${({canSort:e})=>e?"none":"auto"};
1359
- `,gZ=we.div`
1359
+ `,vZ=we.div`
1360
1360
  position: absolute;
1361
1361
  right: 0;
1362
1362
  top: 0;
@@ -1367,16 +1367,16 @@ html body {
1367
1367
  background-color: lightgrey;
1368
1368
  touch-action: none;
1369
1369
  user-select: none;
1370
- `,vZ=({headerGroups:e})=>H.jsx(fZ,{children:e.map(t=>H.jsx(dZ,{children:t.headers.map(r=>{const n=r.column.columnDef.meta?.flexible??!1,i=r.getSize(),o=r.column.columnDef.minSize??50;return H.jsxs(pZ,{size:i,minSize:o,flexible:n,children:[H.jsxs(hZ,{canSort:r.column.getCanSort(),onClick:r.column.getToggleSortingHandler(),children:[y5(r.column.columnDef.header,r.getContext()),{asc:" 🔼",desc:" 🔽"}[r.column.getIsSorted()]??null]}),H.jsx(gZ,{onDoubleClick:()=>r.column.resetSize(),onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler()})]},r.id)})},t.id))});function mZ(e){const t=E.useRef(null),r=E.useRef(e);return E.useLayoutEffect(()=>{r.current=e},[e]),E.useLayoutEffect(()=>{const n=t?.current;if(!n)return;const i=new ResizeObserver(o=>{const s=o[0];s&&r.current(n,s)});return i.observe(n,{box:"border-box"}),()=>{i.disconnect()}},[]),t}const yZ=({data:e})=>{const t=oe.useRef(null),[r,n]=E.useState(!0),i=oe.useRef(!1),o=oe.useRef(e.length),s=E.useCallback(()=>{t.current&&(i.current=!0,n(!0),t.current.scrollTo({top:t.current.scrollHeight,behavior:"instant"}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.current=!1})}))},[]);E.useEffect(()=>{r&&t.current&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.current&&r&&s()})})},[e.length,r,s]),E.useEffect(()=>{const h=o.current,y=e.length;o.current=y,(y<h*.5||y<=3)&&(t.current?.scrollTo({top:0,behavior:"instant"}),n(!0))},[e.length]);const[u,c]=E.useState(0),f=E.useCallback((h,y)=>{c(y.contentRect.height)},[]),d=mZ(f);E.useLayoutEffect(()=>{if(d.current){const h=d.current.getBoundingClientRect().height;h>0&&c(h)}},[d]);const g=E.useCallback(()=>{const h=t.current;if(!h||i.current)return;const y=h.scrollTop+h.clientHeight>=h.scrollHeight-uJ;n(y)},[]);return{autoScrollEnabled:r,onScroll:g,scrollContainerRef:t,scrollZoneHeight:u,scrollToBottom:s,scrollZoneRef:d}},bZ=we.div`
1370
+ `,mZ=({headerGroups:e})=>H.jsx(dZ,{children:e.map(t=>H.jsx(pZ,{children:t.headers.map(r=>{const n=r.column.columnDef.meta?.flexible??!1,i=r.getSize(),o=r.column.columnDef.minSize??50;return H.jsxs(hZ,{size:i,minSize:o,flexible:n,children:[H.jsxs(gZ,{canSort:r.column.getCanSort(),onClick:r.column.getToggleSortingHandler(),children:[y5(r.column.columnDef.header,r.getContext()),{asc:" 🔼",desc:" 🔽"}[r.column.getIsSorted()]??null]}),H.jsx(vZ,{onDoubleClick:()=>r.column.resetSize(),onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler()})]},r.id)})},t.id))});function yZ(e){const t=E.useRef(null),r=E.useRef(e);return E.useLayoutEffect(()=>{r.current=e},[e]),E.useLayoutEffect(()=>{const n=t?.current;if(!n)return;const i=new ResizeObserver(o=>{const s=o[0];s&&r.current(n,s)});return i.observe(n,{box:"border-box"}),()=>{i.disconnect()}},[]),t}const bZ=({data:e})=>{const t=oe.useRef(null),[r,n]=E.useState(!0),i=oe.useRef(!1),o=oe.useRef(e.length),s=E.useCallback(()=>{t.current&&(i.current=!0,n(!0),t.current.scrollTo({top:t.current.scrollHeight,behavior:"instant"}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.current=!1})}))},[]);E.useEffect(()=>{r&&t.current&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.current&&r&&s()})})},[e.length,r,s]),E.useEffect(()=>{const h=o.current,y=e.length;o.current=y,(y<h*.5||y<=3)&&(t.current?.scrollTo({top:0,behavior:"instant"}),n(!0))},[e.length]);const[u,c]=E.useState(0),f=E.useCallback((h,y)=>{c(y.contentRect.height)},[]),d=yZ(f);E.useLayoutEffect(()=>{if(d.current){const h=d.current.getBoundingClientRect().height;h>0&&c(h)}},[d]);const g=E.useCallback(()=>{const h=t.current;if(!h||i.current)return;const y=h.scrollTop+h.clientHeight>=h.scrollHeight-cJ;n(y)},[]);return{autoScrollEnabled:r,onScroll:g,scrollContainerRef:t,scrollZoneHeight:u,scrollToBottom:s,scrollZoneRef:d}},SZ=we.div`
1371
1371
  height: ${({height:e})=>e}px;
1372
1372
  overflow: ${({disableScroll:e})=>e?"hidden":"auto"};
1373
1373
  overflow-anchor: auto;
1374
1374
  position: relative;
1375
1375
  width: 100%;
1376
- `,SZ=we.div`
1376
+ `,wZ=we.div`
1377
1377
  width: 100%;
1378
1378
  min-width: fit-content;
1379
- `,wZ=we.table`
1379
+ `,xZ=we.table`
1380
1380
  display: grid;
1381
1381
  `,F$=we.div`
1382
1382
  flex: 1;
@@ -1384,25 +1384,25 @@ html body {
1384
1384
  display: flex;
1385
1385
  flex-direction: column;
1386
1386
  min-height: 0;
1387
- `,xZ=we.div`
1387
+ `,EZ=we.div`
1388
1388
  display: flex;
1389
1389
  align-items: center;
1390
1390
  justify-content: center;
1391
1391
  flex: 1;
1392
1392
  color: #999;
1393
1393
  font-size: 14px;
1394
- `,EZ=({data:e,highlightedIndices:t,currentHighlightIndex:r,scrollToIndex:n})=>{const{autoScrollEnabled:i,onScroll:o,scrollContainerRef:s,scrollZoneHeight:u,scrollToBottom:c,scrollZoneRef:f}=yZ({data:e}),d=E.useMemo(()=>cZ(),[]),g=XQ({data:e,columns:d,defaultColumn:{minSize:Cd.MIN_COLUMN_SIZE,maxSize:Cd.MAX_COLUMN_SIZE},columnResizeMode:"onChange",getCoreRowModel:HQ(),getSortedRowModel:UQ(),debugTable:!0,getRowId:S=>`${S.timestamp}-${S.message}`}),{rows:h}=g.getRowModel(),y=lJ({count:h.length,estimateSize:()=>Cd.ROW_HEIGHT_ESTIMATE,getScrollElement:()=>s.current,getItemKey:S=>h[S]?.id??String(S),measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?S=>S?.getBoundingClientRect().height:void 0,overscan:Cd.OVERSCAN}),m=g.getState().columnSizingInfo.isResizingColumn;return E.useEffect(()=>{m||y.measure()},[u,y,m]),E.useEffect(()=>{const S=s.current;if(!S)return;const b=new ResizeObserver(()=>{g.getState().columnSizingInfo.isResizingColumn||requestAnimationFrame(()=>{y.measure()})});return b.observe(S),()=>{b.disconnect()}},[y,s,g]),E.useEffect(()=>{n!==void 0&&n>=0&&y.scrollToIndex(n,{align:"center"})},[n,y]),E.useLayoutEffect(()=>{h.length<100&&h.length>0&&(y.scrollToOffset(0),y.measure())},[h.length,y]),e.length===0?H.jsx(F$,{ref:f,children:H.jsx(xZ,{children:"No logs to display"})}):H.jsxs(F$,{ref:f,children:[H.jsx(bZ,{className:"container",ref:s,onScroll:o,height:u,disableScroll:!!m,children:H.jsx(SZ,{children:H.jsxs(wZ,{children:[H.jsx(vZ,{headerGroups:g.getHeaderGroups()}),H.jsx(vJ,{virtualizer:y,rows:h,highlightedIndices:t,currentHighlightIndex:r})]})})}),H.jsx(fJ,{enabled:i,onClick:c})]})};function O5(e){const t=e.trim();if(!t)return[];const r=[],n=/(-?)\/([^/]+)\/|(\S+)/g;let i;for(;(i=n.exec(t))!==null;)if(i[2]!==void 0){const o=i[1]==="-",s=i[2];try{const u=new RegExp(s,"i");r.push({type:"regex",pattern:u,exclude:o})}catch{const u=i[0],c=u.startsWith("-"),f=c?u.slice(1):u;f&&r.push({type:"keyword",value:f.toLowerCase(),exclude:c})}}else if(i[3]!==void 0){const o=i[3],s=o.startsWith("-"),u=s?o.slice(1):o;u&&r.push({type:"keyword",value:u.toLowerCase(),exclude:s})}return r}function CZ(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return""}}function _Z(e){return[e.tag,e.message,CZ(e.payload)].join(" ")}function N$(e,t){return e.type==="keyword"?t.toLowerCase().includes(e.value):e.pattern.test(t)}function T5(e,t){if(t.length===0)return!0;const r=_Z(e),n=t.filter(o=>!o.exclude),i=t.filter(o=>o.exclude);for(const o of n)if(!N$(o,r))return!1;for(const o of i)if(N$(o,r))return!1;return!0}const j$=Number.POSITIVE_INFINITY,RZ=({logs:e})=>{const[t,r]=oe.useState(QY),n=E.useMemo(()=>{const s=O5(t.filterText),u=e.filter(c=>!(!t.activeLevels[c.verbosity]||t.includeTags.size>0&&!t.includeTags.has(c.tag)||s.length>0&&!T5(c,s)));return u.length>j$?u.slice(-j$):u},[e,t]),i=oe.useRef(new Set),o=E.useMemo(()=>(e.forEach(s=>{i.current.add(s.tag)}),i.current),[e]);return{displayedLogs:n,options:t,setOptions:r,uniqueTags:o}},OZ=e=>{const[t,r]=E.useState(""),[n,i]=E.useState(0),o=E.useMemo(()=>{const d=t.trim();if(!d)return[];const g=O5(d);return g.length===0?[]:e.map((h,y)=>T5(h,g)?y:-1).filter(h=>h!==-1)},[e,t]);E.useEffect(()=>{o.length===0?i(0):n>=o.length&&i(o.length-1)},[o.length,n]);const s=E.useCallback(()=>{o.length!==0&&i(d=>d>=o.length-1?0:d+1)},[o.length]),u=E.useCallback(()=>{o.length!==0&&i(d=>d<=0?o.length-1:d-1)},[o.length]),c=E.useCallback(()=>{o.length!==0&&i(0)},[o.length]),f=E.useCallback(()=>{o.length!==0&&i(o.length-1)},[o.length]);return{searchQuery:t,setSearchQuery:r,matchIndices:o,currentMatchIndex:n,currentMatchRowIndex:o[n],goToNext:s,goToPrevious:u,goToFirst:c,goToLast:f}},TZ=`import { DevToolsLogger } from "@ledgerhq/device-management-kit-devtools-core";
1394
+ `,CZ=({data:e,highlightedIndices:t,currentHighlightIndex:r,scrollToIndex:n})=>{const{autoScrollEnabled:i,onScroll:o,scrollContainerRef:s,scrollZoneHeight:u,scrollToBottom:c,scrollZoneRef:f}=bZ({data:e}),d=E.useMemo(()=>fZ(),[]),g=KQ({data:e,columns:d,defaultColumn:{minSize:Cd.MIN_COLUMN_SIZE,maxSize:Cd.MAX_COLUMN_SIZE},columnResizeMode:"onChange",getCoreRowModel:UQ(),getSortedRowModel:WQ(),debugTable:!0,getRowId:S=>`${S.timestamp}-${S.message}`}),{rows:h}=g.getRowModel(),y=uJ({count:h.length,estimateSize:()=>Cd.ROW_HEIGHT_ESTIMATE,getScrollElement:()=>s.current,getItemKey:S=>h[S]?.id??String(S),measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?S=>S?.getBoundingClientRect().height:void 0,overscan:Cd.OVERSCAN}),m=g.getState().columnSizingInfo.isResizingColumn;return E.useEffect(()=>{m||y.measure()},[u,y,m]),E.useEffect(()=>{const S=s.current;if(!S)return;const b=new ResizeObserver(()=>{g.getState().columnSizingInfo.isResizingColumn||requestAnimationFrame(()=>{y.measure()})});return b.observe(S),()=>{b.disconnect()}},[y,s,g]),E.useEffect(()=>{n!==void 0&&n>=0&&y.scrollToIndex(n,{align:"center"})},[n,y]),E.useLayoutEffect(()=>{h.length<100&&h.length>0&&(y.scrollToOffset(0),y.measure())},[h.length,y]),e.length===0?H.jsx(F$,{ref:f,children:H.jsx(EZ,{children:"No logs to display"})}):H.jsxs(F$,{ref:f,children:[H.jsx(SZ,{className:"container",ref:s,onScroll:o,height:u,disableScroll:!!m,children:H.jsx(wZ,{children:H.jsxs(xZ,{children:[H.jsx(mZ,{headerGroups:g.getHeaderGroups()}),H.jsx(mJ,{virtualizer:y,rows:h,highlightedIndices:t,currentHighlightIndex:r})]})})}),H.jsx(dJ,{enabled:i,onClick:c})]})};function O5(e){const t=e.trim();if(!t)return[];const r=[],n=/(-?)\/([^/]+)\/|(\S+)/g;let i;for(;(i=n.exec(t))!==null;)if(i[2]!==void 0){const o=i[1]==="-",s=i[2];try{const u=new RegExp(s,"i");r.push({type:"regex",pattern:u,exclude:o})}catch{const u=i[0],c=u.startsWith("-"),f=c?u.slice(1):u;f&&r.push({type:"keyword",value:f.toLowerCase(),exclude:c})}}else if(i[3]!==void 0){const o=i[3],s=o.startsWith("-"),u=s?o.slice(1):o;u&&r.push({type:"keyword",value:u.toLowerCase(),exclude:s})}return r}function _Z(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return""}}function RZ(e){return[e.tag,e.message,_Z(e.payload)].join(" ")}function N$(e,t){return e.type==="keyword"?t.toLowerCase().includes(e.value):e.pattern.test(t)}function T5(e,t){if(t.length===0)return!0;const r=RZ(e),n=t.filter(o=>!o.exclude),i=t.filter(o=>o.exclude);for(const o of n)if(!N$(o,r))return!1;for(const o of i)if(N$(o,r))return!1;return!0}const j$=Number.POSITIVE_INFINITY,OZ=({logs:e})=>{const[t,r]=oe.useState(JY),n=E.useMemo(()=>{const s=O5(t.filterText),u=e.filter(c=>!(!t.activeLevels[c.verbosity]||t.includeTags.size>0&&!t.includeTags.has(c.tag)||s.length>0&&!T5(c,s)));return u.length>j$?u.slice(-j$):u},[e,t]),i=oe.useRef(new Set),o=E.useMemo(()=>(e.forEach(s=>{i.current.add(s.tag)}),i.current),[e]);return{displayedLogs:n,options:t,setOptions:r,uniqueTags:o}},TZ=e=>{const[t,r]=E.useState(""),[n,i]=E.useState(0),o=E.useMemo(()=>{const d=t.trim();if(!d)return[];const g=O5(d);return g.length===0?[]:e.map((h,y)=>T5(h,g)?y:-1).filter(h=>h!==-1)},[e,t]);E.useEffect(()=>{o.length===0?i(0):n>=o.length&&i(o.length-1)},[o.length,n]);const s=E.useCallback(()=>{o.length!==0&&i(d=>d>=o.length-1?0:d+1)},[o.length]),u=E.useCallback(()=>{o.length!==0&&i(d=>d<=0?o.length-1:d-1)},[o.length]),c=E.useCallback(()=>{o.length!==0&&i(0)},[o.length]),f=E.useCallback(()=>{o.length!==0&&i(o.length-1)},[o.length]);return{searchQuery:t,setSearchQuery:r,matchIndices:o,currentMatchIndex:n,currentMatchRowIndex:o[n],goToNext:s,goToPrevious:u,goToFirst:c,goToLast:f}},$Z=`import { DevToolsLogger } from "@ledgerhq/device-management-kit-devtools-core";
1395
1395
 
1396
1396
  const dmk = new DeviceManagementKitBuilder()
1397
1397
  .addLogger(new DevToolsLogger(connector))
1398
- .build();`,$Z=({logs:e,clearLogs:t,isConnected:r=!0})=>{const[n,i]=oe.useState(0),{options:o,setOptions:s,displayedLogs:u,uniqueTags:c}=RZ({logs:e}),f=u,d=E.useRef(u.length);E.useEffect(()=>{const L=d.current,F=u.length;d.current=F,(F<L*.5||F<100&&F<L)&&i(W=>W+1)},[u.length]);const{searchQuery:g,setSearchQuery:h,matchIndices:y,currentMatchIndex:m,currentMatchRowIndex:S,goToNext:b,goToPrevious:C,goToFirst:x,goToLast:$}=OZ(u),T=E.useRef(null);E.useEffect(()=>{const L=F=>{(F.metaKey||F.ctrlKey)&&F.key.toLowerCase()==="f"&&(F.preventDefault(),T.current?.focus(),T.current?.select()),(F.metaKey||F.ctrlKey)&&F.key.toLowerCase()==="g"&&(F.preventDefault(),F.shiftKey?C():b())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[b,C]);const _=n,A=E.useMemo(()=>new Set(y),[y]),O=E.useCallback(()=>{t(),i(L=>L+1)},[t]),I=E.useCallback(()=>{const L=e.map(B=>{const{payload:j,...N}=B;return N}),F=new Blob([JSON.stringify(L,null,2)],{type:"application/json"}),W=URL.createObjectURL(F),z=document.createElement("a");z.href=W,z.download=`logs-sdk-${new Date().toISOString()}.json`,z.click(),URL.revokeObjectURL(W)},[e]);return r?H.jsxs(Yo,{flex:1,flexDirection:"column",minHeight:0,overflow:"hidden",children:[H.jsx(Yo,{flexDirection:"column",px:6,py:2,flexShrink:0,children:H.jsx(rQ,{clearLogs:O,downloadLogs:I,options:o,setOptions:s,uniqueTags:c,searchQuery:g,onSearchChange:h,matchCount:y.length,currentMatchIndex:m,onSearchNext:b,onSearchPrevious:C,onSearchFirst:x,onSearchLast:$,searchInputRef:T})}),H.jsx(KV,{mb:3,flexShrink:0}),H.jsx(EZ,{data:f,highlightedIndices:A,currentHighlightIndex:S,scrollToIndex:S},_)]}):H.jsx(WI,{title:"Logger not connected",description:H.jsxs(H.Fragment,{children:["To enable logging, add ",H.jsx("code",{children:"DevToolsLogger"})," to your DMK builder:"]}),codeExample:TZ})};let AZ=class extends oe.Component{constructor(t){super(t),this.state={hasError:!1}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}reset(){this.setState({hasError:!1})}render(){return this.state.hasError?(console.log("rendering error boundary",this.state.error),H.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100vh"},children:[H.jsx("button",{onClick:()=>this.reset(),children:"Retry"}),H.jsx("pre",{children:this.state.error.message}),H.jsx("pre",{children:this.state.error.stack})]})):this.props.children}};const IZ=we.div`
1398
+ .build();`,AZ=({logs:e,clearLogs:t,isConnected:r=!0})=>{const[n,i]=oe.useState(0),{options:o,setOptions:s,displayedLogs:u,uniqueTags:c}=OZ({logs:e}),f=u,d=E.useRef(u.length);E.useEffect(()=>{const L=d.current,F=u.length;d.current=F,(F<L*.5||F<100&&F<L)&&i(W=>W+1)},[u.length]);const{searchQuery:g,setSearchQuery:h,matchIndices:y,currentMatchIndex:m,currentMatchRowIndex:S,goToNext:b,goToPrevious:C,goToFirst:x,goToLast:$}=TZ(u),T=E.useRef(null);E.useEffect(()=>{const L=F=>{(F.metaKey||F.ctrlKey)&&F.key.toLowerCase()==="f"&&(F.preventDefault(),T.current?.focus(),T.current?.select()),(F.metaKey||F.ctrlKey)&&F.key.toLowerCase()==="g"&&(F.preventDefault(),F.shiftKey?C():b())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[b,C]);const _=n,A=E.useMemo(()=>new Set(y),[y]),O=E.useCallback(()=>{t(),i(L=>L+1)},[t]),I=E.useCallback(()=>{const L=e.map(B=>{const{payload:j,...N}=B;return N}),F=new Blob([JSON.stringify(L,null,2)],{type:"application/json"}),W=URL.createObjectURL(F),z=document.createElement("a");z.href=W,z.download=`logs-sdk-${new Date().toISOString()}.json`,z.click(),URL.revokeObjectURL(W)},[e]);return r?H.jsxs(Yo,{flex:1,flexDirection:"column",minHeight:0,overflow:"hidden",children:[H.jsx(Yo,{flexDirection:"column",px:6,py:2,flexShrink:0,children:H.jsx(nQ,{clearLogs:O,downloadLogs:I,options:o,setOptions:s,uniqueTags:c,searchQuery:g,onSearchChange:h,matchCount:y.length,currentMatchIndex:m,onSearchNext:b,onSearchPrevious:C,onSearchFirst:x,onSearchLast:$,searchInputRef:T})}),H.jsx(YV,{mb:3,flexShrink:0}),H.jsx(CZ,{data:f,highlightedIndices:A,currentHighlightIndex:S,scrollToIndex:S},_)]}):H.jsx(WI,{title:"Logger not connected",description:H.jsxs(H.Fragment,{children:["To enable logging, add ",H.jsx("code",{children:"DevToolsLogger"})," to your DMK builder:"]}),codeExample:$Z})};let IZ=class extends oe.Component{constructor(t){super(t),this.state={hasError:!1}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}reset(){this.setState({hasError:!1})}render(){return this.state.hasError?(console.log("rendering error boundary",this.state.error),H.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100vh"},children:[H.jsx("button",{onClick:()=>this.reset(),children:"Retry"}),H.jsx("pre",{children:this.state.error.message}),H.jsx("pre",{children:this.state.error.stack})]})):this.props.children}};const PZ=we.div`
1399
1399
  display: flex;
1400
1400
  flex-direction: column;
1401
1401
  height: 100vh;
1402
1402
  overflow: hidden;
1403
- `,PZ=we.div`
1403
+ `,kZ=we.div`
1404
1404
  display: flex;
1405
1405
  flex-direction: column;
1406
1406
  flex: 1;
1407
1407
  overflow: hidden;
1408
- `,kZ=({connector:e})=>{const{receivedMessages:t,sentMessages:r,logs:n,connectedDevices:i,sessionStates:o,discoveredDevices:s,isListening:u,isActivelyDiscovering:c,isLoggerConnected:f,isInspectorConnected:d,providerValue:g,apduResponses:h,sendMessage:y,clearLogs:m,startListening:S,stopListening:b,startDiscovering:C,stopDiscovering:x,connectDevice:$,getProvider:T,setProvider:_,sendApdu:A}=hB(e),[O,I]=E.useState(rl.logs),[L,F]=E.useState(!1),W=H.jsx($Z,{logs:n,clearLogs:m,isConnected:f}),z=H.jsx(pV,{devices:i,sessionStates:o,discoveredDevices:s,isListening:u,isActivelyDiscovering:c,sendMessage:y,isConnected:d,startListening:S,stopListening:b,startDiscovering:C,stopDiscovering:x,connectDevice:$,providerValue:g,getProvider:T,setProvider:_,sendApdu:A,apduResponses:h}),B=(()=>{switch(O){case rl.logs:return W;case rl.inspector:return z;case rl.splitHorizontal:return H.jsx(oC,{direction:"horizontal",first:W,second:z});case rl.splitVertical:return H.jsx(oC,{direction:"vertical",first:W,second:z});default:return W}})();return H.jsxs(IZ,{children:[H.jsx(VN,{currentScreen:O,onScreenChange:I,isLoggerConnected:f,isInspectorConnected:d}),H.jsx(PZ,{children:B}),H.jsx(LN,{isDebugOpen:L,onToggleDebug:()=>F(!L)}),H.jsx(QN,{isOpen:L,onClose:()=>F(!1),sentMessages:r,receivedMessages:t,sendMessage:y})]})};function MZ({connector:e}){return H.jsx(AZ,{children:H.jsx(kN,{selectedPalette:"light",children:H.jsx(kZ,{connector:e})})})}const DZ=()=>typeof window<"u"&&typeof window.document<"u";class $5 extends Error{constructor(t){super(`Unsupported platform: ${t}`),this.name="UnsupportedPlatformError"}}const nS="rozenite",LZ=()=>{const e=self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__,t=e.BINDING_NAME;return self[t]!=null?e.initializeDomain(nS):null},FZ=()=>new Promise(e=>{const t=r=>{r.name===nS&&(self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(t),setTimeout(()=>e(r)))};self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(t)}),NZ=async()=>{const e=new Set;let t=LZ();t||(t=await FZ());const r=()=>{if(!t)throw new Error("Domain not initialized");return t},n=i=>{i.name===nS&&(t&&e.forEach(o=>{t.onMessage.removeEventListener(o)}),t=i,e.forEach(o=>{i.onMessage.addEventListener(o)}))};return self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(n),{send:i=>{r().sendMessage(i)},onMessage(i){const o=s=>{setTimeout(()=>{i(s)})};return e.add(o),r().onMessage.addEventListener(o),{remove:()=>{e.delete(o),r().onMessage.removeEventListener(o)}}},close:()=>{self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(n)}}},jZ=async()=>{if(DZ())throw new $5("web");return NZ()},zZ=async()=>{const e=new Set,t=r=>{e.forEach(n=>{n(r.data)})};return window.addEventListener("message",t),{send:r=>{window.parent.postMessage({type:"rozenite-message",payload:r},"*")},onMessage:r=>(e.add(r),{remove:()=>{e.delete(r)}}),close:()=>{e.clear(),window.removeEventListener("message",t)}}};let Cu=null;const BZ=async()=>{if(Cu)return Cu;const e="__ROZENITE_PANEL__"in window?zZ():jZ();Cu=e;try{const t=await e;return Cu=t,t}catch(t){throw Cu=null,t}},VZ=e=>typeof e!="object"||e===null||!("type"in e)||!("payload"in e)||!("pluginId"in e)?null:e,HZ=async e=>{const t=await BZ(),r=new Map,n=async s=>{const u=VZ(s);if(!u||u.pluginId!==e)return;const c=r.get(u.type);c?.forEach(f=>{f(u.payload)})},i=(s,u)=>{t.send({pluginId:e,type:s,payload:u})},o=t.onMessage(n);return{send:i,onMessage:(s,u)=>{const c=r.get(s)??new Set;return c.add(u),r.set(s,c),{remove:()=>{c.delete(u)}}},close:()=>{r.clear(),o.remove(),t.close()}}},UZ=async e=>HZ(e),WZ=({pluginId:e})=>{const[t,r]=E.useState(null),[n,i]=E.useState(null);if(E.useEffect(()=>{let o=!0,s=null;const u=async()=>{try{s=await UZ(e),o&&r(s)}catch(f){if(f instanceof $5){console.warn(`[Rozenite, ${e}] Unsupported platform, skipping setup.`);return}console.error("Error setting up client",f),o&&i(f)}},c=async()=>{try{s?.close()}catch{}};return u(),()=>{o=!1,c()}},[e]),n!=null)throw n;return t},lo=class lo{constructor(){this.rozeniteClient=null,this.messagesToSend=new dI,this.messagesFromDashboard=new Dl,this.messagesToSendSubscription=null,this.verbose=!1}static getInstance(){return lo.instance||(lo.instance=new lo),lo.instance}static destroyInstance(){lo.instance&&(lo.instance.destroy(),lo.instance=null)}setVerbose(t){this.verbose=t}error(...t){this.verbose&&console.error(...t)}setClient(t){this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null),this.rozeniteClient&&this.rozeniteClient.close(),this.rozeniteClient=t,this.initialize().catch(r=>{this.error("[RozeniteConnector] Error initializing",r)})}destroy(){this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null),this.rozeniteClient?.close(),this.messagesToSend.complete(),this.messagesFromDashboard.complete()}async initialize(){const t=this.rozeniteClient;if(!t)throw new Error("[RozeniteConnector] Client not set");this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null);const r=()=>{this.messagesToSendSubscription&&this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=this.messagesToSend.subscribe({next:n=>{t.send("message",n)}})};t.onMessage("init",()=>{const n=!!this.messagesToSendSubscription;r(),n||t.send("init","init response")}),t.onMessage("message",({type:n,payload:i})=>{this.messagesFromDashboard.next({type:n,payload:i})}),t.send("init","init message from client")}sendMessage(t,r){this.messagesToSend.next({type:t,payload:r})}listenToMessages(t){return this.messagesFromDashboard.subscribe({next:r=>t(r.type,r.payload)})}};lo.instance=null;let k1=lo;const qZ="@ledgerhq/device-management-kit-devtools-rozenite",GZ=qZ;function XZ(){const e=WZ({pluginId:GZ}),[t,r]=E.useState(null);return E.useEffect(()=>{if(e){const n=k1.getInstance();n.setClient(e),r(n)}},[e]),t}function KZ(){const e=XZ();return e?H.jsx(MZ,{connector:e}):H.jsx("h3",{children:"Connector loading..."})}const A5="index";Xu.registerComponent(A5,()=>KZ);Xu.runApplication(A5,{initialProps:{},rootTag:document.getElementById("root")});
1408
+ `,MZ=({connector:e})=>{const{receivedMessages:t,sentMessages:r,logs:n,connectedDevices:i,sessionStates:o,discoveredDevices:s,isListening:u,isActivelyDiscovering:c,isLoggerConnected:f,isInspectorConnected:d,providerValue:g,apduResponses:h,sendMessage:y,clearLogs:m,startListening:S,stopListening:b,startDiscovering:C,stopDiscovering:x,connectDevice:$,getProvider:T,setProvider:_,sendApdu:A}=gB(e),[O,I]=E.useState(rl.logs),[L,F]=E.useState(!1),W=H.jsx(AZ,{logs:n,clearLogs:m,isConnected:f}),z=H.jsx(hV,{devices:i,sessionStates:o,discoveredDevices:s,isListening:u,isActivelyDiscovering:c,sendMessage:y,isConnected:d,startListening:S,stopListening:b,startDiscovering:C,stopDiscovering:x,connectDevice:$,providerValue:g,getProvider:T,setProvider:_,sendApdu:A,apduResponses:h}),B=(()=>{switch(O){case rl.logs:return W;case rl.inspector:return z;case rl.splitHorizontal:return H.jsx(oC,{direction:"horizontal",first:W,second:z});case rl.splitVertical:return H.jsx(oC,{direction:"vertical",first:W,second:z});default:return W}})();return H.jsxs(PZ,{children:[H.jsx(VN,{currentScreen:O,onScreenChange:I,isLoggerConnected:f,isInspectorConnected:d}),H.jsx(kZ,{children:B}),H.jsx(LN,{isDebugOpen:L,onToggleDebug:()=>F(!L)}),H.jsx(QN,{isOpen:L,onClose:()=>F(!1),sentMessages:r,receivedMessages:t,sendMessage:y})]})};function DZ({connector:e}){return H.jsx(IZ,{children:H.jsx(kN,{selectedPalette:"light",children:H.jsx(MZ,{connector:e})})})}const LZ=()=>typeof window<"u"&&typeof window.document<"u";class $5 extends Error{constructor(t){super(`Unsupported platform: ${t}`),this.name="UnsupportedPlatformError"}}const nS="rozenite",FZ=()=>{const e=self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__,t=e.BINDING_NAME;return self[t]!=null?e.initializeDomain(nS):null},NZ=()=>new Promise(e=>{const t=r=>{r.name===nS&&(self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(t),setTimeout(()=>e(r)))};self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(t)}),jZ=async()=>{const e=new Set;let t=FZ();t||(t=await NZ());const r=()=>{if(!t)throw new Error("Domain not initialized");return t},n=i=>{i.name===nS&&(t&&e.forEach(o=>{t.onMessage.removeEventListener(o)}),t=i,e.forEach(o=>{i.onMessage.addEventListener(o)}))};return self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(n),{send:i=>{r().sendMessage(i)},onMessage(i){const o=s=>{setTimeout(()=>{i(s)})};return e.add(o),r().onMessage.addEventListener(o),{remove:()=>{e.delete(o),r().onMessage.removeEventListener(o)}}},close:()=>{self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(n)}}},zZ=async()=>{if(LZ())throw new $5("web");return jZ()},BZ=async()=>{const e=new Set,t=r=>{e.forEach(n=>{n(r.data)})};return window.addEventListener("message",t),{send:r=>{window.parent.postMessage({type:"rozenite-message",payload:r},"*")},onMessage:r=>(e.add(r),{remove:()=>{e.delete(r)}}),close:()=>{e.clear(),window.removeEventListener("message",t)}}};let Cu=null;const VZ=async()=>{if(Cu)return Cu;const e="__ROZENITE_PANEL__"in window?BZ():zZ();Cu=e;try{const t=await e;return Cu=t,t}catch(t){throw Cu=null,t}},HZ=e=>typeof e!="object"||e===null||!("type"in e)||!("payload"in e)||!("pluginId"in e)?null:e,UZ=async e=>{const t=await VZ(),r=new Map,n=async s=>{const u=HZ(s);if(!u||u.pluginId!==e)return;const c=r.get(u.type);c?.forEach(f=>{f(u.payload)})},i=(s,u)=>{t.send({pluginId:e,type:s,payload:u})},o=t.onMessage(n);return{send:i,onMessage:(s,u)=>{const c=r.get(s)??new Set;return c.add(u),r.set(s,c),{remove:()=>{c.delete(u)}}},close:()=>{r.clear(),o.remove(),t.close()}}},WZ=async e=>UZ(e),qZ=({pluginId:e})=>{const[t,r]=E.useState(null),[n,i]=E.useState(null);if(E.useEffect(()=>{let o=!0,s=null;const u=async()=>{try{s=await WZ(e),o&&r(s)}catch(f){if(f instanceof $5){console.warn(`[Rozenite, ${e}] Unsupported platform, skipping setup.`);return}console.error("Error setting up client",f),o&&i(f)}},c=async()=>{try{s?.close()}catch{}};return u(),()=>{o=!1,c()}},[e]),n!=null)throw n;return t},lo=class lo{constructor(){this.rozeniteClient=null,this.messagesToSend=new dI,this.messagesFromDashboard=new Dl,this.messagesToSendSubscription=null,this.verbose=!1}static getInstance(){return lo.instance||(lo.instance=new lo),lo.instance}static destroyInstance(){lo.instance&&(lo.instance.destroy(),lo.instance=null)}setVerbose(t){this.verbose=t}error(...t){this.verbose&&console.error(...t)}setClient(t){this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null),this.rozeniteClient&&this.rozeniteClient.close(),this.rozeniteClient=t,this.initialize().catch(r=>{this.error("[RozeniteConnector] Error initializing",r)})}destroy(){this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null),this.rozeniteClient?.close(),this.messagesToSend.complete(),this.messagesFromDashboard.complete()}async initialize(){const t=this.rozeniteClient;if(!t)throw new Error("[RozeniteConnector] Client not set");this.messagesToSendSubscription&&(this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=null);const r=()=>{this.messagesToSendSubscription&&this.messagesToSendSubscription.unsubscribe(),this.messagesToSendSubscription=this.messagesToSend.subscribe({next:n=>{t.send("message",n)}})};t.onMessage("init",()=>{const n=!!this.messagesToSendSubscription;r(),n||t.send("init","init response")}),t.onMessage("message",({type:n,payload:i})=>{this.messagesFromDashboard.next({type:n,payload:i})}),t.send("init","init message from client")}sendMessage(t,r){this.messagesToSend.next({type:t,payload:r})}listenToMessages(t){return this.messagesFromDashboard.subscribe({next:r=>t(r.type,r.payload)})}};lo.instance=null;let k1=lo;const GZ="@ledgerhq/device-management-kit-devtools-rozenite",XZ=GZ;function KZ(){const e=qZ({pluginId:XZ}),[t,r]=E.useState(null);return E.useEffect(()=>{if(e){const n=k1.getInstance();n.setClient(e),r(n)}},[e]),t}function YZ(){const e=KZ();return e?H.jsx(DZ,{connector:e}):H.jsx("h3",{children:"Connector loading..."})}const A5="index";Xu.registerComponent(A5,()=>YZ);Xu.runApplication(A5,{initialProps:{},rootTag:document.getElementById("root")});