diff --git a/deepdataspace/server/static/index.html b/deepdataspace/server/static/index.html index f8f6551..f2490a7 100644 --- a/deepdataspace/server/static/index.html +++ b/deepdataspace/server/static/index.html @@ -9,6 +9,6 @@
- + \ No newline at end of file diff --git a/deepdataspace/server/static/p__Annotator__index.1fc40bde.async.js b/deepdataspace/server/static/p__Annotator__index.1fc40bde.async.js deleted file mode 100644 index e8473fd..0000000 --- a/deepdataspace/server/static/p__Annotator__index.1fc40bde.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[734],{25970:function(l,e,_){_.r(e);var s=_(63900),a=_.n(s),E=_(58757),d=_(28638),n=_(97375),t=_(35667),o=function(){var u=(0,n.useModel)("Annotator.model");return(0,t.jsx)(d.Z,a()({},u))};e.default=o}}]); diff --git a/deepdataspace/server/static/p__Annotator__index.8750e2fd.async.js b/deepdataspace/server/static/p__Annotator__index.8750e2fd.async.js new file mode 100644 index 0000000..a8f203d --- /dev/null +++ b/deepdataspace/server/static/p__Annotator__index.8750e2fd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[734],{25970:function(l,e,_){_.r(e);var a=_(63900),n=_.n(a),m=_(58757),s=_(28638),u=_(97375),o=_(35667),d=function(){var t=(0,u.useModel)("Annotator.model");return(0,o.jsx)(s.Z,n()({},t))};e.default=d}}]); diff --git a/deepdataspace/server/static/umi.67c220bb.js b/deepdataspace/server/static/umi.c30875f2.js similarity index 97% rename from deepdataspace/server/static/umi.67c220bb.js rename to deepdataspace/server/static/umi.c30875f2.js index 18b7ad9..b1db452 100644 --- a/deepdataspace/server/static/umi.67c220bb.js +++ b/deepdataspace/server/static/umi.c30875f2.js @@ -125,7 +125,7 @@ Url: ${an(Y)}`),!0)}function pn(Y,z){return Y.type||!z||!z.length?!1:br(Y).some( `);for(let Mt=Ce;Mt1024)continue;const Vt=Ma.test(Dt)?Dt.replace(Ma,"$1"):Dt;if(!Vt.match(/\S*Error: /)){for(const nn of z){const fn=nn(Vt);if(fn){Re.push(fn);break}}if(Re.length>=Ur)break}}return Sr(Re)}}function Zn(Y){return Array.isArray(Y)?Yn(...Y):Y}function Sr(Y){if(!Y.length)return[];const z=Array.from(Y);return/sentryWrapped/.test(z[z.length-1].function||"")&&z.pop(),z.reverse(),ma.test(z[z.length-1].function||"")&&(z.pop(),ma.test(z[z.length-1].function||"")&&z.pop()),z.slice(0,Ur).map(ue=>Vs(Wa({},ue),{filename:ue.filename||z[z.length-1].filename,function:ue.function||"?"}))}const Xr="";function wr(Y){try{return!Y||typeof Y!="function"?Xr:Y.name||Xr}catch(z){return Xr}}function Pt(Y){return[90,node(Y)]}const on=(0,$.Rf)();function Mn(){try{return new ErrorEvent(""),!0}catch(Y){return!1}}function Ja(){try{return new DOMError(""),!0}catch(Y){return!1}}function mo(){try{return new DOMException(""),!0}catch(Y){return!1}}function Ua(){if(!("fetch"in on))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(Y){return!1}}function ka(Y){return Y&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(Y.toString())}function Qa(){if(!Ua())return!1;if(ka(on.fetch))return!0;let Y=!1;const z=on.document;if(z&&typeof z.createElement=="function")try{const ue=z.createElement("iframe");ue.hidden=!0,z.head.appendChild(ue),ue.contentWindow&&ue.contentWindow.fetch&&(Y=ka(ue.contentWindow.fetch)),z.head.removeChild(ue)}catch(ue){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",ue)}return Y}function wo(){return"ReportingObserver"in on}function No(){if(!Ua())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(Y){return!1}}const ho=(0,$.Rf)();function dt(){const Y=ho.chrome,z=Y&&Y.app&&Y.app.runtime,ue="history"in ho&&!!ho.history.pushState&&!!ho.history.replaceState;return!z&&ue}const Rt=(0,$.Rf)(),Ae="__sentry_xhr_v2__",dn={},Pn={};function Sn(Y){if(!Pn[Y])switch(Pn[Y]=!0,Y){case"console":Hr();break;case"dom":tr();break;case"xhr":Lr();break;case"fetch":Oa();break;case"history":ca();break;case"error":Wr();break;case"unhandledrejection":dr();break;default:(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn("unknown instrumentation type:",Y);return}}function er(Y,z){dn[Y]=dn[Y]||[],dn[Y].push(z),Sn(Y)}function ir(Y,z){if(!(!Y||!dn[Y]))for(const ue of dn[Y]||[])try{ue(z)}catch(Ce){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.error(`Error while triggering instrumentation handler. Type: ${Y} Name: ${wr(ue)} -Error:`,Ce)}}function Hr(){"console"in Rt&&O.forEach(function(Y){Y in Rt.console&&J(Rt.console,Y,function(z){return function(...ue){ir("console",{args:ue,level:Y}),z&&z.apply(Rt.console,ue)}})})}function Oa(){Qa()&&J(Rt,"fetch",function(Y){return function(...z){const{method:ue,url:Ce}=na(z),Re={args:z,fetchData:{method:ue,url:Ce},startTimestamp:Date.now()};return ir("fetch",Wa({},Re)),Y.apply(Rt,z).then(rt=>(ir("fetch",Vs(Wa({},Re),{endTimestamp:Date.now(),response:rt})),rt),rt=>{throw ir("fetch",Vs(Wa({},Re),{endTimestamp:Date.now(),error:rt})),rt})}})}function oa(Y,z){return!!Y&&typeof Y=="object"&&!!Y[z]}function Jr(Y){return typeof Y=="string"?Y:Y?oa(Y,"url")?Y.url:Y.toString?Y.toString():"":""}function na(Y){if(Y.length===0)return{method:"GET",url:""};if(Y.length===2){const[ue,Ce]=Y;return{url:Jr(ue),method:oa(Ce,"method")?String(Ce.method).toUpperCase():"GET"}}const z=Y[0];return{url:Jr(z),method:oa(z,"method")?String(z.method).toUpperCase():"GET"}}function Lr(){if(!("XMLHttpRequest"in Rt))return;const Y=XMLHttpRequest.prototype;J(Y,"open",function(z){return function(...ue){const Ce=ue[1],Re=this[Ae]={method:Je(ue[0])?ue[0].toUpperCase():ue[0],url:ue[1],request_headers:{}};Je(Ce)&&Re.method==="POST"&&Ce.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const rt=()=>{const Mt=this[Ae];if(Mt&&this.readyState===4){try{Mt.status_code=this.status}catch(Dt){}ir("xhr",{args:ue,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?J(this,"onreadystatechange",function(Mt){return function(...Dt){return rt(),Mt.apply(this,Dt)}}):this.addEventListener("readystatechange",rt),J(this,"setRequestHeader",function(Mt){return function(...Dt){const[Vt,nn]=Dt,fn=this[Ae];return fn&&(fn.request_headers[Vt.toLowerCase()]=nn),Mt.apply(this,Dt)}}),z.apply(this,ue)}}),J(Y,"send",function(z){return function(...ue){const Ce=this[Ae];return Ce&&ue[0]!==void 0&&(Ce.body=ue[0]),ir("xhr",{args:ue,startTimestamp:Date.now(),xhr:this}),z.apply(this,ue)}})}let Zr;function ca(){if(!dt())return;const Y=Rt.onpopstate;Rt.onpopstate=function(...ue){const Ce=Rt.location.href,Re=Zr;if(Zr=Ce,ir("history",{from:Re,to:Ce}),Y)try{return Y.apply(this,ue)}catch(rt){}};function z(ue){return function(...Ce){const Re=Ce.length>2?Ce[2]:void 0;if(Re){const rt=Zr,Mt=String(Re);Zr=Mt,ir("history",{from:rt,to:Mt})}return ue.apply(this,Ce)}}J(Rt.history,"pushState",z),J(Rt.history,"replaceState",z)}const Ta=1e3;let eo,Va;function Xt(Y,z){if(!Y||Y.type!==z.type)return!0;try{if(Y.target!==z.target)return!0}catch(ue){}return!1}function In(Y){if(Y.type!=="keypress")return!1;try{const z=Y.target;if(!z||!z.tagName)return!0;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return!1}catch(z){}return!0}function Tn(Y,z=!1){return ue=>{if(!ue||Va===ue||In(ue))return;const Ce=ue.type==="keypress"?"input":ue.type;eo===void 0?(Y({event:ue,name:Ce,global:z}),Va=ue):Xt(Va,ue)&&(Y({event:ue,name:Ce,global:z}),Va=ue),clearTimeout(eo),eo=Rt.setTimeout(()=>{eo=void 0},Ta)}}function tr(){if(!("document"in Rt))return;const Y=ir.bind(null,"dom"),z=Tn(Y,!0);Rt.document.addEventListener("click",z,!1),Rt.document.addEventListener("keypress",z,!1),["EventTarget","Node"].forEach(ue=>{const Ce=Rt[ue]&&Rt[ue].prototype;!Ce||!Ce.hasOwnProperty||!Ce.hasOwnProperty("addEventListener")||(J(Ce,"addEventListener",function(Re){return function(rt,Mt,Dt){if(rt==="click"||rt=="keypress")try{const Vt=this,nn=Vt.__sentry_instrumentation_handlers__=Vt.__sentry_instrumentation_handlers__||{},fn=nn[rt]=nn[rt]||{refCount:0};if(!fn.handler){const hn=Tn(Y);fn.handler=hn,Re.call(this,rt,hn,Dt)}fn.refCount++}catch(Vt){}return Re.call(this,rt,Mt,Dt)}}),J(Ce,"removeEventListener",function(Re){return function(rt,Mt,Dt){if(rt==="click"||rt=="keypress")try{const Vt=this,nn=Vt.__sentry_instrumentation_handlers__||{},fn=nn[rt];fn&&(fn.refCount--,fn.refCount<=0&&(Re.call(this,rt,fn.handler,Dt),fn.handler=void 0,delete nn[rt]),Object.keys(nn).length===0&&delete Vt.__sentry_instrumentation_handlers__)}catch(Vt){}return Re.call(this,rt,Mt,Dt)}}))})}let yr=null;function Wr(){yr=Rt.onerror,Rt.onerror=function(Y,z,ue,Ce,Re){return ir("error",{column:Ce,error:Re,line:ue,msg:Y,url:z}),yr&&!yr.__SENTRY_LOADER__?yr.apply(this,arguments):!1},Rt.onerror.__SENTRY_INSTRUMENTED__=!0}let ea=null;function dr(){ea=Rt.onunhandledrejection,Rt.onunhandledrejection=function(Y){return ir("unhandledrejection",Y),ea&&!ea.__SENTRY_LOADER__?ea.apply(this,arguments):!0},Rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function _r(){const Y=typeof WeakSet=="function",z=Y?new WeakSet:[];function ue(Re){if(Y)return z.has(Re)?!0:(z.add(Re),!1);for(let rt=0;rtue?Ia(Y,z-1,ue):Ce}function Ca(Y,z,ue=1/0,Ce=1/0,Re=_r()){const[rt,Mt]=Re;if(z==null||["number","boolean","string"].includes(typeof z)&&!nt(z))return z;const Dt=qr(Y,z);if(!Dt.startsWith("[object "))return Dt;if(z.__sentry_skip_normalization__)return z;const Vt=typeof z.__sentry_override_normalization_depth__=="number"?z.__sentry_override_normalization_depth__:ue;if(Vt===0)return Dt.replace("object ","");if(rt(z))return"[Circular ~]";const nn=z;if(nn&&typeof nn.toJSON=="function")try{const Yt=nn.toJSON();return Ca("",Yt,Vt-1,Ce,Re)}catch(Yt){}const fn=Array.isArray(z)?[]:{};let hn=0;const bn=Oe(z);for(const Yt in bn){if(!Object.prototype.hasOwnProperty.call(bn,Yt))continue;if(hn>=Ce){fn[Yt]="[MaxProperties ~]";break}const Ln=bn[Yt];fn[Yt]=Ca(Yt,Ln,Vt-1,Ce,Re),hn++}return Mt(z),fn}function qr(Y,z){try{if(Y==="domain"&&z&&typeof z=="object"&&z._events)return"[Domain]";if(Y==="domainEmitter")return"[DomainEmitter]";if(typeof e.g!="undefined"&&z===e.g)return"[Global]";if(typeof window!="undefined"&&z===window)return"[Window]";if(typeof document!="undefined"&&z===document)return"[Document]";if(Xe(z))return"[SyntheticEvent]";if(typeof z=="number"&&z!==z)return"[NaN]";if(typeof z=="function")return`[Function: ${wr(z)}]`;if(typeof z=="symbol")return`[${String(z)}]`;if(typeof z=="bigint")return`[BigInt: ${String(z)}]`;const ue=fo(z);return/^HTML(\w*)Element$/.test(ue)?`[HTMLElement: ${ue}]`:`[object ${ue}]`}catch(ue){return`**non-serializable** (${ue})`}}function fo(Y){const z=Object.getPrototypeOf(Y);return z?z.constructor.name:"null prototype"}function Co(Y){return~-encodeURI(Y).split(/%..|./).length}function _a(Y){return Co(JSON.stringify(Y))}function bo(Y,z){const ue=Ba(Y,z),Ce={type:z&&z.name,value:Jo(z)};return ue.length&&(Ce.stacktrace={frames:ue}),Ce.type===void 0&&Ce.value===""&&(Ce.value="Unrecoverable error caught"),Ce}function so(Y,z,ue,Ce){const rt=Nt().getClient(),Mt=rt&&rt.getOptions().normalizeDepth,Dt={exception:{values:[{type:Et(z)?z.constructor.name:Ce?"UnhandledRejection":"Error",value:Bo(z,{isUnhandledRejection:Ce})}]},extra:{__serialized__:Ia(z,Mt)}};if(ue){const Vt=Ba(Y,ue);Vt.length&&(Dt.exception.values[0].stacktrace={frames:Vt})}return Dt}function Sa(Y,z){return{exception:{values:[bo(Y,z)]}}}function Ba(Y,z){const ue=z.stacktrace||z.stack||"",Ce=Ko(z);try{return Y(ue,Ce)}catch(Re){}return[]}const Mo=/Minified React error #\d+;/i;function Ko(Y){if(Y){if(typeof Y.framesToPop=="number")return Y.framesToPop;if(Mo.test(Y.message))return 1}return 0}function Jo(Y){const z=Y&&Y.message;return z?z.error&&typeof z.error.message=="string"?z.error.message:z:"No error message"}function ao(Y,z,ue,Ce){const Re=ue&&ue.syntheticException||void 0,rt=ji(Y,z,Re,Ce);return addExceptionMechanism(rt),rt.level="error",ue&&ue.event_id&&(rt.event_id=ue.event_id),resolvedSyncPromise(rt)}function yi(Y,z,ue="info",Ce,Re){const rt=Ce&&Ce.syntheticException||void 0,Mt=_o(Y,z,rt,Re);return Mt.level=ue,Ce&&Ce.event_id&&(Mt.event_id=Ce.event_id),resolvedSyncPromise(Mt)}function ji(Y,z,ue,Ce,Re){let rt;if(be(z)&&z.error)return Sa(Y,z.error);if(Te(z)||Ge(z)){const Mt=z;if("stack"in z)rt=Sa(Y,z);else{const Dt=Mt.name||(Te(Mt)?"DOMError":"DOMException"),Vt=Mt.message?`${Dt}: ${Mt.message}`:Dt;rt=_o(Y,Vt,ue,Ce),K(rt,Vt)}return"code"in Mt&&(rt.tags=Vs(Wa({},rt.tags),{"DOMException.code":`${Mt.code}`})),rt}return pe(z)?Sa(Y,z):pt(z)||Et(z)?(rt=so(Y,z,ue,Re),k(rt,{synthetic:!0}),rt):(rt=_o(Y,z,ue,Ce),K(rt,`${z}`,void 0),k(rt,{synthetic:!0}),rt)}function _o(Y,z,ue,Ce){const Re={message:z};if(Ce&&ue){const rt=Ba(Y,ue);rt.length&&(Re.exception={values:[{value:z,stacktrace:{frames:rt}}]})}return Re}function Bo(Y,{isUnhandledRejection:z}){const ue=st(Y),Ce=z?"promise rejection":"exception";return be(Y)?`Event \`ErrorEvent\` captured as ${Ce} with message \`${Y.message}\``:Et(Y)?`Event \`${oi(Y)}\` (type=${Y.type}) captured as ${Ce}`:`Object captured as ${Ce} with keys: ${ue}`}function oi(Y){try{const z=Object.getPrototypeOf(Y);return z?z.constructor.name:void 0}catch(z){}}class ri{static __initStatic(){this.id="GlobalHandlers"}constructor(z){this.name=ri.id,this._options=Wa({onerror:!0,onunhandledrejection:!0},z),this._installFunc={onerror:Si,onunhandledrejection:Ni}}setupOnce(){Error.stackTraceLimit=50;const z=this._options;for(const ue in z){const Ce=this._installFunc[ue];Ce&&z[ue]&&(Qo(ue),Ce(),this._installFunc[ue]=void 0)}}}ri.__initStatic();function Si(){er("error",Y=>{const[z,ue,Ce]=xo();if(!z.getIntegration(ri))return;const{msg:Re,url:rt,line:Mt,column:Dt,error:Vt}=Y;if(ta()||Vt&&Vt.__sentry_own_request__)return;const nn=Vt===void 0&&Je(Re)?to(Re,rt,Mt,Dt):Ga(ji(ue,Vt||Re,void 0,Ce,!1),rt,Mt,Dt);nn.level="error",qo(z,Vt,nn,"onerror")})}function Ni(){er("unhandledrejection",Y=>{const[z,ue,Ce]=xo();if(!z.getIntegration(ri))return;let Re=Y;try{"reason"in Y?Re=Y.reason:"detail"in Y&&"reason"in Y.detail&&(Re=Y.detail.reason)}catch(Mt){}if(ta()||Re&&Re.__sentry_own_request__)return!0;const rt=Qe(Re)?Ei(Re):ji(ue,Re,void 0,Ce,!0);rt.level="error",qo(z,Re,rt,"onunhandledrejection")})}function Ei(Y){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(Y)}`}]}}}function to(Y,z,ue,Ce){const Re=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let rt=be(Y)?Y.message:Y,Mt="Error";const Dt=rt.match(Re);return Dt&&(Mt=Dt[1],rt=Dt[2]),Ga({exception:{values:[{type:Mt,value:rt}]}},z,ue,Ce)}function Ga(Y,z,ue,Ce){const Re=Y.exception=Y.exception||{},rt=Re.values=Re.values||[],Mt=rt[0]=rt[0]||{},Dt=Mt.stacktrace=Mt.stacktrace||{},Vt=Dt.frames=Dt.frames||[],nn=isNaN(parseInt(Ce,10))?void 0:Ce,fn=isNaN(parseInt(ue,10))?void 0:ue,hn=Je(z)&&z.length>0?z:me();return Vt.length===0&&Vt.push({colno:nn,filename:hn,function:"?",in_app:!0,lineno:fn}),Y}function Qo(Y){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.log(`Global Handler attached: ${Y}`)}function qo(Y,z,ue,Ce){k(ue,{handled:!1,type:Ce}),Y.captureEvent(ue,{originalException:z})}function xo(){const Y=Nt(),z=Y.getClient(),ue=z&&z.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[Y,ue.stackParser,ue.attachStacktrace]}const Ro=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ci{static __initStatic(){this.id="TryCatch"}constructor(z){this.name=Ci.id,this._options=Wa({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},z)}setupOnce(){this._options.setTimeout&&J(Er,"setTimeout",Ri),this._options.setInterval&&J(Er,"setInterval",Ri),this._options.requestAnimationFrame&&J(Er,"requestAnimationFrame",Ui),this._options.XMLHttpRequest&&"XMLHttpRequest"in Er&&J(XMLHttpRequest.prototype,"send",Os);const z=this._options.eventTarget;z&&(Array.isArray(z)?z:Ro).forEach(fs)}}Ci.__initStatic();function Ri(Y){return function(...z){const ue=z[0];return z[0]=pr(ue,{mechanism:{data:{function:wr(Y)},handled:!0,type:"instrument"}}),Y.apply(this,z)}}function Ui(Y){return function(z){return Y.apply(this,[pr(z,{mechanism:{data:{function:"requestAnimationFrame",handler:wr(Y)},handled:!0,type:"instrument"}})])}}function Os(Y){return function(...z){const ue=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(Re=>{Re in ue&&typeof ue[Re]=="function"&&J(ue,Re,function(rt){const Mt={mechanism:{data:{function:Re,handler:wr(rt)},handled:!0,type:"instrument"}},Dt=ce(rt);return Dt&&(Mt.mechanism.data.handler=wr(Dt)),pr(rt,Mt)})}),Y.apply(this,z)}}function fs(Y){const z=Er,ue=z[Y]&&z[Y].prototype;!ue||!ue.hasOwnProperty||!ue.hasOwnProperty("addEventListener")||(J(ue,"addEventListener",function(Ce){return function(Re,rt,Mt){try{typeof rt.handleEvent=="function"&&(rt.handleEvent=pr(rt.handleEvent,{mechanism:{data:{function:"handleEvent",handler:wr(rt),target:Y},handled:!0,type:"instrument"}}))}catch(Dt){}return Ce.apply(this,[Re,pr(rt,{mechanism:{data:{function:"addEventListener",handler:wr(rt),target:Y},handled:!0,type:"instrument"}}),Mt])}}),J(ue,"removeEventListener",function(Ce){return function(Re,rt,Mt){const Dt=rt;try{const Vt=Dt&&Dt.__sentry_wrapped__;Vt&&Ce.call(this,Re,Vt,Mt)}catch(Vt){}return Ce.call(this,Re,Dt,Mt)}}))}const Gs=["fatal","error","warning","log","info","debug"];function xl(Y){return Kn(Y)}function Kn(Y){return Y==="warn"?"warning":Gs.includes(Y)?Y:"log"}function Gr(Y){if(!Y)return{};const z=Y.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!z)return{};const ue=z[6]||"",Ce=z[8]||"";return{host:z[4],path:z[5],protocol:z[2],search:ue,hash:Ce,relative:z[5]+ue+Ce}}function jr(Y){return Y.split(/[\?#]/,1)[0]}function Br(Y){return Y.split(/\\?\//).filter(z=>z.length>0&&z!==",").length}function ra(Y){const{protocol:z,host:ue,path:Ce}=Y,Re=ue&&ue.replace(/^.*@/,"[filtered]:[filtered]@").replace(":80","").replace(":443","")||"";return`${z?`${z}://`:""}${Re}${Ce}`}const ja=1024,Ra="Breadcrumbs";class Pa{static __initStatic(){this.id=Ra}constructor(z){this.name=Pa.id,this.options=Wa({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},z)}setupOnce(){this.options.console&&er("console",Yo),this.options.dom&&er("dom",To(this.options.dom)),this.options.xhr&&er("xhr",Zo),this.options.fetch&&er("fetch",zi),this.options.history&&er("history",bs)}addSentryBreadcrumb(z){this.options.sentry&&Nt().addBreadcrumb({category:`sentry.${z.type==="transaction"?"transaction":"event"}`,event_id:z.event_id,level:z.level,message:j(z)},{event:z})}}Pa.__initStatic();function To(Y){function z(ue){let Ce,Re=typeof Y=="object"?Y.serializeAttribute:void 0,rt=typeof Y=="object"&&typeof Y.maxStringLength=="number"?Y.maxStringLength:void 0;rt&&rt>ja&&((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn(`\`dom.maxStringLength\` cannot exceed ${ja}, but a value of ${rt} was configured. Sentry will use ${ja} instead.`),rt=ja),typeof Re=="string"&&(Re=[Re]);try{const Mt=ue.event;Ce=Gi(Mt)?Q(Mt.target,{keyAttrs:Re,maxStringLength:rt}):Q(Mt,{keyAttrs:Re,maxStringLength:rt})}catch(Mt){Ce=""}Ce.length!==0&&Nt().addBreadcrumb({category:`ui.${ue.name}`,message:Ce},{event:ue.event,name:ue.name,global:ue.global})}return z}function Yo(Y){for(let ue=0;ue0?rt.exception.values[rt.exception.values.length-1]:void 0;Dt&&(rt.exception.values=Il(Xi(Y,z,Re,Mt.originalException,Ce,rt.exception.values,Dt,0),ue))}function Xi(Y,z,ue,Ce,Re,rt,Mt,Dt){if(rt.length>=ue+1)return rt;let Vt=[...rt];if(Ke(Ce[Re],Error)){Vo(Mt,Dt);const nn=Y(z,Ce[Re]),fn=Vt.length;tu(nn,Re,fn,Dt),Vt=Xi(Y,z,ue,Ce[Re],Re,[nn,...Vt],nn,fn)}return Array.isArray(Ce.errors)&&Ce.errors.forEach((nn,fn)=>{if(Ke(nn,Error)){Vo(Mt,Dt);const hn=Y(z,nn),bn=Vt.length;tu(hn,`errors[${fn}]`,bn,Dt),Vt=Xi(Y,z,ue,nn,Re,[hn,...Vt],hn,bn)}}),Vt}function Vo(Y,z){Y.mechanism=Y.mechanism||{type:"generic",handled:!0},Y.mechanism=Vs(Wa({},Y.mechanism),{is_exception_group:!0,exception_id:z})}function tu(Y,z,ue,Ce){Y.mechanism=Y.mechanism||{type:"generic",handled:!0},Y.mechanism=Vs(Wa({},Y.mechanism),{type:"chained",source:z,exception_id:ue,parent_id:Ce})}function Il(Y,z){return Y.map(ue=>(ue.value&&(ue.value=Ee(ue.value,z)),ue))}const ul="cause",Iu=5;class cl{static __initStatic(){this.id="LinkedErrors"}constructor(z={}){this.name=cl.id,this._key=z.key||ul,this._limit=z.limit||Iu}setupOnce(z,ue){z((Ce,Re)=>{const rt=ue(),Mt=rt.getClient(),Dt=rt.getIntegration(cl);if(!Mt||!Dt)return Ce;const Vt=Mt.getOptions();return Ds(bo,Vt.stackParser,Vt.maxValueLength,Dt._key,Dt._limit,Ce,Re),Ce})}}cl.__initStatic();class Ks{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Ks.id}setupOnce(){_t(z=>{if(Nt().getIntegration(Ks)){if(!Er.navigator&&!Er.location&&!Er.document)return z;const ue=z.request&&z.request.url||Er.location&&Er.location.href,{referrer:Ce}=Er.document||{},{userAgent:Re}=Er.navigator||{},rt=Wa(Wa(Wa({},z.request&&z.request.headers),Ce&&{Referer:Ce}),Re&&{"User-Agent":Re}),Mt=Vs(Wa(Wa({},z.request),ue&&{url:ue}),{headers:rt});return Vs(Wa({},z),{request:Mt})}return z})}}Ks.__initStatic();class ws{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ws.id}setupOnce(z,ue){const Ce=Re=>{if(Re.type)return Re;const rt=ue().getIntegration(ws);if(rt){try{if(Qs(Re,rt._previousEvent))return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(Mt){return rt._previousEvent=Re}return rt._previousEvent=Re}return Re};Ce.id=this.name,z(Ce)}}ws.__initStatic();function Qs(Y,z){return z?!!(zl(Y,z)||fu(Y,z)):!1}function zl(Y,z){const ue=Y.message,Ce=z.message;return!(!ue&&!Ce||ue&&!Ce||!ue&&Ce||ue!==Ce||!Ms(Y,z)||!rs(Y,z))}function fu(Y,z){const ue=Bs(z),Ce=Bs(Y);return!(!ue||!Ce||ue.type!==Ce.type||ue.value!==Ce.value||!Ms(Y,z)||!rs(Y,z))}function rs(Y,z){let ue=js(Y),Ce=js(z);if(!ue&&!Ce)return!0;if(ue&&!Ce||!ue&&Ce||(ue=ue,Ce=Ce,Ce.length!==ue.length))return!1;for(let Re=0;Re{z===void 0||z===ue||zo(getCurrentHub())}))}function sa(Y){const z=getCurrentHub().getClient();z&&z.captureUserFeedback(Y)}var fl=e(10063);const ru="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function Xs(Y){const z=Y.match(/^([^.]+)/);return z!==null&&parseInt(z[0])>=17}const Fl="unknown",Gl={componentStack:null,error:null,eventId:null};function Io(Y,z){const ue=new WeakMap;function Ce(Re,rt){if(!ue.has(Re)){if(Re.cause)return ue.set(Re,!0),Ce(Re.cause,rt);Re.cause=rt}}Ce(Y,z)}class bi extends C.Component{constructor(z){super(z),bi.prototype.__init.call(this),this.state=Gl,this._openFallbackReportDialog=!0;const ue=Nt().getClient();ue&&ue.on&&z.showDialog&&(this._openFallbackReportDialog=!1,ue.on("afterSendEvent",Ce=>{!Ce.type&&Ce.event_id===this._lastEventId&&Ps(Vs(Wa({},z.dialogOptions),{eventId:this._lastEventId}))}))}componentDidCatch(z,{componentStack:ue}){const{beforeCapture:Ce,onError:Re,showDialog:rt,dialogOptions:Mt}=this.props;ia(Dt=>{if(Xs(C.version)&&pe(z)){const nn=new Error(z.message);nn.name=`React ErrorBoundary ${nn.name}`,nn.stack=ue,Io(z,nn)}Ce&&Ce(Dt,z,ue);const Vt=Ct(z,{contexts:{react:{componentStack:ue}}});Re&&Re(z,ue,Vt),rt&&(this._lastEventId=Vt,this._openFallbackReportDialog&&Ps(Vs(Wa({},Mt),{eventId:Vt}))),this.setState({error:z,componentStack:ue,eventId:Vt})})}componentDidMount(){const{onMount:z}=this.props;z&&z()}componentWillUnmount(){const{error:z,componentStack:ue,eventId:Ce}=this.state,{onUnmount:Re}=this.props;Re&&Re(z,ue,Ce)}__init(){this.resetErrorBoundary=()=>{const{onReset:z}=this.props,{error:ue,componentStack:Ce,eventId:Re}=this.state;z&&z(ue,Ce,Re),this.setState(Gl)}}render(){const{fallback:z,children:ue}=this.props,Ce=this.state;if(Ce.error){let Re;return typeof z=="function"?Re=z({error:Ce.error,componentStack:Ce.componentStack,resetError:this.resetErrorBoundary,eventId:Ce.eventId}):Re=z,C.isValidElement(Re)?Re:(z&&(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn("fallback did not produce a valid ReactElement"),null)}return typeof ue=="function"?ue():ue}}function fc(Y,z){const ue=Y.displayName||Y.name||Fl,Ce=Re=>React.createElement(bi,Vs(Wa({},z),{__self:this,__source:{fileName:ru,lineNumber:227}}),React.createElement(Y,Vs(Wa({},Re),{__self:this,__source:{fileName:ru,lineNumber:228}})));return Ce.displayName=`errorBoundary(${ue})`,hoistNonReactStatics(Ce,Y),Ce}var ec=e(51830),no=e(76180),Ji=e(53357),Zs={200:"requestConfig.success.msg",401:"requestConfig.unAuth.msg",403:"requestConfig.permissionDenied.msg",429:"errCode.TokenExceedsRateLimit",500:"requestConfig.responseStatus.msg"},Na={101:"requestConfig.errorContent.msg",200001:"errCode.PartialSuccessBatchAssignLeaders",200002:"errCode.PartialSuccessBatchAssignWorkers",4e5:"errCode.BadRequest",400001:"errCode.ParameterMissing",400002:"errCode.ParameterIsInvalid",400050:"errCode.AnnotationNotListOfObj",400051:"errCode.AnnotationMissingCatName",400052:"errCode.AnnotationMissingBBox",400053:"errCode.AnnotationBBoxFormatError",400054:"errCode.AnnotationFormatError",400100:"errCode.FlagGroupsNotListOfObj",400101:"errCode.FlagObjectMissingFlag",400102:"errCode.FlagObjectFlagValueInvalid",400103:"errCode.FlagObjectMissingIDs",400104:"errCode.FlagObjectIDsNotList",400150:"errCode.LabelSetNameInvalid",400151:"errCode.LabelSetNameConflicts",400200:"errCode.UserNotFoundForLabelProject",400201:"errCode.UserNotActiveForLabelProject",400202:"errCode.DatasetNotFoundForLabelProject",400203:"errCode.LabelTaskNotFoundForLabelProject",400204:"errCode.CreateLabelProjectRequireManager",400205:"errCode.CreateLabelProjectRequireDataset",400206:"errCode.CreateLabelProjectRequireCategory",400207:"errCode.CreateLabelProjectDatasetOccupied",400208:"errCode.EditLabelProjectRequireManager",400209:"errCode.InitLabelProjectMustBeWaiting",400210:"errCode.InitLabelProjectTaskConfigError",400211:"errCode.QALabelProjectActionError",400212:"errCode.QALabelProjectMustBeReviewing",400213:"errCode.ExportLabelProjectMustBeAccepted",400214:"errCode.LeaderIDIsRequired",400215:"errCode.LabelerIDIsRequired",400216:"errCode.LabelProjectRoleIsNotTaskLevel",400217:"errCode.CantReplaceRoleWithTheSameUser",400218:"errCode.OldUserDoesNotHaveTheTaskRole",400219:"errCode.NewUserAlreadyHaveTheTaskRole",400220:"errCode.CantTransferRoleBetweenDifferentTask",400221:"errCode.CantTransferRoleToDifferentKind",400222:"errCode.RestartLabelTaskMustBeRejected",400223:"errCode.QALabelTaskActionError",400224:"errCode.AcceptLabelTaskMustBeReviewing",400225:"errCode.RejectLabelTaskMustBeReviewing",400226:"errCode.ForceAcceptLabelTaskMustBeRejected",400227:"errCode.LabelAnnotationMissingFields",400228:"errCode.LabelAnnotationFieldValueInvalid",400229:"errCode.LabelImageRequireTaskStatusWorking",400230:"errCode.LabelImageRequireUnfinishedReviewing",400231:"errCode.ReviewImageRequireTaskStatusWorking",400232:"errCode.ReviewImageRequireFinishedLabeling",400233:"errCode.ReviewImageTargetLabelNotFound",400234:"errCode.ReviewImageFoundExistedReview",400235:"errCode.CantDeleteAllOwnersOfLabelProject",400236:"errCode.NumOfTaskLeaderMismatchesConfig",400237:"errCode.TaskDoesNotRequireReviewer",400238:"errCode.NumOfTaskLabelerMismatchesConfig",400239:"errCode.NumOfTaskReviewerMismatchesConfig",400240:"errCode.TryInitRoleForTaskWithActiveRoles",400241:"errCode.TaskRoleNotOfLeaderKind",401e3:"errCode.Unauthorized",401001:"requestConfig.unAuth.msg",403e3:"errCode.Forbidden",403001:"requestConfig.permissionDenied.msg",403050:"errCode.UserAuthenticationFailed",403051:"errCode.UserCantViewLabelProjectTask",403052:"errCode.UserCantViewLabelProjectRole",403053:"errCode.UserCantCreateLabelProject",403054:"errCode.UserCantViewLabelProject",403055:"errCode.UserCantEditLabelProject",403056:"errCode.UserCantInitLabelProject",403057:"errCode.UserCantQALabelProject",403058:"errCode.UserCantExportLabelProject",403059:"errCode.UserCantAssignLabelTaskLeader",403060:"errCode.UserCantAssignLabelTaskWorker",403061:"errCode.UserCantRestartLabelTask",403062:"errCode.UserCantQALabelTask",403063:"errCode.UserCantLabelTaskImage",403064:"errCode.UserCantReviewTaskImage",404e3:"errCode.NotFound",404050:"errCode.DatasetNotFound",404051:"errCode.DatasetNotReadable",404052:"errCode.DatasetMissingEmbdFile",404053:"errCode.DatasetImageNotFound",404054:"errCode.DatasetHasNoFNFPData",404055:"errCode.DatasetLabelNotFound",404056:"errCode.DatasetFNFPPrecisionNotFound",404100:"errCode.ReRankByFlagTaskNotFound",404150:"errCode.LabelProjectNotFound",404151:"errCode.LabelProjectRoleNotFound",404152:"errCode.LabelProjectTaskNotFound",404153:"errCode.LabelTaskImageNotFound",429002:"errCode.TokenExceedsRateLimit",5e5:"errCode.InternalError",500001:"errCode.FailedToCloneLabelSet"},au=function(z,ue){return z&&Na[z]?(0,Ji._w)(Na[z]):ue&&Zs[ue]?(0,Ji._w)(Zs[ue]):(0,Ji._w)("requestConfig.errorData.msg",{code:"".concat(ue).concat(z?"-".concat(z):"")})},_i=e(35667);function Al(){return vl.apply(this,arguments)}function vl(){return vl=w()(g()().mark(function Y(){return g()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return document.addEventListener("wheel",function(Ce){(Ce.ctrlKey||Ce.detail)&&Ce.preventDefault()},{capture:!1,passive:!1}),document.addEventListener("keydown",function(Ce){(Ce.ctrlKey===!0||Ce.metaKey===!0)&&(Ce.keyCode===61||Ce.keyCode===107||Ce.keyCode===173||Ce.keyCode===109||Ce.keyCode===187||Ce.keyCode===189)&&Ce.preventDefault()},!1),N.ZP.config({duration:1.5,maxCount:2}),ue.abrupt("return",{name:"@umijs/max"});case 4:case"end":return ue.stop()}},Y)})),vl.apply(this,arguments)}var vu=function(){return{pure:!0,title:(0,Ji._w)("layout.title")}};function Bl(Y){var z={showDialog:!0,fallback:function(Ce){return(0,_i.jsx)(ec.xA,h()({},Ce))}};return C.createElement(bi,z,Y)}var tc={baseURL:"http://192.168.190.201:8765",timeout:1e5,headers:{"Content-Type":"application/json"},errorConfig:{errorHandler:function(z,ue){var Ce;if(!/^2/.test(z.status)&&!(ue!=null&&ue.skipErrorHandler)&&(((Ce=z.response)===null||Ce===void 0?void 0:Ce.status)===401&&(L.history.push("/"),localStorage.removeItem(no.Uf.AUTH_TOKEN)),!(ue!=null&&ue.hideCodeErrorMsg)))if(z.response){var Re;N.ZP.error(au((Re=z.response.data)===null||Re===void 0?void 0:Re.code,z.response.status))}else z.request?N.ZP.error((0,Ji._w)("requestConfig.noResponse.msg")):N.ZP.error((0,Ji._w)("requestConfig.requestError.msg"))}},requestInterceptors:[function(Y){if(Y.params&&(Y.params=Z().decamelizeKeys(Y.params)),Y.data&&(Y.data=Z().decamelizeKeys(Y.data)),Y.headers){var z,ue;if((z=Y.url)!==null&&z!==void 0&&z.includes("https://api.deepdataspace.com"))Y.headers.Token="dds-tool-free";else if(((ue=Y.url)===null||ue===void 0?void 0:ue.indexOf("http"))!==0){var Ce=localStorage.getItem(no.Uf.AUTH_TOKEN);Ce&&(Y.headers.Token=Ce)}}return h()({},Y)}],responseInterceptors:[function(Y){var z;if(((z=Y.data)===null||z===void 0?void 0:z.code)===0){var ue;return Y.data=Z().camelizeKeys(((ue=Y.data)===null||ue===void 0?void 0:ue.data)||{}),Y}else{var Ce;if(!((Ce=Y.config)!==null&&Ce!==void 0&&Ce.hideCodeErrorMsg)){var Re;N.ZP.error(au((Re=Y.data)===null||Re===void 0?void 0:Re.code,200))}throw Y}}]},Zu=e(7862),Lo=e.n(Zu),Au=e(81690),Kl=e.n(Au),vs=e(21700),Ol=e.n(vs),gl=e(31236),kt=e.n(gl);function Di(){return Di=Object.assign||function(Y){for(var z=1;z=0||(Re[ue]=Y[ue]);return Re}var uo={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Uu={rel:["amphtml","canonical","alternate"]},gu={type:["application/ld+json"]},ss={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Dl=Object.keys(uo).map(function(Y){return uo[Y]}),Mi={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},xi=Object.keys(Mi).reduce(function(Y,z){return Y[Mi[z]]=z,Y},{}),qi=function(Y,z){for(var ue=Y.length-1;ue>=0;ue-=1){var Ce=Y[ue];if(Object.prototype.hasOwnProperty.call(Ce,z))return Ce[z]}return null},as=function(Y){var z=qi(Y,uo.TITLE),ue=qi(Y,"titleTemplate");if(Array.isArray(z)&&(z=z.join("")),ue&&z)return ue.replace(/%s/g,function(){return z});var Ce=qi(Y,"defaultTitle");return z||Ce||void 0},vo=function(Y){return qi(Y,"onChangeClientState")||function(){}},Js=function(Y,z){return z.filter(function(ue){return ue[Y]!==void 0}).map(function(ue){return ue[Y]}).reduce(function(ue,Ce){return Di({},ue,Ce)},{})},ou=function(Y,z){return z.filter(function(ue){return ue[uo.BASE]!==void 0}).map(function(ue){return ue[uo.BASE]}).reverse().reduce(function(ue,Ce){if(!ue.length)for(var Re=Object.keys(Ce),rt=0;rt/g,">").replace(/"/g,""").replace(/'/g,"'")},gs=function(Y){return Object.keys(Y).reduce(function(z,ue){var Ce=Y[ue]!==void 0?ue+'="'+Y[ue]+'"':""+ue;return z?z+" "+Ce:Ce},"")},Ou=function(Y,z){return z===void 0&&(z={}),Object.keys(Y).reduce(function(ue,Ce){return ue[Mi[Ce]||Ce]=Y[Ce],ue},z)},ks=function(Y,z){return z.map(function(ue,Ce){var Re,rt=((Re={key:Ce})["data-rh"]=!0,Re);return Object.keys(ue).forEach(function(Mt){var Dt=Mi[Mt]||Mt;Dt==="innerHTML"||Dt==="cssText"?rt.dangerouslySetInnerHTML={__html:ue.innerHTML||ue.cssText}:rt[Dt]=ue[Mt]}),C.createElement(Y,rt)})},va=function(Y,z,ue){switch(Y){case uo.TITLE:return{toComponent:function(){return Re=z.titleAttributes,(rt={key:Ce=z.title})["data-rh"]=!0,Mt=Ou(Re,rt),[C.createElement(uo.TITLE,Mt,Ce)];var Ce,Re,rt,Mt},toString:function(){return function(Ce,Re,rt,Mt){var Dt=gs(rt),Vt=mu(Re);return Dt?"<"+Ce+' data-rh="true" '+Dt+">"+Ss(Vt,Mt)+"":"<"+Ce+' data-rh="true">'+Ss(Vt,Mt)+""}(Y,z.title,z.titleAttributes,ue)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Ou(z)},toString:function(){return gs(z)}};default:return{toComponent:function(){return ks(Y,z)},toString:function(){return function(Ce,Re,rt){return Re.reduce(function(Mt,Dt){var Vt=Object.keys(Dt).filter(function(hn){return!(hn==="innerHTML"||hn==="cssText")}).reduce(function(hn,bn){var Yt=Dt[bn]===void 0?bn:bn+'="'+Ss(Dt[bn],rt)+'"';return hn?hn+" "+Yt:Yt},""),nn=Dt.innerHTML||Dt.cssText||"",fn=jl.indexOf(Ce)===-1;return Mt+"<"+Ce+' data-rh="true" '+Vt+(fn?"/>":">"+nn+"")},"")}(Y,z,ue)}}}},at=function(Y){var z=Y.baseTag,ue=Y.bodyAttributes,Ce=Y.encode,Re=Y.htmlAttributes,rt=Y.noscriptTags,Mt=Y.styleTags,Dt=Y.title,Vt=Dt===void 0?"":Dt,nn=Y.titleAttributes,fn=Y.linkTags,hn=Y.metaTags,bn=Y.scriptTags,Yt={toComponent:function(){},toString:function(){return""}};if(Y.prioritizeSeoTags){var Ln=function(qn){var cr=qn.linkTags,Dr=qn.scriptTags,Rr=qn.encode,Aa=Us(qn.metaTags,ss),xa=Us(cr,Uu),pa=Us(Dr,gu);return{priorityMethods:{toComponent:function(){return[].concat(ks(uo.META,Aa.priority),ks(uo.LINK,xa.priority),ks(uo.SCRIPT,pa.priority))},toString:function(){return va(uo.META,Aa.priority,Rr)+" "+va(uo.LINK,xa.priority,Rr)+" "+va(uo.SCRIPT,pa.priority,Rr)}},metaTags:Aa.default,linkTags:xa.default,scriptTags:pa.default}}(Y);Yt=Ln.priorityMethods,fn=Ln.linkTags,hn=Ln.metaTags,bn=Ln.scriptTags}return{priority:Yt,base:va(uo.BASE,z,Ce),bodyAttributes:va("bodyAttributes",ue,Ce),htmlAttributes:va("htmlAttributes",Re,Ce),link:va(uo.LINK,fn,Ce),meta:va(uo.META,hn,Ce),noscript:va(uo.NOSCRIPT,rt,Ce),script:va(uo.SCRIPT,bn,Ce),style:va(uo.STYLE,Mt,Ce),title:va(uo.TITLE,{title:Vt,titleAttributes:nn},Ce)}},Kt=[],Vn=function(Y,z){var ue=this;z===void 0&&(z=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(Ce){ue.context.helmet=Ce},helmetInstances:{get:function(){return ue.canUseDOM?Kt:ue.instances},add:function(Ce){(ue.canUseDOM?Kt:ue.instances).push(Ce)},remove:function(Ce){var Re=(ue.canUseDOM?Kt:ue.instances).indexOf(Ce);(ue.canUseDOM?Kt:ue.instances).splice(Re,1)}}},this.context=Y,this.canUseDOM=z,z||(Y.helmet=at({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},gr=C.createContext({}),Da=Lo().shape({setHelmet:Lo().func,helmetInstances:Lo().shape({get:Lo().func,add:Lo().func,remove:Lo().func})}),lo=typeof document!="undefined",ii=function(Y){function z(ue){var Ce;return(Ce=Y.call(this,ue)||this).helmetData=new Vn(Ce.props.context,z.canUseDOM),Ce}return Ql(z,Y),z.prototype.render=function(){return C.createElement(gr.Provider,{value:this.helmetData.value},this.props.children)},z}(C.Component);ii.canUseDOM=lo,ii.propTypes={context:Lo().shape({helmet:Lo().shape()}),children:Lo().node.isRequired},ii.defaultProps={context:{}},ii.displayName="HelmetProvider";var Fo=function(Y,z){var ue,Ce=document.head||document.querySelector(uo.HEAD),Re=Ce.querySelectorAll(Y+"[data-rh]"),rt=[].slice.call(Re),Mt=[];return z&&z.length&&z.forEach(function(Dt){var Vt=document.createElement(Y);for(var nn in Dt)Object.prototype.hasOwnProperty.call(Dt,nn)&&(nn==="innerHTML"?Vt.innerHTML=Dt.innerHTML:nn==="cssText"?Vt.styleSheet?Vt.styleSheet.cssText=Dt.cssText:Vt.appendChild(document.createTextNode(Dt.cssText)):Vt.setAttribute(nn,Dt[nn]===void 0?"":Dt[nn]));Vt.setAttribute("data-rh","true"),rt.some(function(fn,hn){return ue=hn,Vt.isEqualNode(fn)})?rt.splice(ue,1):Mt.push(Vt)}),rt.forEach(function(Dt){return Dt.parentNode.removeChild(Dt)}),Mt.forEach(function(Dt){return Ce.appendChild(Dt)}),{oldTags:rt,newTags:Mt}},es=function(Y,z){var ue=document.getElementsByTagName(Y)[0];if(ue){for(var Ce=ue.getAttribute("data-rh"),Re=Ce?Ce.split(","):[],rt=[].concat(Re),Mt=Object.keys(z),Dt=0;Dt=0;hn-=1)ue.removeAttribute(rt[hn]);Re.length===rt.length?ue.removeAttribute("data-rh"):ue.getAttribute("data-rh")!==Mt.join(",")&&ue.setAttribute("data-rh",Mt.join(","))}},ei=function(Y,z){var ue=Y.baseTag,Ce=Y.htmlAttributes,Re=Y.linkTags,rt=Y.metaTags,Mt=Y.noscriptTags,Dt=Y.onChangeClientState,Vt=Y.scriptTags,nn=Y.styleTags,fn=Y.title,hn=Y.titleAttributes;es(uo.BODY,Y.bodyAttributes),es(uo.HTML,Ce),function(qn,cr){qn!==void 0&&document.title!==qn&&(document.title=mu(qn)),es(uo.TITLE,cr)}(fn,hn);var bn={baseTag:Fo(uo.BASE,ue),linkTags:Fo(uo.LINK,Re),metaTags:Fo(uo.META,rt),noscriptTags:Fo(uo.NOSCRIPT,Mt),scriptTags:Fo(uo.SCRIPT,Vt),styleTags:Fo(uo.STYLE,nn)},Yt={},Ln={};Object.keys(bn).forEach(function(qn){var cr=bn[qn],Dr=cr.newTags,Rr=cr.oldTags;Dr.length&&(Yt[qn]=Dr),Rr.length&&(Ln[qn]=bn[qn].oldTags)}),z&&z(),Dt(Y,Yt,Ln)},di=null,Eo=function(Y){function z(){for(var Ce,Re=arguments.length,rt=new Array(Re),Mt=0;Mt elements are self-closing and can not contain children. Refer to our API for more information.")}},ue.flattenArrayTypeChildren=function(Ce){var Re,rt=Ce.child,Mt=Ce.arrayTypeChildren;return Di({},Mt,((Re={})[rt.type]=[].concat(Mt[rt.type]||[],[Di({},Ce.newChildProps,this.mapNestedChildrenToProps(rt,Ce.nestedChildren))]),Re))},ue.mapObjectTypeChildren=function(Ce){var Re,rt,Mt=Ce.child,Dt=Ce.newProps,Vt=Ce.newChildProps,nn=Ce.nestedChildren;switch(Mt.type){case uo.TITLE:return Di({},Dt,((Re={})[Mt.type]=nn,Re.titleAttributes=Di({},Vt),Re));case uo.BODY:return Di({},Dt,{bodyAttributes:Di({},Vt)});case uo.HTML:return Di({},Dt,{htmlAttributes:Di({},Vt)});default:return Di({},Dt,((rt={})[Mt.type]=Di({},Vt),rt))}},ue.mapArrayTypeChildrenToProps=function(Ce,Re){var rt=Di({},Re);return Object.keys(Ce).forEach(function(Mt){var Dt;rt=Di({},rt,((Dt={})[Mt]=Ce[Mt],Dt))}),rt},ue.warnOnInvalidChildren=function(Ce,Re){return Ol()(Dl.some(function(rt){return Ce.type===rt}),typeof Ce.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Dl.join(", ")+" are allowed. Helmet does not support rendering <"+Ce.type+"> elements. Refer to our API for more information."),Ol()(!Re||typeof Re=="string"||Array.isArray(Re)&&!Re.some(function(rt){return typeof rt!="string"}),"Helmet expects a string as a child of <"+Ce.type+">. Did you forget to wrap your children in braces? ( <"+Ce.type+">{``} ) Refer to our API for more information."),!0},ue.mapChildrenToProps=function(Ce,Re){var rt=this,Mt={};return C.Children.forEach(Ce,function(Dt){if(Dt&&Dt.props){var Vt=Dt.props,nn=Vt.children,fn=$o(Vt,Ao),hn=Object.keys(fn).reduce(function(Yt,Ln){return Yt[xi[Ln]||Ln]=fn[Ln],Yt},{}),bn=Dt.type;switch(typeof bn=="symbol"?bn=bn.toString():rt.warnOnInvalidChildren(Dt,nn),bn){case uo.FRAGMENT:Re=rt.mapChildrenToProps(nn,Re);break;case uo.LINK:case uo.META:case uo.NOSCRIPT:case uo.SCRIPT:case uo.STYLE:Mt=rt.flattenArrayTypeChildren({child:Dt,arrayTypeChildren:Mt,newChildProps:hn,nestedChildren:nn});break;default:Re=rt.mapObjectTypeChildren({child:Dt,newProps:Re,newChildProps:hn,nestedChildren:nn})}}}),this.mapArrayTypeChildrenToProps(Mt,Re)},ue.render=function(){var Ce=this.props,Re=Ce.children,rt=$o(Ce,ki),Mt=Di({},rt),Dt=rt.helmetData;return Re&&(Mt=this.mapChildrenToProps(Re,Mt)),!Dt||Dt instanceof Vn||(Dt=new Vn(Dt.context,Dt.instances)),Dt?C.createElement(Eo,Di({},Mt,{context:Dt.value,helmetData:void 0})):C.createElement(gr.Consumer,null,function(Vt){return C.createElement(Eo,Di({},Mt,{context:Vt}))})},z}(C.Component);ms.propTypes={base:Lo().object,bodyAttributes:Lo().object,children:Lo().oneOfType([Lo().arrayOf(Lo().node),Lo().node]),defaultTitle:Lo().string,defer:Lo().bool,encodeSpecialCharacters:Lo().bool,htmlAttributes:Lo().object,link:Lo().arrayOf(Lo().object),meta:Lo().arrayOf(Lo().object),noscript:Lo().arrayOf(Lo().object),onChangeClientState:Lo().func,script:Lo().arrayOf(Lo().object),style:Lo().arrayOf(Lo().object),title:Lo().string,titleAttributes:Lo().object,titleTemplate:Lo().string,prioritizeSeoTags:Lo().bool,helmetData:Lo().object},ms.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},ms.displayName="Helmet";var Du={},Xl=function(z){return C.createElement(ii,{context:Du},z)},ls=e(96662);function wu(Y){var z={};return(0,_i.jsx)(ls.J.Provider,{value:z,children:Y.children})}function Jl(Y){return(0,_i.jsx)(wu,{children:Y})}var us=e(62376),Oc=e.n(us),nc=e(62109),ml=e(65388),Pl=e(42505),$l=["appConfig"],ku=null,Dc=function(){return ku||(ku=Ar().applyPlugins({key:"antd",type:L.ApplyPluginsType.modify,initialValue:h()({},{theme:{token:{colorLink:"#1e53f5",colorPrimary:"#1e53f5"}}})})),ku};function pu(Y){var z=Dc(),ue=z.appConfig,Ce=Oc()(z,$l),Re=Y;return Ce.prefixCls&&(nc.Z.config({rootPrefixCls:Ce.prefixCls}),N.ZP.config({prefixCls:"".concat(Ce.prefixCls,"-message")}),ml.Z.config({prefixCls:"".concat(Ce.prefixCls,"-notification")})),Ce.iconPrefixCls&&Pl.ZP.config({iconPrefixCls:Ce.iconPrefixCls}),Ce.theme&&Pl.ZP.config({theme:Ce.theme}),Re=(0,_i.jsx)(Pl.ZP,h()(h()({},Ce),{},{children:Re})),Re}var hu=e(47338);function yu(){return(0,_i.jsx)("div",{})}function os(Y){var z=C.useRef(!1),ue=(0,hu.t)("@@initialState")||{},Ce=ue.loading,Re=Ce===void 0?!1:Ce;return C.useEffect(function(){Re||(z.current=!0)},[Re]),Re&&!z.current?(0,_i.jsx)(yu,{}):Y.children}function ju(Y){return(0,_i.jsx)(os,{children:Y})}var ps={};function Ki(Y){return Y.replace(Y[0],Y[0].toUpperCase()).replace(/-(w)/g,function(z,ue){return ue.toUpperCase()})}function Ts(Y){var z=Y.routes;Object.keys(z).forEach(function(ue){var Ce=z[ue].icon;if(Ce&&typeof Ce=="string"){var Re=Ki(Ce);(ps[Re]||ps[Re+"Outlined"])&&(z[ue].icon=C.createElement(ps[Re]||ps[Re+"Outlined"]))}})}var qs=e(88205),Uo=e.n(qs),su=e(6901),cs=e.n(su),rc=e(85417),el=e(16221);function pl(){var Y=getLocale();if(moment!=null&&moment.locale){var z;moment.locale(((z=localeInfo[Y])===null||z===void 0?void 0:z.momentLocale)||"")}setIntl(Y)}var Ls=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?C.useLayoutEffect:C.useEffect,fi=function(z){var ue,Ce=(0,el.Kd)(),Re=C.useState(Ce),rt=Uo()(Re,2),Mt=rt[0],Dt=rt[1],Vt=C.useState(function(){return(0,el.lw)(Mt,!0)}),nn=Uo()(Vt,2),fn=nn[0],hn=nn[1],bn=function(cr){if(cs()!==null&&cs()!==void 0&&cs().locale){var Dr;cs().locale(((Dr=el.H8[cr])===null||Dr===void 0?void 0:Dr.momentLocale)||"en")}Dt(cr),hn((0,el.lw)(cr))};Ls(function(){return el.B.on(el.PZ,bn),function(){el.B.off(el.PZ,bn)}},[]);var Yt={},Ln=(0,el.Mg)();return(0,_i.jsx)(Pl.ZP,{direction:Ln,locale:((ue=el.H8[Mt])===null||ue===void 0?void 0:ue.antd)||Yt,children:(0,_i.jsx)(el.eU,{value:fn,children:z.children})})};function Es(Y){return C.createElement(fi,null,Y)}var bu=e(34485),Pu=e.n(bu),hl=e(65246),Wu=e(7986);function Tu(Y,z){return Zl.apply(this,arguments)}function Zl(){return Zl=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/datasets",h()({method:"GET",params:z},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Zl.apply(this,arguments)}function Tl(Y,z){return Ul.apply(this,arguments)}function Ul(){return Ul=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/datasets/".concat(z.datasetId),h()({method:"GET"},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Ul.apply(this,arguments)}function Xo(Y,z){return B.apply(this,arguments)}function B(){return B=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/images",h()({method:"GET",params:z},ue||{})));case 1:case"end":return Re.stop()}},Y)})),B.apply(this,arguments)}function ve(Y,z){return Ze.apply(this,arguments)}function Ze(){return Ze=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/image_flags",h()({method:"POST",data:h()({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Ze.apply(this,arguments)}function ot(Y,z){return Lt.apply(this,arguments)}function Lt(){return Lt=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/tasks/rerank_by_flags",h()({method:"POST",data:h()({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Lt.apply(this,arguments)}function Nn(Y,z){return Fr.apply(this,arguments)}function Fr(){return Fr=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/tasks/".concat(z.name,"/").concat(z.id),h()({method:"GET"},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Fr.apply(this,arguments)}function oo(Y,z){return jo.apply(this,arguments)}function jo(){return jo=_asyncToGenerator(_regeneratorRuntime().mark(function Y(z,ue){return _regeneratorRuntime().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",request("/api/v1/annotations",_objectSpread({method:"POST",data:_objectSpread({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),jo.apply(this,arguments)}function li(Y,z){return Yi.apply(this,arguments)}function Yi(){return Yi=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/comparisons",h()({method:"GET",params:z},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Yi.apply(this,arguments)}function tl(Y,z){return yl.apply(this,arguments)}function yl(){return yl=_asyncToGenerator(_regeneratorRuntime().mark(function Y(z,ue){return _regeneratorRuntime().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",request("/api/v1/label_clone",_objectSpread({method:"POST",data:_objectSpread({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),yl.apply(this,arguments)}var ac=e(74595),Ii=e(67160),oc=e(39378),wc=function(){var Y,z,ue,Ce=(0,hl.x)(h()({},Ii.C2)),Re=Uo()(Ce,2),rt=Re[0],Mt=Re[1],Dt=(0,hl.x)(h()({},Ii.$I)),Vt=Uo()(Dt,2),nn=Vt[0],fn=Vt[1],hn=rt.filterValues,bn=rt.comparisons,Yt=nn.filters,Ln=function(Ka){Mt(function(Za){Object.assign(Za,Ii.C2,Ka)})},qn=function(){},cr=(0,Wu.Z)(function(Oo){if(!rt.datasetId)throw null;return Tl({datasetId:rt.datasetId})},{refreshDeps:[rt.datasetId],onSuccess:function(Ka,Za){var ui=Ka.categoryList,ai=Ka.labelList,Ai=Ka.objectTypes,po=Za.length>0?Za[0]:no.$j.gt,Pi=Ai.filter(function(vi){return vi!==no.JJ.Classification}),Oi=rt.filterValues.displayAnnotationType&&Pi.find(function(vi){return vi===rt.filterValues.displayAnnotationType});fn(function(vi){var Wi=Oi||Pi[0],La=(0,ac.B8)(rt.filterValues.displayOptions,Wi),mi=Uo()(La,2),hs=mi[0],Hi=mi[1];vi.filters.categories=[{id:"All",name:"All"}].concat(Pu()(ui)),vi.filters.annotationTypes=Pi,vi.filters.displayOptions=hs,Oi||Mt(function(ts){ts.filterValues.displayOptions=Hi,ts.filterValues.displayAnnotationType=Wi}),rt.filterValues.categoryId||Mt(function(ts){ts.filterValues.categoryId="All"}),ai&&ai.length&&(vi.filters.labels=ai.map(function(ts){return ts.confidenceRange=ts.source===no.$j.pred?[.2,1]:[0,1],ts.source===po&&!Oi&&Mt(function(kl){kl.filterValues.selectedLabelIds=[ts.id]}),ts}))})},onError:function(){}},[function(Oo){return{onBefore:function(){var Za;return{loading:!(!((Za=Oo.state.params)===null||Za===void 0)&&Za.length)}}}}]),Dr=cr.loading,Rr=cr.runAsync,Aa=(0,Wu.Z)(function(){var Oo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ka=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!rt.datasetId||!rt.filterValues.categoryId)throw null;Oo||(fn(function(ai){Object.assign(ai,Ii.vA)}),window.scrollTo(0,0));var Za=rt.filterValues.categoryId==="All"?void 0:rt.filterValues.categoryId,ui={datasetId:rt.datasetId,categoryId:Za,pageNum:rt.page,pageSize:rt.pageSize};return rt.queryMode===Ii.nJ.random&&Object.assign(ui,{offset:Ka?-1:rt.offset,pageSize:no.L8}),rt.comparisons?li(h()(h()({},ui),{},{labelId:rt.comparisons.label.id,precision:rt.comparisons.precision,orderBy:rt.comparisons.orderBy,displayCategoryId:Za})):(rt.flagTools&&rt.flagTools.flagStatus>=0&&Object.assign(ui,{flag:rt.flagTools.flagStatus}),Xo(ui))},{debounceWait:20,refreshDeps:[rt.datasetId,rt.filterValues.categoryId,rt.queryMode,rt.page,rt.pageSize,(Y=rt.comparisons)===null||Y===void 0?void 0:Y.precision,(z=rt.comparisons)===null||z===void 0?void 0:z.orderBy,(ue=rt.flagTools)===null||ue===void 0?void 0:ue.flagStatus],onSuccess:function(Ka){fn(function(Za){Za.imgList=Ka.imageList,Za.total=Ka.total}),Mt(function(Za){Za.offset=(0,oc.isNumber)(Ka.offset)?Ka.offset:-1})},onError:function(){}},[function(Oo){return{onBefore:function(){var Za;return{loading:!(!((Za=Oo.state.params)===null||Za===void 0)&&Za.length)}}}}]),xa=Aa.loading,pa=Aa.run,za=function(Ka){Mt(function(Za){Za.previewIndex=Ka})},ha=function(){Mt(function(Ka){Ka.previewIndex=-1})},Yr=Dr||xa,$a=(0,C.useMemo)(function(){if(bn){var Oo=[],Ka=Yt.labels.find(function(Za){return Za.source===no.$j.gt});return(bn.displays.includes(no.$j.gt)||bn.displays.includes(no.BP.fn))&&Ka&&Oo.push(Ka.id),(bn.displays.includes(no.$j.pred)||bn.displays.includes(no.BP.fp))&&Oo.push(bn.label.id),Oo}return hn.selectedLabelIds},[bn,hn.selectedLabelIds,Yt.labels]),Xa=(0,C.useMemo)(function(){return $a.length>1&&(hn.displayAnnotationType===no.JJ.Matting||(bn?bn.diffMode===no.uP.Tiled:hn.diffMode===no.uP.Tiled))},[bn,hn.diffMode,$a]),io=(0,C.useMemo)(function(){var Oo={};return Object.keys(no.zY).forEach(function(Ka){var Za;Oo[Ka]=!!(!((Za=hn.displayOptions)===null||Za===void 0)&&Za.find(function(ui){return ui===Ka}))}),Oo},[rt.filterValues.displayOptions]),Go=(0,C.useCallback)(function(Oo){var Ka=Pu()(Oo.objects)||[],Za=rt.comparisons,ui={labels:nn.filters.labels,displayLabelIds:$a,isTiledDiff:Xa},ai=rt.filterValues.displayAnnotationType;if(Ka=Ka.filter(function(po){var Pi,Oi;return po.mask&&ai===no.JJ.Mask||po.alpha&&ai===no.JJ.Matting||((Pi=po.points)===null||Pi===void 0?void 0:Pi.length)&&ai===no.JJ.KeyPoints||po.segmentation&&ai===no.JJ.Segmentation||!((Oi=po.points)!==null&&Oi!==void 0&&Oi.length)&&po.boundingBox&&ai===no.JJ.Detection}).map(function(po){return h()(h()({},po),{},{mask:ai===no.JJ.Mask?po.mask:void 0,alpha:ai===no.JJ.Matting?po.alpha:void 0,points:ai===no.JJ.KeyPoints?po.points:void 0,segmentation:ai===no.JJ.Segmentation?po.segmentation:void 0,boundingBox:[no.JJ.Detection,no.JJ.KeyPoints].includes(ai)?po.boundingBox:void 0})}),Za){var Ai=Ka.filter(function(po){return po.source===no.$j.pred});Ka=Ka.filter(function(po){return(po.conf||0)>=Za.score}),Ka=Ka.map(function(po){var Pi=h()({},po);if(po.source===no.$j.gt){var Oi=(0,oc.isNumber)(po.matchedDetIdx)&&po.matchedDetIdx>=0&&Ka.includes(Ai[po.matchedDetIdx])?no.BP.ok:no.BP.fn;Pi.compareResult=Oi}return Pi}),Ka=Ka.filter(function(po){return po.compareResult===no.BP.ok?po.source&&Za.displays.includes(po.source):po.compareResult&&Za.displays.includes(po.compareResult)})}return Ka.filter(function(po){var Pi=io.showAnnotations,Oi=io.showAllCategory,vi=rt.filterValues.categoryId||"";if(!Pi||!Oi&&po.categoryId!==vi||ui&&po.labelId&&!ui.displayLabelIds.includes(po.labelId)||ui&&ui.isTiledDiff&&po.labelId!==Oo.curLabelId)return!1;if(!Za&&ui){var Wi=ui.labels.find(function(La){return La.id===po.labelId});return Wi?Wi.source===no.$j.gt?!0:po.conf!==void 0&&po.conf>=(Wi==null?void 0:Wi.confidenceRange[0])&&po.conf<=(Wi==null?void 0:Wi.confidenceRange[1]):!1}return!0}).map(function(po){var Pi=h()({},po),Oi=(0,ac.iE)(po.labelId,$a,Xa||!!rt.comparisons),vi=Oi.colorAplha,Wi=Oi.strokeDash,La=Oi.lineWidth;return Za&&po.compareResult?Pi.customStyles={pointAplha:vi,strokeDash:Wi,thickness:La,fillColor:no.pB[po.compareResult]||"transparent"}:Pi.customStyles={pointAplha:vi,strokeDash:Wi,thickness:La},Pi})},[rt.filterValues.categoryId,rt.filterValues.displayAnnotationType,rt.comparisons,nn.filters.labels,$a,Xa,io]);return{pageState:rt,setPageState:Mt,pageData:nn,setPageData:fn,onInitPageState:Ln,onPageContentLoaded:qn,onPreviewIndexChange:za,exitPreview:ha,loadDatasetInfo:Rr,loadImgList:pa,loading:Yr,displayLabelIds:$a,isTiledDiff:Xa,displayOptionsResult:io,displayObjectsFilter:Go}},ic=e(41260),vc=function(){var Y=(0,C.useState)(!1),z=Uo()(Y,2),ue=z[0],Ce=z[1],Re=(0,L.useModel)("dataset.common"),rt=Re.setPageState,Mt=function(){Ce(!0)},Dt=function(){Ce(!1)},Vt=function(bn){rt(function(Yt){Yt.queryMode=Ii.nJ.pagination,Yt.page=1,Yt.filterValues.displayAnnotationType=no.JJ.Detection,Yt.flagTools=void 0,Yt.comparisons={label:bn,orderBy:no.YZ.fn,precision:bn.comparePrecisions[0].precision,displays:no.G3.map(function(Ln){return Ln.value}),diffMode:no.uP.Overlay,score:(0,ic.p)(bn.comparePrecisions[0].threshold,2)}})},nn=function(){rt(function(bn){bn.page=1,bn.comparisons=void 0})},fn=function(bn,Yt){rt(function(Ln){if(Ln.comparisons&&(Ln.comparisons[bn]=Yt,bn==="precision")){var qn=Ln.comparisons.label.comparePrecisions.find(function(cr){return cr.precision===Yt});qn&&(Ln.comparisons.score=(0,ic.p)(qn.threshold,2))}})};return{showAnalysisModal:ue,openAnalysisModal:Mt,closeAnalysisModal:Dt,compareLabelSet:Vt,exitComparisons:nn,onFilterComparisonsPrecision:fn}},gc=function(){var Y=(0,L.useModel)("dataset.common"),z=Y.pageState,ue=Y.setPageState,Ce=Y.pageData,Re=Y.setPageData,rt=function(Ln){ue(function(qn){qn.filterValues.categoryId=Ln,qn.page=1})},Mt=function(Ln){var qn;typeof Ln=="number"?qn=Ln:Ln?qn=z.cloumnCount1?z.cloumnCount-1:z.cloumnCount,ue(function(cr){cr.cloumnCount=qn})},Dt=function(Ln){ue(function(qn){qn.filterValues.displayOptions=Ln})},Vt=function(Ln){ue(function(qn){qn.filterValues.selectedLabelIds=Ln.sort(function(cr,Dr){return Ce.filters.labels.findIndex(function(Rr){return Rr.id===cr})-Ce.filters.labels.findIndex(function(Rr){return Rr.id===Dr})})})},nn=function(Ln){ue(function(qn){qn.filterValues.diffMode=Ln})},fn=function(Ln,qn){Re(function(cr){cr.filters.labels[Ln].confidenceRange=qn})},hn=function(Ln){var qn=(0,ac.B8)(z.filterValues.displayOptions,Ln),cr=Uo()(qn,2),Dr=cr[0],Rr=cr[1];Re(function(Aa){Aa.filters.displayOptions=Dr}),ue(function(Aa){Aa.filterValues.displayAnnotationType=Ln,Aa.filterValues.displayOptions=Rr})},bn=function(Ln){ue(function(qn){qn.queryMode=Ln,qn.page=1})};return{onCategoryChange:rt,onColumnCountChange:Mt,onDisplayOptionsChange:Dt,onDisplayAnnotationTypeChange:hn,onLabelsChange:Vt,onLabelsDiffModeChange:nn,onLabelConfidenceChange:fn,onQueryModeChanged:bn}},ql=e(2556),Fi=function(z){var ue=[],Ce=[];return z.forEach(function(Re,rt){Re.selected&&(ue.push(rt),Ce.push(Re.id))}),{selectIndexs:ue,selectedIds:Ce}},go=function(){var Y=(0,L.useModel)("dataset.common"),z=Y.pageState,ue=Y.setPageState,Ce=Y.pageData,Re=Y.setPageData,rt=Y.loadImgList,Mt=(0,hl.x)(!1),Dt=Uo()(Mt,2),Vt=Dt[0],nn=Dt[1],fn=function(ha){Re(function(Yr){if(z.flagTools){var $a=!Yr.imgList[ha].selected;if(Vt&&Yr.flagTools.lastShiftIndex>=0&&ha!==Yr.flagTools.lastShiftIndex){var Xa=Yr.flagTools.count;Yr.imgList.forEach(function(io,Go){(Go>=Yr.flagTools.lastShiftIndex&&Go<=ha||Go>=ha&&Go<=Yr.flagTools.lastShiftIndex)&&(Xa+=io.selected?0:1,io.selected=!0)}),Yr.flagTools.lastShiftIndex=-1,Yr.flagTools.count=Xa}else Yr.imgList[ha].selected=$a,Yr.flagTools.lastShiftIndex=$a?ha:-1,Yr.flagTools.count+=$a?1:-1}})},hn=function(){var ha=Ce.flagTools.count!==z.pageSize;Re(function(Yr){Yr.imgList.forEach(function($a){$a.selected=ha}),Yr.flagTools.lastShiftIndex=-1,Yr.flagTools.count=ha?z.pageSize:0})},bn=function(){Re(function(ha){ha.imgList.forEach(function(Yr){Yr.selected=!Yr.selected}),ha.flagTools.lastShiftIndex=-1,ha.flagTools.count=z.pageSize-ha.flagTools.count})},Yt=function(){return new Promise(function(ha){if(!z.flagTools){ha(null);return}var Yr=Fi(Ce.imgList),$a=Yr.selectIndexs;if($a.length>0&&($a.length!==Ce.flagTools.lastSavedIndexs.length||Ce.flagTools.lastSavedIndexs.find(function(Xa){return!$a.includes(Xa)}))){nc.Z.confirm({content:"Now selected items have not been saved, these will lose if you click 'OK', are you sure?",onOk:function(){ha(null)}});return}ha(null)})},Ln=function(ha){Yt().then(function(){ue(function(Yr){Yr.page=1,Yr.flagTools.flagStatus=ha})})},qn=function(){Re(function(ha){ha.flagTools.lastShiftIndex=-1,ha.flagTools.lastSavedIndexs=[],ha.flagTools.count=0}),ue(function(ha){ha.page=1,ha.flagTools={flagStatus:no.po.all}})},cr=function(){Yt().then(function(){ue(function(ha){ha.page=1,ha.flagTools=void 0})})},Dr=function(){var za=w()(g()().mark(function ha(Yr){var $a,Xa,io,Go;return g()().wrap(function(Ka){for(;;)switch(Ka.prev=Ka.next){case 0:if(!(Ce.flagTools.count<=0)){Ka.next=3;break}return N.ZP.warning("No any image to be selected!"),Ka.abrupt("return");case 3:return $a=Fi(Ce.imgList),Xa=$a.selectIndexs,io=$a.selectedIds,Go=N.ZP.loading("Flag saving..."),Ka.prev=5,Ka.next=8,ve({datasetId:z.datasetId,flagGroups:[{flag:Yr,ids:io}]});case 8:Go(),Re(function(Za){Za.imgList.forEach(function(ui){ui.selected&&(ui.flag=Yr)}),Za.flagTools.lastSavedIndexs=Xa}),Ka.next=17;break;case 12:Ka.prev=12,Ka.t0=Ka.catch(5),console.error("error",Ka.t0),Go(),N.ZP.error("Flag save fail, please retry!");case 17:case"end":return Ka.stop()}},ha,null,[[5,12]])}));return function(Yr){return za.apply(this,arguments)}}(),Rr=(0,Wu.Z)(function(za){return Nn(za)},{manual:!0,pollingInterval:1e3,pollingWhenHidden:!0,onSuccess:function(ha){var Yr=ha.status;Yr==="success"?(xa(),N.ZP.success("Order update success!"),Re(function($a){$a.screenLoading=""}),ue(function($a){$a.page=1}),rt()):Yr==="fail"&&(xa(),N.ZP.error("Query order task fail, Please retry!"),Re(function($a){$a.screenLoading=""}))}}),Aa=Rr.run,xa=Rr.cancel,pa=function(){var za=w()(g()().mark(function ha(){var Yr,$a,Xa;return g()().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:return Go.prev=0,Re(function(Oo){Oo.screenLoading="Updating order..."}),Go.next=4,ot({datasetId:z.datasetId});case 4:Yr=Go.sent,$a=Yr.id,Xa=Yr.name,Aa({id:$a,name:Xa}),Go.next=14;break;case 10:Go.prev=10,Go.t0=Go.catch(0),console.error("error",Go.t0),Re(function(Oo){Oo.screenLoading=""});case 14:case"end":return Go.stop()}},ha,null,[[0,10]])}));return function(){return za.apply(this,arguments)}}();return(0,ql.Z)(["Shift"],function(za){!z.flagTools||z.previewIndex>=0||nn(za.type==="keydown")},{events:["keydown","keyup"]}),(0,ql.Z)(["shift.q","shift.Q","shift.e","shift.E","v","V"],function(za){!z.flagTools||z.previewIndex>=0||(["v","V"].includes(za.key)&&bn(),["q","Q"].includes(za.key)&&za.shiftKey&&Dr(no.po.picked),["e","E"].includes(za.key)&&za.shiftKey&&Dr(no.po.rejected))}),{enterFlagTools:qn,exitFlagTools:cr,onChangeFlagStatus:Ln,selectItem:fn,changeSelectAll:hn,antiSelect:bn,limitNoSaveChangePage:Yt,saveFlag:Dr,updateOrder:pa}},Cs=function(){var Y=(0,hl.x)({page:1,pageSize:no.L8}),z=Uo()(Y,2),ue=z[0],Ce=z[1],Re=(0,hl.x)({list:[],total:0}),rt=Uo()(Re,2),Mt=rt[0],Dt=rt[1],Vt=(0,Wu.Z)(function(Yt,Ln){return Tu({pageNum:Yt||ue.page,pageSize:Ln||ue.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[ue.page,ue.pageSize],onSuccess:function(Ln){var qn=Ln.datasetList,cr=Ln.total;Dt(function(Dr){Dr.list=qn,Dr.total=cr})},onError:function(){}}),nn=Vt.loading,fn=Vt.run,hn=function(Ln){Ce(function(qn){qn.page=Ln}),fn(Ln)},bn=function(Ln,qn){Ce(function(cr){cr.page=Ln,cr.pageSize=qn}),fn(Ln,qn)};return{loading:nn,pagination:ue,datasetsData:Mt,loadDatasets:fn,setPagination:Ce,onPageChange:hn,onPageSizeChange:bn}},mc=e(7214),Mu=e(21325),Hu=!1;(0,mc.ac)(function(Y){Hu=Y});var ed=function(){var Y=(0,C.useState)(!1),z=Uo()(Y,2),ue=z[0],Ce=z[1],Re=(0,C.useState)(""),rt=Uo()(Re,2),Mt=rt[0],Dt=rt[1],Vt=(0,C.useState)(Hu),nn=Uo()(Vt,2),fn=nn[0],hn=nn[1],bn=(0,C.useState)(0),Yt=Uo()(bn,2),Ln=Yt[0],qn=Yt[1],cr=(0,C.useState)(window.innerWidth),Dr=Uo()(cr,2),Rr=Dr[0],Aa=Dr[1];return(0,C.useEffect)(function(){(0,mc.ac)(function(xa){hn(xa)})},[]),(0,C.useEffect)(function(){Aa(window.innerWidth-Ln)},[Ln]),(0,Mu.Z)("resize",function(){var xa=window.innerWidth-Ln;Aa(xa)},{target:window}),{loading:ue,setLoading:Ce,loadingTip:Mt,setLoadingTip:Dt,isMobile:fn,fixSliderWidth:Ln,setFixSliderWidth:qn,layoutInnerWidth:Rr}};function Ws(Y){return Hs.apply(this,arguments)}function Hs(){return Hs=w()(g()().mark(function Y(z){return g()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.abrupt("return",(0,L.request)("/api/v1/user_info",h()({method:"GET",skipErrorHandler:!0},z||{})));case 1:case"end":return Ce.stop()}},Y)})),Hs.apply(this,arguments)}function jc(Y,z){return Lu.apply(this,arguments)}function Lu(){return Lu=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/login",h()({method:"POST",data:h()({},z),skipErrorHandler:!0},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Lu.apply(this,arguments)}function Ll(Y){return bl.apply(this,arguments)}function bl(){return bl=w()(g()().mark(function Y(z){return g()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.abrupt("return",(0,L.request)("/api/v1/logout",h()({method:"POST"},z||{})));case 1:case"end":return Ce.stop()}},Y)})),bl.apply(this,arguments)}var sc=function(){var Y=(0,L.useModel)("global"),z=Y.setLoading,ue=(0,C.useState)(!1),Ce=Uo()(ue,2),Re=Ce[0],rt=Ce[1],Mt=(0,hl.x)({}),Dt=Uo()(Mt,2),Vt=Dt[0],nn=Dt[1],fn=function(){return new Promise(function(qn){if(Vt.isLogin){qn(null);return}rt(!0)})},hn=function(){var Ln=w()(g()().mark(function qn(){var cr,Dr,Rr,Aa,xa,pa;return g()().wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.prev=0,cr=localStorage.getItem(no.Uf.AUTH_TOKEN),ha.next=4,Ws();case 4:Dr=ha.sent,Rr=Dr.id,Aa=Dr.name,xa=Dr.status,pa=Dr.isStaff,cr&&xa===no.oC.Active&&nn({isLogin:!0,username:Aa,userId:Rr,token:cr,isStaff:pa}),ha.next=16;break;case 12:ha.prev=12,ha.t0=ha.catch(0),console.error("error",ha.t0),nn({isLogin:!1});case 16:case"end":return ha.stop()}},qn,null,[[0,12]])}));return function(){return Ln.apply(this,arguments)}}(),bn=function(){var Ln=w()(g()().mark(function qn(cr){var Dr,Rr,Aa,xa,pa,za,ha,Yr,$a;return g()().wrap(function(io){for(;;)switch(io.prev=io.next){case 0:return Dr=cr.username,Rr=cr.password,Aa=window.location.pathname,xa=Aa.includes("page/login"),z(!0),io.prev=4,io.next=7,jc({username:Dr,password:Rr});case 7:pa=io.sent,za=pa.username,ha=pa.userId,Yr=pa.token,$a=pa.isStaff,nn({isLogin:!0,username:za,token:Yr,userId:ha,isStaff:$a}),localStorage.setItem(no.Uf.AUTH_TOKEN,Yr),xa||rt(!1),N.ZP.success((0,Ji._w)("loginSuccess")),io.next=21;break;case 18:io.prev=18,io.t0=io.catch(4),N.ZP.error((0,Ji._w)("loginAuthenticationFailed"));case 21:return io.prev=21,z(!1),io.finish(21);case 24:case"end":return io.stop()}},qn,null,[[4,18,21,24]])}));return function(cr){return Ln.apply(this,arguments)}}(),Yt=function(){var Ln=w()(g()().mark(function qn(){return g()().wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:return Dr.prev=0,Dr.next=3,Ll();case 3:nn({isLogin:!1}),N.ZP.success((0,Ji._w)("logoutSuccess")),localStorage.removeItem(no.Uf.AUTH_TOKEN),L.history.push("/"),Dr.next=13;break;case 9:Dr.prev=9,Dr.t0=Dr.catch(0),console.error("error",Dr.t0),N.ZP.error((0,Ji._w)("logoutFailed"));case 13:case"end":return Dr.stop()}},qn,null,[[0,9]])}));return function(){return Ln.apply(this,arguments)}}();return{user:Vt,setUser:nn,checkLoginStatus:hn,onLogin:bn,onLogout:Yt,showLoginModal:Re,setShowLoginModal:rt,limitLoginAction:fn}},_s=e(1239),lu=e(32694),Pc=e(54518),Tc=e(93059),_u=e(45060),Bc=e(16962),Yu=e.n(Bc),$c=e(88479),pc=e.n($c),uu=e(17410),Su=e(67761),Nu=e(46134),nl=function(z,ue){var Ce=function(fn){return"".concat(z).concat(fn)},Re=function(fn){return fn.startsWith(z)},rt=function(fn){var hn=fn.substring(z.length),bn=parseInt(hn);return isNaN(bn)?-1:bn},Mt=function(fn){var hn=fn.filter(function(bn){return!!bn.id&&Re(bn.id)}).map(function(bn){return rt(bn.id)});return hn.length>0?Math.max.apply(Math,Pu()(hn)):-1},Dt=Mt(ue)+1,Vt=function(fn){return fn&&Re(fn)?rt(fn):Dt++};return{getStringItemId:Ce,getIntItemId:Vt}},Ue="user_import_category",he="user_import_image",Pe="user_import_annot",Un=function(){var Y=w()(g()().mark(function z(ue){var Ce,Re,rt,Mt,Dt,Vt,nn,fn,hn,bn,Yt,Ln;return g()().wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:Ce=ue.info,Re=ue.images,rt=ue.categories,Mt={info:{},images:[],categories:[],annotations:[]},Mt.info=h()(h()({},Ce),{},{year:new Date().getFullYear(),date_created:new Date().toISOString()}),Dt=nl(Ue,rt),Vt=Dt.getIntItemId,nn={},rt.forEach(function(Dr){var Rr=Vt(Dr.id);nn[Dr.name]=Rr,Mt.categories.push({id:Rr,name:Dr.name})}),fn=nl(he,Re),hn=fn.getIntItemId,bn=pc()(Re),cr.prev=8,Ln=g()().mark(function Dr(){var Rr,Aa,xa,pa;return g()().wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(Rr=Yt.value,Aa=hn(Rr.id),xa={width:0,height:0},!(!Rr.width||!Rr.height)){ha.next=10;break}return ha.next=6,(0,_u.pz)(Rr.urlFullRes);case 6:pa=ha.sent,xa=pa,ha.next=12;break;case 10:xa.width=Rr.width,xa.height=Rr.height;case 12:Mt.images.push(h()({id:Aa,file_name:Rr.name},xa)),Rr.objects.forEach(function(Yr){var $a={id:Mt.annotations.length,image_id:Aa};if(nn&&Yr.categoryName&&nn[Yr.categoryName]!==void 0&&($a.category_id=nn[Yr.categoryName]),Yr.boundingBox){var Xa=(0,Nu.cO)(Yr.boundingBox,xa),io=Xa.x,Go=Xa.y,Oo=Xa.width,Ka=Xa.height,Za=Oo*Ka,ui=[io,Go,Oo,Ka];Object.assign($a,{area:Za,bbox:ui})}if(Yr.segmentation){var ai=Yr.segmentation.split("/").map(function(Hi){return Hi.split(",").map(function(ts){return parseFloat(ts)})}),Ai=ai.reduce(function(Hi,ts){var kl=(0,Nu.X6)(ts),Ru=(0,Nu.I4)(kl);return Hi+Ru},0);Object.assign($a,{segmentation:ai,area:Ai})}if(Yr.mask){var po=(0,Su.ei)(Yr.mask.counts||"",xa,"#fff"),Pi=Yr.mask;if(po){var Oi=(0,Nu.e4)(po),vi=Oi.area;Object.assign($a,{segmentation:Pi,area:vi})}else Object.assign($a,{segmentation:Pi})}if(Yr.points&&Yr.points.length>0){for(var Wi=Yr.points,La=[],mi=0,hs=0;hs*60&&(cr.categories=Re==null?void 0:Re.map(function(xa){var pa=xa.id,za=xa.name;return{id:hn(pa),name:za}})),rt&&rt.length>0){var Dr=new Map(cr.images.map(function(xa){return[xa.name,xa]}));rt.forEach(function(xa){var pa=Dr.get(xa.file_name);pa&&(pa.id=Yt(xa.id),pa.width=xa.width,pa.height=xa.height)})}if(Mt&&Mt.length>0){var Rr=new Map(rt.map(function(xa){return[xa.id,xa]})),Aa=new Map(cr.images.map(function(xa){return[xa.id,xa]}));Mt.forEach(function(xa){var pa=xa.id,za=xa.image_id,ha=xa.category_id,Yr=xa.bbox,$a=xa.segmentation,Xa=xa.keypoints,io=xa.num_keypoints,Go=Rr.get(za),Oo=Aa.get(Yt(za));if(Go&&Oo){var Ka,Za=Go.width,ui=Go.height,ai={id:qn(pa),categoryId:hn(ha),categoryName:Re==null||(Ka=Re.find(function(mi){return mi.id===ha}))===null||Ka===void 0?void 0:Ka.name};if(Yr){var Ai=Uo()(Yr,4),po=Ai[0],Pi=Ai[1],Oi=Ai[2],vi=Ai[3];Object.assign(ai,{boundingBox:(0,Nu.kq)({x:po,y:Pi,width:Oi,height:vi},{width:Za,height:ui})})}if($a&&(Array.isArray($a)?Object.assign(ai,{segmentation:$a==null?void 0:$a.map(function(mi){var hs;return(hs=mi.map(function(Hi){return Hi.toString()}))===null||hs===void 0?void 0:hs.join(",")}).join("/")}):typeof $a.counts=="string"&&Object.assign(ai,{mask:$a})),Xa&&io===uu.v_.pointNames.length){for(var Wi=[],La=0;La*3-1?Mt:0),L.history.push("/quickstart")},Wi=function(){ue.length<=0||(Yr(ue),Go(!1))},La=function(){Oi(),Go(!1),Dt(-1)},mi=(0,C.useCallback)(function(ys){var ds=ue.find(function(al){return al.id===ha[ys].id});return ds&&ds.objects.length>0},[ue,ha]),hs=(0,C.useCallback)(function(ys){return mi(ys)?(ml.Z.error({message:(0,Ji._w)("quicklabel.formModal.deleteImage.title"),description:(0,Ji._w)("quicklabel.formModal.deleteImage.desc"),duration:3}),!0):!1},[mi]),Hi=function(){var ys=w()(g()().mark(function ds(){var al,Ti;return g()().wrap(function(ti){for(;;)switch(ti.prev=ti.next){case 0:return ti.next=2,Un({info:fn,images:ue,categories:Ln});case 2:al=ti.sent,Ti=(0,_u.XV)(Date.now(),"Annotations"),(0,_u.Gf)(al,Ti);case 5:case"end":return ti.stop()}},ds)}));return function(){return ys.apply(this,arguments)}}(),ts=function(ds){var al=ds.file,Ti=ds.fileList;if(!(Ti.length===0||!Ti[0].originFileObj)){var ns=new FileReader;ns.readAsText(Ti[0].originFileObj),ns.onload=function(ti){var gi,Qi=JSON.parse((gi=ti.target)===null||gi===void 0?void 0:gi.result),Eu=zn(Qi);Eu.success?(ui([al]),Pi(Qi)):N.ZP.error(Eu.message)}}},kl=function(ds){var al=Za.findIndex(function(Ti){return Ti.uid===ds.uid});Za.splice(al,1),ui(Pu()(Za)),Pi(En)},Ru=function(ds){Aa(ds),Dt(-1)},rl=function(){Aa(null),Dt(-1)};return{qsModalVisible:io,setQsModalVisible:Go,uploadFiles:ha,setUploadFiles:Yr,images:ue,setImages:Ce,filterImages:xa,onClickQuickstart:vi,onCancelUploadFiles:Wi,onConfirmUploadFiles:La,limitRemoveFile:hs,current:Mt,setCurrent:Dt,categories:Ln,setCategories:qn,filterCategoryName:Rr,setFilterCategoryName:Aa,exportAnnotations:Hi,uploadPreAnnot:Za,onChangePreAnnotFile:ts,onRemovePreAnnotFile:kl,onSelectFilterCategory:Ru,onClearFilterCategory:rl}},Fn=function(){return On()},mr=function(){var Y=(0,L.useModel)("dataset.common"),z=Y.pageState,ue=Y.setPageState,Ce=Y.setPageData,Re=function(hn){ue(function(bn){bn.previewIndex=hn})},rt=function(hn){ue(function(bn){bn.previewIndex=hn})},Mt=function(hn){z.page!==hn&&ue(function(bn){bn.page=hn})},Dt=function(hn,bn){ue(function(Yt){Yt.pageSize=bn})},Vt=function(){},nn=function(){Ce(function(hn){Object.assign(hn,Ii.$I)}),ue(function(hn){Object.assign(hn,Ii.C2)})};return{onPageDidMount:Vt,onPageWillUnmount:nn,clickItem:Re,doubleClickItem:rt,onPageChange:Mt,onPageSizeChange:Dt}},fr=e(86724),or=e.n(fr),jn=function(){var Y=(0,L.useModel)("datasets"),z=Y.loadDatasets,ue=Y.setPagination,Ce=function(Dt){var Vt=JSON.stringify({datasetId:Dt.id,datasetName:Dt.name});L.history.push("/dataset/detail?pageState=".concat(encodeURIComponent(Vt)))},Re=function(Dt,Vt){var nn=JSON.stringify({datasetId:Vt.id,datasetName:Vt.name}),fn="".concat(window.location.origin,"/page/dataset/detail?pageState=").concat(encodeURIComponent(nn)),hn=or()(fn);hn&&N.ZP.success((0,Ji._w)("dataset.onClickCopyLink.success")),Dt.stopPropagation()},rt=function(Dt){ue(function(Vt){Object.assign(Vt,{page:1,pageSize:no.L8},Dt)}),z()};return{onInitPageState:rt,onClickItem:Ce,onClickCopyLink:Re}},ua=e(23707),Or=function(){var Y=(0,L.useModel)("datasets"),z=Y.loadDatasets,ue=Y.setPagination,Ce=(0,ua.BQ)("type")||"flagtool",Re=function(Vt){var nn=JSON.stringify({datasetId:Vt.id,datasetName:Vt.name});L.history.push("/lab/".concat(Ce,"?pageState=").concat(encodeURIComponent(nn)))},rt=function(Vt,nn){var fn=JSON.stringify({datasetId:nn.id,datasetName:nn.name}),hn="".concat(window.location.origin,"/page/dataset/detail?pageState=").concat(encodeURIComponent(fn)),bn=or()(hn);bn&&N.ZP.success((0,Ji._w)("lab.onClickCopyLink.success")),Vt.stopPropagation()},Mt=function(Vt){ue(function(nn){Object.assign(nn,{page:1,pageSize:no.L8},Vt)}),z()};return{labType:Ce,onInitPageState:Mt,onClickItem:Re,onClickCopyLink:rt}},ar=function(){var Y=(0,L.useModel)("user"),z=Y.showLoginModal,ue=(0,L.useModel)("dataset.common"),Ce=ue.pageState,Re=ue.setPageState,rt=ue.pageData,Mt=ue.setPageData,Dt=(0,L.useModel)("dataset.flag"),Vt=Dt.selectItem,nn=Dt.enterFlagTools,fn=Dt.limitNoSaveChangePage,hn=function(Rr){Vt(Rr)},bn=function(Rr){Re(function(Aa){Aa.previewIndex=Rr})},Yt=function(Rr){Ce.page!==Rr&&fn().then(function(){Re(function(Aa){Aa.page=Rr})})},Ln=function(Rr,Aa){fn().then(function(){Re(function(xa){xa.pageSize=Aa})})};(0,ql.Z)(["a","A","d","D","shift.q","shift.Q","shift.e","shift.E","z","Z"],function(Dr){Ce.previewIndex>=0||z||(["a","A"].includes(Dr.key)&&Ce.page>1&&Yt(Ce.page-1),["d","D"].includes(Dr.key)&&Ce.page=0)&&(It[Ut]=ut[Ut]);return It}const c=["onClick","reloadDocument","replace","state","target","to"],m=null;function g(ut,ct){if(!ut){typeof console!="undefined"&&console.warn(ct);try{throw new Error(ct)}catch(It){}}}function M(ut){let{basename:ct,children:It,window:Ct}=ut,Ut=useRef();Ut.current==null&&(Ut.current=createBrowserHistory({window:Ct}));let cn=Ut.current,[rn,Dn]=useState({action:cn.action,location:cn.location});return useLayoutEffect(()=>cn.listen(Dn),[cn]),createElement(Router,{basename:ct,children:It,location:rn.location,navigationType:rn.action,navigator:cn})}function h(ut){let{basename:ct,children:It,window:Ct}=ut,Ut=useRef();Ut.current==null&&(Ut.current=createHashHistory({window:Ct}));let cn=Ut.current,[rn,Dn]=useState({action:cn.action,location:cn.location});return useLayoutEffect(()=>cn.listen(Dn),[cn]),createElement(Router,{basename:ct,children:It,location:rn.location,navigationType:rn.action,navigator:cn})}function S(ut){let{basename:ct,children:It,history:Ct}=ut;const[Ut,cn]=useState({action:Ct.action,location:Ct.location});return useLayoutEffect(()=>Ct.listen(cn),[Ct]),createElement(Router,{basename:ct,children:It,location:Ut.location,navigationType:Ut.action,navigator:Ct})}function w(ut){return!!(ut.metaKey||ut.altKey||ut.ctrlKey||ut.shiftKey)}const C=(0,o.forwardRef)(function(ct,It){let{onClick:Ct,reloadDocument:Ut,replace:cn=!1,state:rn,target:Dn,to:Bn}=ct,Cr=l(ct,c),rr=(0,s.useHref)(Bn),$n=Z(Bn,{replace:cn,state:rn,target:Dn});function kr(Mr){Ct&&Ct(Mr),!Mr.defaultPrevented&&!Ut&&$n(Mr)}return(0,o.createElement)("a",d({},Cr,{href:rr,onClick:kr,ref:It,target:Dn}))}),F=null;function Z(ut,ct){let{target:It,replace:Ct,state:Ut}=ct===void 0?{}:ct,cn=(0,s.useNavigate)(),rn=(0,s.useLocation)(),Dn=(0,s.useResolvedPath)(ut);return(0,o.useCallback)(Bn=>{if(Bn.button===0&&(!It||It==="_self")&&!w(Bn)){Bn.preventDefault();let Cr=!!Ct||(0,n.Ep)(rn)===(0,n.Ep)(Dn);cn(ut,{replace:Cr,state:Ut})}},[rn,cn,Dn,Ct,Ut,It,ut])}function N(ut){let ct=useRef(L(ut)),It=useLocation(),Ct=useMemo(()=>{let rn=L(It.search);for(let Dn of ct.current.keys())rn.has(Dn)||ct.current.getAll(Dn).forEach(Bn=>{rn.append(Dn,Bn)});return rn},[It.search]),Ut=useNavigate(),cn=useCallback((rn,Dn)=>{Ut("?"+L(rn),Dn)},[Ut]);return[Ct,cn]}function L(ut){return ut===void 0&&(ut=""),new URLSearchParams(typeof ut=="string"||Array.isArray(ut)||ut instanceof URLSearchParams?ut:Object.keys(ut).reduce((ct,It)=>{let Ct=ut[It];return ct.concat(Array.isArray(Ct)?Ct.map(Ut=>[It,Ut]):[[It,Ct]])},[]))}var $=e(60581),D=["prefetch"];function T(ut){var ct,It=ut.prefetch,Ct=(0,t.Z)(ut,D),Ut=(0,$.Ov)(),cn=typeof ut.to=="string"?ut.to:(ct=ut.to)===null||ct===void 0?void 0:ct.pathname;return cn?o.createElement(C,(0,a.Z)({onMouseEnter:function(){var Dn;return It&&cn&&((Dn=Ut.preloadRoute)===null||Dn===void 0?void 0:Dn.call(Ut,cn))}},Ct),ut.children):null}var j=e(83753);function K(){"use strict";K=function(){return ut};var ut={},ct=Object.prototype,It=ct.hasOwnProperty,Ct=Object.defineProperty||function(Yn,Zn,Sr){Yn[Zn]=Sr.value},Ut=typeof Symbol=="function"?Symbol:{},cn=Ut.iterator||"@@iterator",rn=Ut.asyncIterator||"@@asyncIterator",Dn=Ut.toStringTag||"@@toStringTag";function Bn(Yn,Zn,Sr){return Object.defineProperty(Yn,Zn,{value:Sr,enumerable:!0,configurable:!0,writable:!0}),Yn[Zn]}try{Bn({},"")}catch(Yn){Bn=function(Sr,Xr,wr){return Sr[Xr]=wr}}function Cr(Yn,Zn,Sr,Xr){var wr=Zn&&Zn.prototype instanceof kr?Zn:kr,Pt=Object.create(wr.prototype),on=new Ur(Xr||[]);return Ct(Pt,"_invoke",{value:Kr(Yn,Sr,on)}),Pt}function rr(Yn,Zn,Sr){try{return{type:"normal",arg:Yn.call(Zn,Sr)}}catch(Xr){return{type:"throw",arg:Xr}}}ut.wrap=Cr;var $n={};function kr(){}function Mr(){}function ia(){}var zr={};Bn(zr,cn,function(){return this});var Wn=Object.getPrototypeOf,wn=Wn&&Wn(Wn(Ma([])));wn&&wn!==ct&&It.call(wn,cn)&&(zr=wn);var Rn=ia.prototype=kr.prototype=Object.create(zr);function sr(Yn){["next","throw","return"].forEach(function(Zn){Bn(Yn,Zn,function(Sr){return this._invoke(Zn,Sr)})})}function Er(Yn,Zn){function Sr(wr,Pt,on,Mn){var Ja=rr(Yn[wr],Yn,Pt);if(Ja.type!=="throw"){var mo=Ja.arg,Ua=mo.value;return Ua&&(0,j.Z)(Ua)=="object"&&It.call(Ua,"__await")?Zn.resolve(Ua.__await).then(function(ka){Sr("next",ka,on,Mn)},function(ka){Sr("throw",ka,on,Mn)}):Zn.resolve(Ua).then(function(ka){mo.value=ka,on(mo)},function(ka){return Sr("throw",ka,on,Mn)})}Mn(Ja.arg)}var Xr;Ct(this,"_invoke",{value:function(Pt,on){function Mn(){return new Zn(function(Ja,mo){Sr(Pt,on,Ja,mo)})}return Xr=Xr?Xr.then(Mn,Mn):Mn()}})}function Kr(Yn,Zn,Sr){var Xr="suspendedStart";return function(wr,Pt){if(Xr==="executing")throw new Error("Generator is already running");if(Xr==="completed"){if(wr==="throw")throw Pt;return ma()}for(Sr.method=wr,Sr.arg=Pt;;){var on=Sr.delegate;if(on){var Mn=ta(on,Sr);if(Mn){if(Mn===$n)continue;return Mn}}if(Sr.method==="next")Sr.sent=Sr._sent=Sr.arg;else if(Sr.method==="throw"){if(Xr==="suspendedStart")throw Xr="completed",Sr.arg;Sr.dispatchException(Sr.arg)}else Sr.method==="return"&&Sr.abrupt("return",Sr.arg);Xr="executing";var Ja=rr(Yn,Zn,Sr);if(Ja.type==="normal"){if(Xr=Sr.done?"completed":"suspendedYield",Ja.arg===$n)continue;return{value:Ja.arg,done:Sr.done}}Ja.type==="throw"&&(Xr="completed",Sr.method="throw",Sr.arg=Ja.arg)}}}function ta(Yn,Zn){var Sr=Zn.method,Xr=Yn.iterator[Sr];if(Xr===void 0)return Zn.delegate=null,Sr==="throw"&&Yn.iterator.return&&(Zn.method="return",Zn.arg=void 0,ta(Yn,Zn),Zn.method==="throw")||Sr!=="return"&&(Zn.method="throw",Zn.arg=new TypeError("The iterator does not provide a '"+Sr+"' method")),$n;var wr=rr(Xr,Yn.iterator,Zn.arg);if(wr.type==="throw")return Zn.method="throw",Zn.arg=wr.arg,Zn.delegate=null,$n;var Pt=wr.arg;return Pt?Pt.done?(Zn[Yn.resultName]=Pt.value,Zn.next=Yn.nextLoc,Zn.method!=="return"&&(Zn.method="next",Zn.arg=void 0),Zn.delegate=null,$n):Pt:(Zn.method="throw",Zn.arg=new TypeError("iterator result is not an object"),Zn.delegate=null,$n)}function ga(Yn){var Zn={tryLoc:Yn[0]};1 in Yn&&(Zn.catchLoc=Yn[1]),2 in Yn&&(Zn.finallyLoc=Yn[2],Zn.afterLoc=Yn[3]),this.tryEntries.push(Zn)}function pr(Yn){var Zn=Yn.completion||{};Zn.type="normal",delete Zn.arg,Yn.completion=Zn}function Ur(Yn){this.tryEntries=[{tryLoc:"root"}],Yn.forEach(ga,this),this.reset(!0)}function Ma(Yn){if(Yn){var Zn=Yn[cn];if(Zn)return Zn.call(Yn);if(typeof Yn.next=="function")return Yn;if(!isNaN(Yn.length)){var Sr=-1,Xr=function wr(){for(;++Sr=0;--wr){var Pt=this.tryEntries[wr],on=Pt.completion;if(Pt.tryLoc==="root")return Xr("end");if(Pt.tryLoc<=this.prev){var Mn=It.call(Pt,"catchLoc"),Ja=It.call(Pt,"finallyLoc");if(Mn&&Ja){if(this.prev=0;--Xr){var wr=this.tryEntries[Xr];if(wr.tryLoc<=this.prev&&It.call(wr,"finallyLoc")&&this.prev=0;--Sr){var Xr=this.tryEntries[Sr];if(Xr.finallyLoc===Zn)return this.complete(Xr.completion,Xr.afterLoc),pr(Xr),$n}},catch:function(Zn){for(var Sr=this.tryEntries.length-1;Sr>=0;--Sr){var Xr=this.tryEntries[Sr];if(Xr.tryLoc===Zn){var wr=Xr.completion;if(wr.type==="throw"){var Pt=wr.arg;pr(Xr)}return Pt}}throw new Error("illegal catch attempt")},delegateYield:function(Zn,Sr,Xr){return this.delegate={iterator:Ma(Zn),resultName:Sr,nextLoc:Xr},this.method==="next"&&(this.arg=void 0),$n}},ut}var k=e(5452);function te(ut,ct,It,Ct,Ut,cn,rn){try{var Dn=ut[cn](rn),Bn=Dn.value}catch(Cr){It(Cr);return}Dn.done?ct(Bn):Promise.resolve(Bn).then(Ct,Ut)}function V(ut){return function(){var ct=this,It=arguments;return new Promise(function(Ct,Ut){var cn=ut.apply(ct,It);function rn(Bn){te(cn,Ct,Ut,rn,Dn,"next",Bn)}function Dn(Bn){te(cn,Ct,Ut,rn,Dn,"throw",Bn)}rn(void 0)})}}var q=e(50648);function le(ut,ct){var It=typeof Symbol!="undefined"&&ut[Symbol.iterator]||ut["@@iterator"];if(!It){if(Array.isArray(ut)||(It=(0,q.Z)(ut))||ct&&ut&&typeof ut.length=="number"){It&&(ut=It);var Ct=0,Ut=function(){};return{s:Ut,n:function(){return Ct>=ut.length?{done:!0}:{done:!1,value:ut[Ct++]}},e:function(Cr){throw Cr},f:Ut}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +Error:`,Ce)}}function Hr(){"console"in Rt&&O.forEach(function(Y){Y in Rt.console&&J(Rt.console,Y,function(z){return function(...ue){ir("console",{args:ue,level:Y}),z&&z.apply(Rt.console,ue)}})})}function Oa(){Qa()&&J(Rt,"fetch",function(Y){return function(...z){const{method:ue,url:Ce}=na(z),Re={args:z,fetchData:{method:ue,url:Ce},startTimestamp:Date.now()};return ir("fetch",Wa({},Re)),Y.apply(Rt,z).then(rt=>(ir("fetch",Vs(Wa({},Re),{endTimestamp:Date.now(),response:rt})),rt),rt=>{throw ir("fetch",Vs(Wa({},Re),{endTimestamp:Date.now(),error:rt})),rt})}})}function oa(Y,z){return!!Y&&typeof Y=="object"&&!!Y[z]}function Jr(Y){return typeof Y=="string"?Y:Y?oa(Y,"url")?Y.url:Y.toString?Y.toString():"":""}function na(Y){if(Y.length===0)return{method:"GET",url:""};if(Y.length===2){const[ue,Ce]=Y;return{url:Jr(ue),method:oa(Ce,"method")?String(Ce.method).toUpperCase():"GET"}}const z=Y[0];return{url:Jr(z),method:oa(z,"method")?String(z.method).toUpperCase():"GET"}}function Lr(){if(!("XMLHttpRequest"in Rt))return;const Y=XMLHttpRequest.prototype;J(Y,"open",function(z){return function(...ue){const Ce=ue[1],Re=this[Ae]={method:Je(ue[0])?ue[0].toUpperCase():ue[0],url:ue[1],request_headers:{}};Je(Ce)&&Re.method==="POST"&&Ce.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const rt=()=>{const Mt=this[Ae];if(Mt&&this.readyState===4){try{Mt.status_code=this.status}catch(Dt){}ir("xhr",{args:ue,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?J(this,"onreadystatechange",function(Mt){return function(...Dt){return rt(),Mt.apply(this,Dt)}}):this.addEventListener("readystatechange",rt),J(this,"setRequestHeader",function(Mt){return function(...Dt){const[Vt,nn]=Dt,fn=this[Ae];return fn&&(fn.request_headers[Vt.toLowerCase()]=nn),Mt.apply(this,Dt)}}),z.apply(this,ue)}}),J(Y,"send",function(z){return function(...ue){const Ce=this[Ae];return Ce&&ue[0]!==void 0&&(Ce.body=ue[0]),ir("xhr",{args:ue,startTimestamp:Date.now(),xhr:this}),z.apply(this,ue)}})}let Zr;function ca(){if(!dt())return;const Y=Rt.onpopstate;Rt.onpopstate=function(...ue){const Ce=Rt.location.href,Re=Zr;if(Zr=Ce,ir("history",{from:Re,to:Ce}),Y)try{return Y.apply(this,ue)}catch(rt){}};function z(ue){return function(...Ce){const Re=Ce.length>2?Ce[2]:void 0;if(Re){const rt=Zr,Mt=String(Re);Zr=Mt,ir("history",{from:rt,to:Mt})}return ue.apply(this,Ce)}}J(Rt.history,"pushState",z),J(Rt.history,"replaceState",z)}const Ta=1e3;let eo,Va;function Xt(Y,z){if(!Y||Y.type!==z.type)return!0;try{if(Y.target!==z.target)return!0}catch(ue){}return!1}function In(Y){if(Y.type!=="keypress")return!1;try{const z=Y.target;if(!z||!z.tagName)return!0;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return!1}catch(z){}return!0}function Tn(Y,z=!1){return ue=>{if(!ue||Va===ue||In(ue))return;const Ce=ue.type==="keypress"?"input":ue.type;eo===void 0?(Y({event:ue,name:Ce,global:z}),Va=ue):Xt(Va,ue)&&(Y({event:ue,name:Ce,global:z}),Va=ue),clearTimeout(eo),eo=Rt.setTimeout(()=>{eo=void 0},Ta)}}function tr(){if(!("document"in Rt))return;const Y=ir.bind(null,"dom"),z=Tn(Y,!0);Rt.document.addEventListener("click",z,!1),Rt.document.addEventListener("keypress",z,!1),["EventTarget","Node"].forEach(ue=>{const Ce=Rt[ue]&&Rt[ue].prototype;!Ce||!Ce.hasOwnProperty||!Ce.hasOwnProperty("addEventListener")||(J(Ce,"addEventListener",function(Re){return function(rt,Mt,Dt){if(rt==="click"||rt=="keypress")try{const Vt=this,nn=Vt.__sentry_instrumentation_handlers__=Vt.__sentry_instrumentation_handlers__||{},fn=nn[rt]=nn[rt]||{refCount:0};if(!fn.handler){const hn=Tn(Y);fn.handler=hn,Re.call(this,rt,hn,Dt)}fn.refCount++}catch(Vt){}return Re.call(this,rt,Mt,Dt)}}),J(Ce,"removeEventListener",function(Re){return function(rt,Mt,Dt){if(rt==="click"||rt=="keypress")try{const Vt=this,nn=Vt.__sentry_instrumentation_handlers__||{},fn=nn[rt];fn&&(fn.refCount--,fn.refCount<=0&&(Re.call(this,rt,fn.handler,Dt),fn.handler=void 0,delete nn[rt]),Object.keys(nn).length===0&&delete Vt.__sentry_instrumentation_handlers__)}catch(Vt){}return Re.call(this,rt,Mt,Dt)}}))})}let yr=null;function Wr(){yr=Rt.onerror,Rt.onerror=function(Y,z,ue,Ce,Re){return ir("error",{column:Ce,error:Re,line:ue,msg:Y,url:z}),yr&&!yr.__SENTRY_LOADER__?yr.apply(this,arguments):!1},Rt.onerror.__SENTRY_INSTRUMENTED__=!0}let ea=null;function dr(){ea=Rt.onunhandledrejection,Rt.onunhandledrejection=function(Y){return ir("unhandledrejection",Y),ea&&!ea.__SENTRY_LOADER__?ea.apply(this,arguments):!0},Rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function _r(){const Y=typeof WeakSet=="function",z=Y?new WeakSet:[];function ue(Re){if(Y)return z.has(Re)?!0:(z.add(Re),!1);for(let rt=0;rtue?Ia(Y,z-1,ue):Ce}function Ca(Y,z,ue=1/0,Ce=1/0,Re=_r()){const[rt,Mt]=Re;if(z==null||["number","boolean","string"].includes(typeof z)&&!nt(z))return z;const Dt=qr(Y,z);if(!Dt.startsWith("[object "))return Dt;if(z.__sentry_skip_normalization__)return z;const Vt=typeof z.__sentry_override_normalization_depth__=="number"?z.__sentry_override_normalization_depth__:ue;if(Vt===0)return Dt.replace("object ","");if(rt(z))return"[Circular ~]";const nn=z;if(nn&&typeof nn.toJSON=="function")try{const Yt=nn.toJSON();return Ca("",Yt,Vt-1,Ce,Re)}catch(Yt){}const fn=Array.isArray(z)?[]:{};let hn=0;const bn=Oe(z);for(const Yt in bn){if(!Object.prototype.hasOwnProperty.call(bn,Yt))continue;if(hn>=Ce){fn[Yt]="[MaxProperties ~]";break}const Ln=bn[Yt];fn[Yt]=Ca(Yt,Ln,Vt-1,Ce,Re),hn++}return Mt(z),fn}function qr(Y,z){try{if(Y==="domain"&&z&&typeof z=="object"&&z._events)return"[Domain]";if(Y==="domainEmitter")return"[DomainEmitter]";if(typeof e.g!="undefined"&&z===e.g)return"[Global]";if(typeof window!="undefined"&&z===window)return"[Window]";if(typeof document!="undefined"&&z===document)return"[Document]";if(Xe(z))return"[SyntheticEvent]";if(typeof z=="number"&&z!==z)return"[NaN]";if(typeof z=="function")return`[Function: ${wr(z)}]`;if(typeof z=="symbol")return`[${String(z)}]`;if(typeof z=="bigint")return`[BigInt: ${String(z)}]`;const ue=fo(z);return/^HTML(\w*)Element$/.test(ue)?`[HTMLElement: ${ue}]`:`[object ${ue}]`}catch(ue){return`**non-serializable** (${ue})`}}function fo(Y){const z=Object.getPrototypeOf(Y);return z?z.constructor.name:"null prototype"}function Co(Y){return~-encodeURI(Y).split(/%..|./).length}function _a(Y){return Co(JSON.stringify(Y))}function bo(Y,z){const ue=Ba(Y,z),Ce={type:z&&z.name,value:Jo(z)};return ue.length&&(Ce.stacktrace={frames:ue}),Ce.type===void 0&&Ce.value===""&&(Ce.value="Unrecoverable error caught"),Ce}function so(Y,z,ue,Ce){const rt=Nt().getClient(),Mt=rt&&rt.getOptions().normalizeDepth,Dt={exception:{values:[{type:Et(z)?z.constructor.name:Ce?"UnhandledRejection":"Error",value:Bo(z,{isUnhandledRejection:Ce})}]},extra:{__serialized__:Ia(z,Mt)}};if(ue){const Vt=Ba(Y,ue);Vt.length&&(Dt.exception.values[0].stacktrace={frames:Vt})}return Dt}function Sa(Y,z){return{exception:{values:[bo(Y,z)]}}}function Ba(Y,z){const ue=z.stacktrace||z.stack||"",Ce=Ko(z);try{return Y(ue,Ce)}catch(Re){}return[]}const Mo=/Minified React error #\d+;/i;function Ko(Y){if(Y){if(typeof Y.framesToPop=="number")return Y.framesToPop;if(Mo.test(Y.message))return 1}return 0}function Jo(Y){const z=Y&&Y.message;return z?z.error&&typeof z.error.message=="string"?z.error.message:z:"No error message"}function ao(Y,z,ue,Ce){const Re=ue&&ue.syntheticException||void 0,rt=ji(Y,z,Re,Ce);return addExceptionMechanism(rt),rt.level="error",ue&&ue.event_id&&(rt.event_id=ue.event_id),resolvedSyncPromise(rt)}function yi(Y,z,ue="info",Ce,Re){const rt=Ce&&Ce.syntheticException||void 0,Mt=_o(Y,z,rt,Re);return Mt.level=ue,Ce&&Ce.event_id&&(Mt.event_id=Ce.event_id),resolvedSyncPromise(Mt)}function ji(Y,z,ue,Ce,Re){let rt;if(be(z)&&z.error)return Sa(Y,z.error);if(Te(z)||Ge(z)){const Mt=z;if("stack"in z)rt=Sa(Y,z);else{const Dt=Mt.name||(Te(Mt)?"DOMError":"DOMException"),Vt=Mt.message?`${Dt}: ${Mt.message}`:Dt;rt=_o(Y,Vt,ue,Ce),K(rt,Vt)}return"code"in Mt&&(rt.tags=Vs(Wa({},rt.tags),{"DOMException.code":`${Mt.code}`})),rt}return pe(z)?Sa(Y,z):pt(z)||Et(z)?(rt=so(Y,z,ue,Re),k(rt,{synthetic:!0}),rt):(rt=_o(Y,z,ue,Ce),K(rt,`${z}`,void 0),k(rt,{synthetic:!0}),rt)}function _o(Y,z,ue,Ce){const Re={message:z};if(Ce&&ue){const rt=Ba(Y,ue);rt.length&&(Re.exception={values:[{value:z,stacktrace:{frames:rt}}]})}return Re}function Bo(Y,{isUnhandledRejection:z}){const ue=st(Y),Ce=z?"promise rejection":"exception";return be(Y)?`Event \`ErrorEvent\` captured as ${Ce} with message \`${Y.message}\``:Et(Y)?`Event \`${oi(Y)}\` (type=${Y.type}) captured as ${Ce}`:`Object captured as ${Ce} with keys: ${ue}`}function oi(Y){try{const z=Object.getPrototypeOf(Y);return z?z.constructor.name:void 0}catch(z){}}class ri{static __initStatic(){this.id="GlobalHandlers"}constructor(z){this.name=ri.id,this._options=Wa({onerror:!0,onunhandledrejection:!0},z),this._installFunc={onerror:Si,onunhandledrejection:Ni}}setupOnce(){Error.stackTraceLimit=50;const z=this._options;for(const ue in z){const Ce=this._installFunc[ue];Ce&&z[ue]&&(Qo(ue),Ce(),this._installFunc[ue]=void 0)}}}ri.__initStatic();function Si(){er("error",Y=>{const[z,ue,Ce]=xo();if(!z.getIntegration(ri))return;const{msg:Re,url:rt,line:Mt,column:Dt,error:Vt}=Y;if(ta()||Vt&&Vt.__sentry_own_request__)return;const nn=Vt===void 0&&Je(Re)?to(Re,rt,Mt,Dt):Ga(ji(ue,Vt||Re,void 0,Ce,!1),rt,Mt,Dt);nn.level="error",qo(z,Vt,nn,"onerror")})}function Ni(){er("unhandledrejection",Y=>{const[z,ue,Ce]=xo();if(!z.getIntegration(ri))return;let Re=Y;try{"reason"in Y?Re=Y.reason:"detail"in Y&&"reason"in Y.detail&&(Re=Y.detail.reason)}catch(Mt){}if(ta()||Re&&Re.__sentry_own_request__)return!0;const rt=Qe(Re)?Ei(Re):ji(ue,Re,void 0,Ce,!0);rt.level="error",qo(z,Re,rt,"onunhandledrejection")})}function Ei(Y){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(Y)}`}]}}}function to(Y,z,ue,Ce){const Re=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let rt=be(Y)?Y.message:Y,Mt="Error";const Dt=rt.match(Re);return Dt&&(Mt=Dt[1],rt=Dt[2]),Ga({exception:{values:[{type:Mt,value:rt}]}},z,ue,Ce)}function Ga(Y,z,ue,Ce){const Re=Y.exception=Y.exception||{},rt=Re.values=Re.values||[],Mt=rt[0]=rt[0]||{},Dt=Mt.stacktrace=Mt.stacktrace||{},Vt=Dt.frames=Dt.frames||[],nn=isNaN(parseInt(Ce,10))?void 0:Ce,fn=isNaN(parseInt(ue,10))?void 0:ue,hn=Je(z)&&z.length>0?z:me();return Vt.length===0&&Vt.push({colno:nn,filename:hn,function:"?",in_app:!0,lineno:fn}),Y}function Qo(Y){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.log(`Global Handler attached: ${Y}`)}function qo(Y,z,ue,Ce){k(ue,{handled:!1,type:Ce}),Y.captureEvent(ue,{originalException:z})}function xo(){const Y=Nt(),z=Y.getClient(),ue=z&&z.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[Y,ue.stackParser,ue.attachStacktrace]}const Ro=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ci{static __initStatic(){this.id="TryCatch"}constructor(z){this.name=Ci.id,this._options=Wa({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},z)}setupOnce(){this._options.setTimeout&&J(Er,"setTimeout",Ri),this._options.setInterval&&J(Er,"setInterval",Ri),this._options.requestAnimationFrame&&J(Er,"requestAnimationFrame",Ui),this._options.XMLHttpRequest&&"XMLHttpRequest"in Er&&J(XMLHttpRequest.prototype,"send",Os);const z=this._options.eventTarget;z&&(Array.isArray(z)?z:Ro).forEach(fs)}}Ci.__initStatic();function Ri(Y){return function(...z){const ue=z[0];return z[0]=pr(ue,{mechanism:{data:{function:wr(Y)},handled:!0,type:"instrument"}}),Y.apply(this,z)}}function Ui(Y){return function(z){return Y.apply(this,[pr(z,{mechanism:{data:{function:"requestAnimationFrame",handler:wr(Y)},handled:!0,type:"instrument"}})])}}function Os(Y){return function(...z){const ue=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(Re=>{Re in ue&&typeof ue[Re]=="function"&&J(ue,Re,function(rt){const Mt={mechanism:{data:{function:Re,handler:wr(rt)},handled:!0,type:"instrument"}},Dt=ce(rt);return Dt&&(Mt.mechanism.data.handler=wr(Dt)),pr(rt,Mt)})}),Y.apply(this,z)}}function fs(Y){const z=Er,ue=z[Y]&&z[Y].prototype;!ue||!ue.hasOwnProperty||!ue.hasOwnProperty("addEventListener")||(J(ue,"addEventListener",function(Ce){return function(Re,rt,Mt){try{typeof rt.handleEvent=="function"&&(rt.handleEvent=pr(rt.handleEvent,{mechanism:{data:{function:"handleEvent",handler:wr(rt),target:Y},handled:!0,type:"instrument"}}))}catch(Dt){}return Ce.apply(this,[Re,pr(rt,{mechanism:{data:{function:"addEventListener",handler:wr(rt),target:Y},handled:!0,type:"instrument"}}),Mt])}}),J(ue,"removeEventListener",function(Ce){return function(Re,rt,Mt){const Dt=rt;try{const Vt=Dt&&Dt.__sentry_wrapped__;Vt&&Ce.call(this,Re,Vt,Mt)}catch(Vt){}return Ce.call(this,Re,Dt,Mt)}}))}const Gs=["fatal","error","warning","log","info","debug"];function xl(Y){return Kn(Y)}function Kn(Y){return Y==="warn"?"warning":Gs.includes(Y)?Y:"log"}function Gr(Y){if(!Y)return{};const z=Y.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!z)return{};const ue=z[6]||"",Ce=z[8]||"";return{host:z[4],path:z[5],protocol:z[2],search:ue,hash:Ce,relative:z[5]+ue+Ce}}function jr(Y){return Y.split(/[\?#]/,1)[0]}function Br(Y){return Y.split(/\\?\//).filter(z=>z.length>0&&z!==",").length}function ra(Y){const{protocol:z,host:ue,path:Ce}=Y,Re=ue&&ue.replace(/^.*@/,"[filtered]:[filtered]@").replace(":80","").replace(":443","")||"";return`${z?`${z}://`:""}${Re}${Ce}`}const ja=1024,Ra="Breadcrumbs";class Pa{static __initStatic(){this.id=Ra}constructor(z){this.name=Pa.id,this.options=Wa({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},z)}setupOnce(){this.options.console&&er("console",Yo),this.options.dom&&er("dom",To(this.options.dom)),this.options.xhr&&er("xhr",Zo),this.options.fetch&&er("fetch",zi),this.options.history&&er("history",bs)}addSentryBreadcrumb(z){this.options.sentry&&Nt().addBreadcrumb({category:`sentry.${z.type==="transaction"?"transaction":"event"}`,event_id:z.event_id,level:z.level,message:j(z)},{event:z})}}Pa.__initStatic();function To(Y){function z(ue){let Ce,Re=typeof Y=="object"?Y.serializeAttribute:void 0,rt=typeof Y=="object"&&typeof Y.maxStringLength=="number"?Y.maxStringLength:void 0;rt&&rt>ja&&((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn(`\`dom.maxStringLength\` cannot exceed ${ja}, but a value of ${rt} was configured. Sentry will use ${ja} instead.`),rt=ja),typeof Re=="string"&&(Re=[Re]);try{const Mt=ue.event;Ce=Gi(Mt)?Q(Mt.target,{keyAttrs:Re,maxStringLength:rt}):Q(Mt,{keyAttrs:Re,maxStringLength:rt})}catch(Mt){Ce=""}Ce.length!==0&&Nt().addBreadcrumb({category:`ui.${ue.name}`,message:Ce},{event:ue.event,name:ue.name,global:ue.global})}return z}function Yo(Y){for(let ue=0;ue0?rt.exception.values[rt.exception.values.length-1]:void 0;Dt&&(rt.exception.values=Il(Xi(Y,z,Re,Mt.originalException,Ce,rt.exception.values,Dt,0),ue))}function Xi(Y,z,ue,Ce,Re,rt,Mt,Dt){if(rt.length>=ue+1)return rt;let Vt=[...rt];if(Ke(Ce[Re],Error)){Vo(Mt,Dt);const nn=Y(z,Ce[Re]),fn=Vt.length;tu(nn,Re,fn,Dt),Vt=Xi(Y,z,ue,Ce[Re],Re,[nn,...Vt],nn,fn)}return Array.isArray(Ce.errors)&&Ce.errors.forEach((nn,fn)=>{if(Ke(nn,Error)){Vo(Mt,Dt);const hn=Y(z,nn),bn=Vt.length;tu(hn,`errors[${fn}]`,bn,Dt),Vt=Xi(Y,z,ue,nn,Re,[hn,...Vt],hn,bn)}}),Vt}function Vo(Y,z){Y.mechanism=Y.mechanism||{type:"generic",handled:!0},Y.mechanism=Vs(Wa({},Y.mechanism),{is_exception_group:!0,exception_id:z})}function tu(Y,z,ue,Ce){Y.mechanism=Y.mechanism||{type:"generic",handled:!0},Y.mechanism=Vs(Wa({},Y.mechanism),{type:"chained",source:z,exception_id:ue,parent_id:Ce})}function Il(Y,z){return Y.map(ue=>(ue.value&&(ue.value=Ee(ue.value,z)),ue))}const ul="cause",Iu=5;class cl{static __initStatic(){this.id="LinkedErrors"}constructor(z={}){this.name=cl.id,this._key=z.key||ul,this._limit=z.limit||Iu}setupOnce(z,ue){z((Ce,Re)=>{const rt=ue(),Mt=rt.getClient(),Dt=rt.getIntegration(cl);if(!Mt||!Dt)return Ce;const Vt=Mt.getOptions();return Ds(bo,Vt.stackParser,Vt.maxValueLength,Dt._key,Dt._limit,Ce,Re),Ce})}}cl.__initStatic();class Ks{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Ks.id}setupOnce(){_t(z=>{if(Nt().getIntegration(Ks)){if(!Er.navigator&&!Er.location&&!Er.document)return z;const ue=z.request&&z.request.url||Er.location&&Er.location.href,{referrer:Ce}=Er.document||{},{userAgent:Re}=Er.navigator||{},rt=Wa(Wa(Wa({},z.request&&z.request.headers),Ce&&{Referer:Ce}),Re&&{"User-Agent":Re}),Mt=Vs(Wa(Wa({},z.request),ue&&{url:ue}),{headers:rt});return Vs(Wa({},z),{request:Mt})}return z})}}Ks.__initStatic();class ws{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ws.id}setupOnce(z,ue){const Ce=Re=>{if(Re.type)return Re;const rt=ue().getIntegration(ws);if(rt){try{if(Qs(Re,rt._previousEvent))return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(Mt){return rt._previousEvent=Re}return rt._previousEvent=Re}return Re};Ce.id=this.name,z(Ce)}}ws.__initStatic();function Qs(Y,z){return z?!!(zl(Y,z)||fu(Y,z)):!1}function zl(Y,z){const ue=Y.message,Ce=z.message;return!(!ue&&!Ce||ue&&!Ce||!ue&&Ce||ue!==Ce||!Ms(Y,z)||!rs(Y,z))}function fu(Y,z){const ue=Bs(z),Ce=Bs(Y);return!(!ue||!Ce||ue.type!==Ce.type||ue.value!==Ce.value||!Ms(Y,z)||!rs(Y,z))}function rs(Y,z){let ue=js(Y),Ce=js(z);if(!ue&&!Ce)return!0;if(ue&&!Ce||!ue&&Ce||(ue=ue,Ce=Ce,Ce.length!==ue.length))return!1;for(let Re=0;Re{z===void 0||z===ue||zo(getCurrentHub())}))}function sa(Y){const z=getCurrentHub().getClient();z&&z.captureUserFeedback(Y)}var fl=e(10063);const ru="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function Xs(Y){const z=Y.match(/^([^.]+)/);return z!==null&&parseInt(z[0])>=17}const Fl="unknown",Gl={componentStack:null,error:null,eventId:null};function Io(Y,z){const ue=new WeakMap;function Ce(Re,rt){if(!ue.has(Re)){if(Re.cause)return ue.set(Re,!0),Ce(Re.cause,rt);Re.cause=rt}}Ce(Y,z)}class bi extends C.Component{constructor(z){super(z),bi.prototype.__init.call(this),this.state=Gl,this._openFallbackReportDialog=!0;const ue=Nt().getClient();ue&&ue.on&&z.showDialog&&(this._openFallbackReportDialog=!1,ue.on("afterSendEvent",Ce=>{!Ce.type&&Ce.event_id===this._lastEventId&&Ps(Vs(Wa({},z.dialogOptions),{eventId:this._lastEventId}))}))}componentDidCatch(z,{componentStack:ue}){const{beforeCapture:Ce,onError:Re,showDialog:rt,dialogOptions:Mt}=this.props;ia(Dt=>{if(Xs(C.version)&&pe(z)){const nn=new Error(z.message);nn.name=`React ErrorBoundary ${nn.name}`,nn.stack=ue,Io(z,nn)}Ce&&Ce(Dt,z,ue);const Vt=Ct(z,{contexts:{react:{componentStack:ue}}});Re&&Re(z,ue,Vt),rt&&(this._lastEventId=Vt,this._openFallbackReportDialog&&Ps(Vs(Wa({},Mt),{eventId:Vt}))),this.setState({error:z,componentStack:ue,eventId:Vt})})}componentDidMount(){const{onMount:z}=this.props;z&&z()}componentWillUnmount(){const{error:z,componentStack:ue,eventId:Ce}=this.state,{onUnmount:Re}=this.props;Re&&Re(z,ue,Ce)}__init(){this.resetErrorBoundary=()=>{const{onReset:z}=this.props,{error:ue,componentStack:Ce,eventId:Re}=this.state;z&&z(ue,Ce,Re),this.setState(Gl)}}render(){const{fallback:z,children:ue}=this.props,Ce=this.state;if(Ce.error){let Re;return typeof z=="function"?Re=z({error:Ce.error,componentStack:Ce.componentStack,resetError:this.resetErrorBoundary,eventId:Ce.eventId}):Re=z,C.isValidElement(Re)?Re:(z&&(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&A.warn("fallback did not produce a valid ReactElement"),null)}return typeof ue=="function"?ue():ue}}function fc(Y,z){const ue=Y.displayName||Y.name||Fl,Ce=Re=>React.createElement(bi,Vs(Wa({},z),{__self:this,__source:{fileName:ru,lineNumber:227}}),React.createElement(Y,Vs(Wa({},Re),{__self:this,__source:{fileName:ru,lineNumber:228}})));return Ce.displayName=`errorBoundary(${ue})`,hoistNonReactStatics(Ce,Y),Ce}var ec=e(51830),no=e(76180),Ji=e(53357),Zs={200:"requestConfig.success.msg",401:"requestConfig.unAuth.msg",403:"requestConfig.permissionDenied.msg",429:"errCode.TokenExceedsRateLimit",500:"requestConfig.responseStatus.msg"},Na={101:"requestConfig.errorContent.msg",200001:"errCode.PartialSuccessBatchAssignLeaders",200002:"errCode.PartialSuccessBatchAssignWorkers",4e5:"errCode.BadRequest",400001:"errCode.ParameterMissing",400002:"errCode.ParameterIsInvalid",400050:"errCode.AnnotationNotListOfObj",400051:"errCode.AnnotationMissingCatName",400052:"errCode.AnnotationMissingBBox",400053:"errCode.AnnotationBBoxFormatError",400054:"errCode.AnnotationFormatError",400100:"errCode.FlagGroupsNotListOfObj",400101:"errCode.FlagObjectMissingFlag",400102:"errCode.FlagObjectFlagValueInvalid",400103:"errCode.FlagObjectMissingIDs",400104:"errCode.FlagObjectIDsNotList",400150:"errCode.LabelSetNameInvalid",400151:"errCode.LabelSetNameConflicts",400200:"errCode.UserNotFoundForLabelProject",400201:"errCode.UserNotActiveForLabelProject",400202:"errCode.DatasetNotFoundForLabelProject",400203:"errCode.LabelTaskNotFoundForLabelProject",400204:"errCode.CreateLabelProjectRequireManager",400205:"errCode.CreateLabelProjectRequireDataset",400206:"errCode.CreateLabelProjectRequireCategory",400207:"errCode.CreateLabelProjectDatasetOccupied",400208:"errCode.EditLabelProjectRequireManager",400209:"errCode.InitLabelProjectMustBeWaiting",400210:"errCode.InitLabelProjectTaskConfigError",400211:"errCode.QALabelProjectActionError",400212:"errCode.QALabelProjectMustBeReviewing",400213:"errCode.ExportLabelProjectMustBeAccepted",400214:"errCode.LeaderIDIsRequired",400215:"errCode.LabelerIDIsRequired",400216:"errCode.LabelProjectRoleIsNotTaskLevel",400217:"errCode.CantReplaceRoleWithTheSameUser",400218:"errCode.OldUserDoesNotHaveTheTaskRole",400219:"errCode.NewUserAlreadyHaveTheTaskRole",400220:"errCode.CantTransferRoleBetweenDifferentTask",400221:"errCode.CantTransferRoleToDifferentKind",400222:"errCode.RestartLabelTaskMustBeRejected",400223:"errCode.QALabelTaskActionError",400224:"errCode.AcceptLabelTaskMustBeReviewing",400225:"errCode.RejectLabelTaskMustBeReviewing",400226:"errCode.ForceAcceptLabelTaskMustBeRejected",400227:"errCode.LabelAnnotationMissingFields",400228:"errCode.LabelAnnotationFieldValueInvalid",400229:"errCode.LabelImageRequireTaskStatusWorking",400230:"errCode.LabelImageRequireUnfinishedReviewing",400231:"errCode.ReviewImageRequireTaskStatusWorking",400232:"errCode.ReviewImageRequireFinishedLabeling",400233:"errCode.ReviewImageTargetLabelNotFound",400234:"errCode.ReviewImageFoundExistedReview",400235:"errCode.CantDeleteAllOwnersOfLabelProject",400236:"errCode.NumOfTaskLeaderMismatchesConfig",400237:"errCode.TaskDoesNotRequireReviewer",400238:"errCode.NumOfTaskLabelerMismatchesConfig",400239:"errCode.NumOfTaskReviewerMismatchesConfig",400240:"errCode.TryInitRoleForTaskWithActiveRoles",400241:"errCode.TaskRoleNotOfLeaderKind",401e3:"errCode.Unauthorized",401001:"requestConfig.unAuth.msg",403e3:"errCode.Forbidden",403001:"requestConfig.permissionDenied.msg",403050:"errCode.UserAuthenticationFailed",403051:"errCode.UserCantViewLabelProjectTask",403052:"errCode.UserCantViewLabelProjectRole",403053:"errCode.UserCantCreateLabelProject",403054:"errCode.UserCantViewLabelProject",403055:"errCode.UserCantEditLabelProject",403056:"errCode.UserCantInitLabelProject",403057:"errCode.UserCantQALabelProject",403058:"errCode.UserCantExportLabelProject",403059:"errCode.UserCantAssignLabelTaskLeader",403060:"errCode.UserCantAssignLabelTaskWorker",403061:"errCode.UserCantRestartLabelTask",403062:"errCode.UserCantQALabelTask",403063:"errCode.UserCantLabelTaskImage",403064:"errCode.UserCantReviewTaskImage",404e3:"errCode.NotFound",404050:"errCode.DatasetNotFound",404051:"errCode.DatasetNotReadable",404052:"errCode.DatasetMissingEmbdFile",404053:"errCode.DatasetImageNotFound",404054:"errCode.DatasetHasNoFNFPData",404055:"errCode.DatasetLabelNotFound",404056:"errCode.DatasetFNFPPrecisionNotFound",404100:"errCode.ReRankByFlagTaskNotFound",404150:"errCode.LabelProjectNotFound",404151:"errCode.LabelProjectRoleNotFound",404152:"errCode.LabelProjectTaskNotFound",404153:"errCode.LabelTaskImageNotFound",429002:"errCode.TokenExceedsRateLimit",5e5:"errCode.InternalError",500001:"errCode.FailedToCloneLabelSet"},au=function(z,ue){return z&&Na[z]?(0,Ji._w)(Na[z]):ue&&Zs[ue]?(0,Ji._w)(Zs[ue]):(0,Ji._w)("requestConfig.errorData.msg",{code:"".concat(ue).concat(z?"-".concat(z):"")})},_i=e(35667);function Al(){return vl.apply(this,arguments)}function vl(){return vl=w()(g()().mark(function Y(){return g()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return document.addEventListener("wheel",function(Ce){(Ce.ctrlKey||Ce.detail)&&Ce.preventDefault()},{capture:!1,passive:!1}),document.addEventListener("keydown",function(Ce){(Ce.ctrlKey===!0||Ce.metaKey===!0)&&(Ce.keyCode===61||Ce.keyCode===107||Ce.keyCode===173||Ce.keyCode===109||Ce.keyCode===187||Ce.keyCode===189)&&Ce.preventDefault()},!1),N.ZP.config({duration:1.5,maxCount:2}),ue.abrupt("return",{name:"@umijs/max"});case 4:case"end":return ue.stop()}},Y)})),vl.apply(this,arguments)}var vu=function(){return{pure:!0,title:(0,Ji._w)("layout.title")}};function Bl(Y){var z={showDialog:!0,fallback:function(Ce){return(0,_i.jsx)(ec.xA,h()({},Ce))}};return C.createElement(bi,z,Y)}var tc={baseURL:"",timeout:1e5,headers:{"Content-Type":"application/json"},errorConfig:{errorHandler:function(z,ue){var Ce;if(!/^2/.test(z.status)&&!(ue!=null&&ue.skipErrorHandler)&&(((Ce=z.response)===null||Ce===void 0?void 0:Ce.status)===401&&(L.history.push("/"),localStorage.removeItem(no.Uf.AUTH_TOKEN)),!(ue!=null&&ue.hideCodeErrorMsg)))if(z.response){var Re;N.ZP.error(au((Re=z.response.data)===null||Re===void 0?void 0:Re.code,z.response.status))}else z.request?N.ZP.error((0,Ji._w)("requestConfig.noResponse.msg")):N.ZP.error((0,Ji._w)("requestConfig.requestError.msg"))}},requestInterceptors:[function(Y){if(Y.params&&(Y.params=Z().decamelizeKeys(Y.params)),Y.data&&(Y.data=Z().decamelizeKeys(Y.data)),Y.headers){var z,ue;if((z=Y.url)!==null&&z!==void 0&&z.includes("https://api.deepdataspace.com"))Y.headers.Token="dds-tool-free";else if(((ue=Y.url)===null||ue===void 0?void 0:ue.indexOf("http"))!==0){var Ce=localStorage.getItem(no.Uf.AUTH_TOKEN);Ce&&(Y.headers.Token=Ce)}}return h()({},Y)}],responseInterceptors:[function(Y){var z;if(((z=Y.data)===null||z===void 0?void 0:z.code)===0){var ue;return Y.data=Z().camelizeKeys(((ue=Y.data)===null||ue===void 0?void 0:ue.data)||{}),Y}else{var Ce;if(!((Ce=Y.config)!==null&&Ce!==void 0&&Ce.hideCodeErrorMsg)){var Re;N.ZP.error(au((Re=Y.data)===null||Re===void 0?void 0:Re.code,200))}throw Y}}]},Zu=e(7862),Lo=e.n(Zu),Au=e(81690),Kl=e.n(Au),vs=e(21700),Ol=e.n(vs),gl=e(31236),kt=e.n(gl);function Di(){return Di=Object.assign||function(Y){for(var z=1;z=0||(Re[ue]=Y[ue]);return Re}var uo={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Uu={rel:["amphtml","canonical","alternate"]},gu={type:["application/ld+json"]},ss={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Dl=Object.keys(uo).map(function(Y){return uo[Y]}),Mi={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},xi=Object.keys(Mi).reduce(function(Y,z){return Y[Mi[z]]=z,Y},{}),qi=function(Y,z){for(var ue=Y.length-1;ue>=0;ue-=1){var Ce=Y[ue];if(Object.prototype.hasOwnProperty.call(Ce,z))return Ce[z]}return null},as=function(Y){var z=qi(Y,uo.TITLE),ue=qi(Y,"titleTemplate");if(Array.isArray(z)&&(z=z.join("")),ue&&z)return ue.replace(/%s/g,function(){return z});var Ce=qi(Y,"defaultTitle");return z||Ce||void 0},vo=function(Y){return qi(Y,"onChangeClientState")||function(){}},Js=function(Y,z){return z.filter(function(ue){return ue[Y]!==void 0}).map(function(ue){return ue[Y]}).reduce(function(ue,Ce){return Di({},ue,Ce)},{})},ou=function(Y,z){return z.filter(function(ue){return ue[uo.BASE]!==void 0}).map(function(ue){return ue[uo.BASE]}).reverse().reduce(function(ue,Ce){if(!ue.length)for(var Re=Object.keys(Ce),rt=0;rt/g,">").replace(/"/g,""").replace(/'/g,"'")},gs=function(Y){return Object.keys(Y).reduce(function(z,ue){var Ce=Y[ue]!==void 0?ue+'="'+Y[ue]+'"':""+ue;return z?z+" "+Ce:Ce},"")},Ou=function(Y,z){return z===void 0&&(z={}),Object.keys(Y).reduce(function(ue,Ce){return ue[Mi[Ce]||Ce]=Y[Ce],ue},z)},ks=function(Y,z){return z.map(function(ue,Ce){var Re,rt=((Re={key:Ce})["data-rh"]=!0,Re);return Object.keys(ue).forEach(function(Mt){var Dt=Mi[Mt]||Mt;Dt==="innerHTML"||Dt==="cssText"?rt.dangerouslySetInnerHTML={__html:ue.innerHTML||ue.cssText}:rt[Dt]=ue[Mt]}),C.createElement(Y,rt)})},va=function(Y,z,ue){switch(Y){case uo.TITLE:return{toComponent:function(){return Re=z.titleAttributes,(rt={key:Ce=z.title})["data-rh"]=!0,Mt=Ou(Re,rt),[C.createElement(uo.TITLE,Mt,Ce)];var Ce,Re,rt,Mt},toString:function(){return function(Ce,Re,rt,Mt){var Dt=gs(rt),Vt=mu(Re);return Dt?"<"+Ce+' data-rh="true" '+Dt+">"+Ss(Vt,Mt)+"":"<"+Ce+' data-rh="true">'+Ss(Vt,Mt)+""}(Y,z.title,z.titleAttributes,ue)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Ou(z)},toString:function(){return gs(z)}};default:return{toComponent:function(){return ks(Y,z)},toString:function(){return function(Ce,Re,rt){return Re.reduce(function(Mt,Dt){var Vt=Object.keys(Dt).filter(function(hn){return!(hn==="innerHTML"||hn==="cssText")}).reduce(function(hn,bn){var Yt=Dt[bn]===void 0?bn:bn+'="'+Ss(Dt[bn],rt)+'"';return hn?hn+" "+Yt:Yt},""),nn=Dt.innerHTML||Dt.cssText||"",fn=jl.indexOf(Ce)===-1;return Mt+"<"+Ce+' data-rh="true" '+Vt+(fn?"/>":">"+nn+"")},"")}(Y,z,ue)}}}},at=function(Y){var z=Y.baseTag,ue=Y.bodyAttributes,Ce=Y.encode,Re=Y.htmlAttributes,rt=Y.noscriptTags,Mt=Y.styleTags,Dt=Y.title,Vt=Dt===void 0?"":Dt,nn=Y.titleAttributes,fn=Y.linkTags,hn=Y.metaTags,bn=Y.scriptTags,Yt={toComponent:function(){},toString:function(){return""}};if(Y.prioritizeSeoTags){var Ln=function(qn){var cr=qn.linkTags,Dr=qn.scriptTags,Rr=qn.encode,Aa=Us(qn.metaTags,ss),xa=Us(cr,Uu),pa=Us(Dr,gu);return{priorityMethods:{toComponent:function(){return[].concat(ks(uo.META,Aa.priority),ks(uo.LINK,xa.priority),ks(uo.SCRIPT,pa.priority))},toString:function(){return va(uo.META,Aa.priority,Rr)+" "+va(uo.LINK,xa.priority,Rr)+" "+va(uo.SCRIPT,pa.priority,Rr)}},metaTags:Aa.default,linkTags:xa.default,scriptTags:pa.default}}(Y);Yt=Ln.priorityMethods,fn=Ln.linkTags,hn=Ln.metaTags,bn=Ln.scriptTags}return{priority:Yt,base:va(uo.BASE,z,Ce),bodyAttributes:va("bodyAttributes",ue,Ce),htmlAttributes:va("htmlAttributes",Re,Ce),link:va(uo.LINK,fn,Ce),meta:va(uo.META,hn,Ce),noscript:va(uo.NOSCRIPT,rt,Ce),script:va(uo.SCRIPT,bn,Ce),style:va(uo.STYLE,Mt,Ce),title:va(uo.TITLE,{title:Vt,titleAttributes:nn},Ce)}},Kt=[],Vn=function(Y,z){var ue=this;z===void 0&&(z=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(Ce){ue.context.helmet=Ce},helmetInstances:{get:function(){return ue.canUseDOM?Kt:ue.instances},add:function(Ce){(ue.canUseDOM?Kt:ue.instances).push(Ce)},remove:function(Ce){var Re=(ue.canUseDOM?Kt:ue.instances).indexOf(Ce);(ue.canUseDOM?Kt:ue.instances).splice(Re,1)}}},this.context=Y,this.canUseDOM=z,z||(Y.helmet=at({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},gr=C.createContext({}),Da=Lo().shape({setHelmet:Lo().func,helmetInstances:Lo().shape({get:Lo().func,add:Lo().func,remove:Lo().func})}),lo=typeof document!="undefined",ii=function(Y){function z(ue){var Ce;return(Ce=Y.call(this,ue)||this).helmetData=new Vn(Ce.props.context,z.canUseDOM),Ce}return Ql(z,Y),z.prototype.render=function(){return C.createElement(gr.Provider,{value:this.helmetData.value},this.props.children)},z}(C.Component);ii.canUseDOM=lo,ii.propTypes={context:Lo().shape({helmet:Lo().shape()}),children:Lo().node.isRequired},ii.defaultProps={context:{}},ii.displayName="HelmetProvider";var Fo=function(Y,z){var ue,Ce=document.head||document.querySelector(uo.HEAD),Re=Ce.querySelectorAll(Y+"[data-rh]"),rt=[].slice.call(Re),Mt=[];return z&&z.length&&z.forEach(function(Dt){var Vt=document.createElement(Y);for(var nn in Dt)Object.prototype.hasOwnProperty.call(Dt,nn)&&(nn==="innerHTML"?Vt.innerHTML=Dt.innerHTML:nn==="cssText"?Vt.styleSheet?Vt.styleSheet.cssText=Dt.cssText:Vt.appendChild(document.createTextNode(Dt.cssText)):Vt.setAttribute(nn,Dt[nn]===void 0?"":Dt[nn]));Vt.setAttribute("data-rh","true"),rt.some(function(fn,hn){return ue=hn,Vt.isEqualNode(fn)})?rt.splice(ue,1):Mt.push(Vt)}),rt.forEach(function(Dt){return Dt.parentNode.removeChild(Dt)}),Mt.forEach(function(Dt){return Ce.appendChild(Dt)}),{oldTags:rt,newTags:Mt}},es=function(Y,z){var ue=document.getElementsByTagName(Y)[0];if(ue){for(var Ce=ue.getAttribute("data-rh"),Re=Ce?Ce.split(","):[],rt=[].concat(Re),Mt=Object.keys(z),Dt=0;Dt=0;hn-=1)ue.removeAttribute(rt[hn]);Re.length===rt.length?ue.removeAttribute("data-rh"):ue.getAttribute("data-rh")!==Mt.join(",")&&ue.setAttribute("data-rh",Mt.join(","))}},ei=function(Y,z){var ue=Y.baseTag,Ce=Y.htmlAttributes,Re=Y.linkTags,rt=Y.metaTags,Mt=Y.noscriptTags,Dt=Y.onChangeClientState,Vt=Y.scriptTags,nn=Y.styleTags,fn=Y.title,hn=Y.titleAttributes;es(uo.BODY,Y.bodyAttributes),es(uo.HTML,Ce),function(qn,cr){qn!==void 0&&document.title!==qn&&(document.title=mu(qn)),es(uo.TITLE,cr)}(fn,hn);var bn={baseTag:Fo(uo.BASE,ue),linkTags:Fo(uo.LINK,Re),metaTags:Fo(uo.META,rt),noscriptTags:Fo(uo.NOSCRIPT,Mt),scriptTags:Fo(uo.SCRIPT,Vt),styleTags:Fo(uo.STYLE,nn)},Yt={},Ln={};Object.keys(bn).forEach(function(qn){var cr=bn[qn],Dr=cr.newTags,Rr=cr.oldTags;Dr.length&&(Yt[qn]=Dr),Rr.length&&(Ln[qn]=bn[qn].oldTags)}),z&&z(),Dt(Y,Yt,Ln)},di=null,Eo=function(Y){function z(){for(var Ce,Re=arguments.length,rt=new Array(Re),Mt=0;Mt elements are self-closing and can not contain children. Refer to our API for more information.")}},ue.flattenArrayTypeChildren=function(Ce){var Re,rt=Ce.child,Mt=Ce.arrayTypeChildren;return Di({},Mt,((Re={})[rt.type]=[].concat(Mt[rt.type]||[],[Di({},Ce.newChildProps,this.mapNestedChildrenToProps(rt,Ce.nestedChildren))]),Re))},ue.mapObjectTypeChildren=function(Ce){var Re,rt,Mt=Ce.child,Dt=Ce.newProps,Vt=Ce.newChildProps,nn=Ce.nestedChildren;switch(Mt.type){case uo.TITLE:return Di({},Dt,((Re={})[Mt.type]=nn,Re.titleAttributes=Di({},Vt),Re));case uo.BODY:return Di({},Dt,{bodyAttributes:Di({},Vt)});case uo.HTML:return Di({},Dt,{htmlAttributes:Di({},Vt)});default:return Di({},Dt,((rt={})[Mt.type]=Di({},Vt),rt))}},ue.mapArrayTypeChildrenToProps=function(Ce,Re){var rt=Di({},Re);return Object.keys(Ce).forEach(function(Mt){var Dt;rt=Di({},rt,((Dt={})[Mt]=Ce[Mt],Dt))}),rt},ue.warnOnInvalidChildren=function(Ce,Re){return Ol()(Dl.some(function(rt){return Ce.type===rt}),typeof Ce.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Dl.join(", ")+" are allowed. Helmet does not support rendering <"+Ce.type+"> elements. Refer to our API for more information."),Ol()(!Re||typeof Re=="string"||Array.isArray(Re)&&!Re.some(function(rt){return typeof rt!="string"}),"Helmet expects a string as a child of <"+Ce.type+">. Did you forget to wrap your children in braces? ( <"+Ce.type+">{``} ) Refer to our API for more information."),!0},ue.mapChildrenToProps=function(Ce,Re){var rt=this,Mt={};return C.Children.forEach(Ce,function(Dt){if(Dt&&Dt.props){var Vt=Dt.props,nn=Vt.children,fn=$o(Vt,Ao),hn=Object.keys(fn).reduce(function(Yt,Ln){return Yt[xi[Ln]||Ln]=fn[Ln],Yt},{}),bn=Dt.type;switch(typeof bn=="symbol"?bn=bn.toString():rt.warnOnInvalidChildren(Dt,nn),bn){case uo.FRAGMENT:Re=rt.mapChildrenToProps(nn,Re);break;case uo.LINK:case uo.META:case uo.NOSCRIPT:case uo.SCRIPT:case uo.STYLE:Mt=rt.flattenArrayTypeChildren({child:Dt,arrayTypeChildren:Mt,newChildProps:hn,nestedChildren:nn});break;default:Re=rt.mapObjectTypeChildren({child:Dt,newProps:Re,newChildProps:hn,nestedChildren:nn})}}}),this.mapArrayTypeChildrenToProps(Mt,Re)},ue.render=function(){var Ce=this.props,Re=Ce.children,rt=$o(Ce,ki),Mt=Di({},rt),Dt=rt.helmetData;return Re&&(Mt=this.mapChildrenToProps(Re,Mt)),!Dt||Dt instanceof Vn||(Dt=new Vn(Dt.context,Dt.instances)),Dt?C.createElement(Eo,Di({},Mt,{context:Dt.value,helmetData:void 0})):C.createElement(gr.Consumer,null,function(Vt){return C.createElement(Eo,Di({},Mt,{context:Vt}))})},z}(C.Component);ms.propTypes={base:Lo().object,bodyAttributes:Lo().object,children:Lo().oneOfType([Lo().arrayOf(Lo().node),Lo().node]),defaultTitle:Lo().string,defer:Lo().bool,encodeSpecialCharacters:Lo().bool,htmlAttributes:Lo().object,link:Lo().arrayOf(Lo().object),meta:Lo().arrayOf(Lo().object),noscript:Lo().arrayOf(Lo().object),onChangeClientState:Lo().func,script:Lo().arrayOf(Lo().object),style:Lo().arrayOf(Lo().object),title:Lo().string,titleAttributes:Lo().object,titleTemplate:Lo().string,prioritizeSeoTags:Lo().bool,helmetData:Lo().object},ms.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},ms.displayName="Helmet";var Du={},Xl=function(z){return C.createElement(ii,{context:Du},z)},ls=e(96662);function wu(Y){var z={};return(0,_i.jsx)(ls.J.Provider,{value:z,children:Y.children})}function Jl(Y){return(0,_i.jsx)(wu,{children:Y})}var us=e(62376),Oc=e.n(us),nc=e(62109),ml=e(65388),Pl=e(42505),$l=["appConfig"],ku=null,Dc=function(){return ku||(ku=Ar().applyPlugins({key:"antd",type:L.ApplyPluginsType.modify,initialValue:h()({},{theme:{token:{colorLink:"#1e53f5",colorPrimary:"#1e53f5"}}})})),ku};function pu(Y){var z=Dc(),ue=z.appConfig,Ce=Oc()(z,$l),Re=Y;return Ce.prefixCls&&(nc.Z.config({rootPrefixCls:Ce.prefixCls}),N.ZP.config({prefixCls:"".concat(Ce.prefixCls,"-message")}),ml.Z.config({prefixCls:"".concat(Ce.prefixCls,"-notification")})),Ce.iconPrefixCls&&Pl.ZP.config({iconPrefixCls:Ce.iconPrefixCls}),Ce.theme&&Pl.ZP.config({theme:Ce.theme}),Re=(0,_i.jsx)(Pl.ZP,h()(h()({},Ce),{},{children:Re})),Re}var hu=e(47338);function yu(){return(0,_i.jsx)("div",{})}function os(Y){var z=C.useRef(!1),ue=(0,hu.t)("@@initialState")||{},Ce=ue.loading,Re=Ce===void 0?!1:Ce;return C.useEffect(function(){Re||(z.current=!0)},[Re]),Re&&!z.current?(0,_i.jsx)(yu,{}):Y.children}function ju(Y){return(0,_i.jsx)(os,{children:Y})}var ps={};function Ki(Y){return Y.replace(Y[0],Y[0].toUpperCase()).replace(/-(w)/g,function(z,ue){return ue.toUpperCase()})}function Ts(Y){var z=Y.routes;Object.keys(z).forEach(function(ue){var Ce=z[ue].icon;if(Ce&&typeof Ce=="string"){var Re=Ki(Ce);(ps[Re]||ps[Re+"Outlined"])&&(z[ue].icon=C.createElement(ps[Re]||ps[Re+"Outlined"]))}})}var qs=e(88205),Uo=e.n(qs),su=e(6901),cs=e.n(su),rc=e(85417),el=e(16221);function pl(){var Y=getLocale();if(moment!=null&&moment.locale){var z;moment.locale(((z=localeInfo[Y])===null||z===void 0?void 0:z.momentLocale)||"")}setIntl(Y)}var Ls=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?C.useLayoutEffect:C.useEffect,fi=function(z){var ue,Ce=(0,el.Kd)(),Re=C.useState(Ce),rt=Uo()(Re,2),Mt=rt[0],Dt=rt[1],Vt=C.useState(function(){return(0,el.lw)(Mt,!0)}),nn=Uo()(Vt,2),fn=nn[0],hn=nn[1],bn=function(cr){if(cs()!==null&&cs()!==void 0&&cs().locale){var Dr;cs().locale(((Dr=el.H8[cr])===null||Dr===void 0?void 0:Dr.momentLocale)||"en")}Dt(cr),hn((0,el.lw)(cr))};Ls(function(){return el.B.on(el.PZ,bn),function(){el.B.off(el.PZ,bn)}},[]);var Yt={},Ln=(0,el.Mg)();return(0,_i.jsx)(Pl.ZP,{direction:Ln,locale:((ue=el.H8[Mt])===null||ue===void 0?void 0:ue.antd)||Yt,children:(0,_i.jsx)(el.eU,{value:fn,children:z.children})})};function Es(Y){return C.createElement(fi,null,Y)}var bu=e(34485),Pu=e.n(bu),hl=e(65246),Wu=e(7986);function Tu(Y,z){return Zl.apply(this,arguments)}function Zl(){return Zl=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/datasets",h()({method:"GET",params:z},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Zl.apply(this,arguments)}function Tl(Y,z){return Ul.apply(this,arguments)}function Ul(){return Ul=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/datasets/".concat(z.datasetId),h()({method:"GET"},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Ul.apply(this,arguments)}function Xo(Y,z){return B.apply(this,arguments)}function B(){return B=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/images",h()({method:"GET",params:z},ue||{})));case 1:case"end":return Re.stop()}},Y)})),B.apply(this,arguments)}function ve(Y,z){return Ze.apply(this,arguments)}function Ze(){return Ze=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/image_flags",h()({method:"POST",data:h()({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Ze.apply(this,arguments)}function ot(Y,z){return Lt.apply(this,arguments)}function Lt(){return Lt=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/tasks/rerank_by_flags",h()({method:"POST",data:h()({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Lt.apply(this,arguments)}function Nn(Y,z){return Fr.apply(this,arguments)}function Fr(){return Fr=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/tasks/".concat(z.name,"/").concat(z.id),h()({method:"GET"},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Fr.apply(this,arguments)}function oo(Y,z){return jo.apply(this,arguments)}function jo(){return jo=_asyncToGenerator(_regeneratorRuntime().mark(function Y(z,ue){return _regeneratorRuntime().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",request("/api/v1/annotations",_objectSpread({method:"POST",data:_objectSpread({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),jo.apply(this,arguments)}function li(Y,z){return Yi.apply(this,arguments)}function Yi(){return Yi=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/comparisons",h()({method:"GET",params:z},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Yi.apply(this,arguments)}function tl(Y,z){return yl.apply(this,arguments)}function yl(){return yl=_asyncToGenerator(_regeneratorRuntime().mark(function Y(z,ue){return _regeneratorRuntime().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",request("/api/v1/label_clone",_objectSpread({method:"POST",data:_objectSpread({},z)},ue||{})));case 1:case"end":return Re.stop()}},Y)})),yl.apply(this,arguments)}var ac=e(74595),Ii=e(67160),oc=e(39378),wc=function(){var Y,z,ue,Ce=(0,hl.x)(h()({},Ii.C2)),Re=Uo()(Ce,2),rt=Re[0],Mt=Re[1],Dt=(0,hl.x)(h()({},Ii.$I)),Vt=Uo()(Dt,2),nn=Vt[0],fn=Vt[1],hn=rt.filterValues,bn=rt.comparisons,Yt=nn.filters,Ln=function(Ka){Mt(function(Za){Object.assign(Za,Ii.C2,Ka)})},qn=function(){},cr=(0,Wu.Z)(function(Oo){if(!rt.datasetId)throw null;return Tl({datasetId:rt.datasetId})},{refreshDeps:[rt.datasetId],onSuccess:function(Ka,Za){var ui=Ka.categoryList,ai=Ka.labelList,Ai=Ka.objectTypes,po=Za.length>0?Za[0]:no.$j.gt,Pi=Ai.filter(function(vi){return vi!==no.JJ.Classification}),Oi=rt.filterValues.displayAnnotationType&&Pi.find(function(vi){return vi===rt.filterValues.displayAnnotationType});fn(function(vi){var Wi=Oi||Pi[0],La=(0,ac.B8)(rt.filterValues.displayOptions,Wi),mi=Uo()(La,2),hs=mi[0],Hi=mi[1];vi.filters.categories=[{id:"All",name:"All"}].concat(Pu()(ui)),vi.filters.annotationTypes=Pi,vi.filters.displayOptions=hs,Oi||Mt(function(ts){ts.filterValues.displayOptions=Hi,ts.filterValues.displayAnnotationType=Wi}),rt.filterValues.categoryId||Mt(function(ts){ts.filterValues.categoryId="All"}),ai&&ai.length&&(vi.filters.labels=ai.map(function(ts){return ts.confidenceRange=ts.source===no.$j.pred?[.2,1]:[0,1],ts.source===po&&!Oi&&Mt(function(kl){kl.filterValues.selectedLabelIds=[ts.id]}),ts}))})},onError:function(){}},[function(Oo){return{onBefore:function(){var Za;return{loading:!(!((Za=Oo.state.params)===null||Za===void 0)&&Za.length)}}}}]),Dr=cr.loading,Rr=cr.runAsync,Aa=(0,Wu.Z)(function(){var Oo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ka=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!rt.datasetId||!rt.filterValues.categoryId)throw null;Oo||(fn(function(ai){Object.assign(ai,Ii.vA)}),window.scrollTo(0,0));var Za=rt.filterValues.categoryId==="All"?void 0:rt.filterValues.categoryId,ui={datasetId:rt.datasetId,categoryId:Za,pageNum:rt.page,pageSize:rt.pageSize};return rt.queryMode===Ii.nJ.random&&Object.assign(ui,{offset:Ka?-1:rt.offset,pageSize:no.L8}),rt.comparisons?li(h()(h()({},ui),{},{labelId:rt.comparisons.label.id,precision:rt.comparisons.precision,orderBy:rt.comparisons.orderBy,displayCategoryId:Za})):(rt.flagTools&&rt.flagTools.flagStatus>=0&&Object.assign(ui,{flag:rt.flagTools.flagStatus}),Xo(ui))},{debounceWait:20,refreshDeps:[rt.datasetId,rt.filterValues.categoryId,rt.queryMode,rt.page,rt.pageSize,(Y=rt.comparisons)===null||Y===void 0?void 0:Y.precision,(z=rt.comparisons)===null||z===void 0?void 0:z.orderBy,(ue=rt.flagTools)===null||ue===void 0?void 0:ue.flagStatus],onSuccess:function(Ka){fn(function(Za){Za.imgList=Ka.imageList,Za.total=Ka.total}),Mt(function(Za){Za.offset=(0,oc.isNumber)(Ka.offset)?Ka.offset:-1})},onError:function(){}},[function(Oo){return{onBefore:function(){var Za;return{loading:!(!((Za=Oo.state.params)===null||Za===void 0)&&Za.length)}}}}]),xa=Aa.loading,pa=Aa.run,za=function(Ka){Mt(function(Za){Za.previewIndex=Ka})},ha=function(){Mt(function(Ka){Ka.previewIndex=-1})},Yr=Dr||xa,$a=(0,C.useMemo)(function(){if(bn){var Oo=[],Ka=Yt.labels.find(function(Za){return Za.source===no.$j.gt});return(bn.displays.includes(no.$j.gt)||bn.displays.includes(no.BP.fn))&&Ka&&Oo.push(Ka.id),(bn.displays.includes(no.$j.pred)||bn.displays.includes(no.BP.fp))&&Oo.push(bn.label.id),Oo}return hn.selectedLabelIds},[bn,hn.selectedLabelIds,Yt.labels]),Xa=(0,C.useMemo)(function(){return $a.length>1&&(hn.displayAnnotationType===no.JJ.Matting||(bn?bn.diffMode===no.uP.Tiled:hn.diffMode===no.uP.Tiled))},[bn,hn.diffMode,$a]),io=(0,C.useMemo)(function(){var Oo={};return Object.keys(no.zY).forEach(function(Ka){var Za;Oo[Ka]=!!(!((Za=hn.displayOptions)===null||Za===void 0)&&Za.find(function(ui){return ui===Ka}))}),Oo},[rt.filterValues.displayOptions]),Go=(0,C.useCallback)(function(Oo){var Ka=Pu()(Oo.objects)||[],Za=rt.comparisons,ui={labels:nn.filters.labels,displayLabelIds:$a,isTiledDiff:Xa},ai=rt.filterValues.displayAnnotationType;if(Ka=Ka.filter(function(po){var Pi,Oi;return po.mask&&ai===no.JJ.Mask||po.alpha&&ai===no.JJ.Matting||((Pi=po.points)===null||Pi===void 0?void 0:Pi.length)&&ai===no.JJ.KeyPoints||po.segmentation&&ai===no.JJ.Segmentation||!((Oi=po.points)!==null&&Oi!==void 0&&Oi.length)&&po.boundingBox&&ai===no.JJ.Detection}).map(function(po){return h()(h()({},po),{},{mask:ai===no.JJ.Mask?po.mask:void 0,alpha:ai===no.JJ.Matting?po.alpha:void 0,points:ai===no.JJ.KeyPoints?po.points:void 0,segmentation:ai===no.JJ.Segmentation?po.segmentation:void 0,boundingBox:[no.JJ.Detection,no.JJ.KeyPoints].includes(ai)?po.boundingBox:void 0})}),Za){var Ai=Ka.filter(function(po){return po.source===no.$j.pred});Ka=Ka.filter(function(po){return(po.conf||0)>=Za.score}),Ka=Ka.map(function(po){var Pi=h()({},po);if(po.source===no.$j.gt){var Oi=(0,oc.isNumber)(po.matchedDetIdx)&&po.matchedDetIdx>=0&&Ka.includes(Ai[po.matchedDetIdx])?no.BP.ok:no.BP.fn;Pi.compareResult=Oi}return Pi}),Ka=Ka.filter(function(po){return po.compareResult===no.BP.ok?po.source&&Za.displays.includes(po.source):po.compareResult&&Za.displays.includes(po.compareResult)})}return Ka.filter(function(po){var Pi=io.showAnnotations,Oi=io.showAllCategory,vi=rt.filterValues.categoryId||"";if(!Pi||!Oi&&po.categoryId!==vi||ui&&po.labelId&&!ui.displayLabelIds.includes(po.labelId)||ui&&ui.isTiledDiff&&po.labelId!==Oo.curLabelId)return!1;if(!Za&&ui){var Wi=ui.labels.find(function(La){return La.id===po.labelId});return Wi?Wi.source===no.$j.gt?!0:po.conf!==void 0&&po.conf>=(Wi==null?void 0:Wi.confidenceRange[0])&&po.conf<=(Wi==null?void 0:Wi.confidenceRange[1]):!1}return!0}).map(function(po){var Pi=h()({},po),Oi=(0,ac.iE)(po.labelId,$a,Xa||!!rt.comparisons),vi=Oi.colorAplha,Wi=Oi.strokeDash,La=Oi.lineWidth;return Za&&po.compareResult?Pi.customStyles={pointAplha:vi,strokeDash:Wi,thickness:La,fillColor:no.pB[po.compareResult]||"transparent"}:Pi.customStyles={pointAplha:vi,strokeDash:Wi,thickness:La},Pi})},[rt.filterValues.categoryId,rt.filterValues.displayAnnotationType,rt.comparisons,nn.filters.labels,$a,Xa,io]);return{pageState:rt,setPageState:Mt,pageData:nn,setPageData:fn,onInitPageState:Ln,onPageContentLoaded:qn,onPreviewIndexChange:za,exitPreview:ha,loadDatasetInfo:Rr,loadImgList:pa,loading:Yr,displayLabelIds:$a,isTiledDiff:Xa,displayOptionsResult:io,displayObjectsFilter:Go}},ic=e(41260),vc=function(){var Y=(0,C.useState)(!1),z=Uo()(Y,2),ue=z[0],Ce=z[1],Re=(0,L.useModel)("dataset.common"),rt=Re.setPageState,Mt=function(){Ce(!0)},Dt=function(){Ce(!1)},Vt=function(bn){rt(function(Yt){Yt.queryMode=Ii.nJ.pagination,Yt.page=1,Yt.filterValues.displayAnnotationType=no.JJ.Detection,Yt.flagTools=void 0,Yt.comparisons={label:bn,orderBy:no.YZ.fn,precision:bn.comparePrecisions[0].precision,displays:no.G3.map(function(Ln){return Ln.value}),diffMode:no.uP.Overlay,score:(0,ic.p)(bn.comparePrecisions[0].threshold,2)}})},nn=function(){rt(function(bn){bn.page=1,bn.comparisons=void 0})},fn=function(bn,Yt){rt(function(Ln){if(Ln.comparisons&&(Ln.comparisons[bn]=Yt,bn==="precision")){var qn=Ln.comparisons.label.comparePrecisions.find(function(cr){return cr.precision===Yt});qn&&(Ln.comparisons.score=(0,ic.p)(qn.threshold,2))}})};return{showAnalysisModal:ue,openAnalysisModal:Mt,closeAnalysisModal:Dt,compareLabelSet:Vt,exitComparisons:nn,onFilterComparisonsPrecision:fn}},gc=function(){var Y=(0,L.useModel)("dataset.common"),z=Y.pageState,ue=Y.setPageState,Ce=Y.pageData,Re=Y.setPageData,rt=function(Ln){ue(function(qn){qn.filterValues.categoryId=Ln,qn.page=1})},Mt=function(Ln){var qn;typeof Ln=="number"?qn=Ln:Ln?qn=z.cloumnCount1?z.cloumnCount-1:z.cloumnCount,ue(function(cr){cr.cloumnCount=qn})},Dt=function(Ln){ue(function(qn){qn.filterValues.displayOptions=Ln})},Vt=function(Ln){ue(function(qn){qn.filterValues.selectedLabelIds=Ln.sort(function(cr,Dr){return Ce.filters.labels.findIndex(function(Rr){return Rr.id===cr})-Ce.filters.labels.findIndex(function(Rr){return Rr.id===Dr})})})},nn=function(Ln){ue(function(qn){qn.filterValues.diffMode=Ln})},fn=function(Ln,qn){Re(function(cr){cr.filters.labels[Ln].confidenceRange=qn})},hn=function(Ln){var qn=(0,ac.B8)(z.filterValues.displayOptions,Ln),cr=Uo()(qn,2),Dr=cr[0],Rr=cr[1];Re(function(Aa){Aa.filters.displayOptions=Dr}),ue(function(Aa){Aa.filterValues.displayAnnotationType=Ln,Aa.filterValues.displayOptions=Rr})},bn=function(Ln){ue(function(qn){qn.queryMode=Ln,qn.page=1})};return{onCategoryChange:rt,onColumnCountChange:Mt,onDisplayOptionsChange:Dt,onDisplayAnnotationTypeChange:hn,onLabelsChange:Vt,onLabelsDiffModeChange:nn,onLabelConfidenceChange:fn,onQueryModeChanged:bn}},ql=e(2556),Fi=function(z){var ue=[],Ce=[];return z.forEach(function(Re,rt){Re.selected&&(ue.push(rt),Ce.push(Re.id))}),{selectIndexs:ue,selectedIds:Ce}},go=function(){var Y=(0,L.useModel)("dataset.common"),z=Y.pageState,ue=Y.setPageState,Ce=Y.pageData,Re=Y.setPageData,rt=Y.loadImgList,Mt=(0,hl.x)(!1),Dt=Uo()(Mt,2),Vt=Dt[0],nn=Dt[1],fn=function(ha){Re(function(Yr){if(z.flagTools){var $a=!Yr.imgList[ha].selected;if(Vt&&Yr.flagTools.lastShiftIndex>=0&&ha!==Yr.flagTools.lastShiftIndex){var Xa=Yr.flagTools.count;Yr.imgList.forEach(function(io,Go){(Go>=Yr.flagTools.lastShiftIndex&&Go<=ha||Go>=ha&&Go<=Yr.flagTools.lastShiftIndex)&&(Xa+=io.selected?0:1,io.selected=!0)}),Yr.flagTools.lastShiftIndex=-1,Yr.flagTools.count=Xa}else Yr.imgList[ha].selected=$a,Yr.flagTools.lastShiftIndex=$a?ha:-1,Yr.flagTools.count+=$a?1:-1}})},hn=function(){var ha=Ce.flagTools.count!==z.pageSize;Re(function(Yr){Yr.imgList.forEach(function($a){$a.selected=ha}),Yr.flagTools.lastShiftIndex=-1,Yr.flagTools.count=ha?z.pageSize:0})},bn=function(){Re(function(ha){ha.imgList.forEach(function(Yr){Yr.selected=!Yr.selected}),ha.flagTools.lastShiftIndex=-1,ha.flagTools.count=z.pageSize-ha.flagTools.count})},Yt=function(){return new Promise(function(ha){if(!z.flagTools){ha(null);return}var Yr=Fi(Ce.imgList),$a=Yr.selectIndexs;if($a.length>0&&($a.length!==Ce.flagTools.lastSavedIndexs.length||Ce.flagTools.lastSavedIndexs.find(function(Xa){return!$a.includes(Xa)}))){nc.Z.confirm({content:"Now selected items have not been saved, these will lose if you click 'OK', are you sure?",onOk:function(){ha(null)}});return}ha(null)})},Ln=function(ha){Yt().then(function(){ue(function(Yr){Yr.page=1,Yr.flagTools.flagStatus=ha})})},qn=function(){Re(function(ha){ha.flagTools.lastShiftIndex=-1,ha.flagTools.lastSavedIndexs=[],ha.flagTools.count=0}),ue(function(ha){ha.page=1,ha.flagTools={flagStatus:no.po.all}})},cr=function(){Yt().then(function(){ue(function(ha){ha.page=1,ha.flagTools=void 0})})},Dr=function(){var za=w()(g()().mark(function ha(Yr){var $a,Xa,io,Go;return g()().wrap(function(Ka){for(;;)switch(Ka.prev=Ka.next){case 0:if(!(Ce.flagTools.count<=0)){Ka.next=3;break}return N.ZP.warning("No any image to be selected!"),Ka.abrupt("return");case 3:return $a=Fi(Ce.imgList),Xa=$a.selectIndexs,io=$a.selectedIds,Go=N.ZP.loading("Flag saving..."),Ka.prev=5,Ka.next=8,ve({datasetId:z.datasetId,flagGroups:[{flag:Yr,ids:io}]});case 8:Go(),Re(function(Za){Za.imgList.forEach(function(ui){ui.selected&&(ui.flag=Yr)}),Za.flagTools.lastSavedIndexs=Xa}),Ka.next=17;break;case 12:Ka.prev=12,Ka.t0=Ka.catch(5),console.error("error",Ka.t0),Go(),N.ZP.error("Flag save fail, please retry!");case 17:case"end":return Ka.stop()}},ha,null,[[5,12]])}));return function(Yr){return za.apply(this,arguments)}}(),Rr=(0,Wu.Z)(function(za){return Nn(za)},{manual:!0,pollingInterval:1e3,pollingWhenHidden:!0,onSuccess:function(ha){var Yr=ha.status;Yr==="success"?(xa(),N.ZP.success("Order update success!"),Re(function($a){$a.screenLoading=""}),ue(function($a){$a.page=1}),rt()):Yr==="fail"&&(xa(),N.ZP.error("Query order task fail, Please retry!"),Re(function($a){$a.screenLoading=""}))}}),Aa=Rr.run,xa=Rr.cancel,pa=function(){var za=w()(g()().mark(function ha(){var Yr,$a,Xa;return g()().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:return Go.prev=0,Re(function(Oo){Oo.screenLoading="Updating order..."}),Go.next=4,ot({datasetId:z.datasetId});case 4:Yr=Go.sent,$a=Yr.id,Xa=Yr.name,Aa({id:$a,name:Xa}),Go.next=14;break;case 10:Go.prev=10,Go.t0=Go.catch(0),console.error("error",Go.t0),Re(function(Oo){Oo.screenLoading=""});case 14:case"end":return Go.stop()}},ha,null,[[0,10]])}));return function(){return za.apply(this,arguments)}}();return(0,ql.Z)(["Shift"],function(za){!z.flagTools||z.previewIndex>=0||nn(za.type==="keydown")},{events:["keydown","keyup"]}),(0,ql.Z)(["shift.q","shift.Q","shift.e","shift.E","v","V"],function(za){!z.flagTools||z.previewIndex>=0||(["v","V"].includes(za.key)&&bn(),["q","Q"].includes(za.key)&&za.shiftKey&&Dr(no.po.picked),["e","E"].includes(za.key)&&za.shiftKey&&Dr(no.po.rejected))}),{enterFlagTools:qn,exitFlagTools:cr,onChangeFlagStatus:Ln,selectItem:fn,changeSelectAll:hn,antiSelect:bn,limitNoSaveChangePage:Yt,saveFlag:Dr,updateOrder:pa}},Cs=function(){var Y=(0,hl.x)({page:1,pageSize:no.L8}),z=Uo()(Y,2),ue=z[0],Ce=z[1],Re=(0,hl.x)({list:[],total:0}),rt=Uo()(Re,2),Mt=rt[0],Dt=rt[1],Vt=(0,Wu.Z)(function(Yt,Ln){return Tu({pageNum:Yt||ue.page,pageSize:Ln||ue.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[ue.page,ue.pageSize],onSuccess:function(Ln){var qn=Ln.datasetList,cr=Ln.total;Dt(function(Dr){Dr.list=qn,Dr.total=cr})},onError:function(){}}),nn=Vt.loading,fn=Vt.run,hn=function(Ln){Ce(function(qn){qn.page=Ln}),fn(Ln)},bn=function(Ln,qn){Ce(function(cr){cr.page=Ln,cr.pageSize=qn}),fn(Ln,qn)};return{loading:nn,pagination:ue,datasetsData:Mt,loadDatasets:fn,setPagination:Ce,onPageChange:hn,onPageSizeChange:bn}},mc=e(7214),Mu=e(21325),Hu=!1;(0,mc.ac)(function(Y){Hu=Y});var ed=function(){var Y=(0,C.useState)(!1),z=Uo()(Y,2),ue=z[0],Ce=z[1],Re=(0,C.useState)(""),rt=Uo()(Re,2),Mt=rt[0],Dt=rt[1],Vt=(0,C.useState)(Hu),nn=Uo()(Vt,2),fn=nn[0],hn=nn[1],bn=(0,C.useState)(0),Yt=Uo()(bn,2),Ln=Yt[0],qn=Yt[1],cr=(0,C.useState)(window.innerWidth),Dr=Uo()(cr,2),Rr=Dr[0],Aa=Dr[1];return(0,C.useEffect)(function(){(0,mc.ac)(function(xa){hn(xa)})},[]),(0,C.useEffect)(function(){Aa(window.innerWidth-Ln)},[Ln]),(0,Mu.Z)("resize",function(){var xa=window.innerWidth-Ln;Aa(xa)},{target:window}),{loading:ue,setLoading:Ce,loadingTip:Mt,setLoadingTip:Dt,isMobile:fn,fixSliderWidth:Ln,setFixSliderWidth:qn,layoutInnerWidth:Rr}};function Ws(Y){return Hs.apply(this,arguments)}function Hs(){return Hs=w()(g()().mark(function Y(z){return g()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.abrupt("return",(0,L.request)("/api/v1/user_info",h()({method:"GET",skipErrorHandler:!0},z||{})));case 1:case"end":return Ce.stop()}},Y)})),Hs.apply(this,arguments)}function jc(Y,z){return Lu.apply(this,arguments)}function Lu(){return Lu=w()(g()().mark(function Y(z,ue){return g()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",(0,L.request)("/api/v1/login",h()({method:"POST",data:h()({},z),skipErrorHandler:!0},ue||{})));case 1:case"end":return Re.stop()}},Y)})),Lu.apply(this,arguments)}function Ll(Y){return bl.apply(this,arguments)}function bl(){return bl=w()(g()().mark(function Y(z){return g()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.abrupt("return",(0,L.request)("/api/v1/logout",h()({method:"POST"},z||{})));case 1:case"end":return Ce.stop()}},Y)})),bl.apply(this,arguments)}var sc=function(){var Y=(0,L.useModel)("global"),z=Y.setLoading,ue=(0,C.useState)(!1),Ce=Uo()(ue,2),Re=Ce[0],rt=Ce[1],Mt=(0,hl.x)({}),Dt=Uo()(Mt,2),Vt=Dt[0],nn=Dt[1],fn=function(){return new Promise(function(qn){if(Vt.isLogin){qn(null);return}rt(!0)})},hn=function(){var Ln=w()(g()().mark(function qn(){var cr,Dr,Rr,Aa,xa,pa;return g()().wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.prev=0,cr=localStorage.getItem(no.Uf.AUTH_TOKEN),ha.next=4,Ws();case 4:Dr=ha.sent,Rr=Dr.id,Aa=Dr.name,xa=Dr.status,pa=Dr.isStaff,cr&&xa===no.oC.Active&&nn({isLogin:!0,username:Aa,userId:Rr,token:cr,isStaff:pa}),ha.next=16;break;case 12:ha.prev=12,ha.t0=ha.catch(0),console.error("error",ha.t0),nn({isLogin:!1});case 16:case"end":return ha.stop()}},qn,null,[[0,12]])}));return function(){return Ln.apply(this,arguments)}}(),bn=function(){var Ln=w()(g()().mark(function qn(cr){var Dr,Rr,Aa,xa,pa,za,ha,Yr,$a;return g()().wrap(function(io){for(;;)switch(io.prev=io.next){case 0:return Dr=cr.username,Rr=cr.password,Aa=window.location.pathname,xa=Aa.includes("page/login"),z(!0),io.prev=4,io.next=7,jc({username:Dr,password:Rr});case 7:pa=io.sent,za=pa.username,ha=pa.userId,Yr=pa.token,$a=pa.isStaff,nn({isLogin:!0,username:za,token:Yr,userId:ha,isStaff:$a}),localStorage.setItem(no.Uf.AUTH_TOKEN,Yr),xa||rt(!1),N.ZP.success((0,Ji._w)("loginSuccess")),io.next=21;break;case 18:io.prev=18,io.t0=io.catch(4),N.ZP.error((0,Ji._w)("loginAuthenticationFailed"));case 21:return io.prev=21,z(!1),io.finish(21);case 24:case"end":return io.stop()}},qn,null,[[4,18,21,24]])}));return function(cr){return Ln.apply(this,arguments)}}(),Yt=function(){var Ln=w()(g()().mark(function qn(){return g()().wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:return Dr.prev=0,Dr.next=3,Ll();case 3:nn({isLogin:!1}),N.ZP.success((0,Ji._w)("logoutSuccess")),localStorage.removeItem(no.Uf.AUTH_TOKEN),L.history.push("/"),Dr.next=13;break;case 9:Dr.prev=9,Dr.t0=Dr.catch(0),console.error("error",Dr.t0),N.ZP.error((0,Ji._w)("logoutFailed"));case 13:case"end":return Dr.stop()}},qn,null,[[0,9]])}));return function(){return Ln.apply(this,arguments)}}();return{user:Vt,setUser:nn,checkLoginStatus:hn,onLogin:bn,onLogout:Yt,showLoginModal:Re,setShowLoginModal:rt,limitLoginAction:fn}},_s=e(1239),lu=e(32694),Pc=e(54518),Tc=e(93059),_u=e(45060),Bc=e(16962),Yu=e.n(Bc),$c=e(88479),pc=e.n($c),uu=e(17410),Su=e(67761),Nu=e(46134),nl=function(z,ue){var Ce=function(fn){return"".concat(z).concat(fn)},Re=function(fn){return fn.startsWith(z)},rt=function(fn){var hn=fn.substring(z.length),bn=parseInt(hn);return isNaN(bn)?-1:bn},Mt=function(fn){var hn=fn.filter(function(bn){return!!bn.id&&Re(bn.id)}).map(function(bn){return rt(bn.id)});return hn.length>0?Math.max.apply(Math,Pu()(hn)):-1},Dt=Mt(ue)+1,Vt=function(fn){return fn&&Re(fn)?rt(fn):Dt++};return{getStringItemId:Ce,getIntItemId:Vt}},Ue="user_import_category",he="user_import_image",Pe="user_import_annot",Un=function(){var Y=w()(g()().mark(function z(ue){var Ce,Re,rt,Mt,Dt,Vt,nn,fn,hn,bn,Yt,Ln;return g()().wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:Ce=ue.info,Re=ue.images,rt=ue.categories,Mt={info:{},images:[],categories:[],annotations:[]},Mt.info=h()(h()({},Ce),{},{year:new Date().getFullYear(),date_created:new Date().toISOString()}),Dt=nl(Ue,rt),Vt=Dt.getIntItemId,nn={},rt.forEach(function(Dr){var Rr=Vt(Dr.id);nn[Dr.name]=Rr,Mt.categories.push({id:Rr,name:Dr.name})}),fn=nl(he,Re),hn=fn.getIntItemId,bn=pc()(Re),cr.prev=8,Ln=g()().mark(function Dr(){var Rr,Aa,xa,pa;return g()().wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(Rr=Yt.value,Aa=hn(Rr.id),xa={width:0,height:0},!(!Rr.width||!Rr.height)){ha.next=10;break}return ha.next=6,(0,_u.pz)(Rr.urlFullRes);case 6:pa=ha.sent,xa=pa,ha.next=12;break;case 10:xa.width=Rr.width,xa.height=Rr.height;case 12:Mt.images.push(h()({id:Aa,file_name:Rr.name},xa)),Rr.objects.forEach(function(Yr){var $a={id:Mt.annotations.length,image_id:Aa};if(nn&&Yr.categoryName&&nn[Yr.categoryName]!==void 0&&($a.category_id=nn[Yr.categoryName]),Yr.boundingBox){var Xa=(0,Nu.cO)(Yr.boundingBox,xa),io=Xa.x,Go=Xa.y,Oo=Xa.width,Ka=Xa.height,Za=Oo*Ka,ui=[io,Go,Oo,Ka];Object.assign($a,{area:Za,bbox:ui})}if(Yr.segmentation){var ai=Yr.segmentation.split("/").map(function(Hi){return Hi.split(",").map(function(ts){return parseFloat(ts)})}),Ai=ai.reduce(function(Hi,ts){var kl=(0,Nu.X6)(ts),Ru=(0,Nu.I4)(kl);return Hi+Ru},0);Object.assign($a,{segmentation:ai,area:Ai})}if(Yr.mask){var po=(0,Su.ei)(Yr.mask.counts||"",xa,"#fff"),Pi=Yr.mask;if(po){var Oi=(0,Nu.e4)(po),vi=Oi.area;Object.assign($a,{segmentation:Pi,area:vi})}else Object.assign($a,{segmentation:Pi})}if(Yr.points&&Yr.points.length>0){for(var Wi=Yr.points,La=[],mi=0,hs=0;hs*60&&(cr.categories=Re==null?void 0:Re.map(function(xa){var pa=xa.id,za=xa.name;return{id:hn(pa),name:za}})),rt&&rt.length>0){var Dr=new Map(cr.images.map(function(xa){return[xa.name,xa]}));rt.forEach(function(xa){var pa=Dr.get(xa.file_name);pa&&(pa.id=Yt(xa.id),pa.width=xa.width,pa.height=xa.height)})}if(Mt&&Mt.length>0){var Rr=new Map(rt.map(function(xa){return[xa.id,xa]})),Aa=new Map(cr.images.map(function(xa){return[xa.id,xa]}));Mt.forEach(function(xa){var pa=xa.id,za=xa.image_id,ha=xa.category_id,Yr=xa.bbox,$a=xa.segmentation,Xa=xa.keypoints,io=xa.num_keypoints,Go=Rr.get(za),Oo=Aa.get(Yt(za));if(Go&&Oo){var Ka,Za=Go.width,ui=Go.height,ai={id:qn(pa),categoryId:hn(ha),categoryName:Re==null||(Ka=Re.find(function(mi){return mi.id===ha}))===null||Ka===void 0?void 0:Ka.name};if(Yr){var Ai=Uo()(Yr,4),po=Ai[0],Pi=Ai[1],Oi=Ai[2],vi=Ai[3];Object.assign(ai,{boundingBox:(0,Nu.kq)({x:po,y:Pi,width:Oi,height:vi},{width:Za,height:ui})})}if($a&&(Array.isArray($a)?Object.assign(ai,{segmentation:$a==null?void 0:$a.map(function(mi){var hs;return(hs=mi.map(function(Hi){return Hi.toString()}))===null||hs===void 0?void 0:hs.join(",")}).join("/")}):typeof $a.counts=="string"&&Object.assign(ai,{mask:$a})),Xa&&io===uu.v_.pointNames.length){for(var Wi=[],La=0;La*3-1?Mt:0),L.history.push("/quickstart")},Wi=function(){ue.length<=0||(Yr(ue),Go(!1))},La=function(){Oi(),Go(!1),Dt(-1)},mi=(0,C.useCallback)(function(ys){var ds=ue.find(function(al){return al.id===ha[ys].id});return ds&&ds.objects.length>0},[ue,ha]),hs=(0,C.useCallback)(function(ys){return mi(ys)?(ml.Z.error({message:(0,Ji._w)("quicklabel.formModal.deleteImage.title"),description:(0,Ji._w)("quicklabel.formModal.deleteImage.desc"),duration:3}),!0):!1},[mi]),Hi=function(){var ys=w()(g()().mark(function ds(){var al,Ti;return g()().wrap(function(ti){for(;;)switch(ti.prev=ti.next){case 0:return ti.next=2,Un({info:fn,images:ue,categories:Ln});case 2:al=ti.sent,Ti=(0,_u.XV)(Date.now(),"Annotations"),(0,_u.Gf)(al,Ti);case 5:case"end":return ti.stop()}},ds)}));return function(){return ys.apply(this,arguments)}}(),ts=function(ds){var al=ds.file,Ti=ds.fileList;if(!(Ti.length===0||!Ti[0].originFileObj)){var ns=new FileReader;ns.readAsText(Ti[0].originFileObj),ns.onload=function(ti){var gi,Qi=JSON.parse((gi=ti.target)===null||gi===void 0?void 0:gi.result),Eu=zn(Qi);Eu.success?(ui([al]),Pi(Qi)):N.ZP.error(Eu.message)}}},kl=function(ds){var al=Za.findIndex(function(Ti){return Ti.uid===ds.uid});Za.splice(al,1),ui(Pu()(Za)),Pi(En)},Ru=function(ds){Aa(ds),Dt(-1)},rl=function(){Aa(null),Dt(-1)};return{qsModalVisible:io,setQsModalVisible:Go,uploadFiles:ha,setUploadFiles:Yr,images:ue,setImages:Ce,filterImages:xa,onClickQuickstart:vi,onCancelUploadFiles:Wi,onConfirmUploadFiles:La,limitRemoveFile:hs,current:Mt,setCurrent:Dt,categories:Ln,setCategories:qn,filterCategoryName:Rr,setFilterCategoryName:Aa,exportAnnotations:Hi,uploadPreAnnot:Za,onChangePreAnnotFile:ts,onRemovePreAnnotFile:kl,onSelectFilterCategory:Ru,onClearFilterCategory:rl}},Fn=function(){return On()},mr=function(){var Y=(0,L.useModel)("dataset.common"),z=Y.pageState,ue=Y.setPageState,Ce=Y.setPageData,Re=function(hn){ue(function(bn){bn.previewIndex=hn})},rt=function(hn){ue(function(bn){bn.previewIndex=hn})},Mt=function(hn){z.page!==hn&&ue(function(bn){bn.page=hn})},Dt=function(hn,bn){ue(function(Yt){Yt.pageSize=bn})},Vt=function(){},nn=function(){Ce(function(hn){Object.assign(hn,Ii.$I)}),ue(function(hn){Object.assign(hn,Ii.C2)})};return{onPageDidMount:Vt,onPageWillUnmount:nn,clickItem:Re,doubleClickItem:rt,onPageChange:Mt,onPageSizeChange:Dt}},fr=e(86724),or=e.n(fr),jn=function(){var Y=(0,L.useModel)("datasets"),z=Y.loadDatasets,ue=Y.setPagination,Ce=function(Dt){var Vt=JSON.stringify({datasetId:Dt.id,datasetName:Dt.name});L.history.push("/dataset/detail?pageState=".concat(encodeURIComponent(Vt)))},Re=function(Dt,Vt){var nn=JSON.stringify({datasetId:Vt.id,datasetName:Vt.name}),fn="".concat(window.location.origin,"/page/dataset/detail?pageState=").concat(encodeURIComponent(nn)),hn=or()(fn);hn&&N.ZP.success((0,Ji._w)("dataset.onClickCopyLink.success")),Dt.stopPropagation()},rt=function(Dt){ue(function(Vt){Object.assign(Vt,{page:1,pageSize:no.L8},Dt)}),z()};return{onInitPageState:rt,onClickItem:Ce,onClickCopyLink:Re}},ua=e(23707),Or=function(){var Y=(0,L.useModel)("datasets"),z=Y.loadDatasets,ue=Y.setPagination,Ce=(0,ua.BQ)("type")||"flagtool",Re=function(Vt){var nn=JSON.stringify({datasetId:Vt.id,datasetName:Vt.name});L.history.push("/lab/".concat(Ce,"?pageState=").concat(encodeURIComponent(nn)))},rt=function(Vt,nn){var fn=JSON.stringify({datasetId:nn.id,datasetName:nn.name}),hn="".concat(window.location.origin,"/page/dataset/detail?pageState=").concat(encodeURIComponent(fn)),bn=or()(hn);bn&&N.ZP.success((0,Ji._w)("lab.onClickCopyLink.success")),Vt.stopPropagation()},Mt=function(Vt){ue(function(nn){Object.assign(nn,{page:1,pageSize:no.L8},Vt)}),z()};return{labType:Ce,onInitPageState:Mt,onClickItem:Re,onClickCopyLink:rt}},ar=function(){var Y=(0,L.useModel)("user"),z=Y.showLoginModal,ue=(0,L.useModel)("dataset.common"),Ce=ue.pageState,Re=ue.setPageState,rt=ue.pageData,Mt=ue.setPageData,Dt=(0,L.useModel)("dataset.flag"),Vt=Dt.selectItem,nn=Dt.enterFlagTools,fn=Dt.limitNoSaveChangePage,hn=function(Rr){Vt(Rr)},bn=function(Rr){Re(function(Aa){Aa.previewIndex=Rr})},Yt=function(Rr){Ce.page!==Rr&&fn().then(function(){Re(function(Aa){Aa.page=Rr})})},Ln=function(Rr,Aa){fn().then(function(){Re(function(xa){xa.pageSize=Aa})})};(0,ql.Z)(["a","A","d","D","shift.q","shift.Q","shift.e","shift.E","z","Z"],function(Dr){Ce.previewIndex>=0||z||(["a","A"].includes(Dr.key)&&Ce.page>1&&Yt(Ce.page-1),["d","D"].includes(Dr.key)&&Ce.page=0)&&(It[Ut]=ut[Ut]);return It}const c=["onClick","reloadDocument","replace","state","target","to"],m=null;function g(ut,ct){if(!ut){typeof console!="undefined"&&console.warn(ct);try{throw new Error(ct)}catch(It){}}}function M(ut){let{basename:ct,children:It,window:Ct}=ut,Ut=useRef();Ut.current==null&&(Ut.current=createBrowserHistory({window:Ct}));let cn=Ut.current,[rn,Dn]=useState({action:cn.action,location:cn.location});return useLayoutEffect(()=>cn.listen(Dn),[cn]),createElement(Router,{basename:ct,children:It,location:rn.location,navigationType:rn.action,navigator:cn})}function h(ut){let{basename:ct,children:It,window:Ct}=ut,Ut=useRef();Ut.current==null&&(Ut.current=createHashHistory({window:Ct}));let cn=Ut.current,[rn,Dn]=useState({action:cn.action,location:cn.location});return useLayoutEffect(()=>cn.listen(Dn),[cn]),createElement(Router,{basename:ct,children:It,location:rn.location,navigationType:rn.action,navigator:cn})}function S(ut){let{basename:ct,children:It,history:Ct}=ut;const[Ut,cn]=useState({action:Ct.action,location:Ct.location});return useLayoutEffect(()=>Ct.listen(cn),[Ct]),createElement(Router,{basename:ct,children:It,location:Ut.location,navigationType:Ut.action,navigator:Ct})}function w(ut){return!!(ut.metaKey||ut.altKey||ut.ctrlKey||ut.shiftKey)}const C=(0,o.forwardRef)(function(ct,It){let{onClick:Ct,reloadDocument:Ut,replace:cn=!1,state:rn,target:Dn,to:Bn}=ct,Cr=l(ct,c),rr=(0,s.useHref)(Bn),$n=Z(Bn,{replace:cn,state:rn,target:Dn});function kr(Mr){Ct&&Ct(Mr),!Mr.defaultPrevented&&!Ut&&$n(Mr)}return(0,o.createElement)("a",d({},Cr,{href:rr,onClick:kr,ref:It,target:Dn}))}),F=null;function Z(ut,ct){let{target:It,replace:Ct,state:Ut}=ct===void 0?{}:ct,cn=(0,s.useNavigate)(),rn=(0,s.useLocation)(),Dn=(0,s.useResolvedPath)(ut);return(0,o.useCallback)(Bn=>{if(Bn.button===0&&(!It||It==="_self")&&!w(Bn)){Bn.preventDefault();let Cr=!!Ct||(0,n.Ep)(rn)===(0,n.Ep)(Dn);cn(ut,{replace:Cr,state:Ut})}},[rn,cn,Dn,Ct,Ut,It,ut])}function N(ut){let ct=useRef(L(ut)),It=useLocation(),Ct=useMemo(()=>{let rn=L(It.search);for(let Dn of ct.current.keys())rn.has(Dn)||ct.current.getAll(Dn).forEach(Bn=>{rn.append(Dn,Bn)});return rn},[It.search]),Ut=useNavigate(),cn=useCallback((rn,Dn)=>{Ut("?"+L(rn),Dn)},[Ut]);return[Ct,cn]}function L(ut){return ut===void 0&&(ut=""),new URLSearchParams(typeof ut=="string"||Array.isArray(ut)||ut instanceof URLSearchParams?ut:Object.keys(ut).reduce((ct,It)=>{let Ct=ut[It];return ct.concat(Array.isArray(Ct)?Ct.map(Ut=>[It,Ut]):[[It,Ct]])},[]))}var $=e(60581),D=["prefetch"];function T(ut){var ct,It=ut.prefetch,Ct=(0,t.Z)(ut,D),Ut=(0,$.Ov)(),cn=typeof ut.to=="string"?ut.to:(ct=ut.to)===null||ct===void 0?void 0:ct.pathname;return cn?o.createElement(C,(0,a.Z)({onMouseEnter:function(){var Dn;return It&&cn&&((Dn=Ut.preloadRoute)===null||Dn===void 0?void 0:Dn.call(Ut,cn))}},Ct),ut.children):null}var j=e(83753);function K(){"use strict";K=function(){return ut};var ut={},ct=Object.prototype,It=ct.hasOwnProperty,Ct=Object.defineProperty||function(Yn,Zn,Sr){Yn[Zn]=Sr.value},Ut=typeof Symbol=="function"?Symbol:{},cn=Ut.iterator||"@@iterator",rn=Ut.asyncIterator||"@@asyncIterator",Dn=Ut.toStringTag||"@@toStringTag";function Bn(Yn,Zn,Sr){return Object.defineProperty(Yn,Zn,{value:Sr,enumerable:!0,configurable:!0,writable:!0}),Yn[Zn]}try{Bn({},"")}catch(Yn){Bn=function(Sr,Xr,wr){return Sr[Xr]=wr}}function Cr(Yn,Zn,Sr,Xr){var wr=Zn&&Zn.prototype instanceof kr?Zn:kr,Pt=Object.create(wr.prototype),on=new Ur(Xr||[]);return Ct(Pt,"_invoke",{value:Kr(Yn,Sr,on)}),Pt}function rr(Yn,Zn,Sr){try{return{type:"normal",arg:Yn.call(Zn,Sr)}}catch(Xr){return{type:"throw",arg:Xr}}}ut.wrap=Cr;var $n={};function kr(){}function Mr(){}function ia(){}var zr={};Bn(zr,cn,function(){return this});var Wn=Object.getPrototypeOf,wn=Wn&&Wn(Wn(Ma([])));wn&&wn!==ct&&It.call(wn,cn)&&(zr=wn);var Rn=ia.prototype=kr.prototype=Object.create(zr);function sr(Yn){["next","throw","return"].forEach(function(Zn){Bn(Yn,Zn,function(Sr){return this._invoke(Zn,Sr)})})}function Er(Yn,Zn){function Sr(wr,Pt,on,Mn){var Ja=rr(Yn[wr],Yn,Pt);if(Ja.type!=="throw"){var mo=Ja.arg,Ua=mo.value;return Ua&&(0,j.Z)(Ua)=="object"&&It.call(Ua,"__await")?Zn.resolve(Ua.__await).then(function(ka){Sr("next",ka,on,Mn)},function(ka){Sr("throw",ka,on,Mn)}):Zn.resolve(Ua).then(function(ka){mo.value=ka,on(mo)},function(ka){return Sr("throw",ka,on,Mn)})}Mn(Ja.arg)}var Xr;Ct(this,"_invoke",{value:function(Pt,on){function Mn(){return new Zn(function(Ja,mo){Sr(Pt,on,Ja,mo)})}return Xr=Xr?Xr.then(Mn,Mn):Mn()}})}function Kr(Yn,Zn,Sr){var Xr="suspendedStart";return function(wr,Pt){if(Xr==="executing")throw new Error("Generator is already running");if(Xr==="completed"){if(wr==="throw")throw Pt;return ma()}for(Sr.method=wr,Sr.arg=Pt;;){var on=Sr.delegate;if(on){var Mn=ta(on,Sr);if(Mn){if(Mn===$n)continue;return Mn}}if(Sr.method==="next")Sr.sent=Sr._sent=Sr.arg;else if(Sr.method==="throw"){if(Xr==="suspendedStart")throw Xr="completed",Sr.arg;Sr.dispatchException(Sr.arg)}else Sr.method==="return"&&Sr.abrupt("return",Sr.arg);Xr="executing";var Ja=rr(Yn,Zn,Sr);if(Ja.type==="normal"){if(Xr=Sr.done?"completed":"suspendedYield",Ja.arg===$n)continue;return{value:Ja.arg,done:Sr.done}}Ja.type==="throw"&&(Xr="completed",Sr.method="throw",Sr.arg=Ja.arg)}}}function ta(Yn,Zn){var Sr=Zn.method,Xr=Yn.iterator[Sr];if(Xr===void 0)return Zn.delegate=null,Sr==="throw"&&Yn.iterator.return&&(Zn.method="return",Zn.arg=void 0,ta(Yn,Zn),Zn.method==="throw")||Sr!=="return"&&(Zn.method="throw",Zn.arg=new TypeError("The iterator does not provide a '"+Sr+"' method")),$n;var wr=rr(Xr,Yn.iterator,Zn.arg);if(wr.type==="throw")return Zn.method="throw",Zn.arg=wr.arg,Zn.delegate=null,$n;var Pt=wr.arg;return Pt?Pt.done?(Zn[Yn.resultName]=Pt.value,Zn.next=Yn.nextLoc,Zn.method!=="return"&&(Zn.method="next",Zn.arg=void 0),Zn.delegate=null,$n):Pt:(Zn.method="throw",Zn.arg=new TypeError("iterator result is not an object"),Zn.delegate=null,$n)}function ga(Yn){var Zn={tryLoc:Yn[0]};1 in Yn&&(Zn.catchLoc=Yn[1]),2 in Yn&&(Zn.finallyLoc=Yn[2],Zn.afterLoc=Yn[3]),this.tryEntries.push(Zn)}function pr(Yn){var Zn=Yn.completion||{};Zn.type="normal",delete Zn.arg,Yn.completion=Zn}function Ur(Yn){this.tryEntries=[{tryLoc:"root"}],Yn.forEach(ga,this),this.reset(!0)}function Ma(Yn){if(Yn){var Zn=Yn[cn];if(Zn)return Zn.call(Yn);if(typeof Yn.next=="function")return Yn;if(!isNaN(Yn.length)){var Sr=-1,Xr=function wr(){for(;++Sr=0;--wr){var Pt=this.tryEntries[wr],on=Pt.completion;if(Pt.tryLoc==="root")return Xr("end");if(Pt.tryLoc<=this.prev){var Mn=It.call(Pt,"catchLoc"),Ja=It.call(Pt,"finallyLoc");if(Mn&&Ja){if(this.prev=0;--Xr){var wr=this.tryEntries[Xr];if(wr.tryLoc<=this.prev&&It.call(wr,"finallyLoc")&&this.prev=0;--Sr){var Xr=this.tryEntries[Sr];if(Xr.finallyLoc===Zn)return this.complete(Xr.completion,Xr.afterLoc),pr(Xr),$n}},catch:function(Zn){for(var Sr=this.tryEntries.length-1;Sr>=0;--Sr){var Xr=this.tryEntries[Sr];if(Xr.tryLoc===Zn){var wr=Xr.completion;if(wr.type==="throw"){var Pt=wr.arg;pr(Xr)}return Pt}}throw new Error("illegal catch attempt")},delegateYield:function(Zn,Sr,Xr){return this.delegate={iterator:Ma(Zn),resultName:Sr,nextLoc:Xr},this.method==="next"&&(this.arg=void 0),$n}},ut}var k=e(5452);function te(ut,ct,It,Ct,Ut,cn,rn){try{var Dn=ut[cn](rn),Bn=Dn.value}catch(Cr){It(Cr);return}Dn.done?ct(Bn):Promise.resolve(Bn).then(Ct,Ut)}function V(ut){return function(){var ct=this,It=arguments;return new Promise(function(Ct,Ut){var cn=ut.apply(ct,It);function rn(Bn){te(cn,Ct,Ut,rn,Dn,"next",Bn)}function Dn(Bn){te(cn,Ct,Ut,rn,Dn,"throw",Bn)}rn(void 0)})}}var q=e(50648);function le(ut,ct){var It=typeof Symbol!="undefined"&&ut[Symbol.iterator]||ut["@@iterator"];if(!It){if(Array.isArray(ut)||(It=(0,q.Z)(ut))||ct&&ut&&typeof ut.length=="number"){It&&(ut=It);var Ct=0,Ut=function(){};return{s:Ut,n:function(){return Ct>=ut.length?{done:!0}:{done:!1,value:ut[Ct++]}},e:function(Cr){throw Cr},f:Ut}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cn=!0,rn=!1,Dn;return{s:function(){It=It.call(ut)},n:function(){var Cr=It.next();return cn=Cr.done,Cr},e:function(Cr){rn=!0,Dn=Cr},f:function(){try{!cn&&It.return!=null&&It.return()}finally{if(rn)throw Dn}}}}var X=e(40642);function W(ut){if(typeof Symbol!="undefined"&&ut[Symbol.iterator]!=null||ut["@@iterator"]!=null)return Array.from(ut)}var x=e(8010);function O(ut){return(0,X.Z)(ut)||W(ut)||(0,q.Z)(ut)||(0,x.Z)()}function _(ut,ct){if(!(ut instanceof ct))throw new TypeError("Cannot call a class as a function")}var U=e(4566);function A(ut,ct){for(var It=0;It-1,"register failed, invalid key ".concat(Ut," ").concat(It.path?"from plugin ".concat(It.path):"",".")),Ct.hooks[Ut]=(Ct.hooks[Ut]||[]).concat(It.apply[Ut])})}},{key:"getHooks",value:function(It){var Ct=It.split("."),Ut=O(Ct),cn=Ut[0],rn=Ut.slice(1),Dn=this.hooks[cn]||[];return rn.length&&(Dn=Dn.map(function(Bn){try{var Cr=Bn,rr=le(rn),$n;try{for(rr.s();!($n=rr.n()).done;){var kr=$n.value;Cr=Cr[kr]}}catch(Mr){rr.e(Mr)}finally{rr.f()}return Cr}catch(Mr){return null}}).filter(Boolean)),Dn}},{key:"applyPlugins",value:function(It){var Ct=It.key,Ut=It.type,cn=It.initialValue,rn=It.args,Dn=It.async,Bn=this.getHooks(Ct)||[];switch(rn&&pe((0,j.Z)(rn)==="object","applyPlugins failed, args must be plain object."),Dn&&pe(Ut===Te.modify||Ut===Te.event,"async only works with modify and event type."),Ut){case Te.modify:return Dn?Bn.reduce(function(){var Cr=V(K().mark(function rr($n,kr){var Mr;return K().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:if(pe(typeof kr=="function"||(0,j.Z)(kr)==="object"||be(kr),"applyPlugins failed, all hooks for key ".concat(Ct," must be function, plain object or Promise.")),!be($n)){zr.next=5;break}return zr.next=4,$n;case 4:$n=zr.sent;case 5:if(typeof kr!="function"){zr.next=16;break}if(Mr=kr($n,rn),!be(Mr)){zr.next=13;break}return zr.next=10,Mr;case 10:return zr.abrupt("return",zr.sent);case 13:return zr.abrupt("return",Mr);case 14:zr.next=21;break;case 16:if(!be(kr)){zr.next=20;break}return zr.next=19,kr;case 19:kr=zr.sent;case 20:return zr.abrupt("return",(0,k.Z)((0,k.Z)({},$n),kr));case 21:case"end":return zr.stop()}},rr)}));return function(rr,$n){return Cr.apply(this,arguments)}}(),be(cn)?cn:Promise.resolve(cn)):Bn.reduce(function(Cr,rr){return pe(typeof rr=="function"||(0,j.Z)(rr)==="object","applyPlugins failed, all hooks for key ".concat(Ct," must be function or plain object.")),typeof rr=="function"?rr(Cr,rn):(0,k.Z)((0,k.Z)({},Cr),rr)},cn);case Te.event:return V(K().mark(function Cr(){var rr,$n,kr,Mr;return K().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:rr=le(Bn),zr.prev=1,rr.s();case 3:if(($n=rr.n()).done){zr.next=12;break}if(kr=$n.value,pe(typeof kr=="function","applyPlugins failed, all hooks for key ".concat(Ct," must be function.")),Mr=kr(rn),!(Dn&&be(Mr))){zr.next=10;break}return zr.next=10,Mr;case 10:zr.next=3;break;case 12:zr.next=17;break;case 14:zr.prev=14,zr.t0=zr.catch(1),rr.e(zr.t0);case 17:return zr.prev=17,rr.f(),zr.finish(17);case 20:case"end":return zr.stop()}},Cr,null,[[1,14,17,20]])}))();case Te.compose:return function(){return ge({fns:Bn.concat(cn),args:rn})()}}}}],[{key:"create",value:function(It){var Ct=new ut({validKeys:It.validKeys});return It.plugins.forEach(function(Ut){Ct.register(Ut)}),Ct}}]),ut}(),Je=e(12763),Qe=e(16962),pt=e.n(Qe),Et=0,ft=0;function Wt(ut,ct){if(!1)var It}function $e(ut){return JSON.stringify(ut,null,2)}function Xe(ut){var ct=ut.length>1?ut.map(nt).join(" "):ut[0];return pt()(ct)==="object"?"".concat($e(ct)):ct.toString()}function nt(ut){return pt()(ut)==="object"?"".concat(JSON.stringify(ut)):ut.toString()}var Ke={log:function(){for(var ct=arguments.length,It=new Array(ct),Ct=0;Ct-1&&(cn=setTimeout(function(){se.delete(ct)},It)),se.set(ct,{data:Ct,timer:cn,startTime:new Date().getTime()})},de=function(ct){var It=se.get(ct);return{data:It==null?void 0:It.data,startTime:It==null?void 0:It.startTime}},xe=function(ut,ct){var It=typeof Symbol=="function"&&ut[Symbol.iterator];if(!It)return ut;var Ct=It.call(ut),Ut,cn=[],rn;try{for(;(ct===void 0||ct-- >0)&&!(Ut=Ct.next()).done;)cn.push(Ut.value)}catch(Dn){rn={error:Dn}}finally{try{Ut&&!Ut.done&&(It=Ct.return)&&It.call(Ct)}finally{if(rn)throw rn.error}}return cn},ce=function(){for(var ut=[],ct=0;ct0)&&!(Ut=Ct.next()).done;)cn.push(Ut.value)}catch(Dn){rn={error:Dn}}finally{try{Ut&&!Ut.done&&(It=Ct.return)&&It.call(Ct)}finally{if(rn)throw rn.error}}return cn},we=function(){for(var ut=[],ct=0;ct0)&&!(Ut=Ct.next()).done;)cn.push(Ut.value)}catch(Dn){rn={error:Dn}}finally{try{Ut&&!Ut.done&&(It=Ct.return)&&It.call(Ct)}finally{if(rn)throw rn.error}}return cn},St=function(){for(var ut=[],ct=0;ct0){var Lr=Ur&&((na=getCache(Ur))===null||na===void 0?void 0:na.startTime)||0;Zn===-1||new Date().getTime()-Lr<=Zn||Object.values(dn).forEach(function(Zr){Zr.refresh()})}else Hr.current.apply(Hr,St(sr))},[]);var oa=useCallback(function(){Object.values(Sn.current).forEach(function(na){na.unmount()}),mo.current=lt,Pn({}),Sn.current={}},[Pn]);useUpdateEffect(function(){rn||Object.values(Sn.current).forEach(function(na){na.refresh()})},St(Ut)),useEffect(function(){return function(){Object.values(Sn.current).forEach(function(na){na.unmount()})}},[]);var Jr=useCallback(function(na){return function(){console.warn("You should't call "+na+" when service not executed once.")}},[]);return ze(ze({loading:on&&!rn||kr,data:wr,error:void 0,params:[],cancel:Jr("cancel"),refresh:Jr("refresh"),mutate:Jr("mutate")},dn[mo.current]||{}),{run:ir,fetches:dn,reset:oa})}var At=null,Ie=function(){return Ie=Object.assign||function(ut){for(var ct,It=1,Ct=arguments.length;It0)&&!(Ut=Ct.next()).done;)cn.push(Ut.value)}catch(Dn){rn={error:Dn}}finally{try{Ut&&!Ut.done&&(It=Ct.return)&&It.call(Ct)}finally{if(rn)throw rn.error}}return cn},jt=function(){for(var ut=[],ct=0;ct0)&&!(Ut=Ct.next()).done;)cn.push(Ut.value)}catch(Dn){rn={error:Dn}}finally{try{Ut&&!Ut.done&&(It=Ct.return)&&It.call(Ct)}finally{if(rn)throw rn.error}}return cn},un=function(){for(var ut=[],ct=0;ctJa&&(on=Math.max(1,Ja)),pr({current:on,pageSize:Mn})},[Ur,pr]),Yn=useCallback(function(wr){ma(wr,sr)},[ma,sr]),Zn=useCallback(function(wr){ma(wn,wr)},[ma,wn]),Sr=useRef(Yn);Sr.current=Yn,useUpdateEffect(function(){ct.manual||Sr.current(1)},un(rn));var Xr=useCallback(function(wr,Pt,on){pr({current:wr.current,pageSize:wr.pageSize||Ut,filters:Pt,sorter:on})},[ga,Kr,pr]);return $t({loading:Mr,data:rr,params:$n,run:kr,pagination:{current:wn,pageSize:sr,total:Ur,totalPage:Ma,onChange:ma,changeCurrent:Yn,changePageSize:Zn},tableProps:{dataSource:(rr==null?void 0:rr.list)||[],loading:Mr,onChange:Xr,pagination:{current:wn,pageSize:sr,total:Ur}},sorter:Kr,filters:ga},ia)}var pn=null,Gn=o.createContext({});Gn.displayName="UseRequestConfigContext";var Qn=Gn,ur=function(){return ur=Object.assign||function(ut){for(var ct,It=1,Ct=arguments.length;It0)&&!(Ut=Ct.next()).done;)cn.push(Ut.value)}catch(Dn){rn={error:Dn}}finally{try{Ut&&!Ut.done&&(It=Ct.return)&&It.call(Ct)}finally{if(rn)throw rn.error}}return cn},en=function(){for(var ut=[],ct=0;ct1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(ut,_objectSpread({formatResult:function(Ct){return Ct==null?void 0:Ct.data},requestMethod:function(Ct){if(typeof Ct=="string")return _n(Ct);if(_typeof(Ct)==="object"){var Ut=Ct.url,cn=_objectWithoutProperties(Ct,gt);return _n(Ut,cn)}throw new Error("request options error")}},ct))}var Qt,tn,yn=function(){return tn||(tn=(0,mt.We)().applyPlugins({key:"request",type:Te.modify,initialValue:{}}),tn)},gn=function(){var ct,It;if(Qt)return Qt;var Ct=yn();return Qt=ie().create(Ct),Ct==null||(ct=Ct.requestInterceptors)===null||ct===void 0||ct.forEach(function(Ut){Ut instanceof Array?Qt.interceptors.request.use(function(cn){var rn=cn.url;if(Ut[0].length===2){var Dn=Ut[0](rn,cn),Bn=Dn.url,Cr=Dn.options;return ae()(ae()({},Cr),{},{url:Bn})}return Ut[0](cn)},Ut[1]):Qt.interceptors.request.use(function(cn){var rn=cn.url;if(Ut.length===2){var Dn=Ut(rn,cn),Bn=Dn.url,Cr=Dn.options;return ae()(ae()({},Cr),{},{url:Bn})}return Ut(cn)})}),Ct==null||(It=Ct.responseInterceptors)===null||It===void 0||It.forEach(function(Ut){Ut instanceof Array?Qt.interceptors.response.use(Ut[0],Ut[1]):Qt.interceptors.response.use(Ut)}),Qt.interceptors.response.use(function(Ut){var cn,rn=Ut.data;return(rn==null?void 0:rn.success)===!1&&Ct!==null&&Ct!==void 0&&(cn=Ct.errorConfig)!==null&&cn!==void 0&&cn.errorThrower&&Ct.errorConfig.errorThrower(rn),Ut}),Qt},_n=function(ct){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},Ct=gn(),Ut=yn(),cn=It.getResponse,rn=cn===void 0?!1:cn,Dn=It.requestInterceptors,Bn=It.responseInterceptors,Cr=Dn==null?void 0:Dn.map(function($n){return $n instanceof Array?Ct.interceptors.request.use(function(kr){var Mr=kr.url;if($n[0].length===2){var ia=$n[0](Mr,kr),zr=ia.url,Wn=ia.options;return ae()(ae()({},Wn),{},{url:zr})}return $n[0](kr)},$n[1]):Ct.interceptors.request.use(function(kr){var Mr=kr.url;if($n.length===2){var ia=$n(Mr,kr),zr=ia.url,Wn=ia.options;return ae()(ae()({},Wn),{},{url:zr})}return $n(kr)})}),rr=Bn==null?void 0:Bn.map(function($n){return $n instanceof Array?Ct.interceptors.response.use($n[0],$n[1]):Ct.interceptors.response.use($n)});return new Promise(function($n,kr){Ct.request(ae()(ae()({},It),{},{url:ct})).then(function(Mr){Cr==null||Cr.forEach(function(ia){Ct.interceptors.request.eject(ia)}),rr==null||rr.forEach(function(ia){Ct.interceptors.response.eject(ia)}),$n(rn?Mr:Mr.data)}).catch(function(Mr){Cr==null||Cr.forEach(function(Wn){Ct.interceptors.request.eject(Wn)}),rr==null||rr.forEach(function(Wn){Ct.interceptors.response.eject(Wn)});try{var ia,zr=Ut==null||(ia=Ut.errorConfig)===null||ia===void 0?void 0:ia.errorHandler;zr&&zr(Mr,It,Ut)}catch(Wn){kr(Wn)}kr(Mr)})})},nr=function(){}},96662:function(b,y,e){"use strict";e.d(y,{J:function(){return t}});var a=e(58757),t=a.createContext(null)},64470:function(b,y,e){"use strict";e.d(y,{Mf:function(){return d}});var a=e(58757),t=e(96662),o=e(35667),s=function(){return a.useContext(t.J)},n=function(c){return _jsx(_Fragment,{children:c.accessible?c.children:c.fallback})},d=function(c){var m=s(),g=a.useMemo(function(){var M=function h(S,w,C){var F,Z,N=S.access,L=S;if(!N&&w&&(N=w,L=C),S.unaccessible=!1,typeof N=="string"){var $=m[N];typeof $=="function"?S.unaccessible=!$(L):typeof $=="boolean"?S.unaccessible=!$:typeof $=="undefined"&&(S.unaccessible=!0)}if((F=S.children)!==null&&F!==void 0&&F.length){var D=!S.children.reduce(function(j,K){return h(K,N,S),j||!K.unaccessible},!1);D&&(S.unaccessible=!0)}if((Z=S.routes)!==null&&Z!==void 0&&Z.length){var T=!S.routes.reduce(function(j,K){return h(K,N,S),j||!K.unaccessible},!1);T&&(S.unaccessible=!0)}return S};return c.map(function(h){return M(h)})},[c.length,m]);return g}},93325:function(b,y,e){"use strict";e.d(y,{_H:function(){return a._H},pD:function(){return L},wv:function(){return a.wv},Kd:function(){return a.Kd},i_:function(){return a.i_},YB:function(){return a.YB}});var a=e(16221),t=e(88205),o=e.n(t),s=e(2657),n=e(63900),d=e.n(n),l=e(62376),c=e.n(l),m=e(58757),g=e(73267),M=e(93430),h=e(85706),S=e(35667),w=["overlayClassName"],C=["globalIconClassName","postLocalesData","onItemClick","icon","style","reload"],F=function(D){var T=D.overlayClassName,j=c()(D,w);return(0,S.jsx)(g.Z,d()({overlayClassName:T},j))},Z=function(D){return D.reduce(function(T,j){return j.lang?_objectSpread(_objectSpread({},T),{},_defineProperty({},j.lang,j)):T},{})},N={"ar-EG":{lang:"ar-EG",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",icon:"\u{1F1EA}\u{1F1EC}",title:"\u0644\u063A\u0629"},"az-AZ":{lang:"az-AZ",label:"Az\u0259rbaycan dili",icon:"\u{1F1E6}\u{1F1FF}",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A",icon:"\u{1F1E7}\u{1F1EC}",title:"\u0435\u0437\u0438\u043A"},"bn-BD":{lang:"bn-BD",label:"\u09AC\u09BE\u0982\u09B2\u09BE",icon:"\u{1F1E7}\u{1F1E9}",title:"\u09AD\u09BE\u09B7\u09BE"},"ca-ES":{lang:"ca-ES",label:"Catal\xE1",icon:"\u{1F1E8}\u{1F1E6}",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"\u010Ce\u0161tina",icon:"\u{1F1E8}\u{1F1FF}",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"\u{1F1E9}\u{1F1F0}",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"\u{1F1E9}\u{1F1EA}",title:"Sprache"},"el-GR":{lang:"el-GR",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",icon:"\u{1F1EC}\u{1F1F7}",title:"\u0393\u03BB\u03CE\u03C3\u03C3\u03B1"},"en-GB":{lang:"en-GB",label:"English",icon:"\u{1F1EC}\u{1F1E7}",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"\u{1F1FA}\u{1F1F8}",title:"Language"},"es-ES":{lang:"es-ES",label:"Espa\xF1ol",icon:"\u{1F1EA}\u{1F1F8}",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"\u{1F1EA}\u{1F1EA}",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"\u0641\u0627\u0631\u0633\u06CC",icon:"\u{1F1EE}\u{1F1F7}",title:"\u0632\u0628\u0627\u0646"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"\u{1F1EB}\u{1F1EE}",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Fran\xE7ais",icon:"\u{1F1E7}\u{1F1EA}",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Fran\xE7ais",icon:"\u{1F1EB}\u{1F1F7}",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"\u{1F1EE}\u{1F1EA}",title:"Teanga"},"he-IL":{lang:"he-IL",label:"\u05E2\u05D1\u05E8\u05D9\u05EA",icon:"\u{1F1EE}\u{1F1F1}",title:"\u05E9\u05E4\u05D4"},"hi-IN":{lang:"hi-IN",label:"\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940",icon:"\u{1F1EE}\u{1F1F3}",title:"\u092D\u093E\u0937\u093E: \u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"\u{1F1ED}\u{1F1F7}",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"\u{1F1ED}\u{1F1FA}",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",icon:"\u{1F1E6}\u{1F1F2}",title:"\u053C\u0565\u0566\u0578\u0582"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"\u{1F1EE}\u{1F1E9}",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"\u{1F1EE}\u{1F1F9}",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"\xCDslenska",icon:"\u{1F1EE}\u{1F1F8}",title:"Tungum\xE1l"},"ja-JP":{lang:"ja-JP",label:"\u65E5\u672C\u8A9E",icon:"\u{1F1EF}\u{1F1F5}",title:"\u8A00\u8A9E"},"ku-IQ":{lang:"ku-IQ",label:"\u06A9\u0648\u0631\u062F\u06CC",icon:"\u{1F1EE}\u{1F1F6}",title:"Ziman"},"kn-IN":{lang:"kn-IN",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0CAD\u0CBE\u0CB7\u0CC6"},"ko-KR":{lang:"ko-KR",label:"\uD55C\uAD6D\uC5B4",icon:"\u{1F1F0}\u{1F1F7}",title:"\uC5B8\uC5B4"},"lv-LV":{lang:"lv-LV",label:"Latvie\u0161u valoda",icon:"\u{1F1F1}\u{1F1EE}",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",icon:"\u{1F1F2}\u{1F1F0}",title:"\u0408\u0430\u0437\u0438\u043A"},"mn-MN":{lang:"mn-MN",label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B",icon:"\u{1F1F2}\u{1F1F3}",title:"\u0425\u044D\u043B"},"ms-MY":{lang:"ms-MY",label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E",icon:"\u{1F1F2}\u{1F1FE}",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"\u{1F1F3}\u{1F1F4}",title:"Spr\xE5k"},"ne-NP":{lang:"ne-NP",label:"\u0928\u0947\u092A\u093E\u0932\u0940",icon:"\u{1F1F3}\u{1F1F5}",title:"\u092D\u093E\u0937\u093E"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"\u{1F1E7}\u{1F1EA}",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Vlaams",icon:"\u{1F1F3}\u{1F1F1}",title:"Taal"},"pl-PL":{lang:"pl-PL",label:"Polski",icon:"\u{1F1F5}\u{1F1F1}",title:"J\u0119zyk"},"pt-BR":{lang:"pt-BR",label:"Portugu\xEAs",icon:"\u{1F1E7}\u{1F1F7}",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Portugu\xEAs",icon:"\u{1F1F5}\u{1F1F9}",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Rom\xE2n\u0103",icon:"\u{1F1F7}\u{1F1F4}",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",icon:"\u{1F1F7}\u{1F1FA}",title:"\u044F\u0437\u044B\u043A"},"sk-SK":{lang:"sk-SK",label:"Sloven\u010Dina",icon:"\u{1F1F8}\u{1F1F0}",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A",icon:"\u{1F1F8}\u{1F1F7}",title:"\u0408\u0435\u0437\u0438\u043A"},"sl-SI":{lang:"sl-SI",label:"Sloven\u0161\u010Dina",icon:"\u{1F1F8}\u{1F1F1}",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"\u{1F1F8}\u{1F1EA}",title:"Spr\xE5k"},"ta-IN":{lang:"ta-IN",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0BAE\u0BCA\u0BB4\u0BBF"},"th-TH":{lang:"th-TH",label:"\u0E44\u0E17\u0E22",icon:"\u{1F1F9}\u{1F1ED}",title:"\u0E20\u0E32\u0E29\u0E32"},"tr-TR":{lang:"tr-TR",label:"T\xFCrk\xE7e",icon:"\u{1F1F9}\u{1F1F7}",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",icon:"\u{1F1FA}\u{1F1F0}",title:"\u041C\u043E\u0432\u0430"},"vi-VN":{lang:"vi-VN",label:"Ti\u1EBFng Vi\u1EC7t",icon:"\u{1F1FB}\u{1F1F3}",title:"Ng\xF4n ng\u1EEF"},"zh-CN":{lang:"zh-CN",label:"\u7B80\u4F53\u4E2D\u6587",icon:"\u{1F1E8}\u{1F1F3}",title:"\u8BED\u8A00"},"zh-TW":{lang:"zh-TW",label:"\u7E41\u9AD4\u4E2D\u6587",icon:"\u{1F1ED}\u{1F1F0}",title:"\u8A9E\u8A00"}},L=function(D){var T,j=D.globalIconClassName,K=D.postLocalesData,k=D.onItemClick,te=D.icon,V=D.style,q=D.reload,le=c()(D,C),X=(0,m.useState)(function(){return(0,a.Kd)()}),W=o()(X,2),x=W[0],O=W[1],_=function(Je){var Qe=Je.key;(0,a.i_)(Qe,q),O((0,a.Kd)())},U=(0,a.XZ)().map(function(Ge){return N[Ge]||{lang:Ge,label:Ge,icon:"\u{1F310}",title:Ge}}),A=(K==null?void 0:K(U))||U,G=k?function(Ge){return k(Ge)}:_,fe={minWidth:"160px"},pe={marginRight:"8px"},ge={selectedKeys:[x],onClick:G,items:A.map(function(Ge){return{key:Ge.lang||Ge.key,style:fe,label:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{role:"img","aria-label":(Ge==null?void 0:Ge.label)||"en-US",style:pe,children:(Ge==null?void 0:Ge.icon)||"\u{1F310}"}),(Ge==null?void 0:Ge.label)||"en-US"]})}})},be;M.Z.startsWith("5.")||M.Z.startsWith("4.24.")?be={menu:ge}:M.Z.startsWith("3.")?be={overlay:(0,S.jsx)(h.Z,{children:ge.items.map(function(Ge){return(0,S.jsx)(h.Z.Item,{onClick:Ge.onClick,children:Ge.label},Ge.key)})})}:be={overlay:(0,S.jsx)(h.Z,d()({},ge))};var Te=d()({cursor:"pointer",padding:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:18,verticalAlign:"middle"},V);return(0,S.jsx)(F,d()(d()(d()({},be),{},{placement:"bottomRight"},le),{},{children:(0,S.jsx)("span",{className:j,style:Te,children:(0,S.jsx)("i",{className:"anticon",title:(T=A[x])===null||T===void 0?void 0:T.title,children:te||(0,S.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:[(0,S.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,S.jsx)("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",className:"css-c4d79v"})]})})})}))}},16221:function(b,y,e){"use strict";e.d(y,{_H:function(){return wn},PZ:function(){return Xr},eU:function(){return j},B:function(){return Sr},wv:function(){return No},XZ:function(){return ho},Mg:function(){return ka},lw:function(){return Ja},Kd:function(){return Ua},H8:function(){return wr},i_:function(){return Qa},YB:function(){return Rn}});var a=e(62376),t=e.n(a),o=e(63900),s=e.n(o),n=e(77016),d=e.n(n),l=e(61697),c=e.n(l),m=e(1769),g=e.n(m),M=e(19881),h=e.n(M),S=e(58757),w=e.t(S,2),C=e(2657),F=e(10063),Z=e.n(F),N=Z()||F;function L(dt){return dt.displayName||dt.name||"Component"}var $=S.createContext(null),D=$.Consumer,T=$.Provider,j=T,K=$;function k(dt,Rt){var Ae=Rt||{},dn=Ae.intlPropName,Pn=dn===void 0?"intl":dn,Sn=Ae.forwardRef,er=Sn===void 0?!1:Sn,ir=Ae.enforceContext,Hr=ir===void 0?!0:ir,Oa=function(Jr){return React.createElement(D,null,function(na){return Hr&&invariantIntlContext(na),React.createElement(dt,Object.assign({},Jr,_defineProperty({},Pn,na),{ref:er?Jr.forwardedRef:null}))})};return Oa.displayName="injectIntl(".concat(L(dt),")"),Oa.WrappedComponent=dt,N(er?React.forwardRef(function(oa,Jr){return React.createElement(Oa,Object.assign({},oa,{forwardedRef:Jr}))}):Oa,dt)}var te;(function(dt){dt[dt.literal=0]="literal",dt[dt.argument=1]="argument",dt[dt.number=2]="number",dt[dt.date=3]="date",dt[dt.time=4]="time",dt[dt.select=5]="select",dt[dt.plural=6]="plural",dt[dt.pound=7]="pound"})(te||(te={}));function V(dt){return dt.type===te.literal}function q(dt){return dt.type===te.argument}function le(dt){return dt.type===te.number}function X(dt){return dt.type===te.date}function W(dt){return dt.type===te.time}function x(dt){return dt.type===te.select}function O(dt){return dt.type===te.plural}function _(dt){return dt.type===te.pound}function U(dt){return!!(dt&&typeof dt=="object"&&dt.type===0)}function A(dt){return!!(dt&&typeof dt=="object"&&dt.type===1)}function G(dt){return{type:te.literal,value:dt}}function fe(dt,Rt){return{type:te.number,value:dt,style:Rt}}var pe=function(){var dt=function(Rt,Ae){return dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dn,Pn){dn.__proto__=Pn}||function(dn,Pn){for(var Sn in Pn)Pn.hasOwnProperty(Sn)&&(dn[Sn]=Pn[Sn])},dt(Rt,Ae)};return function(Rt,Ae){dt(Rt,Ae);function dn(){this.constructor=Rt}Rt.prototype=Ae===null?Object.create(Ae):(dn.prototype=Ae.prototype,new dn)}}(),ge=function(){return ge=Object.assign||function(dt){for(var Rt,Ae=1,dn=arguments.length;Ae0){for(na=1,Lr=1;nazo&&(zo=Ft,dl=[]),dl.push(at))}function au(at,Kt){return new be(at,[],"",Kt)}function _i(at,Kt,Vn){return new be(be.buildMessage(at,Kt),at,Kt,Vn)}function Al(){var at;return at=vl(),at}function vl(){var at,Kt;for(at=[],Kt=vu();Kt!==Ae;)at.push(Kt),Kt=vu();return at}function vu(){var at;return at=tc(),at===Ae&&(at=Lo(),at===Ae&&(at=Uu(),at===Ae&&(at=gu(),at===Ae&&(at=ss(),at===Ae&&(at=Zu()))))),at}function Bl(){var at,Kt,Vn;if(at=Ft,Kt=[],Vn=Zi(),Vn===Ae&&(Vn=iu(),Vn===Ae&&(Vn=mu())),Vn!==Ae)for(;Vn!==Ae;)Kt.push(Vn),Vn=Zi(),Vn===Ae&&(Vn=iu(),Vn===Ae&&(Vn=mu()));else Kt=Ae;return Kt!==Ae&&(So=at,Kt=Sn(Kt)),at=Kt,at}function tc(){var at,Kt;return at=Ft,Kt=Bl(),Kt!==Ae&&(So=at,Kt=er(Kt)),at=Kt,at}function Zu(){var at,Kt;return at=Ft,dt.charCodeAt(Ft)===35?(Kt=ir,Ft++):(Kt=Ae,sa===0&&Na(Hr)),Kt!==Ae&&(So=at,Kt=Oa()),at=Kt,at}function Lo(){var at,Kt,Vn,gr,Da,lo;return sa++,at=Ft,dt.charCodeAt(Ft)===123?(Kt=Jr,Ft++):(Kt=Ae,sa===0&&Na(na)),Kt!==Ae?(Vn=vo(),Vn!==Ae?(gr=wl(),gr!==Ae?(Da=vo(),Da!==Ae?(dt.charCodeAt(Ft)===125?(lo=Lr,Ft++):(lo=Ae,sa===0&&Na(Zr)),lo!==Ae?(So=at,Kt=ca(gr),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae),sa--,at===Ae&&(Kt=Ae,sa===0&&Na(oa)),at}function Au(){var at,Kt,Vn,gr,Da;if(sa++,at=Ft,Kt=[],Vn=Ft,gr=Ft,sa++,Da=qi(),Da===Ae&&(eo.test(dt.charAt(Ft))?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(Va))),sa--,Da===Ae?gr=void 0:(Ft=gr,gr=Ae),gr!==Ae?(dt.length>Ft?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(Xt)),Da!==Ae?(gr=[gr,Da],Vn=gr):(Ft=Vn,Vn=Ae)):(Ft=Vn,Vn=Ae),Vn!==Ae)for(;Vn!==Ae;)Kt.push(Vn),Vn=Ft,gr=Ft,sa++,Da=qi(),Da===Ae&&(eo.test(dt.charAt(Ft))?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(Va))),sa--,Da===Ae?gr=void 0:(Ft=gr,gr=Ae),gr!==Ae?(dt.length>Ft?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(Xt)),Da!==Ae?(gr=[gr,Da],Vn=gr):(Ft=Vn,Vn=Ae)):(Ft=Vn,Vn=Ae);else Kt=Ae;return Kt!==Ae?at=dt.substring(at,Ft):at=Kt,sa--,at===Ae&&(Kt=Ae,sa===0&&Na(Ta)),at}function Kl(){var at,Kt,Vn;return sa++,at=Ft,dt.charCodeAt(Ft)===47?(Kt=Tn,Ft++):(Kt=Ae,sa===0&&Na(tr)),Kt!==Ae?(Vn=Au(),Vn!==Ae?(So=at,Kt=yr(Vn),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae),sa--,at===Ae&&(Kt=Ae,sa===0&&Na(In)),at}function vs(){var at,Kt,Vn,gr,Da;if(sa++,at=Ft,Kt=vo(),Kt!==Ae)if(Vn=Au(),Vn!==Ae){for(gr=[],Da=Kl();Da!==Ae;)gr.push(Da),Da=Kl();gr!==Ae?(So=at,Kt=ea(Vn,gr),at=Kt):(Ft=at,at=Ae)}else Ft=at,at=Ae;else Ft=at,at=Ae;return sa--,at===Ae&&(Kt=Ae,sa===0&&Na(Wr)),at}function Ol(){var at,Kt,Vn;if(at=Ft,Kt=[],Vn=vs(),Vn!==Ae)for(;Vn!==Ae;)Kt.push(Vn),Vn=vs();else Kt=Ae;return Kt!==Ae&&(So=at,Kt=dr(Kt)),at=Kt,at}function gl(){var at,Kt,Vn;return at=Ft,dt.substr(Ft,2)===_r?(Kt=_r,Ft+=2):(Kt=Ae,sa===0&&Na(la)),Kt!==Ae?(Vn=Ol(),Vn!==Ae?(So=at,Kt=Ia(Vn),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae),at===Ae&&(at=Ft,So=Ft,Kt=Ca(),Kt?Kt=void 0:Kt=Ae,Kt!==Ae?(Vn=Bl(),Vn!==Ae?(So=at,Kt=qr(Vn),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)),at}function kt(){var at,Kt,Vn,gr,Da,lo,ii,Fo,es,ei,di,Eo,Ao;return at=Ft,dt.charCodeAt(Ft)===123?(Kt=Jr,Ft++):(Kt=Ae,sa===0&&Na(na)),Kt!==Ae?(Vn=vo(),Vn!==Ae?(gr=wl(),gr!==Ae?(Da=vo(),Da!==Ae?(dt.charCodeAt(Ft)===44?(lo=fo,Ft++):(lo=Ae,sa===0&&Na(Co)),lo!==Ae?(ii=vo(),ii!==Ae?(dt.substr(Ft,6)===_a?(Fo=_a,Ft+=6):(Fo=Ae,sa===0&&Na(bo)),Fo!==Ae?(es=vo(),es!==Ae?(ei=Ft,dt.charCodeAt(Ft)===44?(di=fo,Ft++):(di=Ae,sa===0&&Na(Co)),di!==Ae?(Eo=vo(),Eo!==Ae?(Ao=gl(),Ao!==Ae?(di=[di,Eo,Ao],ei=di):(Ft=ei,ei=Ae)):(Ft=ei,ei=Ae)):(Ft=ei,ei=Ae),ei===Ae&&(ei=null),ei!==Ae?(di=vo(),di!==Ae?(dt.charCodeAt(Ft)===125?(Eo=Lr,Ft++):(Eo=Ae,sa===0&&Na(Zr)),Eo!==Ae?(So=at,Kt=so(gr,Fo,ei),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae),at}function Di(){var at,Kt,Vn,gr;if(at=Ft,dt.charCodeAt(Ft)===39?(Kt=Sa,Ft++):(Kt=Ae,sa===0&&Na(Ba)),Kt!==Ae){if(Vn=[],gr=Zi(),gr===Ae&&(Mo.test(dt.charAt(Ft))?(gr=dt.charAt(Ft),Ft++):(gr=Ae,sa===0&&Na(Ko))),gr!==Ae)for(;gr!==Ae;)Vn.push(gr),gr=Zi(),gr===Ae&&(Mo.test(dt.charAt(Ft))?(gr=dt.charAt(Ft),Ft++):(gr=Ae,sa===0&&Na(Ko)));else Vn=Ae;Vn!==Ae?(dt.charCodeAt(Ft)===39?(gr=Sa,Ft++):(gr=Ae,sa===0&&Na(Ba)),gr!==Ae?(Kt=[Kt,Vn,gr],at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)}else Ft=at,at=Ae;if(at===Ae)if(at=[],Kt=Zi(),Kt===Ae&&(Jo.test(dt.charAt(Ft))?(Kt=dt.charAt(Ft),Ft++):(Kt=Ae,sa===0&&Na(ao))),Kt!==Ae)for(;Kt!==Ae;)at.push(Kt),Kt=Zi(),Kt===Ae&&(Jo.test(dt.charAt(Ft))?(Kt=dt.charAt(Ft),Ft++):(Kt=Ae,sa===0&&Na(ao)));else at=Ae;return at}function Ql(){var at,Kt;if(at=[],yi.test(dt.charAt(Ft))?(Kt=dt.charAt(Ft),Ft++):(Kt=Ae,sa===0&&Na(ji)),Kt!==Ae)for(;Kt!==Ae;)at.push(Kt),yi.test(dt.charAt(Ft))?(Kt=dt.charAt(Ft),Ft++):(Kt=Ae,sa===0&&Na(ji));else at=Ae;return at}function $i(){var at,Kt,Vn,gr;if(at=Ft,Kt=Ft,Vn=[],gr=Di(),gr===Ae&&(gr=Ql()),gr!==Ae)for(;gr!==Ae;)Vn.push(gr),gr=Di(),gr===Ae&&(gr=Ql());else Vn=Ae;return Vn!==Ae?Kt=dt.substring(Kt,Ft):Kt=Vn,Kt!==Ae&&(So=at,Kt=_o(Kt)),at=Kt,at}function $o(){var at,Kt,Vn;return at=Ft,dt.substr(Ft,2)===_r?(Kt=_r,Ft+=2):(Kt=Ae,sa===0&&Na(la)),Kt!==Ae?(Vn=$i(),Vn!==Ae?(So=at,Kt=Ia(Vn),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae),at===Ae&&(at=Ft,So=Ft,Kt=Bo(),Kt?Kt=void 0:Kt=Ae,Kt!==Ae?(Vn=Bl(),Vn!==Ae?(So=at,Kt=qr(Vn),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)),at}function uo(){var at,Kt,Vn,gr,Da,lo,ii,Fo,es,ei,di,Eo,Ao;return at=Ft,dt.charCodeAt(Ft)===123?(Kt=Jr,Ft++):(Kt=Ae,sa===0&&Na(na)),Kt!==Ae?(Vn=vo(),Vn!==Ae?(gr=wl(),gr!==Ae?(Da=vo(),Da!==Ae?(dt.charCodeAt(Ft)===44?(lo=fo,Ft++):(lo=Ae,sa===0&&Na(Co)),lo!==Ae?(ii=vo(),ii!==Ae?(dt.substr(Ft,4)===oi?(Fo=oi,Ft+=4):(Fo=Ae,sa===0&&Na(ri)),Fo===Ae&&(dt.substr(Ft,4)===Si?(Fo=Si,Ft+=4):(Fo=Ae,sa===0&&Na(Ni))),Fo!==Ae?(es=vo(),es!==Ae?(ei=Ft,dt.charCodeAt(Ft)===44?(di=fo,Ft++):(di=Ae,sa===0&&Na(Co)),di!==Ae?(Eo=vo(),Eo!==Ae?(Ao=$o(),Ao!==Ae?(di=[di,Eo,Ao],ei=di):(Ft=ei,ei=Ae)):(Ft=ei,ei=Ae)):(Ft=ei,ei=Ae),ei===Ae&&(ei=null),ei!==Ae?(di=vo(),di!==Ae?(dt.charCodeAt(Ft)===125?(Eo=Lr,Ft++):(Eo=Ae,sa===0&&Na(Zr)),Eo!==Ae?(So=at,Kt=so(gr,Fo,ei),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae),at}function Uu(){var at;return at=kt(),at===Ae&&(at=uo()),at}function gu(){var at,Kt,Vn,gr,Da,lo,ii,Fo,es,ei,di,Eo,Ao,ki,ms,Du;if(at=Ft,dt.charCodeAt(Ft)===123?(Kt=Jr,Ft++):(Kt=Ae,sa===0&&Na(na)),Kt!==Ae)if(Vn=vo(),Vn!==Ae)if(gr=wl(),gr!==Ae)if(Da=vo(),Da!==Ae)if(dt.charCodeAt(Ft)===44?(lo=fo,Ft++):(lo=Ae,sa===0&&Na(Co)),lo!==Ae)if(ii=vo(),ii!==Ae)if(dt.substr(Ft,6)===Ei?(Fo=Ei,Ft+=6):(Fo=Ae,sa===0&&Na(to)),Fo===Ae&&(dt.substr(Ft,13)===Ga?(Fo=Ga,Ft+=13):(Fo=Ae,sa===0&&Na(Qo))),Fo!==Ae)if(es=vo(),es!==Ae)if(dt.charCodeAt(Ft)===44?(ei=fo,Ft++):(ei=Ae,sa===0&&Na(Co)),ei!==Ae)if(di=vo(),di!==Ae)if(Eo=Ft,dt.substr(Ft,7)===qo?(Ao=qo,Ft+=7):(Ao=Ae,sa===0&&Na(xo)),Ao!==Ae?(ki=vo(),ki!==Ae?(ms=Js(),ms!==Ae?(Ao=[Ao,ki,ms],Eo=Ao):(Ft=Eo,Eo=Ae)):(Ft=Eo,Eo=Ae)):(Ft=Eo,Eo=Ae),Eo===Ae&&(Eo=null),Eo!==Ae)if(Ao=vo(),Ao!==Ae){if(ki=[],ms=xi(),ms!==Ae)for(;ms!==Ae;)ki.push(ms),ms=xi();else ki=Ae;ki!==Ae?(ms=vo(),ms!==Ae?(dt.charCodeAt(Ft)===125?(Du=Lr,Ft++):(Du=Ae,sa===0&&Na(Zr)),Du!==Ae?(So=at,Kt=Ro(gr,Fo,Eo,ki),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)}else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;return at}function ss(){var at,Kt,Vn,gr,Da,lo,ii,Fo,es,ei,di,Eo,Ao,ki;if(at=Ft,dt.charCodeAt(Ft)===123?(Kt=Jr,Ft++):(Kt=Ae,sa===0&&Na(na)),Kt!==Ae)if(Vn=vo(),Vn!==Ae)if(gr=wl(),gr!==Ae)if(Da=vo(),Da!==Ae)if(dt.charCodeAt(Ft)===44?(lo=fo,Ft++):(lo=Ae,sa===0&&Na(Co)),lo!==Ae)if(ii=vo(),ii!==Ae)if(dt.substr(Ft,6)===Ci?(Fo=Ci,Ft+=6):(Fo=Ae,sa===0&&Na(Ri)),Fo!==Ae)if(es=vo(),es!==Ae)if(dt.charCodeAt(Ft)===44?(ei=fo,Ft++):(ei=Ae,sa===0&&Na(Co)),ei!==Ae)if(di=vo(),di!==Ae){if(Eo=[],Ao=Mi(),Ao!==Ae)for(;Ao!==Ae;)Eo.push(Ao),Ao=Mi();else Eo=Ae;Eo!==Ae?(Ao=vo(),Ao!==Ae?(dt.charCodeAt(Ft)===125?(ki=Lr,Ft++):(ki=Ae,sa===0&&Na(Zr)),ki!==Ae?(So=at,Kt=Ui(gr,Eo),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)}else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;else Ft=at,at=Ae;return at}function Dl(){var at,Kt,Vn,gr;return at=Ft,Kt=Ft,dt.charCodeAt(Ft)===61?(Vn=Os,Ft++):(Vn=Ae,sa===0&&Na(fs)),Vn!==Ae?(gr=Js(),gr!==Ae?(Vn=[Vn,gr],Kt=Vn):(Ft=Kt,Kt=Ae)):(Ft=Kt,Kt=Ae),Kt!==Ae?at=dt.substring(at,Ft):at=Kt,at===Ae&&(at=Ss()),at}function Mi(){var at,Kt,Vn,gr,Da,lo,ii,Fo;return at=Ft,Kt=vo(),Kt!==Ae?(Vn=Ss(),Vn!==Ae?(gr=vo(),gr!==Ae?(dt.charCodeAt(Ft)===123?(Da=Jr,Ft++):(Da=Ae,sa===0&&Na(na)),Da!==Ae?(So=Ft,lo=Gs(Vn),lo?lo=void 0:lo=Ae,lo!==Ae?(ii=vl(),ii!==Ae?(dt.charCodeAt(Ft)===125?(Fo=Lr,Ft++):(Fo=Ae,sa===0&&Na(Zr)),Fo!==Ae?(So=at,Kt=xl(Vn,ii),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae),at}function xi(){var at,Kt,Vn,gr,Da,lo,ii,Fo;return at=Ft,Kt=vo(),Kt!==Ae?(Vn=Dl(),Vn!==Ae?(gr=vo(),gr!==Ae?(dt.charCodeAt(Ft)===123?(Da=Jr,Ft++):(Da=Ae,sa===0&&Na(na)),Da!==Ae?(So=Ft,lo=Kn(Vn),lo?lo=void 0:lo=Ae,lo!==Ae?(ii=vl(),ii!==Ae?(dt.charCodeAt(Ft)===125?(Fo=Lr,Ft++):(Fo=Ae,sa===0&&Na(Zr)),Fo!==Ae?(So=at,Kt=Gr(Vn,ii),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae)):(Ft=at,at=Ae),at}function qi(){var at,Kt;return sa++,Br.test(dt.charAt(Ft))?(at=dt.charAt(Ft),Ft++):(at=Ae,sa===0&&Na(ra)),sa--,at===Ae&&(Kt=Ae,sa===0&&Na(jr)),at}function as(){var at,Kt;return sa++,Ra.test(dt.charAt(Ft))?(at=dt.charAt(Ft),Ft++):(at=Ae,sa===0&&Na(Pa)),sa--,at===Ae&&(Kt=Ae,sa===0&&Na(ja)),at}function vo(){var at,Kt,Vn;for(sa++,at=Ft,Kt=[],Vn=qi();Vn!==Ae;)Kt.push(Vn),Vn=qi();return Kt!==Ae?at=dt.substring(at,Ft):at=Kt,sa--,at===Ae&&(Kt=Ae,sa===0&&Na(To)),at}function Js(){var at,Kt,Vn;return sa++,at=Ft,dt.charCodeAt(Ft)===45?(Kt=Zo,Ft++):(Kt=Ae,sa===0&&Na(zi)),Kt===Ae&&(Kt=null),Kt!==Ae?(Vn=jl(),Vn!==Ae?(So=at,Kt=bs(Kt,Vn),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae),sa--,at===Ae&&(Kt=Ae,sa===0&&Na(Yo)),at}function ou(){var at,Kt;return sa++,dt.charCodeAt(Ft)===39?(at=Sa,Ft++):(at=Ae,sa===0&&Na(Ba)),sa--,at===Ae&&(Kt=Ae,sa===0&&Na(Gi)),at}function Zi(){var at,Kt;return sa++,at=Ft,dt.substr(Ft,2)===Xi?(Kt=Xi,Ft+=2):(Kt=Ae,sa===0&&Na(Vo)),Kt!==Ae&&(So=at,Kt=tu()),at=Kt,sa--,at===Ae&&(Kt=Ae,sa===0&&Na(Ds)),at}function iu(){var at,Kt,Vn,gr,Da,lo;if(at=Ft,dt.charCodeAt(Ft)===39?(Kt=Sa,Ft++):(Kt=Ae,sa===0&&Na(Ba)),Kt!==Ae)if(Vn=Us(),Vn!==Ae){for(gr=Ft,Da=[],dt.substr(Ft,2)===Xi?(lo=Xi,Ft+=2):(lo=Ae,sa===0&&Na(Vo)),lo===Ae&&(Mo.test(dt.charAt(Ft))?(lo=dt.charAt(Ft),Ft++):(lo=Ae,sa===0&&Na(Ko)));lo!==Ae;)Da.push(lo),dt.substr(Ft,2)===Xi?(lo=Xi,Ft+=2):(lo=Ae,sa===0&&Na(Vo)),lo===Ae&&(Mo.test(dt.charAt(Ft))?(lo=dt.charAt(Ft),Ft++):(lo=Ae,sa===0&&Na(Ko)));Da!==Ae?gr=dt.substring(gr,Ft):gr=Da,gr!==Ae?(dt.charCodeAt(Ft)===39?(Da=Sa,Ft++):(Da=Ae,sa===0&&Na(Ba)),Da===Ae&&(Da=null),Da!==Ae?(So=at,Kt=Il(Vn,gr),at=Kt):(Ft=at,at=Ae)):(Ft=at,at=Ae)}else Ft=at,at=Ae;else Ft=at,at=Ae;return at}function mu(){var at,Kt,Vn,gr;return at=Ft,Kt=Ft,dt.length>Ft?(Vn=dt.charAt(Ft),Ft++):(Vn=Ae,sa===0&&Na(Xt)),Vn!==Ae?(So=Ft,gr=ul(Vn),gr?gr=void 0:gr=Ae,gr!==Ae?(Vn=[Vn,gr],Kt=Vn):(Ft=Kt,Kt=Ae)):(Ft=Kt,Kt=Ae),Kt===Ae&&(dt.charCodeAt(Ft)===10?(Kt=Iu,Ft++):(Kt=Ae,sa===0&&Na(cl))),Kt!==Ae?at=dt.substring(at,Ft):at=Kt,at}function Us(){var at,Kt,Vn,gr;return at=Ft,Kt=Ft,dt.length>Ft?(Vn=dt.charAt(Ft),Ft++):(Vn=Ae,sa===0&&Na(Xt)),Vn!==Ae?(So=Ft,gr=Ks(Vn),gr?gr=void 0:gr=Ae,gr!==Ae?(Vn=[Vn,gr],Kt=Vn):(Ft=Kt,Kt=Ae)):(Ft=Kt,Kt=Ae),Kt!==Ae?at=dt.substring(at,Ft):at=Kt,at}function wl(){var at,Kt;return sa++,at=Ft,Kt=jl(),Kt===Ae&&(Kt=Ss()),Kt!==Ae?at=dt.substring(at,Ft):at=Kt,sa--,at===Ae&&(Kt=Ae,sa===0&&Na(ws)),at}function jl(){var at,Kt,Vn,gr,Da;if(sa++,at=Ft,dt.charCodeAt(Ft)===48?(Kt=zl,Ft++):(Kt=Ae,sa===0&&Na(fu)),Kt!==Ae&&(So=at,Kt=rs()),at=Kt,at===Ae){if(at=Ft,Kt=Ft,Ms.test(dt.charAt(Ft))?(Vn=dt.charAt(Ft),Ft++):(Vn=Ae,sa===0&&Na(Bs)),Vn!==Ae){for(gr=[],js.test(dt.charAt(Ft))?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(nu));Da!==Ae;)gr.push(Da),js.test(dt.charAt(Ft))?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(nu));gr!==Ae?(Vn=[Vn,gr],Kt=Vn):(Ft=Kt,Kt=Ae)}else Ft=Kt,Kt=Ae;Kt!==Ae&&(So=at,Kt=Vl(Kt)),at=Kt}return sa--,at===Ae&&(Kt=Ae,sa===0&&Na(Qs)),at}function Ss(){var at,Kt,Vn,gr,Da;if(sa++,at=Ft,Kt=[],Vn=Ft,gr=Ft,sa++,Da=qi(),Da===Ae&&(Da=as()),sa--,Da===Ae?gr=void 0:(Ft=gr,gr=Ae),gr!==Ae?(dt.length>Ft?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(Xt)),Da!==Ae?(gr=[gr,Da],Vn=gr):(Ft=Vn,Vn=Ae)):(Ft=Vn,Vn=Ae),Vn!==Ae)for(;Vn!==Ae;)Kt.push(Vn),Vn=Ft,gr=Ft,sa++,Da=qi(),Da===Ae&&(Da=as()),sa--,Da===Ae?gr=void 0:(Ft=gr,gr=Ae),gr!==Ae?(dt.length>Ft?(Da=dt.charAt(Ft),Ft++):(Da=Ae,sa===0&&Na(Xt)),Da!==Ae?(gr=[gr,Da],Vn=gr):(Ft=Vn,Vn=Ae)):(Ft=Vn,Vn=Ae);else Kt=Ae;return Kt!==Ae?at=dt.substring(at,Ft):at=Kt,sa--,at===Ae&&(Kt=Ae,sa===0&&Na(Ps)),at}var gs=["root"];function Ou(){return gs.length>1}function ks(){return gs[gs.length-1]==="plural"}function va(){return Rt&&Rt.captureLocation?{location:Xs()}:{}}if(fl=Pn(),fl!==Ae&&Ft===dt.length)return fl;throw fl!==Ae&&Ft1)throw new RangeError("Fraction-precision stems only accept a single optional option");Pn.stem.replace(R,function(er,ir,Hr){return er==="."?Rt.maximumFractionDigits=0:Hr==="+"?Rt.minimumFractionDigits=Hr.length:ir[0]==="#"?Rt.maximumFractionDigits=ir.length:(Rt.minimumFractionDigits=ir.length,Rt.maximumFractionDigits=ir.length+(typeof Hr=="string"?Hr.length:0)),""}),Pn.options.length&&(Rt=Ke(Ke({},Rt),ae(Pn.options[0])));continue}if(P.test(Pn.stem)){Rt=Ke(Ke({},Rt),ae(Pn.stem));continue}var Sn=Q(Pn.stem);Sn&&(Rt=Ke(Ke({},Rt),Sn))}return Rt}var je=function(){var dt=function(Rt,Ae){return dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dn,Pn){dn.__proto__=Pn}||function(dn,Pn){for(var Sn in Pn)Pn.hasOwnProperty(Sn)&&(dn[Sn]=Pn[Sn])},dt(Rt,Ae)};return function(Rt,Ae){dt(Rt,Ae);function dn(){this.constructor=Rt}Rt.prototype=Ae===null?Object.create(Ae):(dn.prototype=Ae.prototype,new dn)}}(),Ee=function(){for(var dt=0,Rt=0,Ae=arguments.length;Rt=0)&&Object.prototype.propertyIsEnumerable.call(o,d)&&(n[d]=o[d])}return n}b.exports=t,b.exports.__esModule=!0,b.exports.default=b.exports},14385:function(b){function y(e,a){if(e==null)return{};var t={},o=Object.keys(e),s,n;for(n=0;n=0)&&(t[s]=e[s]);return t}b.exports=y,b.exports.__esModule=!0,b.exports.default=b.exports},1745:function(b,y,e){var a=e(16962).default,t=e(55044);function o(s,n){if(n&&(a(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(s)}b.exports=o,b.exports.__esModule=!0,b.exports.default=b.exports},24454:function(b,y,e){var a=e(16962).default;function t(){"use strict";b.exports=t=function(){return o},b.exports.__esModule=!0,b.exports.default=b.exports;var o={},s=Object.prototype,n=s.hasOwnProperty,d=Object.defineProperty||function(W,x,O){W[x]=O.value},l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",m=l.asyncIterator||"@@asyncIterator",g=l.toStringTag||"@@toStringTag";function M(W,x,O){return Object.defineProperty(W,x,{value:O,enumerable:!0,configurable:!0,writable:!0}),W[x]}try{M({},"")}catch(W){M=function(O,_,U){return O[_]=U}}function h(W,x,O,_){var U=x&&x.prototype instanceof C?x:C,A=Object.create(U.prototype),G=new q(_||[]);return d(A,"_invoke",{value:K(W,O,G)}),A}function S(W,x,O){try{return{type:"normal",arg:W.call(x,O)}}catch(_){return{type:"throw",arg:_}}}o.wrap=h;var w={};function C(){}function F(){}function Z(){}var N={};M(N,c,function(){return this});var L=Object.getPrototypeOf,$=L&&L(L(le([])));$&&$!==s&&n.call($,c)&&(N=$);var D=Z.prototype=C.prototype=Object.create(N);function T(W){["next","throw","return"].forEach(function(x){M(W,x,function(O){return this._invoke(x,O)})})}function j(W,x){function O(U,A,G,fe){var pe=S(W[U],W,A);if(pe.type!=="throw"){var ge=pe.arg,be=ge.value;return be&&a(be)=="object"&&n.call(be,"__await")?x.resolve(be.__await).then(function(Te){O("next",Te,G,fe)},function(Te){O("throw",Te,G,fe)}):x.resolve(be).then(function(Te){ge.value=Te,G(ge)},function(Te){return O("throw",Te,G,fe)})}fe(pe.arg)}var _;d(this,"_invoke",{value:function(A,G){function fe(){return new x(function(pe,ge){O(A,G,pe,ge)})}return _=_?_.then(fe,fe):fe()}})}function K(W,x,O){var _="suspendedStart";return function(U,A){if(_==="executing")throw new Error("Generator is already running");if(_==="completed"){if(U==="throw")throw A;return X()}for(O.method=U,O.arg=A;;){var G=O.delegate;if(G){var fe=k(G,O);if(fe){if(fe===w)continue;return fe}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(_==="suspendedStart")throw _="completed",O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);_="executing";var pe=S(W,x,O);if(pe.type==="normal"){if(_=O.done?"completed":"suspendedYield",pe.arg===w)continue;return{value:pe.arg,done:O.done}}pe.type==="throw"&&(_="completed",O.method="throw",O.arg=pe.arg)}}}function k(W,x){var O=x.method,_=W.iterator[O];if(_===void 0)return x.delegate=null,O==="throw"&&W.iterator.return&&(x.method="return",x.arg=void 0,k(W,x),x.method==="throw")||O!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+O+"' method")),w;var U=S(_,W.iterator,x.arg);if(U.type==="throw")return x.method="throw",x.arg=U.arg,x.delegate=null,w;var A=U.arg;return A?A.done?(x[W.resultName]=A.value,x.next=W.nextLoc,x.method!=="return"&&(x.method="next",x.arg=void 0),x.delegate=null,w):A:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,w)}function te(W){var x={tryLoc:W[0]};1 in W&&(x.catchLoc=W[1]),2 in W&&(x.finallyLoc=W[2],x.afterLoc=W[3]),this.tryEntries.push(x)}function V(W){var x=W.completion||{};x.type="normal",delete x.arg,W.completion=x}function q(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(te,this),this.reset(!0)}function le(W){if(W){var x=W[c];if(x)return x.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var O=-1,_=function U(){for(;++O=0;--U){var A=this.tryEntries[U],G=A.completion;if(A.tryLoc==="root")return _("end");if(A.tryLoc<=this.prev){var fe=n.call(A,"catchLoc"),pe=n.call(A,"finallyLoc");if(fe&&pe){if(this.prev=0;--_){var U=this.tryEntries[_];if(U.tryLoc<=this.prev&&n.call(U,"finallyLoc")&&this.prev=0;--O){var _=this.tryEntries[O];if(_.finallyLoc===x)return this.complete(_.completion,_.afterLoc),V(_),w}},catch:function(x){for(var O=this.tryEntries.length-1;O>=0;--O){var _=this.tryEntries[O];if(_.tryLoc===x){var U=_.completion;if(U.type==="throw"){var A=U.arg;V(_)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(x,O,_){return this.delegate={iterator:le(x),resultName:O,nextLoc:_},this.method==="next"&&(this.arg=void 0),w}},o}b.exports=t,b.exports.__esModule=!0,b.exports.default=b.exports},21547:function(b){function y(e,a){return b.exports=y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},b.exports.__esModule=!0,b.exports.default=b.exports,y(e,a)}b.exports=y,b.exports.__esModule=!0,b.exports.default=b.exports},88205:function(b,y,e){var a=e(47296),t=e(79121),o=e(52157),s=e(74335);function n(d,l){return a(d)||t(d,l)||o(d,l)||s()}b.exports=n,b.exports.__esModule=!0,b.exports.default=b.exports},34485:function(b,y,e){var a=e(64212),t=e(32596),o=e(52157),s=e(74387);function n(d){return a(d)||t(d)||o(d)||s()}b.exports=n,b.exports.__esModule=!0,b.exports.default=b.exports},67536:function(b,y,e){var a=e(16962).default;function t(o,s){if(a(o)!=="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var d=n.call(o,s||"default");if(a(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}b.exports=t,b.exports.__esModule=!0,b.exports.default=b.exports},27490:function(b,y,e){var a=e(16962).default,t=e(67536);function o(s){var n=t(s,"string");return a(n)==="symbol"?n:String(n)}b.exports=o,b.exports.__esModule=!0,b.exports.default=b.exports},16962:function(b){function y(e){"@babel/helpers - typeof";return b.exports=y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b.exports.__esModule=!0,b.exports.default=b.exports,y(e)}b.exports=y,b.exports.__esModule=!0,b.exports.default=b.exports},52157:function(b,y,e){var a=e(18724);function t(o,s){if(o){if(typeof o=="string")return a(o,s);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(o,s)}}b.exports=t,b.exports.__esModule=!0,b.exports.default=b.exports},92199:function(b){function y(e){return e&&e.__esModule?e:{default:e}}b.exports=y,b.exports.__esModule=!0,b.exports.default=b.exports},55082:function(b,y,e){var a=e(98316).default;function t(s){if(typeof WeakMap!="function")return null;var n=new WeakMap,d=new WeakMap;return(t=function(c){return c?d:n})(s)}function o(s,n){if(!n&&s&&s.__esModule)return s;if(s===null||a(s)!=="object"&&typeof s!="function")return{default:s};var d=t(n);if(d&&d.has(s))return d.get(s);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in s)if(m!=="default"&&Object.prototype.hasOwnProperty.call(s,m)){var g=c?Object.getOwnPropertyDescriptor(s,m):null;g&&(g.get||g.set)?Object.defineProperty(l,m,g):l[m]=s[m]}return l.default=s,d&&d.set(s,l),l}b.exports=o,b.exports.__esModule=!0,b.exports.default=b.exports},98316:function(b){function y(e){"@babel/helpers - typeof";return b.exports=y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b.exports.__esModule=!0,b.exports.default=b.exports,y(e)}b.exports=y,b.exports.__esModule=!0,b.exports.default=b.exports},40642:function(b,y,e){"use strict";e.d(y,{Z:function(){return a}});function a(t){if(Array.isArray(t))return t}},93585:function(b,y,e){"use strict";e.d(y,{Z:function(){return t}});var a=e(4566);function t(o,s,n){return s=(0,a.Z)(s),s in o?Object.defineProperty(o,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[s]=n,o}},97364:function(b,y,e){"use strict";e.d(y,{Z:function(){return a}});function a(){return a=Object.assign?Object.assign.bind():function(t){for(var o=1;o=0)&&(n[l]=o[l]);return n}function t(o,s){if(o==null)return{};var n=a(o,s),d,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,d)&&(n[d]=o[d])}return n}},4566:function(b,y,e){"use strict";e.d(y,{Z:function(){return o}});var a=e(83753);function t(s,n){if((0,a.Z)(s)!=="object"||s===null)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var l=d.call(s,n||"default");if((0,a.Z)(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}function o(s){var n=t(s,"string");return(0,a.Z)(n)==="symbol"?n:String(n)}},83753:function(b,y,e){"use strict";e.d(y,{Z:function(){return a}});function a(t){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a(t)}},50648:function(b,y,e){"use strict";e.d(y,{Z:function(){return t}});function a(o,s){(s==null||s>o.length)&&(s=o.length);for(var n=0,d=new Array(s);nt.length)&&(o=t.length);for(var s=0,n=new Array(o);s=0)&&(n[l]=o[l]);return n}function t(o,s){if(o==null)return{};var n=a(o,s),d,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,d)&&(n[d]=o[d])}return n}},74632:function(b,y,e){"use strict";e.d(y,{Z:function(){return t}});var a=e(38790);function t(){"use strict";t=function(){return s};var o,s={},n=Object.prototype,d=n.hasOwnProperty,l=Object.defineProperty||function(U,A,G){U[A]=G.value},c=typeof Symbol=="function"?Symbol:{},m=c.iterator||"@@iterator",g=c.asyncIterator||"@@asyncIterator",M=c.toStringTag||"@@toStringTag";function h(U,A,G){return Object.defineProperty(U,A,{value:G,enumerable:!0,configurable:!0,writable:!0}),U[A]}try{h({},"")}catch(U){h=function(G,fe,pe){return G[fe]=pe}}function S(U,A,G,fe){var pe=A&&A.prototype instanceof $?A:$,ge=Object.create(pe.prototype),be=new O(fe||[]);return l(ge,"_invoke",{value:le(U,G,be)}),ge}function w(U,A,G){try{return{type:"normal",arg:U.call(A,G)}}catch(fe){return{type:"throw",arg:fe}}}s.wrap=S;var C="suspendedStart",F="suspendedYield",Z="executing",N="completed",L={};function $(){}function D(){}function T(){}var j={};h(j,m,function(){return this});var K=Object.getPrototypeOf,k=K&&K(K(_([])));k&&k!==n&&d.call(k,m)&&(j=k);var te=T.prototype=$.prototype=Object.create(j);function V(U){["next","throw","return"].forEach(function(A){h(U,A,function(G){return this._invoke(A,G)})})}function q(U,A){function G(pe,ge,be,Te){var Ge=w(U[pe],U,ge);if(Ge.type!=="throw"){var Je=Ge.arg,Qe=Je.value;return Qe&&(0,a.Z)(Qe)=="object"&&d.call(Qe,"__await")?A.resolve(Qe.__await).then(function(pt){G("next",pt,be,Te)},function(pt){G("throw",pt,be,Te)}):A.resolve(Qe).then(function(pt){Je.value=pt,be(Je)},function(pt){return G("throw",pt,be,Te)})}Te(Ge.arg)}var fe;l(this,"_invoke",{value:function(ge,be){function Te(){return new A(function(Ge,Je){G(ge,be,Ge,Je)})}return fe=fe?fe.then(Te,Te):Te()}})}function le(U,A,G){var fe=C;return function(pe,ge){if(fe===Z)throw new Error("Generator is already running");if(fe===N){if(pe==="throw")throw ge;return{value:o,done:!0}}for(G.method=pe,G.arg=ge;;){var be=G.delegate;if(be){var Te=X(be,G);if(Te){if(Te===L)continue;return Te}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(fe===C)throw fe=N,G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);fe=Z;var Ge=w(U,A,G);if(Ge.type==="normal"){if(fe=G.done?N:F,Ge.arg===L)continue;return{value:Ge.arg,done:G.done}}Ge.type==="throw"&&(fe=N,G.method="throw",G.arg=Ge.arg)}}}function X(U,A){var G=A.method,fe=U.iterator[G];if(fe===o)return A.delegate=null,G==="throw"&&U.iterator.return&&(A.method="return",A.arg=o,X(U,A),A.method==="throw")||G!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+G+"' method")),L;var pe=w(fe,U.iterator,A.arg);if(pe.type==="throw")return A.method="throw",A.arg=pe.arg,A.delegate=null,L;var ge=pe.arg;return ge?ge.done?(A[U.resultName]=ge.value,A.next=U.nextLoc,A.method!=="return"&&(A.method="next",A.arg=o),A.delegate=null,L):ge:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,L)}function W(U){var A={tryLoc:U[0]};1 in U&&(A.catchLoc=U[1]),2 in U&&(A.finallyLoc=U[2],A.afterLoc=U[3]),this.tryEntries.push(A)}function x(U){var A=U.completion||{};A.type="normal",delete A.arg,U.completion=A}function O(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(W,this),this.reset(!0)}function _(U){if(U||U===""){var A=U[m];if(A)return A.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var G=-1,fe=function pe(){for(;++G=0;--pe){var ge=this.tryEntries[pe],be=ge.completion;if(ge.tryLoc==="root")return fe("end");if(ge.tryLoc<=this.prev){var Te=d.call(ge,"catchLoc"),Ge=d.call(ge,"finallyLoc");if(Te&&Ge){if(this.prev=0;--fe){var pe=this.tryEntries[fe];if(pe.tryLoc<=this.prev&&d.call(pe,"finallyLoc")&&this.prev=0;--G){var fe=this.tryEntries[G];if(fe.finallyLoc===A)return this.complete(fe.completion,fe.afterLoc),x(fe),L}},catch:function(A){for(var G=this.tryEntries.length-1;G>=0;--G){var fe=this.tryEntries[G];if(fe.tryLoc===A){var pe=fe.completion;if(pe.type==="throw"){var ge=pe.arg;x(fe)}return ge}}throw new Error("illegal catch attempt")},delegateYield:function(A,G,fe){return this.delegate={iterator:_(A),resultName:G,nextLoc:fe},this.method==="next"&&(this.arg=o),L}},s}},28314:function(b,y,e){"use strict";e.d(y,{Z:function(){return n}});var a=e(5563);function t(d,l){var c=d==null?null:typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(c!=null){var m,g,M,h,S=[],w=!0,C=!1;try{if(M=(c=c.call(d)).next,l===0){if(Object(c)!==c)return;w=!1}else for(;!(w=(m=M.call(c)).done)&&(S.push(m.value),S.length!==l);w=!0);}catch(F){C=!0,g=F}finally{try{if(!w&&c.return!=null&&(h=c.return(),Object(h)!==h))return}finally{if(C)throw g}}return S}}var o=e(25516),s=e(53373);function n(d,l){return(0,a.Z)(d)||t(d,l)||(0,o.Z)(d,l)||(0,s.Z)()}},6747:function(b,y,e){"use strict";e.d(y,{Z:function(){return n}});var a=e(5563),t=e(10443),o=e(25516),s=e(53373);function n(d){return(0,a.Z)(d)||(0,t.Z)(d)||(0,o.Z)(d)||(0,s.Z)()}},29140:function(b,y,e){"use strict";e.d(y,{Z:function(){return d}});var a=e(41437);function t(l){if(Array.isArray(l))return(0,a.Z)(l)}var o=e(10443),s=e(25516);function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(l){return t(l)||(0,o.Z)(l)||(0,s.Z)(l)||n()}},70794:function(b,y,e){"use strict";e.d(y,{Z:function(){return o}});var a=e(38790);function t(s,n){if((0,a.Z)(s)!=="object"||s===null)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var l=d.call(s,n||"default");if((0,a.Z)(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}function o(s){var n=t(s,"string");return(0,a.Z)(n)==="symbol"?n:String(n)}},38790:function(b,y,e){"use strict";e.d(y,{Z:function(){return a}});function a(t){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a(t)}},25516:function(b,y,e){"use strict";e.d(y,{Z:function(){return t}});var a=e(41437);function t(o,s){if(o){if(typeof o=="string")return(0,a.Z)(o,s);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,a.Z)(o,s)}}},18591:function(b,y,e){"use strict";e.d(y,{Z:function(){return c}});const a=m=>typeof m=="object"&&m!=null&&m.nodeType===1,t=(m,g)=>(!g||m!=="hidden")&&m!=="visible"&&m!=="clip",o=(m,g)=>{if(m.clientHeight{const S=(w=>{if(!w.ownerDocument||!w.ownerDocument.defaultView)return null;try{return w.ownerDocument.defaultView.frameElement}catch(C){return null}})(h);return!!S&&(S.clientHeightwg||w>m&&C=g&&F>=M?w-m-h:C>g&&FM?C-g+S:0,n=m=>{const g=m.parentElement;return g==null?m.getRootNode().host||null:g},d=(m,g)=>{var M,h,S,w;if(typeof document=="undefined")return[];const{scrollMode:C,block:F,inline:Z,boundary:N,skipOverflowHiddenElements:L}=g,$=typeof N=="function"?N:G=>G!==N;if(!a(m))throw new TypeError("Invalid target");const D=document.scrollingElement||document.documentElement,T=[];let j=m;for(;a(j)&&$(j);){if(j=n(j),j===D){T.push(j);break}j!=null&&j===document.body&&o(j)&&!o(document.documentElement)||j!=null&&o(j,L)&&T.push(j)}const K=(h=(M=window.visualViewport)==null?void 0:M.width)!=null?h:innerWidth,k=(w=(S=window.visualViewport)==null?void 0:S.height)!=null?w:innerHeight,{scrollX:te,scrollY:V}=window,{height:q,width:le,top:X,right:W,bottom:x,left:O}=m.getBoundingClientRect();let _=F==="start"||F==="nearest"?X:F==="end"?x:X+q/2,U=Z==="center"?O+le/2:Z==="end"?W:O;const A=[];for(let G=0;G=0&&O>=0&&x<=k&&W<=K&&X>=be&&x<=Ge&&O>=Je&&W<=Te)return A;const Qe=getComputedStyle(fe),pt=parseInt(Qe.borderLeftWidth,10),Et=parseInt(Qe.borderTopWidth,10),ft=parseInt(Qe.borderRightWidth,10),Wt=parseInt(Qe.borderBottomWidth,10);let $e=0,Xe=0;const nt="offsetWidth"in fe?fe.offsetWidth-fe.clientWidth-pt-ft:0,Ke="offsetHeight"in fe?fe.offsetHeight-fe.clientHeight-Et-Wt:0,ye="offsetWidth"in fe?fe.offsetWidth===0?0:ge/fe.offsetWidth:0,ne="offsetHeight"in fe?fe.offsetHeight===0?0:pe/fe.offsetHeight:0;if(D===fe)$e=F==="start"?_:F==="end"?_-k:F==="nearest"?s(V,V+k,k,Et,Wt,V+_,V+_+q,q):_-k/2,Xe=Z==="start"?U:Z==="center"?U-K/2:Z==="end"?U-K:s(te,te+K,K,pt,ft,te+U,te+U+le,le),$e=Math.max(0,$e+V),Xe=Math.max(0,Xe+te);else{$e=F==="start"?_-be-Et:F==="end"?_-Ge+Wt+Ke:F==="nearest"?s(be,Ge,pe,Et,Wt+Ke,_,_+q,q):_-(be+pe/2)+Ke/2,Xe=Z==="start"?U-Je-pt:Z==="center"?U-(Je+ge/2)+nt/2:Z==="end"?U-Te+ft+nt:s(Je,Te,ge,pt,ft+nt,U,U+le,le);const{scrollLeft:H,scrollTop:R}=fe;$e=Math.max(0,Math.min(R+$e/ne,fe.scrollHeight-pe/ne+Ke)),Xe=Math.max(0,Math.min(H+Xe/ye,fe.scrollWidth-ge/ye+nt)),_+=R-$e,U+=H-Xe}A.push({el:fe,top:$e,left:Xe})}return A},l=m=>m===!1?{block:"end",inline:"nearest"}:(g=>g===Object(g)&&Object.keys(g).length!==0)(m)?m:{block:"start",inline:"nearest"};function c(m,g){if(!m.isConnected||!(h=>{let S=h;for(;S&&S.parentNode;){if(S.parentNode===document)return!0;S=S.parentNode instanceof ShadowRoot?S.parentNode.host:S.parentNode}return!1})(m))return;if((h=>typeof h=="object"&&typeof h.behavior=="function")(g))return g.behavior(d(m,g));const M=typeof g=="boolean"||g==null?void 0:g.behavior;for(const{el:h,top:S,left:w}of d(m,l(g)))h.scroll({top:S,left:w,behavior:M})}},70989:function(b,y,e){"use strict";e.d(y,{D:function(){return t}});function a(o,s,n){var d=n||{},l=d.noTrailing,c=l===void 0?!1:l,m=d.noLeading,g=m===void 0?!1:m,M=d.debounceMode,h=M===void 0?void 0:M,S,w=!1,C=0;function F(){S&&clearTimeout(S)}function Z(L){var $=L||{},D=$.upcomingOnly,T=D===void 0?!1:D;F(),w=!T}function N(){for(var L=arguments.length,$=new Array(L),D=0;Do?g?(C=Date.now(),c||(S=setTimeout(h?k:K,o))):K():c!==!0&&(S=setTimeout(h?k:K,h===void 0?o-j:o))}return N.cancel=Z,N}function t(o,s,n){var d=n||{},l=d.atBegin,c=l===void 0?!1:l;return a(o,s,{debounceMode:c!==!1})}},43112:function(b,y,e){"use strict";e.d(y,{CR:function(){return Z},Jh:function(){return S},XA:function(){return F},_T:function(){return s},ev:function(){return $},mG:function(){return h},pi:function(){return o}});var a=function(A,G){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,pe){fe.__proto__=pe}||function(fe,pe){for(var ge in pe)Object.prototype.hasOwnProperty.call(pe,ge)&&(fe[ge]=pe[ge])},a(A,G)};function t(A,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");a(A,G);function fe(){this.constructor=A}A.prototype=G===null?Object.create(G):(fe.prototype=G.prototype,new fe)}var o=function(){return o=Object.assign||function(G){for(var fe,pe=1,ge=arguments.length;pe=0;Ge--)(Te=A[Ge])&&(be=(ge<3?Te(be):ge>3?Te(G,fe,be):Te(G,fe))||be);return ge>3&&be&&Object.defineProperty(G,fe,be),be}function d(A,G){return function(fe,pe){G(fe,pe,A)}}function l(A,G,fe,pe,ge,be){function Te(Ke){if(Ke!==void 0&&typeof Ke!="function")throw new TypeError("Function expected");return Ke}for(var Ge=pe.kind,Je=Ge==="getter"?"get":Ge==="setter"?"set":"value",Qe=!G&&A?pe.static?A:A.prototype:null,pt=G||(Qe?Object.getOwnPropertyDescriptor(Qe,pe.name):{}),Et,ft=!1,Wt=fe.length-1;Wt>=0;Wt--){var $e={};for(var Xe in pe)$e[Xe]=Xe==="access"?{}:pe[Xe];for(var Xe in pe.access)$e.access[Xe]=pe.access[Xe];$e.addInitializer=function(Ke){if(ft)throw new TypeError("Cannot add initializers after decoration has completed");be.push(Te(Ke||null))};var nt=(0,fe[Wt])(Ge==="accessor"?{get:pt.get,set:pt.set}:pt[Je],$e);if(Ge==="accessor"){if(nt===void 0)continue;if(nt===null||typeof nt!="object")throw new TypeError("Object expected");(Et=Te(nt.get))&&(pt.get=Et),(Et=Te(nt.set))&&(pt.set=Et),(Et=Te(nt.init))&&ge.unshift(Et)}else(Et=Te(nt))&&(Ge==="field"?ge.unshift(Et):pt[Je]=Et)}Qe&&Object.defineProperty(Qe,pe.name,pt),ft=!0}function c(A,G,fe){for(var pe=arguments.length>2,ge=0;ge0&&be[be.length-1])&&(Qe[0]===6||Qe[0]===2)){fe=0;continue}if(Qe[0]===3&&(!be||Qe[1]>be[0]&&Qe[1]=A.length&&(A=void 0),{value:A&&A[pe++],done:!A}}};throw new TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(A,G){var fe=typeof Symbol=="function"&&A[Symbol.iterator];if(!fe)return A;var pe=fe.call(A),ge,be=[],Te;try{for(;(G===void 0||G-- >0)&&!(ge=pe.next()).done;)be.push(ge.value)}catch(Ge){Te={error:Ge}}finally{try{ge&&!ge.done&&(fe=pe.return)&&fe.call(pe)}finally{if(Te)throw Te.error}}return be}function N(){for(var A=[],G=0;G1||Ge(ft,Wt)})})}function Ge(ft,Wt){try{Je(pe[ft](Wt))}catch($e){Et(be[0][3],$e)}}function Je(ft){ft.value instanceof D?Promise.resolve(ft.value.v).then(Qe,pt):Et(be[0][2],ft)}function Qe(ft){Ge("next",ft)}function pt(ft){Ge("throw",ft)}function Et(ft,Wt){ft(Wt),be.shift(),be.length&&Ge(be[0][0],be[0][1])}}function j(A){var G,fe;return G={},pe("next"),pe("throw",function(ge){throw ge}),pe("return"),G[Symbol.iterator]=function(){return this},G;function pe(ge,be){G[ge]=A[ge]?function(Te){return(fe=!fe)?{value:D(A[ge](Te)),done:!1}:be?be(Te):Te}:be}}function K(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G=A[Symbol.asyncIterator],fe;return G?G.call(A):(A=typeof F=="function"?F(A):A[Symbol.iterator](),fe={},pe("next"),pe("throw"),pe("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function pe(be){fe[be]=A[be]&&function(Te){return new Promise(function(Ge,Je){Te=A[be](Te),ge(Ge,Je,Te.done,Te.value)})}}function ge(be,Te,Ge,Je){Promise.resolve(Je).then(function(Qe){be({value:Qe,done:Ge})},Te)}}function k(A,G){return Object.defineProperty?Object.defineProperty(A,"raw",{value:G}):A.raw=G,A}var te=Object.create?function(A,G){Object.defineProperty(A,"default",{enumerable:!0,value:G})}:function(A,G){A.default=G};function V(A){if(A&&A.__esModule)return A;var G={};if(A!=null)for(var fe in A)fe!=="default"&&Object.prototype.hasOwnProperty.call(A,fe)&&w(G,A,fe);return te(G,A),G}function q(A){return A&&A.__esModule?A:{default:A}}function le(A,G,fe,pe){if(fe==="a"&&!pe)throw new TypeError("Private accessor was defined without a getter");if(typeof G=="function"?A!==G||!pe:!G.has(A))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?pe:fe==="a"?pe.call(A):pe?pe.value:G.get(A)}function X(A,G,fe,pe,ge){if(pe==="m")throw new TypeError("Private method is not writable");if(pe==="a"&&!ge)throw new TypeError("Private accessor was defined without a setter");if(typeof G=="function"?A!==G||!ge:!G.has(A))throw new TypeError("Cannot write private member to an object whose class did not declare it");return pe==="a"?ge.call(A,fe):ge?ge.value=fe:G.set(A,fe),fe}function W(A,G){if(G===null||typeof G!="object"&&typeof G!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof A=="function"?G===A:A.has(G)}function x(A,G,fe){if(G!=null){if(typeof G!="object"&&typeof G!="function")throw new TypeError("Object expected.");var pe;if(fe){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");pe=G[Symbol.asyncDispose]}if(pe===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");pe=G[Symbol.dispose]}if(typeof pe!="function")throw new TypeError("Object not disposable.");A.stack.push({value:G,dispose:pe,async:fe})}else fe&&A.stack.push({async:!0});return G}var O=typeof SuppressedError=="function"?SuppressedError:function(A,G,fe){var pe=new Error(fe);return pe.name="SuppressedError",pe.error=A,pe.suppressed=G,pe};function _(A){function G(pe){A.error=A.hasError?new O(pe,A.error,"An error was suppressed during disposal."):pe,A.hasError=!0}function fe(){for(;A.stack.length;){var pe=A.stack.pop();try{var ge=pe.dispose&&pe.dispose.call(pe.value);if(pe.async)return Promise.resolve(ge).then(fe,function(be){return G(be),fe()})}catch(be){G(be)}}if(A.hasError)throw A.error}return fe()}var U={__extends:t,__assign:o,__rest:s,__decorate:n,__param:d,__metadata:M,__awaiter:h,__generator:S,__createBinding:w,__exportStar:C,__values:F,__read:Z,__spread:N,__spreadArrays:L,__spreadArray:$,__await:D,__asyncGenerator:T,__asyncDelegator:j,__asyncValues:K,__makeTemplateObject:k,__importStar:V,__importDefault:q,__classPrivateFieldGet:le,__classPrivateFieldSet:X,__classPrivateFieldIn:W,__addDisposableResource:x,__disposeResources:_}}},Yl={};function Tt(b){var y=Yl[b];if(y!==void 0)return y.exports;var e=Yl[b]={id:b,loaded:!1,exports:{}};return xu[b].call(e.exports,e,e.exports,Tt),e.loaded=!0,e.exports}Tt.m=xu,function(){Tt.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return Tt.d(y,{a:y}),y}}(),function(){var b=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y;Tt.t=function(e,a){if(a&1&&(e=this(e)),a&8||typeof e=="object"&&e&&(a&4&&e.__esModule||a&16&&typeof e.then=="function"))return e;var t=Object.create(null);Tt.r(t);var o={};y=y||[null,b({}),b([]),b(b)];for(var s=a&2&&e;typeof s=="object"&&!~y.indexOf(s);s=b(s))Object.getOwnPropertyNames(s).forEach(function(n){o[n]=function(){return e[n]}});return o.default=function(){return e},Tt.d(t,o),t}}(),function(){Tt.d=function(b,y){for(var e in y)Tt.o(y,e)&&!Tt.o(b,e)&&Object.defineProperty(b,e,{enumerable:!0,get:y[e]})}}(),function(){Tt.f={},Tt.e=function(b){return Promise.all(Object.keys(Tt.f).reduce(function(y,e){return Tt.f[e](b,y),y},[]))}}(),function(){Tt.u=function(b){return""+({33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",571:"p__404",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",734:"p__Annotator__index",739:"p__Login__index",899:"wrappers__auth",914:"p__Project__Workspace__index"}[b]||b)+"."+{7:"e4c5d564",9:"9f27f1a0",20:"85fcbb81",33:"419888be",69:"f6bb0552",109:"91c4bfd3",124:"69a3d116",222:"33ccd216",233:"3d91ac9a",301:"2ad2010d",358:"5de6b129",397:"c0cac9b9",422:"f952182a",571:"0f1cb5ec",605:"6cbc99df",717:"f60cee94",721:"88bd2c95",734:"1fc40bde",739:"572dbaae",742:"bbe64d32",845:"7d656ce9",851:"1072d61f",899:"d0b0c30b",914:"2c2baf46"}[b]+".async.js"}}(),function(){Tt.miniCssF=function(b){return""+{33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",739:"p__Login__index",914:"p__Project__Workspace__index"}[b]+"."+{33:"c6647b2a",69:"9b99b574",109:"cbd96143",301:"8f39539f",358:"28ea9971",397:"c0569e06",605:"e9f4c3ea",717:"cf0de806",721:"711b5411",739:"26727079",914:"983f52a6"}[b]+".chunk.css"}}(),function(){Tt.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(b){if(typeof window=="object")return window}}()}(),function(){Tt.hmd=function(b){return b=Object.create(b),b.children||(b.children=[]),Object.defineProperty(b,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+b.id)}}),b}}(),function(){Tt.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)}}(),function(){var b={},y="app:";Tt.l=function(e,a,t,o){if(b[e]){b[e].push(a);return}var s,n;if(t!==void 0)for(var d=document.getElementsByTagName("script"),l=0;ltypeof m=="object"&&m!=null&&m.nodeType===1,t=(m,g)=>(!g||m!=="hidden")&&m!=="visible"&&m!=="clip",o=(m,g)=>{if(m.clientHeight{const S=(w=>{if(!w.ownerDocument||!w.ownerDocument.defaultView)return null;try{return w.ownerDocument.defaultView.frameElement}catch(C){return null}})(h);return!!S&&(S.clientHeightwg||w>m&&C=g&&F>=M?w-m-h:C>g&&FM?C-g+S:0,n=m=>{const g=m.parentElement;return g==null?m.getRootNode().host||null:g},d=(m,g)=>{var M,h,S,w;if(typeof document=="undefined")return[];const{scrollMode:C,block:F,inline:Z,boundary:N,skipOverflowHiddenElements:L}=g,$=typeof N=="function"?N:G=>G!==N;if(!a(m))throw new TypeError("Invalid target");const D=document.scrollingElement||document.documentElement,T=[];let j=m;for(;a(j)&&$(j);){if(j=n(j),j===D){T.push(j);break}j!=null&&j===document.body&&o(j)&&!o(document.documentElement)||j!=null&&o(j,L)&&T.push(j)}const K=(h=(M=window.visualViewport)==null?void 0:M.width)!=null?h:innerWidth,k=(w=(S=window.visualViewport)==null?void 0:S.height)!=null?w:innerHeight,{scrollX:te,scrollY:V}=window,{height:q,width:le,top:X,right:W,bottom:x,left:O}=m.getBoundingClientRect();let _=F==="start"||F==="nearest"?X:F==="end"?x:X+q/2,U=Z==="center"?O+le/2:Z==="end"?W:O;const A=[];for(let G=0;G=0&&O>=0&&x<=k&&W<=K&&X>=be&&x<=Ge&&O>=Je&&W<=Te)return A;const Qe=getComputedStyle(fe),pt=parseInt(Qe.borderLeftWidth,10),Et=parseInt(Qe.borderTopWidth,10),ft=parseInt(Qe.borderRightWidth,10),Wt=parseInt(Qe.borderBottomWidth,10);let $e=0,Xe=0;const nt="offsetWidth"in fe?fe.offsetWidth-fe.clientWidth-pt-ft:0,Ke="offsetHeight"in fe?fe.offsetHeight-fe.clientHeight-Et-Wt:0,ye="offsetWidth"in fe?fe.offsetWidth===0?0:ge/fe.offsetWidth:0,ne="offsetHeight"in fe?fe.offsetHeight===0?0:pe/fe.offsetHeight:0;if(D===fe)$e=F==="start"?_:F==="end"?_-k:F==="nearest"?s(V,V+k,k,Et,Wt,V+_,V+_+q,q):_-k/2,Xe=Z==="start"?U:Z==="center"?U-K/2:Z==="end"?U-K:s(te,te+K,K,pt,ft,te+U,te+U+le,le),$e=Math.max(0,$e+V),Xe=Math.max(0,Xe+te);else{$e=F==="start"?_-be-Et:F==="end"?_-Ge+Wt+Ke:F==="nearest"?s(be,Ge,pe,Et,Wt+Ke,_,_+q,q):_-(be+pe/2)+Ke/2,Xe=Z==="start"?U-Je-pt:Z==="center"?U-(Je+ge/2)+nt/2:Z==="end"?U-Te+ft+nt:s(Je,Te,ge,pt,ft+nt,U,U+le,le);const{scrollLeft:H,scrollTop:R}=fe;$e=Math.max(0,Math.min(R+$e/ne,fe.scrollHeight-pe/ne+Ke)),Xe=Math.max(0,Math.min(H+Xe/ye,fe.scrollWidth-ge/ye+nt)),_+=R-$e,U+=H-Xe}A.push({el:fe,top:$e,left:Xe})}return A},l=m=>m===!1?{block:"end",inline:"nearest"}:(g=>g===Object(g)&&Object.keys(g).length!==0)(m)?m:{block:"start",inline:"nearest"};function c(m,g){if(!m.isConnected||!(h=>{let S=h;for(;S&&S.parentNode;){if(S.parentNode===document)return!0;S=S.parentNode instanceof ShadowRoot?S.parentNode.host:S.parentNode}return!1})(m))return;if((h=>typeof h=="object"&&typeof h.behavior=="function")(g))return g.behavior(d(m,g));const M=typeof g=="boolean"||g==null?void 0:g.behavior;for(const{el:h,top:S,left:w}of d(m,l(g)))h.scroll({top:S,left:w,behavior:M})}},70989:function(b,y,e){"use strict";e.d(y,{D:function(){return t}});function a(o,s,n){var d=n||{},l=d.noTrailing,c=l===void 0?!1:l,m=d.noLeading,g=m===void 0?!1:m,M=d.debounceMode,h=M===void 0?void 0:M,S,w=!1,C=0;function F(){S&&clearTimeout(S)}function Z(L){var $=L||{},D=$.upcomingOnly,T=D===void 0?!1:D;F(),w=!T}function N(){for(var L=arguments.length,$=new Array(L),D=0;Do?g?(C=Date.now(),c||(S=setTimeout(h?k:K,o))):K():c!==!0&&(S=setTimeout(h?k:K,h===void 0?o-j:o))}return N.cancel=Z,N}function t(o,s,n){var d=n||{},l=d.atBegin,c=l===void 0?!1:l;return a(o,s,{debounceMode:c!==!1})}},43112:function(b,y,e){"use strict";e.d(y,{CR:function(){return Z},Jh:function(){return S},XA:function(){return F},_T:function(){return s},ev:function(){return $},mG:function(){return h},pi:function(){return o}});var a=function(A,G){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,pe){fe.__proto__=pe}||function(fe,pe){for(var ge in pe)Object.prototype.hasOwnProperty.call(pe,ge)&&(fe[ge]=pe[ge])},a(A,G)};function t(A,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");a(A,G);function fe(){this.constructor=A}A.prototype=G===null?Object.create(G):(fe.prototype=G.prototype,new fe)}var o=function(){return o=Object.assign||function(G){for(var fe,pe=1,ge=arguments.length;pe=0;Ge--)(Te=A[Ge])&&(be=(ge<3?Te(be):ge>3?Te(G,fe,be):Te(G,fe))||be);return ge>3&&be&&Object.defineProperty(G,fe,be),be}function d(A,G){return function(fe,pe){G(fe,pe,A)}}function l(A,G,fe,pe,ge,be){function Te(Ke){if(Ke!==void 0&&typeof Ke!="function")throw new TypeError("Function expected");return Ke}for(var Ge=pe.kind,Je=Ge==="getter"?"get":Ge==="setter"?"set":"value",Qe=!G&&A?pe.static?A:A.prototype:null,pt=G||(Qe?Object.getOwnPropertyDescriptor(Qe,pe.name):{}),Et,ft=!1,Wt=fe.length-1;Wt>=0;Wt--){var $e={};for(var Xe in pe)$e[Xe]=Xe==="access"?{}:pe[Xe];for(var Xe in pe.access)$e.access[Xe]=pe.access[Xe];$e.addInitializer=function(Ke){if(ft)throw new TypeError("Cannot add initializers after decoration has completed");be.push(Te(Ke||null))};var nt=(0,fe[Wt])(Ge==="accessor"?{get:pt.get,set:pt.set}:pt[Je],$e);if(Ge==="accessor"){if(nt===void 0)continue;if(nt===null||typeof nt!="object")throw new TypeError("Object expected");(Et=Te(nt.get))&&(pt.get=Et),(Et=Te(nt.set))&&(pt.set=Et),(Et=Te(nt.init))&&ge.unshift(Et)}else(Et=Te(nt))&&(Ge==="field"?ge.unshift(Et):pt[Je]=Et)}Qe&&Object.defineProperty(Qe,pe.name,pt),ft=!0}function c(A,G,fe){for(var pe=arguments.length>2,ge=0;ge0&&be[be.length-1])&&(Qe[0]===6||Qe[0]===2)){fe=0;continue}if(Qe[0]===3&&(!be||Qe[1]>be[0]&&Qe[1]=A.length&&(A=void 0),{value:A&&A[pe++],done:!A}}};throw new TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(A,G){var fe=typeof Symbol=="function"&&A[Symbol.iterator];if(!fe)return A;var pe=fe.call(A),ge,be=[],Te;try{for(;(G===void 0||G-- >0)&&!(ge=pe.next()).done;)be.push(ge.value)}catch(Ge){Te={error:Ge}}finally{try{ge&&!ge.done&&(fe=pe.return)&&fe.call(pe)}finally{if(Te)throw Te.error}}return be}function N(){for(var A=[],G=0;G1||Ge(ft,Wt)})})}function Ge(ft,Wt){try{Je(pe[ft](Wt))}catch($e){Et(be[0][3],$e)}}function Je(ft){ft.value instanceof D?Promise.resolve(ft.value.v).then(Qe,pt):Et(be[0][2],ft)}function Qe(ft){Ge("next",ft)}function pt(ft){Ge("throw",ft)}function Et(ft,Wt){ft(Wt),be.shift(),be.length&&Ge(be[0][0],be[0][1])}}function j(A){var G,fe;return G={},pe("next"),pe("throw",function(ge){throw ge}),pe("return"),G[Symbol.iterator]=function(){return this},G;function pe(ge,be){G[ge]=A[ge]?function(Te){return(fe=!fe)?{value:D(A[ge](Te)),done:!1}:be?be(Te):Te}:be}}function K(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G=A[Symbol.asyncIterator],fe;return G?G.call(A):(A=typeof F=="function"?F(A):A[Symbol.iterator](),fe={},pe("next"),pe("throw"),pe("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function pe(be){fe[be]=A[be]&&function(Te){return new Promise(function(Ge,Je){Te=A[be](Te),ge(Ge,Je,Te.done,Te.value)})}}function ge(be,Te,Ge,Je){Promise.resolve(Je).then(function(Qe){be({value:Qe,done:Ge})},Te)}}function k(A,G){return Object.defineProperty?Object.defineProperty(A,"raw",{value:G}):A.raw=G,A}var te=Object.create?function(A,G){Object.defineProperty(A,"default",{enumerable:!0,value:G})}:function(A,G){A.default=G};function V(A){if(A&&A.__esModule)return A;var G={};if(A!=null)for(var fe in A)fe!=="default"&&Object.prototype.hasOwnProperty.call(A,fe)&&w(G,A,fe);return te(G,A),G}function q(A){return A&&A.__esModule?A:{default:A}}function le(A,G,fe,pe){if(fe==="a"&&!pe)throw new TypeError("Private accessor was defined without a getter");if(typeof G=="function"?A!==G||!pe:!G.has(A))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?pe:fe==="a"?pe.call(A):pe?pe.value:G.get(A)}function X(A,G,fe,pe,ge){if(pe==="m")throw new TypeError("Private method is not writable");if(pe==="a"&&!ge)throw new TypeError("Private accessor was defined without a setter");if(typeof G=="function"?A!==G||!ge:!G.has(A))throw new TypeError("Cannot write private member to an object whose class did not declare it");return pe==="a"?ge.call(A,fe):ge?ge.value=fe:G.set(A,fe),fe}function W(A,G){if(G===null||typeof G!="object"&&typeof G!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof A=="function"?G===A:A.has(G)}function x(A,G,fe){if(G!=null){if(typeof G!="object"&&typeof G!="function")throw new TypeError("Object expected.");var pe;if(fe){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");pe=G[Symbol.asyncDispose]}if(pe===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");pe=G[Symbol.dispose]}if(typeof pe!="function")throw new TypeError("Object not disposable.");A.stack.push({value:G,dispose:pe,async:fe})}else fe&&A.stack.push({async:!0});return G}var O=typeof SuppressedError=="function"?SuppressedError:function(A,G,fe){var pe=new Error(fe);return pe.name="SuppressedError",pe.error=A,pe.suppressed=G,pe};function _(A){function G(pe){A.error=A.hasError?new O(pe,A.error,"An error was suppressed during disposal."):pe,A.hasError=!0}function fe(){for(;A.stack.length;){var pe=A.stack.pop();try{var ge=pe.dispose&&pe.dispose.call(pe.value);if(pe.async)return Promise.resolve(ge).then(fe,function(be){return G(be),fe()})}catch(be){G(be)}}if(A.hasError)throw A.error}return fe()}var U={__extends:t,__assign:o,__rest:s,__decorate:n,__param:d,__metadata:M,__awaiter:h,__generator:S,__createBinding:w,__exportStar:C,__values:F,__read:Z,__spread:N,__spreadArrays:L,__spreadArray:$,__await:D,__asyncGenerator:T,__asyncDelegator:j,__asyncValues:K,__makeTemplateObject:k,__importStar:V,__importDefault:q,__classPrivateFieldGet:le,__classPrivateFieldSet:X,__classPrivateFieldIn:W,__addDisposableResource:x,__disposeResources:_}}},Yl={};function Tt(b){var y=Yl[b];if(y!==void 0)return y.exports;var e=Yl[b]={id:b,loaded:!1,exports:{}};return xu[b].call(e.exports,e,e.exports,Tt),e.loaded=!0,e.exports}Tt.m=xu,function(){Tt.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return Tt.d(y,{a:y}),y}}(),function(){var b=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y;Tt.t=function(e,a){if(a&1&&(e=this(e)),a&8||typeof e=="object"&&e&&(a&4&&e.__esModule||a&16&&typeof e.then=="function"))return e;var t=Object.create(null);Tt.r(t);var o={};y=y||[null,b({}),b([]),b(b)];for(var s=a&2&&e;typeof s=="object"&&!~y.indexOf(s);s=b(s))Object.getOwnPropertyNames(s).forEach(function(n){o[n]=function(){return e[n]}});return o.default=function(){return e},Tt.d(t,o),t}}(),function(){Tt.d=function(b,y){for(var e in y)Tt.o(y,e)&&!Tt.o(b,e)&&Object.defineProperty(b,e,{enumerable:!0,get:y[e]})}}(),function(){Tt.f={},Tt.e=function(b){return Promise.all(Object.keys(Tt.f).reduce(function(y,e){return Tt.f[e](b,y),y},[]))}}(),function(){Tt.u=function(b){return""+({33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",571:"p__404",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",734:"p__Annotator__index",739:"p__Login__index",899:"wrappers__auth",914:"p__Project__Workspace__index"}[b]||b)+"."+{7:"e4c5d564",9:"9f27f1a0",20:"85fcbb81",33:"419888be",69:"f6bb0552",109:"91c4bfd3",124:"69a3d116",222:"33ccd216",233:"3d91ac9a",301:"2ad2010d",358:"5de6b129",397:"c0cac9b9",422:"f952182a",571:"0f1cb5ec",605:"6cbc99df",717:"f60cee94",721:"88bd2c95",734:"8750e2fd",739:"572dbaae",742:"bbe64d32",845:"7d656ce9",851:"1072d61f",899:"d0b0c30b",914:"2c2baf46"}[b]+".async.js"}}(),function(){Tt.miniCssF=function(b){return""+{33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",739:"p__Login__index",914:"p__Project__Workspace__index"}[b]+"."+{33:"c6647b2a",69:"9b99b574",109:"cbd96143",301:"8f39539f",358:"28ea9971",397:"c0569e06",605:"e9f4c3ea",717:"cf0de806",721:"711b5411",739:"26727079",914:"983f52a6"}[b]+".chunk.css"}}(),function(){Tt.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(b){if(typeof window=="object")return window}}()}(),function(){Tt.hmd=function(b){return b=Object.create(b),b.children||(b.children=[]),Object.defineProperty(b,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+b.id)}}),b}}(),function(){Tt.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)}}(),function(){var b={},y="app:";Tt.l=function(e,a,t,o){if(b[e]){b[e].push(a);return}var s,n;if(t!==void 0)for(var d=document.getElementsByTagName("script"),l=0;l0})),Yo=Bo({routesById:ra,routeComponents:Ra,parentId:To.id,loadingComponent:Br.loadingComponent,reactRouter5Compat:Br.reactRouter5Compat});return Yo.length>0&&(To.children=Yo,To.routes=Yo),To})}function oi(Br){var ra=(0,Mo.useParams)(),ja=(0,qr.Z)((0,qr.Z)({},Br),{},{to:(0,Mo.generatePath)(Br.to,ra)});return Sa.createElement(Mo.Navigate,(0,ao.Z)({replace:!0},ja))}function ri(Br){var ra=Br.route,ja=ra.redirect,Ra=(0,Jo.Z)(ra,_o),Pa=Br.reactRouter5Compat?Ni:Ei;return(0,qr.Z)({element:ja?Sa.createElement(oi,{to:ja}):Sa.createElement(yi.Provider,{value:{route:Br.route}},Sa.createElement(Pa,{loader:Sa.memo(Br.routeComponent),loadingComponent:Br.loadingComponent||Si,hasChildren:Br.hasChildren}))},Ra)}function Si(){return Sa.createElement("div",null)}function Ni(Br){var ra=ji(),ja=ra.route,Ra=(0,Ko.Ov)(),Pa=Ra.history,To=Ra.clientRoutes,Yo=(0,Mo.useParams)(),Zo={params:Yo,isExact:!0,path:ja.path,url:Pa.location.pathname},zi=Br.loader;return Sa.createElement(Sa.Suspense,{fallback:Sa.createElement(Br.loadingComponent,null)},Sa.createElement(zi,{location:Pa.location,match:Zo,history:Pa,params:Yo,route:ja,routes:To},Br.hasChildren&&Sa.createElement(Mo.Outlet,null)))}function Ei(Br){var ra=Br.loader;return Sa.createElement(Sa.Suspense,{fallback:Sa.createElement(Br.loadingComponent,null)},Sa.createElement(ra,null))}var to=null;function Ga(){return to}function Qo(Br){var ra=Br.history,ja=Sa.useState({action:ra.action,location:ra.location}),Ra=so(ja,2),Pa=Ra[0],To=Ra[1];return(0,Sa.useLayoutEffect)(function(){return ra.listen(To)},[ra]),(0,Sa.useLayoutEffect)(function(){function Yo(Zo){Br.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Br.routes,clientRoutes:Br.clientRoutes,location:Zo.location,action:Zo.action,basename:Br.basename,isFirst:!!Zo.isFirst}})}ra.listen(Yo),Yo({location:Pa.location,action:Pa.action,isFirst:!0})},[ra,Br.routes,Br.clientRoutes]),Sa.createElement(Mo.Router,{navigator:ra,location:Pa.location,basename:Br.basename},Br.children)}function qo(){var Br=(0,Ko.Ov)(),ra=Br.clientRoutes;return(0,Mo.useRoutes)(ra)}var xo=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Ro=function(ra,ja){var Ra=ra.basename||"/",Pa=Bo({routesById:ra.routes,routeComponents:ra.routeComponents,loadingComponent:ra.loadingComponent,reactRouter5Compat:ra.reactRouter5Compat});ra.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Pa}});for(var To=Sa.createElement(Qo,{basename:Ra,pluginManager:ra.pluginManager,routes:ra.routes,clientRoutes:Pa,history:ra.history},ja),Yo=0,Zo=xo;Yo
- + \ No newline at end of file