diff --git a/deepdataspace/server/static/index.html b/deepdataspace/server/static/index.html index a73c5e8..f8f6551 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/umi.d97b8209.js b/deepdataspace/server/static/umi.67c220bb.js similarity index 93% rename from deepdataspace/server/static/umi.d97b8209.js rename to deepdataspace/server/static/umi.67c220bb.js index 491c80d..18b7ad9 100644 --- a/deepdataspace/server/static/umi.d97b8209.js +++ b/deepdataspace/server/static/umi.67c220bb.js @@ -165,7 +165,7 @@ E.g.: \u4F7F\u7528\u6B64 api \u4F1A\u9020\u6210\u5207\u6362\u8BED\u8A00\u7684\u65F6\u5019\u65E0\u6CD5\u81EA\u52A8\u5237\u65B0\uFF0C\u8BF7\u4F7F\u7528 useIntl \u6216 injectIntl\u3002 http://j.mp/37Fkd5Q - `),wo=!1),Yn||mo(Ua()),Yn.formatMessage(Rt,Ae)},ho=function(){return Object.keys(wr)}},47338:function(b,y,e){"use strict";e.d(y,{t:function(){return N},z:function(){return Z}});var a=e(88205),t=e.n(a),o=e(61697),s=e.n(o),n=e(77016),d=e.n(n),l=e(2657),c=e.n(l),m=e(44204),g=e.n(m),M=e(58757),h=e(35667),S=M.createContext(null),w=s()(function L(){var $=this;d()(this,L),c()(this,"callbacks",{}),c()(this,"data",{}),c()(this,"update",function(D){$.callbacks[D]&&$.callbacks[D].forEach(function(T){try{var j=$.data[D];T(j)}catch(K){T(void 0)}})})});function C(L){var $=L.hook,D=L.onUpdate,T=L.namespace,j=(0,M.useRef)(D),K=(0,M.useRef)(!1),k;try{k=$()}catch(te){console.error("plugin-model: Invoking '".concat(T||"unknown","' model failed:"),te)}return(0,M.useMemo)(function(){j.current(k)},[]),(0,M.useEffect)(function(){K.current?j.current(k):K.current=!0}),null}var F=new w;function Z(L){return(0,h.jsxs)(S.Provider,{value:{dispatcher:F},children:[Object.keys(L.models).map(function($){return(0,h.jsx)(C,{hook:L.models[$],namespace:$,onUpdate:function(T){F.data[$]=T,F.update($)}},$)}),L.children]})}function N(L,$){var D=(0,M.useContext)(S),T=D.dispatcher,j=(0,M.useRef)($);j.current=$;var K=(0,M.useState)(function(){return j.current?j.current(T.data[L]):T.data[L]}),k=t()(K,2),te=k[0],V=k[1],q=(0,M.useRef)(te);q.current=te;var le=(0,M.useRef)(!1);return(0,M.useEffect)(function(){return le.current=!0,function(){le.current=!1}},[]),(0,M.useEffect)(function(){var X,W=function(O){if(!le.current)setTimeout(function(){T.data[L]=O,T.update(L)});else{var _=j.current?j.current(O):O,U=q.current;g()(_,U)||(q.current=_,V(_))}};return(X=T.callbacks)[L]||(X[L]=new Set),T.callbacks[L].add(W),T.update(L),function(){T.callbacks[L].delete(W)}},[L]),te}},76180:function(b,y,e){"use strict";e.d(y,{AD:function(){return H},JJ:function(){return ye},EX:function(){return P},BP:function(){return xe},pB:function(){return ce},G3:function(){return Le},YZ:function(){return J},J1:function(){return de},L8:function(){return $e},Ss:function(){return R},zY:function(){return ne},oC:function(){return we},gS:function(){return Ke},po:function(){return Ee},a5:function(){return Me},j3:function(){return re},YC:function(){return We},iP:function(){return Q},oM:function(){return ie},JQ:function(){return ae},Wp:function(){return je},$j:function(){return se},uP:function(){return me},Uf:function(){return Oe}});var a=e(2657),t=e.n(a),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(et,Ye,ke)=>Ye in et?s(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,m=(et,Ye)=>{for(var ke in Ye||(Ye={}))d.call(Ye,ke)&&c(et,ke,Ye[ke]);if(n)for(var ke of n(Ye))l.call(Ye,ke)&&c(et,ke,Ye[ke]);return et};const g=et=>o.createElement("svg",m({className:"classification_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M797.723 912.007h-149.1c-59.634 0-109.325-49.691-109.325-109.326V539.325h263.356c59.635 0 109.326 49.69 109.326 109.325v149.073c0 29.804-9.944 54.65-29.804 79.495-29.83 24.818-54.703 34.762-84.48 34.762zm-422.373 0H226.277c-64.593 0-114.257-49.691-114.257-109.326V653.608c0-29.803 9.917-59.634 34.762-79.494 19.86-19.887 49.691-34.79 79.495-34.79h258.398v263.357c0 29.804-9.943 54.65-29.803 79.495-24.846 19.887-49.691 29.83-79.522 29.83zm422.373-422.373H534.339V226.277c0-29.804 9.97-59.634 34.79-79.495 19.887-19.86 49.69-34.762 79.521-34.762h149.073c59.608 4.932 109.298 54.623 109.298 114.257V375.35c0 29.83-9.916 54.676-29.803 79.495-24.846 24.845-49.691 34.762-79.495 34.762zm-313.048 0H221.32c-59.635 0-109.326-49.691-109.326-109.326V231.235c0-29.803 9.944-59.607 34.79-79.494 19.86-24.819 49.69-34.762 74.536-34.762h149.073c59.634 0 109.298 49.664 109.298 109.298v263.384h4.958v-.027z"}));var M="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTc5Ny43MjMgOTEyLjAwN2gtMTQ5LjFjLTU5LjYzNCAwLTEwOS4zMjUtNDkuNjkxLTEwOS4zMjUtMTA5LjMyNlY1MzkuMzI1aDI2My4zNTZjNTkuNjM1IDAgMTA5LjMyNiA0OS42OSAxMDkuMzI2IDEwOS4zMjV2MTQ5LjA3M2MwIDI5LjgwNC05Ljk0NCA1NC42NS0yOS44MDQgNzkuNDk1LTI5LjgzIDI0LjgxOC01NC43MDMgMzQuNzYyLTg0LjQ4IDM0Ljc2MnptLTQyMi4zNzMgMEgyMjYuMjc3Yy02NC41OTMgMC0xMTQuMjU3LTQ5LjY5MS0xMTQuMjU3LTEwOS4zMjZWNjUzLjYwOGMwLTI5LjgwMyA5LjkxNy01OS42MzQgMzQuNzYyLTc5LjQ5NCAxOS44Ni0xOS44ODcgNDkuNjkxLTM0Ljc5IDc5LjQ5NS0zNC43OWgyNTguMzk4djI2My4zNTdjMCAyOS44MDQtOS45NDMgNTQuNjUtMjkuODAzIDc5LjQ5NS0yNC44NDYgMTkuODg3LTQ5LjY5MSAyOS44My03OS41MjIgMjkuODN6bTQyMi4zNzMtNDIyLjM3M0g1MzQuMzM5VjIyNi4yNzdjMC0yOS44MDQgOS45Ny01OS42MzQgMzQuNzktNzkuNDk1IDE5Ljg4Ny0xOS44NiA0OS42OS0zNC43NjIgNzkuNTIxLTM0Ljc2MmgxNDkuMDczYzU5LjYwOCA0LjkzMiAxMDkuMjk4IDU0LjYyMyAxMDkuMjk4IDExNC4yNTdWMzc1LjM1YzAgMjkuODMtOS45MTYgNTQuNjc2LTI5LjgwMyA3OS40OTUtMjQuODQ2IDI0Ljg0NS00OS42OTEgMzQuNzYyLTc5LjQ5NSAzNC43NjJ6bS0zMTMuMDQ4IDBIMjIxLjMyYy01OS42MzUgMC0xMDkuMzI2LTQ5LjY5MS0xMDkuMzI2LTEwOS4zMjZWMjMxLjIzNWMwLTI5LjgwMyA5Ljk0NC01OS42MDcgMzQuNzktNzkuNDk0IDE5Ljg2LTI0LjgxOSA0OS42OS0zNC43NjIgNzQuNTM2LTM0Ljc2MmgxNDkuMDczYzU5LjYzNCAwIDEwOS4yOTggNDkuNjY0IDEwOS4yOTggMTA5LjI5OHYyNjMuMzg0aDQuOTU4di0uMDI3eiIvPjwvc3ZnPg==",h=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,F=(et,Ye,ke)=>Ye in et?h(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,Z=(et,Ye)=>{for(var ke in Ye||(Ye={}))w.call(Ye,ke)&&F(et,ke,Ye[ke]);if(S)for(var ke of S(Ye))C.call(Ye,ke)&&F(et,ke,Ye[ke]);return et};const N=et=>o.createElement("svg",Z({className:"datasetDetection_svg__icon",viewBox:"0 0 1092 1024",xmlns:"http://www.w3.org/2000/svg",width:213.281,height:200},et),o.createElement("path",{d:"m514.859 116.928 318.336 130.624-1.28 3.2 2.88-1.152v448l-320 128-320-128v-448l2.816 1.152-1.28-3.2 318.528-130.624zm-256 227.2v310.144l224 89.6V434.24h1.28l-225.28-90.112zm512 0L545.323 434.24h1.408v309.632l224-89.6V344.128zm-256.064-158.08-236.352 97.024L514.795 377.6l236.288-94.528-236.288-97.024zM132.523 728.064v160h160v64h-224v-224h64zm830.272 0v224h-224v-64h160v-160h64zm-670.272-672v64h-160v160h-64v-224h224zm670.272 0v224h-64v-160h-160v-64h224z"}),o.createElement("path",{d:"M4.267 0h1024v1024h-1024z",fill:"none"}));var L="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwOTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjEzLjI4MSIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Im01MTQuODU5IDExNi45MjggMzE4LjMzNiAxMzAuNjI0LTEuMjggMy4yIDIuODgtMS4xNTJ2NDQ4bC0zMjAgMTI4LTMyMC0xMjh2LTQ0OGwyLjgxNiAxLjE1Mi0xLjI4LTMuMiAzMTguNTI4LTEzMC42MjR6bS0yNTYgMjI3LjJ2MzEwLjE0NGwyMjQgODkuNlY0MzQuMjRoMS4yOGwtMjI1LjI4LTkwLjExMnptNTEyIDBMNTQ1LjMyMyA0MzQuMjRoMS40MDh2MzA5LjYzMmwyMjQtODkuNlYzNDQuMTI4em0tMjU2LjA2NC0xNTguMDgtMjM2LjM1MiA5Ny4wMjRMNTE0Ljc5NSAzNzcuNmwyMzYuMjg4LTk0LjUyOC0yMzYuMjg4LTk3LjAyNHpNMTMyLjUyMyA3MjguMDY0djE2MGgxNjB2NjRoLTIyNHYtMjI0aDY0em04MzAuMjcyIDB2MjI0aC0yMjR2LTY0aDE2MHYtMTYwaDY0em0tNjcwLjI3Mi02NzJ2NjRoLTE2MHYxNjBoLTY0di0yMjRoMjI0em02NzAuMjcyIDB2MjI0aC02NHYtMTYwaC0xNjB2LTY0aDIyNHoiLz48cGF0aCBkPSJNNC4yNjcgMGgxMDI0djEwMjRoLTEwMjR6IiBmaWxsPSJub25lIi8+PC9zdmc+",$=Object.defineProperty,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,K=(et,Ye,ke)=>Ye in et?$(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,k=(et,Ye)=>{for(var ke in Ye||(Ye={}))T.call(Ye,ke)&&K(et,ke,Ye[ke]);if(D)for(var ke of D(Ye))j.call(Ye,ke)&&K(et,ke,Ye[ke]);return et};const te=et=>o.createElement("svg",k({className:"datasetSegment_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M179.2 524.288h678.912a25.6 25.6 0 0 0 0-51.2H179.2a25.6 25.6 0 0 0 0 51.2zm700.672-245.504v-56.32l-164.864 156.16H774.4l105.472-99.84zm0 73.216-27.904 26.624h27.904V352zm-242.176 26.624 242.176-229.376v-15.616h-43.264L578.304 378.624h59.392zm-136.96 0 258.56-244.992h-59.392L441.6 378.624h59.136zm-136.704 0 258.304-244.992h-59.392l-258.56 244.992h59.648zm-136.96 0 258.56-244.992H426.24L167.68 378.624h59.392zm62.72-244.992L156.16 260.352v55.808l192.512-182.528h-58.88zm-133.632 0v53.504l56.32-53.504h-56.32zm618.24 742.4 105.472-99.584v-56.576l-164.864 156.16H774.4zm105.472 0v-26.368l-27.904 26.368h27.904zm-301.568 0h59.392l242.176-229.376v-15.36h-43.264L578.304 876.032zm121.6-244.736L441.6 876.032h59.136l258.56-244.736h-59.392zm-136.96 0-258.56 244.736h59.648l258.304-244.736h-59.392zm-136.704 0L167.68 876.032h59.392l258.56-244.736H426.24zm-136.448 0L156.16 758.016v55.808l192.512-182.528h-58.88zM156.16 684.544l56.32-53.248h-56.32v53.248z"}));var V="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE3OS4yIDUyNC4yODhoNjc4LjkxMmEyNS42IDI1LjYgMCAwIDAgMC01MS4ySDE3OS4yYTI1LjYgMjUuNiAwIDAgMCAwIDUxLjJ6bTcwMC42NzItMjQ1LjUwNHYtNTYuMzJsLTE2NC44NjQgMTU2LjE2SDc3NC40bDEwNS40NzItOTkuODR6bTAgNzMuMjE2LTI3LjkwNCAyNi42MjRoMjcuOTA0VjM1MnptLTI0Mi4xNzYgMjYuNjI0IDI0Mi4xNzYtMjI5LjM3NnYtMTUuNjE2aC00My4yNjRMNTc4LjMwNCAzNzguNjI0aDU5LjM5MnptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkyaC01OS4zOTJMNDQxLjYgMzc4LjYyNGg1OS4xMzZ6bS0xMzYuNzA0IDAgMjU4LjMwNC0yNDQuOTkyaC01OS4zOTJsLTI1OC41NiAyNDQuOTkyaDU5LjY0OHptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkySDQyNi4yNEwxNjcuNjggMzc4LjYyNGg1OS4zOTJ6bTYyLjcyLTI0NC45OTJMMTU2LjE2IDI2MC4zNTJ2NTUuODA4bDE5Mi41MTItMTgyLjUyOGgtNTguODh6bS0xMzMuNjMyIDB2NTMuNTA0bDU2LjMyLTUzLjUwNGgtNTYuMzJ6bTYxOC4yNCA3NDIuNCAxMDUuNDcyLTk5LjU4NHYtNTYuNTc2bC0xNjQuODY0IDE1Ni4xNkg3NzQuNHptMTA1LjQ3MiAwdi0yNi4zNjhsLTI3LjkwNCAyNi4zNjhoMjcuOTA0em0tMzAxLjU2OCAwaDU5LjM5MmwyNDIuMTc2LTIyOS4zNzZ2LTE1LjM2aC00My4yNjRMNTc4LjMwNCA4NzYuMDMyem0xMjEuNi0yNDQuNzM2TDQ0MS42IDg3Ni4wMzJoNTkuMTM2bDI1OC41Ni0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuOTYgMC0yNTguNTYgMjQ0LjczNmg1OS42NDhsMjU4LjMwNC0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuNzA0IDBMMTY3LjY4IDg3Ni4wMzJoNTkuMzkybDI1OC41Ni0yNDQuNzM2SDQyNi4yNHptLTEzNi40NDggMEwxNTYuMTYgNzU4LjAxNnY1NS44MDhsMTkyLjUxMi0xODIuNTI4aC01OC44OHpNMTU2LjE2IDY4NC41NDRsNTYuMzItNTMuMjQ4aC01Ni4zMnY1My4yNDh6Ii8+PC9zdmc+",q=Object.defineProperty,le=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,x=(et,Ye,ke)=>Ye in et?q(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,O=(et,Ye)=>{for(var ke in Ye||(Ye={}))X.call(Ye,ke)&&x(et,ke,Ye[ke]);if(le)for(var ke of le(Ye))W.call(Ye,ke)&&x(et,ke,Ye[ke]);return et};const _=et=>o.createElement("svg",O({className:"datasetMatting_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M832 288h-96v-96c0-52.9-43.1-96-96-96H192c-52.9 0-96 43.1-96 96v448c0 52.9 43.1 96 96 96h96v96c0 52.9 43.1 96 96 96h448c52.9 0 96-43.1 96-96V384c0-52.9-43.1-96-96-96zM160 640V192c0-17.6 14.4-32 32-32h448c17.6 0 32 14.4 32 32v96h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32v288c0 17.6-14.4 32-32 32H352v-32c0-17.7-14.3-32-32-32s-32 14.3-32 32v32h-96c-17.6 0-32-14.4-32-32zm704 192c0 17.6-14.4 32-32 32H384c-17.6 0-32-14.4-32-32v-96h288c52.9 0 96-43.1 96-96V352h96c17.6 0 32 14.4 32 32v448z"}),o.createElement("path",{d:"M320 576c17.7 0 32-14.3 32-32v-64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 17.7 14.3 32 32 32zm160-224h64c17.7 0 32-14.3 32-32s-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-160 64c17.7 0 32-14.3 32-32 0-17.6 14.4-32 32-32 17.7 0 32-14.3 32-32s-14.3-32-32-32c-52.9 0-96 43.1-96 96 0 17.7 14.3 32 32 32z"}));var U="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgzMiAyODhoLTk2di05NmMwLTUyLjktNDMuMS05Ni05Ni05NkgxOTJjLTUyLjkgMC05NiA0My4xLTk2IDk2djQ0OGMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg5NnY5NmMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg0NDhjNTIuOSAwIDk2LTQzLjEgOTYtOTZWMzg0YzAtNTIuOS00My4xLTk2LTk2LTk2ek0xNjAgNjQwVjE5MmMwLTE3LjYgMTQuNC0zMiAzMi0zMmg0NDhjMTcuNiAwIDMyIDE0LjQgMzIgMzJ2OTZoLTMyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnMxNC4zIDMyIDMyIDMyaDMydjI4OGMwIDE3LjYtMTQuNCAzMi0zMiAzMkgzNTJ2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjMyaC05NmMtMTcuNiAwLTMyLTE0LjQtMzItMzJ6bTcwNCAxOTJjMCAxNy42LTE0LjQgMzItMzIgMzJIMzg0Yy0xNy42IDAtMzItMTQuNC0zMi0zMnYtOTZoMjg4YzUyLjkgMCA5Ni00My4xIDk2LTk2VjM1Mmg5NmMxNy42IDAgMzIgMTQuNCAzMiAzMnY0NDh6Ii8+PHBhdGggZD0iTTMyMCA1NzZjMTcuNyAwIDMyLTE0LjMgMzItMzJ2LTY0YzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjY0YzAgMTcuNyAxNC4zIDMyIDMyIDMyem0xNjAtMjI0aDY0YzE3LjcgMCAzMi0xNC4zIDMyLTMycy0xNC4zLTMyLTMyLTMyaC02NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJzMTQuMyAzMiAzMiAzMnptLTE2MCA2NGMxNy43IDAgMzItMTQuMyAzMi0zMiAwLTE3LjYgMTQuNC0zMiAzMi0zMiAxNy43IDAgMzItMTQuMyAzMi0zMnMtMTQuMy0zMi0zMi0zMmMtNTIuOSAwLTk2IDQzLjEtOTYgOTYgMCAxNy43IDE0LjMgMzIgMzIgMzJ6Ii8+PC9zdmc+",A=Object.defineProperty,G=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,ge=(et,Ye,ke)=>Ye in et?A(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,be=(et,Ye)=>{for(var ke in Ye||(Ye={}))fe.call(Ye,ke)&&ge(et,ke,Ye[ke]);if(G)for(var ke of G(Ye))pe.call(Ye,ke)&&ge(et,ke,Ye[ke]);return et};const Te=et=>o.createElement("svg",be({className:"datasetKeypoint_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M938.667 298.667c0 70.613-57.387 128-128 128s-128-57.387-128-128c0-1.92 0-3.627.213-5.334L501.12 238.72a107.03 107.03 0 0 1-63.787 55.253l69.334 138.24c15.36-3.626 31.573-5.546 48-5.546C672.213 426.667 768 522.453 768 640s-95.787 213.333-213.333 213.333c-85.334 0-159.147-50.56-193.067-123.093l-34.133 22.613c8.96 17.28 13.866 36.907 13.866 57.814 0 70.613-57.386 128-128 128s-128-57.387-128-128 57.387-128 128-128c34.774 0 66.134 13.653 88.96 36.053l44.8-29.867c-3.84-15.573-5.76-32-5.76-48.853 0-85.973 51.2-160.213 124.587-193.92L391.68 297.6A106.475 106.475 0 0 1 298.667 192c0-58.88 47.786-106.667 106.666-106.667S512 133.12 512 192c0 1.707 0 3.627-.213 5.333l180.053 53.974a127.957 127.957 0 0 1 118.827-80.64c70.613 0 128 57.386 128 128z"}));var Ge="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTkzOC42NjcgMjk4LjY2N2MwIDcwLjYxMy01Ny4zODcgMTI4LTEyOCAxMjhzLTEyOC01Ny4zODctMTI4LTEyOGMwLTEuOTIgMC0zLjYyNy4yMTMtNS4zMzRMNTAxLjEyIDIzOC43MmExMDcuMDMgMTA3LjAzIDAgMCAxLTYzLjc4NyA1NS4yNTNsNjkuMzM0IDEzOC4yNGMxNS4zNi0zLjYyNiAzMS41NzMtNS41NDYgNDgtNS41NDZDNjcyLjIxMyA0MjYuNjY3IDc2OCA1MjIuNDUzIDc2OCA2NDBzLTk1Ljc4NyAyMTMuMzMzLTIxMy4zMzMgMjEzLjMzM2MtODUuMzM0IDAtMTU5LjE0Ny01MC41Ni0xOTMuMDY3LTEyMy4wOTNsLTM0LjEzMyAyMi42MTNjOC45NiAxNy4yOCAxMy44NjYgMzYuOTA3IDEzLjg2NiA1Ny44MTQgMCA3MC42MTMtNTcuMzg2IDEyOC0xMjggMTI4cy0xMjgtNTcuMzg3LTEyOC0xMjggNTcuMzg3LTEyOCAxMjgtMTI4YzM0Ljc3NCAwIDY2LjEzNCAxMy42NTMgODguOTYgMzYuMDUzbDQ0LjgtMjkuODY3Yy0zLjg0LTE1LjU3My01Ljc2LTMyLTUuNzYtNDguODUzIDAtODUuOTczIDUxLjItMTYwLjIxMyAxMjQuNTg3LTE5My45MkwzOTEuNjggMjk3LjZBMTA2LjQ3NSAxMDYuNDc1IDAgMCAxIDI5OC42NjcgMTkyYzAtNTguODggNDcuNzg2LTEwNi42NjcgMTA2LjY2Ni0xMDYuNjY3UzUxMiAxMzMuMTIgNTEyIDE5MmMwIDEuNzA3IDAgMy42MjctLjIxMyA1LjMzM2wxODAuMDUzIDUzLjk3NGExMjcuOTU3IDEyNy45NTcgMCAwIDEgMTE4LjgyNy04MC42NGM3MC42MTMgMCAxMjggNTcuMzg2IDEyOCAxMjh6Ii8+PC9zdmc+",Je,Qe,pt,Et,ft="Deep Data Space",Wt="https://img.alicdn.com/tfs/TB1YHEpwUT1gK0jSZFhXXaAtVXa-28-27.svg",$e=50,Xe=null,nt=null,Ke=8,ye=function(et){return et.Classification="Classification",et.Detection="Detection",et.Segmentation="Segmentation",et.Matting="Matting",et.KeyPoints="KeyPoints",et.Mask="Mask",et}({}),ne=function(et){return et.showAnnotations="showAnnotations",et.showAllCategory="showAllCategory",et.showImgDesc="showImgDesc",et.showBoxText="showBoxText",et.showSegFilling="showSegFilling",et.showSegContour="showSegContour",et.showMattingColorFill="showMattingColorFill",et.showKeyPointsLine="showKeyPointsLine",et.showKeyPointsBox="showKeyPointsBox",et}({}),H=(Je={},t()(Je,ye.Classification,g),t()(Je,ye.Detection,N),t()(Je,ye.Segmentation,te),t()(Je,ye.Matting,_),t()(Je,ye.KeyPoints,Te),t()(Je,ye.Mask,_),Je),R=(Qe={},t()(Qe,ne.showAnnotations,"lab.displayOption.showAnnotations"),t()(Qe,ne.showAllCategory,"lab.displayOption.showAllCategory"),t()(Qe,ne.showImgDesc,"lab.displayOption.showImgDesc"),t()(Qe,ne.showBoxText,"lab.displayOption.showBoxText"),t()(Qe,ne.showSegFilling,"lab.displayOption.showSegFilling"),t()(Qe,ne.showSegContour,"lab.displayOption.showSegContour"),t()(Qe,ne.showMattingColorFill,"lab.displayOption.showMattingColorFill"),t()(Qe,ne.showKeyPointsLine,"lab.displayOption.showKeyPointsLine"),t()(Qe,ne.showKeyPointsBox,"lab.displayOption.showKeyPointsBox"),Qe),P=[ne.showAnnotations,ne.showAllCategory,ne.showImgDesc],ae=[[0],[2],[5],[10],[1,5,3],[5,2,10]],Q=[1,.4,.6,.8,.85,.9],ie=[1,1.5,1.75,2,2.25,2.5],me=function(et){return et.Overlay="dataset.diffMode.overlay",et.Tiled="dataset.diffMode.tiled",et}({}),je=[me.Overlay,me.Tiled],Ee=function(et){return et[et.all=-1]="all",et[et.unflaged=0]="unflaged",et[et.picked=1]="picked",et[et.rejected=2]="rejected",et}({}),Me=(pt={},t()(pt,Ee.all,"transparent"),t()(pt,Ee.unflaged,"#8C8C8C"),t()(pt,Ee.picked,"#52C41A"),t()(pt,Ee.rejected,"#F5222D"),pt),We=[{value:Ee.picked,tip:"save as 'positive'"},{value:Ee.rejected,tip:"save as 'negative'"},{value:Ee.unflaged,tip:"save as 'unset'"}],re=[{value:Ee.all,name:"all"},{value:Ee.unflaged,name:"unset"},{value:Ee.picked,name:"positive"},{value:Ee.rejected,name:"negative"}],se=function(et){return et.gt="GT",et.user="User",et.pred="Pred",et}({}),J=function(et){return et.fn="fn",et.fp="fp",et}({}),de=[{value:J.fn,name:"FN count"},{value:J.fp,name:"FP count"}],xe=function(et){return et.ok="OK",et.fn="FN",et.fp="FP",et}({}),ce=(Et={},t()(Et,xe.ok,""),t()(Et,xe.fn,"rgba(255,0,0,0.4)"),t()(Et,xe.fp,"rgba(0,0,255,0.4)"),Et),Le=[{value:se.gt,name:"GT - Matched"},{value:xe.fn,name:"GT - FN"},{value:se.pred,name:"Prediction - Matched"},{value:xe.fp,name:"Prediction - FP"}],Oe=function(et){return et.AUTH_TOKEN="auth_token",et}({}),we=function(et){return et.Active="active",et.Inactive="inactive",et.Activating="activating",et}({}),Ne=function(et){return et.Upload="self_uploaded",et.DirectUrl="direct_url",et}({}),st=function(et){return et.Waiting="waiting",et.Running="running",et.Success="success",et.Failed="failed",et.Fail="fail",et}({})},67160:function(b,y,e){"use strict";e.d(y,{$I:function(){return c},C2:function(){return d},nJ:function(){return s},vA:function(){return l}});var a=e(63900),t=e.n(a),o=e(76180),s=function(m){return m[m.pagination=0]="pagination",m[m.random=1]="random",m}({}),n={categoryId:"All",displayAnnotationType:void 0,displayOptions:[o.zY.showAnnotations,o.zY.showAllCategory],selectedLabelIds:[],diffMode:o.uP.Overlay},d={datasetId:"",datasetName:"",queryMode:s.pagination,offset:-1,page:1,pageSize:o.L8,cloumnCount:5,isSingleAnnotation:!1,previewIndex:-1,filterValues:t()({},n),comparisons:void 0,flagTools:void 0},l={imgList:[],total:0,flagTools:{lastShiftIndex:-1,lastSavedIndexs:[],count:0}},c=t()(t()({},l),{},{screenLoading:"",hasEmbedFile:!1,filters:{categories:[],annotationTypes:[],displayOptions:o.EX,labels:[]}})},35459:function(b,y,e){"use strict";e.d(y,{JE:function(){return m},ZA:function(){return c},gZ:function(){return l},j$:function(){return g},mu:function(){return d},tz:function(){return n}});var a=e(2657),t=e.n(a),o,s,n=function(M){return M.Waiting="waiting",M.Initializing="initializing",M.Working="working",M.Reviewing="reviewing",M.Rejected="rejected",M.Accepted="accepted",M.Exported="exported",M}({}),d=(o={},t()(o,n.Waiting,{text:"proj.statusMap.waiting",color:"default"}),t()(o,n.Initializing,{text:"proj.statusMap.initializing",color:"default"}),t()(o,n.Working,{text:"proj.statusMap.working",color:"processing"}),t()(o,n.Reviewing,{text:"proj.statusMap.reviewing",color:"warning"}),t()(o,n.Rejected,{text:"proj.statusMap.rejected",color:"error"}),t()(o,n.Accepted,{text:"proj.statusMap.accepted",color:"success"}),t()(o,n.Exported,{text:"proj.statusMap.exported",color:"default"}),o),l=function(M){return M.Waiting="waiting",M.Working="working",M.Reviewing="reviewing",M.Rejected="rejected",M.Accepted="accepted",M}({}),c=(s={},t()(s,l.Waiting,{text:"proj.eTaskStatus.waiting",color:"default"}),t()(s,l.Working,{text:"proj.eTaskStatus.working",color:"processing"}),t()(s,l.Reviewing,{text:"proj.eTaskStatus.reviewing",color:"warning"}),t()(s,l.Rejected,{text:"proj.eTaskStatus.rejected",color:"error"}),t()(s,l.Accepted,{text:"proj.eTaskStatus.accepted",color:"success"}),s),m=function(M){return M.Accept="accept",M.Reject="reject",M.ForceAccept="force_accept",M}({}),g=function(M){return M.Labeling="labeling",M.Reviewing="reviewing",M.Rejected="rejected",M.Accepted="accepted",M}({})},1239:function(b,y,e){"use strict";e.d(y,{Oc:function(){return d},vb:function(){return n}});var a=e(2657),t=e.n(a),o=e(97375),s,n=function(c){return c.Owner="owner",c.Manager="manager",c.LabelLeader="label_leader",c.ReviewLeader="review_leader",c.Labeler="labeler",c.Reviewer="reviewer",c}({}),d=function(c){return c[c.ProjectEdit=0]="ProjectEdit",c[c.ProjectInfo=1]="ProjectInfo",c[c.ProjectInit=2]="ProjectInit",c[c.ProjectQa=3]="ProjectQa",c[c.ProjectExport=4]="ProjectExport",c[c.AssignLeader=100]="AssignLeader",c[c.TaskQa=101]="TaskQa",c[c.AssignLabeler=102]="AssignLabeler",c[c.AssignReviewer=103]="AssignReviewer",c[c.RestartTask=104]="RestartTask",c[c.StartLabel=105]="StartLabel",c[c.StartReview=106]="StartReview",c[c.CommitReviewTask=107]="CommitReviewTask",c[c.View=108]="View",c}({}),l=(s={},t()(s,n.Owner,[d.ProjectEdit,d.ProjectQa,d.View,d.ProjectExport]),t()(s,n.Manager,[d.ProjectInit,d.ProjectInfo,d.AssignLeader,d.TaskQa,d.View]),t()(s,n.LabelLeader,[d.AssignLabeler,d.RestartTask,d.View]),t()(s,n.ReviewLeader,[d.AssignReviewer,d.View]),t()(s,n.Labeler,[d.StartLabel]),t()(s,n.Reviewer,[d.StartReview,d.CommitReviewTask]),s);y.ZP=function(){var c=(0,o.useModel)("user"),m=c.user,g=function(S,w){if(!m.userId||!S)return[];var C=[];if(m.userId===S.owner.id&&C.push(n.Owner),S.managers.find(function(N){return N.id===m.userId})&&C.push(n.Manager),w){var F,Z;((F=w.labelLeader)===null||F===void 0?void 0:F.userId)===m.userId&&C.push(n.LabelLeader),((Z=w.reviewLeader)===null||Z===void 0?void 0:Z.userId)===m.userId&&C.push(n.ReviewLeader),w.labelers.find(function(N){return N.userId===m.userId})&&C.push(n.Labeler),w.reviewers.find(function(N){return N.userId===m.userId})&&C.push(n.Reviewer)}return C},M=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0,C=[];return S.forEach(function(F){var Z=l[F];Z.forEach(function(N){C.includes(N)||C.push(N)})}),C.includes(w)};return{getUserRoles:g,checkPermission:M}}},32694:function(b,y,e){"use strict";e.d(y,{u:function(){return Z}});var a=e(24454),t=e.n(a),o=e(34485),s=e.n(o),n=e(56592),d=e.n(n),l=e(88205),c=e.n(l),m=e(97375),g=e(65246),M=e(7986),h=e(91290),S=e(53357),w=e(84045),C=e(23707),F=20,Z=function(L){return L[L.labelLeader=0]="labelLeader",L[L.reviewLeader=1]="reviewLeader",L[L.labeler=2]="labeler",L[L.reviewer=3]="reviewer",L[L.reassign=4]="reassign",L}({}),N={show:!1,types:[],tasks:[],initialValues:{}};y.Z=function(){var L=(0,m.useModel)("user"),$=L.user,D=(0,g.x)({list:[],total:0,selectedTaskIds:[]}),T=c()(D,2),j=T[0],K=T[1],k=(0,g.x)({page:1,pageSize:F}),te=c()(k,2),V=te[0],q=te[1],le=(0,g.x)(void 0),X=c()(le,2),W=X[0],x=X[1],O=(0,g.x)(N),_=c()(O,2),U=_[0],A=_[1],G=(0,M.Z)(function(ye,ne){return K(function(H){H.list=[]}),(0,h.ZJ)({projectId:(0,C.Oe)(),pageNum:ye||V.page,pageSize:ne||V.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[V.page,V.pageSize],onSuccess:function(ne){var H=ne.taskList,R=ne.total;K(function(P){P.list=H,P.total=R,P.selectedTaskIds=[]})},onError:function(){}}),fe=G.loading,pe=G.run,ge=(0,M.Z)(function(){return(0,h.NT)((0,C.Oe)())},{manual:!0,debounceWait:100,refreshDeps:[V.page,V.pageSize],onSuccess:function(ne){K(function(H){H.projectDetail=ne,H.isPm=!!ne.managers.find(function(R){return R.id===$.userId})})},onError:function(){}}),be=ge.run,Te=function(ne,H){q(function(R){R.page=H===R.pageSize?ne:1,R.pageSize=H}),pe(ne,H)},Ge=function(ne){K(function(H){H.selectedTaskIds=ne})},Je=function(ne){if(j.projectDetail){var H=ne||j.selectedTaskIds,R=[],P={},ae=j.list.find(function(me){return me.id===H[0]});if(j.projectDetail.labelTimes>0){var Q;R.push(Z.labelLeader),P.labelLeaderId=ae==null||(Q=ae.labelLeader)===null||Q===void 0?void 0:Q.userId}if(j.projectDetail.reviewTimes>0){var ie;R.push(Z.reviewLeader),P.reviewLeaderId=ae==null||(ie=ae.reviewLeader)===null||ie===void 0?void 0:ie.userId}A(function(me){me.show=!0,me.types=R,me.tasks=j.list.filter(function(je){return H.includes(je.id)}),me.initialValues=P})}},Qe=function(ne,H){if(j.projectDetail){var R={};if(H.includes(Z.labeler)){var P;R.labelerIds=(P=ne.labelers)===null||P===void 0?void 0:P.map(function(Q){return Q.userId})}if(H.includes(Z.reviewer)){var ae;R.reviewerIds=(ae=ne.reviewers)===null||ae===void 0?void 0:ae.map(function(Q){return Q.userId})}A(function(Q){Q.show=!0,Q.types=H,Q.tasks=[ne],Q.initialValues=R})}},pt=function(ne,H){A(function(R){R.show=!0,R.types=[Z.reassign],R.tasks=[ne],R.reassignTarget=H})},Et=function(){A(N)},ft=function(){var ye=d()(t()().mark(function ne(H){var R,P,ae,Q,ie;return t()().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(R=H.keyWords,P=R===void 0?"":R,ae=[],Q=U.tasks,ie=U.types,Q.forEach(function(Ee){var Me=[];ie.includes(Z.labelLeader)&&Me.push(Ee.labelLeader),ie.includes(Z.reviewLeader)&&Me.push(Ee.reviewLeader),ie.includes(Z.labeler)&&Me.push.apply(Me,s()(Ee.labelers)),ie.includes(Z.reviewer)&&Me.push.apply(Me,s()(Ee.reviewers)),Me.forEach(function(We){We&&!ae.find(function(re){return We.userId===re.id})&&ae.push({id:We.userId,name:We.userName})})}),!P){je.next=8;break}return je.next=7,(0,h.Qm)({name:P});case 7:ae=je.sent.userList.map(function(Ee){return{name:Ee.name,id:Ee.id}});case 8:return je.abrupt("return",ae.map(function(Ee){return{label:Ee.name,value:Ee.id}}));case 9:case"end":return je.stop()}},ne)}));return function(H){return ye.apply(this,arguments)}}(),Wt=function(){var ye=d()(t()().mark(function ne(H){var R,P,ae,Q,ie,me;return t()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(R=U.initialValues,!(U.types.includes(Z.labelLeader)||U.types.includes(Z.reviewLeader))){Ee.next=16;break}if(!(H.labelLeaderId!==R.labelLeaderId||H.reviewLeaderId!==R.reviewLeaderId)){Ee.next=14;break}return Ee.prev=3,Ee.next=6,(0,h.nu)({projectId:((P=j.projectDetail)===null||P===void 0?void 0:P.id)||"",taskIds:U.tasks.map(function(Me){return Me.id}),labelLeaderId:H.labelLeaderId!==R.labelLeaderId?H.labelLeaderId:void 0,reviewLeaderId:H.reviewLeaderId!==R.reviewLeaderId?H.reviewLeaderId:void 0});case 6:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignLeader")),Ee.next=14;break;case 10:return Ee.prev=10,Ee.t0=Ee.catch(3),console.error(Ee.t0),Ee.abrupt("return",Promise.resolve(!1));case 14:Ee.next=43;break;case 16:if(Q=U.tasks[0],!(U.types.includes(Z.labeler)||U.types.includes(Z.reviewer))){Ee.next=31;break}return Ee.prev=18,Ee.next=21,(0,h.zb)(Q.id,H);case 21:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignWorker")),Ee.next=29;break;case 25:return Ee.prev=25,Ee.t1=Ee.catch(18),console.error(Ee.t1),Ee.abrupt("return",Promise.resolve(!1));case 29:Ee.next=43;break;case 31:if(!(U.types.includes(Z.reassign)&&H.reassigner!==((ae=U.reassignTarget)===null||ae===void 0?void 0:ae.userId))){Ee.next=43;break}return Ee.prev=32,Ee.next=35,(0,h.xv)(Q.id,{oldWorkerId:((ie=U.reassignTarget)===null||ie===void 0?void 0:ie.userId)||"",newWorkerId:H.reassigner||"",role:((me=U.reassignTarget)===null||me===void 0?void 0:me.role)||""});case 35:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.reassignWorker")),Ee.next=43;break;case 39:return Ee.prev=39,Ee.t2=Ee.catch(32),console.error(Ee.t2),Ee.abrupt("return",Promise.resolve(!1));case 43:return Et(),Ee.abrupt("return",Promise.resolve(!1));case 45:case"end":return Ee.stop()}},ne,null,[[3,10],[18,25],[32,39]])}));return function(H){return ye.apply(this,arguments)}}(),$e=function(){var ye=d()(t()().mark(function ne(H){return t()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,P.next=3,(0,h.vo)(H.id);case 3:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.restarTask")),P.next=11;break;case 7:return P.prev=7,P.t0=P.catch(0),console.error(P.t0),P.abrupt("return",Promise.resolve(!1));case 11:case"end":return P.stop()}},ne,null,[[0,7]])}));return function(H){return ye.apply(this,arguments)}}(),Xe=function(){var ye=d()(t()().mark(function ne(H){return t()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,P.next=3,(0,h.$x)(H.id);case 3:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.commiTask")),P.next=11;break;case 7:return P.prev=7,P.t0=P.catch(0),console.error(P.t0),P.abrupt("return",Promise.resolve(!1));case 11:case"end":return P.stop()}},ne,null,[[0,7]])}));return function(H){return ye.apply(this,arguments)}}(),nt=function(){var ye=d()(t()().mark(function ne(H,R){return t()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.prev=0,ae.next=3,(0,h.d5)(H.id,{action:R});case 3:w.ZP.success((0,S._w)("proj.assignModalFinish.changeTaskStatus")),pe(),ae.next=11;break;case 7:return ae.prev=7,ae.t0=ae.catch(0),console.error(ae.t0),ae.abrupt("return",Promise.reject(!1));case 11:case"end":return ae.stop()}},ne,null,[[0,7]])}));return function(H,R){return ye.apply(this,arguments)}}(),Ke=function(ne){q(function(H){Object.assign(H,{page:1,pageSize:F},ne)}),be(),pe()};return{pageData:j,pageState:V,loading:fe,onPageChange:Te,onSelectChange:Ge,onInitPageState:Ke,taskDetailModalIndex:W,setTaskDetailModalIndex:x,assignModal:U,assignLeaders:Je,assignWorker:Qe,reassignWorker:pt,onCloseAssignModal:Et,userLintRequest:ft,assignModalFinish:Wt,restartTask:$e,commitReviewTask:Xe,onChangeTaskResult:nt}}},54518:function(b,y,e){"use strict";e.d(y,{I:function(){return L}});var a=e(24454),t=e.n(a),o=e(56592),s=e.n(o),n=e(63900),d=e.n(n),l=e(88205),c=e.n(l),m=e(97375),g=e(65246),M=e(7986),h=e(91290),S=e(84045),w=e(53357),C=e(35459),F=e(39378),Z=e.n(F),N=20,L="proj.editModal.setWorkflowNow",$={show:!1,current:0,initialValues:{basics:{},settings:{},workflowInitNow:[],hadBatchSize:!1,hadReviewer:!1}};y.Z=function(){var D=(0,m.useModel)("user"),T=D.user,j=(0,m.useModel)("Project.auth"),K=j.getUserRoles,k=(0,g.x)({list:[],total:0}),te=c()(k,2),V=te[0],q=te[1],le=(0,g.x)({page:1,pageSize:N}),X=c()(le,2),W=X[0],x=X[1],O=(0,g.x)($),_=c()(O,2),U=_[0],A=_[1],G=(0,M.Z)(function($e,Xe){return q(function(nt){nt.list=[]}),(0,h.eK)({pageNum:$e||W.page,pageSize:Xe||W.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[W.page,W.pageSize],onSuccess:function(Xe){var nt=Xe.projectList,Ke=Xe.total;q({list:nt.map(function(ye){return d()(d()({},ye),{},{userRoles:K(ye)})}),total:Ke})},onError:function(){}}),fe=G.loading,pe=G.run,ge=function(Xe,nt){x(function(Ke){Ke.page=nt===Ke.pageSize?Xe:1,Ke.pageSize=nt}),pe(Xe,nt)},be=function(){A(function(Xe){Xe.show=!0})},Te=function(Xe,nt){A(function(Ke){var ye=Xe.name,ne=Xe.description,H=Xe.categories,R=Xe.datasets,P=Xe.preLabel,ae=Xe.managers,Q=Xe.batchSize,ie=Xe.reviewTimes,me=Xe.status;Ke.show=!0,Ke.targetProject=Xe,Ke.current=nt?1:0,Ke.initialValues.basics={name:ye,description:ne,categories:H,preLabel:P,datasetIds:R.map(function(je){return je.id}),managerIds:ae.map(function(je){return je.id})},Ke.initialValues.settings=me!==C.tz.Waiting?{batchSize:Q>0?Q:void 0}:{},Ke.initialValues.workflowInitNow=[(0,w._w)(L)],Ke.initialValues.hadBatchSize=Q>0,Ke.initialValues.hadReviewer=ie>0})},Ge=function(){A($)},Je=function(Xe){A(function(nt){Xe===0&&(nt.current=0)})},Qe=function(Xe){return A(function(nt){var Ke;nt.disableInitProject=!((Ke=Xe.basics.managerIds)!==null&&Ke!==void 0&&Ke.includes(T.userId)),nt.current=1}),Promise.resolve(!1)},pt=function(){var $e=s()(t()().mark(function Xe(nt){var Ke,ye,ne,H,R,P,ae,Q;return t()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(ne=!1,H=(Ke=U.targetProject)===null||Ke===void 0?void 0:Ke.id,H){me.next=18;break}return me.prev=3,me.next=6,(0,h.o9)(nt.basics);case 6:R=me.sent,H=R.id,A(function(je){je.targetProject=R}),ne=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.new")),me.next=16;break;case 13:me.prev=13,me.t0=me.catch(3),console.error(me.t0);case 16:me.next=30;break;case 18:if(P=U.initialValues.basics,ae=P.description,Q=P.managerIds,!(nt.basics.description!==ae||!(0,F.isEqual)(nt.basics.managerIds,Q))){me.next=30;break}return me.prev=20,me.next=23,(0,h.NV)(H,nt.basics);case 23:ne=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.edit")),me.next=30;break;case 27:me.prev=27,me.t1=me.catch(20),console.error(me.t1);case 30:if(!((!U.targetProject||((ye=U.targetProject)===null||ye===void 0?void 0:ye.status)===C.tz.Waiting)&&nt.workflowInitNow&&nt.workflowInitNow.length)){me.next=41;break}return me.prev=31,me.next=34,(0,h.mN)(H,{batchSize:nt.hadBatchSize?nt.settings.batchSize:0,labelTimes:1,reviewTimes:nt.hadReviewer?1:0});case 34:ne=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.init")),me.next=41;break;case 38:me.prev=38,me.t2=me.catch(31),console.error(me.t2);case 41:return ne&&pe(),Ge(),me.abrupt("return",Promise.resolve(!1));case 44:case"end":return me.stop()}},Xe,null,[[3,13],[20,27],[31,38]])}));return function(nt){return $e.apply(this,arguments)}}(),Et=function(){var $e=s()(t()().mark(function Xe(nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.prev=0,ne.next=3,(0,h.lw)(nt.id,{action:Ke});case 3:S.ZP.success((0,w._w)("proj.projectModalFinish.change")),pe(),ne.next=11;break;case 7:return ne.prev=7,ne.t0=ne.catch(0),console.error(ne.t0),ne.abrupt("return",Promise.reject(!1));case 11:case"end":return ne.stop()}},Xe,null,[[0,7]])}));return function(nt,Ke){return $e.apply(this,arguments)}}(),ft=function(){var $e=s()(t()().mark(function Xe(nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.prev=0,ne.next=3,(0,h.Cd)(nt,{labelName:Ke==null?void 0:Ke.labelName});case 3:S.ZP.success((0,w._w)("proj.exportModal.submitSuccess",{name:Ke==null?void 0:Ke.labelName})),pe(),ne.next=10;break;case 7:ne.prev=7,ne.t0=ne.catch(0),console.error(ne.t0);case 10:case"end":return ne.stop()}},Xe,null,[[0,7]])}));return function(nt,Ke){return $e.apply(this,arguments)}}(),Wt=function(Xe){x(function(nt){Object.assign(nt,{page:1,pageSize:N},Xe)}),pe()};return{pageData:V,pageState:W,loading:fe,onPageChange:ge,onInitPageState:Wt,projectModal:U,onNewProject:be,onEditProject:Te,closeProjectModal:Ge,onProjectModalCurrentChange:Je,projectModalNext:Qe,projectModalFinish:pt,onChangeProjectResult:Et,onExportLabelProject:ft}}},93059:function(b,y,e){"use strict";e.d(y,{D:function(){return T}});var a=e(63900),t=e.n(a),o=e(24454),s=e.n(o),n=e(56592),d=e.n(n),l=e(34485),c=e.n(l),m=e(88205),g=e.n(m),M=e(65246),h=e(7986),S=e(91290),w=e(35459),C=e(58757),F=e(84045),Z=e(33010),N=e(97375),L=e(23707),$=e(53357),D=100,T={Init:0,More:1};y.Z=function(){var j=(0,N.useModel)("user"),K=j.user,k=(0,N.useModel)("global"),te=k.setLoading,V=(0,M.x)({taskRoles:[],categoryList:[],list:[],curIndex:-1,page:1,pageSize:D,total:0,editorMode:Z.je.View}),q=g()(V,2),le=q[0],X=q[1],W=(0,M.x)({status:w.j$.Labeling,taskStatus:w.gZ.Working}),x=g()(W,2),O=x[0],_=x[1],U=(0,C.useMemo)(function(){return(0,L.BQ)("projectId")||""},[window.location.search]),A=(0,C.useMemo)(function(){return(0,L.BQ)("taskId")||""},[window.location.search]),G=(0,C.useMemo)(function(){var je;return(je=le.taskRoles)===null||je===void 0?void 0:je.find(function(Ee){return Ee.id===O.roleId})},[le.taskRoles,O.roleId]),fe=(0,C.useMemo)(function(){return G&&K.userId===(G==null?void 0:G.userId)?[G.role]:[]},[K.userId,G]),pe=(0,C.useMemo)(function(){var je;return((je=le.list)===null||je===void 0?void 0:je.map(function(Ee){var Me=[],We="";return O.status===w.j$.Labeling&&!Ee.labeled?Ee.defaultLabels&&Ee.defaultLabels.annotations&&Me.push.apply(Me,c()(Ee.defaultLabels.annotations)):Ee.labels.forEach(function(re){We=re.id,Me.push.apply(Me,c()(re.annotations))}),{id:Ee.id,url:Ee.url,urlFullRes:Ee.urlFullRes,labelId:We,objects:Me}}))||[]},[le.list,O.status]),ge=function(){var je=d()(s()().mark(function Ee(Me,We){var re,se,J,de;return s()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(!le.loadingImagesType){ce.next=2;break}return ce.abrupt("return",Promise.reject(null));case 2:return X(function(Le){Le.loadingImagesType=Me,Me===T.Init&&(Le.list=[])}),ce.prev=3,ce.next=6,(0,S.zO)((0,L.BQ)("taskId")||"",{status:We.status||O.status,roleId:We.roleId||O.roleId,pageNum:We.page,pageSize:le.pageSize});case 6:re=ce.sent,se=re.imageList,J=re.total,de=re.pageNum,X(function(Le){Le.list=Le.list.concat(se),Le.page=de,Le.total=J,Le.loadingImagesType=void 0}),ce.next=17;break;case 13:return ce.prev=13,ce.t0=ce.catch(3),X(function(Le){Le.loadingImagesType=void 0}),ce.abrupt("return",Promise.reject(ce.t0));case 17:case"end":return ce.stop()}},Ee,null,[[3,13]])}));return function(Me,We){return je.apply(this,arguments)}}(),be=(0,h.Z)(function(){return Promise.all([(0,S.Cb)((0,L.BQ)("taskId")||""),(0,S.Iu)((0,L.BQ)("taskId")||"")])},{manual:!0,debounceWait:60,onSuccess:function(Ee){var Me=g()(Ee,2),We=Me[0],re=Me[1];X(function(se){se.categoryList=re.categoryList,se.taskRoles=We.roleList}),_(function(se){We.roleList.length&&(!se.roleId||!We.roleList.find(function(J){return J.id===se.roleId}))&&(se.roleId=We.roleList[0].id)})},onError:function(){}}),Te=be.loading,Ge=be.run,Je=function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Promise.all([Ge(),ge(T.Init,t()(t()({},Ee),{},{page:1}))])},Qe=function(){var je=d()(s()().mark(function Ee(){return s()().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(!(le.list.length0&&(re.curIndex=re.curIndex-1)}),We.abrupt("return",Promise.resolve());case 2:case"end":return We.stop()}},Ee)}));return function(){return je.apply(this,arguments)}}(),$e=function(){var je=d()(s()().mark(function Ee(){return s()().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(!(le.curIndex=0;return{pageData:le,pageState:O,loading:Te||le.loadingImagesType===T.Init,loadPageData:Je,loadMore:Qe,onInitPageState:Q,projectId:U,taskId:A,curRole:G,userRoles:fe,tabItems:ie,labelImages:pe,isEditorVisible:me,onStatusTabChange:pt,onRoleChange:Et,clickItem:ft,onExitEditor:ne,onPrevImage:Wt,onNextImage:$e,onLabelSave:H,onReviewResult:R,onReviewAccept:P,onReviewReject:ae,onEnterEdit:Xe,onStartLabel:nt,onStartRework:Ke,onStartReview:ye}}},91290:function(b,y,e){"use strict";e.d(y,{$x:function(){return fe},Cb:function(){return ge},Cd:function(){return $},Iu:function(){return Te},J9:function(){return T},Jg:function(){return ft},NT:function(){return g},NV:function(){return F},Qm:function(){return K},ZJ:function(){return te},d5:function(){return A},eK:function(){return c},lw:function(){return N},mN:function(){return w},nQ:function(){return pt},nu:function(){return q},o9:function(){return h},vo:function(){return _},xv:function(){return x},zO:function(){return Je},zb:function(){return X}});var a=e(24454),t=e.n(a),o=e(63900),s=e.n(o),n=e(56592),d=e.n(n),l=e(97375);function c($e,Xe){return m.apply(this,arguments)}function m(){return m=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),m.apply(this,arguments)}function g($e,Xe){return M.apply(this,arguments)}function M(){return M=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(Xe),s()({method:"GET"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),M.apply(this,arguments)}function h($e,Xe){return S.apply(this,arguments)}function S(){return S=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"POST",data:s()({},Xe)},nt||{})));case 1:case"end":return ye.stop()}},$e)})),S.apply(this,arguments)}function w($e,Xe,nt){return C.apply(this,arguments)}function C(){return C=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_project_configs/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),C.apply(this,arguments)}function F($e,Xe,nt){return Z.apply(this,arguments)}function Z(){return Z=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),Z.apply(this,arguments)}function N($e,Xe,nt){return L.apply(this,arguments)}function L(){return L=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_project_qa/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),L.apply(this,arguments)}function $($e,Xe,nt){return D.apply(this,arguments)}function D(){return D=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_project_export/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),D.apply(this,arguments)}function T($e,Xe){return j.apply(this,arguments)}function j(){return j=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/dataset_name_lints",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),j.apply(this,arguments)}function K($e,Xe){return k.apply(this,arguments)}function k(){return k=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/user_name_lints",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),k.apply(this,arguments)}function te($e,Xe){return V.apply(this,arguments)}function V(){return V=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_tasks",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),V.apply(this,arguments)}function q($e,Xe){return le.apply(this,arguments)}function le(){return le=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_leaders",s()({method:"POST",data:s()({},Xe)},nt||{})));case 1:case"end":return ye.stop()}},$e)})),le.apply(this,arguments)}function X($e,Xe,nt){return W.apply(this,arguments)}function W(){return W=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_workers/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),W.apply(this,arguments)}function x($e,Xe,nt){return O.apply(this,arguments)}function O(){return O=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_reassign/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),O.apply(this,arguments)}function _($e,Xe){return U.apply(this,arguments)}function U(){return U=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_restart/".concat(Xe),s()({method:"POST"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),U.apply(this,arguments)}function A($e,Xe,nt){return G.apply(this,arguments)}function G(){return G=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_qa/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),G.apply(this,arguments)}function fe($e,Xe){return pe.apply(this,arguments)}function pe(){return pe=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_review_commit/".concat(Xe),s()({method:"POST"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),pe.apply(this,arguments)}function ge($e,Xe){return be.apply(this,arguments)}function be(){return be=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_roles/".concat(Xe),s()({method:"GET"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),be.apply(this,arguments)}function Te($e,Xe){return Ge.apply(this,arguments)}function Ge(){return Ge=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_configs/".concat(Xe),s()({method:"GET"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),Ge.apply(this,arguments)}function Je($e,Xe,nt){return Qe.apply(this,arguments)}function Qe(){return Qe=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_images/".concat(Xe),s()({method:"GET",params:nt},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),Qe.apply(this,arguments)}function pt($e,Xe,nt){return Et.apply(this,arguments)}function Et(){return Et=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_image_labels/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{hideCodeErrorMsg:!0})));case 1:case"end":return ne.stop()}},$e)})),Et.apply(this,arguments)}function ft($e,Xe,nt){return Wt.apply(this,arguments)}function Wt(){return Wt=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_image_reviews/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{hideCodeErrorMsg:!0})));case 1:case"end":return ne.stop()}},$e)})),Wt.apply(this,arguments)}},74595:function(b,y,e){"use strict";e.d(y,{B8:function(){return g},JC:function(){return h},WR:function(){return M},i0:function(){return c},iE:function(){return m}});var a=e(63900),t=e.n(a),o=e(34485),s=e.n(o),n=e(76180),d=e(39378),l=e.n(d),c=function(w){var C=0;return(0,d.includes)(w,"Classification")&&(C=1),(0,d.includes)(w,"Detection")&&(C=2),(0,d.includes)(w,"Segmentation")&&(C=3),(0,d.includes)(w,"Matting")&&(C=4),(0,d.includes)(w,"KeyPoints")&&(C=5),e(14677)("./card_cover_".concat(C,".png"))},m=function(w,C,F){if(!w||!C||F)return{colorAplha:n.iP[0],strokeDash:n.JQ[0],lineWidth:n.oM[0]};var Z=C.indexOf(w);return{colorAplha:n.iP[Z]||n.iP[0],strokeDash:n.JQ[Z]||n.JQ[0],lineWidth:n.oM[Z]||n.oM[0]}},g=function(w,C){var F=[],Z=[],N=w.filter(function(L){return n.EX.includes(L)});return C===n.JJ.Detection?(F=[n.zY.showBoxText],Z=F):C===n.JJ.Segmentation?(F=[n.zY.showSegFilling,n.zY.showSegContour],Z=F):C===n.JJ.Matting?F=[n.zY.showMattingColorFill]:C===n.JJ.KeyPoints&&(F=[n.zY.showKeyPointsLine,n.zY.showKeyPointsBox],Z=F),[[].concat(s()(n.EX),s()(F)),[].concat(s()(N),s()(Z))]},M=function(w,C,F){var Z=[];return F===n.JJ.Matting&&Z.push({id:"origin",name:"Origin image",source:n.$j.gt,comparePrecisions:[],confidenceRange:[0,1]}),C.length&&C.forEach(function(N){var L=w.find(function($){return $.id===N});L&&Z.push(t()({},L))}),Z},h=function(w,C,F){var Z=[];return C.length?(w.forEach(function(N){F===n.JJ.Matting&&Z.push(t()({},N)),Z.push.apply(Z,s()(new Array(C.length).fill({}).map(function(L,$){var D=t()({},N);return D.curLabelId=C[$],D})))}),Z):w}},17410:function(b,y,e){"use strict";e.d(y,{v_:function(){return wr},yj:function(){return zr},Uu:function(){return ta},ru:function(){return Er},Zo:function(){return ga},QD:function(){return Sr},Yq:function(){return sr},Ze:function(){return wn},gr:function(){return Rn},jB:function(){return Kr},HE:function(){return pr},ft:function(){return kr},GI:function(){return Xr},t:function(){return ma},Fv:function(){return ia},vL:function(){return Mr},TR:function(){return Ma},VC:function(){return Zn},ef:function(){return Yn},Xn:function(){return Ur},oP:function(){return Wn}});var a=e(2657),t=e.n(a),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(Pt,on,Mn)=>on in Pt?s(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,m=(Pt,on)=>{for(var Mn in on||(on={}))d.call(on,Mn)&&c(Pt,Mn,on[Mn]);if(n)for(var Mn of n(on))l.call(on,Mn)&&c(Pt,Mn,on[Mn]);return Pt};const g=Pt=>o.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"1em",width:"1em"},Pt),o.createElement("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v3h-3v2h3v3h2v-3h3v-2h-3z"}));var M="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgaGVpZ2h0PSIxZW0iIHdpZHRoPSIxZW0iPjxwYXRoIGQ9Ik0zIDExaDhWM0gzdjh6bTItNmg0djRINVY1em04LTJ2OGg4VjNoLTh6bTYgNmgtNFY1aDR2NHpNMyAyMWg4di04SDN2OHptMi02aDR2NEg1di00em0xMy0yaC0ydjNoLTN2MmgzdjNoMnYtM2gzdi0yaC0zeiIvPjwvc3ZnPg==",h=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,F=(Pt,on,Mn)=>on in Pt?h(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Z=(Pt,on)=>{for(var Mn in on||(on={}))w.call(on,Mn)&&F(Pt,Mn,on[Mn]);if(S)for(var Mn of S(on))C.call(on,Mn)&&F(Pt,Mn,on[Mn]);return Pt};const N=Pt=>o.createElement("svg",Z({className:"delete_all_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"M864 192v576h64V192c0-70.4-57.6-128-128-128H352v64h448c35.2 0 64 28.8 64 64z"}),o.createElement("path",{d:"M672 192H224c-70.4 0-128 57.6-128 128v512c0 70.4 57.6 128 128 128h448c70.4 0 128-57.6 128-128V320c0-70.4-57.6-128-128-128zm-73.235 489.51c12.445 12.445 12.445 32.81 0 45.255s-32.81 12.445-45.255 0L448 621.255l-105.51 105.51c-12.445 12.445-32.81 12.445-45.255 0s-12.445-32.81 0-45.255L402.745 576l-105.51-105.51c-12.445-12.445-12.445-32.81 0-45.255s32.81-12.445 45.255 0L448 530.745l105.51-105.51c12.445-12.445 32.81-12.445 45.255 0s12.445 32.81 0 45.255L493.255 576l105.51 105.51z"}));var L="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik04NjQgMTkydjU3Nmg2NFYxOTJjMC03MC40LTU3LjYtMTI4LTEyOC0xMjhIMzUydjY0aDQ0OGMzNS4yIDAgNjQgMjguOCA2NCA2NHoiLz48cGF0aCBkPSJNNjcyIDE5MkgyMjRjLTcwLjQgMC0xMjggNTcuNi0xMjggMTI4djUxMmMwIDcwLjQgNTcuNiAxMjggMTI4IDEyOGg0NDhjNzAuNCAwIDEyOC01Ny42IDEyOC0xMjhWMzIwYzAtNzAuNC01Ny42LTEyOC0xMjgtMTI4em0tNzMuMjM1IDQ4OS41MWMxMi40NDUgMTIuNDQ1IDEyLjQ0NSAzMi44MSAwIDQ1LjI1NXMtMzIuODEgMTIuNDQ1LTQ1LjI1NSAwTDQ0OCA2MjEuMjU1bC0xMDUuNTEgMTA1LjUxYy0xMi40NDUgMTIuNDQ1LTMyLjgxIDEyLjQ0NS00NS4yNTUgMHMtMTIuNDQ1LTMyLjgxIDAtNDUuMjU1TDQwMi43NDUgNTc2bC0xMDUuNTEtMTA1LjUxYy0xMi40NDUtMTIuNDQ1LTEyLjQ0NS0zMi44MSAwLTQ1LjI1NXMzMi44MS0xMi40NDUgNDUuMjU1IDBMNDQ4IDUzMC43NDVsMTA1LjUxLTEwNS41MWMxMi40NDUtMTIuNDQ1IDMyLjgxLTEyLjQ0NSA0NS4yNTUgMHMxMi40NDUgMzIuODEgMCA0NS4yNTVMNDkzLjI1NSA1NzZsMTA1LjUxIDEwNS41MXoiLz48L3N2Zz4=",$=Object.defineProperty,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,K=(Pt,on,Mn)=>on in Pt?$(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,k=(Pt,on)=>{for(var Mn in on||(on={}))T.call(on,Mn)&&K(Pt,Mn,on[Mn]);if(D)for(var Mn of D(on))j.call(on,Mn)&&K(Pt,Mn,on[Mn]);return Pt};const te=Pt=>o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Pt),o.createElement("defs",null,o.createElement("style",null,".magic_svg__cls-1{fill:#fff}")),o.createElement("path",{className:"magic_svg__cls-1",d:"M26.08 18.47V16.6c0-.58.27-1.19 1-1.25s1.05.45 1.06 1.29v1.83h1.92c.76 0 1.25.46 1.19 1.08a1 1 0 0 1-1.18 1h-1.91v1.74c0 .91-.39 1.41-1.06 1.39s-1-.49-1-1.42v-1.71h-1.91c-.71 0-1.21-.29-1.21-1s.5-1 1.21-1ZM12.81 6.47h1.59a1 1 0 0 1 1 1 1 1 0 0 1-1 1.07h-1.58v1.5c0 .68-.38 1.11-1.07 1.1a1 1 0 0 1-1-1.08V8.54H9.29c-.68 0-1.13-.36-1.12-1s.46-1 1.14-1h1.44V5.01a1 1 0 1 1 2.06 0c.02.38 0 .87 0 1.46ZM19.93 24.67c.11-1.56.33-2 1.05-2s1 .44 1.12 2c.8.17 2.09-.2 2 1.22-.07 1.15-1.14.89-2 .95-.18.8.22 2.11-1.2 2-1.18-.07-.89-1.19-1-2-.84-.09-1.91.21-2-1.06-.07-.7.39-.94 2.03-1.11ZM30.2 6l-2.51-2.49a2.15 2.15 0 0 0-3.06 0L3.27 24.92a2.2 2.2 0 0 0 0 3.08l2.51 2.51a2.17 2.17 0 0 0 3.06 0L30.2 9.09a2.19 2.19 0 0 0 0-3.09ZM29 8.47l-4.39 4.39a.94.94 0 0 1-1.35 0l-2.28-2.28a1 1 0 0 1 0-1.36l4.38-4.39a1 1 0 0 1 1.36 0L29 7.11a1 1 0 0 1 0 1.36Z"}));var V="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PH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wtNC4zOSA0LjM5YS45NC45NCAwIDAgMS0xLjM1IDBsLTIuMjgtMi4yOGExIDEgMCAwIDEgMC0xLjM2bDQuMzgtNC4zOWExIDEgMCAwIDEgMS4zNiAwTDI5IDcuMTFhMSAxIDAgMCAxIDAgMS4zNloiLz48L3N2Zz4=",q=Object.defineProperty,le=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,x=(Pt,on,Mn)=>on in Pt?q(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,O=(Pt,on)=>{for(var Mn in on||(on={}))X.call(on,Mn)&&x(Pt,Mn,on[Mn]);if(le)for(var Mn of le(on))W.call(on,Mn)&&x(Pt,Mn,on[Mn]);return Pt};const _=Pt=>o.createElement("svg",O({viewBox:"0 0 33 33",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#mask-ai_svg__a)"},o.createElement("path",{d:"M15.278 33H6.753c-1.77 0-2.435-.664-2.103-2.436.443-1.993.886-3.985 1.218-5.978.11-.665.443-.886 1.107-.886h16.718c.664 0 .996.332 1.107.886.443 1.993.886 3.985 1.218 5.978.332 1.772-.222 2.436-2.104 2.436h-8.636ZM15.39 20.6H7.306c-.996 0-1.107-.11-1.107-1.218v-1.66c0-1.218.554-1.772 1.882-1.772h3.432c.665 0 .997-.221.886-.886V5.432c0-1.66.886-2.99 2.325-3.321 1.993-.554 3.764.996 3.764 3.21v9.3c0 1.44 0 1.329 1.33 1.329h3.21c1.107 0 1.66.554 1.66 1.66v1.994c0 .775-.332.996-.996.996H15.39Z"})),o.createElement("path",{d:"M26.928 11.296h-3.492l-.6 1.704h-1.428l2.988-8.352h1.584L28.968 13h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52V13h-1.368V4.66h1.368Z"}),o.createElement("defs",null,o.createElement("clipPath",{id:"mask-ai_svg__a"},o.createElement("path",{transform:"translate(0 2)",d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oiLz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgMikiIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",A=Object.defineProperty,G=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,ge=(Pt,on,Mn)=>on in Pt?A(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,be=(Pt,on)=>{for(var Mn in on||(on={}))fe.call(on,Mn)&&ge(Pt,Mn,on[Mn]);if(G)for(var Mn of G(on))pe.call(on,Mn)&&ge(Pt,Mn,on[Mn]);return Pt};const Te=Pt=>o.createElement("svg",be({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},Pt),o.createElement("path",{className:"mask_svg__cls-1",d:"M17.29 31.49H9.44c-1.68 0-2.24-.66-1.92-2.28.36-1.83.77-3.66 1.13-5.49a.9.9 0 0 1 1-.84h15.39a.91.91 0 0 1 1 .85c.37 1.83.78 3.65 1.13 5.48.32 1.62-.24 2.28-1.92 2.28-2.63.01-5.25 0-7.96 0ZM17.39 20.05H9.92c-1 0-1.09-.12-1.09-1.06v-1.72a1.36 1.36 0 0 1 1.44-1.46h3.51c.56 0 .74-.19.73-.74 0-2.89.05-5.78 0-8.67C14.43 3.93 16 2.94 17.38 3s2.93 1 2.87 3.48c-.07 2.84 0 5.68 0 8.52 0 .64.16.89.84.86 1.09-.05 2.19 0 3.29 0a1.4 1.4 0 0 1 1.56 1.57v1.8c0 .6-.36.89-1 .89Z"}),o.createElement("path",{style:{fill:"none"},d:"M2.89 2.83h28.35v28.35H2.89z"}));var Ge="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNCAzNCI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTcuMjkgMzEuNDlIOS40NGMtMS42OCAwLTIuMjQtLjY2LTEuOTItMi4yOC4zNi0xLjgzLjc3LTMuNjYgMS4xMy01LjQ5YS45LjkgMCAwIDEgMS0uODRoMTUuMzlhLjkxLjkxIDAgMCAxIDEgLjg1Yy4zNyAxLjgzLjc4IDMuNjUgMS4xMyA1LjQ4LjMyIDEuNjItLjI0IDIuMjgtMS45MiAyLjI4LTIuNjMuMDEtNS4yNSAwLTcuOTYgMFpNMTcuMzkgMjAuMDVIOS45MmMtMSAwLTEuMDktLjEyLTEuMDktMS4wNnYtMS43MmExLjM2IDEuMzYgMCAwIDEgMS40NC0xLjQ2aDMuNTFjLjU2IDAgLjc0LS4xOS43My0uNzQgMC0yLjg5LjA1LTUuNzggMC04LjY3QzE0LjQzIDMuOTMgMTYgMi45NCAxNy4zOCAzczIuOTMgMSAyLjg3IDMuNDhjLS4wNyAyLjg0IDAgNS42OCAwIDguNTIgMCAuNjQuMTYuODkuODQuODYgMS4wOS0uMDUgMi4xOSAwIDMuMjkgMGExLjQgMS40IDAgMCAxIDEuNTYgMS41N3YxLjhjMCAuNi0uMzYuODktMSAuODlaIi8+PHBhdGggc3R5bGU9ImZpbGw6bm9uZSIgZD0iTTIuODkgMi44M2gyOC4zNXYyOC4zNUgyLjg5eiIvPjwvc3ZnPg==",Je=Object.defineProperty,Qe=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,ft=(Pt,on,Mn)=>on in Pt?Je(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Wt=(Pt,on)=>{for(var Mn in on||(on={}))pt.call(on,Mn)&&ft(Pt,Mn,on[Mn]);if(Qe)for(var Mn of Qe(on))Et.call(on,Mn)&&ft(Pt,Mn,on[Mn]);return Pt};const $e=Pt=>o.createElement("svg",Wt({viewBox:"0 0 35 31",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#polygon-ai_svg__a)"},o.createElement("path",{d:"M27.125 23.25c-.534 0-1.042.108-1.505.303l-5.444-6.17a3.854 3.854 0 0 0-.008-3.782l5.403-6.178c.477.21 1.002.327 1.554.327A3.88 3.88 0 0 0 31 3.875 3.88 3.88 0 0 0 27.125 0a3.88 3.88 0 0 0-3.653 2.583H7.528A3.88 3.88 0 0 0 3.875 0 3.88 3.88 0 0 0 0 3.875a3.88 3.88 0 0 0 2.583 3.653v15.944A3.88 3.88 0 0 0 0 27.125 3.88 3.88 0 0 0 3.875 31a3.88 3.88 0 0 0 3.653-2.583h15.944A3.88 3.88 0 0 0 27.125 31 3.88 3.88 0 0 0 31 27.125a3.88 3.88 0 0 0-3.875-3.875ZM7.528 5.167h15.944c.06.168.132.332.213.488l-5.46 6.245a3.854 3.854 0 0 0-1.433-.275 3.88 3.88 0 0 0-3.875 3.875 3.88 3.88 0 0 0 3.875 3.875c.511 0 1-.1 1.448-.282l5.471 6.202a3.937 3.937 0 0 0-.239.538H7.528a3.894 3.894 0 0 0-2.361-2.36V7.527a3.894 3.894 0 0 0 2.36-2.361Z"})),o.createElement("path",{d:"M28.928 17.296h-3.492l-.6 1.704h-1.428l2.988-8.352h1.584L30.968 19h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52V19h-1.368v-8.34h1.368Z"}),o.createElement("defs",null,o.createElement("clipPath",{id:"polygon-ai_svg__a"},o.createElement("path",{d:"M0 0h31v31H0z"}))));var Xe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzUgMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjcuMTI1IDIzLjI1Yy0uNTM0IDAtMS4wNDIuMTA4LTEuNTA1LjMwM2wtNS40NDQtNi4xN2EzLjg1NCAzLjg1NCAwIDAgMC0uMDA4LTMuNzgybDUuNDAzLTYuMTc4Y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GRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCAwaDMxdjMxSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",nt=Object.defineProperty,Ke=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,H=(Pt,on,Mn)=>on in Pt?nt(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,R=(Pt,on)=>{for(var Mn in on||(on={}))ye.call(on,Mn)&&H(Pt,Mn,on[Mn]);if(Ke)for(var Mn of Ke(on))ne.call(on,Mn)&&H(Pt,Mn,on[Mn]);return Pt};const P=Pt=>o.createElement("svg",R({viewBox:"0 0 31 31",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#polygon_svg__a)"},o.createElement("path",{d:"M27.125 23.25c-.534 0-1.042.108-1.505.303l-5.444-6.17a3.854 3.854 0 0 0-.008-3.782l5.403-6.178c.477.21 1.002.327 1.554.327A3.88 3.88 0 0 0 31 3.875 3.88 3.88 0 0 0 27.125 0a3.88 3.88 0 0 0-3.653 2.583H7.528A3.88 3.88 0 0 0 3.875 0 3.88 3.88 0 0 0 0 3.875a3.88 3.88 0 0 0 2.583 3.653v15.944A3.88 3.88 0 0 0 0 27.125 3.88 3.88 0 0 0 3.875 31a3.88 3.88 0 0 0 3.653-2.583h15.944A3.88 3.88 0 0 0 27.125 31 3.88 3.88 0 0 0 31 27.125a3.88 3.88 0 0 0-3.875-3.875ZM7.528 5.167h15.944c.06.168.132.332.213.488l-5.46 6.245a3.854 3.854 0 0 0-1.433-.275 3.88 3.88 0 0 0-3.875 3.875 3.88 3.88 0 0 0 3.875 3.875c.511 0 1-.1 1.448-.282l5.471 6.202a3.937 3.937 0 0 0-.239.538H7.528a3.894 3.894 0 0 0-2.361-2.36V7.527a3.894 3.894 0 0 0 2.36-2.361Z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"polygon_svg__a"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DAtMi4zNjEtMi4zNlY3LjUyN2EzLjg5NCAzLjg5NCAwIDAgMCAyLjM2LTIuMzYxWiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",Q=Object.defineProperty,ie=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ee=(Pt,on,Mn)=>on in Pt?Q(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Me=(Pt,on)=>{for(var Mn in on||(on={}))me.call(on,Mn)&&Ee(Pt,Mn,on[Mn]);if(ie)for(var Mn of ie(on))je.call(on,Mn)&&Ee(Pt,Mn,on[Mn]);return Pt};const We=Pt=>o.createElement("svg",Me({viewBox:"0 0 29 29",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("path",{d:"M27.32 6.07a1 1 0 0 0 1-1V1.01a1 1 0 0 0-1-1.001h-4.05a1 1 0 0 0-1 1v1H6.06v-1a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1h1V22.26H1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-4.03a1 1 0 0 0-1-1h-1V6.07h1.02Zm-3 16.2h-1a1 1 0 0 0-1 1v1H6.06v-1a1 1 0 0 0-1-1h-1V6.07h1a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h1l.06 16.2Z"}),o.createElement("path",{d:"M13.928 17.305h-3.492l-.6 1.704H8.408l2.988-8.352h1.584l2.988 8.352h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52v8.34h-1.368v-8.34h1.368Z"}));var re="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjkgMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3LjMyIDYuMDdhMSAxIDAgMCAwIDEtMVYxLjAxYTEgMSAwIDAgMC0xLTEuMDAxaC00LjA1YTEgMSAwIDAgMC0xIDF2MUg2LjA2di0xYTEgMSAwIDAgMC0xLTFIMWExIDEgMCAwIDAtMSAxdjQuMDVhMSAxIDAgMCAwIDEgMWgxVjIyLjI2SDFhMSAxIDAgMCAwLTEgMXY0LjA1YTEgMSAwIDAgMCAxIDFoNC4wNWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDQuMDVhMSAxIDAgMCAwIDEtMXYtNC4wM2ExIDEgMCAwIDAtMS0xaC0xVjYuMDdoMS4wMlptLTMgMTYuMmgtMWExIDEgMCAwIDAtMSAxdjFINi4wNnYtMWExIDEgMCAwIDAtMS0xaC0xVjYuMDdoMWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDFsLjA2IDE2LjJaIi8+PHBhdGggZD0iTTEzLjkyOCAxNy4zMDVoLTMuNDkybC0uNiAxLjcwNEg4LjQwOGwyLjk4OC04LjM1MmgxLjU4NGwyLjk4OCA4LjM1MmgtMS40NGwtLjYtMS43MDRabS0uMzg0LTEuMTE2LTEuMzU2LTMuODc2LTEuMzY4IDMuODc2aDIuNzI0Wm01LjA5MS01LjUydjguMzRoLTEuMzY4di04LjM0aDEuMzY4WiIvPjwvc3ZnPg==",se=Object.defineProperty,J=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ce=(Pt,on,Mn)=>on in Pt?se(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Le=(Pt,on)=>{for(var Mn in on||(on={}))de.call(on,Mn)&&ce(Pt,Mn,on[Mn]);if(J)for(var Mn of J(on))xe.call(on,Mn)&&ce(Pt,Mn,on[Mn]);return Pt};const Oe=Pt=>o.createElement("svg",Le({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Pt),o.createElement("path",{className:"rectangle_svg__cls-1",d:"M30.17 8.91a1 1 0 0 0 1-1V3.85a1 1 0 0 0-1-1h-4.05a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1H3.85a1 1 0 0 0-1 1V7.9a1 1 0 0 0 1 1h1v16.2h-1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1H7.9a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-4.03a1 1 0 0 0-1-1h-1V8.91Zm-3 16.2h-1a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1h-1V8.91h1a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h1Z"}),o.createElement("path",{className:"rectangle_svg__cls-2",fill:"none",d:"M2.83 2.83h28.35v28.35H2.83z"}));var we="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMzAuMTcgOC45MWExIDEgMCAwIDAgMS0xVjMuODVhMSAxIDAgMCAwLTEtMWgtNC4wNWExIDEgMCAwIDAtMSAxdjFIOC45MXYtMWExIDEgMCAwIDAtMS0xSDMuODVhMSAxIDAgMCAwLTEgMVY3LjlhMSAxIDAgMCAwIDEgMWgxdjE2LjJoLTFhMSAxIDAgMCAwLTEgMXY0LjA1YTEgMSAwIDAgMCAxIDFINy45YTEgMSAwIDAgMCAxLTF2LTFoMTYuMnYxYTEgMSAwIDAgMCAxIDFoNC4wNWExIDEgMCAwIDAgMS0xdi00LjAzYTEgMSAwIDAgMC0xLTFoLTFWOC45MVptLTMgMTYuMmgtMWExIDEgMCAwIDAtMSAxdjFIOC45MXYtMWExIDEgMCAwIDAtMS0xaC0xVjguOTFoMWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDFaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBmaWxsPSJub25lIiBkPSJNMi44MyAyLjgzaDI4LjM1djI4LjM1SDIuODN6Ii8+PC9zdmc+",Ne=Object.defineProperty,st=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ke=(Pt,on,Mn)=>on in Pt?Ne(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Be=(Pt,on)=>{for(var Mn in on||(on={}))et.call(on,Mn)&&ke(Pt,Mn,on[Mn]);if(st)for(var Mn of st(on))Ye.call(on,Mn)&&ke(Pt,Mn,on[Mn]);return Pt};const it=Pt=>o.createElement("svg",Be({className:"redo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"m1017.173 430.08-477.866-307.2c-6.827-3.413-13.654-3.413-17.067 0-6.827 3.413-10.24 6.827-10.24 13.653v187.734c-341.333 10.24-508.587 337.92-512 563.2v3.413c0 6.827 6.827 13.653 17.067 13.653s17.066-6.826 17.066-17.066c3.414-51.2 228.694-279.894 477.867-290.134v187.734c0 6.826 3.413 13.653 10.24 13.653 6.827 3.413 13.653 3.413 17.067 0l477.866-341.333c3.414-3.414 6.827-10.24 6.827-13.654s-3.413-10.24-6.827-13.653z",fill:"#fff"}));var Ve="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Im0xMDE3LjE3MyA0MzAuMDgtNDc3Ljg2Ni0zMDcuMmMtNi44MjctMy40MTMtMTMuNjU0LTMuNDEzLTE3LjA2NyAwLTYuODI3IDMuNDEzLTEwLjI0IDYuODI3LTEwLjI0IDEzLjY1M3YxODcuNzM0Yy0zNDEuMzMzIDEwLjI0LTUwOC41ODcgMzM3LjkyLTUxMiA1NjMuMnYzLjQxM2MwIDYuODI3IDYuODI3IDEzLjY1MyAxNy4wNjcgMTMuNjUzczE3LjA2Ni02LjgyNiAxNy4wNjYtMTcuMDY2YzMuNDE0LTUxLjIgMjI4LjY5NC0yNzkuODk0IDQ3Ny44NjctMjkwLjEzNHYxODcuNzM0YzAgNi44MjYgMy40MTMgMTMuNjUzIDEwLjI0IDEzLjY1MyA2LjgyNyAzLjQxMyAxMy42NTMgMy40MTMgMTcuMDY3IDBsNDc3Ljg2Ni0zNDEuMzMzYzMuNDE0LTMuNDE0IDYuODI3LTEwLjI0IDYuODI3LTEzLjY1NHMtMy40MTMtMTAuMjQtNi44MjctMTMuNjUzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",xt=Object.defineProperty,Ht=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,_t=(Pt,on,Mn)=>on in Pt?xt(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,yt=(Pt,on)=>{for(var Mn in on||(on={}))Ot.call(on,Mn)&&_t(Pt,Mn,on[Mn]);if(Ht)for(var Mn of Ht(on))wt.call(on,Mn)&&_t(Pt,Mn,on[Mn]);return Pt};const ze=Pt=>o.createElement("svg",yt({className:"repeat_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"M0 448c0 35.4 28.6 64 64 64s64-28.6 64-64c0-106 86-192 192-192h320v64c0 25.8 15.6 49.2 39.6 59.2s51.4 4.4 69.8-13.8l128-128c25-25 25-65.6 0-90.6l-128-128C731 .4 703.6-5 679.6 5S640 38.2 640 64v64H320C143.2 128 0 271.2 0 448zm1024 128c0-35.4-28.6-64-64-64s-64 28.6-64 64c0 106-86 192-192 192H384v-64c0-25.8-15.6-49.2-39.6-59.2s-51.4-4.4-69.8 13.8l-128 128c-25 25-25 65.6 0 90.6l128 128c18.4 18.4 45.8 23.8 69.8 13.8s39.6-33.2 39.6-59.2V896h320c176.8 0 320-143.2 320-320z",fill:"#fff"}));var tt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0wIDQ0OGMwIDM1LjQgMjguNiA2NCA2NCA2NHM2NC0yOC42IDY0LTY0YzAtMTA2IDg2LTE5MiAxOTItMTkyaDMyMHY2NGMwIDI1LjggMTUuNiA0OS4yIDM5LjYgNTkuMnM1MS40IDQuNCA2OS44LTEzLjhsMTI4LTEyOGMyNS0yNSAyNS02NS42IDAtOTAuNmwtMTI4LTEyOEM3MzEgLjQgNzAzLjYtNSA2NzkuNiA1UzY0MCAzOC4yIDY0MCA2NHY2NEgzMjBDMTQzLjIgMTI4IDAgMjcxLjIgMCA0NDh6bTEwMjQgMTI4YzAtMzUuNC0yOC42LTY0LTY0LTY0cy02NCAyOC42LTY0IDY0YzAgMTA2LTg2IDE5Mi0xOTIgMTkySDM4NHYtNjRjMC0yNS44LTE1LjYtNDkuMi0zOS42LTU5LjJzLTUxLjQtNC40LTY5LjggMTMuOGwtMTI4IDEyOGMtMjUgMjUtMjUgNjUuNiAwIDkwLjZsMTI4IDEyOGMxOC40IDE4LjQgNDUuOCAyMy44IDY5LjggMTMuOHMzOS42LTMzLjIgMzkuNi01OS4yVjg5NmgzMjBjMTc2LjggMCAzMjAtMTQzLjIgMzIwLTMyMHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",St=Object.defineProperty,lt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,At=(Pt,on,Mn)=>on in Pt?St(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Ie=(Pt,on)=>{for(var Mn in on||(on={}))Gt.call(on,Mn)&&At(Pt,Mn,on[Mn]);if(lt)for(var Mn of lt(on))Nt.call(on,Mn)&&At(Pt,Mn,on[Mn]);return Pt};const Se=Pt=>o.createElement("svg",Ie({viewBox:"0 0 31 35",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#skeleton-ai_svg__a)"},o.createElement("path",{d:"M25.833 19.5a5.161 5.161 0 0 0-4.097 2.023l-.09-.039a6.459 6.459 0 0 0-7.762-8.237l-.118-.222a5.16 5.16 0 1 0-2.297 1.18l.094.176a6.448 6.448 0 0 0-1.465 8.654l-2.435 2.277a5.167 5.167 0 1 0 1.88 1.78l2.374-2.22a6.45 6.45 0 0 0 8.446-1.125l.36.154a5.167 5.167 0 1 0 5.11-4.401ZM7.75 9.167a2.583 2.583 0 1 1 5.167 0 2.583 2.583 0 0 1-5.167 0Zm-2.583 23.25a2.583 2.583 0 1 1 0-5.166 2.583 2.583 0 0 1 0 5.166ZM15.5 23.375a3.874 3.874 0 0 1-2.067-7.148l.526-.28a3.876 3.876 0 1 1 1.54 7.428Zm10.333 3.875a2.583 2.583 0 1 1 0-5.165 2.583 2.583 0 0 1 0 5.165Z"})),o.createElement("path",{d:"M24.928 11.296h-3.492l-.6 1.704h-1.428l2.988-8.352h1.584L26.968 13h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52V13h-1.368V4.66h1.368Z"}),o.createElement("defs",null,o.createElement("clipPath",{id:"skeleton-ai_svg__a"},o.createElement("path",{transform:"translate(0 4)",d:"M0 0h31v31H0z"}))));var bt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzEgMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcg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yYW5zZm9ybT0idHJhbnNsYXRlKDAgNCkiIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",jt=Object.defineProperty,He=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Zt=(Pt,on,Mn)=>on in Pt?jt(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,qt=(Pt,on)=>{for(var Mn in on||(on={}))qe.call(on,Mn)&&Zt(Pt,Mn,on[Mn]);if(He)for(var Mn of He(on))$t.call(on,Mn)&&Zt(Pt,Mn,on[Mn]);return Pt};const un=Pt=>o.createElement("svg",qt({viewBox:"0 0 31 31",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#skeleton_svg__a)"},o.createElement("path",{d:"M25.833 15.5a5.161 5.161 0 0 0-4.097 2.023l-.09-.039a6.459 6.459 0 0 0-7.762-8.237l-.118-.222a5.16 5.16 0 1 0-2.297 1.18l.094.176a6.448 6.448 0 0 0-1.465 8.654l-2.435 2.277a5.167 5.167 0 1 0 1.88 1.78l2.374-2.22a6.45 6.45 0 0 0 8.446-1.125l.36.154a5.167 5.167 0 1 0 5.11-4.401ZM7.75 5.167a2.583 2.583 0 1 1 5.167 0 2.583 2.583 0 0 1-5.167 0Zm-2.583 23.25a2.583 2.583 0 1 1 0-5.166 2.583 2.583 0 0 1 0 5.166ZM15.5 19.375a3.874 3.874 0 0 1-2.067-7.148l.526-.28a3.876 3.876 0 1 1 1.54 7.428Zm10.333 3.875a2.583 2.583 0 1 1 0-5.165 2.583 2.583 0 0 1 0 5.165Z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"skeleton_svg__a"},o.createElement("path",{d:"M0 0h31v31H0z"}))));var xn="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzEgMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjUuODMzIDE1LjVhNS4xNjEgNS4xNjEgMCAwIDAtNC4wOTcgMi4wMjNsLS4wOS0uMDM5YTYuNDU5IDYuNDU5IDAgMCAwLTcuNzYyLTguMjM3bC0uMTE4LS4yMjJhNS4xNiA1LjE2IDAgMSAwLTIuMjk3IDEuMThsLjA5NC4xNzZhNi40NDggNi40NDggMCAwIDAtMS40NjUgOC42NTRsLTIuNDM1IDIuMjc3YTUuMTY3IDUuMTY3IDAgMSAwIDEuODggMS43OGwyLjM3NC0yLjIyYTYuNDUgNi40NSAwIDAgMCA4LjQ0Ni0xLjEyNWwuMzYuMTU0YTUuMTY3IDUuMTY3IDAgMSAwIDUuMTEtNC40MDFaTTcuNzUgNS4xNjdhMi41ODMgMi41ODMgMCAxIDEgNS4xNjcgMCAyLjU4MyAyLjU4MyAwIDAgMS01LjE2NyAwWm0tMi41ODMgMjMuMjVhMi41ODMgMi41ODMgMCAxIDEgMC01LjE2NiAyLjU4MyAyLjU4MyAwIDAgMSAwIDUuMTY2Wk0xNS41IDE5LjM3NWEzLjg3NCAzLjg3NCAwIDAgMS0yLjA2Ny03LjE0OGwuNTI2LS4yOGEzLjg3NiAzLjg3NiAwIDEgMSAxLjU0IDcuNDI4Wm0xMC4zMzMgMy44NzVhMi41ODMgMi41ODMgMCAxIDEgMC01LjE2NSAyLjU4MyAyLjU4MyAwIDAgMSAwIDUuMTY1WiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",pn=Object.defineProperty,Gn=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,br=(Pt,on,Mn)=>on in Pt?pn(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,zt=(Pt,on)=>{for(var Mn in on||(on={}))Qn.call(on,Mn)&&br(Pt,Mn,on[Mn]);if(Gn)for(var Mn of Gn(on))ur.call(on,Mn)&&br(Pt,Mn,on[Mn]);return Pt};const en=Pt=>o.createElement("svg",zt({viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#text-prompt_svg__a)"},o.createElement("path",{d:"M24.5 49C38.031 49 49 38.031 49 24.5S38.031 0 24.5 0 0 10.969 0 24.5 10.969 49 24.5 49Z",fill:"#CCDCFF"}),o.createElement("path",{d:"M4.64 16.275v16.45H24.5l9.93-8.225-9.93-8.225H4.64Z",fill:"#fff"}),o.createElement("path",{d:"M24.5 16.275h19.86v16.45H24.5v-16.45Z",fill:"#E8E8E8"}),o.createElement("path",{d:"M15.06 13.87v-3.243H6.646v3.242h2.586v21.262H6.646v3.242h8.414v-3.242h-2.585V13.869h2.585Z",fill:"#5C5B68"}),o.createElement("path",{d:"M15.69 26.757h6.247v2.871H15.69v-2.87Z",fill:"#397DEA"}),o.createElement("path",{d:"M25.24 26.757h6.247v2.871H25.24v-2.87ZM34.79 26.757h6.247v2.871H34.79v-2.87Z",fill:"#2C5DBF"})),o.createElement("defs",null,o.createElement("clipPath",{id:"text-prompt_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h49v49H0z"}))));var an="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDkgNDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjQuNSA0OUMzOC4wMzEgNDkgNDkgMzguMDMxIDQ5IDI0LjVTMzguMDMxIDAgMjQuNSAwIDAgMTAuOTY5IDAgMjQuNSAxMC45NjkgNDkgMjQuNSA0OVoiIGZpbGw9IiNDQ0RDRkYiLz48cGF0aCBkPSJNNC42NCAxNi4yNzV2MTYuNDVIMjQuNWw5LjkzLTguMjI1LTkuOTMtOC4yMjVINC42NFoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMjQuNSAxNi4yNzVoMTkuODZ2MTYuNDVIMjQuNXYtMTYuNDVaIiBmaWxsPSIjRThFOEU4Ii8+PHBhdGggZD0iTTE1LjA2IDEzLjg3di0zLjI0M0g2LjY0NnYzLjI0MmgyLjU4NnYyMS4yNjJINi42NDZ2My4yNDJoOC40MTR2LTMuMjQyaC0yLjU4NVYxMy44NjloMi41ODVaIiBmaWxsPSIjNUM1QjY4Ii8+PHBhdGggZD0iTTE1LjY5IDI2Ljc1N2g2LjI0N3YyLjg3MUgxNS42OXYtMi44N1oiIGZpbGw9IiMzOTdERUEiLz48cGF0aCBkPSJNMjUuMjQgMjYuNzU3aDYuMjQ3djIuODcxSDI1LjI0di0yLjg3Wk0zNC43OSAyNi43NTdoNi4yNDd2Mi44NzFIMzQuNzl2LTIuODdaIiBmaWxsPSIjMkM1REJGIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg0OXY0OUgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==",vn=Object.defineProperty,An=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,gt=(Pt,on,Mn)=>on in Pt?vn(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,ln=(Pt,on)=>{for(var Mn in on||(on={}))sn.call(on,Mn)&>(Pt,Mn,on[Mn]);if(An)for(var Mn of An(on))mt.call(on,Mn)&>(Pt,Mn,on[Mn]);return Pt};const Qt=Pt=>o.createElement("svg",ln({className:"undo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"M512 324.267V136.533c0-6.826-3.413-13.653-10.24-13.653-6.827-3.413-13.653-3.413-17.067 0L6.827 430.08C3.413 433.493 0 436.907 0 443.733s3.413 10.24 6.827 13.654L484.693 798.72c6.827 3.413 13.654 3.413 17.067 0 6.827-3.413 10.24-10.24 10.24-13.653V597.333c249.173 10.24 474.453 235.52 477.867 290.134 0 10.24 6.826 17.066 17.066 17.066S1024 897.707 1024 887.467c-3.413-225.28-170.667-552.96-512-563.2z",fill:"#fff"}));var tn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI0LjI2N1YxMzYuNTMzYzAtNi44MjYtMy40MTMtMTMuNjUzLTEwLjI0LTEzLjY1My02LjgyNy0zLjQxMy0xMy42NTMtMy40MTMtMTcuMDY3IDBMNi44MjcgNDMwLjA4QzMuNDEzIDQzMy40OTMgMCA0MzYuOTA3IDAgNDQzLjczM3MzLjQxMyAxMC4yNCA2LjgyNyAxMy42NTRMNDg0LjY5MyA3OTguNzJjNi44MjcgMy40MTMgMTMuNjU0IDMuNDEzIDE3LjA2NyAwIDYuODI3LTMuNDEzIDEwLjI0LTEwLjI0IDEwLjI0LTEzLjY1M1Y1OTcuMzMzYzI0OS4xNzMgMTAuMjQgNDc0LjQ1MyAyMzUuNTIgNDc3Ljg2NyAyOTAuMTM0IDAgMTAuMjQgNi44MjYgMTcuMDY2IDE3LjA2NiAxNy4wNjZTMTAyNCA4OTcuNzA3IDEwMjQgODg3LjQ2N2MtMy40MTMtMjI1LjI4LTE3MC42NjctNTUyLjk2LTUxMi01NjMuMnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",yn=Object.defineProperty,gn=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,ut=(Pt,on,Mn)=>on in Pt?yn(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,ct=(Pt,on)=>{for(var Mn in on||(on={}))_n.call(on,Mn)&&ut(Pt,Mn,on[Mn]);if(gn)for(var Mn of gn(on))nr.call(on,Mn)&&ut(Pt,Mn,on[Mn]);return Pt};const It=Pt=>o.createElement("svg",ct({viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#visual-prompt_svg__a)"},o.createElement("path",{d:"M24.5 49C38.031 49 49 38.031 49 24.5S38.031 0 24.5 0 0 10.969 0 24.5 10.969 49 24.5 49Z",fill:"#CCDCFF"}),o.createElement("path",{d:"M24.5 40.84h-2.393v-7.178H24.5l.808 3.648-.808 3.53Z",fill:"#87ADFF"}),o.createElement("path",{d:"M24.5 33.662h2.393v7.177H24.5v-7.177Z",fill:"#165DFF"}),o.createElement("path",{d:"M24.5 42.514h-5.742V40.6H24.5l.642.957-.642.957Z",fill:"#165DFF"}),o.createElement("path",{d:"M24.5 40.6h5.742v1.914H24.5V40.6Z",fill:"#0E57FF"}),o.createElement("path",{d:"M25.765 23.118 24.5 13.32H6.316v18.183l18.184.563 1.265-8.948Z",fill:"#fff"}),o.createElement("path",{d:"M24.5 13.32v18.746l18.184-.563V13.32H24.5Z",fill:"#EAEDF4"}),o.createElement("path",{d:"m24.5 33.896.808-1.196-.808-1.197H6.316v2.393H24.5Z",fill:"#165DFF"}),o.createElement("path",{d:"M24.5 31.503h18.184v2.393H24.5v-2.393Z",fill:"#0E57FF"}),o.createElement("path",{d:"m36.198 24.423-3.163-1.054 1.055 3.163.527-.527 1.912 1.912 1.054-1.055-1.912-1.912.527-.527Z",fill:"#5C5B68"}),o.createElement("path",{d:"m19.034 19.3 3.474.608 1.992 2.548 1.48 2.73-1.48 3.517-5.466-3.156V19.3Z",fill:"#87ADFF"}),o.createElement("path",{d:"M29.966 25.547v-6.311l-3.399.786-2.067 2.434v6.247l5.466-3.156Z",fill:"#165DFF"}),o.createElement("path",{d:"m19.034 19.3 5.466 3.156 1.241-3.33L24.5 16.08l-5.466 3.22Z",fill:"#C1D4FD"}),o.createElement("path",{d:"M24.5 16.08v6.376l5.466-3.22L24.5 16.08Z",fill:"#A9C3FC"})),o.createElement("defs",null,o.createElement("clipPath",{id:"visual-prompt_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h49v49H0z"}))));var Ct="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDkgNDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjQuNSA0OUMzOC4wMzEgNDkgNDkgMzguMDMxIDQ5IDI0LjVTMzguMDMxIDAgMjQuNSAwIDAgMTAuOTY5IDAgMjQuNSAxMC45NjkgNDkgMjQuNSA0OVoiIGZpbGw9IiNDQ0RDRkYiLz48cGF0aCBkPSJNMjQuNSA0MC44NGgtMi4zOTN2LTcuMTc4SDI0LjVsLjgwOCAzLjY0OC0uODA4IDMuNTNaIiBmaWxsPSIjODdBREZGIi8+PHBhdGggZD0iTTI0LjUgMzMuNjYyaDIuMzkzdjcuMTc3SDI0LjV2LTcuMTc3WiIgZmlsbD0iIzE2NURGRiIvPjxwYXRoIGQ9Ik0yNC41IDQyLjUxNGgtNS43NDJWNDAuNkgyNC41bC42NDIuOTU3LS42NDIuOTU3WiIgZmlsbD0iIzE2NURGRiIvPjxwYXRoIGQ9Ik0yNC41IDQwLjZoNS43NDJ2MS45MTRIMjQuNVY0MC42WiIgZmlsbD0iIzBFNTdGRiIvPjxwYXRoIGQ9Ik0yNS43NjUgMjMuMTE4IDI0LjUgMTMuMzJINi4zMTZ2MTguMTgzbDE4LjE4NC41NjMgMS4yNjUtOC45NDhaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTI0LjUgMTMuMzJ2MTguNzQ2bDE4LjE4NC0uNTYzVjEzLjMySDI0LjVaIiBma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BoxText",Pt.showSegFilling="showSegFilling",Pt.showSegContour="showSegContour",Pt.showMattingColorFill="showMattingColorFill",Pt.showKeyPointsLine="showKeyPointsLine",Pt.showKeyPointsBox="showKeyPointsBox",Pt}({}),kr=function(Pt){return Pt.Waiting="waiting",Pt.Running="running",Pt.Success="success",Pt.Failed="failed",Pt}({}),Mr=.1,ia=20,zr=.5,Wn=.1,wn=function(Pt){return Pt.Rectangle="rect",Pt.Polygon="polygon",Pt.Mask="mask",Pt.Skeleton="coco_keypoints_17",Pt.Classification="classification",Pt}({}),Rn=function(Pt){return Pt.Custom="Custom",Pt.Classification="Classification",Pt.Rectangle="Rectangle",Pt.Polygon="Polygon",Pt.Skeleton="Skeleton",Pt.Mask="Mask",Pt.Matting="Matting",Pt.Point="Point",Pt.Polyline="Polyline",Pt}({}),sr=function(Pt){return Pt.Rect="rect",Pt.Circle="circle",Pt.Polygon="polygon",Pt.None="none",Pt}({}),Er=function(Pt){return Pt.Drag="Drag",Pt.Rectangle="Rect",Pt.Polygon="Polygon",Pt.Skeleton="Skeleton",Pt.Mask="Mask",Pt}({}),Kr=function(Pt){return Pt.PenAdd="PenAdd",Pt.PenErase="PenErase",Pt.BrushAdd="BrushAdd",Pt.BrushErase="BrushErase",Pt.AutoSegmentByBox="AutoSegmentByBox",Pt.AutoSegmentByClick="AutoSegmentByClick",Pt.AutoSegmentByStroke="AutoSegmentByStroke",Pt.AutoSegmentEverything="AutoSegmentEverything",Pt.AutoEdgeStitching="AutoEdgeStitching",Pt.PositiveVisualPrompt="PositiveVisualPrompt",Pt.NegativeVisualPrompt="NegativeVisualPrompt",Pt}({}),ta=function(Pt){return Pt.SmartAnnotation="SmartAnnotation",Pt.Undo="Undo",Pt.Redo="Redo",Pt.RepeatPrevious="RepeatPrevious",Pt.DeleteAll="DeleteAll",Pt}({}),ga=(Ut={},t()(Ut,Er.Drag,Rn.Custom),t()(Ut,Er.Rectangle,Rn.Rectangle),t()(Ut,Er.Polygon,Rn.Polygon),t()(Ut,Er.Skeleton,Rn.Skeleton),t()(Ut,Er.Mask,Rn.Mask),Ut),pr=function(Pt){return Pt.Detection="ai_detection",Pt.IVP="ivp",Pt.SegmentByPolygon="ai_polygon",Pt.SegmentByMask="ai_segmentation_mask",Pt.Pose="ai_pose",Pt.MaskEdgeStitching="ai_mask_edge_stitching",Pt.SegmentEverything="ai_segment_everything",Pt}({}),Ur=(cn={},t()(cn,Er.Drag,[]),t()(cn,Er.Rectangle,[pr.Detection,pr.IVP]),t()(cn,Er.Polygon,[pr.SegmentByPolygon]),t()(cn,Er.Mask,[pr.SegmentEverything,pr.SegmentByMask,pr.IVP]),t()(cn,Er.Skeleton,[pr.Pose]),cn),Ma=(rn={},t()(rn,pr.Detection,{name:"DDSAnnotator.smart.gdino.name",icon:en,description:"DDSAnnotator.smart.gdino.desc",hightlight:!1}),t()(rn,pr.IVP,{name:"DDSAnnotator.smart.ivp.name",icon:It,description:"DDSAnnotator.smart.ivp.desc",hightlight:!0}),t()(rn,pr.SegmentEverything,{name:"DDSAnnotator.smart.sam.name",icon:It,description:"DDSAnnotator.smart.sam.desc",hightlight:!1}),t()(rn,pr.SegmentByMask,{name:"DDSAnnotator.smart.isg.name",icon:It,description:"DDSAnnotator.smart.isg.desc",hightlight:!1}),rn),ma=(Dn={},t()(Dn,wn.Rectangle,Er.Rectangle),t()(Dn,wn.Polygon,Er.Polygon),t()(Dn,wn.Mask,Er.Mask),t()(Dn,wn.Skeleton,Er.Skeleton),Dn),Yn=(Bn={},t()(Bn,Rn.Rectangle,Oe),t()(Bn,Rn.Skeleton,un),t()(Bn,Rn.Polygon,P),t()(Bn,Rn.Mask,Te),t()(Bn,Rn.Matting,Te),t()(Bn,Rn.Point,g),t()(Bn,Rn.Polyline,g),t()(Bn,Rn.Custom,g),t()(Bn,Rn.Classification,g),Bn),Zn=(Cr={},t()(Cr,Rn.Rectangle,We),t()(Cr,Rn.Skeleton,Se),t()(Cr,Rn.Polygon,$e),t()(Cr,Rn.Mask,_),Cr),Sr=(rr={},t()(rr,ta.SmartAnnotation,te),t()(rr,ta.Undo,Qt),t()(rr,ta.Redo,it),t()(rr,ta.RepeatPrevious,ze),t()(rr,ta.DeleteAll,N),rr),Xr=function(Pt){return Pt[Pt.noLabeled=0]="noLabeled",Pt[Pt.labeledNotVisible=1]="labeledNotVisible",Pt[Pt.labeledVisible=2]="labeledVisible",Pt}({}),wr={categoryName:"person",boundingBox:{xmax:.44072164948453607,xmin:.2654639175257732,ymax:.5698739977090492,ymin:.09335624284077892},points:[175.25773195876286,61.21134020618557,0,1,2,1,179.9828178694158,41.45189003436426,0,1,2,1,170.96219931271477,41.881443298969074,0,1,2,1,189.86254295532646,51.33161512027492,0,1,2,1,163.23024054982818,50.47250859106529,0,1,2,1,192.86941580756016,68.08419243986253,0,1,2,1,158.295150820924,67.63982699371964,0,1,2,1,202.74914089347078,99.87113402061856,0,1,2,1,150.34364261168383,99.87113402061856,0,1,2,1,208.76288659793815,127.36254295532646,0,1,2,1,142.61168384879724,129.0807560137457,0,1,2,1,182.13058419243984,126.50343642611685,0,1,2,1,162.2279495990836,125.4739898092191,0,1,2,1,184.70790378006873,175.4725085910653,0,1,2,1,158.78675066819395,176.9759450171821,0,1,2,1,190.29209621993127,208.11855670103094,0,1,2,1,152.92096219931273,206.82989690721652,0,1,2,1],lines:[15,13,13,11,16,14,14,12,11,12,5,11,6,12,5,6,5,7,6,8,7,9,8,10,1,2,0,1,0,2,1,3,2,4,3,5,4,6],pointColors:["128","0","0","255","178","102","230","230","0","255","51","255","153","204","255","255","128","0","0","255","255","128","0","255","51","153","255","169","165","139","255","0","0","102","255","102","184","97","134","128","128","0","255","190","255","0","128","0","0","0","255"],pointNames:["nose","left_eye","right_eye","left_ear","right_ear","left_shoulder","right_shoulder","left_elbow","right_elbow","left_wrist","right_wrist","left_hip","right_hip","left_knee","right_knee","left_ankle","right_ankle"]}},34095:function(b,y,e){"use strict";e.d(y,{$k:function(){return S},Bt:function(){return m},CJ:function(){return g},XQ:function(){return c},cj:function(){return h},lz:function(){return M},mh:function(){return n},rl:function(){return d},s_:function(){return l}});var a=e(2657),t=e.n(a),o=e(50910),s,n={DEFAULT:0,DEFAULT_SHAPE:.35,CREATING:0,JUST_CREATED:.5,FOCUS:.6,CTRL_TO_SELECT:.1,OTHER:0},d={DEFAULT:1,CREATING:1,CREATING_LINE:.8,FOCUS:1,ACTIVE:1,OTHER:.3},l={CREATING:.7,FOCUS:.7,JUST_CREATED:.5,DEFAULT:.35},c={CREATING:"#fff"},m={CREATING:"transparent",CREATING_POSITIVE:"#2876d4",CREATING_NEGATIVE:"#e91d00"},g={POSITIVE:"rgba(1, 128, 0, 1)",NEGATIVE:"rgba(255, 3, 0, 1)"},M={POSITIVE:"rgba(1, 128, 0, 0.6)",NEGATIVE:"rgba(255, 3, 0, 0.6)"},h=(s={},t()(s,o.SP.Solid,{lineDash:[],thickness:2}),t()(s,o.SP.DoubleSolid,{lineDash:[],thickness:4}),t()(s,o.SP.LCurbside,{lineDash:[],thickness:2}),t()(s,o.SP.RCurbside,{lineDash:[],thickness:2}),t()(s,o.SP.Unknown,{lineDash:[],thickness:2}),t()(s,o.SP.Dashed,{lineDash:[4,4],thickness:2}),t()(s,o.SP.DoubleDashed,{lineDash:[4,4],thickness:4}),t()(s,o.SP.LDashedRSolid,{lineDash:[4,8,4,8,16,4],thickness:4}),t()(s,o.SP.LSolidRDashed,{lineDash:[4,8,16,4],thickness:4}),s),S={Yellow:"#d97945",White:"#de1760",Other:"#72af44"}},33010:function(b,y,e){"use strict";e.d(y,{kl:function(){return Cs},j5:function(){return Su},D5:function(){return nl},je:function(){return W.je}});var a=e(63900),t=e.n(a),o=e(88205),s=e.n(o),n=e(62109),d=e(73267),l=e(87608),c=e.n(l),m=e(39378),g=e(58757),M=e(65246),h=e(52495),S=e(84045),w=e(18624),C=e(12562),F=e(53357),Z=function(he){return he==null||he===""||Array.isArray(he)&&he.length===0},N=e(47513),L=e(74820),$=e(10852),D=e(38904),T=e(21149),j=Object.defineProperty,K=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(Ue,he,Pe)=>he in Ue?j(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,q=(Ue,he)=>{for(var Pe in he||(he={}))k.call(he,Pe)&&V(Ue,Pe,he[Pe]);if(K)for(var Pe of K(he))te.call(he,Pe)&&V(Ue,Pe,he[Pe]);return Ue};const le=Ue=>g.createElement("svg",q({viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M16.625 4.375v12.25H4.375V4.375h12.25ZM3.5 2.625c-.438 0-.875.438-.875.875v14c0 .525.35.875.875.875h14c.525 0 .875-.35.875-.875v-14c0-.525-.35-.875-.875-.875h-14Z"}),g.createElement("path",{d:"M14.875 7.788c0-.525-.35-.875-.875-.875H9.625v-.438A.877.877 0 0 0 8.75 5.6c-.525 0-.875.35-.875.875v.438H7c-.525 0-.875.35-.875.875s.35.875.875.875h.875V9.1c0 .525.35.875.875.875s.875-.35.875-.875v-.437H14c.525 0 .875-.35.875-.875ZM6.125 13.3c0 .525.35.875.875.875h4.375v.438c0 .525.438.875.875.875.525 0 .875-.35.875-.875v-.438H14c.525 0 .875-.35.875-.875s-.35-.875-.875-.875h-.875v-.437c0-.525-.35-.875-.875-.875s-.875.35-.875.875v.437H7a.877.877 0 0 0-.875.875Z"}));var X="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjEgMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2LjYyNSA0LjM3NXYxMi4yNUg0LjM3NVY0LjM3NWgxMi4yNVpNMy41IDIuNjI1Yy0uNDM4IDAtLjg3NS40MzgtLjg3NS44NzV2MTRjMCAuNTI1LjM1Ljg3NS44NzUuODc1aDE0Yy41MjUgMCAuODc1LS4zNS44NzUtLjg3NXYtMTRjMC0uNTI1LS4zNS0uODc1LS44NzUtLjg3NWgtMTRaIi8+PHBhdGggZD0iTTE0Ljg3NSA3Ljc4OGMwLS41MjUtLjM1LS44NzUtLjg3NS0uODc1SDkuNjI1di0uNDM4QS44NzcuODc3IDAgMCAwIDguNzUgNS42Yy0uNTI1IDAtLjg3NS4zNS0uODc1Ljg3NXYuNDM4SDdjLS41MjUgMC0uODc1LjM1LS44NzUuODc1cy4zNS44NzUuODc1Ljg3NWguODc1VjkuMWMwIC41MjUuMzUuODc1Ljg3NS44NzVzLjg3NS0uMzUuODc1LS44NzV2LS40MzdIMTRjLjUyNSAwIC44NzUtLjM1Ljg3NS0uODc1Wk02LjEyNSAxMy4zYzAgLjUyNS4zNS44NzUuODc1Ljg3NWg0LjM3NXYuNDM4YzAgLjUyNS40MzguODc1Ljg3NS44NzUuNTI1IDAgLjg3NS0uMzUuODc1LS44NzV2LS40MzhIMTRjLjUyNSAwIC44NzUtLjM1Ljg3NS0uODc1cy0uMzUtLjg3NS0uODc1LS44NzVoLS44NzV2LS40MzdjMC0uNTI1LS4zNS0uODc1LS44NzUtLjg3NXMtLjg3NS4zNS0uODc1Ljg3NXYuNDM3SDdhLjg3Ny44NzcgMCAwIDAtLjg3NS44NzVaIi8+PC9zdmc+",W=e(50910),x=e(35667),O=function(he,Pe){return he.isDarkTheme===Pe.isDarkTheme&&he.disabled===Pe.disabled&&(0,m.isEqual)(he.data,Pe.data)&&(0,m.isEqual)(he.values,Pe.values)&&he.onChangeValue===Pe.onChangeValue&&he.onFocusInput===Pe.onFocusInput&&he.onClickAttributes===Pe.onClickAttributes},_=(0,g.memo)(function(Ue){var he=(0,F.bU)(),Pe=he.localeText,Un=Ue.isDarkTheme,vt=Ue.disabled,zn=Ue.data,En=Ue.values,On=Ue.onChangeValue,Fn=Ue.onFocusInput,mr=Ue.onClickAttributes;return(0,x.jsx)(N.Z,{layout:"vertical",className:c()("dds-annotator-attributes-form",{"dds-annotator-attributes-form-dark":Un}),children:zn.map(function(fr,or){var jn,ua;return(0,x.jsxs)(N.Z.Item,{required:fr.required,label:fr.hasAttributes?(0,x.jsxs)("div",{className:"dds-annotator-attributes-form-item-title",children:[fr.field,(0,x.jsx)(L.Z,{title:Pe("DDSAnnotator.attribute.edit"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"dds-annotator-attributes-form-item-title-btn",icon:(0,x.jsx)(le,{className:fr.requireAttribute?"attribute-warn":""}),shape:"circle",onClick:function(ar){ar.stopPropagation(),mr==null||mr(or)}})})]}):fr.field,children:[fr.type===W.In.Radio&&(0,x.jsx)($.ZP.Group,{value:En[or],options:(jn=fr.options)===null||jn===void 0?void 0:jn.map(function(Or,ar){var hr=Or.label;return{label:hr,value:ar}}),onChange:function(ar){return On(or,ar.target.value)},disabled:vt}),fr.type===W.In.Checkbox&&(0,x.jsx)(D.Z.Group,{value:En[or],options:(ua=fr.options)===null||ua===void 0?void 0:ua.map(function(Or,ar){var hr=Or.label;return{label:hr,value:ar}}),onChange:function(ar){return On(or,ar)},disabled:vt}),fr.type===W.In.Text&&(0,x.jsx)(T.Z,{placeholder:Pe("DDSAnnotator.attribute.input"),value:En[or],onChange:function(ar){return On(or,ar.target.value)},onFocus:function(ar){return Fn==null?void 0:Fn(or,ar)},onKeyUp:function(ar){return ar.stopPropagation()},onKeyDown:function(ar){return ar.stopPropagation()},disabled:vt})]},fr.field)})})},O),U=_,A=function(he){var Pe=he.children,Un=he.eventHandler,vt=function(En){Un?Un(En):En.stopPropagation()};return(0,x.jsx)("div",{onMouseDown:vt,onMouseUp:vt,style:{userSelect:"none"},children:Pe})},G=(0,g.memo)(function(Ue){var he=Ue.data,Pe=Ue.supportEdit,Un=Ue.onConfirmAttibuteEdit,vt=Ue.onCancelAttibuteEdit,zn=(0,F.bU)(),En=zn.localeText,On=(0,M.x)([]),Fn=s()(On,2),mr=Fn[0],fr=Fn[1];(0,g.useEffect)(function(){fr((he==null?void 0:he.values)||[])},[he.values]);var or=function(Or,ar){fr(function(hr){hr[Or]=ar})},jn=function(){if(he.attributes.find(function(ar,hr){return ar.required&&Z(mr[hr])})){S.ZP.error(En("DDSAnnotator.attribute.required"));return}var Or=[];he.attributes.forEach(function(ar,hr){Or.push(mr[hr]===void 0?null:mr[hr])}),Un(Or)};return(0,x.jsx)(A,{children:(0,x.jsx)(w.Z,{id:"annotation-editor",className:"dds-annotator-attribute-editor",title:(0,x.jsxs)("div",{className:"dds-annotator-attribute-editor-title",children:[(0,x.jsxs)("div",{children:[En("DDSAnnotator.attribute.modal")," #",he.index+1]}),(0,x.jsx)(C.ZP,{ghost:!0,className:"dds-annotator-attribute-editor-title-btn",icon:(0,x.jsx)(h.Z,{}),shape:"circle",size:"small",onClick:vt})]}),children:(0,x.jsxs)("div",{className:"dds-annotator-attribute-editor-content",children:[(0,x.jsx)(U,{disabled:!Pe,data:he.attributes,values:mr,onChangeValue:or}),Pe&&(0,x.jsx)("div",{className:"dds-annotator-attribute-editor-actions",children:(0,x.jsx)(C.ZP,{type:"primary",onClick:function(Or){Or.preventDefault(),jn()},children:En("DDSAnnotator.confirm")})})]})})})}),fe=G,pe=e(83720),ge=e(56019),be=e(16951),Te=function(he,Pe){return he.className===Pe.className&&he.supportEdit===Pe.supportEdit&&(0,m.isEqual)(he.classificationOptions,Pe.classificationOptions)&&(0,m.isEqual)(he.values,Pe.values)&&he.setDrawDataWithHistory===Pe.setDrawDataWithHistory},Ge=(0,g.memo)(function(Ue){var he=(0,F.bU)(),Pe=he.localeText,Un=Ue.className,vt=Ue.classificationOptions,zn=Ue.values,En=Ue.setDrawDataWithHistory,On=Ue.supportEdit,Fn=(0,g.useState)(!1),mr=s()(Fn,2),fr=mr[0],or=mr[1],jn=function(Jn,fa,Qr){var $r,lr=vt[Jn],Ir=zn==null||($r=zn.find(function(Vr){var Ar=Vr.labelId;return Ar===(lr==null?void 0:lr.id)}))===null||$r===void 0?void 0:$r.attributes;return lr!=null&&lr.attributes&&lr.attributes.length>0&&(fa==null?void 0:fa.labelId)!==lr.id&&(!Qr||!(Ir!=null&&Ir.length))?{index:-1,labelId:lr.id,attributes:lr==null?void 0:lr.attributes,values:Ir}:null},ua=function(Jn){setTimeout(function(){En(function(fa){var Qr=jn(Jn,fa.editingAttribute);Qr&&(fa.editingAttribute=Qr)})})},Or=function(Jn,fa){En(function(Qr){var $r,lr=vt[Jn],Ir=Qr.classifications.findIndex(function(Vr){return Vr.labelId===lr.id});Ir>-1?Qr.classifications[Ir].labelValue=fa:Qr.classifications.push({labelId:vt[Jn].id,labelValue:fa}),(($r=Qr.editingAttribute)===null||$r===void 0?void 0:$r.labelId)!==(lr==null?void 0:lr.id)&&(Qr.editingAttribute=jn(Jn,Qr.editingAttribute,!0)||void 0)})},ar=(0,g.useMemo)(function(){return vt.map(function(aa){var Jn,fa;return{field:aa.labelName,type:aa.valueType,required:!0,options:aa.valueOptions,hasAttributes:!!((Jn=aa.attributes)!==null&&Jn!==void 0&&Jn.length),requireAttribute:!!((fa=aa.attributes)!==null&&fa!==void 0&&fa.find(function(Qr,$r){var lr,Ir;return(Qr==null?void 0:Qr.required)&&[void 0,null,""].includes((lr=zn.find(function(Vr){var Ar=Vr.labelId;return Ar===aa.id}))===null||lr===void 0||(Ir=lr.attributes)===null||Ir===void 0?void 0:Ir[$r])}))}})},[vt,zn]),hr=(0,g.useMemo)(function(){var aa=[];return vt.forEach(function(Jn){var fa,Qr=(fa=zn.find(function($r){var lr=$r.labelId;return lr===Jn.id}))===null||fa===void 0?void 0:fa.labelValue;aa.push(Qr===void 0?null:Qr)}),aa},[vt,zn]),Pr=(0,x.jsx)(U,{isDarkTheme:!0,disabled:!On,data:ar,values:hr,onChangeValue:Or,onFocusInput:ua,onClickAttributes:ua});return(0,x.jsx)("div",{className:c()("dds-annotator-classification",Un),onMouseDown:function(Jn){Jn.stopPropagation()},children:(0,x.jsx)(be.Z,{activeKey:"classification",items:[{key:"classification",label:Pe("DDSAnnotator.annotsList.classification"),children:fr?null:Pr}],tabBarExtraContent:(0,x.jsx)(L.Z,{title:Pe(fr?"DDSAnnotator.annotsList.showAll":"DDSAnnotator.annotsList.hideAll"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"tab-header-actions",icon:fr?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:function(){return or(!fr)}})})})})},Te),Je=Ge,Qe=e(22283),pt=e(79233),Et=Object.defineProperty,ft=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Xe=(Ue,he,Pe)=>he in Ue?Et(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,nt=(Ue,he)=>{for(var Pe in he||(he={}))Wt.call(he,Pe)&&Xe(Ue,Pe,he[Pe]);if(ft)for(var Pe of ft(he))$e.call(he,Pe)&&Xe(Ue,Pe,he[Pe]);return Ue};const Ke=Ue=>React.createElement("svg",nt({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:600,height:600,fill:"none"},Ue),React.createElement("path",{fill:"#FFF",d:"M0 0h600v600H0z"}),React.createElement("mask",{id:"img-broken_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#img-broken_svg__a"})),React.createElement("g",{mask:"url(#img-broken_svg__b)"},React.createElement("path",{style:{fill:"#f3f3fa"},opacity:.6,d:"M520.82 276.411c.7 7.103 1.058 14.305 1.058 21.589 0 122.04-100.54 221-224.51 221-99.159 0-183.328-63.313-213.047-151.107h-8.426c-3.4 0-6.17-2.76-6.17-6.16A6.168 6.168 0 0 1 73.608 356H84c7.18 0 13-5.82 13-13v-1c0-7.18-5.82-13-13-13h-8.95l-.023-.161H52.855c-5.68 0-10.28-4.6-10.28-10.28s4.6-10.28 10.28-10.28h20.241A221.042 221.042 0 0 1 72.858 298c0-32.629 7.187-63.608 20.086-91.486H57c-15.46 0-28-12.541-28-28.001v-1.56c0-14.913 11.67-27.11 26.373-27.953H182c5.52 0 10-4.48 10-10s-4.48-10-10-10h-29.294l.732-.605h-14.59c-10.49 0-19-8.51-19-19v-1.06c0-10.49 8.51-19 19-19h84.392C246.448 81.345 271.393 77 297.368 77c51.023 0 98.077 16.763 135.787 45H418c-7.18 0-13 5.82-13 13v1c0 7.18 5.82 13 13 13h45.166a222.478 222.478 0 0 1 23.253 29.763h21.461c7.73 0 14 6.27 14 14v.78c0 6.387-4.281 11.777-10.128 13.457H492c-8.84 0-16 7.16-16 16v5c0 8.84 7.16 16 16 16h67.901c6.952 1.741 12.097 8.028 12.097 15.521v.89c0 8.84-7.16 16-16 16z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__c)",d:"M147.977 187.468c-14.64 0-26.51 11.87-26.51 26.5h-5.34c-6.73 0-12.19 5.93-12.19 13.25s5.46 13.25 12.19 13.25h65.65c6.74 0 12.19-5.93 12.19-13.25s-5.45-13.25-12.19-13.25h-7.31c0-14.63-11.86-26.5-26.49-26.5z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__d)",d:"M313.088 148.128c0 5.25 3.91 9.5 8.74 9.5h47.07c4.83 0 8.74-4.25 8.74-9.5s-3.91-9.5-8.74-9.5h-5.24c0-10.5-8.51-19-19-19s-19 8.5-19 19h-3.83c-4.83 0-8.74 4.25-8.74 9.5z"}),React.createElement("path",{style:{fill:"#e7eaf0"},d:"M508 453.5c0 11.036-19.12 20.438-45.869 23.988-6.38 1.885-13.556 3.663-21.438 5.315A16.82 16.82 0 0 1 441 486c0 24.3-52.84 44-118 44-58.623 0-107.274-15.946-116.445-36.841C128.328 487.215 73 472.59 73 455.5c0-22.36 94.71-40.5 211.5-40.5 61.363 0 116.631 5.008 155.269 13.004C477.563 428.253 508 439.575 508 453.5z"}),React.createElement("g",{fillRule:"evenodd"},React.createElement("path",{fill:"url(#img-broken_svg__e)",d:"M356 62c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V38.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09C353.97.39 352.63 0 351.13 0c-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L347 62h9z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__f)",d:"M385 60.7c.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L387 82h9c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V58.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09c-1.19-.78-2.53-1.17-4.03-1.17-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__g)",d:"M35.34 1.66C33.67.55 31.78 0 29.68 0c-2.4 0-4.36.73-5.89 2.19-1.52 1.46-2.83 3.21-3.95 5.26h-.09L5.97 32.96c-.94.81-1.71 1.78-2.32 2.89a8.845 8.845 0 0 0-1.1 3.59l-2.2 5.09c-.11.29-.2.58-.26.87 0 0-.09.62-.09.97 0 2.04.64 3.81 1.93 5.3a9 9 0 0 0 4.83 2.93l9.92.53c.47.82 1.07 1.46 1.8 1.93s1.6.7 2.59.7c1.23 0 2.34-.44 3.34-1.32v13.41c0 3.86-.03 6.95-.09 9.25-.06 2.31-.12 4.14-.18 5.49L23.88 88h12.64c-.17-1.93-.32-3.94-.44-6.05-.11-1.75-.21-3.73-.3-5.92s-.13-4.36-.13-6.53V54.87l13.69-.18h1.67c.59 0 1.11-.02 1.58-.09.59 0 1.14-.02 1.67-.08a7.599 7.599 0 0 0 3.42-2.77c.88-1.25 1.32-2.7 1.32-4.34l-.18-1.13-.35-1.4c-.17-.53-.32-1.03-.44-1.5l-1.49-2.97c.29-1.06.44-2.05.44-2.98 0-2.28-.64-4.3-1.93-6.05s-2.93-2.98-4.92-3.69L39.07 6.05c-.82-1.82-2.07-3.28-3.73-4.39z",transform:"translate(92 370)"})),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__h)",opacity:.5,d:"M195.17 339.008 336 259.118l-180.79-56.11L3 241.048l192.17 97.96z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__i)",d:"m120.19 238.468 16.76-67-23.23-50.7L147 87.008l-137.81.8A9.242 9.242 0 0 0 0 97.058v132.16c0 5.12 4.15 9.25 9.26 9.25l103.61 4.54 7.32-4.54z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__j)",d:"M0 233.728c0 5.13 4.13 9.28 9.22 9.28h103.19l17.59-70.83-24.95-52.65L130 93.008l-120.85.8c-5.05.04-9.15 4.18-9.15 9.28v130.64z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__k)",d:"M129 177.408s-39.15 25.41-39.87 25.47c-15.59-13.61-41.17-39.55-41.17-39.55-2.95-3.01-8.11-3.11-11.19-.2L0 214.158v18.8c0 5.05 3.11 10.05 10.1 10.05h102.84l10.05-40.81 6.01-24.79z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__l)",d:"m161.114 121.588 10.21 50.9-39.15 72.66 77.97 21.2c5.34 2.12 11.32-1.05 12.51-6.63l36.14-134.09c1.03-4.82-1.95-9.58-6.76-10.81l-53.81-13.81-37.11 20.58z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__m)",d:"m153.53 125.233 10.21 50.89-37.74 67.36 77.98 21.21c5.33 2.12 11.31-1.04 12.5-6.63l34.73-128.8c1.03-4.82-1.96-9.58-6.76-10.81l-53.81-13.81-37.11 20.59z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__n)",d:"M181.344 174.368c-2-3.27-6.23-4.33-9.52-2.39l-8.09 4.16-37.65 67.37s67.22 18.7 75.12 20.47c7.91 1.76 13.7.54 14.89-5.08l3.37-11.51-38.12-73.02z",transform:"translate(180 194.992)"}),React.createElement("path",{style:{fill:"#fff"},d:"M223.104 151.697c0-9.32-7.57-16.88-16.9-16.88-9.33 0-16.89 7.56-16.89 16.88s7.56 16.88 16.89 16.88c9.33 0 16.9-7.56 16.9-16.88z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__o)",d:"m50.921 37.823 12.386-6.041 11.209 22.982-7.452-32.637-12.592 6.142L42.197 6.864l8.724 30.959z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__p)",d:"m217.598 48.895 17.888 17.184-30.945 23.817s47.929-22.37 46.996-23.709c-.925-1.335-18.57-16.992-18.57-16.992l24.134-25.537-39.503 25.236z",transform:"translate(180 194.992)"})),React.createElement("defs",null,React.createElement("linearGradient",{id:"img-broken_svg__i",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__p",x1:198.923,y1:151.68,x2:253.588,y2:43.245,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__d",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__e",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__f",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__g",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__h",x1:"50%",y1:"30.387%",x2:"-31.215%",y2:"-60.228%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E8EBF1",stopOpacity:.24}),React.createElement("stop",{offset:1,stopColor:"#A2ABB9"})),React.createElement("linearGradient",{id:"img-broken_svg__c",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__j",x1:"137.408%",y1:"115.518%",x2:"64.225%",y2:"-9.666%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__k",x1:"93.55%",y1:"132.782%",x2:"29.55%",y2:"19.901%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__l",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__m",x1:"113.805%",y1:"123.201%",x2:"30.832%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__n",x1:"110.007%",y1:"128.49%",x2:"50%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__o",x1:92.534,y1:94.384,x2:55.523,y2:19.166,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("path",{id:"img-broken_svg__a",d:"M0 0h600v600H0z"})));var ye="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTAgMGg2MDB2NjAwSDB6Ii8+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PGcgbWFzaz0idXJsKCNiKSI+PHBhdGggc3R5bGU9ImZpbGw6I2YzZjNmYSIgb3BhY2l0eT0iLjYiIGQ9Ik01MjAuODIgMjc2LjQxMWMuNyA3LjEwMyAxLjA1OCAxNC4zMDUgMS4wNTggMjEuNTg5IDAgMTIyLjA0LTEwMC41NCAyMjEtMjI0LjUxIDIyMS05OS4xNTkgMC0xODMuMzI4LTYzLjMxMy0yMTMuMDQ3LTE1MS4xMDdoLTguNDI2Yy0zLjQgMC02LjE3LTIuNzYtNi4xNy02LjE2QTYuMTY4IDYuMTY4IDAgMCAxIDczLjYwOCAzNTZIODRjNy4xOCAwIDEzLTUuODIgMTMtMTN2LTFjMC03LjE4LTUuODItMTMtMTMtMTNoLTguOTVsLS4wMjMtLjE2MUg1Mi44NTVjLTUuNjggMC0xMC4yOC00LjYtMTAuMjgtMTAuMjhzNC42LTEwLjI4IDEwLjI4LTEwLjI4aDIwLjI0MUEyMjEuM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3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNBMkFCQjkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFN0VBRjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibyIgeDE9IjkyLjUzNCIgeTE9Ijk0LjM4NCIgeDI9IjU1LjUyMyIgeTI9IjE5LjE2NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggaWQ9ImEiIGQ9Ik0wIDBoNjAwdjYwMEgweiIvPjwvZGVmcz48L3N2Zz4=",ne=function(he){var Pe=he.url,Un=Pe===void 0?"":Pe,vt=he.imgRef,zn=he.canvasRef,En=he.activeCanvasRef,On=he.clientSize,Fn=he.imagePos,mr=he.onLoad,fr=(0,g.useState)(!1),or=s()(fr,2),jn=or[0],ua=or[1],Or=(0,g.useState)(!0),ar=s()(Or,2),hr=ar[0],Pr=ar[1],aa=function(lr){Pr(!1),mr(lr)},Jn=function(lr){lr.stopPropagation(),vt!=null&&vt.current&&(vt.current.src=Un,Pr(!0),ua(!1))},fa=function(lr){var Ir=lr.target;Ir.src=ye,Pr(!1),ua(!0)},Qr=Un.indexOf("aliyuncs.com")>-1?"anonymous":void 0;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("img",{ref:vt,src:Un,alt:"pic",crossOrigin:Qr,style:{width:On.width,height:On.height},onLoad:aa,onError:fa}),(0,x.jsx)("canvas",{ref:zn,draggable:!1,onContextMenu:function(lr){return lr.preventDefault()},className:"dds-annotator-imageview-canvas"}),(0,x.jsx)("canvas",{ref:En,draggable:!1,onContextMenu:function(lr){return lr.preventDefault()},className:"dds-annotator-imageview-canvas"}),jn&&(0,x.jsxs)("div",{className:"dds-annotator-imageview-reload-cover",onClick:Jn,onDoubleClick:Jn,style:{left:Fn.current.x,top:Fn.current.y,width:On.width,height:On.height},children:[(0,x.jsx)("img",{src:ye,alt:"error-pic"}),(0,x.jsx)("div",{className:"content-box",children:(0,x.jsx)(C.ZP,{ghost:!0,type:"primary",className:"reload-trigger",shape:"circle",size:"small",icon:(0,x.jsx)(Qe.Z,{})})})]}),hr&&(0,x.jsx)("div",{className:"dds-annotator-imageview-reload-cover",style:{backgroundColor:"#f6f6f6",left:Fn.current.x,top:Fn.current.y,width:On.width,height:On.height},children:(0,x.jsx)(pt.Z,{className:"reload-trigger"})})]})},H=e(39875),R=e(32814),P=e(45060),ae=e(23707),Q=e(17410),ie=(0,g.memo)(function(Ue){var he=Ue.AIAnnotation,Pe=Ue.modelOptions,Un=Ue.selectedModel,vt=Ue.onSelectModel,zn=Ue.onCloseModal,En=(0,F.bU)(),On=En.localeText,Fn=Pe.length*220+(Pe.length+1)*20,mr=(0,g.useMemo)(function(){return!!(he&&Pe&&Pe.length>1&&!Un)},[he,Pe,Un]);return(0,x.jsx)(A,{children:(0,x.jsx)(n.Z,{open:mr,title:On("DDSAnnotator.smart.modelSelectModal.title"),width:Fn,onCancel:zn,footer:null,centered:!0,destroyOnClose:!0,children:(0,x.jsx)("div",{className:"dds-annotator-model-selector-modal",children:Pe.map(function(fr,or){var jn=Q.TR[fr];return jn?(0,x.jsxs)("div",{className:c()("dds-annotator-model-selector-modal-option",{"dds-annotator-model-selector-modal-option-hightlight":jn.hightlight}),onClick:function(){return vt(fr)},children:[(0,x.jsx)(H.Z,{className:"dds-annotator-model-selector-modal-option-icon",component:jn.icon}),(0,x.jsx)("div",{className:"dds-annotator-model-selector-modal-option-name",children:On(jn.name)}),(0,x.jsx)("div",{className:"dds-annotator-model-selector-modal-option-description",children:On(jn.description)}),jn.hightlight&&(0,x.jsx)(R.Z,{color:"geekblue",className:"dds-annotator-model-selector-modal-option-tag",children:"New"})]},or):(0,x.jsx)(x.Fragment,{})})})})})}),me=ie,je=e(23605),Ee=e(2556),Me=e(82968),We=e(37617),re=e(28506),se=e(18695),J=Object.defineProperty,de=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,Le=(Ue,he,Pe)=>he in Ue?J(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Oe=(Ue,he)=>{for(var Pe in he||(he={}))xe.call(he,Pe)&&Le(Ue,Pe,he[Pe]);if(de)for(var Pe of de(he))ce.call(he,Pe)&&Le(Ue,Pe,he[Pe]);return Ue};const we=Ue=>g.createElement("svg",Oe({width:10,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.464 5.65A1 1 0 0 0 2.88 7.064l2.12-2.12 2.122 2.12A1 1 0 0 0 8.535 5.65L5.713 2.828a1 1 0 0 0-1.42-.006L1.464 5.65Z",fill:"#fff"}));var Ne="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjQ2NCA1LjY1QTEgMSAwIDAgMCAyLjg4IDcuMDY0bDIuMTItMi4xMiAyLjEyMiAyLjEyQTEgMSAwIDAgMCA4LjUzNSA1LjY1TDUuNzEzIDIuODI4YTEgMSAwIDAgMC0xLjQyLS4wMDZMMS40NjQgNS42NVoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",st=Object.defineProperty,et=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Be=(Ue,he,Pe)=>he in Ue?st(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,it=(Ue,he)=>{for(var Pe in he||(he={}))Ye.call(he,Pe)&&Be(Ue,Pe,he[Pe]);if(et)for(var Pe of et(he))ke.call(he,Pe)&&Be(Ue,Pe,he[Pe]);return Ue};const Ve=Ue=>g.createElement("svg",it({viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#layer_svg__a)"},g.createElement("path",{d:"m.57 6.625 5.805 3.48a2.182 2.182 0 0 0 2.25 0l5.805-3.48a1.163 1.163 0 0 0 0-1.995L8.625 1.144a2.18 2.18 0 0 0-2.25 0L.57 4.625a1.163 1.163 0 0 0 0 1.995v.005ZM7.34 2.75a.313.313 0 0 1 .32 0l4.789 2.875L7.66 8.5a.313.313 0 0 1-.322 0L2.551 5.625 7.34 2.75Z"}),g.createElement("path",{d:"M8.304 11.77a1.562 1.562 0 0 1-1.608 0L1.42 8.603a.937.937 0 0 0-.965 1.607l5.276 3.164a3.43 3.43 0 0 0 3.538 0l5.276-3.166a.937.937 0 1 0-.965-1.605l-5.276 3.165Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"layer_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h15v15H0z"}))));var xt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTUgMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJtLjU3IDYuNjI1IDUuODA1IDMuNDhhMi4xODIgMi4xODIgMCAwIDAgMi4yNSAwbDUuODA1LTMuNDhhMS4xNjMgMS4xNjMgMCAwIDAgMC0xLjk5NUw4LjYyNSAxLjE0NGEyLjE4IDIuMTggMCAwIDAtMi4yNSAwTC41NyA0LjYyNWExLjE2MyAxLjE2MyAwIDAgMCAwIDEuOTk1di4wMDVaTTcuMzQgMi43NWEuMzEzLjMxMyAwIDAgMSAuMzIgMGw0Ljc4OSAyLjg3NUw3LjY2IDguNWEuMzEzLjMxMyAwIDAgMS0uMzIyIDBMMi41NTEgNS42MjUgNy4zNCAyLjc1WiIvPjxwYXRoIGQ9Ik04LjMwNCAxMS43N2ExLjU2MiAxLjU2MiAwIDAgMS0xLjYwOCAwTDEuNDIgOC42MDNhLjkzNy45MzcgMCAwIDAtLjk2NSAxLjYwN2w1LjI3NiAzLjE2NGEzLjQzIDMuNDMgMCAwIDAgMy41MzggMGw1LjI3Ni0zLjE2NmEuOTM3LjkzNyAwIDEgMC0uOTY1LTEuNjA1bC01LjI3NiAzLjE2NVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE1djE1SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Ht=Object.defineProperty,Ot=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,yt=(Ue,he,Pe)=>he in Ue?Ht(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ze=(Ue,he)=>{for(var Pe in he||(he={}))wt.call(he,Pe)&&yt(Ue,Pe,he[Pe]);if(Ot)for(var Pe of Ot(he))_t.call(he,Pe)&&yt(Ue,Pe,he[Pe]);return Ue};const tt=Ue=>g.createElement("svg",ze({className:"palette_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Ue),g.createElement("path",{d:"M512 102.39c-226.202 0-409.6 183.367-409.6 409.6S285.798 921.62 512 921.62a408.556 408.556 0 0 0 156.672-31.2 68.332 68.332 0 0 0 22.16-111.402l-48.057-48.056a68.28 68.28 0 0 1 48.261-116.542l162.304-.04a68.26 68.26 0 0 0 68.27-68.26v-34.13c-.01-226.243-183.378-409.6-409.61-409.6zm341.33 443.73-162.304.03c-75.305 0-136.53 61.225-136.53 136.53 0 36.485 14.203 70.738 39.997 96.543l48.067 48.056a338.166 338.166 0 0 1-130.57 26.082c-188.201 0-341.33-153.14-341.33-341.371S323.799 170.65 512 170.65s341.33 153.098 341.33 341.33v34.14z",fill:"#fff"}),g.createElement("path",{d:"M443.73 307.19a68.27 68.27 0 1 0 136.54 0 68.27 68.27 0 1 0-136.54 0ZM300.503 555.254a68.198 68.198 0 0 1 93.225 24.996 68.3 68.3 0 0 1-24.934 93.266 68.352 68.352 0 0 1-93.297-24.996 68.321 68.321 0 0 1 25.006-93.266zM621.056 409.59a68.29 68.29 0 1 0 136.581 0 68.29 68.29 0 1 0-136.581 0ZM300.503 468.716a68.26 68.26 0 0 1-24.965-93.266 68.25 68.25 0 1 1 118.2 68.239 68.27 68.27 0 0 1-93.235 25.027z",fill:"#fff"}));var St="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMTAyLjM5Yy0yMjYuMjAyIDAtNDA5LjYgMTgzLjM2Ny00MDkuNiA0MDkuNlMyODUuNzk4IDkyMS42MiA1MTIgOTIxLjYyYTQwOC41NTYgNDA4LjU1NiAwIDAgMCAxNTYuNjcyLTMxLjIgNjguMzMyIDY4LjMzMiAwIDAgMCAyMi4xNi0xMTEuNDAybC00OC4wNTctNDguMDU2YTY4LjI4IDY4LjI4IDAgMCAxIDQ4LjI2MS0xMTYuNTQybDE2Mi4zMDQtLjA0YTY4LjI2IDY4LjI2IDAgMCAwIDY4LjI3LTY4LjI2di0zNC4xM2MtLjAxLTIyNi4yNDMtMTgzLjM3OC00MDkuNi00MDkuNjEtNDA5LjZ6bTM0MS4zMyA0NDMuNzMtMTYyLjMwNC4wM2MtNzUuMzA1IDAtMTM2LjUzIDYxLjIyNS0xMzYuNTMgMTM2LjUzIDAgMzYuNDg1IDE0LjIwMyA3MC43MzggMzkuOTk3IDk2LjU0M2w0OC4wNjcgNDguMDU2YTMzOC4xNjYgMzM4LjE2NiAwIDAgMS0xMzAuNTcgMjYuMDgyYy0xODguMjAxIDAtMzQxLjMzLTE1My4xNC0zNDEuMzMtMzQxLjM3MVMzMjMuNzk5IDE3MC42NSA1MTIgMTcwLjY1czM0MS4zMyAxNTMuMDk4IDM0MS4zMyAzNDEuMzN2MzQuMTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTQ0My43MyAzMDcuMTlhNjguMjcgNjguMjcgMCAxIDAgMTM2LjU0IDAgNjguMjcgNjguMjcgMCAxIDAtMTM2LjU0IDBaTTMwMC41MDMgNTU1LjI1NGE2OC4xOTggNjguMTk4IDAgMCAxIDkzLjIyNSAyNC45OTYgNjguMyA2OC4zIDAgMCAxLTI0LjkzNCA5My4yNjYgNjguMzUyIDY4LjM1MiAwIDAgMS05My4yOTctMjQuOTk2IDY4LjMyMSA2OC4zMjEgMCAwIDEgMjUuMDA2LTkzLjI2NnpNNjIxLjA1NiA0MDkuNTlhNjguMjkgNjguMjkgMCAxIDAgMTM2LjU4MSAwIDY4LjI5IDY4LjI5IDAgMSAwLTEzNi41ODEgMFpNMzAwLjUwMyA0NjguNzE2YTY4LjI2IDY4LjI2IDAgMCAxLTI0Ljk2NS05My4yNjYgNjguMjUgNjguMjUgMCAxIDEgMTE4LjIgNjguMjM5IDY4LjI3IDY4LjI3IDAgMCAxLTkzLjIzNSAyNS4wMjd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+",lt=e(2657),Gt=e.n(lt),Nt,At=function(Ue){return Ue.Tool="DDSAnnotator.shortcuts.tools",Ue.GeneralAction="DDSAnnotator.shortcuts.general",Ue.ViewAction="DDSAnnotator.shortcuts.viewControl",Ue.AnnotationAction="DDSAnnotator.shortcuts.annotsControl",Ue}({}),Ie=function(Ue){return Ue[Ue.RectangleTool=0]="RectangleTool",Ue[Ue.PolygonTool=1]="PolygonTool",Ue[Ue.SkeletonTool=2]="SkeletonTool",Ue[Ue.DragTool=3]="DragTool",Ue[Ue.MaskTool=4]="MaskTool",Ue[Ue.SmartAnnotation=5]="SmartAnnotation",Ue[Ue.Undo=6]="Undo",Ue[Ue.Redo=7]="Redo",Ue[Ue.RepeatPrevious=8]="RepeatPrevious",Ue[Ue.DeleteAll=9]="DeleteAll",Ue[Ue.NextImage=10]="NextImage",Ue[Ue.PreviousImage=11]="PreviousImage",Ue[Ue.Save=12]="Save",Ue[Ue.Accept=13]="Accept",Ue[Ue.Reject=14]="Reject",Ue[Ue.ZoomIn=15]="ZoomIn",Ue[Ue.ZoomOut=16]="ZoomOut",Ue[Ue.Reset=17]="Reset",Ue[Ue.HideCurrObject=18]="HideCurrObject",Ue[Ue.HideCurrCategory=19]="HideCurrCategory",Ue[Ue.HideAll=20]="HideAll",Ue[Ue.PanImage=21]="PanImage",Ue[Ue.DeleteCurrObject=22]="DeleteCurrObject",Ue[Ue.SaveCurrObject=23]="SaveCurrObject",Ue[Ue.CancelCurrObject=24]="CancelCurrObject",Ue}({}),Se=(Nt={},Gt()(Nt,Ie.RectangleTool,{name:"RectangleTool",type:At.Tool,shortcut:["r"],descTextKey:"DDSAnnotator.shortcuts.tools.rectangle"}),Gt()(Nt,Ie.PolygonTool,{name:"PolygonTool",type:At.Tool,shortcut:["p"],descTextKey:"DDSAnnotator.shortcuts.tools.polygon"}),Gt()(Nt,Ie.SkeletonTool,{name:"SkeletonTool",type:At.Tool,shortcut:["s"],descTextKey:"DDSAnnotator.shortcuts.tools.skeleton"}),Gt()(Nt,Ie.MaskTool,{name:"MaskTool",type:At.Tool,shortcut:["m"],descTextKey:"DDSAnnotator.shortcuts.tools.mask"}),Gt()(Nt,Ie.DragTool,{name:"DragTool",type:At.Tool,shortcut:["d"],descTextKey:"DDSAnnotator.shortcuts.tools.drag"}),Gt()(Nt,Ie.SmartAnnotation,{name:"SmartAnnotation",type:At.GeneralAction,shortcut:["a"],descTextKey:"DDSAnnotator.shortcuts.general.smart"}),Gt()(Nt,Ie.Undo,{name:"Undo",type:At.GeneralAction,shortcut:["ctrl.z","meta.z"],descTextKey:"DDSAnnotator.shortcuts.general.undo"}),Gt()(Nt,Ie.Redo,{name:"Redo",type:At.GeneralAction,shortcut:["ctrl.shift.z","meta.shift.z"],descTextKey:"DDSAnnotator.shortcuts.general.redo"}),Gt()(Nt,Ie.RepeatPrevious,{name:"RepeatPrevious",type:At.GeneralAction,shortcut:["ctrl.r","meta.r"],descTextKey:"DDSAnnotator.shortcuts.general.repeatPrevious"}),Gt()(Nt,Ie.DeleteAll,{name:"DeleteAll",type:At.GeneralAction,shortcut:["ctrl.shift.d","meta.shift.d"],descTextKey:"DDSAnnotator.shortcuts.general.deleteAll"}),Gt()(Nt,Ie.Save,{name:"Save",type:At.GeneralAction,shortcut:["ctrl.s","meta.s"],descTextKey:"DDSAnnotator.shortcuts.general.save"}),Gt()(Nt,Ie.HideCurrObject,{name:"HideCurrObject",type:At.ViewAction,shortcut:["h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrObject"}),Gt()(Nt,Ie.HideCurrCategory,{name:"HideCurrCategory",type:At.ViewAction,shortcut:["ctrl.h","meta.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrCategory"}),Gt()(Nt,Ie.HideAll,{name:"HideAll",type:At.ViewAction,shortcut:["ctrl.shift.h","meta.shift.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideAll"}),Gt()(Nt,Ie.ZoomIn,{name:"ZoomIn",type:At.ViewAction,shortcut:["equalsign"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomIn"}),Gt()(Nt,Ie.ZoomOut,{name:"ZoomOut",type:At.ViewAction,shortcut:["dash"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomOut"}),Gt()(Nt,Ie.Reset,{name:"Reset",type:At.ViewAction,shortcut:["0"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomReset"}),Gt()(Nt,Ie.Accept,{name:"Accept",type:At.GeneralAction,shortcut:["ctrl.a","meta.a"],descTextKey:"DDSAnnotator.shortcuts.general.accept"}),Gt()(Nt,Ie.Reject,{name:"Reject",type:At.GeneralAction,shortcut:["ctrl.r","meta.r"],descTextKey:"DDSAnnotator.shortcuts.general.reject"}),Gt()(Nt,Ie.NextImage,{name:"NextImage",type:At.ViewAction,shortcut:["rightarrow"],descTextKey:"DDSAnnotator.shortcuts.general.next"}),Gt()(Nt,Ie.PreviousImage,{name:"PreviousImage",type:At.ViewAction,shortcut:["leftarrow"],descTextKey:"DDSAnnotator.shortcuts.general.prev"}),Gt()(Nt,Ie.PanImage,{name:"PanImage",type:At.ViewAction,shortcut:["Space"],descTextKey:"DDSAnnotator.shortcuts.viewControl.panImage"}),Gt()(Nt,Ie.SaveCurrObject,{name:"SaveCurrObject",type:At.AnnotationAction,shortcut:["enter"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.finish"}),Gt()(Nt,Ie.DeleteCurrObject,{name:"DeleteCurrObject",type:At.AnnotationAction,shortcut:["Backspace","Delete"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.delete"}),Gt()(Nt,Ie.CancelCurrObject,{name:"CancelCurrObject",type:At.AnnotationAction,shortcut:["esc"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.cancel"}),Nt),bt=function(he){var Pe=he;switch(he){case"meta":Pe="\u2318";break;case"shift":Pe="\u21E7";break;case"equalsign":case"add":Pe="+";break;case"dash":case"subtract":Pe="-";break;case"leftarrow":Pe="\u2190";break;case"rightarrow":Pe="\u2192";break;default:Pe=he.toUpperCase();break}return Pe},jt=function(Ue){return Ue.Object="object",Ue.Class="class",Ue}(jt||{}),He=function(he,Pe){return(0,m.isEqual)(he.objects,Pe.objects)&&(0,m.isEqual)(he.framesObjects,Pe.framesObjects)&&he.activeObjectIndex===Pe.activeObjectIndex&&he.supportEdit===Pe.supportEdit&&he.activeClassName===Pe.activeClassName&&he.className===Pe.className&&he.onChangeActiveClassName===Pe.onChangeActiveClassName&&he.onFocusObject===Pe.onFocusObject&&he.onDeleteObject===Pe.onDeleteObject&&he.onChangeObjectHidden===Pe.onChangeObjectHidden&&he.onChangeCategoryHidden===Pe.onChangeCategoryHidden&&he.setDrawDataWithHistory===Pe.setDrawDataWithHistory&&(0,m.isEqual)(he.categories,Pe.categories)&&he.colorByCategory===Pe.colorByCategory&&he.onChangeAnnotsDisplayOpts===Pe.onChangeAnnotsDisplayOpts},qe=(0,g.memo)(function(Ue){var he=Ue.objects,Pe=Ue.framesObjects,Un=Ue.activeObjectIndex,vt=Ue.className,zn=Ue.supportEdit,En=Ue.activeClassName,On=Ue.onFocusObject,Fn=Ue.onActiveObject,mr=Ue.onChangeObjectHidden,fr=Ue.onDeleteObject,or=Ue.onChangeCategoryHidden,jn=Ue.onChangeActiveClassName,ua=Ue.categories,Or=Ue.setDrawDataWithHistory,ar=Ue.colorByCategory,hr=Ue.onChangeAnnotsDisplayOpts,Pr=(0,F.bU)(),aa=Pr.localeText,Jn=aa("DDSAnnotator.annotsList.uncategorized"),fa=(0,g.useState)(jt.Class),Qr=s()(fa,2),$r=Qr[0],lr=Qr[1],Ir=function(hn){lr(hn)},Vr=(0,re.w)(),Ar=Vr.height,Y=45,z=35,ue=Ar-Y-56,Ce=(0,g.useRef)(null),Re=(0,g.useMemo)(function(){return!he.some(function(fn){return!fn.hidden})},[he]),rt=function(){he.forEach(function(hn,bn){mr(bn,!Re)})},Mt=function(){hr({colorByCategory:!ar})},Dt=(0,g.useCallback)(function(fn,hn,bn){Fn(bn),Or(function(Yt){Yt.editingAttribute={index:bn,labelId:fn.labelId,attributes:hn.attributes||[],values:fn.attributes||[]}})},[Fn,Or]);(0,Ee.Z)(Se[Ie.HideAll].shortcut,function(fn){fn.preventDefault(),rt()},{exactMatch:!0});var Vt=(0,g.useMemo)(function(){return he.reduce(function(fn,hn,bn){var Yt,Ln=((Yt=ua.find(function(qn){return qn.id===hn.labelId}))===null||Yt===void 0?void 0:Yt.name)||Jn;return fn[Ln]||(fn[Ln]=[]),fn[Ln].push(t()(t()({},hn),{},{originIndex:bn})),fn},{})},[he]);(0,g.useEffect)(function(){if(!(Un<0)){var fn=document.querySelector(".ant-tabs-tabpane-active");if($r===jt.Object){var hn=fn==null?void 0:fn.querySelector(".tab-collapse .ant-collapse-item:nth-child(".concat(Un+1,")"));hn==null||hn.scrollIntoView({behavior:"smooth",block:"nearest"})}else if($r===jt.Class&&Vt[En]){var bn=Vt[En].findIndex(function(Ln){return Ln.originIndex===Un});if(bn>-1){var Yt;(Yt=Ce.current)===null||Yt===void 0||Yt.scrollTo({index:bn,align:"auto"})}}}},[Un]);var nn=(0,x.jsx)(Me.Z,{accordion:!0,ghost:!0,className:"tab-collapse",activeKey:En,children:he.length>0&&Object.keys(Vt).sort().map(function(fn){var hn,bn=Vt[fn],Yt=bn.every(function(qn){return qn.hidden}),Ln=(hn=bn[0])===null||hn===void 0?void 0:hn.color;return(0,x.jsx)(Me.Z.Panel,{showArrow:!1,header:(0,x.jsxs)("div",{className:c()("collapse-header",{"collapse-header-selected":En===fn}),style:{height:Y},onClick:function(){jn(fn===En?"":fn)},children:[En===fn&&(0,x.jsx)("div",{className:"selected-line",style:{backgroundColor:Ln||"#fff"}}),(0,x.jsx)("div",{className:"label-name",children:fn}),(0,x.jsxs)("div",{className:"label-actions",children:[(0,x.jsx)("span",{className:"label-count",children:bn.length}),(0,x.jsx)(L.Z,{title:aa(Yt?"DDSAnnotator.annotsList.showCate":"DDSAnnotator.annotsList.hideCate"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:Yt?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:function(cr){cr.stopPropagation(),or(fn,!Yt)}})}),(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:(0,x.jsx)(we,{className:"down-arrow"}),shape:"circle"})]})]},fn),children:En===fn&&(0,x.jsx)(We.Z,{children:(0,x.jsx)(se.Z,{data:bn,height:ue,fullHeight:!1,itemHeight:z,itemKey:"originIndex",ref:Ce,children:function(cr,Dr){var Rr,Aa,xa,pa,za=ua.find(function(Xa){return Xa.id===cr.labelId}),ha=!!(za!=null&&(Rr=za.attributes)!==null&&Rr!==void 0&&Rr.length),Yr=za==null||(Aa=za.attributes)===null||Aa===void 0?void 0:Aa.find(function(Xa,io){var Go;return Xa.required&&[void 0,null,""].includes((Go=cr.attributes)===null||Go===void 0?void 0:Go[io])}),$a=(Pe==null||(xa=Pe[cr.originIndex])===null||xa===void 0||(pa=xa.filter(function(Xa){return Xa&&!Xa.frameEmpty}))===null||pa===void 0?void 0:pa.length)||1;return(0,x.jsxs)(We.Z.Item,{className:"collapse-item",style:{height:z},onMouseOver:function(){On(cr.originIndex)},onClick:function(io){io.stopPropagation(),Fn(cr.originIndex)},children:[Un===cr.originIndex&&(0,x.jsx)("div",{className:"color-hint",style:{backgroundColor:cr.color}}),(0,x.jsx)(H.Z,{className:"label-icon",component:Q.ef[cr.type]}),(0,x.jsxs)("div",{className:"label",children:["# ",cr.originIndex+1]}),(0,x.jsxs)("div",{className:"label-actions",children:[Pe&&(0,x.jsxs)("span",{className:"frame-count",children:[(0,x.jsx)(Ve,{})," ",$a]}),ha&&(0,x.jsx)(L.Z,{title:aa("DDSAnnotator.attribute.edit"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:c()("attr-btn",{"attr-btn-warn":Yr}),icon:(0,x.jsx)(le,{}),shape:"circle",onClick:function(io){io.stopPropagation(),Dt(cr,za,cr.originIndex)}})}),(0,x.jsx)(L.Z,{title:cr.hidden?aa("DDSAnnotator.annotsList.show"):aa("DDSAnnotator.annotsList.hide"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:cr.hidden?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:function(io){io.stopPropagation(),mr(cr.originIndex,!cr.hidden)}})}),zn&&(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(L.Z,{title:aa("DDSAnnotator.annotsList.delete"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:(0,x.jsx)(je.Z,{}),shape:"circle",onClick:function(io){io.stopPropagation(),fr(cr.originIndex)}})})})]})]},cr.labelId+Dr)}})})},fn||Jn)})});return(0,x.jsx)("div",{className:c()("dds-annotator-objectlist",vt),id:"rightOperations",onMouseDown:function(hn){hn.stopPropagation()},children:(0,x.jsx)(be.Z,{activeKey:$r,onChange:Ir,items:[{key:jt.Class,label:aa("DDSAnnotator.annotsList.labels"),children:nn}],tabBarExtraContent:(0,x.jsxs)("div",{className:"tab-header-actions",children:[(0,x.jsx)(L.Z,{title:aa("DDSAnnotator.colorMode"),children:(0,x.jsx)(C.ZP,{type:"primary",className:c()("tab-header-actions-color-btn",{"tab-header-actions-color-btn-active":!ar}),icon:(0,x.jsx)(H.Z,{component:tt}),onClick:Mt})}),he.length>0&&(0,x.jsx)(L.Z,{title:aa(Re?"DDSAnnotator.annotsList.showAll":"DDSAnnotator.annotsList.hideAll"),children:(0,x.jsx)(C.ZP,{ghost:!0,icon:Re?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:rt})})]})})})},He),$t=e(60698),Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"down-circle",theme:"outlined"},qt=Zt,un=e(17202),xn=function(he,Pe){return g.createElement(un.Z,(0,$t.Z)({},he,{ref:Pe,icon:qt}))},pn=g.forwardRef(xn),Gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.5 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"up-circle",theme:"outlined"},Qn=Gn,ur=function(he,Pe){return g.createElement(un.Z,(0,$t.Z)({},he,{ref:Pe,icon:Qn}))},br=g.forwardRef(ur),zt=e(59504),en={item:"item___v9XQ_",selected:"selected___H8gjQ",info:"info___YLqTh",action:"action___zGuUy",btn:"btn___ean1l"},an=function(he){var Pe=he.point,Un=he.index,vt=he.active,zn=he.onMouseEnter,En=he.onMouseOut,On=he.onMouseOver,Fn=he.onVisibleChange,mr=(0,F.bU)(),fr=mr.localeText;return(0,x.jsxs)("div",{className:en.item,onMouseOut:En,onMouseOver:On,onMouseEnter:zn,children:[vt&&(0,x.jsx)("div",{className:en.selected,style:{backgroundColor:Pe.color}}),(0,x.jsx)("div",{className:en.info,children:Pe.name?"#".concat(Un+1," ").concat(Pe.name):"".concat(Un+1," ")}),(0,x.jsx)("div",{className:en.action,children:(0,x.jsxs)(zt.Z,{bordered:!1,showArrow:!0,popupClassName:en["selector-dropdown"],size:"small",value:Pe.visible,onChange:Fn,style:{width:"100%"},children:[(0,x.jsx)(zt.Z.Option,{value:Q.GI.noLabeled,children:fr("DDSAnnotator.annotsList.point.notInImage")}),(0,x.jsx)(zt.Z.Option,{value:Q.GI.labeledNotVisible,children:fr("DDSAnnotator.annotsList.point.notVisible")}),(0,x.jsx)(zt.Z.Option,{value:Q.GI.labeledVisible,children:fr("DDSAnnotator.annotsList.point.visible")})]})})]},Un)},vn=an,An=(0,g.memo)(function(Ue){var he=Ue.mode,Pe=Ue.isAiAnnotation,Un=Ue.currObject,vt=Ue.currObjectIndex,zn=Ue.focusObjectIndex,En=Ue.focusEleType,On=Ue.focusEleIndex,Fn=Ue.onChangePointVisible,mr=Ue.setEditState,fr=(0,F.bU)(),or=fr.localeText,jn=(0,g.useState)(!0),ua=s()(jn,2),Or=ua[0],ar=ua[1],hr=(0,g.useMemo)(function(){return vt>-1&&(Un==null?void 0:Un.type)===Q.gr.Skeleton&&!Pe},[he,Un,vt,Pe]),Pr=function(Jn){mr(function(fa){fa.focusObjectIndex=vt,fa.focusEleIndex=Jn,fa.focusEleType=Q.Yq.Circle})};return(0,x.jsx)(A,{children:(0,x.jsx)(w.Z,{className:c()("dds-annotator-points-editor",{"dds-annotator-points-editor-visible":hr}),title:(0,x.jsxs)("div",{className:"title",onClick:function(){return ar(function(Jn){return!Jn})},children:[or("DDSAnnotator.points.editor"),(0,x.jsx)("div",{className:"extra-btn",children:Or?(0,x.jsx)(pn,{}):(0,x.jsx)(br,{})})]}),children:!Or&&(0,x.jsx)("div",{className:"content",onMouseMove:function(Jn){Jn.stopPropagation()},children:Un&&Un.keypoints&&Un.keypoints.points.map(function(aa,Jn){return(0,x.jsx)(vn,{point:aa,index:Jn,active:zn===vt&&En===Q.Yq.Circle&&On===Jn,onMouseEnter:function(){return Pr(Jn)},onVisibleChange:function(Qr){Fn(Jn,Qr)}},Jn)})})})})}),sn=An,mt=(0,g.memo)(function(Ue){var he=Ue.mode,Pe=Ue.isAiAnnotation,Un=Ue.latestLabelId,vt=Ue.currObject,zn=Ue.onFinishCurrCreate,En=(0,F.bU)(),On=En.localeText,Fn=(0,g.useMemo)(function(){return he!==W.je.Edit?!1:!!((vt==null?void 0:vt.type)===Q.gr.Mask||(vt==null?void 0:vt.type)===Q.gr.Polygon&&Pe)},[he,vt,Pe]);return(0,Ee.Z)(Se[Ie.SaveCurrObject].shortcut,function(mr){vt&&(mr.preventDefault(),zn(Un))},{exactMatch:!0}),(0,x.jsx)(A,{children:(0,x.jsx)(w.Z,{className:c()("dds-annotator-seg-confirm",{"dds-annotator-seg-confirm-visible":Fn}),title:(0,x.jsx)("div",{className:"title",children:On("DDSAnnotator.seg.tool")}),children:(0,x.jsxs)("div",{className:"content",children:[(0,x.jsx)("div",{children:On("DDSAnnotator.seg.tool.content")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:function(fr){fr.preventDefault(),zn(Un)},children:On("DDSAnnotator.confirm")})]})})})}),gt=mt,ln=e(34485),Qt=e.n(ln),tn=e(2528),yn=e(98030),gn=e(33181),_n=Object.defineProperty,nr=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,It=(Ue,he,Pe)=>he in Ue?_n(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Ct=(Ue,he)=>{for(var Pe in he||(he={}))ut.call(he,Pe)&&It(Ue,Pe,he[Pe]);if(nr)for(var Pe of nr(he))ct.call(he,Pe)&&It(Ue,Pe,he[Pe]);return Ue};const Ut=Ue=>g.createElement("svg",Ct({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 29"},Ue),g.createElement("defs",null,g.createElement("style",null,".drag_svg__cls-1{fill:none}")),g.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),g.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),g.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83Z"}),g.createElement("path",{className:"drag_svg__cls-2",d:"m21.73 18.19 8.23 4.8-3.51 1 2.51 4.35-2.05 1.18-2.51-4.35-2.63 2.54-.04-9.52z"}),g.createElement("path",{className:"drag_svg__cls-2",d:"M19.37 9.92h2.36v2.36h5.91a1.18 1.18 0 0 1 1.18 1.18v4.73h-2.36v-3.54H14.65v11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DUuMnpNNS4yIDE0LjY1aDIuMzZ2Mi4zNkg1LjJ6TTUuMiA5LjkyaDIuMzZ2Mi4zNkg1LjJ6TTUuMiA1LjJoMi4zNnYyLjM2SDUuMnpNOS45MiA1LjJoMi4zNnYyLjM2SDkuOTJ6TTE0LjY1IDUuMmgyLjM2djIuMzZoLTIuMzZ6TTE5LjM3IDUuMmgyLjM2djIuMzZoLTIuMzZ6Ii8+PC9zdmc+",rn=Object.defineProperty,Dn=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,rr=(Ue,he,Pe)=>he in Ue?rn(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,$n=(Ue,he)=>{for(var Pe in he||(he={}))Bn.call(he,Pe)&&rr(Ue,Pe,he[Pe]);if(Dn)for(var Pe of Dn(he))Cr.call(he,Pe)&&rr(Ue,Pe,he[Pe]);return Ue};const kr=Ue=>g.createElement("svg",$n({className:"zoomResize_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ue),g.createElement("path",{d:"M981.333 42.667v938.666H42.667V42.667h938.666zM128 896h768V128H128v768zm170.667-170.667H448v85.334H213.333V576h85.334v149.333zm426.666-426.666H576v-85.334h234.667V448h-85.334V298.667z"}));var Mr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk4MS4zMzMgNDIuNjY3djkzOC42NjZINDIuNjY3VjQyLjY2N2g5MzguNjY2ek0xMjggODk2aDc2OFYxMjhIMTI4djc2OHptMTcwLjY2Ny0xNzAuNjY3SDQ0OHY4NS4zMzRIMjEzLjMzM1Y1NzZoODUuMzM0djE0OS4zMzN6bTQyNi42NjYtNDI2LjY2Nkg1NzZ2LTg1LjMzNGgyMzQuNjY3VjQ0OGgtODUuMzM0VjI5OC42Njd6Ii8+PC9zdmc+",ia=e(85706),zr=Object.defineProperty,Wn=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,sr=(Ue,he,Pe)=>he in Ue?zr(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Er=(Ue,he)=>{for(var Pe in he||(he={}))wn.call(he,Pe)&&sr(Ue,Pe,he[Pe]);if(Wn)for(var Pe of Wn(he))Rn.call(he,Pe)&&sr(Ue,Pe,he[Pe]);return Ue};const Kr=Ue=>g.createElement("svg",Er({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M21.5 3h-19A2.503 2.503 0 0 0 0 5.5V17h24V5.5C24 4.122 22.878 3 21.5 3Zm.5 12H2V5.5a.5.5 0 0 1 .5-.5h19a.5.5 0 0 1 .5.5V15ZM4 7h3v2H4V7Zm8 2H9V7h3v2Zm2-2h6v2h-6V7Zm-6 4h8v2H8v-2Zm10 0h2v2h-2v-2ZM4 11h2v2H4v-2Zm11.293 7.707 1.414 1.414-3.293 3.293c-.39.39-.902.585-1.414.585a1.993 1.993 0 0 1-1.414-.585l-3.293-3.293 1.414-1.414L12 22l3.293-3.293Z"}));var ta="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIxLjUgM2gtMTlBMi41MDMgMi41MDMgMCAwIDAgMCA1LjVWMTdoMjRWNS41QzI0IDQuMTIyIDIyLjg3OCAzIDIxLjUgM1ptLjUgMTJIMlY1LjVhLjUuNSAwIDAgMSAuNS0uNWgxOWEuNS41IDAgMCAxIC41LjVWMTVaTTQgN2gzdjJINFY3Wm04IDJIOVY3aDN2MlptMi0yaDZ2MmgtNlY3Wm0tNiA0aDh2Mkg4di0yWm0xMCAwaDJ2MmgtMnYtMlpNNCAxMWgydjJINHYtMlptMTEuMjkzIDcuNzA3IDEuNDE0IDEuNDE0LTMuMjkzIDMuMjkzYy0uMzkuMzktLjkwMi41ODUtMS40MTQuNTg1YTEuOTkzIDEuOTkzIDAgMCAxLTEuNDE0LS41ODVsLTMuMjkzLTMuMjkzIDEuNDE0LTEuNDE0TDEyIDIybDMuMjkzLTMuMjkzWiIvPjwvc3ZnPg==",ga=function(he){for(var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Un=navigator.userAgent.toLowerCase(),vt=Un.indexOf("mac")>-1,zn=[],En=function(){var fr=he[On];if(!vt&&fr.includes("meta")||vt&&fr.includes("ctrl"))return"continue";if(fr.includes(".")){var or=fr.split(".");or.forEach(function(ua,Or){var ar=(0,x.jsx)("span",{className:c()({"dds-annotator-shortcutsinfo-key":Pe}),children:bt(ua)},Or);zn.push(ar),Or!==or.length-1&&zn.push((0,x.jsxs)("span",{className:c()({"dds-annotator-shortcutsinfo-combine":Pe}),children:[" ","+"," "]},Or+"and"))})}else{var jn=(0,x.jsx)("span",{className:c()({"dds-annotator-shortcutsinfo-key":Pe}),children:bt(fr)},On);zn.push(jn)}On!==he.length-1&&zn.push((0,x.jsxs)("span",{className:c()({"dds-annotator-shortcutsinfo-combine":Pe}),children:[" ","/"," "]},On+"or"))},On=0;On=Q.Fv,Ar=jn<=Q.vL;(0,Ee.Z)(Se[Ie.ZoomIn].shortcut,function(){Vr||ua()}),(0,Ee.Z)(Se[Ie.ZoomOut].shortcut,function(){Ar||Or()}),(0,Ee.Z)(Se[Ie.Reset].shortcut,function(){ar()});var Y=function(ue){var Ce=ga(ue.shortcut.shortcut,!1);return(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar-popover",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("span",{className:"popover-title",children:ue.name}),(0,x.jsx)("span",{className:"popover-key",children:Ce})]}),(0,x.jsx)("div",{className:"popover-divider"}),(0,x.jsx)("div",{className:"popover-description",children:ue.description})]})};return(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar",onMouseDown:function(ue){ue.stopPropagation()},children:[hr?(0,x.jsx)("div",{}):(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar-content",children:[fa.map(function(z){return(0,x.jsx)(gn.Z,{placement:"right",content:Y(z),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn",{"slidertoolbar-btn-active":he===z.key}),icon:z.icon,onClick:function(){return En(z.key)}})},z.key)}),Qr.map(function(z){return(0,x.jsxs)("div",{className:c()({"slidertoolbar-annotool-active-wrap":he===z.key&&!Pe}),children:[(0,x.jsx)(gn.Z,{placement:"right",content:Y(z),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn",{"slidertoolbar-btn-active":he===z.key&&!zn}),icon:z.icon,onClick:function(){return En(z.key)}})}),he===z.key&&!Pe&&(0,x.jsx)(gn.Z,{placement:"right",content:Y($r),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn",{"slidertoolbar-btn-active":zn}),icon:z.aiIcon,onClick:function(){return On(!zn)}})},$r.key)]},z.key)}),(0,x.jsx)("div",{className:"slidertoolbar-divider"}),lr.map(function(z){return(0,x.jsx)(gn.Z,{placement:"right",content:Y(z),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn"),icon:z.icon,onClick:z.handler})},z.key)})]}),(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar-content",children:[(0,x.jsx)(C.ZP,{type:"primary",className:"slidertoolbar-btn",onClick:ar,icon:(0,x.jsx)(H.Z,{component:kr})}),(0,x.jsx)(C.ZP,{type:"primary",className:c()("slidertoolbar-btn",{"slidertoolbar-btn-disabled":Ar}),icon:(0,x.jsx)(tn.Z,{}),onClick:Or}),(0,x.jsxs)("div",{className:"slidertoolbar-scale-text",children:[Math.floor(jn*100),"%"]}),(0,x.jsx)(C.ZP,{type:"primary",className:c()("slidertoolbar-btn",{"slidertoolbar-btn-disabled":Vr}),icon:(0,x.jsx)(yn.Z,{}),onClick:ua})]})]})}),Ma=Ur,ma=e(38875),Yn=e(94706),Zn=e(57414),Sr=Object.defineProperty,Xr=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,on=(Ue,he,Pe)=>he in Ue?Sr(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Mn=(Ue,he)=>{for(var Pe in he||(he={}))wr.call(he,Pe)&&on(Ue,Pe,he[Pe]);if(Xr)for(var Pe of Xr(he))Pt.call(he,Pe)&&on(Ue,Pe,he[Pe]);return Ue};const Ja=Ue=>g.createElement("svg",Mn({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M23.737 13.118v7.764a6.713 6.713 0 0 1-6.706 6.707 6.713 6.713 0 0 1-6.705-6.707v-7.764a6.713 6.713 0 0 1 6.705-6.707 6.713 6.713 0 0 1 6.706 6.707Zm-.693 3.662H11.018v4.102a6.02 6.02 0 0 0 6.013 6.017 6.02 6.02 0 0 0 6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 0-5.698-6.008v8.977h5.698v-2.969Z",fill:"#fff"}));var mo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjMuNzM3IDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMS02LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMS02LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDEgNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDEgNi43MDYgNi43MDdabS0uNjkzIDMuNjYySDExLjAxOHY0LjEwMmE2LjAyIDYuMDIgMCAwIDAgNi4wMTMgNi4wMTcgNi4wMiA2LjAyIDAgMCAwIDYuMDEzLTYuMDE3VjE2Ljc4Wm0wLTMuNjYyYTYuMDIgNi4wMiAwIDAgMC01LjY5OC02LjAwOHY4Ljk3N2g1LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",Ua=Object.defineProperty,ka=Object.getOwnPropertySymbols,Qa=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,No=(Ue,he,Pe)=>he in Ue?Ua(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ho=(Ue,he)=>{for(var Pe in he||(he={}))Qa.call(he,Pe)&&No(Ue,Pe,he[Pe]);if(ka)for(var Pe of ka(he))wo.call(he,Pe)&&No(Ue,Pe,he[Pe]);return Ue};const dt=Ue=>g.createElement("svg",ho({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M10.263 13.118v7.764a6.713 6.713 0 0 0 6.706 6.707 6.713 6.713 0 0 0 6.705-6.707v-7.764a6.713 6.713 0 0 0-6.705-6.707 6.713 6.713 0 0 0-6.706 6.707Zm.693 3.662h12.026v4.102a6.02 6.02 0 0 1-6.013 6.017 6.02 6.02 0 0 1-6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 1 5.698-6.008v8.977h-5.698v-2.969Z",fill:"#fff"}));var Rt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMjYzIDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDAtNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDAtNi43MDYgNi43MDdabS42OTMgMy42NjJoMTIuMDI2djQuMTAyYTYuMDIgNi4wMiAwIDAgMS02LjAxMyA2LjAxNyA2LjAyIDYuMDIgMCAwIDEtNi4wMTMtNi4wMTdWMTYuNzhabTAtMy42NjJhNi4wMiA2LjAyIDAgMCAxIDUuNjk4LTYuMDA4djguOTc3aC01LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",Ae=(0,g.memo)(function(Ue){var he,Pe=Ue.selectedTool,Un=Ue.selectedSubTool,vt=Ue.selectedModel,zn=Ue.AIAnnotation,En=Ue.isBatchEditing,On=Ue.isCtrlPressed,Fn=Ue.naturalSize,mr=Ue.limitConf,fr=Ue.latestLabel,or=Ue.onExitAIAnnotation,jn=Ue.onAiAnnotation,ua=Ue.onChangeConfidenceRange,Or=Ue.onChangeLimitConf,ar=Ue.onAcceptValidObjects,hr=Ue.onCancelBatchEdit,Pr=Ue.forceChangeTool,aa=(0,F.bU)(),Jn=aa.localeText,fa=(0,g.useState)(function(){return fr}),Qr=s()(fa,2),$r=Qr[0],lr=Qr[1];(0,g.useEffect)(function(){lr(fr)},[fr]);var Ir=(0,M.x)({predIouThresh:.89,pointsPerSide:32,minMaskRegionArea:300}),Vr=s()(Ir,2),Ar=Vr[0],Y=Vr[1],z=(he={},Gt()(he,Q.ru.Drag,{name:Jn("DDSAnnotator.shortcuts.tools.drag"),icon:Ut}),Gt()(he,Q.ru.Rectangle,{name:vt===Q.HE.Detection?Jn("DDSAnnotator.smart.detection.name"):Jn("DDSAnnotator.smart.ivp.name"),icon:Q.ef[Q.gr.Rectangle]}),Gt()(he,Q.ru.Polygon,{name:Jn("DDSAnnotator.smart.segmentation.name"),icon:Q.ef[Q.gr.Polygon]}),Gt()(he,Q.ru.Skeleton,{name:Jn("DDSAnnotator.smart.pose.name"),icon:Q.ef[Q.gr.Skeleton]}),Gt()(he,Q.ru.Mask,{name:vt===Q.HE.SegmentByMask?Jn("DDSAnnotator.smart.isg.name"):vt===Q.HE.SegmentEverything?Jn("DDSAnnotator.smart.sam.name"):Jn("DDSAnnotator.smart.ivp.name"),icon:Q.ef[Q.gr.Mask]}),he),ue=function(Dt){if(Dt.type==="mouseup"&&(Pe===Q.ru.Skeleton||Pe===Q.ru.Mask&&Un===Q.jB.AutoSegmentEverything||Pe===Q.ru.Rectangle)){Dt.preventDefault();return}else Dt.stopPropagation()},Ce=(0,g.useMemo)(function(){return!zn||Pe===Q.ru.Drag?!1:Pe===Q.ru.Mask?vt===Q.HE.SegmentEverything?Un===Q.jB.AutoSegmentEverything:vt===Q.HE.SegmentByMask?!1:vt===Q.HE.IVP?En:!1:Pe===Q.ru.Polygon?!1:Pe===Q.ru.Rectangle?vt===Q.HE.Detection?!(En&&On):vt===Q.HE.IVP?En:!1:!0},[Pe,Un,vt,zn,En,On]),Re=(0,g.useMemo)(function(){return Pe===Q.ru.Rectangle&&vt===Q.HE.Detection&&En&&On?[{text:Jn("DDSAnnotator.smart.tip.recover"),logo:(0,x.jsx)(Ja,{})},{text:Jn("DDSAnnotator.smart.tip.overlayobject"),logo:(0,x.jsx)(dt,{})}]:[]},[En,On,vt]),rt=(0,g.useMemo)(function(){return Fn.width*Fn.height},[Fn]);return(0,x.jsxs)(A,{eventHandler:ue,children:[Re.length>0&&(0,x.jsx)("div",{className:"dds-annotator-operation-tip",children:Re.map(function(Mt){return(0,x.jsxs)("div",{className:"dds-annotator-operation-tip-item",children:[(0,x.jsx)("span",{children:Mt.text}),Mt.logo]},Mt.text)})}),(0,x.jsx)(w.Z,{id:"smart-annotation-editor",className:c()("dds-annotator-smart-container",{"dds-annotator-smart-container-visible":Ce}),title:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-title",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-title-icon",children:[(0,x.jsx)(ma.Z,{component:Q.QD[Q.Uu.SmartAnnotation]}),(0,x.jsx)("div",{children:z[Pe].name})]}),(0,x.jsx)(C.ZP,{ghost:!0,className:"dds-annotator-smart-container-btn",icon:(0,x.jsx)(h.Z,{}),shape:"circle",size:"small",onClick:function(){or(),Pr(Pe,Q.jB.PenAdd)}})]}),children:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content",children:[Pe===Q.ru.Rectangle&&vt===Q.HE.Detection&&(En?(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:[Jn("DDSAnnotator.smart.detection.confidence"),":"]}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",defaultValue:mr,min:0,max:1,step:.01,onAfterChange:Or,railStyle:{background:"#99bdff"},trackStyle:{background:"#edf0f3"}})]})}),(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-tip-text",children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.tip"),": "]}),Jn("DDSAnnotator.smart.tip.ctrl")]}),(0,x.jsxs)("div",{style:{alignSelf:"flex-end"},children:[(0,x.jsx)(C.ZP,{style:{marginRight:"10px"},onClick:hr,children:Jn("DDSAnnotator.smart.back")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:ar,children:Jn("DDSAnnotator.save")})]})]}):(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,x.jsxs)("div",{children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.detection.label"),":"]}),fr]}),(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item-row",children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.detection.prompt"),":"]}),(0,x.jsx)(T.Z,{placeholder:Jn("DDSAnnotator.smart.detection.input"),value:$r,onChange:function(Dt){return lr(Dt.target.value)},onKeyUp:function(Dt){return Dt.stopPropagation()},onKeyDown:function(Dt){return Dt.stopPropagation()}})]}),(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-column-item-right",children:(0,x.jsx)(C.ZP,{type:"primary",onClick:function(){return jn({text:$r})},children:Jn("DDSAnnotator.smart.annotate")})})]})),(Pe===Q.ru.Rectangle&&vt===Q.HE.IVP||Pe===Q.ru.Mask&&vt===Q.HE.IVP)&&(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-tip-text",children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.tip"),": "]}),Jn("DDSAnnotator.smart.tip.visualPrompt")]}),(0,x.jsxs)("div",{style:{alignSelf:"flex-end"},children:[(0,x.jsx)(C.ZP,{style:{marginRight:"10px"},onClick:hr,children:Jn("DDSAnnotator.smart.back")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:ar,children:Jn("DDSAnnotator.save")})]})]}),Pe===Q.ru.Skeleton&&(En?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Jn("DDSAnnotator.confidence")}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",range:!0,defaultValue:[0,100],onAfterChange:function(Dt){return ua([Dt[0]/100,Dt[1]/100])},tooltip:{formatter:function(Dt){return(0,x.jsx)(x.Fragment,{children:"".concat(Dt/100)})},getPopupContainer:function(){return document.getElementById("conf-slider")}}})]})}),(0,x.jsx)(C.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:ar,children:Jn("DDSAnnotator.save")})]}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(C.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return jn({})},children:Jn("DDSAnnotator.smart.annotate")})})),Pe===Q.ru.Mask&&vt===Q.HE.SegmentEverything&&Un===Q.jB.AutoSegmentEverything&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{id:"param-controls",className:"dds-annotator-smart-container-content-param-controls",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Jn("DDSAnnotator.smart.iouThres")}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:1-Ar.predIouThresh,onChange:function(Dt){return Y(function(Vt){Vt.predIouThresh=1-Dt})},min:0,max:.99,step:.01,reverse:!0,tooltip:{formatter:function(Dt){return"".concat(Math.floor((1-Dt)*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]}),(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Jn("DDSAnnotator.smart.minArea")}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:Ar.minMaskRegionArea/rt,onChange:function(Dt){return Y(function(Vt){Vt.minMaskRegionArea=Dt*rt})},min:.01,max:.3,step:.01,tooltip:{formatter:function(Dt){return"".concat(Math.ceil(Dt*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]})]}),En?(0,x.jsxs)(Zn.Z,{className:"dds-annotator-smart-container-content-actions",style:{justifyContent:"flex-end"},children:[(0,x.jsx)(C.ZP,{onClick:function(){return jn({segmentEverythingParams:Ar})},children:Jn("DDSAnnotator.smart.retry")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:function(){ar(),Pr(Q.ru.Mask,Q.jB.AutoEdgeStitching)},children:Jn("DDSAnnotator.annotsEditor.finish")})]}):(0,x.jsx)(C.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return jn({segmentEverythingParams:Ar})},children:Jn("DDSAnnotator.smart.annotate")})]})]})})]})}),dn=Ae,Pn=e(24454),Sn=e.n(Pn),er=e(56592),ir=e.n(er),Hr=e(99142),Oa=e(91169),oa=function(he,Pe){return he.current===Pe.current&&he.total===Pe.total&&he.customText===Pe.customText&&he.customDisableNext===Pe.customDisableNext},Jr=(0,g.memo)(function(Ue){var he=Ue.current,Pe=Ue.total,Un=Ue.customText,vt=Ue.customDisableNext,zn=Ue.onPrev,En=zn===void 0?function(){return Promise.resolve()}:zn,On=Ue.onNext,Fn=On===void 0?function(){return Promise.resolve()}:On,mr=(0,F.bU)(),fr=mr.localeText,or=(0,g.useState)(!1),jn=s()(or,2),ua=jn[0],Or=jn[1],ar=(0,g.useState)(!1),hr=s()(ar,2),Pr=hr[0],aa=hr[1],Jn=function(){var lr=ir()(Sn()().mark(function Ir(){return Sn()().wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Or(!0),Ar.next=3,En();case 3:Or(!1);case 4:case"end":return Ar.stop()}},Ir)}));return function(){return lr.apply(this,arguments)}}(),fa=function(){var lr=ir()(Sn()().mark(function Ir(){return Sn()().wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return aa(!0),Ar.next=3,Fn();case 3:aa(!1);case 4:case"end":return Ar.stop()}},Ir)}));return function(){return lr.apply(this,arguments)}}(),Qr=he<=0,$r=vt!=null?vt:he>=Pe-1;return(0,Ee.Z)(Se[Ie.PreviousImage].shortcut,function(){Qr||Jn()},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.NextImage].shortcut,function(){$r||fa()},{exactMatch:!0}),(0,x.jsxs)("div",{className:"dds-annotator-toppagination",children:[(0,x.jsx)(L.Z,{title:fr("DDSAnnotator.prev"),children:(0,x.jsx)(C.ZP,{className:c()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":Qr}),type:"primary",icon:(0,x.jsx)(Hr.Z,{}),loading:ua,onClick:Jn})}),Un||(0,x.jsxs)("div",{className:"dds-annotator-toppagination-scale-text",children:[he+1," / ",Pe]}),(0,x.jsx)(L.Z,{title:fr("DDSAnnotator.next"),children:(0,x.jsx)(C.ZP,{className:c()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":$r}),type:"primary",icon:(0,x.jsx)(Oa.Z,{}),loading:Pr,onClick:fa})})]})},oa),na=function(he){var Pe=he.mode,Un=he.currImageItem,vt=he.modal,zn=he.framesData,En=he.drawData,On=he.editState,Fn=he.setEditState,mr=he.hadChangeRecord,fr=he.categories,or=he.translateObject,jn=he.flagSaved,ua=he.onCancel,Or=he.onSave,ar=he.onCommit,hr=he.onReviewModify,Pr=he.onReviewAccept,aa=he.onReviewReject,Jn=he.classificationOptions,fa=he.isInAiSession,Qr=(0,F.bU)(),$r=Qr.localeText,lr=On.isRequiring,Ir=function(Dt){return Fn(function(Vt){Vt.isRequiring=Dt})},Vr=(0,g.useCallback)(function(Mt){var Dt=[];return zn?Dt=zn.objects.map(function(Vt){var nn={};return Vt.forEach(function(fn,hn){if(fn&&!fn.frameEmpty){var bn=or==null?void 0:or(fn),Yt=bn.labelId,Ln=bn.attributes,qn=bn.labelValue;nn.labelId=Yt,nn.attributes=Ln,nn.labelValue||(nn.labelValue={}),nn.labelValue[String(hn)]=qn}}),nn}):Dt=Mt.objectList.map(function(Vt){return or==null?void 0:or(Vt)}),[(zn==null?void 0:zn.id)||(Un==null?void 0:Un.id)||"",[].concat(Qt()(Mt.classifications.map(function(Vt){var nn,fn=fr.find(function(hn){return hn.id===Vt.labelId});return t()(t()({},Vt),{},{attributes:Vt.attributes||(fn==null||(nn=fn.attributes)===null||nn===void 0?void 0:nn.map(function(){return null}))||[]})})),Qt()(Dt)),zn?Gt()({},zn.activeIndex,{}):void 0]},[Un,or,zn]),Ar=function(Dt){var Vt=[];return Jn==null||Jn.forEach(function(nn,fn){var hn=Dt.find(function(bn){return bn.labelId===nn.id});(!hn||Z(hn.labelValue))&&Vt.push($r("DDSAnnotator.save.check.classification",{idx:fn+1}))}),Dt.forEach(function(nn,fn){var hn,bn=fr.find(function(Yt){return Yt.id===nn.labelId});bn!=null&&(hn=bn.attributes)!==null&&hn!==void 0&&hn.find(function(Yt,Ln){var qn;return Yt.required&&Z((qn=nn.attributes)===null||qn===void 0?void 0:qn[Ln])})&&Vt.push($r("DDSAnnotator.save.check.label",{idx:fn+1,labelName:bn.labelName}))}),Vt.length>0?(n.Z.warning({width:480,title:$r("DDSAnnotator.save.check.error"),content:(0,x.jsxs)("div",{children:[Vt.map(function(nn,fn){return(0,x.jsxs)("span",{children:[nn,(0,x.jsx)("br",{})]},fn)}),(0,x.jsx)("span",{children:$r("DDSAnnotator.save.check.tip")})]})}),!0):!1},Y=function(){var Mt=ir()(Sn()().mark(function Dt(){var Vt,nn,fn,hn;return Sn()().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(!(lr||!Or||fa())){Yt.next=2;break}return Yt.abrupt("return");case 2:if(Vt=Vr(En),nn=s()(Vt,2),fn=nn[0],hn=nn[1],console.log(">>> save",fn,hn),!Ar(hn)){Yt.next=6;break}return Yt.abrupt("return");case 6:return Ir(!0),Yt.prev=7,Yt.next=10,Or(fn,hn);case 10:jn==null||jn(),Yt.next=16;break;case 13:Yt.prev=13,Yt.t0=Yt.catch(7),console.error(Yt.t0);case 16:Ir(!1);case 17:case"end":return Yt.stop()}},Dt,null,[[7,13]])}));return function(){return Mt.apply(this,arguments)}}(),z=function(){var Mt=ir()(Sn()().mark(function Dt(){var Vt,nn,fn,hn;return Sn()().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(!(lr||!ar||fa())){Yt.next=2;break}return Yt.abrupt("return");case 2:if(Vt=Vr(En),nn=s()(Vt,2),fn=nn[0],hn=nn[1],!Ar(hn)){Yt.next=5;break}return Yt.abrupt("return");case 5:return Ir(!0),Yt.prev=6,Yt.next=9,ar(fn,hn);case 9:Yt.next=14;break;case 11:Yt.prev=11,Yt.t0=Yt.catch(6),console.error(Yt.t0);case 14:Ir(!1);case 15:case"end":return Yt.stop()}},Dt,null,[[6,11]])}));return function(){return Mt.apply(this,arguments)}}(),ue=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:Pe===W.je.Review&&aa&&aa.apply(void 0,Qt()(Vr(En)));case 1:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}(),Ce=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:Pe===W.je.Review&&Pr&&Pr.apply(void 0,Qt()(Vr(En)));case 1:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}(),Re=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:Pe===W.je.Review&&hr&&hr.apply(void 0,Qt()(Vr(En)));case 1:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}(),rt=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!(Pe===W.je.Edit&&mr)){nn.next=3;break}return vt.confirm({getContainer:function(){return document.body},content:$r("DDSAnnotator.confirmLeave.content"),cancelText:$r("DDSAnnotator.confirmLeave.cancel"),okText:$r("DDSAnnotator.confirmLeave.ok"),okButtonProps:{danger:!0},onOk:function(){ua&&ua()}}),nn.abrupt("return");case 3:ua&&ua();case 4:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}();return{onSaveAnnotations:Y,onCommitAnnotations:z,onCancelAnnotations:rt,onRejectAnnotations:ue,onAcceptAnnotations:Ce,onModifyAnnotations:Re}},Lr=na,Zr=e(97375),ca;(function(Ue){})(ca||(ca={}));function Ta(Ue,he,Pe){return eo.apply(this,arguments)}function eo(){return eo=ir()(Sn()().mark(function Ue(he,Pe,Un){var vt;return Sn()().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return vt="".concat("https://api.deepdataspace.com","/tasks/").concat(he),En.abrupt("return",(0,Zr.request)(vt,t()({method:"POST",data:t()({},Pe)},Un||{hideCodeErrorMsg:!0})));case 2:case"end":return En.stop()}},Ue)})),eo.apply(this,arguments)}function Va(Ue,he){var Pe="".concat("https://api.deepdataspace.com","/task_statuses/").concat(Ue);return(0,Zr.request)(Pe,t()({method:"GET"},he||{}))}function Xt(Ue,he){return In.apply(this,arguments)}function In(){return In=ir()(Sn()().mark(function Ue(he,Pe){var Un,vt,zn,En,On=arguments;return Sn()().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:Un=On.length>2&&On[2]!==void 0?On[2]:5e3,vt=On.length>3&&On[3]!==void 0?On[3]:1e3,zn=0;case 3:if(!(znqn?cr.score:qn},((Dt=Vt[0])===null||Dt===void 0?void 0:Dt.score)||0),bn=Vt.map(function(qn){var cr=t()({},(0,qr.JP)(qn.bbox,Fn,mr)),Dr=qn.score/hn;return{rect:t()(t()({},cr),{},{visible:!0}),labelId:En.latestLabelId,type:Q.gr.Rectangle,hidden:!1,status:Dr>=fn?W.TK.Checked:W.TK.Unchecked,conf:Dr,color:fr(En.latestLabelId,!0)}}).reverse(),zn(function(qn){qn.isBatchEditing=!0,qn.limitConf=fn;var cr=qn.objectList.filter(function(Dr){return(Dr==null?void 0:Dr.status)===W.TK.Commited});qn.objectList=[].concat(Qt()(cr),Qt()(bn)),qn.creatingObject&&qn.objectList[qn.activeObjectIndex]&&(qn.creatingObject=t()({},qn.objectList[qn.activeObjectIndex])),qn.prompt.sessionId=Mt}),Ln.abrupt("return",!0);case 18:case"end":return Ln.stop()}},Y)}));return function(z,ue){return Ar.apply(this,arguments)}}(),aa=function(){var Ar=ir()(Sn()().mark(function Y(z,ue){var Ce,Re,rt,Mt,Dt,Vt,nn,fn;return Sn()().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(!(!Pe||!ue)){bn.next=2;break}return bn.abrupt("return");case 2:if(Ce={prompts:hr(ue||[]),labelTypes:["bbox"]},!z.prompt.sessionId){bn.next=7;break}Object.assign(Ce,{sessionId:z.prompt.sessionId}),bn.next=11;break;case 7:return bn.next=9,Ia(Pe.url);case 9:Re=bn.sent,Object.assign(Ce,{promptImage:Re,inferImage:Re});case 11:return bn.next=13,Tn(Q.HE.IVP,Ce);case 13:if(rt=bn.sent,Mt=rt.result,Dt=rt.sessionId,!Mt){bn.next=22;break}return Vt=Mt.objects,nn=.3,fn=Vt.filter(function(Yt){return Yt.bbox}).map(function(Yt){var Ln=Yt.bbox,qn=s()(Ln,4),cr=qn[0],Dr=qn[1],Rr=qn[2],Aa=qn[3],xa=(0,qr.$S)((0,qr.Aw)({xmin:cr,ymin:Dr,xmax:Rr,ymax:Aa}),Fn,mr);return{rect:t()(t()({},xa),{},{visible:!0}),labelId:En.latestLabelId,type:Q.gr.Rectangle,hidden:!1,status:Yt.score>=nn?W.TK.Checked:W.TK.Unchecked,conf:Yt.score,color:fr(En.latestLabelId,!0)}}).reverse(),zn(function(Yt){Yt.isBatchEditing=!0,Yt.limitConf=nn;var Ln=Yt.objectList.filter(function(qn){return qn.status===W.TK.Commited});Yt.objectList=[].concat(Qt()(Ln),Qt()(fn)),Yt.creatingObject&&Yt.objectList[Yt.activeObjectIndex]&&(Yt.creatingObject=t()({},Yt.objectList[Yt.activeObjectIndex])),Yt.prompt.promptsQueue=ue,Yt.prompt.sessionId=Dt,Yt.prompt.creatingPrompt=void 0}),bn.abrupt("return",!0);case 22:case"end":return bn.stop()}},Y)}));return function(z,ue){return Ar.apply(this,arguments)}}(),Jn=function(){var Ar=ir()(Sn()().mark(function Y(z,ue){var Ce,Re,rt,Mt,Dt,Vt,nn;return Sn()().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(!(!Pe||!ue)){hn.next=2;break}return hn.abrupt("return");case 2:if(Ce={prompts:hr(ue||[]),labelTypes:["mask"]},!z.prompt.sessionId){hn.next=7;break}Object.assign(Ce,{sessionId:z.prompt.sessionId}),hn.next=11;break;case 7:return hn.next=9,Ia(Pe.url);case 9:Re=hn.sent,Object.assign(Ce,{promptImage:Re,inferImage:Re});case 11:return hn.next=13,Tn(Q.HE.IVP,Ce);case 13:if(rt=hn.sent,Mt=rt.result,Dt=rt.sessionId,!Mt){hn.next=22;break}return On(function(bn){bn.annotsDisplayOptions.colorByCategory=!1}),Vt=Mt.objects,nn=Vt.filter(function(bn){return!!bn.mask}).map(function(bn){var Yt,Ln=fr(En.latestLabelId),qn=((Yt=bn.mask)===null||Yt===void 0?void 0:Yt.counts)||"";return{type:Q.gr.Mask,hidden:!1,labelId:En.latestLabelId,maskRle:qn,maskCanvasElement:(0,yr.ei)(qn,Fn,Ln),status:W.TK.Checked,conf:bn.score,color:fr(En.latestLabelId,!0)}}),zn(function(bn){bn.isBatchEditing=!0;var Yt=bn.objectList.filter(function(Ln){return Ln.status===W.TK.Commited});bn.objectList=[].concat(Qt()(Yt),Qt()(nn)),bn.creatingObject&&bn.objectList[bn.activeObjectIndex]&&(bn.creatingObject=t()({},bn.objectList[bn.activeObjectIndex])),bn.prompt.promptsQueue=ue,bn.prompt.sessionId=Dt,bn.prompt.creatingPrompt=void 0}),hn.abrupt("return",!0);case 22:case"end":return hn.stop()}},Y)}));return function(z,ue){return Ar.apply(this,arguments)}}(),fa=function(){var Ar=ir()(Sn()().mark(function Y(z,ue){var Ce,Re,rt,Mt,Dt,Vt,nn,fn;return Sn()().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(ue){bn.next=2;break}return bn.abrupt("return");case 2:return bn.next=4,ar(z,{density:z.pointResolution,prompts:hr(ue||[])});case 4:return Ce=bn.sent,bn.next=7,Tn(Q.HE.SegmentByPolygon,Ce);case 7:if(Re=bn.sent,rt=Re.result,Mt=Re.sessionId,!rt){bn.next=17;break}if(Dt=rt.polygons,!(Dt&&Dt.length>0)){bn.next=17;break}return nn=Dt.filter(function(Yt){return Yt.length>=6}).map(function(Yt){for(var Ln=[],qn=0;qn-1&&Mt[z.activeObjectIndex]&&z.creatingObject&&(Mt[z.activeObjectIndex]=t()(t()({},Mt[z.activeObjectIndex]),z.creatingObject)),Dt=Mt.filter(function(cr){return cr.type===Q.gr.Skeleton&&cr.status===W.TK.Checked}),Dt.length>0&&(Vt=Dt.map(function(cr){return{keypoints:cr.keypoints?(0,qr.$G)(cr.keypoints.points,Fn,mr).points:void 0,bbox:cr.rect?(0,qr.cx)(cr.rect,mr,Fn):void 0}}),Object.assign(rt,{objects:Vt}))),qn.next=7,Tn(Q.HE.Pose,rt);case 7:if(nn=qn.sent,fn=nn.result,hn=nn.sessionId,!fn){qn.next=16;break}if(bn=fn.objects,!(bn&&bn.length>0)){qn.next=16;break}return Yt=bn.map(function(cr){var Dr=cr.bbox,Rr=cr.keypoints,Aa=cr.score,xa={labelId:En.latestLabelId,color:fr(En.latestLabelId),type:Q.gr.Skeleton,hidden:!1,conf:Aa,status:W.TK.Checked};if(Dr){var pa=(0,qr.JP)(Dr,Fn,mr);Object.assign(xa,{rect:t()({visible:!0},pa)})}if(Rr&&ue&&Re&&Ce){var za=(0,qr.OX)(Rr,Ce,Re,Fn,mr);Object.assign(xa,{keypoints:{points:za,lines:ue}})}return xa}),zn(function(cr){cr.isBatchEditing||(cr.isBatchEditing=!0);var Dr=cr.objectList.filter(function(Rr){return Rr.status===W.TK.Commited});cr.objectList=[].concat(Qt()(Dr),Qt()(Yt)),cr.creatingObject&&cr.objectList[cr.activeObjectIndex]&&(cr.creatingObject=t()({},cr.objectList[cr.activeObjectIndex])),cr.prompt.sessionId=hn}),qn.abrupt("return",!0);case 16:case"end":return qn.stop()}},Y)}));return function(z){return Ar.apply(this,arguments)}}(),lr=function(){var Ar=ir()(Sn()().mark(function Y(z){var ue,Ce,Re,rt,Mt,Dt,Vt,nn,fn,hn,bn,Yt,Ln,qn,cr;return Sn()().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:if(!(!((ue=z.prompt.creatingPrompt)!==null&&ue!==void 0&&ue.stroke)||!((Ce=z.prompt.creatingPrompt)!==null&&Ce!==void 0&&Ce.radius))){Rr.next=2;break}return Rr.abrupt("return");case 2:if(rt=z.prompt.creatingPrompt,Mt=rt.stroke,Dt=rt.radius,Vt=z.objectList.filter(function(Aa){return Aa.type===Q.gr.Mask}),!(Vt.length<2)){Rr.next=8;break}return S.ZP.error(jn("DDSAnnotator.smart.tip.edgeStitchError")),vt(function(Aa){Aa.prompt.creatingPrompt=void 0}),Rr.abrupt("return");case 8:return nn=Vt.map(function(Aa){return{counts:Aa.maskRle||"",size:[Fn.height,Fn.width]}}),fn=Mt.reduce(function(Aa,xa){var pa=xa.x,za=xa.y,ha=(0,qr.AR)([pa,za],Fn,mr);return Aa.concat([ha.x,ha.y])},[]),Rr.next=12,ar(z,{masks:nn,prompts:[{type:W.Ae.Stroke,stroke:fn,radius:Dt}]});case 12:return hn=Rr.sent,Rr.next=15,Tn(Q.HE.MaskEdgeStitching,hn);case 15:if(bn=Rr.sent,Yt=bn.result,Ln=bn.sessionId,!(Yt&&((Re=Yt.masks)===null||Re===void 0?void 0:Re.length)>0)){Rr.next=23;break}return qn=Vt.map(function(Aa,xa){var pa,za,ha=((pa=Yt.masks)===null||pa===void 0||(za=pa[xa])===null||za===void 0?void 0:za.counts)||"";return t()(t()({},Aa),{},{maskRle:ha,maskCanvasElement:(0,yr.ei)(ha,Fn,Aa.color)})}),cr=z.objectList.filter(function(Aa){return Aa.type!==Q.gr.Mask}),zn(function(Aa){Aa.objectList=[].concat(Qt()(cr),Qt()(qn)),Aa.prompt.creatingPrompt=void 0,Aa.prompt.sessionId=Ln}),Rr.abrupt("return",!0);case 23:case"end":return Rr.stop()}},Y)}));return function(z){return Ar.apply(this,arguments)}}(),Ir=function(){var Ar=ir()(Sn()().mark(function Y(z){var ue,Ce,Re,rt,Mt;return Sn()().wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(Pe){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.t0=t(),Vt.next=5,Ia(Pe.url);case 5:return Vt.t1=Vt.sent,Vt.t2={image:Vt.t1},Vt.t3=z,Ce=(0,Vt.t0)(Vt.t2,Vt.t3),Vt.next=11,Tn(Q.HE.SegmentEverything,Ce);case 11:if(Re=Vt.sent,rt=Re.result,!(rt&&((ue=rt.masks)===null||ue===void 0?void 0:ue.length)>0)){Vt.next=18;break}return On(function(nn){nn.annotsDisplayOptions.colorByCategory=!1}),Mt=rt.masks.map(function(nn){var fn=fr(En.latestLabelId),hn=(nn==null?void 0:nn.counts)||"";return{type:Q.gr.Mask,hidden:!1,labelId:En.latestLabelId,maskRle:hn,maskCanvasElement:(0,yr.ei)(hn,Fn,fn),conf:1,status:W.TK.Checked,color:fn}}),zn(function(nn){nn.objectList=Mt,nn.isBatchEditing=!0}),Vt.abrupt("return",!0);case 18:case"end":return Vt.stop()}},Y)}));return function(z){return Ar.apply(this,arguments)}}(),Vr=(0,g.useCallback)(function(){var Ar=ir()(Sn()().mark(function Y(z){var ue,Ce,Re,rt,Mt,Dt,Vt,nn,fn,hn;return Sn()().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(ue=z.type,Ce=z.drawData,Re=z.text,rt=z.promptsQueue,Mt=z.segmentEverythingParams,!(En.isRequiring||!Pe)){Yt.next=3;break}return Yt.abrupt("return");case 3:Dt=Ce||Un,Vt=S.ZP.loading(jn("DDSAnnotator.smart.msg.loading"),1e5),Yt.prev=5,Or(!0),On(function(Ln){Ln.isRequiring=!0}),nn=ue||Q.Zo[Dt.selectedTool],Yt.t0=nn,Yt.next=Yt.t0===Q.gr.Rectangle?12:Yt.t0===Q.gr.Skeleton?22:Yt.t0===Q.gr.Polygon?26:Yt.t0===Q.gr.Mask?30:54;break;case 12:if(Dt.selectedModel[Dt.selectedTool]!==Q.HE.Detection){Yt.next=18;break}return Yt.next=15,Pr(Dt,Re||"");case 15:fn=Yt.sent,Yt.next=21;break;case 18:return Yt.next=20,aa(Dt,rt);case 20:fn=Yt.sent;case 21:return Yt.abrupt("break",56);case 22:return Yt.next=24,$r(Dt);case 24:return fn=Yt.sent,Yt.abrupt("break",56);case 26:return Yt.next=28,fa(Dt,rt);case 28:return fn=Yt.sent,Yt.abrupt("break",56);case 30:if(hn=Dt.selectedModel[Dt.selectedTool],hn!==Q.HE.SegmentEverything){Yt.next=44;break}if(Dt.selectedSubTool!==Q.jB.AutoEdgeStitching){Yt.next=38;break}return Yt.next=35,lr(Dt);case 35:fn=Yt.sent,Yt.next=42;break;case 38:if(Dt.selectedSubTool!==Q.jB.AutoSegmentEverything){Yt.next=42;break}return Yt.next=41,Ir(Mt);case 41:fn=Yt.sent;case 42:Yt.next=53;break;case 44:if(hn!==Q.HE.IVP){Yt.next=50;break}return Yt.next=47,Jn(Dt,rt);case 47:fn=Yt.sent,Yt.next=53;break;case 50:return Yt.next=52,Qr(Dt,rt);case 52:fn=Yt.sent;case 53:return Yt.abrupt("break",56);case 54:return S.ZP.warning("Plan to Support!"),Yt.abrupt("break",56);case 56:fn&&S.ZP.success(jn("DDSAnnotator.smart.msg.success")),Yt.next=63;break;case 59:Yt.prev=59,Yt.t1=Yt.catch(5),zn(function(Ln){Ln.prompt.creatingPrompt&&(Ln.prompt.creatingPrompt=void 0)}),S.ZP.error(jn("DDSAnnotator.smart.msg.error"));case 63:return Yt.prev=63,Or(!1),On(function(Ln){Ln.isRequiring=!1}),vt(function(Ln){Ln.prompt.activeRectWhileLoading=void 0}),Vt(),Yt.finish(63);case 69:case"end":return Yt.stop()}},Y,null,[[5,59,63,69]])}));return function(Y){return Ar.apply(this,arguments)}}(),[Un,Pe,En,Fn,mr,fr,zn]);return{onAiAnnotation:Vr}},Co=fo;function _a(Ue){var he=Ue.setDrawDataWithHistory,Pe=Ue.categories,Un=(0,g.useCallback)(function(En,On){var Fn=Pe.find(function(mr){return mr.id===En.labelId});if(Fn!=null&&Fn.attributes&&Fn.attributes.length>0)return{index:On,labelId:En.labelId,attributes:Fn.attributes,values:En.attributes||[]}},[Pe]),vt=(0,g.useCallback)(function(En){he(function(On){if(On.editingAttribute){if(On.objectList[On.editingAttribute.index])On.objectList[On.editingAttribute.index].attributes=En;else{var Fn=On.classifications.findIndex(function(fr){var or;return fr.labelId===((or=On.editingAttribute)===null||or===void 0?void 0:or.labelId)});if(Fn>-1)On.classifications[Fn].attributes=En;else{var mr;On.classifications.push({labelId:(mr=On.editingAttribute)===null||mr===void 0?void 0:mr.labelId,labelValue:null,attributes:En})}}On.editingAttribute=void 0}})},[he]),zn=function(){he(function(On){On.editingAttribute=void 0})};return{judgeEditingAttribute:Un,onConfirmAttibuteEdit:vt,onCancelAttibuteEdit:zn}}var bo=e(95073),so=e(43112),Sa=e(5397),Ba=e(21325),Mo=e(68716),Ko={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Jo=function(Ue){var he=(0,so.CR)((0,Sa.Z)(Ko),2),Pe=he[0],Un=he[1];return(0,Ba.Z)("mousemove",function(vt){var zn=vt.screenX,En=vt.screenY,On=vt.clientX,Fn=vt.clientY,mr=vt.pageX,fr=vt.pageY,or={screenX:zn,screenY:En,clientX:On,clientY:Fn,pageX:mr,pageY:fr,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},jn=(0,Mo.n)(Ue);if(jn){var ua=jn.getBoundingClientRect(),Or=ua.left,ar=ua.top,hr=ua.width,Pr=ua.height;or.elementPosX=Or+window.pageXOffset,or.elementPosY=ar+window.pageYOffset,or.elementX=mr-or.elementPosX,or.elementY=fr-or.elementPosY,or.elementW=hr,or.elementH=Pr}Un(or)},{target:function(){return document}}),Pe},ao=e(41260);function yi(Ue){var he=Ue.isRequiring,Pe=Ue.visible,Un=Ue.minPadding,vt=Un===void 0?{top:0,left:0}:Un,zn=Ue.allowMove,En=Ue.drawData,On=Ue.cursorSize,Fn=Ue.onClickMaskBg,mr=Ue.hideReferenceLine,fr=(0,g.useRef)(null),or=(0,bo.Z)(function(){return fr.current}),jn=Jo(function(){return fr.current}),ua=(0,g.useState)({width:0,height:0}),Or=s()(ua,2),ar=Or[0],hr=Or[1],Pr=(0,M.x)({width:ar.width,height:ar.height,scale:1}),aa=s()(Pr,2),Jn=aa[0],fa=aa[1],Qr=(0,g.useRef)({x:0,y:0}),$r=(0,g.useRef)(void 0),lr=(0,g.useMemo)(function(){return t()(t()({},jn),{},{elementW:Jn.width,elementH:Jn.height,elementX:jn.elementX-Qr.current.x,elementY:jn.elementY-Qr.current.y})},[jn,Jn]),Ir=(0,M.x)(null),Vr=s()(Ir,2),Ar=Vr[0],Y=Vr[1],z=function(Rr,Aa){if(Rr!=null&&Rr.width&&Aa!==null&&Aa!==void 0&&Aa.height){var xa=Aa.width,pa=Aa.height,za=(0,qr.t9)(Rr.width,Rr.height,xa-vt.left*2,pa-vt.top*2),ha=s()(za,3),Yr=ha[0],$a=ha[1],Xa=ha[2];Qr.current={x:(xa-Yr)*.5,y:(pa-$a)*.5},fa({scale:Xa,width:Rr.width*Xa,height:Rr.height*Xa}),$r.current=void 0}};(0,g.useEffect)(function(){ar&&or&&z(ar,or)},[or]);var ue=function(){if(or){var Rr=or==null?void 0:or.width,Aa=or==null?void 0:or.height,xa=.5,pa=.5,za=Rr/2,ha=Aa/2;$r.current&&(xa=$r.current.posRatioX,pa=$r.current.posRatioY,za=$r.current.mouseX,ha=$r.current.mouseY);var Yr=za-Jn.width*xa,$a=ha-Jn.height*pa;Qr.current={x:Yr,y:$a}}};(0,g.useEffect)(function(){ue()},[Jn]);var Ce=function(Rr,Aa,xa){!Pe||he||fa(function(pa){var za=Rr?Math.min(Q.Fv,(0,ao.O)(pa.scale+Aa,2)):Math.max(Q.vL,(0,ao.O)(pa.scale-Aa,2));if((!$r.current||jn.elementX!==$r.current.mouseX||jn.elementY!==$r.current.mouseY)&&!xa&&!isNaN(lr.elementX)&&!isNaN(jn.elementX)&&Jn.width){var ha={posRatioX:lr.elementX/Jn.width,posRatioY:lr.elementY/Jn.height,mouseX:jn.elementX,mouseY:jn.elementY};$r.current=ha}pa.scale=za,pa.width=ar.width*za,pa.height=ar.height*za})},Re=(0,g.useCallback)(function(){Ce(!0,Q.yj,!0)},[Q.yj,Ce]),rt=(0,g.useCallback)(function(){Ce(!1,Q.yj,!0)},[Q.yj,Ce]),Mt=function(Rr){if(!(!Pe||he)){var Aa=Rr.deltaY;Aa>0?Ce(!1,Q.oP):Aa<0&&Ce(!0,Q.oP)}},Dt=(0,g.useCallback)(function(){$r.current=void 0,or&&ar&&z(ar,or)},[ar.width,ar.height,or==null?void 0:or.width,or==null?void 0:or.height]);(0,g.useEffect)(function(){Pe||(hr({width:0,height:0}),fa({scale:1,width:0,height:0}),Qr.current={x:0,y:0},$r.current=void 0)},[Pe]);var Vt=(0,g.useState)(!1),nn=s()(Vt,2),fn=nn[0],hn=nn[1];(0,Ba.Z)("mousedown",function(){!Pe||!fr.current||!(0,qr.jt)(jn)||(hn(!0),Y({x:lr.elementX,y:lr.elementY}))}),(0,Ba.Z)("mousemove",function(){if(Pe&&Ar&&zn&&fn){var Dr=lr.elementX-Ar.x,Rr=lr.elementY-Ar.y,Aa=Qr.current,xa=Aa.x,pa=Aa.y;Qr.current={x:xa+Dr,y:pa+Rr}}}),(0,Ba.Z)("mouseup",function(){if(hn(!1),!(!Pe||!zn)&&Ar){Y(null);return}}),(0,g.useEffect)(function(){Y(zn?{x:lr.elementX,y:lr.elementY}:null)},[zn]);var bn=function(Rr,Aa){var xa=Rr.target,pa={width:xa.naturalWidth,height:xa.naturalHeight};hr(pa),or&&pa&&!Aa&&z(pa,or)},Yt=function(Rr){(0,qr.jt)(lr)||Fn==null||Fn(Rr)},Ln=(0,g.useMemo)(function(){var Dr=[Q.jB.AutoEdgeStitching,Q.jB.AutoSegmentByStroke,Q.jB.BrushAdd,Q.jB.BrushErase].includes(En.selectedSubTool);return En.creatingObject&&En.activeObjectIndex>-1&&[Q.gr.Mask,Q.gr.Polygon].includes(En.creatingObject.type)?Dr:En.selectedTool!==Q.ru.Drag&&!En.isBatchEditing?[Q.ru.Mask,Q.ru.Polygon].includes(En.selectedTool)&&Dr:!1},[En.selectedTool,En.selectedSubTool]),qn=(0,g.useMemo)(function(){return En.selectedTool!==Q.ru.Drag&&!Ln&&!mr},[En.selectedTool,Ln,mr]),cr=function(Rr){var Aa=Rr.children,xa=Rr.className;return Pe?(0,x.jsxs)("div",{ref:fr,onWheel:Mt,onClick:Yt,className:xa,children:[Aa,qn&&!zn&&(0,qr.jt)(lr)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",width:jn.elementX-18,height:1,left:0,top:0,transform:"translateY(".concat(jn.elementY,"px)")}}),(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",height:1,width:jn.elementW-jn.elementX-18,right:0,top:0,transform:"translateY(".concat(jn.elementY,"px)")}}),(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",width:1,height:jn.elementY-18,left:0,top:0,transform:"translateX(".concat(jn.elementX-1,"px")}}),(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",width:1,height:jn.elementH-jn.elementY-18,left:0,bottom:0,transform:"translateX(".concat(jn.elementX-1,"px")}})]}),Ln&&On>0&&(0,qr.jt)(jn)&&(0,qr.jt)(lr)&&!zn&&(0,x.jsx)("div",{style:{position:"fixed",backgroundColor:"rgba(255, 255, 255, 0.5)",border:"1px solid rgba(255, 255, 255, 0.7)",width:On*Jn.scale,height:On*Jn.scale,borderRadius:On*Jn.scale/2,left:0,top:0,transformOrigin:"top left",transform:"translate(".concat(jn.clientX-On*Jn.scale/2,"px, ").concat(jn.clientY-On*Jn.scale/2,"px)")}})]}):null};return{CanvasContainer:cr,scale:Jn.scale,containerRef:fr,naturalSize:ar,clientSize:{width:Jn.width,height:Jn.height},containerSize:or,containerMouse:t()(t()({},jn),{},{elementW:(or==null?void 0:or.width)||jn.elementW,elementH:(or==null?void 0:or.height)||jn.elementH}),contentMouse:lr,imagePos:Qr,isMousePress:fn,onLoadImg:bn,onZoomIn:Re,onZoomOut:rt,onWheelMove:Mt,onReset:Dt}}var ji=function(he){var Pe=he.index,Un=he.targetElement,vt=he.imagePos;return(0,x.jsx)(A,{children:(0,x.jsx)("div",{className:"dds-annotator-popover-menu",style:{left:Un.x+vt.x+5,top:Un.y+vt.y+5},children:(0,x.jsx)("div",{className:"dds-annotator-popover-menu-content",children:(0,x.jsx)("span",{className:"dds-annotator-popover-menu-text",children:"".concat(Pe+1," ").concat(Un.name)})})})})},_o=ji,Bo=e(34095),oi=e(14464),ri=e(81179),Si=function(he){var Pe=he.visible,Un=he.drawData,vt=he.editState,zn=he.clientSize,En=he.imagePos,On=he.containerMouse,Fn=he.canvasRef,mr=he.activeCanvasRef,fr=he.imgRef,or=he.objectHooksMap,jn=he.videoLoading,ua=function(lr,Ir,Vr){var Ar=[(0,oi.a7)(Ir,Bo.rl.DEFAULT),(0,oi.a7)(Ir,Bo.mh.DEFAULT),Bo.s_.DEFAULT],Y=Ar[0],z=Ar[1],ue=Ar[2];return Vr==="focus"?(ue=Bo.s_.FOCUS,Y=(0,oi.a7)(Ir,Bo.rl.FOCUS),z=(0,oi.a7)(Ir,Bo.mh.FOCUS)):Vr==="justCreated"?(ue=Bo.s_.JUST_CREATED,z=(0,oi.a7)(Ir,Bo.mh.JUST_CREATED)):Vr==="editing"?(ue=Bo.s_.CREATING,Y=(0,oi.a7)(Ir,Bo.rl.CREATING),z=(0,oi.a7)(Ir,Bo.mh.CREATING)):Vr==="creating"&&(ue=Bo.s_.CREATING,Y=Bo.XQ.CREATING,z=Bo.Bt.CREATING),t()({strokeColor:Y,fillColor:z,maskAlpha:ue,strokeDash:[0],thickness:2,pointAplha:1},lr.customStyles||{})},Or=function(lr){var Ir=ua(lr,lr.color,"creating");or[lr.type].renderCreatingObject({object:lr,color:lr.color,styles:Ir})},ar=function(lr){if(!lr.hidden){var Ir=(0,qr.lT)(lr,{x:-En.current.x,y:-En.current.y}),Vr=vt.focusObjectIndex===Un.activeObjectIndex,Ar=ua(lr,lr.color,Vr?"focus":"editing");or[lr.type].renderEditingObject({object:Ir,color:lr.color,styles:Ar,isFocus:Vr})}},hr=function(lr){var Ir=lr.prompt;if(Ir.creatingPrompt||Ir.promptsQueue||Ir.activeRectWhileLoading){var Vr,Ar;lr.selectedTool===Q.ru.Mask||((Vr=lr.creatingObject)===null||Vr===void 0?void 0:Vr.type)===Q.gr.Mask?or[Q.gr.Mask].renderPrompt({prompt:Ir}):lr.selectedTool===Q.ru.Polygon||((Ar=lr.creatingObject)===null||Ar===void 0?void 0:Ar.type)===Q.gr.Polygon?or[Q.gr.Polygon].renderPrompt({prompt:Ir}):lr.selectedTool===Q.ru.Rectangle&&lr.selectedModel[lr.selectedTool]===Q.HE.IVP&&or[Q.gr.Rectangle].renderPrompt({prompt:Ir})}},Pr=function(lr){if(!(!Pe||!mr.current)){(0,ri.ix)(mr.current,{width:On.elementW,height:On.elementH}),mr.current.getContext("2d").imageSmoothingEnabled=!1,(0,ri.UN)(mr.current);var Ir=lr||Un;Ir.creatingObject&&(Ir.activeObjectIndex>-1?ar(Ir.creatingObject):Or(Ir.creatingObject)),hr(Ir)}},aa=function(lr,Ir,Vr){var Ar=(0,qr.lT)(lr,{x:-En.current.x,y:-En.current.y}),Y=Ar.type,z=Ir?"focus":Vr?"justCreated":void 0,ue=ua(lr,lr.color,z);(0,ri.M5)(Fn.current,Un.creatingObject?.6:1),or[Y].renderObject({object:Ar,color:lr.color,styles:ue,isFocus:Ir,isJustCreated:Vr})},Jn=function(lr,Ir){lr.forEach(function(Vr,Ar){var Y;if(!(Vr.hidden||Ar===Ir||Ar===vt.focusObjectIndex||Vr.frameEmpty)){var z=((Y=Un.editingAttribute)===null||Y===void 0?void 0:Y.index)===Ar,ue=!vt.isCtrlPressed&&Vr.status===W.TK.Checked||Un.isJustCreated&&Ar===lr.length-1;aa(Vr,z,ue)}})},fa=function(lr){if(!(!Pe||!Fn.current||!fr.current||!fr.current.complete)){if(jn){(0,ri.UN)(Fn.current);return}(0,ri.ix)(Fn.current,{width:On.elementW,height:On.elementH}),Fn.current.getContext("2d").imageSmoothingEnabled=!1,(0,ri.UN)(Fn.current),(0,ri.KJ)(Fn.current,vt.imageDisplayOptions.brightness,vt.imageDisplayOptions.contrast,vt.imageDisplayOptions.saturate),(0,ri.AE)(Fn.current,fr.current,{x:En.current.x,y:En.current.y,width:zn.width,height:zn.height}),(0,ri.ku)(Fn.current);var Ir=lr||Un;if(Jn(Ir.objectList,Ir.activeObjectIndex),Pr(Ir),vt.focusObjectIndex>-1&&vt.focusObjectIndex!==Un.activeObjectIndex&&Ir.objectList[vt.focusObjectIndex]&&!Ir.objectList[vt.focusObjectIndex].hidden&&!Ir.objectList[vt.focusObjectIndex].frameEmpty&&aa(Ir.objectList[vt.focusObjectIndex],!0,!1),Un.highlightCategory){var Vr=Ir.objectList.filter(function(Ar){return Ar.labelId===Un.highlightCategory.id});Vr.forEach(function(Ar){aa(Ar,!0,!1)})}}},Qr=function(){if(vt.focusObjectIndex>-1&&Un.objectList[vt.focusObjectIndex]&&!Un.objectList[vt.focusObjectIndex].hidden&&vt.focusEleIndex>-1&&vt.focusEleType===Q.Yq.Circle){var lr,Ir,Vr=(lr=Un.objectList[vt.focusObjectIndex].keypoints)===null||lr===void 0||(Ir=lr.points)===null||Ir===void 0?void 0:Ir[vt.focusEleIndex];if(Vr)return(0,x.jsx)(_o,{index:vt.focusEleIndex,targetElement:Vr,imagePos:En.current})}return(0,x.jsx)(x.Fragment,{})};return{updateRender:fa,renderPopoverMenu:Qr}},Ni=Si;function Ei(Ue){var he=Ue.categories,Pe=Ue.editState,Un=Ue.forceColorByObject,vt=(0,g.useMemo)(function(){return(0,oi.Cj)(he.map(function(Fn){return Fn.id}))},[he]),zn=(0,g.useRef)(0),En=function(mr){var fr=.618;zn.current=mr+fr;var or=(mr+fr)%1,jn=(0,oi.WE)(or,.8,.95);return(0,oi.ZT)(jn)};(0,g.useEffect)(function(){zn.current=0},[Pe.annotsDisplayOptions.colorByCategory]);var On=(0,g.useCallback)(function(Fn,mr){if(!Un&&(Pe.annotsDisplayOptions.colorByCategory||mr)){var fr=he.find(function(or){return or.id===Fn});return(fr==null?void 0:fr.renderColor)||vt[Fn]||"#fff"}else return En(zn.current)},[Pe.annotsDisplayOptions.colorByCategory,vt,En,zn.current,Un]);return{labelColors:vt,getAnnotColor:On}}function to(Ue,he){var Pe=(0,g.useRef)(),Un=(0,g.useRef)(),vt=typeof he=="function"?he(Un.current,Ue):!0;vt&&(Pe.current=Un.current,Un.current=Ue);var zn=function(){Pe.current=void 0};return[Pe.current,zn]}var Ga=function(he){var Pe=he.imagePos,Un=he.clientSize,vt=he.naturalSize,zn=he.annotations,En=he.setAnnotations,On=he.drawData,Fn=he.setDrawData,mr=he.setFramesData,fr=he.editState,or=he.setEditState,jn=he.initObjectList,ua=he.updateRender,Or=he.clearHistory,ar=he.objectsFilter,hr=he.labelOptions,Pr=he.customDefaultDrawData,aa=to(Un),Jn=s()(aa,2),fa=Jn[0],Qr=Jn[1],$r=function(z,ue){if(!(!Un.width||!Un.height||!vt.width||!vt.height)){if(!On.initialized||z)jn(ue||zn);else if(On.initialized&&fa){mr&&(mr==null||mr(function(Re){Re.objects=(0,qr.nF)(Re.objects,fa,Un)}));var Ce=(0,qr.hv)(On,fa,Un);Fn(Ce),ua(Ce),Qr()}}},lr=(0,g.useCallback)(function(){Fn(t()(t()({},(0,m.cloneDeep)(W.f7)),{},{brushSize:On.brushSize,selectedTool:On.selectedTool,selectedSubTool:On.selectedSubTool,selectedModel:On.selectedModel,AIAnnotation:On.AIAnnotation},Pr))},[W.f7,Pr,On.brushSize,On.selectedSubTool,On.selectedTool,On.AIAnnotation]),Ir=(0,g.useCallback)(function(){var Y;or(t()(t()({},(0,m.cloneDeep)(W.rl)),{},{latestLabelId:(hr==null||(Y=hr[0])===null||Y===void 0?void 0:Y.id)||"",imageDisplayOptions:fr.imageDisplayOptions,annotsDisplayOptions:fr.annotsDisplayOptions}))},[W.rl,hr,fr.imageDisplayOptions,fr.annotsDisplayOptions]),Vr=(0,g.useCallback)(function(Y){var z=Y!=null&&Y.objects?Qt()(Y==null?void 0:Y.objects):[],ue=Y&&ar?ar(Y)||[]:z;En(ue),$r(!0,ue)},[ar,$r]),Ar=(0,g.useCallback)(function(Y){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;En([]),lr(),Ir(),ue&&Or(),z&&Y&&Vr(Y)},[lr,Ir,Or,Vr]);return(0,g.useEffect)(function(){ua()},[On,fr,Pe.current.x,Pe.current.y]),(0,g.useEffect)(function(){$r()},[Un.height,Un.width]),(0,g.useEffect)(function(){$r(!0)},[vt.width,vt.height]),(0,g.useEffect)(function(){hr!=null&&hr.length&&or(function(Y){if(!Y.latestLabelId||!hr.find(function(ue){return ue.id===Y.latestLabelId})){var z;Y.latestLabelId=(z=hr[0])===null||z===void 0?void 0:z.id}})},[hr]),{rebuildDrawData:$r,resetDataWithImageData:Ar}},Qo=Ga,qo=function(he){var Pe=he.clientSize,Un=he.naturalSize,vt=he.onAutoSave,zn=he.setDrawData,En=he.translateObject,On=he.framesData,Fn=he.setFramesData,mr=(0,g.useRef)(!1),fr=(0,M.x)([]),or=s()(fr,2),jn=or[0],ua=or[1],Or=(0,g.useState)(0),ar=s()(Or,2),hr=ar[0],Pr=ar[1],aa=20,Jn=function(){mr.current=!1},fa=function(z){if(vt){var ue=z.drawData.objectList.map(function(Ce){return(En==null?void 0:En(Ce))||{}});vt(ue,Un)}},Qr=(0,g.useCallback)(function(Y){Fn==null||Fn(function(ue){if(Y.framesData){var Ce;ue.activeIndex=(Ce=Y.framesData)===null||Ce===void 0?void 0:Ce.activeIndex,ue.objects=(0,qr.nF)(Y.framesData.objects,Y.clientSize,Pe)}});var z=(0,qr.hv)(Y.drawData,Y.clientSize,Pe);zn(z),fa(Y)},[Pe.width,Pe.height]),$r=(0,g.useCallback)(function(){hr>0&&(Pr(function(Y){return mr.current=jn.length>1&&Y-1!==0,Y-1}),Qr(jn[hr-1]))},[hr,jn,Qr]),lr=(0,g.useCallback)(function(){hr1&&Y+1!==0,Y+1}),Qr(jn[hr+1]))},[hr,jn,Qr]),Ir=function(z,ue){var Ce=(0,m.cloneDeep)({drawData:z,clientSize:Pe,framesData:ue||On});ua(function(Re){var rt,Mt,Dt;if(Re[hr]&&(0,m.isEqual)(Ce,Re[hr])||hr===0&&(0,m.isEqual)(Ce.drawData,(rt=Re[hr])===null||rt===void 0?void 0:rt.drawData))return Re;!ue&&Ce.framesData&&Fn&&Ce.drawData.objectList.length&&!(0,m.isEqual)(Ce.drawData.objectList,(Mt=Re[hr])===null||Mt===void 0||(Dt=Mt.drawData)===null||Dt===void 0?void 0:Dt.objectList)&&(Ce.framesData.objects=(0,qr.cf)(Ce.drawData.objectList,Ce.framesData.objects,Ce.framesData.list.length,Ce.framesData.activeIndex,Un),Fn(function(Vt){Vt.objects=(0,m.cloneDeep)(Ce.framesData.objects)})),Re.splice(hr+1),Re.push(Ce),Re.length>aa&&Re.shift(),Pr(Re.length-1),mr.current=Re.length>1&&Re.length-1!==0}),fa(Ce)},Vr=(0,g.useCallback)(function(){ua([])},[]),Ar=function(z){typeof z=="function"?zn(function(ue){z(ue),Ir((0,m.cloneDeep)(ue))}):(zn(z),Ir((0,m.cloneDeep)(z)))};return{updateHistory:Ir,undo:$r,redo:lr,clearHistory:Vr,setDrawDataWithHistory:Ar,flagSaved:Jn,hadChangeRecord:mr.current}},xo=qo;function Ro(Ue){var he=Ue.isOldMode,Pe=Ue.categories,Un=Ue.setCategories,vt=Ue.drawData,zn=Ue.setDrawData,En=Ue.editState,On=Ue.updateObjectWithoutHistory,Fn=Ue.updateAllObjectWithoutHistory,mr=vt.objectList,fr=(0,g.useMemo)(function(){if(he)return Pe;if(vt.objectList[vt.activeObjectIndex]||vt.selectedTool!==Q.ru.Drag){var Jn=vt.objectList[vt.activeObjectIndex]?Object.keys(Q.Zo).find(function(Qr){return vt.objectList[vt.activeObjectIndex].type===Q.Zo[Qr]}):vt.selectedTool,fa=Object.keys(Q.t).find(function(Qr){return Jn===Q.t[Qr]});return Pe.filter(function(Qr){return Qr.labelType===fa})}return[]},[Pe,vt.objectList,vt.activeObjectIndex,vt.selectedTool]),or=(0,g.useMemo)(function(){return(Pe==null?void 0:Pe.filter(function(Jn){return Jn.labelType===Q.Ze.Classification}))||[]},[Pe]),jn=(0,g.useCallback)(function(Jn){Pe.find(function(fa){return fa.name===Jn})||!Un||Un(function(fa){return[].concat(Qt()(fa),[{id:Jn,name:Jn}])})},[Pe]),ua=(0,g.useCallback)(function(Jn,fa){var Qr=t()({},vt.objectList[Jn]);Qr.hidden=fa,On(Qr,Jn)},[vt.objectList]),Or=(0,g.useCallback)(function(Jn,fa){var Qr=vt.objectList.map(function($r){var lr,Ir=t()({},$r);return((lr=Pe.find(function(Vr){return Vr.id===$r.labelId}))===null||lr===void 0?void 0:lr.name)===Jn&&(Ir.hidden=fa),Ir});Fn(Qr)},[vt.objectList]),ar=function(fa,Qr){var $r=t()({},vt.objectList[En.focusObjectIndex]);switch(fa){case Q.Yq.Rect:{$r.rect&&($r.rect.visible=Qr,On($r,En.focusObjectIndex));break}case Q.Yq.Polygon:{$r.polygon&&($r.polygon.visible=Qr,On($r,En.focusObjectIndex));break}}},hr=(0,g.useCallback)(function(Jn,fa){var Qr,$r,lr=(0,m.cloneDeep)(vt.objectList[vt.activeObjectIndex]),Ir=(Qr=lr.keypoints)===null||Qr===void 0||($r=Qr.points)===null||$r===void 0?void 0:$r[Jn];Ir&&(Ir.visible=fa),On(lr,vt.activeObjectIndex)},[vt.activeObjectIndex,vt.objectList]),Pr=(0,g.useCallback)(function(Jn){zn(function(fa){Jn!==fa.activeClassName&&(fa.activeClassName=Jn)})},[]);(0,g.useEffect)(function(){var Jn;if(!(vt.activeObjectIndex<0)){var fa=((Jn=Pe.find(function(Qr){return Qr.id===vt.objectList[vt.activeObjectIndex].labelId}))===null||Jn===void 0?void 0:Jn.name)||"";fa!==vt.activeClassName&&Pr(fa)}},[vt.activeObjectIndex]);var aa=(0,g.useMemo)(function(){var Jn=fr.find(function(fa){return fa.id===En.latestLabelId});return(Jn==null?void 0:Jn.labelName)||(Jn==null?void 0:Jn.name)||""},[fr,En.latestLabelId]);return{labelOptions:fr,latestLabel:aa,classificationOptions:or,curObjects:mr,onChangeObjectHidden:ua,onChangeCategoryHidden:Or,onChangeElementVisible:ar,onChangePointVisible:hr,onChangeActiveClass:Pr,onCreateCategory:jn}}var Ci=function(he){var Pe=he.topCanvas,Un=he.editState,vt=he.drawData,zn=(0,g.useCallback)(function(En,On){if(Pe){var Fn=En;if(On)switch(On){case qr.Nm.TOP:case qr.Nm.BOTTOM:Fn="ns-resize";break;case qr.Nm.TOP_LEFT:case qr.Nm.BOTTOM_RIGHT:Fn="nwse-resize";break;case qr.Nm.BOTTOM_LEFT:case qr.Nm.TOP_RIGHT:Fn="nesw-resize";break;default:Fn="ew-resize"}Fn!==Pe.style.cursor&&(Pe.style.cursor=Fn)}},[Pe]);return(0,g.useEffect)(function(){Un.allowMove?zn("grabbing"):vt.selectedTool===Q.ru.Drag?zn("grab"):zn("crosshair")},[Un.allowMove]),{updateMouseCursor:zn}},Ri=Ci,Ui=e(23671),Os=e(53807),fs=function(Ue,he){if(he===void 0&&(he=0),typeof requestAnimationFrame=="undefined")return{id:setInterval(Ue,he)};var Pe=new Date().getTime(),Un={id:0},vt=function(){var zn=new Date().getTime();zn-Pe>=he&&(Ue(),Pe=new Date().getTime()),Un.id=requestAnimationFrame(vt)};return Un.id=requestAnimationFrame(vt),Un};function Gs(Ue){return typeof cancelAnimationFrame=="undefined"}var xl=function(Ue){if(Gs(Ue.id))return clearInterval(Ue.id);cancelAnimationFrame(Ue.id)};function Kn(Ue,he,Pe){var Un=Pe==null?void 0:Pe.immediate,vt=(0,Ui.Z)(Ue),zn=(0,g.useRef)();(0,g.useEffect)(function(){if(!(!(0,Os.hj)(he)||he<0))return Un&&vt.current(),zn.current=fs(function(){vt.current()},he),function(){zn.current&&xl(zn.current)}},[he]);var En=(0,g.useCallback)(function(){zn.current&&xl(zn.current)},[]);return En}var Gr=Kn,jr=40,Br=10,ra=function(he){var Pe=he.visible,Un=he.mode,vt=he.drawData,zn=he.setDrawData,En=he.editState,On=he.setEditState,Fn=he.clientSize,mr=he.contentMouse,fr=he.categories,or=he.updateRender,jn=he.updateMouseCursor,ua=he.objectHooksMap,Or=he.imagePos,ar=he.containerMouse,hr=he.limitActiveObject,Pr=he.getAnnotColor,aa=(0,g.useRef)({topMin:0,topMax:0,leftMin:0,leftMax:0}),Jn=(0,g.useState)(void 0),fa=s()(Jn,2),Qr=fa[0],$r=fa[1];Gr(function(){var rt,Mt,Dt,Vt,nn=!1;(rt=aa.current.direction)!==null&&rt!==void 0&&rt.includes("TOP")&&Or.current.yaa.current.topMin&&(Or.current.y-=8,nn=!0),(Dt=aa.current.direction)!==null&&Dt!==void 0&&Dt.includes("LEFT")&&Or.current.xaa.current.leftMin&&(Or.current.x-=8,nn=!0),nn||$r(void 0),or()},Qr);var lr=function(){var Mt="",Dt=jr,Vt=ar.elementH-mr.elementH-jr,nn=jr,fn=ar.elementW-mr.elementW-jr;ar.elementY<=Br&&Or.current.y=ar.elementH-Br&&Or.current.y>Vt&&(Mt="BOTTOM"),ar.elementX<=Br&&Or.current.x=ar.elementW-Br&&Or.current.x>fn&&(Mt+=Mt?"_RIGHT":"RIGHT"),Mt?(aa.current={direction:Mt,topMax:Dt,topMin:Vt,leftMax:nn,leftMin:fn},$r(16)):$r(void 0)},Ir=function(){var Mt;return vt.isBatchEditing&&(vt.selectedTool===Q.ru.Rectangle&&En.isCtrlPressed?Mt=function(Vt){return Vt.status===W.TK.Unchecked}:Mt=function(Vt){return Vt.status!==W.TK.Unchecked}),Mt},Vr=function(){if((0,qr.jt)(ar)){var Mt=(0,qr.Z0)(Fn,mr,vt.activeObjectIndex,vt.objectList,Ir());if(Mt>-1&&Mt===vt.activeObjectIndex){On(function(bn){bn.focusObjectIndex=Mt});var Dt=vt.objectList[vt.activeObjectIndex],Vt=(0,qr.o7)(mr,Dt),nn=Vt.focusEleIndex,fn=Vt.focusEleType,hn=Vt.focusPolygonInfo;On(function(bn){bn.focusEleIndex=nn,bn.focusEleType=fn,bn.focusPolygonInfo=hn})}else vt.selectedTool===Q.ru.Drag||vt.isBatchEditing?On(function(bn){bn.focusObjectIndex=Mt,bn.focusEleIndex=-1,bn.focusEleType=Q.Yq.None,bn.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}}):On(function(bn){bn.focusObjectIndex=-1,bn.focusEleIndex=-1,bn.focusEleType=Q.Yq.None,bn.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}})}},Ar=(0,g.useCallback)(function(rt,Mt){if(!(rt<0)){var Dt=(Mt==null?void 0:Mt.button)===2;if(Dt){var Vt=(0,qr.RF)(Fn,mr,vt.objectList,Ir());Vt.length>0?On(function(nn){nn.foucsObjectAllIndexs=Vt}):On(function(nn){nn.foucsObjectAllIndexs=[]});return}zn(function(nn){var fn;if(nn.selectedTool===Q.ru.Rectangle&&nn.isBatchEditing&&En.isCtrlPressed)nn.objectList[rt].status=W.TK.Checked,On(function(bn){bn.focusObjectIndex=-1});else{var hn;nn.AIAnnotation=!1,nn.activeObjectIndex=rt,(hn=nn.objectList[rt])!==null&&hn!==void 0&&hn.frameEmpty?nn.creatingObject=void 0:nn.creatingObject=t()(t()({},nn.objectList[rt]),{},{currIndex:void 0,startPoint:void 0,tempMaskSteps:[],maskStep:void 0}),nn.selectedTool!==Q.ru.Drag&&nn.objectList[rt]&&Q.Zo[nn.selectedTool]!==nn.objectList[rt].type&&(nn.selectedTool=Q.ru.Drag)}((fn=nn.editingAttribute)===null||fn===void 0?void 0:fn.index)!==rt&&(nn.editingAttribute=void 0)})}},[Fn.width,Fn.height,mr,vt.objectList]),Y=function(){if(!En.foucsObjectAllIndexs.length)return(0,x.jsx)(x.Fragment,{});var Mt=function(fn){fn.stopPropagation()},Dt=function(fn){On(function(hn){hn.focusObjectIndex=fn})},Vt=function(fn){Ar(fn),On(function(hn){hn.foucsObjectAllIndexs=[]})};return(0,x.jsx)("div",{className:"dds-annotator-dropdown-options",onMouseDown:Mt,onMouseUp:Mt,onMouseMove:Mt,onContextMenu:function(fn){return fn.preventDefault()},children:En.foucsObjectAllIndexs.map(function(nn){var fn,hn,bn;return(0,x.jsxs)("div",{className:"dds-annotator-dropdown-options-object",onMouseEnter:function(){return Dt(nn)},onMouseDown:function(){return Vt(nn)},children:[(0,x.jsx)("div",{className:"dds-annotator-dropdown-options-object-dot",style:{backgroundColor:((fn=vt.objectList[nn])===null||fn===void 0?void 0:fn.color)||"#fff"}}),((hn=fr.find(function(Yt){var Ln;return Yt.id===((Ln=vt.objectList[nn])===null||Ln===void 0?void 0:Ln.labelId)}))===null||hn===void 0?void 0:hn.name)||"",vt.isBatchEditing&&" (".concat((0,ao.O)(((bn=vt.objectList[nn])===null||bn===void 0?void 0:bn.conf)||0),")")]},nn)})})},z=function(Mt){if(!(!Pe||En.allowMove||En.isRequiring||!(0,qr.jt)(mr)||!(0,qr.jt)(ar))&&(On(function(Vt){Vt.foucsObjectAllIndexs=[]}),!(vt.creatingObject&&vt.activeObjectIndex>-1&&Un===W.je.Edit&&ua[vt.creatingObject.type].startEditingWhenMouseDown({event:Mt,object:vt.creatingObject}))))if(vt.selectedTool!==Q.ru.Drag&&(!vt.isBatchEditing||vt.selectedModel[vt.selectedTool]===Q.HE.IVP)){zn(function(Vt){Vt.editingAttribute=void 0});var Dt=Q.Zo[vt.selectedTool];if(Un===W.je.Edit&&ua[Dt].startCreatingWhenMouseDown({event:Mt,object:vt.creatingObject,point:{x:mr.elementX,y:mr.elementY},basic:{hidden:!1,labelId:En.latestLabelId||fr[0].id,status:W.TK.Commited,color:Pr(En.latestLabelId||fr[0].name)}}))return}else En.focusObjectIndex>-1&&!hr?Ar(En.focusObjectIndex,Mt):(On(function(Vt){Vt.allowMove=!0}),zn(function(Vt){Vt.activeObjectIndex=-1,Vt.editingAttribute=void 0,Vt.creatingObject=void 0}))},ue=function(Mt){if(!(!Pe||En.isRequiring||En.allowMove)){if(En.focusObjectIndex>-1?jn("pointer"):vt.selectedTool!==Q.ru.Drag?jn("crosshair"):jn("grab"),vt.creatingObject&&vt.activeObjectIndex>-1){if(Un===W.je.Edit&&ua[vt.creatingObject.type].updateEditingWhenMouseMove({event:Mt,object:vt.creatingObject})){var Dt,Vt=vt.creatingObject.type===Q.gr.Mask&&!((Dt=vt.creatingObject)!==null&&Dt!==void 0&&Dt.maskStep);Vt||lr(),or();return}}else if(vt.selectedTool!==Q.ru.Drag&&vt.activeObjectIndex<0){var nn=Q.Zo[vt.selectedTool];if(Un===W.je.Edit&&ua[nn].updateCreatingWhenMouseMove({event:Mt,object:vt.creatingObject})){var fn,hn=nn===Q.gr.Mask&&!((fn=vt.creatingObject)!==null&&fn!==void 0&&fn.maskStep);hn||lr(),or();return}}Vr(),or()}},Ce=function(Mt){if($r(void 0),!(!Pe||En.isRequiring)){if(En.allowMove){On(function(Vt){Vt.allowMove=!1});return}if(vt.creatingObject&&vt.activeObjectIndex>-1){if(Un===W.je.Edit&&ua[vt.creatingObject.type].finishEditingWhenMouseUp({event:Mt,object:vt.creatingObject}))return}else if(vt.selectedTool!==Q.ru.Drag&&vt.activeObjectIndex<0){var Dt=Q.Zo[vt.selectedTool];if(Un===W.je.Edit&&ua[Dt].finishCreatingWhenMouseUp({event:Mt,object:vt.creatingObject}))return}}},Re=(0,g.useCallback)(function(rt){On(function(Mt){Mt.focusObjectIndex=rt})},[]);return(0,Ba.Z)("mousedown",function(rt){z(rt)}),(0,Ba.Z)("mousemove",function(rt){ue(rt)}),(0,Ba.Z)("mouseup",function(rt){Ce(rt)}),{selectFocusObject:Ar,forceChangeFocusObject:Re,mouseRightObjectsDropDownRender:Y}},ja=ra,Ra=function(he){var Pe=he.mode,Un=he.categories,vt=he.drawData,zn=he.setDrawData,En=he.setDrawDataWithHistory,On=he.framesData,Fn=he.setFramesData,mr=he.setEditState,fr=he.translateToObject,or=he.judgeEditingAttribute,jn=he.updateHistory,ua=function(Ir){zn(function(Vr){var Ar=(0,m.cloneDeep)(Vr),Y=(0,m.cloneDeep)(On);if(Ar.initialized=!0,Y){var z=Ir.map(function(Ce){return(fr==null?void 0:fr(Ce,Y.list.length))||{}});Y.objects=z.filter(function(Ce){return!!Ce.objects}).map(function(Ce){return Ce.objects}),Ar.classifications=z.filter(function(Ce){return!!Ce.classification}).map(function(Ce){return Ce.classification}),Ar.objectList=Y.objects.map(function(Ce){return Ce[Y.activeIndex]}),Fn==null||Fn(Y)}else{var ue=Ir.map(function(Ce){return(fr==null?void 0:fr(Ce))||{}});Ar.classifications=ue.filter(function(Ce){return Ce.type===Q.gr.Classification}),Ar.objectList=ue.filter(function(Ce){return Ce.type!==Q.gr.Custom&&Ce.type!==Q.gr.Classification})}return jn((0,m.cloneDeep)(Ar),(0,m.cloneDeep)(Y)),Ar})},Or=function(Ir){Pe===W.je.Edit&&En(function(Vr){var Ar;Vr.objectList.push(Ir),Vr.isJustCreated=!0,Vr.creatingObject=void 0,Vr.activeObjectIndex=-1,Vr.activeClassName=((Ar=Un.find(function(Y){return Y.id===Ir.labelId}))===null||Ar===void 0?void 0:Ar.name)||"",or&&(Vr.editingAttribute=or(Ir,Vr.objectList.length-1))})},ar=function(Ir){if(!(Pe!==W.je.Edit||!vt.objectList[Ir])){mr(function(Y){Y.focusObjectIndex=-1,Y.focusEleIndex=-1,Y.focusEleType=Q.Yq.Rect});var Vr=(0,m.cloneDeep)(On),Ar=(0,m.cloneDeep)(vt);Vr&&Vr.objects[Ir]&&(Vr.objects.splice(Ir,1),Fn==null||Fn(Vr)),Ar.objectList[Ir]&&(Ar.objectList.splice(Ir,1),Ar.activeObjectIndex=-1,Ar.creatingObject=void 0,Ar.editingAttribute=void 0),zn(Ar),jn((0,m.cloneDeep)(Ar),(0,m.cloneDeep)(Vr))}},hr=(0,g.useCallback)(function(){if(Pe===W.je.Edit){mr(function(Vr){Vr.focusObjectIndex=-1,Vr.focusEleIndex=-1,Vr.focusEleType=Q.Yq.Rect});var lr=(0,m.cloneDeep)(On),Ir=(0,m.cloneDeep)(vt);lr&&(lr.objects=[],Fn==null||Fn(lr)),Ir.objectList=[],Ir.activeObjectIndex=-1,Ir.creatingObject=void 0,Ir.editingAttribute=void 0,zn(Ir),jn((0,m.cloneDeep)(Ir),(0,m.cloneDeep)(lr))}},[Pe,On,vt]),Pr=function(Ir,Vr){Pe!==W.je.Edit||!vt.objectList[Vr]||En(function(Ar){Ir.labelId!==Ar.objectList[Vr].labelId&&or&&(Ar.editingAttribute=or(Ir,Vr)),Ar.objectList[Vr]=Ir,Ar.creatingObject&&Ar.activeObjectIndex===Vr&&(Ar.creatingObject=t()({},Ir))})},aa=function(Ir){En(function(Vr){Vr.objectList=Ir,Vr.creatingObject&&Vr.objectList[Vr.activeObjectIndex]&&(Vr.creatingObject=t()({},Vr.objectList[Vr.activeObjectIndex])),Vr.isJustCreated=!1})},Jn=function(Ir,Vr){vt.objectList[Vr]&&zn(function(Ar){Ar.objectList[Vr]=Ir,Ar.creatingObject&&Ar.activeObjectIndex===Vr&&(Ar.creatingObject=t()({},Ir))})},fa=function(Ir){zn(function(Vr){Vr.objectList=Ir,Vr.creatingObject&&Vr.objectList[Vr.activeObjectIndex]&&(Vr.creatingObject=t()({},Vr.objectList[Vr.activeObjectIndex]))})},Qr=(0,g.useMemo)(function(){return vt.objectList.filter(function(lr){return(lr==null?void 0:lr.status)===W.TK.Commited})},[vt.isBatchEditing,vt.objectList]),$r=(0,g.useMemo)(function(){return vt.objectList[vt.activeObjectIndex]||vt.creatingObject},[vt.objectList,vt.activeObjectIndex,vt.creatingObject]);return{initObjectList:ua,addObject:Or,removeObject:ar,removeAllObjects:hr,updateObject:Pr,updateAllObject:aa,updateObjectWithoutHistory:Jn,updateAllObjectWithoutHistory:fa,commitedObjects:Qr,currObject:$r}},Pa=Ra,To=function(he){var Pe=he.visible,Un=he.mode,vt=he.drawData,zn=he.categories,En=he.isMousePress,On=he.setDrawData,Fn=he.setEditState,mr=he.onSaveAnnotations,fr=he.onAcceptAnnotations,or=he.onRejectAnnotations,jn=he.onChangeObjectHidden,ua=he.onChangeCategoryHidden,Or=he.removeObject,ar=he.addObject;return(0,Ee.Z)(Se[Ie.Save].shortcut,function(hr){hr.preventDefault(),Un===W.je.Edit&&(mr==null||mr())},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.Accept].shortcut,function(hr){hr.preventDefault(),fr==null||fr()},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.Reject].shortcut,function(hr){hr.preventDefault(),or==null||or()},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.PanImage].shortcut,function(hr){Pe&&(hr.type==="keydown"&&!En?Fn(function(Pr){Pr.allowMove=!0}):hr.type==="keyup"&&Fn(function(Pr){Pr.allowMove=!1}))},{events:["keydown","keyup"]}),(0,Ee.Z)(Se[Ie.CancelCurrObject].shortcut,function(hr){Pe&&hr.type==="keyup"&&(vt.creatingObject?On(function(Pr){var aa,Jn,fa,Qr,$r,lr;((aa=Pr.creatingObject)===null||aa===void 0?void 0:aa.type)===Q.gr.Mask&&(Jn=Pr.creatingObject)!==null&&Jn!==void 0&&(fa=Jn.maskStep)!==null&&fa!==void 0&&(Qr=fa.points)!==null&&Qr!==void 0&&Qr.length&&($r=Pr.creatingObject)!==null&&$r!==void 0&&(lr=$r.tempMaskSteps)!==null&&lr!==void 0&&lr.length?Pr.creatingObject.maskStep=void 0:(Pr.creatingObject=void 0,Pr.activeObjectIndex=-1),Pr.AIAnnotation&&(Pr.prompt={})}):On(function(Pr){Pr.activeObjectIndex=-1}))},{events:["keydown","keyup"]}),(0,Ee.Z)(Se[Ie.HideCurrObject].shortcut,function(hr){vt.activeObjectIndex<0||(hr.preventDefault(),jn(vt.activeObjectIndex,!vt.objectList[vt.activeObjectIndex].hidden))},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.HideCurrCategory].shortcut,function(hr){var Pr;if(!(vt.activeObjectIndex<0)){hr.preventDefault();var aa=vt.objectList[vt.activeObjectIndex],Jn=aa.labelId,fa=aa.hidden,Qr=((Pr=zn.find(function($r){return $r.id===Jn}))===null||Pr===void 0?void 0:Pr.name)||"";ua(Qr,!fa)}},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.DeleteCurrObject].shortcut,function(hr){!Pe||Un!==W.je.Edit||["Delete","Backspace"].includes(hr.key)&&vt.activeObjectIndex>-1&&Or(vt.activeObjectIndex)},{events:["keyup"]}),(0,Ee.Z)(["ctrl"],function(hr){vt.activeObjectIndex>-1||Fn(function(Pr){var aa=hr.type==="keydown";if(Pr.isCtrlPressed===aa)return Pr;Pr.isCtrlPressed=hr.type==="keydown",Pr.focusObjectIndex=-1,Pr.foucsObjectAllIndexs=[]})},{events:["keydown","keyup"]}),(0,Ee.Z)(["v"],function(hr){Fn(function(Pr){var aa=hr.type==="keydown";if(Pr.hideCreatingObject===aa)return Pr;Pr.hideCreatingObject=hr.type==="keydown"})},{events:["keydown","keyup"]}),(0,Ee.Z)(["enter"],function(){if(!vt.AIAnnotation&&vt.creatingObject&&vt.creatingObject.type===Q.gr.Polygon){var hr=vt.creatingObject,Pr=hr.polygon,aa=hr.type,Jn=hr.hidden,fa=hr.labelId,Qr=hr.status,$r=hr.color;if(Pr&&Pr.group&&Pr.group[0].length>2){var lr={polygon:Pr,type:aa,hidden:Jn,labelId:fa,status:Qr,color:$r};ar(lr)}}},{exactMatch:!0,events:["keyup"]}),{}},Yo=To,Zo=Object.defineProperty,zi=Object.getOwnPropertySymbols,bs=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Ds=(Ue,he,Pe)=>he in Ue?Zo(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Xi=(Ue,he)=>{for(var Pe in he||(he={}))bs.call(he,Pe)&&Ds(Ue,Pe,he[Pe]);if(zi)for(var Pe of zi(he))Gi.call(he,Pe)&&Ds(Ue,Pe,he[Pe]);return Ue};const Vo=Ue=>g.createElement("svg",Xi({viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M18.33 4.069a.67.67 0 0 0 .67-.672V.671A.672.672 0 0 0 18.33 0h-2.718a.67.67 0 0 0-.671.671v.672H4.066V.67A.672.672 0 0 0 3.395 0H.67A.67.67 0 0 0 0 .671v2.72a.672.672 0 0 0 .67.67h.672v10.877H.67A.67.67 0 0 0 0 15.61v2.72A.672.672 0 0 0 .67 19h2.718a.67.67 0 0 0 .671-.671v-.672h10.869v.672a.672.672 0 0 0 .67.671h2.718a.67.67 0 0 0 .67-.671v-2.706a.672.672 0 0 0-.67-.671h-.671V4.069h.684Zm-2.014 10.876h-.67a.67.67 0 0 0-.671.671v.672H4.065v-.672a.672.672 0 0 0-.67-.671h-.671V4.069h.67a.67.67 0 0 0 .672-.672v-.671h10.868v.671a.672.672 0 0 0 .671.672h.671l.02 5.438.02 5.438Z",fill:"#fff"}),g.createElement("g",{clipPath:"url(#add-prompt_svg__a)"},g.createElement("path",{d:"M14.51 5.884a.851.851 0 0 0-1.204 0l-5.418 5.423-2.409-2.41a.851.851 0 1 0-1.204 1.205l3.01 3.012a.849.849 0 0 0 1.205 0l6.02-6.025a.852.852 0 0 0 0-1.205Z",fill:"#fff"})),g.createElement("defs",null,g.createElement("clipPath",{id:"add-prompt_svg__a"},g.createElement("path",{fill:"#fff",transform:"translate(4.025 4.129)",d:"M0 0h10.735v10.742H0z"}))));var tu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTkgMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE4LjMzIDQuMDY5YS42Ny42NyAwIDAgMCAuNjctLjY3MlYuNjcxQS42NzIuNjcyIDAgMCAwIDE4LjMzIDBo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QuMDI1IDQuMTI5KSIgZD0iTTAgMGgxMC43MzV2MTAuNzQySDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Il=Object.defineProperty,ul=Object.getOwnPropertySymbols,Iu=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,Ks=(Ue,he,Pe)=>he in Ue?Il(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ws=(Ue,he)=>{for(var Pe in he||(he={}))Iu.call(he,Pe)&&Ks(Ue,Pe,he[Pe]);if(ul)for(var Pe of ul(he))cl.call(he,Pe)&&Ks(Ue,Pe,he[Pe]);return Ue};const Qs=Ue=>g.createElement("svg",ws({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#brush-add_svg__a)",fill:"#fff"},g.createElement("path",{d:"M5.07 10.37 4.02 9.22l-.46-.46a1.42 1.42 0 0 1 0-1.89l.41-.41 3.84-3.73L10.34.22a.71.71 0 0 1 1.07 0c.34.31.67.63 1 .93a.66.66 0 0 1 .22.69c-.1.43-.19.87-.28 1.34l.69-.13c.25 0 .5-.1.75-.12a.82.82 0 0 1 .69.26l4.47 4.37.45.44a.87.87 0 0 1 0 1.3l-2 2-.08.08-1.34-.79 1.89-1.95-.33-.33-3.78-3.71a.3.3 0 0 0-.32-.09l-1.89.37A.74.74 0 0 1 10.7 4c.06-.33.12-.65.19-1s.1-.58.18-.85a.31.31 0 0 0-.17-.4L6.7 5.94l5 4.85c-.3.21-.61.4-.88.62a4.76 4.76 0 0 0-1.75 3 .88.88 0 0 1-.25.44l-2.94 3.37a3.42 3.42 0 0 1-5 .22 3 3 0 0 1-.83-2 3.39 3.39 0 0 1 1.33-2.88l3.32-2.89.37-.3Z"}),g.createElement("path",{d:"M17.88 13.99a4.06 4.06 0 0 0-4.46-2.68 4 4 0 0 0 .61 7.9c.22 0 .44 0 .65-.06a4 4 0 0 0 3.2-5.16Zm-2.31 2.13h-.62v.58a.94.94 0 0 1-1.87 0v-.58h-.58a.94.94 0 0 1 0-1.87h.58v-.56a.94.94 0 1 1 1.87 0v.53h.62a.94.94 0 0 1 0 1.87v.03Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"brush-add_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h19.7v19.44H0z"}))));var zl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik01LjA3IDEwLjM3IDQuMDIgOS4yMmwtLjQ2LS40NmExLjQyIDEuNDIgMCAwIDEgMC0xLjg5bC40MS0uNDEgMy44NC0zLjczTDEwLjM0LjIyYS43MS43MSAwIDAgMSAxLjA3IDBjLjM0LjMxLjY3LjYzIDEgLjkzYS42Ni42NiAwIDAgMSAuMjIuNjljLS4xLjQzLS4xOS44Ny0uMjggMS4zNGwuNjktLjEzYy4yNSAwIC41LS4xLjc1LS4xMmEuODIuODIgMCAwIDEgLjY5LjI2bDQuNDcgNC4zNy40NS40NGEuODcuODcgMCAwIDEgMCAxLjNsLTIgMi0uMDguMDgtMS4zNC0uNzkgMS44OS0xLjk1LS4zMy0uMzMtMy43OC0zLjcxYS4zLjMgMCAwIDAtLjMyLS4wOWwtMS44OS4zN0EuNzQuNzQgMCAwIDEgMTAuNyA0Yy4wNi0uMzMuMTItLjY1LjE5LTFzLjEtLjU4LjE4LS44NWEuMzEuMzEgMCAwIDAtLjE3LS40TDYuNyA1Ljk0bDUgNC44NWMtLjMuMjEtLjYxLjQtLjg4LjYyYTQuNzYgNC43NiAwIDAgMC0xLjc1IDMgLjg4Ljg4IDAgMCAxLS4yNS40NGwtMi45NCAzLjM3YTMuNDIgMy40MiAwIDAgMS01IC4yMiAzIDMgMCAwIDEtLjgzLTIgMy4zOSAzLjM5IDAgMCAxIDEuMzMtMi44OGwzLjMyLTIuODkuMzctLjNaIi8+PHBhdGggZD0iTTE3Ljg4IDEzLjk5YTQuMDYgNC4wNiAwIDAgMC00LjQ2LTIuNjggNCA0IDAgMCAwIC42MSA3LjljLjIyIDAgLjQ0IDAgLjY1LS4wNmE0IDQgMCAwIDAgMy4yLTUuMTZabS0yLjMxIDIuMTNoLS42MnYuNThhLjk0Ljk0IDAgMCAxLTEuODcgMHYtLjU4aC0uNThhLjk0Ljk0IDAgMCAxIDAtMS44N2guNTh2LS41NmEuOTQuOTQgMCAxIDEgMS44NyAwdi41M2guNjJhLjk0Ljk0IDAgMCAxIDAgMS44N3YuMDNaIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgxOS43djE5LjQ0SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",fu=Object.defineProperty,rs=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable,js=(Ue,he,Pe)=>he in Ue?fu(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,nu=(Ue,he)=>{for(var Pe in he||(he={}))Ms.call(he,Pe)&&js(Ue,Pe,he[Pe]);if(rs)for(var Pe of rs(he))Bs.call(he,Pe)&&js(Ue,Pe,he[Pe]);return Ue};const Vl=Ue=>g.createElement("svg",nu({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#brush-erase_svg__a)",fill:"#fff"},g.createElement("path",{d:"m6.47 5.69 4.8 4.7c-.29.2-.59.38-.85.59a4.73 4.73 0 0 0-1.74 3.05.45.45 0 0 1-.1.21l-2.89 3.34a3.24 3.24 0 0 1-2.47 1.2 3 3 0 0 1-3.23-3.1 3.34 3.34 0 0 1 1.39-2.7c1.16-.95 2.29-1.93 3.44-2.89l.14-.1-.4-.38-1-1a1.38 1.38 0 0 1 0-2.07L7.7 2.48c.76-.7 1.52-1.5 2.29-2.24a.69.69 0 0 1 1.05 0l1 .91a.59.59 0 0 1 .18.63c-.09.43-.18.87-.27 1.33l1.27-.25a.88.88 0 0 1 .84.24l2.71 2.68 2 1.92a.9.9 0 0 1 .29.8.66.66 0 0 1-.16.35c-.7.7-1.41 1.39-2.12 2.08l-1.28-.77 1.84-1.79V8.3l-4-3.88a.29.29 0 0 0-.28-.07l-1.84.43a.86.86 0 0 1-.8-.26.571.571 0 0 1-.13-.56c.12-.59.24-1.17.37-1.76 0-.19 0-.33-.18-.42L6.47 5.69Z"}),g.createElement("path",{d:"M9.69 14.71a3.88 3.88 0 1 1 3.88 3.8 3.83 3.83 0 0 1-3.88-3.8Zm3.87 1h1.57a1 1 0 0 0 1-1 1 1 0 0 0-1-1.06h-3.14a1 1 0 0 0 0 2l1.57.06Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"brush-erase_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h19.03v18.77H0z"}))));var Ps="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im02LjQ3IDUuNjkgNC44IDQuN2MtLjI5LjItLjU5LjM4LS44NS41OWE0LjczIDQuNzMgMCAwIDAtMS43NCAzLjA1LjQ1LjQ1IDAgMCAxLS4xLjIxbC0yLjg5IDMuMzRhMy4yNCAzLjI0IDAgMCAxLTIuNDcgMS4yIDMgMyAwIDAgMS0zLjIzLTMuMSAzLjM0IDMuMzQgMCAwIDEgMS4zOS0yLjdjMS4xNi0uOTUgMi4yOS0xLjkzIDMuNDQtMi44OWwuMTQtLjEtLjQtLjM4LTEtMWExLjM4IDEuMzggMCAwIDEgMC0yLjA3TDcuNyAyLjQ4Yy43Ni0uNyAxLjUyLTEuNSAyLjI5LTIuMjRhLjY5LjY5IDAgMCAxIDEuMDUgMGwxIC45MWEuNTkuNTkgMCAwIDEgLjE4LjYzYy0uMDkuNDMtLjE4Ljg3LS4yNyAxLjMzbDEuMjctLjI1YS44OC44OCAwIDAgMSAuODQuMjRsMi43MSAyLjY4IDIgMS45MmEuOS45IDAgMCAxIC4yOS44LjY2LjY2IDAgMCAxLS4xNi4zNWMtLjcuNy0xLjQxIDEuMzktMi4xMiAyLjA4bC0xLjI4LS43NyAxLjg0LTEuNzlWOC4zbC00LTMuODhhLjI5LjI5IDAgMCAwLS4yOC0uMDdsLTEuODQuNDNhLjg2Ljg2IDAgMCAxLS44LS4yNi41NzEuNTcxIDAgMCAxLS4xMy0uNTZjLjEyLS41OS4yNC0xLjE3LjM3LTEuNzYgMC0uMTkgMC0uMzMtLjE4LS40Mkw2LjQ3IDUuNjlaIi8+PHBhdGggZD0iTTkuNjkgMTQuNzFhMy44OCAzLjg4IDAgMSAxIDMuODggMy44IDMuODMgMy44MyAwIDAgMS0zLjg4LTMuOFptMy44NyAxaDEuNTdhMSAxIDAgMCAwIDEtMSAxIDEgMCAwIDAtMS0xLjA2aC0zLjE0YTEgMSAwIDAgMCAwIDJsMS41Ny4wNloiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE5LjAzdjE4Ljc3SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Ft=Object.defineProperty,So=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable,dl=(Ue,he,Pe)=>he in Ue?Ft(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,sa=(Ue,he)=>{for(var Pe in he||(he={}))$s.call(he,Pe)&&dl(Ue,Pe,he[Pe]);if(So)for(var Pe of So(he))zo.call(he,Pe)&&dl(Ue,Pe,he[Pe]);return Ue};const fl=Ue=>g.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".edge-stitch_svg__cls-1{fill:#fcfefe}.edge-stitch_svg__cls-3{fill:#fff}")),g.createElement("path",{className:"edge-stitch_svg__cls-1",d:"M22.25 18.52a.82.82 0 0 0 .57.15h4.3a1.44 1.44 0 1 0 0-2.87h-.86L31 11.06a1.42 1.42 0 0 0-2-2l-4.73 4.74v-.86a1.44 1.44 0 1 0-2.87 0v4.3a.87.87 0 0 0 .14.57 1.67 1.67 0 0 0 .71.71ZM9.91 31.58a1.31 1.31 0 0 0 1-.43l4.74-4.74v.86a1.44 1.44 0 1 0 2.87 0V23a.82.82 0 0 0-.15-.57 1.7 1.7 0 0 0-.71-.72.85.85 0 0 0-.58-.15h-4.3a1.44 1.44 0 1 0 0 2.87h.86l-4.73 4.71a1.38 1.38 0 0 0 0 2 1.31 1.31 0 0 0 1 .44Z"}),g.createElement("path",{style:{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3},d:"m14.4 14.51 11.14 11.14"}),g.createElement("path",{className:"edge-stitch_svg__cls-3",d:"M7.51 5.7a3.41 3.41 0 0 1 .74.45c.85.8 1.67 1.64 2.49 2.47a1.19 1.19 0 1 1-1.69 1.67Q7.77 9 6.53 7.77a1.13 1.13 0 0 1-.26-1.33 1.33 1.33 0 0 1 1.24-.74ZM19.85 10.84a5.11 5.11 0 0 1-.92-.75.93.93 0 0 1 .07-1.24c.94-1 1.89-1.95 2.88-2.87a1.07 1.07 0 0 1 1.51.09 1.09 1.09 0 0 1 .11 1.56c-.91 1-1.87 1.9-2.83 2.83a2.88 2.88 0 0 1-.82.38ZM7.26 23.44a5 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2ExLjIzIDEuMjMgMCAwIDEgMS4xOSAxLjI5Yy0uMDEuNTctLjAzIDEuMTUtLjAzIDEuNzJaTTYgMTUuNzNINC4zOGExLjIgMS4yIDAgMSAxIDAtMi40aDMuMzRhMS4yIDEuMiAwIDEgMSAwIDIuNGMtLjU4LjAyLTEuMTUgMC0xLjcyIDBaIi8+PC9zdmc+",Xs=Object.defineProperty,Fl=Object.getOwnPropertySymbols,Gl=Object.prototype.hasOwnProperty,Io=Object.prototype.propertyIsEnumerable,bi=(Ue,he,Pe)=>he in Ue?Xs(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,fc=(Ue,he)=>{for(var Pe in he||(he={}))Gl.call(he,Pe)&&bi(Ue,Pe,he[Pe]);if(Fl)for(var Pe of Fl(he))Io.call(he,Pe)&&bi(Ue,Pe,he[Pe]);return Ue};const ec=Ue=>g.createElement("svg",fc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".magic-box_svg__cls-1,.magic-box_svg__cls-3{fill:none}.magic-box_svg__cls-2{fill:#fcfefe}.magic-box_svg__cls-3{stroke:#fcfeff;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px}")),g.createElement("path",{className:"magic-box_svg__cls-1",d:"M5.28 16.36V6.08a1 1 0 0 1 1-1h22.2a1 1 0 0 1 1 1v21.67a1 1 0 0 1-1 .95h-10v2.39H31.4V2.74H3.17v13.62ZM3.06 2.74h.11v13.62h-.11z"}),g.createElement("path",{className:"magic-box_svg__cls-2",d:"M7.28 7.12H27.4V26.7h-8.91v2h10a1 1 0 0 0 1-.95V6.08a1 1 0 0 0-1-1H6.24a1 1 0 0 0-1 1v10.28h2Z"}),g.createElement("path",{className:"magic-box_svg__cls-2",d:"M4.82 28.43a.87.87 0 0 0 .11 1.19 1 1 0 0 0 1.19.09c3.29-2.56 4.66-2.56 8 0a.92.92 0 0 0 1.28-1.28c-2.56-3.29-2.56-4.66 0-8a.92.92 0 0 0-1.28-1.28c-3.29 2.56-4.66 2.56-8 0a1.37 1.37 0 0 0-.55-.15.83.83 0 0 0-.64.27.87.87 0 0 0-.09 1.19c2.63 3.31 2.63 4.59-.02 7.97Z"}),g.createElement("path",{className:"magic-box_svg__cls-3",d:"m19.24 10.15 5.75-.07M24.99 15.91v-5.83M17.97 17.19l7.02-7.11"}));var no="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTN7ZmlsbDpub25lfS5jbHMtMntmaWxsOiNmY2ZlZmV9LmNscy0ze3N0cm9rZTojZmNmZWZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoycHh9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4yOCAxNi4zNlY2LjA4YTEgMSAwIDAgMSAxLTFoMjIuMmExIDEgMCAwIDEgMSAxdjIxLjY3YTEgMSAwIDAgMS0xIC45NWgtMTB2Mi4zOUgzMS40VjIuNzRIMy4xN3YxMy42MlpNMy4wNiAyLjc0aC4xMXYxMy42MmgtLjExeiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTcuMjggNy4xMkgyNy40VjI2LjdoLTguOTF2MmgxMGExIDEgMCAwIDAgMS0uOTVWNi4wOGExIDEgMCAwIDAtMS0xSDYuMjRhMSAxIDAgMCAwLTEgMXYxMC4yOGgyWiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTQuODIgMjguNDNhLjg3Ljg3IDAgMCAwIC4xMSAxLjE5IDEgMSAwIDAgMCAxLjE5LjA5YzMuMjktMi41NiA0LjY2LTIuNTYgOCAwYS45Mi45MiAwIDAgMCAxLjI4LTEuMjhjLTIuNTYtMy4yOS0yLjU2LTQuNjYgMC04YS45Mi45MiAwIDAgMC0xLjI4LTEuMjhjLTMuMjkgMi41Ni00LjY2IDIuNTYtOCAwYTEuMzcgMS4zNyAwIDAgMC0uNTUtLjE1LjgzLjgzIDAgMCAwLS42NC4yNy44Ny44NyAwIDAgMC0uMDkgMS4xOWMyLjYzIDMuMzEgMi42MyA0LjU5LS4wMiA3Ljk3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0ibTE5LjI0IDEwLjE1IDUuNzUtLjA3TTI0Ljk5IDE1Ljkxdi01LjgzTTE3Ljk3IDE3LjE5bDcuMDItNy4xMSIvPjwvc3ZnPg==",Ji=Object.defineProperty,Zs=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,_i=(Ue,he,Pe)=>he in Ue?Ji(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Al=(Ue,he)=>{for(var Pe in he||(he={}))Na.call(he,Pe)&&_i(Ue,Pe,he[Pe]);if(Zs)for(var Pe of Zs(he))au.call(he,Pe)&&_i(Ue,Pe,he[Pe]);return Ue};const vl=Ue=>g.createElement("svg",Al({id:"magic-brush_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".magic-brush_svg__cls-1{fill:#fff}")),g.createElement("path",{className:"magic-brush_svg__cls-1",d:"M15.22 14.73 21 9l10.1 10.1-5.8 5.76ZM14.33 15.43l10.34 10.36c-.87.86-1.78 1.78-2.71 2.68-.09.08-.37 0-.53-.07-1.31-.58-2.63-1.16-3.92-1.78a.74.74 0 0 0-1 .17q-1.75 1.82-3.57 3.56a2.14 2.14 0 0 1-2.33.51 2.08 2.08 0 0 1-1.42-1.69 2.2 2.2 0 0 1 .67-2.05C11 26 12.14 24.8 13.32 23.66a.74.74 0 0 0 .19-1c-.61-1.27-1.16-2.57-1.77-3.85a.67.67 0 0 1 .15-.91c.84-.81 1.63-1.64 2.44-2.47Zm-1.82 13.18a1 1 0 1 0-2 .05 1 1 0 0 0 2-.05Z"}),g.createElement("path",{d:"M3.2 12.66a.89.89 0 0 0 .11 1.23 1 1 0 0 0 1.23.1c3.4-2.65 4.82-2.65 8.27 0a.95.95 0 0 0 1.32-1.33c-2.64-3.4-2.64-4.81 0-8.26A.9.9 0 0 0 14 3.17a.89.89 0 0 0-1.23-.1C9.41 5.72 8 5.72 4.54 3.07A1.27 1.27 0 0 0 4 2.89a.84.84 0 0 0-.66.28.9.9 0 0 0-.12 1.23c2.72 3.45 2.72 4.77-.02 8.26Z",style:{fill:"#fcfefe"}}));var vu="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNS4yMiAxNC43MyAyMSA5bDEwLjEgMTAuMS01LjggNS43NlpNMTQuMzMgMTUuNDNsMTAuMzQgMTAuMzZjLS44Ny44Ni0xLjc4IDEuNzgtMi43MSAyLjY4LS4wOS4wOC0uMzcgMC0uNTMtLjA3LTEuMzEtLjU4LTIuNjMtMS4xNi0zLjkyLTEuNzhhLjc0Ljc0IDAgMCAwLTEgLjE3cS0xLjc1IDEuODItMy41NyAzLjU2YTIuMTQgMi4xNCAwIDAgMS0yLjMzLjUxIDIuMDggMi4wOCAwIDAgMS0xLjQyLTEuNjkgMi4yIDIuMiAwIDAgMSAuNjctMi4wNUMxMSAyNiAxMi4xNCAyNC44IDEzLjMyIDIzLjY2YS43NC43NCAwIDAgMCAuMTktMWMtLjYxLTEuMjctMS4xNi0yLjU3LTEuNzctMy44NWEuNjcuNjcgMCAwIDEgLjE1LS45MWMuODQtLjgxIDEuNjMtMS42NCAyLjQ0LTIuNDdabS0xLjgyIDEzLjE4YTEgMSAwIDEgMC0yIC4wNSAxIDEgMCAwIDAgMi0uMDVaIi8+PHBhdGggZD0iTTMuMiAxMi42NmEuODkuODkgMCAwIDAgLjExIDEuMjMgMSAxIDAgMCAwIDEuMjMuMWMzLjQtMi42NSA0LjgyLTIuNjUgOC4yNyAwYS45NS45NSAwIDAgMCAxLjMyLTEuMzNjLTIuNjQtMy40LTIuNjQtNC44MSAwLTguMjZBLjkuOSAwIDAgMCAxNCAzLjE3YS44OS44OSAwIDAgMC0xLjIzLS4xQzkuNDEgNS43MiA4IDUuNzIgNC41NCAzLjA3QTEuMjcgMS4yNyAwIDAgMCA0IDIuODlhLjg0Ljg0IDAgMCAwLS42Ni4yOC45LjkgMCAwIDAtLjEyIDEuMjNjMi43MiAzLjQ1IDIuNzIgNC43Ny0uMDIgOC4yNloiIHN0eWxlPSJmaWxsOiNmY2ZlZmUiLz48L3N2Zz4=",Bl=Object.defineProperty,tc=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Lo=Object.prototype.propertyIsEnumerable,Au=(Ue,he,Pe)=>he in Ue?Bl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Kl=(Ue,he)=>{for(var Pe in he||(he={}))Zu.call(he,Pe)&&Au(Ue,Pe,he[Pe]);if(tc)for(var Pe of tc(he))Lo.call(he,Pe)&&Au(Ue,Pe,he[Pe]);return Ue};const vs=Ue=>g.createElement("svg",Kl({id:"magic-click_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".magic-click_svg__cls-1{fill:#fff}")),g.createElement("path",{className:"magic-click_svg__cls-1",d:"M30.88 21.21a1.6 1.6 0 0 1-1 1.35c-1.54.75-3.08 1.51-4.59 2.31a2.18 2.18 0 0 0-.87.86c-.79 1.49-1.53 3-2.27 4.53a1.49 1.49 0 0 1-2.89-.18Q17.2 23.8 15.1 17.52a1.49 1.49 0 0 1 2-2l12.55 4.19a1.56 1.56 0 0 1 1.23 1.5Zm-5.25.23-6.94-2.32 2.32 7c.37-.74.71-1.3.95-1.9a3 3 0 0 1 1.8-1.79c.6-.29 1.15-.62 1.87-.99ZM7.34 6.09a4.23 4.23 0 0 1 .89.54l3 3a1.45 1.45 0 1 1-2 2c-1-1-2.06-2-3.07-3.07A1.37 1.37 0 0 1 5.83 7a1.6 1.6 0 0 1 1.51-.91ZM22.35 12.35a6.61 6.61 0 0 1-1.12-.92 1.14 1.14 0 0 1 .09-1.51c1.14-1.19 2.3-2.37 3.5-3.49a1.31 1.31 0 0 1 1.84.1 1.34 1.34 0 0 1 .14 1.9c-1.11 1.19-2.28 2.32-3.45 3.45a3.92 3.92 0 0 1-1 .47ZM7 27.68a6 6 0 0 1-1.13-.9 1.12 1.12 0 0 1 .13-1.5c1.15-1.21 2.32-2.4 3.55-3.54a1.32 1.32 0 0 1 1.84.17 1.33 1.33 0 0 1 .1 1.85C10.35 25 9.16 26.11 8 27.25a3.75 3.75 0 0 1-1 .43ZM17.87 6v2A1.46 1.46 0 1 1 15 8V3.87a1.49 1.49 0 0 1 1.46-1.56 1.51 1.51 0 0 1 1.45 1.57c-.03.74-.04 1.44-.04 2.12ZM5.48 18.3h-2a1.5 1.5 0 0 1-1.55-1.5 1.48 1.48 0 0 1 1.59-1.42h4.07a1.49 1.49 0 0 1 1.59 1.49 1.5 1.5 0 0 1-1.6 1.42c-.69.02-1.4.01-2.1.01Z"}),g.createElement("path",{className:"magic-click_svg__cls-1",d:"M25.63 21.44c-.72.37-1.27.7-1.87.94A3 3 0 0 0 22 24.17c-.24.6-.58 1.16-.95 1.9l-2.32-6.95Z"}));var Ol="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5b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2IDYgMCAwIDEtMS4xMy0uOSAxLjEyIDEuMTIgMCAwIDEgLjEzLTEuNWMxLjE1LTEuMjEgMi4zMi0yLjQgMy41NS0zLjU0YTEuMzIgMS4zMiAwIDAgMSAxLjg0LjE3IDEuMzMgMS4zMyAwIDAgMSAuMSAxLjg1QzEwLjM1IDI1IDkuMTYgMjYuMTEgOCAyNy4yNWEzLjc1IDMuNzUgMCAwIDEtMSAuNDNaTTE3Ljg3IDZ2MkExLjQ2IDEuNDYgMCAxIDEgMTUgOFYzLjg3YTEuNDkgMS40OSAwIDAgMSAxLjQ2LTEuNTYgMS41MSAxLjUxIDAgMCAxIDEuNDUgMS41N2MtLjAzLjc0LS4wNCAxLjQ0LS4wNCAyLjEyWk01LjQ4IDE4LjNoLTJhMS41IDEuNSAwIDAgMS0xLjU1LTEuNSAxLjQ4IDEuNDggMCAwIDEgMS41OS0xLjQyaDQuMDdhMS40OSAxLjQ5IDAgMCAxIDEuNTkgMS40OSAxLjUgMS41IDAgMCAxLTEuNiAxLjQyYy0uNjkuMDItMS40LjAxLTIuMS4wMVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNS42MyAyMS40NGMtLjcyLjM3LTEuMjcuNy0xLjg3Ljk0QTMgMyAwIDAgMCAyMiAyNC4xN2MtLjI0LjYtLjU4IDEuMTYtLjk1IDEuOWwtMi4zMi02Ljk1WiIvPjwvc3ZnPg==",gl=Object.defineProperty,kt=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,$i=(Ue,he,Pe)=>he in Ue?gl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,$o=(Ue,he)=>{for(var Pe in he||(he={}))Di.call(he,Pe)&&$i(Ue,Pe,he[Pe]);if(kt)for(var Pe of kt(he))Ql.call(he,Pe)&&$i(Ue,Pe,he[Pe]);return Ue};const uo=Ue=>g.createElement("svg",$o({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#pen-add_svg__a)",fill:"#fff"},g.createElement("path",{d:"M16.7 10c0-.1 0-.1.1-.2v-.2c0-.1 0-.1-.1-.1l-3.2-3.2-3.1-3.1v-.1H10.1c-.1.2-.3.3-.6.3-1.7.7-3.4 1.3-5.2 1.9-.1 0-.1.1-.2.1s0 .1 0 .2c-.2.6-.4 1.2-.6 1.9C3 9.2 2.5 11 2 12.7L.3 18.4c-.1.3-.2.7-.3 1l.2-.1L7 12.4l.1-.1V12c-.1-.2-.2-.5-.2-.8 0-.3 0-.6.1-.8.1-.3.3-.5.5-.7.2-.2.4-.3.7-.4H9c.3 0 .5.1.8.3.2.1.4.3.6.6.9-.8 2-1.2 3.3-1.2 1.1 0 2.2.4 3 1Z"}),g.createElement("path",{d:"M8.6 13.2h-.3c-.2-.1-.3-.2-.5-.3L.7 20l4-1.2 5-1.4c-.7-.9-1.2-2-1.2-3.3 0-.3.1-.6.1-.9ZM11.3 2.6 16.7 8l.8.8L20 7.2 12.8 0l-.1.1c-.5.8-1 1.5-1.5 2.2v.2l.1.1c-.1 0-.1 0 0 0ZM16.4 11c-.7-.6-1.7-1.1-2.7-1.1-1.2 0-2.3.5-3 1.3-.4.5-.8 1-.9 1.7-.1.4-.2.7-.2 1.1 0 1.2.5 2.2 1.3 3 .7.7 1.7 1.2 2.9 1.2 2.3 0 4.1-1.9 4.1-4.1-.1-1.2-.7-2.3-1.5-3.1Zm-1.1 4.1h-.7v.8c0 .6-.4 1-1 1s-1-.4-1-1v-.8H12c-.6 0-1-.4-1-1s.4-1 1-1h.6v-.5c0-.6.4-1 1-1s1 .4 1 1v.5h.7c.6 0 1 .4 1 1s-.4 1-1 1Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"pen-add_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))));var Uu="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdod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LS4xLTEuMi0uNy0yLjMtMS41LTMuMVptLTEuMSA0LjFoLS43di44YzAgLjYtLjQgMS0xIDFzLTEtLjQtMS0xdi0uOEgxMmMtLjYgMC0xLS40LTEtMXMuNC0xIDEtMWguNnYtLjVjMC0uNi40LTEgMS0xczEgLjQgMSAxdi41aC43Yy42IDAgMSAuNCAxIDFzLS40IDEtMSAxWiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",gu=Object.defineProperty,ss=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,xi=(Ue,he,Pe)=>he in Ue?gu(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,qi=(Ue,he)=>{for(var Pe in he||(he={}))Dl.call(he,Pe)&&xi(Ue,Pe,he[Pe]);if(ss)for(var Pe of ss(he))Mi.call(he,Pe)&&xi(Ue,Pe,he[Pe]);return Ue};const as=Ue=>g.createElement("svg",qi({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#pen-erase_svg__a)",fill:"#fff"},g.createElement("path",{d:"m16.74 10 .07-.2a.22.22 0 0 0 0-.16.22.22 0 0 0-.09-.12l-3.14-3.16-3.07-3.08a.18.18 0 0 0 0-.07H10.29l-.72.26-5.23 1.82a.42.42 0 0 0-.18.11.35.35 0 0 0-.1.19c-.17.63-.36 1.25-.55 1.88C3 9.21 2.51 11 2 12.67L.3 18.34c-.09.31-.18.66-.3 1l.16-.14L7 12.42l.06-.06a.16.16 0 0 0 0-.09.17.17 0 0 0 0-.1v-.08a1.87 1.87 0 0 1-.06-1.6A1.95 1.95 0 0 1 8.16 9.4c.27-.09.558-.118.84-.08a2 2 0 0 1 .78.26c.232.15.432.344.59.57a5 5 0 0 1 6.37-.15Z"}),g.createElement("path",{d:"M8.63 13.2c-.106.01-.214.01-.32 0a3.38 3.38 0 0 1-.52-.22L.74 20l4-1.2 5-1.44a4.9 4.9 0 0 1-1.11-4.16ZM11.25 2.62c1.83 1.82 3.62 3.62 5.43 5.43l.81.83L20 7.21 12.83 0l-.08.1c-.5.75-1 1.53-1.5 2.25v.06a.192.192 0 0 0 0 .07.19.19 0 0 0 0 .08.208.208 0 0 0 0 .06ZM16.38 11a4.1 4.1 0 0 0-6.66 2 4.24 4.24 0 0 0-.18 1.13 4.11 4.11 0 0 0 1.27 3 4.06 4.06 0 0 0 2.85 1.16A4.12 4.12 0 0 0 16.38 11Zm-1 4.08h-3.32a1 1 0 0 1 0-2h3.27a1 1 0 0 1 0 2h.05Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"pen-erase_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))));var vo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im0xNi43NCAxMCAuMDctLjJhLjIyLjIyIDAgMCAwIDAtLjE2LjIyLjIyIDAgMCAwLS4wOS0uMTJsLTMuMTQtMy4xNi0zLjA3LTMuMDhhLjE4LjE4IDAgMCAwIDAtLjA3SDEwLjI5bC0uNzIuMjYtNS4yMyAxLjgyYS40Mi40MiAwIDAgMC0uMTguMTEuMzUuMzUgMCAwIDAtLjEuMTljLS4xNy42My0uMzYgMS4yNS0uNTUgMS44OEMzIDkuMjEgMi41MSAxMSAyIDEyLjY3TC4zIDE4LjM0Yy0uMDkuMzEtLjE4LjY2LS4zIDFsLjE2LS4xNEw3IDEyLjQybC4wNi0uMDZhLjE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?Js(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Us=(Ue,he)=>{for(var Pe in he||(he={}))Zi.call(he,Pe)&&mu(Ue,Pe,he[Pe]);if(ou)for(var Pe of ou(he))iu.call(he,Pe)&&mu(Ue,Pe,he[Pe]);return Ue};const wl=Ue=>g.createElement("svg",Us({viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M18.33 4.069a.67.67 0 0 0 .67-.672V.671A.672.672 0 0 0 18.33 0h-2.718a.67.67 0 0 0-.671.671v.672H4.066V.67A.672.672 0 0 0 3.395 0H.67A.67.67 0 0 0 0 .671v2.72a.672.672 0 0 0 .67.67h.672v10.877H.67A.67.67 0 0 0 0 15.61v2.72A.672.672 0 0 0 .67 19h2.718a.67.67 0 0 0 .671-.671v-.672h10.869v.672a.672.672 0 0 0 .67.671h2.718a.67.67 0 0 0 .67-.671v-2.706a.672.672 0 0 0-.67-.671h-.671V4.069h.684Zm-2.014 10.876h-.67a.67.67 0 0 0-.671.671v.672H4.065v-.672a.672.672 0 0 0-.67-.671h-.671V4.069h.67a.67.67 0 0 0 .672-.672v-.671h10.868v.671a.672.672 0 0 0 .671.672h.671l.02 5.438.02 5.438Z",fill:"#fff"}),g.createElement("g",{stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"},g.createElement("path",{d:"m6.71 6.713 6.037 6.043M6.71 6.713l6.037 6.043M6.71 6.713l6.037 6.043M6.71 6.713l6.037 6.043"})),g.createElement("g",{stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"},g.createElement("path",{d:"M12.747 6.713 6.71 12.756M12.747 6.713 6.71 12.756M12.747 6.713 6.71 12.756M12.747 6.713 6.71 12.756"})));var jl="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTkgMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdG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iBzdHJva2UtbGluZWNhcD0icm91bmQiPjxwYXRoIGQ9Ik0xMi43NDcgNi43MTMgNi43MSAxMi43NTZNMTIuNzQ3IDYuNzEzIDYuNzEgMTIuNzU2TTEyLjc0NyA2LjcxMyA2LjcxIDEyLjc1Nk0xMi43NDcgNi43MTMgNi43MSAxMi43NTYiLz48L2c+PC9zdmc+",Ss=Object.defineProperty,gs=Object.getOwnPropertySymbols,Ou=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable,va=(Ue,he,Pe)=>he in Ue?Ss(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,at=(Ue,he)=>{for(var Pe in he||(he={}))Ou.call(he,Pe)&&va(Ue,Pe,he[Pe]);if(gs)for(var Pe of gs(he))ks.call(he,Pe)&&va(Ue,Pe,he[Pe]);return Ue};const Kt=Ue=>g.createElement("svg",at({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".segment-everything_svg__cls-1{fill:#fff}.segment-everything_svg__cls-3{fill:none}")),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"m6.26 15.54 5.88 3.88a1 1 0 0 1 0 1.56L6.1 25.29a.9.9 0 0 1-1.41-.79l.19-8.2a.9.9 0 0 1 1.38-.76ZM7.58 29.17 23.43 17.7a1.71 1.71 0 0 1 2.25.22l3.32 3.5v7.75Z"}),g.createElement("path",{d:"M31 4.35a.88.88 0 0 0-.11-1.19 1 1 0 0 0-1.19-.09c-3.29 2.56-4.66 2.56-8 0a.87.87 0 0 0-1.19.09.87.87 0 0 0-.09 1.19c2.56 3.29 2.56 4.66 0 8a.92.92 0 0 0 1.28 1.28c3.29-2.56 4.66-2.56 8 0a1.28 1.28 0 0 0 .55.18.91.91 0 0 0 .64-.27.87.87 0 0 0 .11-1.19c-2.65-3.35-2.65-4.62 0-8Z",style:{fill:"#fcfefe"}}),g.createElement("path",{className:"segment-everything_svg__cls-3",d:"M4.07 4.13h26.29v26.29H4.07z"}),g.createElement("path",{className:"segment-everything_svg__cls-3",d:"M6.39 28.56h22.49V17H16.49v-3.38a2.56 2.56 0 0 1-2 .93 2.63 2.63 0 0 1-2.59-2.72 2.66 2.66 0 0 1 2.6-2.67 2.57 2.57 0 0 1 2 .95v-4H6.39Z"}),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"M14.51 9.16a2.66 2.66 0 0 0-2.6 2.67 2.63 2.63 0 0 0 2.59 2.72 2.56 2.56 0 0 0 2-.93v-3.51a2.57 2.57 0 0 0-1.99-.95Z"}),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"M28.88 28.56H6.39V6.1h10.1V4.25H5.42a.88.88 0 0 0-.89.88v25.28h26.21V17h-1.86Z"}),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"M17.14 11.87a2.74 2.74 0 0 0-.65-1.76v3.51a2.7 2.7 0 0 0 .65-1.75Z"}));var Vn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9LmNscy0ze2ZpbGw6bm9uZX08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Im02LjI2IDE1LjU0IDUuODggMy44OGExIDEgMCAwIDEgMCAxLjU2TDYuMSAyNS4yOWEuOS45IDAgMCAxLTEuNDEtLjc5bC4xOS04LjJhLjkuOSAwIDAgMSAxLjM4LS43NlpNNy41OCAyOS4xNyAyMy40MyAxNy43YTEuNzEgMS43MSAwIDAgMSAyLjI1LjIybDMuMzIgMy41djcuNzVaIi8+PHBhdGggZD0iTTMxIDQuMzVhLjg4Ljg4IDAgMCAwLS4xMS0xLjE5IDEgMSAwIDAgMC0xLjE5LS4wOWMtMy4yOSAyLjU2LTQuNjYgMi41Ni04IDBhLjg3Ljg3IDAgMC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ChangePointResolution,vt=(0,F.bU)(),zn=vt.localeText,En=(0,g.useMemo)(function(){return Pe.objectList.length===0&&!Pe.creatingObject||Pe.isBatchEditing},[Pe.objectList,Pe.creatingObject,Pe.isBatchEditing]),On=(0,g.useMemo)(function(){return[{key:Q.jB.PenAdd,name:zn("DDSAnnotator.subtoolbar.mask.penAdd"),icon:(0,x.jsx)(H.Z,{component:uo}),available:!0},{key:Q.jB.PenErase,name:zn("DDSAnnotator.subtoolbar.mask.penErase"),icon:(0,x.jsx)(H.Z,{component:as}),available:!!Pe.creatingObject},{key:Q.jB.BrushAdd,name:zn("DDSAnnotator.subtoolbar.mask.brushAdd"),icon:(0,x.jsx)(H.Z,{component:Qs}),available:!0,withSize:!0},{key:Q.jB.BrushErase,name:zn("DDSAnnotator.subtoolbar.mask.brushErase"),icon:(0,x.jsx)(H.Z,{component:Vl}),available:!!Pe.creatingObject,withSize:!0}]},[Pe.creatingObject]),Fn=(0,g.useMemo)(function(){return[{key:Q.jB.AutoSegmentByBox,name:zn("DDSAnnotator.subtoolbar.mask.box"),icon:(0,x.jsx)(H.Z,{component:ec}),available:!0},{key:Q.jB.AutoSegmentByStroke,name:zn("DDSAnnotator.subtoolbar.mask.stroke"),icon:(0,x.jsx)(H.Z,{component:vl}),available:!0,withSize:!0},{key:Q.jB.AutoSegmentByClick,name:zn("DDSAnnotator.subtoolbar.mask.click"),icon:(0,x.jsx)(H.Z,{component:vs}),available:!0}]},[]),mr=(0,g.useMemo)(function(){return[{key:Q.jB.AutoSegmentByBox,name:zn("DDSAnnotator.subtoolbar.mask.box"),icon:(0,x.jsx)(H.Z,{component:ec}),available:!0,withCustomElement:!0},{key:Q.jB.AutoSegmentByStroke,name:zn("DDSAnnotator.subtoolbar.mask.stroke"),icon:(0,x.jsx)(H.Z,{component:vl}),available:!0,withSize:!0,withCustomElement:!0},{key:Q.jB.AutoSegmentByClick,name:zn("DDSAnnotator.subtoolbar.mask.click"),icon:(0,x.jsx)(H.Z,{component:vs}),available:!0,withCustomElement:!0}]},[]),fr=(0,g.useMemo)(function(){var Or;return[{key:Q.jB.PositiveVisualPrompt,name:zn("DDSAnnotator.subtoolbar.visualprompt.positive"),icon:(0,x.jsx)(H.Z,{component:Vo}),available:!0},{key:Q.jB.NegativeVisualPrompt,name:zn("DDSAnnotator.subtoolbar.visualprompt.negative"),icon:(0,x.jsx)(H.Z,{component:wl}),available:!!((Or=Pe.prompt.promptsQueue)!==null&&Or!==void 0&&Or.some(function(ar){return ar.isPositive}))}]},[Pe.prompt]),or=(0,g.useMemo)(function(){return[{key:Q.jB.AutoSegmentEverything,name:zn("DDSAnnotator.subtoolbar.mask.sam"),icon:(0,x.jsx)(H.Z,{component:Kt}),available:En,description:zn(En?"DDSAnnotator.subtoolbar.mask.sam.desc":"DDSAnnotator.subtoolbar.mask.sam.notAllow")},{key:Q.jB.AutoEdgeStitching,name:zn("DDSAnnotator.subtoolbar.mask.edgeStitch"),icon:(0,x.jsx)(H.Z,{component:fl}),available:!0,withSize:!0}]},[En]),jn=(0,g.useMemo)(function(){var Or=Pe.selectedTool,ar=Pe.creatingObject,hr=Pe.AIAnnotation,Pr=Pe.selectedModel;return!!(Or===Q.ru.Mask||(ar==null?void 0:ar.type)===Q.gr.Mask||Or===Q.ru.Rectangle&&hr&&Pr[Or]===Q.HE.IVP||(Or===Q.ru.Polygon||(ar==null?void 0:ar.type)===Q.gr.Polygon)&&hr)},[Pe.selectedTool,Pe.creatingObject,Pe.AIAnnotation,Pe.selectedModel]),ua=(0,g.useMemo)(function(){var Or,ar;if(Pe.selectedTool===Q.ru.Mask||((Or=Pe.creatingObject)===null||Or===void 0?void 0:Or.type)===Q.gr.Mask){if(!Pe.AIAnnotation)return{basicTools:On,smartTools:[]};var hr=Pe.selectedModel[Pe.selectedTool];return hr===Q.HE.IVP?{basicTools:[],smartTools:fr}:hr===Q.HE.SegmentByMask?{basicTools:[],smartTools:Fn}:hr===Q.HE.SegmentEverything?{basicTools:[],smartTools:or}:{basicTools:On,smartTools:[]}}else{if(Pe.selectedTool===Q.ru.Polygon||((ar=Pe.creatingObject)===null||ar===void 0?void 0:ar.type)===Q.gr.Polygon)return{basicTools:[],smartTools:mr,customElement:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-title",children:zn("DDSAnnotator.subtoolbar.polygon.pointResolution")}),(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-slider",children:(0,x.jsx)(Yn.Z,{min:.1,max:.9,step:.1,value:Pe.pointResolution,onChange:Un,onAfterChange:function(aa){return Un(aa,!0)}})})]})};if(Pe.selectedTool===Q.ru.Rectangle&&Pe.AIAnnotation&&Pe.selectedModel[Pe.selectedTool]===Q.HE.IVP)return{basicTools:[],smartTools:fr}}return{basicTools:[],smartTools:[]}},[Pe.selectedTool,Pe.creatingObject,Pe.AIAnnotation,Pe.selectedModel,mr,On,Fn,or,fr,Pe.pointResolution]);return{showSubTools:jn,currSubTools:ua}},Da=gr,lo=function(he){var Pe=he.mode,Un=he.manualMode,vt=he.drawData,zn=he.setDrawData,En=he.setDrawDataWithHistory,On=he.editState,Fn=he.setEditState,mr=he.clientSize,fr=he.naturalSize,or=he.addObject,jn=he.updateObject,ua=he.updateAllObject,Or=he.getAnnotColor,ar=he.onAiAnnotation,hr=(0,F.bU)(),Pr=hr.localeText,aa=(0,g.useCallback)(function(Yt){var Ln;return On.annotsDisplayOptions.colorByCategory?Or(Yt):vt.activeObjectIndex>-1?vt.objectList[vt.activeObjectIndex].color:((Ln=vt.creatingObject)===null||Ln===void 0?void 0:Ln.color)||Or(Yt)},[On.annotsDisplayOptions.colorByCategory,Or,vt.activeObjectIndex,vt.objectList,vt.creatingObject]),Jn=function(Ln){var qn=vt.objectList[vt.activeObjectIndex];if(qn){var cr=t()(t()({},vt.objectList[vt.activeObjectIndex]),{},{attributes:void 0});cr.labelId=Ln,On.annotsDisplayOptions.colorByCategory&&(cr.color=Or(Ln)),cr.type===Q.gr.Mask&&cr.maskRle&&(cr.maskCanvasElement=(0,yr.ei)(cr.maskRle,fr,cr.color)),vt.isBatchEditing&&(cr.conf=1),jn(cr,vt.activeObjectIndex)}Fn(function(Dr){Dr.latestLabelId=Ln})},fa=(0,g.useCallback)(function(Yt){var Ln,qn;if(((Ln=vt.creatingObject)===null||Ln===void 0?void 0:Ln.type)===Q.gr.Mask){var cr,Dr,Rr=(0,yr.G9)(mr,fr,((cr=vt.creatingObject)===null||cr===void 0?void 0:cr.tempMaskSteps)||[],(Dr=vt.creatingObject)===null||Dr===void 0?void 0:Dr.maskCanvasElement);if(Rr&&Rr.length>0){var Aa=aa(Yt),xa=t()(t()({},vt.objectList[vt.activeObjectIndex]),{},{type:Q.gr.Mask,labelId:Yt,hidden:!1,maskRle:Rr,maskCanvasElement:(0,yr.ei)(Rr,fr,Aa),conf:1,status:W.TK.Commited,color:Aa});vt.activeObjectIndex>-1?jn(xa,vt.activeObjectIndex):or(xa)}else Rr?S.ZP.warning(Pr("DDSAnnotator.anno.mask.emptyWarning")):S.ZP.error(Pr("DDSAnnotator.anno.mask.translateToRleError"))}else if(((qn=vt.creatingObject)===null||qn===void 0?void 0:qn.type)===Q.gr.Polygon){var pa,za=Or(Yt),ha=t()(t()({},vt.objectList[vt.activeObjectIndex]),{},{type:Q.gr.Polygon,labelId:Yt,hidden:!1,polygon:(pa=vt.creatingObject)===null||pa===void 0?void 0:pa.polygon,conf:1,status:W.TK.Commited,color:za});vt.activeObjectIndex>-1?jn(ha,vt.activeObjectIndex):or(ha)}else{var Yr=t()({},vt.objectList[vt.activeObjectIndex]);Yr.labelId=Yt,On.annotsDisplayOptions.colorByCategory&&(Yr.color=Or(Yt)),vt.isBatchEditing&&(Yr.conf=1),jn(Yr,vt.activeObjectIndex)}zn(function($a){$a.creatingObject=void 0,$a.prompt={},$a.activeObjectIndex=-1,$a.selectedSubTool===Q.jB.PenErase?$a.selectedSubTool=Q.jB.PenAdd:$a.selectedSubTool===Q.jB.BrushErase&&($a.selectedSubTool=Q.jB.BrushAdd)}),Fn(function($a){$a.latestLabelId=Yt})},[vt.creatingObject,vt.activeObjectIndex,vt.objectList,vt.selectedSubTool]),Qr=(0,g.useCallback)(function(){En(function(Yt){var Ln=(0,m.cloneDeep)(vt.objectList).filter(function(qn){return qn.status!==W.TK.Unchecked}).map(function(qn){return qn.status=W.TK.Commited,qn.type!==Q.gr.Mask&&(qn.color=Or(qn.labelId)),qn});Yt.objectList=Ln,Yt.isBatchEditing=!1,Yt.activeObjectIndex=-1,Yt.creatingObject=void 0,Yt.prompt={}})},[vt.objectList,En]),$r=(0,g.useCallback)(function(){En(function(Yt){var Ln=(0,m.cloneDeep)(vt.objectList).filter(function(qn){return qn.status===W.TK.Commited});Yt.objectList=Ln,Yt.isBatchEditing=!1,Yt.activeObjectIndex=-1,Yt.creatingObject=void 0,Yt.prompt={}})},[vt.objectList,En]),lr=(0,g.useCallback)(function(){var Yt=vt.selectedTool,Ln=vt.AIAnnotation,qn=vt.selectedModel,cr=vt.selectedSubTool,Dr=vt.isBatchEditing,Rr=vt.creatingObject,Aa=function(){if(!Ln)return!1;if(Yt===Q.ru.Rectangle)return Dr;if(Yt===Q.ru.Polygon)return Rr;if(Yt===Q.ru.Skeleton)return Dr;if(Yt===Q.ru.Mask){var za=qn[Yt];return za===Q.HE.IVP||za===Q.HE.SegmentEverything&&cr===Q.jB.AutoSegmentEverything?Dr:za===Q.HE.SegmentByMask?Rr:!1}return!1},xa=Aa();return xa&&S.ZP.warning(Pr("DDSAnnotator.smart.tip.limitJump")),xa},[vt.selectedTool,vt.selectedModel,vt.AIAnnotation,vt.selectedSubTool,vt.isBatchEditing,vt.creatingObject]),Ir=(0,g.useCallback)(function(Yt){Pe!==W.je.Edit||Yt===vt.selectedTool&&!vt.AIAnnotation||lr()||zn(function(Ln){Ln.selectedTool=Yt,Ln.isJustCreated=!1,Ln.AIAnnotation=!1,Ln.activeObjectIndex=-1,Ln.creatingObject=void 0,Ln.editingAttribute=void 0,Ln.prompt={}})},[Pe,vt.selectedTool,vt.isBatchEditing,vt.AIAnnotation,lr]),Vr=(0,g.useCallback)(function(Yt){var Ln=vt.selectedTool,qn=vt.selectedModel,cr=vt.selectedSubTool,Dr=vt.AIAnnotation,Rr=vt.isBatchEditing;Pe!==W.je.Edit||Yt===cr||Ln===Q.ru.Mask&&Dr&&qn[Ln]===Q.HE.SegmentEverything&&Rr||zn(function(Aa){Aa.selectedSubTool=Yt})},[Pe,vt.selectedTool,vt.AIAnnotation,vt.selectedModel,vt.isBatchEditing,vt.selectedSubTool,lr]),Ar=(0,g.useCallback)(function(Yt,Ln){zn(function(qn){qn.selectedTool=Yt,qn.selectedSubTool=Ln})},[]),Y=(0,g.useCallback)(function(){En(function(Yt){Yt.objectList=Yt.objectList.filter(function(Ln){return Ln.status===W.TK.Commited}),Yt.AIAnnotation=!1,Yt.isBatchEditing=!1,Yt.creatingObject=void 0,Yt.prompt={}})},[En]),z=(0,g.useCallback)(function(Yt){Pe===W.je.Edit&&zn(function(Ln){Ln.brushSize=Yt})},[Pe]),ue=(0,g.useCallback)(function(Yt){Pe===W.je.Edit&&zn(function(Ln){Ln.pointResolution=Yt})},[Pe]),Ce=(0,g.useCallback)(function(Yt,Ln){if(ue(Yt),Ln&&vt.creatingObject&&vt.creatingObject.type===Q.gr.Polygon&&vt.prompt.promptsQueue&&vt.prompt.promptsQueue.length>0){var qn=t()(t()({},vt),{},{pointResolution:Yt});ar({type:Q.gr.Polygon,drawData:qn,promptsQueue:vt.prompt.promptsQueue})}},[vt.creatingObject,vt.prompt]),Re=function(){n.Z.info({centered:!0,closable:!0,title:Pr("DDSAnnotator.smart.infoModal.title"),content:Pr("DDSAnnotator.smart.infoModal.content"),okText:Pr("DDSAnnotator.smart.infoModal.action"),onOk:function(){window.open("https://deepdataspace.com","_blank")}})},rt=(0,g.useCallback)(function(Yt){Pe!==W.je.Edit||Un||lr()||zn(function(Ln){Ln.AIAnnotation=Yt})},[Pe,Un,lr]),Mt=(0,g.useCallback)(function(Yt){En(function(Ln){var qn=(0,m.cloneDeep)(vt.objectList).map(function(cr){return cr.status===W.TK.Commited?cr:cr.conf===void 0?(cr.status=W.TK.Unchecked,cr):(cr.status=cr.confYt[1]?W.TK.Unchecked:W.TK.Checked,cr)});Ln.objectList=qn})},[vt.objectList,En]),Dt=(0,g.useCallback)(function(Yt){En(function(Ln){var qn=(0,m.cloneDeep)(vt.objectList).map(function(Dr){return Dr.status===W.TK.Commited||(Dr.status=Dr.conf&&Dr.conf>=Yt?W.TK.Checked:W.TK.Unchecked),Dr});Ln.objectList=qn;var cr=qn.filter(function(Dr){return Dr.status===W.TK.Checked}).length;S.ZP.success(Pr("DDSAnnotator.smart.tip.annotationApplied",{count:cr}))})},[vt.objectList,En]),Vt=(0,g.useCallback)(function(Yt){Fn(function(Ln){Ln.imageDisplayOptions=Yt})},[]),nn=(0,g.useCallback)(function(Yt){Fn(function(Ln){Ln.annotsDisplayOptions=Yt})},[]),fn=(0,g.useCallback)(function(){if(!(!vt.objectList||!vt.objectList.length)){var Yt=(0,m.cloneDeep)(vt.objectList).map(function(Ln){var qn=Or(Ln.labelId);return Ln.type===Q.gr.Mask&&Ln.maskRle&&Ln.maskRle.length>0?t()(t()({},Ln),{},{color:qn,maskCanvasElement:(0,yr.ei)(Ln.maskRle,fr,qn)}):t()(t()({},Ln),{},{color:qn})});ua(Yt)}},[vt.objectList,Or]),hn=(0,g.useCallback)(function(Yt){var Ln=vt.selectedTool,qn=Q.Xn[Ln];return!(!qn.includes(Yt)||lr())},[Q.Xn,vt.selectedTool,lr]),bn=(0,g.useCallback)(function(Yt){hn(Yt)&&zn(function(Ln){Ln.selectedModel[Ln.selectedTool]=Yt})},[hn]);return(0,g.useEffect)(function(){zn(function(Yt){if(Yt.AIAnnotation){var Ln=Yt.selectedModel[Yt.selectedTool];switch(Yt.selectedTool){case Q.ru.Rectangle:Ln===Q.HE.IVP?Yt.selectedSubTool=Q.jB.PositiveVisualPrompt:Yt.selectedSubTool=Q.jB.PenAdd;break;case Q.ru.Mask:if(Ln===Q.HE.IVP)Yt.selectedSubTool=Q.jB.PositiveVisualPrompt;else if(Ln===Q.HE.SegmentEverything){var qn=Yt.objectList.length===0&&!Yt.creatingObject||Yt.isBatchEditing;Yt.selectedSubTool=qn?Q.jB.AutoSegmentEverything:Q.jB.PenAdd}else Yt.selectedSubTool=Q.jB.AutoSegmentByBox;break;case Q.ru.Polygon:Yt.selectedSubTool=Q.jB.AutoSegmentByBox;break;case Q.ru.Skeleton:case Q.ru.Drag:Yt.selectedSubTool=Q.jB.PenAdd;break}}else Yt.selectedSubTool=Q.jB.PenAdd})},[vt.selectedTool,vt.AIAnnotation,vt.selectedModel]),{onChangeObjectLabel:Jn,onFinishCurrCreate:fa,onAcceptValidObjects:Qr,onAbortBatchObjects:$r,selectTool:Ir,selectSubTool:Vr,forceChangeTool:Ar,onExitAIAnnotation:Y,setBrushSize:z,activeAIAnnotation:rt,displayAIModeUnavailableModal:Re,onChangeSkeletonConf:Mt,onChangeLimitConf:Dt,onChangeImageDisplayOpts:Vt,onChangeAnnotsDisplayOpts:nn,onChangeColorMode:fn,onChangePointResolution:Ce,onSelectModel:bn,isInAiSession:lr}},ii=lo,Fo=e(92183),es=Object.defineProperty,ei=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ao=(Ue,he,Pe)=>he in Ue?es(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ki=(Ue,he)=>{for(var Pe in he||(he={}))di.call(he,Pe)&&Ao(Ue,Pe,he[Pe]);if(ei)for(var Pe of ei(he))Eo.call(he,Pe)&&Ao(Ue,Pe,he[Pe]);return Ue};const ms=Ue=>g.createElement("svg",ki({viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#docs_svg__a)"},g.createElement("path",{d:"M14.666 5.5a.917.917 0 1 1 0 1.833H7.333a.917.917 0 1 1 0-1.833h7.333Zm7.065 16.231a.916.916 0 0 1-1.296 0l-2.206-2.206a4.086 4.086 0 0 1-4.48-.053 4.125 4.125 0 1 1 6.417-3.43 4.085 4.085 0 0 1-.641 2.187l2.206 2.206a.917.917 0 0 1 0 1.296Zm-5.69-3.398a2.292 2.292 0 1 0 0-4.583 2.292 2.292 0 0 0 0 4.583Zm-4.125 1.834h-5.5a2.75 2.75 0 0 1-2.75-2.75V4.583a2.75 2.75 0 0 1 2.75-2.75h11a.917.917 0 0 1 .917.917v7.333a.917.917 0 0 0 1.833 0V2.75A2.75 2.75 0 0 0 17.416 0h-11a4.589 4.589 0 0 0-4.583 4.583v12.834A4.589 4.589 0 0 0 6.416 22h5.5a.917.917 0 1 0 0-1.833Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"docs_svg__a"},g.createElement("path",{d:"M0 0h22v22H0z"}))));var Du="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjIgMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMTQuNjY2IDUuNWEuOTE3LjkxNyAwIDEgMSAwIDEuODMzSDcuMzMzYS45MTcuOTE3IDAgMSAxIDAtMS44MzNoNy4zMzNabTcuMDY1IDE2LjIzMWEuOTE2LjkxNiAwIDAgMS0xLjI5NiAwbC0yLjIwNi0yLjIwNmE0LjA4NiA0LjA4NiAwIDAgMS00LjQ4LS4wNTMgNC4xMjUgNC4xMjUgMCAxIDEgNi40MTctMy40MyA0LjA4NSA0LjA4NSAwIDAgMS0uNjQxIDIuMTg3bDIuMjA2IDIuMjA2YS45MTcuOTE3IDAgMCAxIDAgMS4yOTZabS01LjY5LTMuMzk4YTIuMjkyIDIuMjkyIDAgMSAwIDAtNC41ODMgMi4yOTIgMi4yOTIgMCAwIDAgMCA0LjU4M1ptLTQuMTI1IDEuODM0aC01LjVhMi43NSAyLjc1IDAgMCAxLTIuNzUtMi43NVY0LjU4M2EyLjc1IDIuNzUgMCAwIDEgMi43NS0yLjc1aDExYS45MTcuOTE3IDAgMCAxIC45MTcuOTE3djcuMzMzYS45MTcuOTE3IDAgMCAwIDEuODMzIDBWMi43NUEyLjc1IDIuNzUgMCAwIDAgMTcuNDE2IDBoLTExYTQuNTg5IDQuNTg5IDAgMCAwLTQuNTgzIDQuNTgzdjEyLjgzNEE0LjU4OSA0LjU4OSAwIDAgMCA2LjQxNiAyMmg1LjVhLjkxNy45MTcgMCAxIDAgMC0xLjgzM1oiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Xl=Object.defineProperty,ls=Object.getOwnPropertySymbols,wu=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,us=(Ue,he,Pe)=>he in Ue?Xl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Oc=(Ue,he)=>{for(var Pe in he||(he={}))wu.call(he,Pe)&&us(Ue,Pe,he[Pe]);if(ls)for(var Pe of ls(he))Jl.call(he,Pe)&&us(Ue,Pe,he[Pe]);return Ue};const nc=Ue=>g.createElement("svg",Oc({viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Ue),g.createElement("path",{d:"m15.5 1 13.423 7.75v15.5L15.5 32 2.077 24.25V8.75L15.5 1Z",fill:"#fff"}),g.createElement("path",{fill:"url(#logo_svg__a)",d:"M0 0h33v33H0z"}),g.createElement("defs",null,g.createElement("pattern",{id:"logo_svg__a",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#logo_svg__b",transform:"scale(.00417)"})),g.createElement("image",{id:"logo_svg__b",width:240,height:240,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAAC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rRGx2Q3czNjNKbm9SeDlkYTAyQWgvTFZEOHNKSGx1MGF2WEgrZXI1dWlMVlpkbm5NaHQvZEtsMUFSNUt1VCtXNVlOblJlL2hTT2RXYlo5YnluS1gyeFJWMWVlUzNpd09aN3l1QThTdXRRRzJraTZydjlBZmMrOXo1ZVhzYnR2SzVYL1M2Z0FQRFlKOGFmWUk1ZmVVR3RNZm43NTZkSDMzR09kdElmSzBhTWNaQW54RDB0dE9waisyL3lBRTdhRFBUUWNDL0EvYWZtd3hJbXlQK1lXQ0FOOGg4ZjQ0ZHVoelI0UUFmMEViankwMnFRM2pqeTRod0NQQ2JabCsyV04rUXFvTjlMbmpRWURIMUlaamk0RWxlY3d2RkFSNEF1aVBYV25uK0tOTENIQU5DUjliOUFwOXJqc0lzQVBvajBmVHBtTitvU0RBamx4TmMyMFF5V1RmZzFzRHRvVThRWUFkUTM5OEcvcGNueEJnVDlwZVZtUDhNUXdFMkxQOCtkbUdWbks5TFVIR01iK3dFT0FBV2xKV284OXRBQUljRU9NenVQY3lYNktlS09VbXRvWENRNEFia0VwL2pENjNlUWh3ZzY3R011MjJFN2VEOVJoL2pBUUMzREIyL2JGOW14LzYzR2dnd0pHbyttT3BqMkl0cXpIK0dDY0VPREt4OWNjWWY0d2JBaHloZlBsOVIwMU5iVFI4YkJGOUxnTUljTVNhNjQ4eC9zZ0ZBc3hBL3Z6M1JhMnlmZDlsZGRYblNyVlovRHc3MHFYdzBEd0VtQkZmL1RINlhMNFFZR1ljSDF2RStDTnpDREJURHZyamw3S2Mza1J3ZVVPQW1SdTNyTWI0WTFvUTRFUjg2ZGhpMWVkcXRZMjNIS1FGQVU3SUhXVTErdHlFSWNBSkdoNWJOUHU1ZlJ6elM5di9BV2lQL05ZUHp6MVFBQUFBQUVsRlRrU3VRbUNDIi8+PC9kZWZzPjwvc3ZnPg==",Pl=Object.defineProperty,$l=Object.getOwnPropertySymbols,ku=Object.prototype.hasOwnProperty,Dc=Object.prototype.propertyIsEnumerable,pu=(Ue,he,Pe)=>he in Ue?Pl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,hu=(Ue,he)=>{for(var Pe in he||(he={}))ku.call(he,Pe)&&pu(Ue,Pe,he[Pe]);if($l)for(var Pe of $l(he))Dc.call(he,Pe)&&pu(Ue,Pe,he[Pe]);return Ue};const yu=Ue=>g.createElement("svg",hu({className:"displayReset_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ue),g.createElement("path",{d:"m193.07 70.353 5.423.931a34.91 34.91 0 0 1 28.37 40.425l-.024.07-12.87 72.541A448.698 448.698 0 0 1 507.857 75.38c246.831 0 447.023 197.912 447.023 442.182S754.688 959.744 507.857 959.744c-160.186 0-305.687-84.084-385.466-218.159a37.795 37.795 0 0 1 13.359-51.921 38.167 38.167 0 0 1 52.154 13.289c66.21 111.243 186.903 180.992 319.953 180.992 204.87 0 370.851-164.096 370.851-366.383S712.728 151.18 507.858 151.18c-107.288 0-206.802 45.265-276.318 121.995H373.04a34.91 34.91 0 0 1 0 69.818H163.584c-2.607 0-5.19-.279-7.657-.837a34.63 34.63 0 0 1-5.26-.512l-5.422-.931a34.91 34.91 0 0 1-28.346-40.495l35.77-201.588a34.91 34.91 0 0 1 40.402-28.277z",fill:"#fff"}));var os="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0ibTE5My4wNyA3MC4zNTMgNS40MjMuOTMxYTM0LjkxIDM0LjkxIDAgMCAxIDI4LjM3IDQwLjQyNWwtLjAyNC4wNy0xMi44NyA3Mi41NDFBNDQ4LjY5OCA0NDguNjk4IDAgMCAxIDUwNy44NTcgNzUuMzhjMjQ2LjgzMSAwIDQ0Ny4wMjMgMTk3LjkxMiA0NDcuMDIzIDQ0Mi4xODJTNzU0LjY4OCA5NTkuNzQ0IDUwNy44NTcgOTU5Ljc0NGMtMTYwLjE4NiAwLTMwNS42ODctODQuMDg0LTM4NS40NjYtMjE4LjE1OWEzNy43OTUgMzcuNzk1IDAgMCAxIDEzLjM1OS01MS45MjEgMzguMTY3IDM4LjE2NyAwIDAgMSA1Mi4xNTQgMTMuMjg5YzY2LjIxIDExMS4yNDMgMTg2LjkwMyAxODAuOTkyIDMxOS45NTMgMTgwLjk5MiAyMDQuODcgMCAzNzAuODUxLTE2NC4wOTYgMzcwLjg1MS0zNjYuMzgzUzcxMi43MjggMTUxLjE4IDUwNy44NTggMTUxLjE4Yy0xMDcuMjg4IDAtMjA2LjgwMiA0NS4yNjUtMjc2LjMxOCAxMjEuOTk1SDM3My4wNGEzNC45MSAzNC45MSAwIDAgMSAwIDY5LjgxOEgxNjMuNTg0Yy0yLjYwNyAwLTUuMTktLjI3OS03LjY1Ny0uODM3YTM0LjYzIDM0LjYzIDAgMCAxLTUuMjYtLjUxMmwtNS40MjItLjkzMWEzNC45MSAzNC45MSAwIDAgMS0yOC4zNDYtNDAuNDk1bDM1Ljc3LTIwMS41ODhhMzQuOTEgMzQuOTEgMCAwIDEgNDAuNDAyLTI4LjI3N3oiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",ju=Object.defineProperty,ps=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable,qs=(Ue,he,Pe)=>he in Ue?ju(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Uo=(Ue,he)=>{for(var Pe in he||(he={}))Ki.call(he,Pe)&&qs(Ue,Pe,he[Pe]);if(ps)for(var Pe of ps(he))Ts.call(he,Pe)&&qs(Ue,Pe,he[Pe]);return Ue};const su=Ue=>g.createElement("svg",Uo({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#settings-sliders_svg__a)"},g.createElement("path",{d:"M.833 3.958h2.28a3.107 3.107 0 0 0 5.996 0h10.058a.833.833 0 0 0 0-1.667H9.109a3.107 3.107 0 0 0-5.996 0H.833a.833.833 0 0 0 0 1.667Zm5.278-2.292a1.458 1.458 0 1 1 0 2.917 1.458 1.458 0 0 1 0-2.917ZM19.167 9.167h-2.28a3.106 3.106 0 0 0-5.995 0H.833a.833.833 0 0 0 0 1.666h10.059a3.105 3.105 0 0 0 5.995 0h2.28a.833.833 0 0 0 0-1.666Zm-5.278 2.291a1.458 1.458 0 1 1 0-2.915 1.458 1.458 0 0 1 0 2.915ZM19.167 16.042H9.109a3.107 3.107 0 0 0-5.996 0H.833a.833.833 0 1 0 0 1.666h2.28a3.107 3.107 0 0 0 5.996 0h10.058a.833.833 0 0 0 0-1.666ZM6.11 18.333a1.458 1.458 0 1 1 0-2.915 1.458 1.458 0 0 1 0 2.915Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"settings-sliders_svg__a"},g.createElement("path",{d:"M0 0h20v20H0z"}))));var cs="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNLjgzMyAzLjk1OGgyLjI4YTMuMTA3IDMuMTA3IDAgMCAwIDUuOTk2IDBoMTAuMDU4YS44MzMuODMzIDAgMCAwIDAtMS42NjdIOS4xMDlhMy4xMDcgMy4xMDcgMCAwIDAtNS45OTYgMEguODMzYS44MzMuODMzIDAgMCAwIDAgMS42NjdabTUuMjc4LTIuMjkyYTEuNDU4IDEuNDU4IDAgMSAxIDAgMi45MTcgMS40NTggMS40NTggMCAwIDEgMC0yLjkxN1pNMTkuMTY3IDkuMTY3aC0yLjI4YTMuMTA2IDMuMTA2IDAgMCAwLTUuOTk1IDBILjgzM2EuODMzLjgzMyAwIDAgMCAwIDEuNjY2aDEwLjA1OWEzLjEwNSAzLjEwNSAwIDAgMCA1Ljk5NSAwaDIuMjhhLjgzMy44MzMgMCAwIDAgMC0xLjY2NlptLTUuMjc4IDIuMjkxYTEuNDU4IDEuNDU4IDAgMSAxIDAtMi45MTUgMS40NTggMS40NTggMCAwIDEgMCAyLjkxNVpNMTkuMTY3IDE2LjA0Mkg5LjEwOWEzLjEwNyAzLjEwNyAwIDAgMC01Ljk5NiAwSC44MzNhLjgzMy44MzMgMCAxIDAgMCAxLjY2NmgyLjI4YTMuMTA3IDMuMTA3IDAgMCAwIDUuOTk2IDBoMTAuMDU4YS44MzMuODMzIDAgMCAwIDAtMS42NjZaTTYuMTEgMTguMzMzYTEuNDU4IDEuNDU4IDAgMSAxIDAtMi45MTUgMS40NTggMS40NTggMCAwIDEgMCAyLjkxNVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",rc=(0,g.memo)(function(Ue){var he=Ue.displayOption,Pe=Ue.onChangeImageDisplayOpts,Un=Ue.onChangeAnnotsDisplayOpts,vt=(0,F.bU)(),zn=vt.localeText,En=(0,g.useMemo)(function(){return(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container",children:[(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-header",children:[(0,x.jsx)("div",{children:zn("DDSAnnotator.imgDisplayTool.title")}),(0,x.jsx)(C.ZP,{type:"primary",className:"dds-annotator-display-pop-container-btn",icon:(0,x.jsx)(H.Z,{component:yu}),onClick:function(){return Pe(W.O4)}})]}),(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-option",children:[(0,x.jsx)("label",{children:zn("DDSAnnotator.imgDisplayTool.brightness")}),(0,x.jsx)(Yn.Z,{value:he.brightness,onChange:function(Fn){return Pe(t()(t()({},he),{},{brightness:Fn}))},min:0,max:200})]}),(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-option",children:[(0,x.jsx)("label",{children:zn("DDSAnnotator.imgDisplayTool.contrast")}),(0,x.jsx)(Yn.Z,{value:he.contrast,onChange:function(Fn){return Pe(t()(t()({},he),{},{contrast:Fn}))},min:0,max:200})]}),(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-option",children:[(0,x.jsx)("label",{children:zn("DDSAnnotator.imgDisplayTool.saturate")}),(0,x.jsx)(Yn.Z,{value:he.saturate,onChange:function(Fn){return Pe(t()(t()({},he),{},{saturate:Fn}))},min:0,max:200})]})]})},[he.brightness,he.contrast,he.saturate,Pe,Un]);return(0,x.jsx)(gn.Z,{placement:"top",content:En,trigger:"click",overlayClassName:"dds-annotator-display-popover",color:"#212121",children:(0,x.jsx)(L.Z,{title:zn("DDSAnnotator.imgDisplayTool.title"),children:(0,x.jsx)(H.Z,{component:su,className:"dds-annotator-display"})})})}),el=rc,pl=Object.defineProperty,Ls=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,bu=(Ue,he,Pe)=>he in Ue?pl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Pu=(Ue,he)=>{for(var Pe in he||(he={}))fi.call(he,Pe)&&bu(Ue,Pe,he[Pe]);if(Ls)for(var Pe of Ls(he))Es.call(he,Pe)&&bu(Ue,Pe,he[Pe]);return Ue};const hl=Ue=>g.createElement("svg",Pu({viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#label_svg__a)"},g.createElement("path",{d:"M13.5 27C20.956 27 27 20.956 27 13.5S20.956 0 13.5 0 0 6.044 0 13.5 6.044 27 13.5 27Z",fill:"#26A1F4"}),g.createElement("path",{d:"m18.201 12.527-.007-.008-3.721-3.723s-4.535 4.535-6.72 6.765c-.273.278-.479.664-.601 1.037-.359 1.097-.656 2.215-.986 3.322-.088.297-.07.559.162.78.22.211.466.219.751.133 1.055-.316 2.116-.617 3.176-.92a3.243 3.243 0 0 0 1.432-.865c2.082-2.095 6.514-6.521 6.514-6.521ZM20.373 7.9l-1.272-1.272a1.74 1.74 0 0 0-2.46 0l-1.442 1.44 3.733 3.734 1.442-1.442a1.74 1.74 0 0 0 0-2.46Z",fill:"#fff"})),g.createElement("defs",null,g.createElement("clipPath",{id:"label_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h27v27H0z"}))));var Wu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjcgMjciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMTMuNSAyN0MyMC45NTYgMjcgMjcgMjAuOTU2IDI3IDEzLjVTMjAuOTU2IDAgMTMuNSAwIDAgNi4wNDQgMCAxMy41IDYuMDQ0IDI3IDEzLjUgMjdaIiBmaWxsPSIjMjZBMUY0Ii8+PHBhdGggZD0ibTE4LjIwMSAxMi41MjctLjAwNy0uMDA4LTMuNzIxLTMuNzIzcy00LjUzNSA0LjUzNS02LjcyIDYuNzY1Yy0uMjczLjI3OC0uNDc5LjY2NC0uNjAxIDEuMDM3LS4zNTkgMS4wOTctLjY1NiAyLjIxNS0uOTg2IDMuMzIyLS4wODguMjk3LS4wNy41NTkuMTYyLjc4LjIyLjIxMS40NjYuMjE5Ljc1MS4xMzMgMS4wNTUtLjMxNiAyLjExNi0uNjE3IDMuMTc2LS45MmEzLjI0MyAzLjI0MyAwIDAgMCAxLjQzMi0uODY1YzIuMDgyLTIuMDk1IDYuNTE0LTYuNTIxIDYuNTE0LTYuNTIxWk0yMC4zNzMgNy45bC0xLjI3Mi0xLjI3MmExLjc0IDEuNzQgMCAwIDAtMi40NiAwbC0xLjQ0MiAxLjQ0IDMuNzMzIDMuNzM0IDEuNDQyLTEuNDQyYTEuNzQgMS43NCAwIDAgMCAwLTIuNDZaIiBmaWxsPSIjZmZmIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgyN3YyN0gweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==",Tu=Object.defineProperty,Zl=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable,Xo=(Ue,he,Pe)=>he in Ue?Tu(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,B=(Ue,he)=>{for(var Pe in he||(he={}))Tl.call(he,Pe)&&Xo(Ue,Pe,he[Pe]);if(Zl)for(var Pe of Zl(he))Ul.call(he,Pe)&&Xo(Ue,Pe,he[Pe]);return Ue};const ve=Ue=>g.createElement("svg",B({viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M13.5 27C20.956 27 27 20.956 27 13.5S20.956 0 13.5 0 0 6.044 0 13.5 6.044 27 13.5 27Z",fill:"#FFD305"}),g.createElement("path",{d:"m20.713 19.26-.369-.37-.063-.064-1.493 1.493.036.036.396.396c.254.254.791.125 1.207-.287.415-.412.54-.952.286-1.204ZM16.709 15.31a5.797 5.797 0 1 0-1.515 1.47l3.229 3.181 1.493-1.492-3.207-3.16Zm-4.655.717a4.092 4.092 0 1 1 0-8.184 4.092 4.092 0 0 1 0 8.184Z",fill:"#fff"}));var Ze="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjcgMjciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjUgMjdDMjAuOTU2IDI3IDI3IDIwLjk1NiAyNyAxMy41UzIwLjk1NiAwIDEzLjUgMCAwIDYuMDQ0IDAgMTMuNSA2LjA0NCAyNyAxMy41IDI3WiIgZmlsbD0iI0ZGRDMwNSIvPjxwYXRoIGQ9Im0yMC43MTMgMTkuMjYtLjM2OS0uMzctLjA2My0uMDY0LTEuNDkzIDEuNDkzLjAzNi4wMzYuMzk2LjM5NmMuMjU0LjI1NC43OTEuMTI1IDEuMjA3LS4yODcuNDE1LS40MTIuNTQtLjk1Mi4yODYtMS4yMDRaTTE2LjcwOSAxNS4zMWE1Ljc5NyA1Ljc5NyAwIDEgMC0xLjUxNSAxLjQ3bDMuMjI5IDMuMTgxIDEuNDkzLTEuNDkyLTMuMjA3LTMuMTZabS00LjY1NS43MTdhNC4wOTIgNC4wOTIgMCAxIDEgMC04LjE4NCA0LjA5MiA0LjA5MiAwIDAgMSAwIDguMTg0WiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",ot=(0,g.memo)(function(Ue){var he=Ue.mode,Pe=(0,F.bU)(),Un=Pe.localeText;return he===W.je.View?null:(0,x.jsx)("div",{className:c()("dds-annotator-editor-status","dds-annotator-editor-status-".concat(he)),children:he===W.je.Edit?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(hl,{}),Un("DDSAnnotator.status.labeling")]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ve,{}),Un("DDSAnnotator.status.reviewing")]})})}),Lt=ot,Nn=e(12673),Fr=e(51244),oo=(0,g.memo)(function(Ue){var he=Ue.onAdd,Pe=(0,F.bU)(),Un=Pe.localeText,vt=(0,g.useRef)(null),zn=(0,g.useState)(""),En=s()(zn,2),On=En[0],Fn=En[1],mr=function(jn){jn.stopPropagation(),Fn(jn.target.value)},fr=function(){var jn;On!==""&&(he(On),Fn(""),(jn=vt.current)===null||jn===void 0||jn.focus())};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Fr.Z,{style:{margin:"8px 0"}}),(0,x.jsxs)(Zn.Z,{style:{padding:"0 8px 4px"},children:[(0,x.jsx)(T.Z,{placeholder:Un("DDSAnnotator.annotsEditor.addCategory"),ref:vt,value:On,onChange:mr,onKeyDown:function(jn){jn.code==="Enter"&&fr(),jn.stopPropagation()}}),(0,x.jsx)(C.ZP,{type:"text",icon:(0,x.jsx)(Nn.Z,{}),onClick:fr,children:Un("DDSAnnotator.annotsEditor.add")})]})]})}),jo=oo,li=(0,g.memo)(function(Ue){var he,Pe=Ue.drawData,Un=Ue.latestLabelId,vt=Ue.isSeperate,zn=Ue.labelOptions,En=Ue.labelColors,On=Ue.onChangeObjectLabel,Fn=Ue.onCreateCategory,mr=(0,F.bU)(),fr=mr.localeText,or=(0,g.useMemo)(function(){if(zn.length>0){var jn,ua=(jn=zn[0])===null||jn===void 0?void 0:jn.labelType,Or=ua&&Q.t[ua],ar=Q.Zo[Or];if(ar)return Q.ef[ar]}},[zn]);return(0,x.jsx)("div",{className:"dds-annotator-label-selector",children:(0,x.jsx)(zt.Z,{showSearch:!0,placeholder:fr("DDSAnnotator.label.select"),size:"middle",value:((he=Pe.objectList[Pe.activeObjectIndex])===null||he===void 0?void 0:he.labelId)||Un,onChange:On,popupClassName:"objects-select-popup",onClick:function(ua){return ua.stopPropagation()},onKeyUp:function(ua){return ua.stopPropagation()},onInputKeyDown:function(ua){ua.code!=="Enter"&&ua.stopPropagation()},filterOption:function(ua,Or){var ar,hr,Pr,aa=(Or==null||(ar=Or.children)===null||ar===void 0?void 0:ar[((Or==null||(hr=Or.children)===null||hr===void 0?void 0:hr.length)||0)-1])||"";return(Pr=aa.toLowerCase())===null||Pr===void 0?void 0:Pr.includes(ua.toLowerCase())},dropdownRender:function(ua){return(0,x.jsxs)(x.Fragment,{children:[ua,vt&&(0,x.jsx)(jo,{onAdd:Fn})]})},children:zn==null?void 0:zn.map(function(jn){return(0,x.jsxs)(zt.Z.Option,{value:jn.id,className:"dds-annotator-label-selector-option",children:[or?(0,x.jsx)(or,{color:jn.renderColor,fill:jn.renderColor}):(0,x.jsx)("div",{className:"dds-annotator-label-selector-option-color",style:{backgroundColor:En==null?void 0:En[jn.id]}}),jn.name]},jn.id)})})})}),Yi=li,tl=(0,g.memo)(function(Ue){var he=Ue.selectedTool,Pe=Ue.selectedModel,Un=Ue.modelOptions,vt=Ue.onSelectModel,zn=(0,F.bU)(),En=zn.localeText,On=Q.Zo[he];return(0,x.jsx)("div",{className:"dds-annotator-model-selector",children:(0,x.jsx)(zt.Z,{placeholder:En("DDSAnnotator.label.select"),size:"middle",value:Pe,onChange:vt,popupClassName:"objects-select-popup",onClick:function(mr){return mr.stopPropagation()},onKeyUp:function(mr){return mr.stopPropagation()},onInputKeyDown:function(mr){mr.code!=="Enter"&&mr.stopPropagation()},children:Un==null?void 0:Un.map(function(Fn,mr){return(0,x.jsxs)(zt.Z.Option,{value:Fn,className:"dds-annotator-model-selector-option",children:[(0,x.jsx)(H.Z,{component:Q.VC[On]}),Q.TR[Fn]&&En(Q.TR[Fn].name)]},mr)})})})}),yl=tl,ac=(0,g.memo)(function(Ue){var he,Pe=Ue.toolOptions,Un=Ue.selectedSubTool,vt=Ue.isAIAnnotationActive,zn=Ue.brushSize,En=Ue.onChangeSubTool,On=Ue.onChangeBrushSize,Fn=(0,g.useMemo)(function(){return[].concat(Qt()(Pe.basicTools),Qt()(Pe.smartTools))},[Pe.basicTools,Pe.smartTools]),mr=(0,g.useMemo)(function(){for(var Or=[],ar=1;ar<=Fn.length;ar++)Or.push(ar.toString());return Or},[Fn]);(0,Ee.Z)(mr,function(Or){var ar=Fn.find(function(hr,Pr){return(Pr+1).toString()===Or.key});if(ar&&ar.available){if(Pe.smartTools.find(function(hr){return ar.key===hr.key})&&!vt)return;En(ar.key)}},{exactMatch:!0});var fr=function(ar){var hr=Fn.find(function(Pr){return Pr.key===Un});ar.type==="mouseup"&&(hr!=null&&hr.withSize||hr!=null&&hr.withCustomElement)||ar.stopPropagation()},or=function(ar){var hr=Fn.findIndex(function(Pr){return Pr.key===ar.key})+1;return(0,x.jsxs)("div",{className:"dds-annotator-subtoolbar-popover",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("span",{className:"dds-annotator-subtoolbar-popover-title",children:ar.name}),hr&&(0,x.jsx)("span",{className:"dds-annotator-subtoolbar-popover-key",children:hr})]}),ar.description&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-popover-divider"}),(0,x.jsx)("div",{children:ar.description})]})]})},jn=function(ar){var hr=Fn.find(function(Pr){return Pr.key===ar});hr&&hr.available&&En(ar)},ua=function(ar){return(0,x.jsx)(gn.Z,{placement:"bottom",content:or(ar),children:(0,x.jsx)(C.ZP,{className:c()("dds-annotator-subtoolbar-btn",{"dds-annotator-subtoolbar-btn-active":Un===ar.key&&ar.available,"dds-annotator-subtoolbar-btn-limited":ar.available}),style:{cursor:ar.available?"pointer":"not-allowed"},icon:ar.icon,onClick:function(){return jn(ar.key)}})},ar.key)};return(0,x.jsx)(A,{eventHandler:fr,children:(0,x.jsxs)("div",{className:"dds-annotator-subtoolbar",children:[Pe.basicTools.map(function(Or){return ua(Or)}),vt&&(0,x.jsxs)(x.Fragment,{children:[Pe.basicTools.length>0&&Pe.smartTools.length>0&&(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),Pe.smartTools.map(function(Or){return ua(Or)})]}),Pe.customElement&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),Pe.customElement]}),!!((he=Fn.find(function(Or){return Or.key===Un}))!==null&&he!==void 0&&he.withSize)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-title",children:"Brush Size"}),(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-slider",children:(0,x.jsx)(Yn.Z,{defaultValue:20,min:1,max:100,value:zn,onChange:function(ar){return On(ar)}})})]})]})})}),Ii=ac,oc=function(he){var Pe=he.className,Un=Pe===void 0?"":Pe,vt=he.children,zn=he.leftTools,En=zn===void 0?[]:zn,On=he.rightTools,Fn=On===void 0?[]:On,mr=function(or){return or.map(function(jn,ua){var Or=jn.title,ar=jn.icon,hr=jn.onClick,Pr=jn.disabled,aa=jn.splitLine,Jn=jn.customElement;return(0,x.jsxs)(g.Fragment,{children:[Jn||(0,x.jsx)(L.Z,{title:Or,children:(0,x.jsx)("div",{className:c()("dds-annnotator-toptools-row-icon",{"dds-annnotator-toptools-row-icon-disabled":!!Pr}),onClick:hr,children:ar})}),aa&&(0,x.jsx)("div",{className:"dds-annnotator-toptools-row-split"})]},ua)})};return(0,x.jsxs)("div",{className:c()("dds-annnotator-toptools",Un),onMouseDown:function(or){or.stopPropagation()},children:[(0,x.jsx)("div",{className:"dds-annnotator-toptools-row",children:mr(En)}),(0,x.jsx)("div",{className:"dds-annnotator-toptools-progress",children:vt}),(0,x.jsx)("div",{className:"dds-annnotator-toptools-row",children:mr(Fn)})]})},wc=oc,ic=function(he){var Pe=he.isOldMode,Un=he.isSeperate,vt=he.mode,zn=he.fileName,En=he.drawData,On=he.editState,Fn=he.hideTopBarActions,mr=he.titleElements,fr=he.actionElements,or=he.enableReviewerModify,jn=he.labelOptions,ua=he.labelColors,Or=he.showSubTools,ar=he.currSubTools,hr=he.topBarCenterElement,Pr=he.selectSubTool,aa=he.setBrushSize,Jn=he.activeAIAnnotation,fa=he.onChangeImageDisplayOpts,Qr=he.onChangeAnnotsDisplayOpts,$r=he.onChangeObjectLabel,lr=he.onCreateCategory,Ir=he.onSaveAnnotations,Vr=he.onCommitAnnotations,Ar=he.onRejectAnnotations,Y=he.onAcceptAnnotations,z=he.onModifyAnnotations,ue=he.onCancelAnnotations,Ce=he.onSelectModel,Re=(0,F.bU)(),rt=Re.localeText,Mt=function(){window.open("https://docs.deepdataspace.com")},Dt=(0,g.useMemo)(function(){var fn=fr?fr.map(function(hn){return{customElement:hn}}):[];return Fn||(vt===W.je.Review&&fn.push.apply(fn,[{customElement:(0,x.jsx)(C.ZP,{type:"primary",danger:!0,onClick:Ar,children:rt("DDSAnnotator.reject")})}].concat(Qt()(Pe||!or?[]:[{customElement:(0,x.jsx)(C.ZP,{type:"default",onClick:z,children:rt("DDSAnnotator.modify")})}]),[{customElement:(0,x.jsx)(C.ZP,{type:"primary",onClick:Y,children:rt("DDSAnnotator.approve")})}])),vt===W.je.Edit&&!Un&&(fn.push({customElement:(0,x.jsx)(C.ZP,{type:"default",onClick:Ir,children:rt("DDSAnnotator.save")})}),Pe||fn.push({customElement:(0,x.jsx)(C.ZP,{type:"primary",onClick:Vr,children:rt("DDSAnnotator.commit")})})),fn.unshift({customElement:(0,x.jsxs)(x.Fragment,{children:[vt===W.je.Edit&&(0,x.jsxs)("div",{className:"dds-annotator-qk-actions",children:[(0,x.jsx)(L.Z,{title:rt("DDSAnnotator.docs"),children:(0,x.jsx)(H.Z,{component:ms,onClick:Mt})}),(0,x.jsx)(el,{displayOption:On.imageDisplayOptions,colorByCategory:On.annotsDisplayOptions.colorByCategory,onChangeImageDisplayOpts:fa,onChangeAnnotsDisplayOpts:Qr})]}),(0,x.jsx)(pr,{mode:vt}),(0,x.jsx)(Lt,{mode:vt})]})}),vt===W.je.Edit&&zn&&fn.unshift({customElement:(0,x.jsx)(x.Fragment,{children:zn})})),fn},[vt,Pe,or,Fn,Ir,Vr,ue,Ar,Y,z]),Vt=function(){var hn=[];return mr?hn.push.apply(hn,Qt()(mr.map(function(bn){return{customElement:bn}}))):(Un||vt===W.je.Edit?hn.push({customElement:(0,x.jsx)(L.Z,{title:rt("DDSAnnotator.exit"),children:(0,x.jsx)(nc,{className:"dds-annotator-logo",onClick:ue})})}):hn.push({title:rt("DDSAnnotator.exit"),icon:(0,x.jsx)(Fo.Z,{}),onClick:function(){return ue()}}),vt!==W.je.Edit&&zn&&hn.push({customElement:zn})),vt===W.je.Edit&&Q.Xn[En.selectedTool]&&Q.Xn[En.selectedTool].length>1&&En.AIAnnotation&&En.selectedModel&&hn.push({customElement:(0,x.jsx)(yl,{selectedTool:En.selectedTool,selectedModel:En.selectedModel[En.selectedTool],modelOptions:Q.Xn[En.selectedTool],onSelectModel:Ce})}),vt===W.je.Edit&&(En.objectList[En.activeObjectIndex]||En.selectedTool!==Q.ru.Drag)&&hn.push({customElement:(0,x.jsx)(Yi,{drawData:En,latestLabelId:On.latestLabelId,isSeperate:Un,labelOptions:jn,labelColors:ua,onChangeObjectLabel:$r,onCreateCategory:lr})}),vt===W.je.Edit&&Or&&hn.push({customElement:(0,x.jsx)(Ii,{toolOptions:ar,selectedSubTool:En.selectedSubTool,isAIAnnotationActive:En.AIAnnotation,brushSize:En.brushSize,onChangeSubTool:Pr,onChangeBrushSize:aa,onActiveAIAnnotation:Jn})}),hn},nn=(0,x.jsx)(wc,{leftTools:Vt(),rightTools:Dt,children:hr});return{topToolsBar:nn}},vc=ic,gc=function(he){var Pe=he.isOldMode,Un=he.clientSize,vt=he.naturalSize,zn=he.categories,En=he.getAnnotColor,On=function(jn){var ua=jn.categoryId,Or=jn.boundingBox,ar=jn.points,hr=jn.lines,Pr=jn.pointNames,aa=jn.pointColors,Jn=jn.segmentation,fa=jn.mask,Qr=jn.alpha,$r=jn.point,lr=jn.polyline,Ir=jn.lineColor,Vr=jn.lineType,Ar=En(ua||""),Y={labelId:ua||"",type:Q.gr.Rectangle,hidden:!1,conf:jn.conf||1,customStyles:jn.customStyles,status:W.TK.Commited,color:Ar};if(Or){var z=(0,qr.cO)(Or,Un);Object.assign(Y,{rect:t()({visible:!0},z)})}if(ar&&ar.length>0&&hr&&hr.length>0&&Pr&&aa){var ue=(0,qr.el)(ar,Pr,aa,vt,Un);Object.assign(Y,{keypoints:{points:ue,lines:hr}})}if(Jn){var Ce=(0,qr.Vh)(Jn,vt,Un),Re={group:Ce,visible:!0};Object.assign(Y,{polygon:Re})}if(fa){var rt=fa.counts||"";Object.assign(Y,{maskRle:rt,maskCanvasElement:(0,yr.ei)(rt,vt,Ar)})}if(Qr){var Mt=new Image;Mt.src=Qr,Object.assign(Y,{alpha:Qr,alphaImageElement:Mt})}if($r&&Object.assign(Y,{point:t()(t()({},(0,qr.YO)($r,vt,Un)),{},{visible:Q.GI.labeledVisible})}),lr&&Vr&&Ir){var Dt=(0,qr.aH)(lr).map(function(nn){return(0,qr.YO)([nn.x,nn.y],vt,Un)}),Vt={group:[Dt],visible:!0,lineType:Vr,color:(0,qr.Yc)(Ir)};Object.assign(Y,{polyline:Vt})}return Y.type=(0,qr.tQ)(Y),Y},Fn=function(jn){var ua,Or=jn.labelId,ar=jn.rect,hr=jn.keypoints,Pr=jn.polygon,aa=jn.maskRle,Jn=jn.point,fa=((ua=zn.find(function(Ar){return Ar.id===Or}))===null||ua===void 0?void 0:ua.name)||"",Qr={categoryId:Or,categoryName:fa};if(ar&&Object.assign(Qr,{boundingBox:(0,qr.kq)(ar,Un)}),hr&&Object.assign(Qr,t()({lines:hr.lines},(0,qr.yn)(hr.points,vt,Un))),Pr){var $r=(0,qr.Vi)(Pr,vt,Un);Object.assign(Qr,{segmentation:$r})}if(aa&&Object.assign(Qr,{mask:{counts:aa,size:[vt.height,vt.width]}}),Jn){var lr=(0,qr.AR)([Jn.x,Jn.y],vt,Un),Ir=lr.x,Vr=lr.y;Object.assign(Qr,{point:[Ir,Vr]})}return Qr},mr=function(jn,ua){var Or,ar=jn.labelId,hr=jn.labelValue,Pr=En(ar),aa=zn.find(function(Ir){return Ir.id===ar}),Jn=(aa==null||(Or=aa.attributes)===null||Or===void 0?void 0:Or.map(function(Ir,Vr){var Ar;return((Ar=jn.attributes)===null||Ar===void 0?void 0:Ar[Vr])||null}))||void 0,fa={labelId:ar,type:Q.gr.Custom,hidden:!1,status:W.TK.Commited,color:Pr,attributes:Jn},Qr=function(Vr,Ar){switch(aa==null?void 0:aa.labelType){case Q.Ze.Rectangle:{var Y=(0,qr.JP)(Ar,vt,Un);Object.assign(Vr,{rect:t()({visible:!0},Y),type:Q.gr.Rectangle});break}case Q.Ze.Polygon:{var z=(0,qr.Uy)(Ar,vt,Un),ue={group:z,visible:!0};Object.assign(Vr,{polygon:ue,type:Q.gr.Polygon});break}case Q.Ze.Skeleton:{var Ce=(0,qr.OX)(Ar,Q.v_.pointNames,Q.v_.pointColors,vt,Un);Object.assign(Vr,{keypoints:{points:Ce,lines:Q.v_.lines},type:Q.gr.Skeleton});break}case Q.Ze.Mask:{var Re=Ar.counts||"";Object.assign(Vr,{maskRle:Re,maskCanvasElement:(0,yr.ei)(Re,vt,Pr),type:Q.gr.Mask});break}case Q.Ze.Classification:{Object.assign(Vr,{labelValue:Ar,type:Q.gr.Classification});break}}return Vr};if(ua&&ua>0){if((aa==null?void 0:aa.labelType)===Q.Ze.Classification)return{classification:Qr(fa,hr)};var $r=new Array(ua).fill(void 0),lr;return Object.keys(hr).forEach(function(Ir){lr=Qr((0,m.cloneDeep)(fa),hr[Ir]),$r[Number(Ir)]=t()(t()({},lr),{},{frameEmpty:!1})}),{objects:$r.map(function(Ir){return Ir||t()(t()({},(0,m.cloneDeep)(lr)),{},{frameEmpty:!0})})}}return Qr(fa,hr)},fr=function(jn){var ua,Or=jn.labelId,ar=jn.rect,hr=jn.keypoints,Pr=jn.polygon,aa=jn.maskRle,Jn=jn.attributes,fa=zn.find(function(Ir){return Ir.id===Or}),Qr={labelId:Or,attributes:Jn||(fa==null||(ua=fa.attributes)===null||ua===void 0?void 0:ua.map(function(){return null}))||[]};switch(fa==null?void 0:fa.labelType){case Q.Ze.Rectangle:{ar&&(Qr.labelValue=(0,qr.cx)(ar,Un,vt));break}case Q.Ze.Polygon:{Pr&&(Qr.labelValue=(0,qr.A_)(Pr,vt,Un));break}case Q.Ze.Skeleton:{if(hr){var $r=(0,qr.$G)(hr.points,vt,Un),lr=$r.points;Qr.labelValue=lr}break}case Q.Ze.Mask:{aa&&(Qr.labelValue={counts:aa,size:[vt.height,vt.width]});break}}return Qr};return{translateAnnotationToObject:On,translateObjectToAnnotation:Fn,translateLabelToObject:mr,translateObjectToLabel:fr,translateObject:Pe?Fn:fr,translateToObject:Pe?On:mr}},ql=gc,Fi=e(87478),go=function(he){var Pe,Un=he.theme,vt=Un===void 0?"dark":Un,zn=he.isOldMode,En=he.isSeperate,On=he.visible,Fn=he.categories,mr=he.list,fr=he.current,or=he.pagination,jn=he.mode,ua=he.enableReviewerModify,Or=he.limitToolTypes,ar=he.titleElements,hr=he.actionElements,Pr=he.layoutOptions,aa=he.displayOptionsResult,Jn=he.manualMode,fa=he.forceColorByObject,Qr=he.limitActiveObject,$r=he.customDefaultDrawData,lr=he.onPrev,Ir=he.onNext,Vr=he.onCancel,Ar=he.onSave,Y=he.onCommit,z=he.onReviewModify,ue=he.onReviewAccept,Ce=he.onReviewReject,Re=he.setCategories,rt=he.onAutoSave,Mt=he.objectsFilter,Dt=n.Z.useModal(),Vt=s()(Dt,2),nn=Vt[0],fn=Vt[1],hn=(0,M.x)([]),bn=s()(hn,2),Yt=bn[0],Ln=bn[1],qn=(0,M.x)((0,m.cloneDeep)(W.rl)),cr=s()(qn,2),Dr=cr[0],Rr=cr[1],Aa=(0,M.x)(t()(t()({},(0,m.cloneDeep)(W.f7)),$r)),xa=s()(Aa,2),pa=xa[0],za=xa[1],ha=(0,g.useRef)(null),Yr=(0,g.useRef)(null),$a=(0,g.useRef)(null),Xa=(0,g.useMemo)(function(){return mr[fr]},[mr,fr]),io=Xa,Go=Ei({categories:Fn,editState:Dr,forceColorByObject:fa}),Oo=Go.getAnnotColor,Ka=Go.labelColors,Za=yi({visible:On,drawData:pa,allowMove:Dr.allowMove,isRequiring:Dr.isRequiring,minPadding:(Pr==null?void 0:Pr.minPadding)||{top:30,left:80},cursorSize:pa.brushSize,hideReferenceLine:!!(Pr!=null&&Pr.hideReferenceLine)}),ui=Za.scale,ai=Za.naturalSize,Ai=Za.clientSize,po=Za.containerMouse,Pi=Za.contentMouse,Oi=Za.imagePos,vi=Za.onLoadImg,Wi=Za.onZoomIn,La=Za.onZoomOut,mi=Za.onReset,hs=Za.CanvasContainer,Hi=Za.isMousePress,ts=ql({isOldMode:zn,clientSize:Ai,naturalSize:ai,categories:Fn,getAnnotColor:Oo}),kl=ts.translateObject,Ru=ts.translateToObject,rl=xo({clientSize:Ai,naturalSize:ai,setDrawData:za,onAutoSave:rt,translateObject:kl}),ys=rl.undo,ds=rl.redo,al=rl.clearHistory,Ti=rl.flagSaved,ns=rl.hadChangeRecord,ti=rl.updateHistory,gi=rl.setDrawDataWithHistory,Qi=_a({setDrawDataWithHistory:gi,categories:Fn}),Eu=Qi.judgeEditingAttribute,ol=Qi.onConfirmAttibuteEdit,Nl=Qi.onCancelAttibuteEdit,il=Pa({mode:jn,categories:Fn,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,setEditState:Rr,translateToObject:Ru,judgeEditingAttribute:Eu,updateHistory:ti}),Ml=il.addObject,Zc=il.removeObject,hc=il.removeAllObjects,yc=il.initObjectList,fd=il.updateAllObject,cu=il.updateObject,bc=il.updateObjectWithoutHistory,td=il.updateAllObjectWithoutHistory,nd=il.commitedObjects,eu=il.currObject,si=Ro({isOldMode:zn,mode:jn,categories:Fn,setCategories:Re,drawData:pa,setDrawData:za,editState:Dr,updateObjectWithoutHistory:bc,updateAllObjectWithoutHistory:td}),xs=si.labelOptions,Is=si.latestLabel,Ns=si.classificationOptions,Wl=si.onChangeObjectHidden,Mc=si.onChangeCategoryHidden,Rs=si.onChangeActiveClass,Uc=si.onCreateCategory,Sc=si.onChangePointVisible,rd=Co({currImageItem:io,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,editState:Dr,setEditState:Rr,naturalSize:ai,clientSize:Ai,getAnnotColor:Oo}),Lc=rd.onAiAnnotation,Nc=Ri({topCanvas:Yr.current,editState:Dr,drawData:pa}),Sl=Nc.updateMouseCursor,As=ii({mode:jn,manualMode:!!Jn,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,editState:Dr,setEditState:Rr,getAnnotColor:Oo,clientSize:Ai,naturalSize:ai,addObject:Ml,updateObject:cu,updateAllObject:fd,onAiAnnotation:Lc}),Rc=As.onChangeObjectLabel,Vu=As.onFinishCurrCreate,kc=As.onAcceptValidObjects,vd=As.onAbortBatchObjects,lc=As.selectTool,ad=As.selectSubTool,uc=As.forceChangeTool,od=As.onExitAIAnnotation,Wc=As.setBrushSize,Rl=As.activeAIAnnotation,id=As.onChangeSkeletonConf,sd=As.onChangeLimitConf,El=As.onChangeAnnotsDisplayOpts,Gu=As.onChangeImageDisplayOpts,du=As.onChangeColorMode,ld=As.onChangePointResolution,gd=As.onSelectModel,Hl=As.isInAiSession,Hc=Da({drawData:pa,onChangePointResolution:ld}),md=Hc.showSubTools,pd=Hc.currSubTools,zd=(0,Fi.Vr)({imgRef:$a,editState:Dr,clientSize:Ai,naturalSize:ai,contentMouse:Pi,imagePos:Oi,containerMouse:po,canvasRef:ha,activeCanvasRef:Yr,setEditState:Rr,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,updateHistory:ti,updateObject:cu,addObject:Ml,updateMouseCursor:Sl,onAiAnnotation:Lc,getAnnotColor:Oo,categories:Fn,displayOptionsResult:aa}),Ku=zd.objectHooksMap,hd=Ni({visible:On,drawData:pa,editState:Dr,clientSize:Ai,imagePos:Oi,containerMouse:po,canvasRef:ha,activeCanvasRef:Yr,imgRef:$a,objectHooksMap:Ku}),_c=hd.updateRender,Ec=hd.renderPopoverMenu,Yc=ja({visible:On,mode:jn,drawData:pa,setDrawData:za,editState:Dr,setEditState:Rr,clientSize:Ai,contentMouse:Pi,categories:Fn,updateRender:_c,updateMouseCursor:Sl,objectHooksMap:Ku,imagePos:Oi,containerMouse:po,getAnnotColor:Oo,limitActiveObject:Qr}),Cc=Yc.selectFocusObject,Cd=Yc.forceChangeFocusObject,xd=Yc.mouseRightObjectsDropDownRender,cc=Lr({mode:jn,currImageItem:io,modal:nn,drawData:pa,editState:Dr,setEditState:Rr,hadChangeRecord:ns,categories:Fn,translateObject:kl,flagSaved:Ti,onCancel:Vr,onSave:Ar,onCommit:Y,onReviewModify:z,onReviewAccept:ue,onReviewReject:Ce,classificationOptions:Ns,isInAiSession:Hl}),Vc=cc.onSaveAnnotations,Fd=cc.onCommitAnnotations,Bd=cc.onCancelAnnotations,yd=cc.onRejectAnnotations,bd=cc.onAcceptAnnotations,xc=cc.onModifyAnnotations;Yo({visible:On,mode:jn,drawData:pa,categories:Fn,isMousePress:Hi,setDrawData:za,setEditState:Rr,onSaveAnnotations:Vc,onAcceptAnnotations:bd,onRejectAnnotations:yd,onChangeObjectHidden:Wl,onChangeCategoryHidden:Mc,removeObject:Zc,addObject:Ml});var $d=Qo({imagePos:Oi,clientSize:Ai,naturalSize:ai,annotations:Yt,setAnnotations:Ln,drawData:pa,setDrawData:za,editState:Dr,setEditState:Rr,initObjectList:yc,updateRender:_c,clearHistory:al,objectsFilter:Mt,labelOptions:xs,customDefaultDrawData:$r}),zc=$d.resetDataWithImageData;(0,g.useEffect)(function(){return document.body.style.overflow=On?"hidden":"overlay",function(){document.body.style.overflow="overlay"}},[On]),(0,g.useEffect)(function(){zc(io,On)},[On,jn,fr,io==null?void 0:io.id,Mt]),(0,g.useEffect)(function(){du()},[Dr.annotsDisplayOptions.colorByCategory]);var ud=(0,g.useMemo)(function(){if(Xa!=null&&Xa.name)return Xa==null?void 0:Xa.name;if(Xa!=null&&Xa.url&&(Xa==null?void 0:Xa.url.indexOf("http"))===0){var cd=decodeURIComponent(Xa==null?void 0:Xa.url);return cd.replace(/\?.*$/,"").split("/").pop()||""}return""},[Xa]),is=or&&or.show?(0,x.jsx)(Jr,{list:mr,current:fr,total:or.total,customText:or.customText,customDisableNext:or.customDisableNext,onPrev:lr,onNext:Ir}):null,Zd=vc({isOldMode:zn,isSeperate:En,mode:jn,hideTopBarActions:Pr==null?void 0:Pr.hideTopBarActions,fileName:ud,drawData:pa,editState:Dr,titleElements:ar,actionElements:hr,enableReviewerModify:ua,labelOptions:xs,showSubTools:md,currSubTools:pd,topBarCenterElement:is,labelColors:Ka,selectSubTool:ad,setBrushSize:Wc,activeAIAnnotation:Rl,onChangeImageDisplayOpts:Gu,onChangeAnnotsDisplayOpts:El,onChangeObjectLabel:Rc,onCreateCategory:Uc,onSaveAnnotations:Vc,onCommitAnnotations:Fd,onRejectAnnotations:yd,onAcceptAnnotations:bd,onModifyAnnotations:xc,onCancelAnnotations:Bd,onSelectModel:gd}),Id=Zd.topToolsBar;return On?(0,x.jsxs)("div",{className:c()("dds-annotator","dds-annotator-editor","dds-annotator-editor-".concat(vt)),style:{height:(Pr==null?void 0:Pr.wrapHeight)||"100vh"},children:[!(Pr!=null&&Pr.hideTopBar)&&Id,(0,x.jsxs)("div",{className:"editor-container",style:{top:Pr!=null&&Pr.hideTopBar?"0":""},children:[!(Pr!=null&&Pr.hideMainToolBar)&&(0,x.jsx)(Ma,{onlySupportZoom:jn!==W.je.Edit,selectedTool:pa.selectedTool,manualMode:!!Jn,limitToolTypes:Or,isAIAnnotationActive:pa.AIAnnotation,onChangeSelectedTool:lc,onActiveAIAnnotation:Rl,hideUndoRedoActions:Pr==null?void 0:Pr.hideUndoRedoActions,undo:ys,redo:ds,deleteAll:hc,scale:ui,onZoomIn:Wi,onZoomOut:La,onZoomReset:mi}),(0,x.jsxs)("div",{className:"center-content",children:[io&&(0,x.jsx)(d.Z,{dropdownRender:xd,trigger:["contextMenu"],open:Dr.foucsObjectAllIndexs.length>0,children:hs({className:"edit-wrap",children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ne,{url:io==null?void 0:io.url,imgRef:$a,canvasRef:ha,activeCanvasRef:Yr,clientSize:Ai,imagePos:Oi,onLoad:function(Gc){_c(),vi(Gc)}}),Ec()]})})}),(0,x.jsx)(gt,{mode:jn,isAiAnnotation:pa.AIAnnotation,latestLabelId:Dr.latestLabelId,currObject:eu,onFinishCurrCreate:Vu}),(0,x.jsx)(sn,{mode:jn,isAiAnnotation:pa.AIAnnotation,currObject:eu,currObjectIndex:pa.activeObjectIndex,focusObjectIndex:Dr.focusObjectIndex,focusEleType:Dr.focusEleType,focusEleIndex:Dr.focusEleIndex,onChangePointVisible:Sc,setEditState:Rr}),(0,x.jsx)(dn,{selectedTool:pa.selectedTool,selectedSubTool:pa.selectedSubTool,selectedModel:pa.selectedModel[pa.selectedTool],isBatchEditing:pa.isBatchEditing,AIAnnotation:pa.AIAnnotation,hasPolygonPreds:!!((Pe=pa.creatingObject)!==null&&Pe!==void 0&&Pe.polygon),isCtrlPressed:Dr.isCtrlPressed,limitConf:pa.limitConf,naturalSize:ai,latestLabel:Is,forceChangeTool:uc,onAiAnnotation:Lc,onExitAIAnnotation:od,onChangeConfidenceRange:id,onChangeLimitConf:sd,onAcceptValidObjects:kc,onCancelBatchEdit:vd}),(0,x.jsx)(me,{AIAnnotation:pa.AIAnnotation,modelOptions:Q.Xn[pa.selectedTool],selectedModel:pa.selectedModel[pa.selectedTool],onSelectModel:gd,onCloseModal:function(){return za(function(Gc){Gc.AIAnnotation=!1})}}),pa.editingAttribute&&(0,x.jsx)(fe,{data:pa.editingAttribute,supportEdit:jn===W.je.Edit,onConfirmAttibuteEdit:ol,onCancelAttibuteEdit:Nl})]}),!(Pr!=null&&Pr.hideRightList)&&(0,x.jsxs)("div",{className:"right-slider",children:[Ns.length>0&&(0,x.jsx)(Je,{className:"classifications",supportEdit:jn===W.je.Edit,classificationOptions:Ns,values:pa.classifications,setDrawDataWithHistory:gi}),(0,x.jsx)(qe,{supportEdit:jn===W.je.Edit,className:"object-list",objects:nd,categories:Fn,activeObjectIndex:pa.activeObjectIndex,activeClassName:pa.activeClassName,onFocusObject:Cd,onActiveObject:Cc,onChangeObjectHidden:Wl,onChangeCategoryHidden:Mc,onDeleteObject:Zc,onChangeActiveClassName:Rs,setDrawDataWithHistory:gi,colorByCategory:Dr.annotsDisplayOptions.colorByCategory,onChangeAnnotsDisplayOpts:El})]})]}),(0,x.jsx)("div",{onMouseDown:function(Gc){Gc.stopPropagation()},children:fn})]}):null},Cs=go,mc=e(16962),Mu=e.n(mc),Hu=Object.defineProperty,ed=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,jc=(Ue,he,Pe)=>he in Ue?Hu(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Lu=(Ue,he)=>{for(var Pe in he||(he={}))Ws.call(he,Pe)&&jc(Ue,Pe,he[Pe]);if(ed)for(var Pe of ed(he))Hs.call(he,Pe)&&jc(Ue,Pe,he[Pe]);return Ue};const Ll=Ue=>g.createElement("svg",Lu({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"m8.379 7.648-4.56-5.825a.283.283 0 0 0-.224-.11h-1.38a.142.142 0 0 0-.113.231L6.842 8l-4.74 6.055a.143.143 0 0 0 .112.23h1.38a.289.289 0 0 0 .226-.109l4.559-5.823a.571.571 0 0 0 0-.705Zm5.428 0L9.248 1.823a.283.283 0 0 0-.225-.11h-1.38a.142.142 0 0 0-.112.231L12.27 8l-4.74 6.055a.143.143 0 0 0 .113.23h1.38a.289.289 0 0 0 .225-.109l4.56-5.823a.571.571 0 0 0 0-.705Z",fill:"#fff",opacity:.85}));var bl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTguMzc5IDcuNjQ4LTQuNTYtNS44MjVhLjI4My4yODMgMCAwIDAtLjIyNC0uMTFoLTEuMzhhLjE0Mi4xNDIgMCAwIDAtLjExMy4yMzFMNi44NDIgOGwtNC43NCA2LjA1NWEuMTQzLjE0MyAwIDAgMCAuMTEyLjIzaDEuMzhhLjI4OS4yODkgMCAwIDAgLjIyNi0uMTA5bDQuNTU5LTUuODIzYS41NzEuNTcxIDAgMCAwIDAtLjcwNVptNS40MjggMEw5LjI0OCAxLjgyM2EuMjgzLjI4MyAwIDAgMC0uMjI1LS4xMWgtMS4zOGEuMTQyLjE0MiAwIDAgMC0uMTEyLjIzMUwxMi4yNyA4bC00Ljc0IDYuMDU1YS4xNDMuMTQzIDAgMCAwIC4xMTMuMjNoMS4zOGEuMjg5LjI4OSAwIDAgMCAuMjI1LS4xMDlsNC41Ni01LjgyM2EuNTcxLjU3MSAwIDAgMCAwLS43MDVaIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIuODUiLz48L3N2Zz4=",sc=Object.defineProperty,_s=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable,Tc=(Ue,he,Pe)=>he in Ue?sc(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,_u=(Ue,he)=>{for(var Pe in he||(he={}))lu.call(he,Pe)&&Tc(Ue,Pe,he[Pe]);if(_s)for(var Pe of _s(he))Pc.call(he,Pe)&&Tc(Ue,Pe,he[Pe]);return Ue};const Bc=Ue=>g.createElement("svg",_u({viewBox:"0 0 14 14",fill:"#595959",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M6.887 9.657a.143.143 0 0 0 .225 0l2-2.53A.142.142 0 0 0 9 6.897H7.677V.854A.143.143 0 0 0 7.534.71H6.462a.143.143 0 0 0-.143.143v6.041H5a.142.142 0 0 0-.112.23l2 2.532Zm6.649-.625h-1.072a.143.143 0 0 0-.143.143v2.75H1.678v-2.75a.143.143 0 0 0-.142-.143H.464a.143.143 0 0 0-.143.143v3.536a.57.57 0 0 0 .572.572h12.214a.57.57 0 0 0 .571-.572V9.175a.143.143 0 0 0-.142-.143Z"}));var Yu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQgMTQiIGZpbGw9IiM1OTU5NTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuODg3IDkuNjU3YS4xNDMuMTQzIDAgMCAwIC4yMjUgMGwyLTIuNTNBLjE0Mi4xNDIgMCAwIDAgOSA2Ljg5N0g3LjY3N1YuODU0QS4xNDMuMTQzIDAgMCAwIDcuNTM0LjcxSDYuNDYyYS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjYuMDQxSDVhLjE0Mi4xNDIgMCAwIDAtLjExMi4yM2wyIDIuNTMyWm02LjY0OS0uNjI1aC0xLjA3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YyLjc1SDEuNjc4di0yLjc1YS4xNDMuMTQzIDAgMCAwLS4xNDItLjE0M0guNDY0YS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjMuNTM2YS41Ny41NyAwIDAgMCAuNTcyLjU3MmgxMi4yMTRhLjU3LjU3IDAgMCAwIC41NzEtLjU3MlY5LjE3NWEuMTQzLjE0MyAwIDAgMC0uMTQyLS4xNDNaIi8+PC9zdmc+",$c=function(he){var Pe=he.text,Un=he.highlights,vt=he.onHoverHighlightWord,zn=he.onLeaveHighlightWord,En=(0,g.useMemo)(function(){var On=[],Fn=new RegExp(Un.map(function(or){return"\\b(".concat((0,m.escapeRegExp)(or.text),")\\b")}).join("|"),"g"),mr=Array.from(Pe.matchAll(Fn)),fr=0;return mr.forEach(function(or){var jn,ua=or[0],Or=(jn=or.index)!==null&&jn!==void 0?jn:0;Or>fr&&On.push(Pe.substring(fr,Or));var ar=Un.find(function(hr){return hr.text===ua});ar&&On.push((0,x.jsx)(R.Z,{color:ar.color,bordered:!1,onMouseEnter:function(){return vt(ua)},onMouseLeave:zn,children:ua},"".concat(Or,"-").concat(ua))),fr=Or+ua.length}),fr-1&&Ar.objectList[$r.focusObjectIndex]&&!((ns=Ar.objectList[$r.focusObjectIndex])!==null&&ns!==void 0&&ns.hidden)&&$r.focusEleIndex>-1&&$r.focusEleType===Q.Yq.Circle){var ti,gi,Qi,Eu=(ti=Ar.objectList[$r.focusObjectIndex])===null||ti===void 0||(gi=ti.keypoints)===null||gi===void 0||(Qi=gi.points)===null||Qi===void 0?void 0:Qi[$r.focusEleIndex];if(Eu)return(0,x.jsx)(_o,{index:$r.focusEleIndex,targetElement:Eu,imagePos:fn.current})}return(0,x.jsx)(x.Fragment,{})};if(!zn)return(0,x.jsx)(x.Fragment,{});var ys=function(){var ns=On[Fn].objects;return En.filter(function(ti){return ns.find(function(gi){return gi.categoryId===ti.id})}).map(function(ti){return{text:ti.name,color:cr(ti.id)}})},ds=function(ns){Y(function(ti){var gi=En.find(function(Qi){return Qi.name===ns});ti.highlightCategory=gi})},al=function(){Y(function(ns){ns.highlightCategory=void 0})};return(0,x.jsxs)("div",{className:"dds-annotator dds-annotator-preview",children:[(0,x.jsx)(wc,{className:"top-tools",leftTools:[{icon:(0,x.jsx)(yn.Z,{}),onClick:bn,disabled:rt>=Q.Fv},{icon:(0,x.jsx)(tn.Z,{}),onClick:Yt,disabled:rt<=Q.vL},{icon:(0,x.jsx)(Bc,{}),onClick:Ru},{icon:mi?(0,x.jsx)(ge.Z,{}):(0,x.jsx)(pe.Z,{}),onClick:kl,disabled:!Hi||!Hi.caption,title:ar(mi?"dataset.detail.hideGrounding":"dataset.detail.showGrounding")}],rightTools:[{icon:(0,x.jsx)(h.Z,{}),onClick:or}],children:"".concat(Fn+1," / ").concat(On.length)}),Ln({className:"edit-wrap",children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ne,{url:(Un=On[Fn])===null||Un===void 0?void 0:Un.url,imgRef:Ce,canvasRef:z,activeCanvasRef:ue,clientSize:Dt,imagePos:fn,onLoad:hn}),rl()]})}),(0,x.jsx)("div",{className:c()("switch","switch-left",{"switch-disable":Fn===0}),onClick:mr,children:(0,x.jsx)(Hr.Z,{})}),(0,x.jsx)("div",{className:c()("switch","switch-right",{"switch-disable":Fn===On.length-1}),onClick:fr,children:(0,x.jsx)(Oa.Z,{})}),Oi&&Hi&&(0,x.jsxs)("div",{className:"info-wrap",children:[(0,x.jsx)("div",{className:"info-box",children:Object.keys(Hi).map(function(Ti){return(0,x.jsxs)("div",{className:"item",children:[Ti,(0,x.jsx)("br",{}),Mu()(Hi[Ti])==="object"?JSON.stringify(Hi[Ti]):Hi[Ti]]},Ti)})}),(0,x.jsx)("div",{className:"bottom-mask"}),(0,x.jsx)("div",{className:"hide-info-btn",onClick:ts,children:(0,x.jsx)(Ll,{})})]}),!Oi&&(0,x.jsx)("div",{className:"show-info-btn",onClick:ts,children:(0,x.jsx)(Ll,{})}),mi&&!!(Hi!=null&&Hi.caption)&&(0,x.jsx)("div",{className:"dds-annotator-grounding-preview",children:(0,x.jsx)(pc,{text:Hi.caption,highlights:ys(),onHoverHighlightWord:function(ns){return ds(ns)},onLeaveHighlightWord:al})})]})},Su=uu,Nu=function(he){var Pe=he.isOldMode,Un=he.categories,vt=he.data,zn=he.currentSize,En=he.wrapWidth,On=he.wrapHeight,Fn=he.minHeight,mr=he.objectsFilter,fr=he.displayOptionsResult,or=(0,M.x)([]),jn=s()(or,2),ua=jn[0],Or=jn[1],ar=(0,M.x)((0,m.cloneDeep)(W.rl)),hr=s()(ar,2),Pr=hr[0],aa=hr[1],Jn=(0,M.x)((0,m.cloneDeep)(W.f7)),fa=s()(Jn,2),Qr=fa[0],$r=fa[1],lr=(0,g.useRef)(null),Ir=(0,g.useRef)(null),Vr=(0,g.useRef)(null),Ar=(0,g.useRef)({x:0,y:0}),Y=(0,g.useState)({width:0,height:Fn||0}),z=s()(Y,2),ue=z[0],Ce=z[1],Re=(0,g.useMemo)(function(){if(zn)return zn;if(!ue.width)return{width:En||0,height:On||Fn||0};var Ka=(0,qr.t9)(ue.width,ue.height,En,On),Za=s()(Ka,2),ui=Za[0],ai=Za[1];return{width:ui,height:ai}},[En,On,Fn,ue,zn]),rt=(0,g.useMemo)(function(){var Ka={screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,elementX:0,elementY:0,elementPosX:0,elementPosY:0,elementW:Re.width,elementH:Re.height};return[Ka,Ka]},[Re]),Mt=s()(rt,2),Dt=Mt[0],Vt=Mt[1],nn=Ei({categories:Un,editState:Pr}),fn=nn.getAnnotColor,hn=ql({isOldMode:Pe,clientSize:Re,naturalSize:ue,categories:Un,getAnnotColor:fn}),bn=hn.translateToObject,Yt=xo({clientSize:Re,naturalSize:ue,setDrawData:$r}),Ln=Yt.clearHistory,qn=Yt.updateHistory,cr=Yt.setDrawDataWithHistory,Dr=Pa({mode:W.je.View,categories:Un,drawData:Qr,setDrawData:$r,setDrawDataWithHistory:cr,setEditState:aa,translateToObject:bn,updateHistory:qn}),Rr=Dr.addObject,Aa=Dr.initObjectList,xa=Dr.updateObject,pa=Ri({topCanvas:Ir.current,editState:Pr,drawData:Qr}),za=pa.updateMouseCursor,ha=(0,Fi.Vr)({imgRef:Vr,editState:Pr,clientSize:Re,naturalSize:ue,contentMouse:Dt,containerMouse:Vt,imagePos:Ar,canvasRef:lr,activeCanvasRef:Ir,setEditState:aa,drawData:Qr,setDrawData:$r,setDrawDataWithHistory:cr,updateHistory:qn,updateObject:xa,addObject:Rr,updateMouseCursor:za,displayOptionsResult:fr,getAnnotColor:fn,categories:Un}),Yr=ha.objectHooksMap,$a=Ni({visible:!0,drawData:Qr,editState:Pr,clientSize:Re,imagePos:Ar,containerMouse:Vt,canvasRef:lr,activeCanvasRef:Ir,imgRef:Vr,objectHooksMap:Yr}),Xa=$a.updateRender,io=Qo({imagePos:Ar,clientSize:Re,naturalSize:ue,annotations:ua,setAnnotations:Or,drawData:Qr,setDrawData:$r,editState:Pr,setEditState:aa,initObjectList:Aa,updateRender:Xa,clearHistory:Ln,objectsFilter:mr,labelOptions:Un}),Go=io.resetDataWithImageData;(0,g.useEffect)(function(){Go(vt,!0)},[vt,mr]),(0,g.useEffect)(function(){Xa()},[fr]);var Oo=function(Za){var ui=Za.target,ai={width:ui.naturalWidth,height:ui.naturalHeight};Ce(ai)};return(0,x.jsx)("div",{className:"dds-annotator-view",children:(0,x.jsx)(ne,{url:vt==null?void 0:vt.url,imgRef:Vr,canvasRef:lr,activeCanvasRef:Ir,clientSize:Re,imagePos:Ar,onLoad:Oo})})},nl=Nu},87478:function(b,y,e){"use strict";e.d(y,{$N:function(){return x},hF:function(){return X},G9:function(){return W},_G:function(){return O},Vr:function(){return le}});var a=e(63900),t=e.n(a),o=e(2657),s=e.n(o),n=e(17410),d=e(46134),l=e(81179),c=e(67761),m=function(U){var A=U.imgRef,G=U.imagePos,fe=U.canvasRef,pe=U.clientSize,ge=U.displayOptionsResult,be=function(Ke){if(!(!Ke||!fe.current||!A.current)){var ye=ge||{},ne=ye.showMattingColorFill,H=fe.current.getContext("2d"),R=t()({x:G.current.x,y:G.current.y},pe);(0,l.UN)(fe.current),(0,l.AE)(fe.current,Ke,R),ne?(H.globalCompositeOperation="source-out",(0,l.CR)(fe.current,R,"#000"),H.globalCompositeOperation="destination-atop",(0,l.CR)(fe.current,R,"#fff")):(H.globalCompositeOperation="source-in",(0,l.AE)(fe.current,A.current,R),H.globalCompositeOperation="destination-over",(0,l.CR)(fe.current,R,"#fff"))}},Te=function(Ke){var ye=Ke.object,ne=ye.alphaImageElement;ne&&(be(ne),ne.onload=function(){be(ne)})},Ge=function(){},Je=function(){},Qe=function(){},pt=function(){return!1},Et=function(){return!1},ft=function(){return!1},Wt=function(){return!1},$e=function(){return!1},Xe=function(){return!1};return{renderObject:Te,renderCreatingObject:Ge,renderEditingObject:Je,renderPrompt:Qe,startEditingWhenMouseDown:pt,startCreatingWhenMouseDown:Et,updateEditingWhenMouseMove:ft,updateCreatingWhenMouseMove:Wt,finishEditingWhenMouseUp:$e,finishCreatingWhenMouseUp:Xe}},g=m,M=function(U){var A=U.canvasRef,G=function(ft){var Wt=ft.object,$e=ft.styles,Xe=Wt.point;if(Xe&&Xe.visible){var nt=Xe.x,Ke=Xe.y,ye=$e.strokeColor,ne=$e.fillColor;(0,l.G5)(A.current,{x:nt,y:Ke},4,ne,2,ye)}},fe=function(){},pe=function(){},ge=function(){},be=function(){return!1},Te=function(){return!1},Ge=function(){return!1},Je=function(){return!1},Qe=function(){return!1},pt=function(){return!1};return{renderObject:G,renderCreatingObject:fe,renderEditingObject:pe,renderPrompt:ge,startEditingWhenMouseDown:be,startCreatingWhenMouseDown:Te,updateEditingWhenMouseMove:Ge,updateCreatingWhenMouseMove:Je,finishEditingWhenMouseUp:Qe,finishCreatingWhenMouseUp:pt}},h=M,S=e(34485),w=e.n(S),C=e(39378),F=e(34095),Z=e(50910),N=e(14464),L=function(U){var A=U.editState,G=U.clientSize,fe=U.naturalSize,pe=U.imagePos,ge=U.containerMouse,be=U.canvasRef,Te=U.activeCanvasRef,Ge=U.contentMouse,Je=U.setEditState,Qe=U.drawData,pt=U.setDrawData,Et=U.setDrawDataWithHistory,ft=U.updateHistory,Wt=U.updateMouseCursor,$e=U.updateObject,Xe=U.addObject,nt=U.onAiAnnotation,Ke=U.displayOptionsResult,ye=function(J){var de=J.object,xe=J.color,ce=J.styles,Le=J.isFocus,Oe=J.isJustCreated,we=de.polygon;if(we&&we.visible){var Ne=ce.fillColor;!Le&&!Oe&&(Ne=(0,N.a7)(xe,F.mh.DEFAULT_SHAPE));var st=ce.thickness;Ke&&(!Ke.showSegFilling&&!Le&&(Ne="transparent"),Ke.showSegContour||(st=0)),we==null||we.group.forEach(function(et){(0,l.fb)(be.current,et,Ne,ce.strokeColor,st,ce.strokeDash)})}},ne=function(J){var de=J.object,xe=J.styles,ce=de.currIndex,Le=(0,d.lT)(de,{x:-pe.current.x,y:-pe.current.y}),Oe=Le.polygon;Oe&&Oe.visible&&Oe.group.forEach(function(we,Ne){ce===Ne?we.forEach(function(st,et){(0,l.G5)(Te.current,st,et===0?6:4,xe.strokeColor,3,"#1f4dd8"),we.length>1&&et-1&&et>-1){var ke=Oe.group[st][et];ke&&(0,l.G5)(Te.current,ke,4,"#fff",5,xe)}else if(st>-1&&Ye>-1){var Be=(0,d.Iw)(Oe.group[st]);if(Be[Ye]){var it=Be[Ye],Ve=it.start,xt=it.end,Ht=(0,d.Z4)({x:Ge.elementX+pe.current.x,y:Ge.elementY+pe.current.y},Ve,xt);Ht&&(0,l.G5)(Te.current,Ht,4,"#fff",5,xe)}}}},R=function(J){var de=J.prompt;if(de.creatingPrompt){var xe=F.XQ.CREATING,ce=F.Bt.CREATING;switch(de.creatingPrompt.type){case Z.Ae.Rect:{var Le=de.creatingPrompt.startPoint,Oe=(0,d.A7)(Le,{x:Ge.elementX,y:Ge.elementY},{width:Ge.elementW,height:Ge.elementH}),we=(0,d.ZU)(Oe,{x:-pe.current.x,y:-pe.current.y});(0,l.Mu)(Te.current,we,xe,2,[0],ce);break}case Z.Ae.Point:{if(!de.creatingPrompt.point)break;var Ne=(0,d.aF)(de.creatingPrompt.point,{x:-pe.current.x,y:-pe.current.y});(0,l.G5)(Te.current,Ne,4,de.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff")}case Z.Ae.Stroke:{if(!de.creatingPrompt.stroke||!de.creatingPrompt.radius)break;var st=(0,d.U8)(de.creatingPrompt.stroke,{x:-pe.current.x,y:-pe.current.y}),et=de.creatingPrompt.radius*G.width/fe.width,Ye=de.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE;(0,l.AT)(Te.current,st,Ye,et);break}default:break}if(A.isRequiring&&de.activeRectWhileLoading){var ke=(0,d.ZU)(de.activeRectWhileLoading,{x:-pe.current.x,y:-pe.current.y});(0,l.HU)(Te.current,ke)}}de.promptsQueue&&de.promptsQueue.forEach(function(Be){if(Be.type===Z.Ae.Point){var it=(0,d.aF)(Be.point,{x:-pe.current.x,y:-pe.current.y});(0,l.G5)(Te.current,it,4,Be.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff")}})},P=function(J){var de={x:Ge.elementX,y:Ge.elementY};pt(function(xe){switch(xe.selectedSubTool){case n.jB.AutoSegmentByBox:xe.prompt.creatingPrompt={type:Z.Ae.Rect,startPoint:de,isPositive:!0};break;case n.jB.AutoSegmentByClick:xe.prompt.creatingPrompt={type:Z.Ae.Point,startPoint:de,point:de,isPositive:X(J)};break;case n.jB.AutoSegmentByStroke:{xe.prompt.creatingPrompt={type:Z.Ae.Stroke,startPoint:de,stroke:[de],radius:xe.brushSize,isPositive:X(J)};break}default:}})},ae=function(J){var de=J.object,xe=J.event;return Qe.AIAnnotation?(P(xe),!0):(xe==null?void 0:xe.button)===2?!1:!!x({object:de,contentMouse:Ge,setEditState:Je,setDrawData:pt})},Q=function(J){var de=J.event,xe=J.point,ce=J.basic;return pt(function(Le){if(!Le.creatingObject||Le.activeObjectIndex>-1)if(Le.activeObjectIndex=-1,Le.AIAnnotation)switch(Le.selectedSubTool){case n.jB.AutoSegmentByBox:Le.prompt.creatingPrompt={type:Z.Ae.Rect,startPoint:xe,isPositive:!0};break;case n.jB.AutoSegmentByClick:Le.prompt.creatingPrompt={type:Z.Ae.Point,startPoint:xe,point:xe,isPositive:X(de)};break;case n.jB.AutoSegmentByStroke:{Le.prompt.creatingPrompt={type:Z.Ae.Stroke,startPoint:xe,stroke:[xe],radius:Le.brushSize,isPositive:X(de)};break}}else Le.creatingObject=t()({type:n.gr.Polygon,polygon:{visible:!0,group:[[xe]]},currIndex:0},ce),ft((0,C.cloneDeep)(Qe));else if(Le.AIAnnotation)P(de);else{var Oe=Le.creatingObject.currIndex,we=Le.creatingObject.polygon;if(Oe>-1){var Ne=we.group[Oe][0];(0,d.uN)(Ne,Ge)?Le.creatingObject.currIndex=-1:Le.creatingObject.polygon&&(we.group[Oe].push(xe),ft((0,C.cloneDeep)(Le)))}else we.group.push([xe]),Le.creatingObject.currIndex=we.group.length-1,ft((0,C.cloneDeep)(Le))}}),!0},ie=function(J){var de=J.event,xe=Qe.selectedSubTool===n.jB.AutoSegmentByStroke,ce=de.buttons===1||de.buttons===2;if(Qe.prompt.creatingPrompt&&xe&&ce){var Le={x:Ge.elementX,y:Ge.elementY};return pt(function(Oe){var we,Ne;(we=Oe.prompt.creatingPrompt)===null||we===void 0||(Ne=we.stroke)===null||Ne===void 0||Ne.push(Le)}),!0}return!!Qe.creatingObject},me=function(J){var de=J.event;if(Qe.AIAnnotation)return Wt("crosshair"),ie({event:de});var xe=A.focusEleType,ce=A.focusEleIndex,Le=A.focusObjectIndex,Oe=A.focusPolygonInfo;if(Le===Qe.activeObjectIndex&&xe===n.Yq.Polygon&&(Oe.pointIndex>-1?Wt("pointer"):Oe.lineIndex>-1?Wt("crosshair"):Wt("move")),xe===n.Yq.Polygon&&ce===0){var we=A.focusPolygonInfo,Ne=we.index,st=we.pointIndex;if(A.startElementMovePoint&&Ne>-1)return st>-1?(pt(function(et){var Ye,ke;if(et.activeObjectIndex>-1&&A.focusEleIndex>-1&&A.startElementMovePoint&&(Ye=et.creatingObject)!==null&&Ye!==void 0&&(ke=Ye.polygon)!==null&&ke!==void 0&&ke.group[Ne]){var Be,it,Ve=(Be=et.creatingObject)===null||Be===void 0||(it=Be.polygon)===null||it===void 0?void 0:it.group[Ne];Ve[st]=(0,d.E5)(Ge)}}),!0):(pt(function(et){var Ye,ke;if(et.activeObjectIndex>-1&&A.focusEleIndex>-1&&A.startElementMovePoint&&(Ye=et.creatingObject)!==null&&Ye!==void 0&&(ke=Ye.polygon)!==null&&ke!==void 0&&ke.group[Ne]){var Be,it,Ve=(Be=et.creatingObject)===null||Be===void 0||(it=Be.polygon)===null||it===void 0?void 0:it.group[Ne],xt=(0,d.s5)(Ve,A.startElementMovePoint,Ge);et.creatingObject.polygon.group[Ne]=xt,Je(function(Ht){Ht.startElementMovePoint&&(Ht.startElementMovePoint.mousePoint={x:Ge.elementX,y:Ge.elementY})})}}),!0)}return!1},je=function(J){var de=J.event;return ie({event:de})},Ee=function(){if(Qe.prompt.promptsQueue&&Qe.prompt.promptsQueue.length>0)return Qe.prompt.promptsQueue;var J=!Qe.prompt.sessionId&&Qe.creatingObject;if(J){var de,xe,ce=((de=Qe.creatingObject)===null||de===void 0||(xe=de.polygon)===null||xe===void 0?void 0:xe.group.map(function(Oe){return Oe.reduce(function(we,Ne){return we.concat([Ne.x,Ne.y])},[])}))||[],Le={type:Z.Ae.Modify,isPositive:!0,polygons:ce};return[Le]}else return[]},Me=function(){var J={x:Ge.elementX,y:Ge.elementY},de=Ee();switch(Qe.selectedSubTool){case n.jB.AutoSegmentByBox:{var xe,ce,Le;if(!((xe=Qe.prompt.creatingPrompt)!==null&&xe!==void 0&&xe.startPoint))break;if(J.x===((ce=Qe.prompt.creatingPrompt.startPoint)===null||ce===void 0?void 0:ce.x)||J.y===((Le=Qe.prompt.creatingPrompt.startPoint)===null||Le===void 0?void 0:Le.y)){pt(function(Ve){return Ve.prompt.creatingPrompt=void 0});break}var Oe=(0,d.A7)(Qe.prompt.creatingPrompt.startPoint,J,{width:Ge.elementW,height:Ge.elementH}),we={type:Z.Ae.Rect,isPositive:!0,rect:Oe};Et(function(Ve){Ve.prompt.activeRectWhileLoading=Oe});var Ne=[].concat(w()(de),[we]);nt==null||nt({type:n.gr.Polygon,drawData:Qe,promptsQueue:Ne});break}case n.jB.AutoSegmentByClick:{var st;if(!(0,d.jt)(Ge)||!(0,d.jt)(ge)||!((st=Qe.prompt.creatingPrompt)!==null&&st!==void 0&&st.point))break;var et={type:Z.Ae.Point,isPositive:Qe.prompt.creatingPrompt.isPositive,point:Qe.prompt.creatingPrompt.point},Ye=[].concat(w()(de),[et]);nt==null||nt({type:n.gr.Polygon,drawData:Qe,promptsQueue:Ye});break}case n.jB.AutoSegmentByStroke:{var ke;if(!((ke=Qe.prompt.creatingPrompt)!==null&&ke!==void 0&&ke.stroke))break;var Be={type:Z.Ae.Stroke,isPositive:Qe.prompt.creatingPrompt.isPositive,stroke:Qe.prompt.creatingPrompt.stroke,radius:Qe.brushSize},it=[].concat(w()(de),[Be]);nt==null||nt({type:n.gr.Polygon,drawData:Qe,promptsQueue:it});break}}},We=function(J){var de=J.object;if(Qe.AIAnnotation)Me();else{var xe,ce,Le=A.startRectResizeAnchor||A.startElementMovePoint,Oe=A.startElementMovePoint&&((xe=A.startElementMovePoint.initPoint)===null||xe===void 0?void 0:xe.x)===Ge.elementX&&((ce=A.startElementMovePoint.initPoint)===null||ce===void 0?void 0:ce.y)===Ge.elementY,we=Oe&&A.focusPolygonInfo.index>-1&&A.focusPolygonInfo.pointIndex>-1;if(we){var Ne,st=(0,C.cloneDeep)(de),et=A.focusPolygonInfo,Ye=et.index,ke=et.pointIndex,Be=(Ne=st.polygon)===null||Ne===void 0?void 0:Ne.group[Ye];Be&&Ye>-1&&ke>-1&&Be.length>=3&&Be.splice(ke,1),$e(st,Qe.activeObjectIndex)}else Le&&$e(de,Qe.activeObjectIndex);Je(function(it){it.startRectResizeAnchor=void 0,it.startElementMovePoint=void 0})}return!0},re=function(J){var de=J.object;if(Qe.AIAnnotation)Me();else if(de&&de.currIndex===-1){var xe=de.polygon,ce=de.type,Le=de.hidden,Oe=de.labelId,we=de.status,Ne=de.color,st={polygon:xe,type:ce,hidden:Le,labelId:Oe,status:we,color:Ne};Xe(st)}return!0};return{renderObject:ye,renderCreatingObject:ne,renderEditingObject:H,renderPrompt:R,startEditingWhenMouseDown:ae,startCreatingWhenMouseDown:Q,updateEditingWhenMouseMove:me,updateCreatingWhenMouseMove:je,finishEditingWhenMouseUp:We,finishCreatingWhenMouseUp:re}},$=L,D=function(U){var A=U.canvasRef,G=function(ft){var Wt=ft.object,$e=ft.color,Xe=ft.isFocus,nt=Wt.polyline;if(nt&&nt.visible&&nt.lineType){var Ke=nt.lineType,ye=nt.color||$e,ne=Xe?(0,N.a7)(ye,F.rl.FOCUS):(0,N.a7)(ye,F.rl.DEFAULT);nt==null||nt.group.forEach(function(H){(0,l.bT)(A.current,H,ne,Ke)})}},fe=function(){},pe=function(){},ge=function(){},be=function(){return!1},Te=function(){return!1},Ge=function(){return!1},Je=function(){return!1},Qe=function(){return!1},pt=function(){return!1};return{renderObject:G,renderCreatingObject:fe,renderEditingObject:pe,renderPrompt:ge,startEditingWhenMouseDown:be,startCreatingWhenMouseDown:Te,updateEditingWhenMouseMove:Ge,updateCreatingWhenMouseMove:Je,finishEditingWhenMouseUp:Qe,finishCreatingWhenMouseUp:pt}},T=D,j=function(U){var A=U.contentMouse,G=U.imagePos,fe=U.canvasRef,pe=U.activeCanvasRef,ge=U.editState,be=U.setEditState,Te=U.drawData,Ge=U.setDrawData,Je=U.updateMouseCursor,Qe=U.updateObject,pt=U.addObject,Et=U.getAnnotColor,ft=U.displayOptionsResult,Wt=U.categories,$e=U.onAiAnnotation,Xe=function(me){var je=me.object,Ee=me.color,Me=me.styles,We=me.isFocus,re=je.rect;if(re&&re.visible){var se=Me.strokeDash,J=Me.strokeColor,de=Me.fillColor,xe=Me.thickness,ce=Te.selectedModel[Te.selectedTool];if(Te.isBatchEditing){if(je.status===Z.TK.Unchecked&&(!ge.isCtrlPressed||ce===n.HE.IVP))return;ge.isCtrlPressed&&ce===n.HE.Detection&&(je.status!==Z.TK.Unchecked?(J=(0,N.a7)(Ee,.8),se=[2],xe=1.5):de=We?(0,N.a7)(Ee,F.mh.DEFAULT):(0,N.a7)(Ee,F.mh.CTRL_TO_SELECT))}if((0,l.Mu)(fe.current,re,J,xe,se,de),ft!=null&&ft.showBoxText){var Le,Oe=((Le=Wt.find(function(Ne){return Ne.id===je.labelId}))===null||Le===void 0?void 0:Le.name)||"",we=je!=null&&je.conf&&je.conf>0&&je.conf<1?"".concat(Oe," (").concat(je.conf.toFixed(3),")"):Oe;(0,l.yU)(fe.current,we||"",13,{x:re.x+6,y:re.y+6},Ee,!0,"left")}Te.isBatchEditing&&ge.isCtrlPressed&&We&&(0,l.HU)(pe.current,re,"#000",.6)}},nt=function(me){var je=me.object,Ee=me.styles,Me=je.startPoint;if(Me){var We=(0,d.A7)(Me,{x:A.elementX,y:A.elementY},{width:A.elementW,height:A.elementH}),re=(0,d.ZU)(We,{x:-G.current.x,y:-G.current.y});(0,l.Mu)(pe.current,re,Ee.strokeColor,Ee.thickness,Ee.strokeDash,Ee.fillColor)}},Ke=function(me){var je=me.object,Ee=me.styles,Me=je.rect;Me&&Me.visible&&((0,l.Mu)(pe.current,Me,Ee.strokeColor,Ee.thickness,Ee.strokeDash,Ee.fillColor),W(pe.current,Me))},ye=function(me){var je=me.prompt;if(je.creatingPrompt){var Ee=je.creatingPrompt.isPositive?F.CJ.POSITIVE:F.CJ.NEGATIVE,Me=je.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE;switch(je.creatingPrompt.type){case Z.Ae.Rect:{var We=je.creatingPrompt.startPoint,re=(0,d.A7)(We,{x:A.elementX,y:A.elementY},{width:A.elementW,height:A.elementH}),se=(0,d.ZU)(re,{x:-G.current.x,y:-G.current.y});(0,l.Mu)(pe.current,se,Ee,2,[0],Me);break}case Z.Ae.Point:{if(!je.creatingPrompt.point)break;var J=(0,d.aF)(je.creatingPrompt.point,{x:-G.current.x,y:-G.current.y});(0,l.G5)(pe.current,J,4,je.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff")}default:break}}je.promptsQueue&&je.promptsQueue.forEach(function(de){switch(de.type){case Z.Ae.Rect:{var xe=(0,d.ZU)(de.rect,{x:-G.current.x,y:-G.current.y});(0,l.Mu)(pe.current,xe,de.isPositive?F.CJ.POSITIVE:F.CJ.NEGATIVE,2,[0],de.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE);break}case Z.Ae.Point:{var ce=(0,d.aF)(de.point,{x:-G.current.x,y:-G.current.y});(0,l.G5)(pe.current,ce,4,de.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff");break}}})},ne=function(me){var je=me.object,Ee=me.event;return(Ee==null?void 0:Ee.button)===2?!1:!!x({object:je,contentMouse:A,setEditState:be,setDrawData:Ge})},H=function(me){var je=me.point,Ee=me.basic;return Ge(function(Me){var We=Me.selectedModel[Me.selectedTool];Me.AIAnnotation&&We===n.HE.IVP?(Me.activeObjectIndex=-1,Me.prompt.creatingPrompt={type:Z.Ae.Rect,startPoint:je,point:je,isPositive:Me.selectedSubTool!==n.jB.NegativeVisualPrompt}):(Me.activeObjectIndex=-1,Me.creatingObject=t()({type:n.gr.Rectangle,startPoint:je},Ee))}),!0},R=function(me){var je=me.object;return O({object:je,editState:ge,contentMouse:A,drawData:Te,setDrawData:Ge,updateMouseCursor:Je})},P=function(me){var je=me.object;return!!je},ae=function(me){var je=me.object,Ee=ge.startRectResizeAnchor||ge.startElementMovePoint;return Ee&&Qe(je,Te.activeObjectIndex),be(function(Me){Me.startRectResizeAnchor=void 0,Me.startElementMovePoint=void 0}),!0},Q=function(me){var je,Ee=me.object,Me={x:A.elementX,y:A.elementY};if(Te.AIAnnotation&&Te.selectedModel[Te.selectedTool]===n.HE.IVP&&(je=Te.prompt.creatingPrompt)!==null&&je!==void 0&&je.startPoint){var We=Te.prompt.creatingPrompt.startPoint;if(Me.x===We.x||Me.y===We.y)return Ge(function(ce){ce.prompt.creatingPrompt=void 0}),!0;var re=(0,d.A7)(We,Me,{width:A.elementW,height:A.elementH}),se={type:Z.Ae.Rect,isPositive:Te.prompt.creatingPrompt.isPositive,rect:re},J=[].concat(w()(Te.prompt.promptsQueue||[]),[se]);return $e==null||$e({type:n.gr.Rectangle,drawData:Te,promptsQueue:J}),!0}if(!Ee||!Ee.startPoint)return!1;if(A.elementX===Ee.startPoint.x||A.elementY===Ee.startPoint.y)return Ge(function(ce){ce.creatingObject=void 0}),!0;var de=(0,d.A7)(Ee.startPoint,{x:A.elementX,y:A.elementY},{width:A.elementW,height:A.elementH}),xe={type:n.gr.Rectangle,labelId:Ee.labelId,hidden:!1,rect:t()({visible:!0},de),conf:1,status:Z.TK.Commited,color:Et(Ee.labelId)};return pt(xe),!0};return{renderObject:Xe,renderCreatingObject:nt,renderEditingObject:Ke,renderPrompt:ye,startEditingWhenMouseDown:ne,startCreatingWhenMouseDown:H,updateEditingWhenMouseMove:R,updateCreatingWhenMouseMove:P,finishEditingWhenMouseUp:ae,finishCreatingWhenMouseUp:Q}},K=j,k=function(U,A,G,fe,pe){var ge=arguments.length>5&&arguments[5]!==void 0?arguments[5]:4,be=A.lines,Te=A.points;if(!pe)for(var Ge=0;Ge*2400?4:2)}},nt=function(me){var je=me.object,Ee=me.styles,Me=je.startPoint;if(Me){var We=(0,d.A7)(Me,{x:pe.elementX,y:pe.elementY},{width:pe.elementW,height:pe.elementH}),re=(0,d.ZU)(We,{x:-ge.current.x,y:-ge.current.y}),se=n.v_.points,J=n.v_.lines,de=n.v_.pointColors,xe=n.v_.pointNames,ce=(0,d.el)(se,xe,de,fe,G),Le=(0,d.cU)(ce,re);(0,l.Mu)(Te.current,re,Ee.strokeColor,Ee.thickness),Le.forEach(function(et){(0,l.G5)(Te.current,{x:et.x,y:et.y},4,Ee.strokeColor,3,"#1f4dd8")});for(var Oe=0;Oe*2-1&&A.focusEleIndex>-1&&A.startElementMovePoint&&(Me=Ee.creatingObject)!==null&&Me!==void 0&&(We=Me.keypoints)!==null&&We!==void 0&&(re=We.points)!==null&&re!==void 0&&re[A.focusEleIndex]){var se,J,de,xe=(se=Ee.creatingObject)===null||se===void 0||(J=se.keypoints)===null||J===void 0||(de=J.points)===null||de===void 0?void 0:de[A.focusEleIndex],ce=(0,d.E5)(pe),Le=ce.x,Oe=ce.y;xe.x=Le,xe.y=Oe}}),!0):!1)},P=function(me){var je=me.object;return!!je},ae=function(me){var je=me.object,Ee=A.startRectResizeAnchor||A.startElementMovePoint;if(Ee&&ft(je,Je.activeObjectIndex),Je.AIAnnotation){var Me,We;A.startElementMovePoint&&(((Me=A.startElementMovePoint.mousePoint)===null||Me===void 0?void 0:Me.x)!==pe.elementX||((We=A.startElementMovePoint.mousePoint)===null||We===void 0?void 0:We.y)!==pe.elementY)&&(Wt==null||Wt({type:n.gr.Skeleton,drawData:Je}))}return Ge(function(re){re.startRectResizeAnchor=void 0,re.startElementMovePoint=void 0}),!0},Q=function(me){var je,Ee,Me=me.object;if(!Me||!Me.startPoint)return!1;if(pe.elementX===((je=Me.startPoint)===null||je===void 0?void 0:je.x)||pe.elementY===((Ee=Me.startPoint)===null||Ee===void 0?void 0:Ee.y))return Qe(function(Oe){return Oe.creatingObject=void 0}),!0;var We=(0,d.A7)(Me.startPoint,{x:pe.elementX,y:pe.elementY},{width:pe.elementW,height:pe.elementH}),re=n.v_.points,se=n.v_.lines,J=n.v_.pointColors,de=n.v_.pointNames,xe=(0,d.el)(re,de,J,fe,G),ce=(0,d.cU)(xe,We),Le={type:n.gr.Skeleton,labelId:Me.labelId,hidden:!1,color:Me.color,rect:t()({visible:!0},We),keypoints:{points:ce,lines:se},conf:1,status:Z.TK.Commited};return Et(Le),!0};return{renderObject:Xe,renderCreatingObject:nt,renderEditingObject:Ke,renderPrompt:ye,startEditingWhenMouseDown:ne,startCreatingWhenMouseDown:H,updateEditingWhenMouseMove:R,updateCreatingWhenMouseMove:P,finishEditingWhenMouseUp:ae,finishCreatingWhenMouseUp:Q}},V=te,q;(function(_){})(q||(q={}));var le=function(U){var A,G=K(U),fe=$(U),pe=V(U),ge=(0,c.ZP)(U),be=g(U),Te=h(U),Ge=T(U),Je=(A={},s()(A,n.gr.Rectangle,G),s()(A,n.gr.Polygon,fe),s()(A,n.gr.Skeleton,pe),s()(A,n.gr.Mask,ge),s()(A,n.gr.Matting,be),s()(A,n.gr.Point,Te),s()(A,n.gr.Polyline,Ge),s()(A,n.gr.Custom,G),s()(A,n.gr.Classification,G),A);return{objectHooksMap:Je}},X=function(U){return!(U.button===2||U.button===0&&U.altKey)},W=function(U,A){var G=(0,d.Qo)(A).map(function(fe){return fe.position});G.forEach(function(fe){var pe=(0,d.Ak)(fe,{width:10,height:10}),ge=(0,d.my)(pe);(0,l.Mu)(U,ge,"rgba(0, 0, 0, 0.8)",3,[0],"#fff")})},x=function(U){var A=U.object,G=U.contentMouse,fe=U.setEditState,pe=U.setDrawData,ge=(0,d.o7)(G,A),be=ge.focusEleIndex,Te=ge.focusEleType,Ge=ge.focusPolygonInfo;if(Te===n.Yq.None)return!1;var Je=A.rect,Qe=A.keypoints,pt=A.polygon,Et={x:G.elementX,y:G.elementY};return fe(function(ft){switch(Te){case n.Yq.Rect:{if(Je){var Wt=(0,d.Oh)(Je,Et);Wt?ft.startRectResizeAnchor={type:Wt.type,position:(0,d.l1)(Je,Wt.type)}:ft.startElementMovePoint={topLeftPoint:{x:Je.x,y:Je.y},mousePoint:Et}}break}case n.Yq.Circle:{if(Qe){var $e=Qe.points[be];ft.startElementMovePoint={topLeftPoint:{x:$e.x,y:$e.y},mousePoint:Et}}break}case n.Yq.Polygon:{var Xe=Ge.lineIndex,nt=Ge.index;if(pt)if(Xe>-1){var Ke=(0,d.Iw)(pt.group[nt])[Xe];if(Ke){var ye=(0,d.Z4)(Et,Ke.start,Ke.end);pe(function(ne){var H=ne.objectList[ne.activeObjectIndex];H.polygon&&H.polygon.group[nt].splice(Xe+1,0,ye),ne.creatingObject=t()({},H)}),ft.focusPolygonInfo.pointIndex=Xe+1,ft.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:ye,initPoint:ye}}}else ft.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:Et,initPoint:Et};break}}}),!0},O=function(U){var A=U.object,G=U.editState,fe=U.contentMouse,pe=U.drawData,ge=U.setDrawData,be=U.updateMouseCursor,Te=G.focusObjectIndex,Ge=G.focusEleIndex,Je=G.focusEleType,Qe=G.startRectResizeAnchor;if(Te===pe.activeObjectIndex&&Je===n.Yq.Rect&&A.rect){var pt=(0,d.Oh)(A.rect,{x:fe.elementX,y:fe.elementY});pt?be("resize",pt.type):be("move")}if(Je===n.Yq.Rect&&Ge===0){if(Qe)return ge(function(Et){if(Et.activeObjectIndex>-1&&G.startRectResizeAnchor&&Et.creatingObject&&Et.creatingObject.rect){var ft=(0,d.XR)(Et.creatingObject.rect,G.startRectResizeAnchor,fe);Et.creatingObject.rect=t()(t()({},Et.creatingObject.rect),ft)}}),!0;if(G.startElementMovePoint)return ge(function(Et){if(Et.activeObjectIndex>-1&&G.startElementMovePoint&&Et.creatingObject&&Et.creatingObject.rect){var ft=(0,d.i$)(Et.creatingObject.rect,G.startElementMovePoint,fe);Et.creatingObject.rect=t()(t()({},Et.creatingObject.rect),ft)}}),!0}return!1}},67761:function(b,y,e){"use strict";e.d(y,{G9:function(){return j},ei:function(){return K}});var a=e(34485),t=e.n(a),o=e(63900),s=e.n(o),n=e(39378),d=e.n(n),l=e(17410),c=e(34095),m=e(50910),g=e(14464),M=e(46134),h=e(81179),S=e(87478),w=function(V){for(var q=V.length,le=0,X=0,W=!0,x=Array(q*6),O=0;O2&&(X-=V[O-2]),W=!0;W;){var _=X&31;X>>=5,W=!!(X!==-1&&_&16||X!==0&&!(_&16)),W&&(_|=32),_+=48,x[le]=String.fromCharCode(_),le+=1}return x.join("")},C=function(V){for(var q=0,le=[];q2&&(X+=le[le.length-2]),le.push(X)}return le},F=function(V,q){for(var le=new Array(q),X=0,W=0,x=0;x0&&x.forEach(function(_){var U=(0,M.U8)(_.points,{x:-q.x,y:-q.y});(_.tool===l.jB.PenAdd||_.tool===l.jB.PenErase)&&(0,h.HT)(V,U,_.positive,(0,g.a7)(W,c.s_.CREATING),"transparent"),(_.tool===l.jB.BrushAdd||_.tool===l.jB.BrushErase)&&(0,h.T8)(V,U,_.positive,W,c.s_.CREATING,_.radius*le.width/X.width)}),O.restore()},D=function(V,q,le,X,W,x,O){if(V){var _=q.maskStep,U=q.tempMaskSteps,A=q.maskCanvasElement,G=V.getContext("2d");if(!G)return null;if(A&&(G.globalAlpha=c.s_.CREATING,(0,h.AE)(V,A,{x:le.x,y:le.y,width:x.width,height:x.height}),G.globalAlpha=1),$(V,le,x,O,X,U),_&&_.points.length>0){var fe=_.tool===l.jB.PenAdd||_.tool===l.jB.BrushAdd?c.Bt.CREATING_POSITIVE:c.Bt.CREATING_NEGATIVE,pe=(0,M.U8)(_.points,{x:-le.x,y:-le.y});(_.tool===l.jB.PenAdd||_.tool===l.jB.PenErase)&&((0,h.G5)(V,pe[0],6,(0,g.a7)(fe,c.rl.CREATING),3,c.XQ.CREATING),pe.length>0&&((0,h.MC)(V,pe,(0,g.a7)(fe,c.rl.CREATING),2.5,[0]),(0,h.pS)(V,pe[pe.length-1],W,(0,g.a7)(fe,c.rl.CREATING_LINE),2.5,[5]))),(_.tool===l.jB.BrushAdd||_.tool===l.jB.BrushErase||_.tool===l.jB.AutoSegmentByStroke)&&pe.length>1&&(0,h.AT)(V,pe,(0,g.a7)(fe,c.s_.CREATING),_.radius*x.width/O.width)}}},T=function(V,q){var le=V.getContext("2d",{willReadFrequently:!0});if(!le)return null;for(var X=le.getImageData(0,0,V.width,V.height),W=hexToRgbArray(q),x=X.data.length/4;x--;)X.data[x*4+3]>0&&(X.data[x*4]=W[0],X.data[x*4+1]=W[1],X.data[x*4+2]=W[2],X.data[x*4+3]=255);return clearCanvas(V),le.putImageData(X,0,0),V},j=function(V,q,le,X){var W=document.createElement("canvas"),x=W.getContext("2d",{willReadFrequently:!0});if(!x||!le)return null;W.width=q.width,W.height=q.height;var O=le.map(function(pe){return s()(s()({},pe),{},{points:pe.points.map(function(ge){return(0,M.Ap)(ge,V,q)})})});X&&(0,h.AE)(W,X,{x:0,y:0,width:q.width,height:q.height}),$(W,{x:0,y:0},q,q,"#fff",O);for(var _=x.getImageData(0,0,q.width,q.height),U=0,A=new Array(_.data.length/4).fill(0),G=_.data.length/4;G--;){var fe=0;_.data[G*4+3]>0&&(U++,fe=1,A[G]=1),_.data[G*4]=_.data[G*4+1]=_.data[G*4+2]=_.data[G*4+3]=fe}return U>0?L(A):""},K=function(V,q,le){var X=q.width,W=q.height,x=document.createElement("canvas"),O=x.getContext("2d");if(x.width=X,x.height=W,!O)return null;for(var _=O.createImageData(X,W),U=(0,g.dX)(le),A=N(V,Math.ceil(X)*Math.ceil(W)),G=_.data.length/4;G--;)A[G]>0&&(_.data[G*4]=U[0],_.data[G*4+1]=U[1],_.data[G*4+2]=U[2],_.data[G*4+3]=255);return O.putImageData(_,0,0),x},k=function(V){var q=V.editState,le=V.clientSize,X=V.naturalSize,W=V.contentMouse,x=V.imagePos,O=V.containerMouse,_=V.canvasRef,U=V.activeCanvasRef,A=V.drawData,G=V.setDrawData,fe=V.setDrawDataWithHistory,pe=V.updateHistory,ge=V.onAiAnnotation,be=V.updateMouseCursor,Te=function(H){var R=H.object,P=H.styles,ae=R.maskCanvasElement,Q=_.current.getContext("2d"),ie=Q.globalAlpha;Q.globalAlpha=Q.globalAlpha*P.maskAlpha,(0,h.AE)(_.current,ae,{x:x.current.x,y:x.current.y,width:le.width,height:le.height}),Q.globalAlpha=ie},Ge=function(H){var R=H.object,P=H.color;q.hideCreatingObject||D(U.current,R,x.current,P,{x:O.elementX,y:O.elementY},le,X)},Je=function(H){var R=H.object,P=H.color;q.hideCreatingObject||D(U.current,R,x.current,P,{x:O.elementX,y:O.elementY},le,X)},Qe=function(H){var R=H.prompt,P=A.selectedModel[A.selectedTool];if(R.creatingPrompt)if(P===l.HE.IVP){var ae=R.creatingPrompt.isPositive?c.CJ.POSITIVE:c.CJ.NEGATIVE,Q=R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE;switch(R.creatingPrompt.type){case m.Ae.Rect:{var ie=R.creatingPrompt.startPoint,me=(0,M.A7)(ie,{x:W.elementX,y:W.elementY},{width:W.elementW,height:W.elementH}),je=(0,M.ZU)(me,{x:-x.current.x,y:-x.current.y});(0,h.Mu)(U.current,je,ae,2,[0],Q);break}case m.Ae.Point:{if(!R.creatingPrompt.point)break;var Ee=(0,M.aF)(R.creatingPrompt.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,Ee,4,R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff")}default:break}}else{var Me=c.XQ.CREATING,We=c.Bt.CREATING;switch(R.creatingPrompt.type){case m.Ae.Rect:{var re=R.creatingPrompt.startPoint,se=(0,M.A7)(re,{x:W.elementX,y:W.elementY},{width:W.elementW,height:W.elementH}),J=(0,M.ZU)(se,{x:-x.current.x,y:-x.current.y});(0,h.Mu)(U.current,J,Me,2,[0],We);break}case m.Ae.Point:{if(!R.creatingPrompt.point)break;var de=(0,M.aF)(R.creatingPrompt.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,de,4,R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff")}case m.Ae.EdgeStitch:case m.Ae.Stroke:{if(!R.creatingPrompt.stroke||!R.creatingPrompt.radius)break;var xe=(0,M.U8)(R.creatingPrompt.stroke,{x:-x.current.x,y:-x.current.y}),ce=R.creatingPrompt.radius*le.width/X.width,Le=R.creatingPrompt.type===m.Ae.EdgeStitch?(0,g.a7)(Me,c.s_.CREATING):R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE;(0,h.AT)(U.current,xe,Le,ce);break}default:break}if(q.isRequiring&&R.activeRectWhileLoading){var Oe=(0,M.ZU)(R.activeRectWhileLoading,{x:-x.current.x,y:-x.current.y});(0,h.HU)(U.current,Oe)}}R.promptsQueue&&(P===l.HE.IVP?R.promptsQueue.forEach(function(we){switch(we.type){case m.Ae.Rect:{var Ne=(0,M.ZU)(we.rect,{x:-x.current.x,y:-x.current.y});(0,h.Mu)(U.current,Ne,we.isPositive?c.CJ.POSITIVE:c.CJ.NEGATIVE,2,[0],we.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE);break}case m.Ae.Point:{var st=(0,M.aF)(we.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,st,4,we.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff");break}}}):R.promptsQueue.forEach(function(we){if(we.type===m.Ae.Point){var Ne=(0,M.aF)(we.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,Ne,4,we.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff")}}))},pt=function(H){var R={x:W.elementX,y:W.elementY};G(function(P){switch(P.selectedSubTool){case l.jB.PenAdd:case l.jB.PenErase:case l.jB.BrushAdd:case l.jB.BrushErase:if(P.creatingObject){if(P.creatingObject.maskStep){if(P.creatingObject.maskStep.points.push(R),[l.jB.PenAdd,l.jB.PenErase].includes(P.selectedSubTool)&&(0,M.uN)(P.creatingObject.maskStep.points[0],W)){var ae;(ae=P.creatingObject.tempMaskSteps)===null||ae===void 0||ae.push(P.creatingObject.maskStep),P.creatingObject.maskStep=void 0}}else P.creatingObject.maskStep={tool:P.selectedSubTool,positive:P.selectedSubTool===l.jB.PenAdd||P.selectedSubTool===l.jB.BrushAdd,points:[R],radius:P.brushSize};[l.jB.BrushAdd,l.jB.BrushErase].includes(P.selectedSubTool)||pe((0,n.cloneDeep)(P))}P.prompt.sessionId=void 0;break;case l.jB.AutoSegmentByBox:P.prompt.creatingPrompt={type:m.Ae.Rect,startPoint:R,isPositive:!0};break;case l.jB.AutoSegmentByClick:P.prompt.creatingPrompt={type:m.Ae.Point,startPoint:R,point:R,isPositive:(0,S.hF)(H)};break;case l.jB.AutoSegmentByStroke:P.prompt.creatingPrompt={type:m.Ae.Stroke,startPoint:R,stroke:[R],radius:P.brushSize,isPositive:(0,S.hF)(H)};break;case l.jB.AutoEdgeStitching:P.prompt.creatingPrompt={type:m.Ae.EdgeStitch,startPoint:R,stroke:[R],radius:P.brushSize,isPositive:!0};default:break}})},Et=function(H){var R=H.event;return pt(R),!0},ft=function(H){var R=H.event,P=H.object,ae=H.point,Q=H.basic;return P?pt(R):G(function(ie){switch(ie.activeObjectIndex=-1,ie.selectedSubTool){case l.jB.PenAdd:case l.jB.PenErase:case l.jB.BrushAdd:case l.jB.BrushErase:ie.creatingObject=s()(s()({},Q),{},{type:l.gr.Mask,startPoint:ae,maskStep:{tool:ie.selectedSubTool,positive:ie.selectedSubTool===l.jB.PenAdd||ie.selectedSubTool===l.jB.BrushAdd,points:[ae],radius:ie.brushSize},tempMaskSteps:[]}),ie.prompt.sessionId=void 0;break;case l.jB.AutoSegmentByBox:ie.prompt.creatingPrompt={type:m.Ae.Rect,startPoint:ae,isPositive:!0};break;case l.jB.AutoSegmentByClick:ie.prompt.creatingPrompt={type:m.Ae.Point,startPoint:ae,point:ae,isPositive:(0,S.hF)(R)};break;case l.jB.AutoSegmentByStroke:ie.prompt.creatingPrompt={type:m.Ae.Stroke,startPoint:ae,stroke:[ae],radius:ie.brushSize,isPositive:(0,S.hF)(R)};break;case l.jB.AutoEdgeStitching:ie.prompt.creatingPrompt={type:m.Ae.EdgeStitch,startPoint:ae,stroke:[ae],radius:ie.brushSize,isPositive:!0};break;case l.jB.PositiveVisualPrompt:case l.jB.NegativeVisualPrompt:ie.prompt.creatingPrompt={type:m.Ae.Rect,startPoint:ae,point:ae,isPositive:ie.selectedSubTool!==l.jB.NegativeVisualPrompt};default:break}}),!0},Wt=function(H){var R=H.event,P=H.object;if(P||A.prompt.creatingPrompt){be("crosshair");var ae=[l.jB.BrushAdd,l.jB.BrushErase,l.jB.PenAdd,l.jB.PenErase,l.jB.AutoSegmentByStroke,l.jB.AutoEdgeStitching].includes(A.selectedSubTool),Q=R.buttons===1||R.buttons===2;if(ae&&Q){var ie={x:W.elementX,y:W.elementY},me=[l.jB.AutoSegmentByStroke,l.jB.AutoEdgeStitching].includes(A.selectedSubTool);G(function(je){if(me){var Ee,Me;(Ee=je.prompt.creatingPrompt)===null||Ee===void 0||(Me=Ee.stroke)===null||Me===void 0||Me.push(ie)}else{var We,re;(We=je.creatingObject)===null||We===void 0||(re=We.maskStep)===null||re===void 0||re.points.push(ie)}})}return!0}return!1},$e=function(H){var R=H.object,P=H.event;return Wt({object:R,event:P})},Xe=function(H){var R=H.object,P=H.event;return Wt({object:R,event:P})},nt=function(){if(!(!A.creatingObject&&!A.prompt.creatingPrompt)){var H={x:W.elementX,y:W.elementY},R=A.selectedModel[A.selectedTool];switch(A.selectedSubTool){case l.jB.BrushAdd:case l.jB.BrushErase:case l.jB.PenAdd:case l.jB.PenErase:{fe(function(Ne){if(Ne.creatingObject&&Ne.creatingObject.tempMaskSteps&&Ne.creatingObject.maskStep&&Ne.creatingObject.maskStep.points.length>1&&([l.jB.BrushAdd,l.jB.BrushErase].includes(Ne.selectedSubTool)||[l.jB.PenAdd,l.jB.PenErase].includes(Ne.selectedSubTool)&&(0,M.uN)(Ne.creatingObject.maskStep.points[0],W))){var st;(st=Ne.creatingObject.tempMaskSteps)===null||st===void 0||st.push(Ne.creatingObject.maskStep),Ne.creatingObject.maskStep=void 0}Ne.prompt.sessionId=void 0});break}case l.jB.AutoSegmentByBox:{var P,ae,Q;if(!((P=A.prompt.creatingPrompt)!==null&&P!==void 0&&P.startPoint))break;if(H.x===((ae=A.prompt.creatingPrompt.startPoint)===null||ae===void 0?void 0:ae.x)||H.y===((Q=A.prompt.creatingPrompt.startPoint)===null||Q===void 0?void 0:Q.y)){G(function(Ne){return Ne.prompt.creatingPrompt=void 0});break}var ie=(0,M.A7)(A.prompt.creatingPrompt.startPoint,H,{width:W.elementW,height:W.elementH}),me={type:m.Ae.Rect,isPositive:!0,rect:ie};fe(function(Ne){Ne.prompt.activeRectWhileLoading=ie});var je=A.prompt.promptsQueue?[].concat(t()(A.prompt.promptsQueue),[me]):[me];ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:je});break}case l.jB.AutoSegmentByClick:{var Ee;if(!(0,M.jt)(W)||!(0,M.jt)(O)||!((Ee=A.prompt.creatingPrompt)!==null&&Ee!==void 0&&Ee.point))break;var Me={type:m.Ae.Point,isPositive:A.prompt.creatingPrompt.isPositive,point:A.prompt.creatingPrompt.point},We=A.prompt.promptsQueue?[].concat(t()(A.prompt.promptsQueue),[Me]):[Me];ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:We});break}case l.jB.AutoSegmentByStroke:{var re;if(!((re=A.prompt.creatingPrompt)!==null&&re!==void 0&&re.stroke))break;var se={type:m.Ae.Stroke,isPositive:A.prompt.creatingPrompt.isPositive,stroke:A.prompt.creatingPrompt.stroke,radius:A.brushSize},J=A.prompt.promptsQueue?[].concat(t()(A.prompt.promptsQueue),[se]):[se];ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:J});break}case l.jB.AutoEdgeStitching:{var de;if(!((de=A.prompt.creatingPrompt)!==null&&de!==void 0&&de.stroke))break;ge==null||ge({type:l.gr.Mask,drawData:A});break}case l.jB.PositiveVisualPrompt:case l.jB.NegativeVisualPrompt:{var xe;if(R!==l.HE.IVP||!((xe=A.prompt.creatingPrompt)!==null&&xe!==void 0&&xe.startPoint))break;var ce=A.prompt.creatingPrompt.startPoint;if(H.x===ce.x||H.y===ce.y){G(function(Ne){return Ne.prompt.creatingPrompt=void 0});break}else{var Le=(0,M.A7)(ce,H,{width:W.elementW,height:W.elementH}),Oe={type:m.Ae.Rect,isPositive:A.prompt.creatingPrompt.isPositive,rect:Le},we=[].concat(t()(A.prompt.promptsQueue||[]),[Oe]);ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:we})}}}}},Ke=function(){return nt(),!0},ye=function(){return nt(),!0};return{renderObject:Te,renderCreatingObject:Ge,renderEditingObject:Je,renderPrompt:Qe,startEditingWhenMouseDown:Et,startCreatingWhenMouseDown:ft,updateEditingWhenMouseMove:$e,updateCreatingWhenMouseMove:Xe,finishEditingWhenMouseUp:Ke,finishCreatingWhenMouseUp:ye}};y.ZP=k},50910:function(b,y,e){"use strict";e.d(y,{Ae:function(){return l},In:function(){return n},O4:function(){return g},SP:function(){return S},TK:function(){return d},f7:function(){return m},je:function(){return c},rl:function(){return h}});var a=e(2657),t=e.n(a),o=e(17410),s,n=function(w){return w.Radio="radio",w.Checkbox="checkbox",w.Text="text",w}({}),d=function(w){return w[w.Unchecked=0]="Unchecked",w[w.Checked=1]="Checked",w[w.Commited=2]="Commited",w}({}),l=function(w){return w.Rect="rect",w.Point="point",w.Stroke="stroke",w.EdgeStitch="edgeStitch",w.Modify="modify",w.Text="text",w}({}),c={View:0,Edit:1,Review:2},m={initialized:!1,selectedTool:o.ru.Drag,selectedSubTool:o.jB.PenAdd,selectedModel:(s={},t()(s,o.ru.Drag,void 0),t()(s,o.ru.Rectangle,void 0),t()(s,o.ru.Mask,void 0),t()(s,o.ru.Skeleton,o.HE.Pose),t()(s,o.ru.Polygon,o.HE.SegmentByPolygon),s),AIAnnotation:!1,objectList:[],classifications:[],activeObjectIndex:-1,activeClassName:"",isJustCreated:!1,creatingObject:void 0,editingAttribute:void 0,highlightCategory:void 0,brushSize:20,pointResolution:.5,prompt:{},isBatchEditing:!1,limitConf:0},g={brightness:100,contrast:100,saturate:100},M={colorByCategory:!0},h={isLoading:!1,isLoadingError:!1,isRequiring:!1,allowMove:!1,latestLabelId:"",startRectResizeAnchor:void 0,startElementMovePoint:void 0,focusObjectIndex:-1,foucsObjectAllIndexs:[],focusEleType:o.Yq.Rect,focusEleIndex:-1,focusPolygonInfo:{index:-1,pointIndex:-1,lineIndex:-1},isCtrlPressed:!1,hideCreatingObject:!1,imageDisplayOptions:g,annotsDisplayOptions:M},S=function(w){return w.Solid="solid",w.Dashed="dash",w.DoubleSolid="double_solid",w.DoubleDashed="double_dash",w.LDashedRSolid="left_dash-right_solid",w.LSolidRDashed="left_solid-right_dash",w.LCurbside="left_curbside",w.RCurbside="right_curbside",w.Unknown="none",w}({})},14464:function(b,y,e){"use strict";e.d(y,{Cj:function(){return c},WE:function(){return h},ZT:function(){return o},a7:function(){return d},dX:function(){return n},g9:function(){return g},wj:function(){return m}});var a=e(34485),t=e.n(a),o=function(C){return C.length!==3?"transparent":"#".concat(C[0].toString(16).padStart(2,"0")).concat(C[1].toString(16).padStart(2,"0")).concat(C[2].toString(16).padStart(2,"0")).toUpperCase()},s=function(C){var F=/^rgba?\((\d+),\s*(\d+),\s*(\d+)\)$/i.exec(C);return F?o(F):"transparent"},n=function(C){var F=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Z=C.replace(F,function(L,$,D,T){return $+$+D+D+T+T}),N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(Z);return N?[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)]:[0,0,0]},d=function(C){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Z=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,N=C.replace(Z,function(D,T,j,K){return T+T+j+j+K+K}),L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(N),$=F<0||F>1?1:F;return L?"rgba(".concat(parseInt(L[1],16),",").concat(parseInt(L[2],16),",").concat(parseInt(L[3],16),",").concat($,")"):"transparent"},l=function(C){for(var F=["#FFFF00","#FF0000","#0000FF","#00FF00","#FF00FF","#00FFFF"],Z=[255,128,64,32,16,8,4,2,1],N=F.length+1;F.length0)if(L[T%3]+Z[Math.floor(T/3)]<=255)L[T%3]+=Z[Math.floor(T/3)];else{D=!1;break}$<<=1}if(D){var j="#".concat(L[0].toString(16).padStart(2,"0")).concat(L[1].toString(16).padStart(2,"0")).concat(L[2].toString(16).padStart(2,"0")).toUpperCase();F.includes(j)||F.push(j)}}return F},c=function(C){if(!C.length)return{};var F=t()(C),Z=l(F.length),N={};return F.forEach(function(L,$){N[L]=Z[$]}),N},m=function(C,F){return C.length!==3?"transparent":"rgba(".concat(C[0],", ").concat(C[1],", ").concat(C[2],", ").concat(F,")")},g=function(C){var F=C.slice(5,-1).split(",").map(function(Z){return Z.trim()});return F.length!==4||isNaN(parseFloat(F[3]))?[]:F.slice(0,3)},M=function(C,F){if(!C)return"rgba(0,0,0,0)";var Z=C.substring(5,C.length-1).split(",").map(function($){return parseInt($.trim())}),N=[].concat(_toConsumableArray(Z.slice(0,3)),[F]),L="rgba(".concat(N.join(","),")");return L},h=function(C,F,Z){var N=Z*F,L=N*(1-Math.abs(C*6%2-1)),$=Z-N,D=0,T=0,j=0;return C<1/6?(D=N,T=L):C<2/6?(D=L,T=N):C<3/6?(T=N,j=L):C<4/6?(T=L,j=N):C<5/6?(D=L,j=N):(D=N,j=L),[Math.round((D+$)*255),Math.round((T+$)*255),Math.round((j+$)*255)]},S=function(){var w=.618033988749895,C=0;return function(){C=(C+w)%1;var F=h(C,.8,.95);return o(F)}}()},46134:function(b,y,e){"use strict";e.d(y,{$G:function(){return G},$S:function(){return q},A7:function(){return D},AR:function(){return N},A_:function(){return We},Ak:function(){return R},Ap:function(){return X},Aw:function(){return O},E5:function(){return je},I4:function(){return Le},Iw:function(){return Et},JP:function(){return W},Nm:function(){return nt},OX:function(){return A},Oh:function(){return P},Qo:function(){return H},RF:function(){return Xe},U8:function(){return Ne},Uy:function(){return $},Vh:function(){return L},Vi:function(){return re},X6:function(){return Oe},XR:function(){return Q},YO:function(){return Z},Yc:function(){return _t},Z0:function(){return $e},Z4:function(){return se},ZU:function(){return we},aF:function(){return st},aH:function(){return wt},cO:function(){return x},cU:function(){return k},cf:function(){return Ve},cx:function(){return le},e4:function(){return Ot},el:function(){return _},hv:function(){return it},i$:function(){return ie},jt:function(){return pe},kh:function(){return V},kq:function(){return te},l1:function(){return ae},lT:function(){return et},my:function(){return ne},nF:function(){return Be},o7:function(){return Wt},s5:function(){return me},t9:function(){return F},tQ:function(){return Me},uN:function(){return Je},yn:function(){return U}});var a=e(34485),t=e.n(a),o=e(63900),s=e.n(o),n=e(88479),d=e.n(n),l=e(88205),c=e.n(l),m=e(39378),g=e.n(m),M=e(17410),h=e(34095),S=e(67761),w=e(50910),C=e(14464),F=function(ze,tt,St,lt){if(!ze||!tt)return[0,0,1];if(!St)return[ze/tt*(lt||0),lt||0,1];if(!lt)return[St||0,tt/ze*(St||0),1];var Gt=ze,Nt=tt,At=1;return ze/tt>=St/lt?(Gt=St,Nt=tt*St/ze,At=St/ze):(Nt=lt,Gt=ze*lt/tt,At=lt/tt),[Gt||0,Nt||0,At]},Z=function(ze,tt,St){var lt=c()(ze,2),Gt=lt[0],Nt=Gt===void 0?0:Gt,At=lt[1],Ie=At===void 0?0:At;return{x:Nt/tt.width*St.width,y:Ie/tt.height*St.height}},N=function(ze,tt,St){var lt=c()(ze,2),Gt=lt[0],Nt=Gt===void 0?0:Gt,At=lt[1],Ie=At===void 0?0:At;return{x:Nt/St.width*tt.width,y:Ie/St.height*tt.height}},L=function(ze,tt,St){var lt=[];if(!ze)return lt;var Gt=ze.split("/");return Gt==null||Gt.forEach(function(Nt){for(var At=[],Ie=Nt.split(",").map(Number),Se=0;SeSt.width?St.width:tt.x,y:tt.y<0?0:tt.y>St.height?St.height:tt.y};return{x:Math.min(ze.x,lt.x),y:Math.min(ze.y,lt.y),width:Math.abs(ze.x-lt.x),height:Math.abs(ze.y-lt.y)}},T=function(ze){var tt=1/0,St=1/0,lt=-1/0,Gt=-1/0,Nt=d()(ze),At;try{for(Nt.s();!(At=Nt.n()).done;){var Ie=At.value;tt=Math.min(tt,Ie.x),St=Math.min(St,Ie.y),lt=Math.max(lt,Ie.x),Gt=Math.max(Gt,Ie.y)}}catch(Se){Nt.e(Se)}finally{Nt.f()}return{minX:tt,minY:St,maxX:lt,maxY:Gt}},j=function(ze,tt,St){return{x:tt*ze.x,y:St*ze.y}},K=function(ze,tt,St){return{x:ze.x+tt,y:ze.y+St}},k=function(ze,tt){var St=T(ze),lt=St.minX,Gt=St.minY,Nt=St.maxX,At=St.maxY,Ie=tt.width/(Nt-lt),Se=tt.height/(At-Gt),bt=ze.map(function(jt){var He=K(jt,-lt,-Gt),qe=j(He,Ie,Se),$t=K(qe,tt.x,tt.y);return s()(s()({},jt),$t)});return bt},te=function(ze,tt){return{xmin:ze.x/tt.width,ymin:ze.y/tt.height,xmax:(ze.x+ze.width)/tt.width,ymax:(ze.y+ze.height)/tt.height}},V=function(ze){return{xmin:ze.x,ymin:ze.y,xmax:ze.x+ze.width,ymax:ze.y+ze.height}},q=function(ze,tt,St){return{x:ze.x*St.width/tt.width,y:ze.y*St.height/tt.height,width:ze.width*St.width/tt.width,height:ze.height*St.height/tt.height}},le=function(ze,tt,St){var lt=q(ze,tt,St);return[lt.x,lt.y,lt.x+lt.width,lt.y+lt.height]},X=function(ze,tt,St){return{x:ze.x*St.width/tt.width,y:ze.y*St.height/tt.height}},W=function(ze,tt,St){return{x:(ze[0]||0)/tt.width*St.width,y:(ze[1]||0)/tt.height*St.height,width:((ze[2]||0)-(ze[0]||0))/tt.width*St.width,height:((ze[3]||0)-(ze[1]||0))/tt.height*St.height}},x=function(ze,tt){return{x:(ze.xmin||0)*tt.width,y:(ze.ymin||0)*tt.height,width:((ze.xmax||0)-(ze.xmin||0))*tt.width,height:((ze.ymax||0)-(ze.ymin||0))*tt.height}},O=function(ze){return{x:ze.xmin,y:ze.ymin,width:ze.xmax-ze.xmin,height:ze.ymax-ze.ymin}},_=function(ze,tt,St,lt,Gt){for(var Nt=[],At=0;At*6=0&&ze.elementX<=ze.elementW&&ze.elementY>=0&&ze.elementY<=ze.elementH},ge=function(ze,tt){return{x:ze.x-tt.x,y:ze.y-tt.y,width:ze.width+2*tt.x,height:ze.height+2*tt.y}},be=function(ze,tt){return s()(s()({},ze),{},{radius:tt})};function Te(yt,ze,tt){var St={x:ze.x-yt.x,y:ze.y-yt.y},lt={x:tt.x-yt.x,y:tt.y-yt.y};return St.x*lt.y-St.y*lt.x}var Ge=function(ze,tt,St){if(!ze||!tt)return!1;switch(St){case M.Yq.Rect:{var lt=ze;return lt.x<=tt.x&<.x+lt.width>=tt.x&<.y<=tt.y&<.y+lt.height>=tt.y}case M.Yq.Circle:{var Gt=ze;return Math.sqrt(Math.pow(tt.x-Gt.x,2)+Math.pow(tt.y-Gt.y,2))<=Gt.radius}case M.Yq.Polygon:{for(var Nt=ze,At=1;At0&&Ie*bt>0)return!0}return!1}default:return!1}},Je=function(ze,tt){var St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,lt=be(ze,St),Gt={x:tt.elementX,y:tt.elementY};return Ge(lt,Gt,M.Yq.Circle)},Qe=function(ze,tt){var St=tt.elementX,lt=tt.elementY,Gt=Math.sqrt(Math.pow(St-ze.start.x,2)+Math.pow(lt-ze.start.y,2)),Nt=Math.sqrt(Math.pow(St-ze.end.x,2)+Math.pow(lt-ze.end.y,2)),At=Math.sqrt(Math.pow(ze.end.x-ze.start.x,2)+Math.pow(ze.end.y-ze.start.y,2)),Ie=.75;return Gt+Nt>=At-Ie&&Gt+Nt<=At+Ie},pt=function(ze){var tt=T(ze),St=tt.maxX,lt=tt.minX,Gt=tt.maxY,Nt=tt.minY;return{x:lt,y:Nt,width:St-lt,height:Gt-Nt}},Et=function(ze){for(var tt=[],St=0;St0)return!0}break}}return!1},Wt=function(ze,tt){var St,lt=M.Yq.None,Gt=-1,Nt={index:-1,pointIndex:-1,lineIndex:-1};if(!pe(ze)||tt.hidden)return{focusEleType:lt,focusEleIndex:Gt,focusPolygonInfo:Nt};if((St=tt.keypoints)!==null&&St!==void 0&&St.points)for(var At=tt.keypoints.points,Ie=0;Ie-1)return Nt.index=$t,Nt.pointIndex=Zt,{focusEleType:M.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:Nt}}for(var qt=0;qt-1)return Nt.index=qt,Nt.lineIndex=xn,{focusEleType:M.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:Nt}}var pn=qe.findIndex(function(Gn){return Ge(Gn,{x:ze.elementX,y:ze.elementY},M.Yq.Polygon)});if(pn>-1)return Nt.index=pn,{focusEleType:M.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:Nt}}return tt.rect&&Ge(ge(tt.rect,{x:8,y:8}),{x:ze.elementX,y:ze.elementY},M.Yq.Rect)?(lt=M.Yq.Rect,Gt=0,{focusEleType:lt,focusEleIndex:Gt,focusPolygonInfo:Nt}):{focusEleType:lt,focusEleIndex:Gt,focusPolygonInfo:Nt}},$e=function(ze,tt,St,lt){var Gt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!0};if(!pe(tt))return-1;if(lt[St]&&Gt(lt[St])&&ft(tt,lt[St],ze))return St;for(var Nt=lt.length-1;Nt>=0;Nt--)if(Gt(lt[Nt])&&ft(tt,lt[Nt],ze))return Nt;return-1},Xe=function(ze,tt,St){var lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(!pe(tt))return[];for(var Gt=[],Nt=St.length-1;Nt>=0;Nt--)lt(St[Nt])&&ft(tt,St[Nt],ze)&&Gt.push(Nt);return Gt},nt=function(yt){return yt.TOP="TOP",yt.BOTTOM="BOTTOM",yt.LEFT="LEFT",yt.RIGHT="RIGHT",yt.TOP_RIGHT="TOP_RIGHT",yt.TOP_LEFT="TOP_LEFT",yt.BOTTOM_RIGHT="BOTTOM_RIGHT",yt.BOTTOM_LEFT="BOTTOM_LEFT",yt.CENTER="CENTER",yt}({}),Ke=function(ze){return Math.floor(ze)+.5},ye=function(ze){return{x:Ke(ze.x),y:Ke(ze.y)}},ne=function(ze){var tt={x:ze.x,y:ze.y},St={x:ze.x+ze.width,y:ze.y+ze.height},lt=ye(tt),Gt=ye(St);return{x:lt.x,y:lt.y,width:Gt.x-lt.x,height:Gt.y-lt.y}},H=function(ze){return[{type:nt.TOP_LEFT,position:{x:ze.x,y:ze.y}},{type:nt.TOP,position:{x:ze.x+.5*ze.width,y:ze.y}},{type:nt.TOP_RIGHT,position:{x:ze.x+ze.width,y:ze.y}},{type:nt.LEFT,position:{x:ze.x,y:ze.y+.5*ze.height}},{type:nt.RIGHT,position:{x:ze.x+ze.width,y:ze.y+.5*ze.height}},{type:nt.BOTTOM_LEFT,position:{x:ze.x,y:ze.y+ze.height}},{type:nt.BOTTOM,position:{x:ze.x+.5*ze.width,y:ze.y+ze.height}},{type:nt.BOTTOM_RIGHT,position:{x:ze.x+ze.width,y:ze.y+ze.height}}]},R=function(ze,tt){return s()({x:ze.x-.5*tt.width,y:ze.y-.5*tt.height},tt)},P=function(ze,tt){for(var St=H(ze),lt=0;ltSt.elementW?St.elementW:St.elementX,At=St.elementY<0?0:St.elementY>St.elementH?St.elementH:St.elementY,Ie={x:Nt,y:At};switch(lt){case nt.RIGHT:Ie.y=ze.y+ze.height;break;case nt.BOTTOM:Ie.x=ze.x+ze.width;break;case nt.LEFT:Ie.y=ze.y;break;case nt.TOP:Ie.x=ze.x;break}return D(Gt,Ie,{width:St.elementW,height:St.elementH})},ie=function(ze,tt,St){var lt=ze.width,Gt=ze.height,Nt=tt.topLeftPoint,At=tt.mousePoint,Ie=St.elementX-At.x,Se=St.elementY-At.y,bt=Nt.x+Ie,jt=Nt.y+Se;return{x:bt<0?0:bt+lt>St.elementW?St.elementW-lt:bt,y:jt<0?0:jt+Gt>St.elementH?St.elementH-Gt:jt,width:lt,height:Gt}},me=function(ze,tt,St){var lt=tt.mousePoint,Gt=St.elementX,Nt=St.elementY,At=St.elementW,Ie=St.elementH,Se=T(ze),bt=Se.minX,jt=Se.minY,He=Se.maxX,qe=Se.maxY,$t=Gt-lt.x,Zt=Nt-lt.y;$t=$t+He>At?At-He:$t+bt<0?0:$t,Zt=Zt+qe>Ie?Ie-qe:Zt+jt<0?0:Zt;var qt=ze.map(function(un){return{x:un.x+$t,y:un.y+Zt}});return qt},je=function(ze){var tt=ze.elementX,St=ze.elementY;return{x:tt<0?0:tt>ze.elementW?ze.elementW:tt,y:St<0?0:St>ze.elementH?ze.elementH:St}},Ee=function(ze){return!(!(0,m.isNumber)(ze.x)||!(0,m.isNumber)(ze.y)||!(0,m.isNumber)(ze.width)||!(0,m.isNumber)(ze.height)||ze.x===0&&ze.y===0&&ze.width===0&&ze.height===0)},Me=function(ze){return ze.maskRle?M.gr.Mask:ze.alpha?M.gr.Matting:ze.keypoints?M.gr.Skeleton:ze.polygon?M.gr.Polygon:ze.point?M.gr.Point:ze.rect&&Ee(ze.rect)?M.gr.Rectangle:ze.polyline?M.gr.Polyline:M.gr.Custom},We=function(ze,tt,St){var lt=ze.group.map(function(Gt){return Gt.reduce(function(Nt,At){var Ie=At.x,Se=At.y,bt=N([Ie,Se],tt,St);return Nt.concat([bt.x,bt.y])},[])});return lt},re=function(ze,tt,St){var lt=We(ze,tt,St),Gt=lt.map(function(Nt){return Nt.join(",")}).join("/")||"";return Gt},se=function(ze,tt,St){var lt={x:ze.x-tt.x,y:ze.y-tt.y},Gt={x:St.x-tt.x,y:St.y-tt.y},Nt=Gt.x*Gt.x+Gt.y*Gt.y,At=lt.x*Gt.x+lt.y*Gt.y,Ie=At/Nt;return Ie<0||isNaN(Ie)?Ie=0:Ie>1&&(Ie=1),{x:tt.x+Gt.x*Ie,y:tt.y+Gt.y*Ie}},J=function(ze,tt){return{x:(ze.x+tt.x)/2,y:(ze.y+tt.y)/2}},de=function(ze){var tt=ze.x,St=ze.y,lt=ze.width,Gt=ze.height,Nt={x:tt,y:St},At={x:tt+lt,y:St},Ie={x:tt,y:St+Gt},Se={x:tt+lt,y:St+Gt},bt={x:tt+lt/2,y:St},jt={x:tt+lt/2,y:St+Gt},He={x:tt,y:St+Gt/2},qe={x:tt+lt,y:St+Gt/2},$t={x:tt+lt/2,y:St+Gt/2};return[Nt,At,Ie,Se,bt,jt,He,qe,$t]},xe=function(ze,tt){var St=T(ze),lt=T(tt);if(lt.minX>=St.maxX||lt.maxX<=St.minX||lt.minY>=St.maxY||lt.maxY<=St.minY)return!1;var Gt=_createForOfIteratorHelper(ze),Nt;try{for(Gt.s();!(Nt=Gt.n()).done;){var At=Nt.value;if(!Ge(tt,At,EElementType.Polygon))return!1}}catch(Ie){Gt.e(Ie)}finally{Gt.f()}return!0},ce=function(ze){for(var tt=[],St=0;Stlt&&(0,m.isEqual)((0,m.omitBy)(bt,m.isUndefined),(0,m.omitBy)(Se[lt],m.isUndefined))?qe=At:!He&&At.type===M.gr.Mask&&qe.maskRle&&At.labelId!==bt.labelId&&(qe.maskCanvasElement=(0,S.ei)(qe.maskRle,Gt,At.color)),s()(s()({},qe),{},{type:At.type,labelId:At.labelId,hidden:At.hidden,color:At.color,customStyles:At.customStyles,attributes:At.attributes,status:At.status,frameEmpty:He})})}),Nt},xt=function(ze){var tt,St;if(ze.activeObjectIndex>=0&&(tt=ze.objectList)!==null&&tt!==void 0&&tt[ze.activeObjectIndex]&&!((St=ze.objectList)!==null&&St!==void 0&&St[ze.activeObjectIndex].frameEmpty)){var lt;ze.creatingObject=_objectSpread(_objectSpread({},ze.creatingObject),(lt=ze.objectList)===null||lt===void 0?void 0:lt[ze.activeObjectIndex]);return}ze.prompt={},ze.creatingObject=void 0},Ht=function(ze,tt,St){var lt=ze.x,Gt=ze.y,Nt=tt.width,At=tt.height,Ie=St.elementW,Se=St.elementH;if(lt>Ie||Gt>Se||lt+Nt<=0||Gt+At<=0)return{xmin:0,ymin:0,xmax:0,ymax:0};var bt={x:Math.max(0,lt),y:Math.max(0,Gt)},jt={x:Math.min(lt+Nt,Ie),y:Math.min(Gt+At,Se)},He={x:ze.x,y:ze.y},qe=st(bt,He),$t=qe.x,Zt=qe.y,qt=st(jt,He),un=qt.x,xn=qt.y;return{xmin:$t,ymin:Zt,xmax:un,ymax:xn}},Ot=function(ze){for(var tt=ze.getContext("2d",{willReadFrequently:!0}),St=tt.getImageData(0,0,ze.width,ze.height),lt=St.data,Gt=St.width,Nt=St.height,At=Gt,Ie=Nt,Se=0,bt=0,jt=0,He=0;He0){var $t=He/4%Gt,Zt=Math.floor(He/4/Gt);jt++,At=Math.min(At,$t),Ie=Math.min(Ie,Zt),Se=Math.max(Se,$t),bt=Math.max(bt,Zt)}}var qt={xmin:At,ymin:Ie,xmax:Se,ymax:bt};return{area:jt,bbox:qt}},wt=function(ze){var tt,St;if(!ze||ze.length<2||((tt=ze[0])===null||tt===void 0?void 0:tt.length)!==((St=ze[1])===null||St===void 0?void 0:St.length))return[];for(var lt=c()(ze,2),Gt=lt[0],Nt=lt[1],At=[],Ie=0;Ie3&&arguments[3]!==void 0?arguments[3]:"#111111",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5?arguments[5]:void 0,O=V.getContext("2d");O.save(),O.strokeStyle=X,O.lineWidth=W,O.lineCap="round",O.beginPath(),x&&O.setLineDash(x),O.moveTo(q.x,q.y),O.lineTo(le.x+1,le.y+1),O.stroke(),O.restore()}function h(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#111111",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,W=arguments.length>4?arguments[4]:void 0,x=V.getContext("2d");x.save(),x.strokeStyle=le,x.lineWidth=X,x.lineCap="round",x.lineJoin="round",W&&x.setLineDash(W),x.beginPath(),x.moveTo(q[0].x,q[0].y);for(var O=1,_=q.length;O<_;O++)x.lineTo(q[O].x,q[O].y);x.stroke(),x.restore()}var S=function(q,le){return{x:q.x+(le.x-q.x)/2,y:q.y+(le.y-q.y)/2}};function w(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#111111",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:20,W=arguments.length>4?arguments[4]:void 0,x=V.getContext("2d");x.save(),x.strokeStyle=le,x.lineWidth=X,x.lineCap="round",x.lineJoin="round",W&&x.setLineDash(W),x.beginPath();var O=q[0],_=q[1];x.moveTo(O.x,O.y);for(var U=1,A=q.length;U2&&arguments[2]!==void 0?arguments[2]:"#fff",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,W=arguments.length>4?arguments[4]:void 0,x=arguments.length>5?arguments[5]:void 0;if(V){var O=V.getContext("2d");O.save(),O.strokeStyle=le,O.lineWidth=X,O.beginPath(),W&&O.setLineDash(W),O.rect(q.x,q.y,q.width,q.height),O.stroke(),x&&(O.fillStyle=x,O.fill()),O.restore()}}function F(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#fff";if(V){var X=V.getContext("2d");X.save(),X.fillStyle=le,X.beginPath(),X.rect(q.x,q.y,q.width,q.height),X.fill(),X.restore()}}function Z(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#000",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5,W=V.getContext("2d");W.save(),W.fillStyle=le,W.globalAlpha=X,W.fillRect(0,0,V.width,V.height),W.globalCompositeOperation="destination-out",W.globalAlpha=1,W.fillRect(q.x,q.y,q.width,q.height),W.restore()}function N(V){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0},le=arguments.length>2?arguments[2]:void 0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1;if(V){var x=V.getContext("2d");x.save(),x.strokeStyle=X,x.lineWidth=W,x.beginPath();var O=q.x,_=q.y;x.moveTo(le[0].x+O,le[0].y+_);for(var U=1;U1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0},le=arguments.length>2?arguments[2]:void 0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5?arguments[5]:void 0;if(V){var O=V.getContext("2d");O.save(),O.strokeStyle=X,O.lineWidth=W,x&&O.setLineDash(x),O.beginPath();var _=q.x,U=q.y;O.moveTo(le[0].x+_,le[0].y+U);for(var A=1;A2&&arguments[2]!==void 0?arguments[2]:"#fff",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5?arguments[5]:void 0;if(V){var O=V.getContext("2d");O.save(),O.fillStyle=le,O.strokeStyle=X,O.lineWidth=W,x&&O.setLineDash(x),O.beginPath(),O.moveTo(q[0].x,q[0].y);for(var _=1;_0&&O.stroke(),O.fill(),O.restore()}}function T(V,q,le,X){var W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#ffffff",x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,O=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"center",_=V.getContext("2d");_.save(),_.fillStyle=W,_.textAlign=O,_.textBaseline="top",_.font=(x?"bold ":"")+le+"px Arial",_.fillText(q,X.x,X.y),_.restore()}function j(V,q,le){var X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#ffffff",W=arguments.length>4?arguments[4]:void 0,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#000",O=V.getContext("2d");O.save();var _=o(0),U=o(360);O.lineWidth=W||0,O.strokeStyle=x,O.fillStyle=X,O.beginPath(),O.arc(q.x,q.y,le,_,U,!1),O.stroke(),O.fill(),O.restore()}function K(V,q,le,X,W){var x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,O=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"#ffffff",_=V.getContext("2d"),U=o(X),A=o(W);_.save(),_.strokeStyle=O,_.lineWidth=x,_.beginPath(),_.arc(q.x,q.y,le,U,A,!1),_.stroke(),_.restore()}function k(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#fff",x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1,O=arguments.length>6?arguments[6]:void 0,_=V.getContext("2d");_.save(),_.fillStyle=X,_.strokeStyle=W,_.lineWidth=x,_.lineCap="round",_.lineJoin="round",O&&_.setLineDash(O),_.beginPath(),_.moveTo(q[0].x,q[0].y);for(var U=1;U0&&_.stroke(),_.fill()),_.restore()}function te(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#111111",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,O=arguments.length>6?arguments[6]:void 0,_=V.getContext("2d");_.save(),_.strokeStyle=X,_.lineWidth=x,_.lineCap="round",_.lineJoin="round",_.beginPath(),O&&_.setLineDash(O);var U=q[0],A=q[1];_.moveTo(U.x,U.y);for(var G=1,fe=q.length;G0&&(_.globalCompositeOperation="destination-out",_.strokeStyle=X,_.stroke(),_.strokeStyle=(0,t.a7)(X,W),_.globalCompositeOperation="source-over",_.stroke()):(_.globalCompositeOperation="destination-out",_.stroke()),_.restore()}},28638:function(b,y,e){"use strict";e.d(y,{Z:function(){return re}});var a=e(39800),t=e(97375),o=e(2556),s=e(12562),n=e(33010),d=e(53357),l=e(58757),c=e(60698),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},g=m,M=e(17202),h=function(J,de){return l.createElement(M.Z,(0,c.Z)({},J,{ref:de,icon:g}))},S=l.forwardRef(h),w=e(59504),C=e(35667),F=function(J){var de=J.categories,xe=J.filterCategoryName,ce=J.onSelectFilter,Le=J.onClearFilter;return(0,C.jsxs)("div",{className:"dds-quicklabel-image-filter",children:[(0,C.jsx)("div",{children:(0,d._w)("quicklabel.imageFilter")}),(0,C.jsx)(w.Z,{style:{width:150},showSearch:!0,placeholder:(0,d._w)("quicklabel.allCategories"),size:"middle",value:xe,onChange:ce,popupClassName:"filter-options-popup",onClick:function(we){return we.stopPropagation()},onKeyUp:function(we){return we.stopPropagation()},onInputKeyDown:function(we){we.code!=="Enter"&&we.stopPropagation()},dropdownRender:function(we){return(0,C.jsxs)(C.Fragment,{children:[we,(0,C.jsx)(s.ZP,{type:"text",icon:(0,C.jsx)(S,{}),onClick:Le,children:(0,d._w)("quicklabel.clearFilter")})]})},children:de==null?void 0:de.map(function(Oe){return(0,C.jsx)(w.Z.Option,{value:Oe.name,children:Oe.name},Oe.name)})})]})},Z=F,N=e(88205),L=e.n(N),$=e(18695),D=function(J){var de=J.images,xe=J.selected,ce=J.onImageSelected,Le=(0,l.useState)(0),Oe=L()(Le,2),we=Oe[0],Ne=Oe[1],st=120,et=(0,l.useCallback)(function(){var ke=document.getElementById("image-options-container");if(ke){var Be=ke.offsetHeight||0;Ne(Be-56)}},[]);(0,l.useEffect)(function(){return et(),window.addEventListener("resize",et),function(){window.removeEventListener("resize",et)}},[et]);var Ye=function(Be){Be<0||Be>=de.length||ce(Be)};return(0,C.jsx)("div",{id:"image-options-container",className:"dds-quicklabel-options-list",children:(0,C.jsx)($.Z,{className:"dds-quicklabel-options-list-virtual",data:de,height:we,fullHeight:!0,itemHeight:st,itemKey:"id",children:function(Be,it){var Ve=it===xe?"dds-quicklabel-options-list-image-selected":"";return(0,C.jsx)("div",{children:(0,C.jsx)("img",{className:"dds-quicklabel-options-list-image ".concat(Ve),src:Be.url,onClick:function(){return Ye(it)}},Be.id)})}})})},T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},j=T,K=function(J,de){return l.createElement(M.Z,(0,c.Z)({},J,{ref:de,icon:j}))},k=l.forwardRef(K),te=e(62109),V=e(15618),q=e(51830),le=e(24454),X=e.n(le),W=e(34485),x=e.n(W),O=e(88479),_=e.n(O),U=e(56592),A=e.n(U),G=e(84045),fe=e(79233),pe=e(23671),ge=e(68716),be=e(8851),Te=function(se,J){J===void 0&&(J={});var de=(0,pe.Z)(J),xe=(0,l.useRef)();(0,be.Z)(function(){var ce=(0,ge.n)(se);if(ce!=null&&ce.addEventListener){var Le=function(Ye,ke){var Be=Ye.getData("text/uri-list"),it=Ye.getData("custom");if(it&&de.current.onDom){var Ve=it;try{Ve=JSON.parse(it)}catch(xt){Ve=it}de.current.onDom(Ve,ke);return}if(Be&&de.current.onUri){de.current.onUri(Be,ke);return}if(Ye.files&&Ye.files.length&&de.current.onFiles){de.current.onFiles(Array.from(Ye.files),ke);return}Ye.items&&Ye.items.length&&de.current.onText&&Ye.items[0].getAsString(function(xt){de.current.onText(xt,ke)})},Oe=function(Ye){var ke,Be;Ye.preventDefault(),Ye.stopPropagation(),xe.current=Ye.target,(Be=(ke=de.current).onDragEnter)===null||Be===void 0||Be.call(ke,Ye)},we=function(Ye){var ke,Be;Ye.preventDefault(),(Be=(ke=de.current).onDragOver)===null||Be===void 0||Be.call(ke,Ye)},Ne=function(Ye){var ke,Be;Ye.target===xe.current&&((Be=(ke=de.current).onDragLeave)===null||Be===void 0||Be.call(ke,Ye))},st=function(Ye){var ke,Be;Ye.preventDefault(),Le(Ye.dataTransfer,Ye),(Be=(ke=de.current).onDrop)===null||Be===void 0||Be.call(ke,Ye)},et=function(Ye){var ke,Be;Le(Ye.clipboardData,Ye),(Be=(ke=de.current).onPaste)===null||Be===void 0||Be.call(ke,Ye)};return ce.addEventListener("dragenter",Oe),ce.addEventListener("dragover",we),ce.addEventListener("dragleave",Ne),ce.addEventListener("drop",st),ce.addEventListener("paste",et),function(){ce.removeEventListener("dragenter",Oe),ce.removeEventListener("dragover",we),ce.removeEventListener("dragleave",Ne),ce.removeEventListener("drop",st),ce.removeEventListener("paste",et)}}},[],se)},Ge=Te,Je=e(39378),Qe=Object.defineProperty,pt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Wt=(se,J,de)=>J in se?Qe(se,J,{enumerable:!0,configurable:!0,writable:!0,value:de}):se[J]=de,$e=(se,J)=>{for(var de in J||(J={}))Et.call(J,de)&&Wt(se,de,J[de]);if(pt)for(var de of pt(J))ft.call(J,de)&&Wt(se,de,J[de]);return se};const Xe=se=>l.createElement("svg",$e({viewBox:"0 0 91 75",fill:"none",xmlns:"http://www.w3.org/2000/svg"},se),l.createElement("path",{d:"M60.633.007C49.453-.22 37.923 6.255 34.76 20.864c-12.874-4.444-24.497 4.32-23.29 18.315C4.735 41.932 0 48.587 0 56.409 0 66.709 8.199 75 18.383 75h22.33c-.005-6.26-.018-18.818-.018-21.197l-5.237 1.919c-3.8 1.656-6.605-3.183-3.352-6.195l9.909-9.739c2.263-2.288 4.966-2.026 6.97 0l9.909 9.739c3.253 3.012.447 7.85-3.352 6.195l-5.237-1.92V75h22.312C82.801 75 91 66.708 91 56.41c0-7.58-4.45-14.06-10.855-16.96C92.558 14.977 76.972.336 60.633.006Z",fill:"#B9CEFF"}),l.createElement("path",{d:"M60.633.004c-.623-.013-1.306.009-1.93.037-14.278 22.757 7.788 39.403 21.442 39.403C92.558 14.974 76.972.334 60.633.004Z",fill:"#739EFF"}));var nt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTEgNzUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYwLjYzMy4wMDdDNDkuNDUzLS4yMiAzNy45MjMgNi4yNTUgMzQuNzYgMjAuODY0Yy0xMi44NzQtNC40NDQtMjQuNDk3IDQuMzItMjMuMjkgMTguMzE1QzQuNzM1IDQxLjkzMiAwIDQ4LjU4NyAwIDU2LjQwOSAwIDY2LjcwOSA4LjE5OSA3NSAxOC4zODMgNzVoMjIuMzNjLS4wMDUtNi4yNi0uMDE4LTE4LjgxOC0uMDE4LTIxLjE5N2wtNS4yMzcgMS45MTljLTMuOCAxLjY1Ni02LjYwNS0zLjE4My0zLjM1Mi02LjE5NWw5LjkwOS05LjczOWMyLjI2My0yLjI4OCA0Ljk2Ni0yLjAyNiA2Ljk3IDBsOS45MDkgOS43MzljMy4yNTMgMy4wMTIuNDQ3IDcuODUtMy4zNTIgNi4xOTVsLTUuMjM3LTEuOTJWNzVoMjIuMzEyQzgyLjgwMSA3NSA5MSA2Ni43MDggOTEgNTYuNDFjMC03LjU4LTQuNDUtMTQuMDYtMTAuODU1LTE2Ljk2QzkyLjU1OCAxNC45NzcgNzYuOTcyLjMzNiA2MC42MzMuMDA2WiIgZmlsbD0iI0I5Q0VGRiIvPjxwYXRoIGQ9Ik02MC42MzMuMDA0Yy0uNjIzLS4wMTMtMS4zMDYuMDA5LTEuOTMuMDM3LTE0LjI3OCAyMi43NTcgNy43ODggMzkuNDAzIDIxLjQ0MiAzOS40MDNDOTIuNTU4IDE0Ljk3NCA3Ni45NzIuMzM0IDYwLjYzMy4wMDRaIiBmaWxsPSIjNzM5RUZGIi8+PC9zdmc+",Ke=e(45060),ye=e(23605),ne=e(95073),H=e(87608),R=e.n(H),P=function(J){var de=J.files,xe=J.fileType,ce=J.onRemoveFile,Le=(0,l.useRef)(null),Oe=(0,ne.Z)(Le),we=Oe!=null&&Oe.width&&Oe.width>800?8:5,Ne=(0,l.useMemo)(function(){return(0,Je.chunk)(de,we).map(function(Ot,wt){return{index:wt,rowImages:Ot}})},[de,we]),st=8,et=18,Ye=.75,ke=.95,Be=30,it=(0,l.useMemo)(function(){return Oe!=null&&Oe.width?((Oe==null?void 0:Oe.width)-et*2-(we-1)*st)/we:0},[Oe==null?void 0:Oe.width,we,st]),Ve=(0,l.useMemo)(function(){return it*ke},[it,ke]),xt=(0,l.useMemo)(function(){return Ve*Ye},[Ve,Ye]),Ht=(0,l.useMemo)(function(){return xt+Be+16},[xt,Be]);return(0,C.jsx)("div",{ref:Le,className:"dds-upload-list",children:(0,C.jsx)($.Z,{className:"virtual-list",data:Ne,height:(Oe==null?void 0:Oe.height)||0,fullHeight:!0,itemHeight:Ht,itemKey:"index",children:function(wt,_t){return(0,C.jsx)("div",{className:"row-container",style:{gap:st,padding:"".concat(st,"px ").concat(et,"px")},children:wt.rowImages.map(function(yt,ze){return(0,C.jsxs)("div",{className:R()("preview-container",{"preview-container-success":yt.status==="success","preview-container-error":yt.status==="error"}),style:{width:it},children:[xe==="video"?(0,C.jsx)("video",{className:"file-preview",src:yt.url,style:{width:Ve,height:xt}}):(0,C.jsx)("img",{className:"file-preview",src:yt.url,style:{width:Ve,height:xt}}),(0,C.jsx)("div",{className:"remove-button",children:(0,C.jsx)(s.ZP,{icon:(0,C.jsx)(ye.Z,{}),shape:"circle",danger:!0,onClick:function(St){St.stopPropagation(),ce(_t*we+ze)}})}),(0,C.jsx)("div",{className:"file-name",children:yt.name})]},yt.name)})},_t)}})})},ae=P,Q=function(J){var de=J.fileList,xe=J.setFileList,ce=J.acceptTypes,Le=J.maxCount,Oe=J.maxSize,we=J.maxDuratuion,Ne=J.limitRemoveFile,st=J.fileType,et=(0,d.bU)(),Ye=et.localeText,ke=(0,l.useState)(!1),Be=L()(ke,2),it=Be[0],Ve=Be[1],xt=(0,l.useState)(!1),Ht=L()(xt,2),Ot=Ht[0],wt=Ht[1],_t=(0,l.useRef)(!1),yt=(0,l.useRef)(null),ze=ce?ce.join(", "):void 0,tt=function(){var Nt=A()(X()().mark(function At(Ie){var Se,bt,jt,He,qe;return X()().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:Ve(!0),Se=[],bt=_()(Ie),Zt.prev=3,He=X()().mark(function qt(){var un,xn,pn,Gn;return X()().wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:if(un=jt.value,xn=0,pn=0,Gn=0,!(Oe&&un.size&&un.size/1024/1024>Oe)){ur.next=4;break}return ur.abrupt("return","continue");case 4:if(!(Le&&Se.length+de.length>Le-1)){ur.next=6;break}return ur.abrupt("return","continue");case 6:if(!de.find(function(br){return br.name===un.name})){ur.next=8;break}return ur.abrupt("return","continue");case 8:Se.push({id:un.name,name:un.name,url:URL.createObjectURL(un),originFileObj:un,frameCount:xn,frameRate:pn,duration:Gn});case 9:case"end":return ur.stop()}},qt)}),bt.s();case 6:if((jt=bt.n()).done){Zt.next=13;break}return Zt.delegateYield(He(),"t0",8);case 8:if(qe=Zt.t0,qe!=="continue"){Zt.next=11;break}return Zt.abrupt("continue",11);case 11:Zt.next=6;break;case 13:Zt.next=18;break;case 15:Zt.prev=15,Zt.t1=Zt.catch(3),bt.e(Zt.t1);case 18:return Zt.prev=18,bt.f(),Zt.finish(18);case 21:Ve(!1),Se.length>0&&(xe([].concat(Se,x()(de))),G.ZP.success(Ye("dds-upload.tip.successLoad",{count:Se.length})));case 23:case"end":return Zt.stop()}},At,null,[[3,15,18,21]])}));return function(Ie){return Nt.apply(this,arguments)}}(),St=(0,l.useCallback)(function(Nt){if(!(Ne&&Ne(Nt))){var At=(0,Je.cloneDeep)(de);At.splice(Nt,1),xe(At)}},[de]),lt=function(At){_t.current=!1;var Ie=At.target.files?x()(At.target.files):[];Ie.length>0&&tt(Ie),wt(!1),At.target.value=""},Gt=(0,l.useCallback)(function(){var Nt;if(Le&&de.length>=Le){G.ZP.warning(Ye("dds-upload.tip.fileCountLimitMsg",{count:Le}));return}wt(!0),(Nt=yt.current)===null||Nt===void 0||Nt.click(),_t.current=!0,window.addEventListener("focus",function(){setTimeout(function(){_t.current&&wt(!1)},100)},{once:!0})},[de,Le]);return Ge(window.document.body,{onFiles:function(){var Nt=A()(X()().mark(function Ie(Se,bt){var jt;return X()().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!(Le&&de.length>=Le)){qe.next=3;break}return G.ZP.warning(Ye("dds-upload.tip.fileCountLimitMsg",{count:Le})),qe.abrupt("return");case 3:return qe.next=5,(0,Ke._q)(bt==null?void 0:bt.dataTransfer,ce);case 5:jt=qe.sent,tt(jt);case 7:case"end":return qe.stop()}},Ie)}));function At(Ie,Se){return Nt.apply(this,arguments)}return At}(),onDragEnter:function(){wt(!0)},onDrop:function(){wt(!1)},onDragLeave:function(){wt(!1)}}),(0,C.jsxs)("div",{className:"dds-upload",children:[(0,C.jsx)("input",{ref:yt,type:"file",accept:ze,multiple:!0,onChange:lt}),de.length<=0?(0,C.jsxs)("div",{className:R()("dds-upload-empty",{"dds-upload-draging":Ot}),onClick:Gt,children:[(0,C.jsx)(Xe,{}),(0,C.jsx)("p",{className:"dds-upload-title",children:Ye("dds-upload.title")}),(0,C.jsx)("p",{className:"dds-upload-text",children:Ye(st==="video"?"dds-upload.limit.type.video":"dds-upload.limit.type.image")})]}):(0,C.jsxs)("div",{className:R()("dds-upload-content",{"dds-upload-draging":Ot}),children:[(0,C.jsxs)("div",{className:"dds-upload-topbar",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"dds-upload-title",children:Ye("dds-upload.title")}),(0,C.jsx)("div",{className:"dds-upload-text",children:Ye(st==="video"?"dds-upload.limit.type.video":"dds-upload.limit.type.image")})]}),(0,C.jsx)(s.ZP,{type:"primary",onClick:Gt,children:Ye("dds-upload.upload")})]}),(0,C.jsxs)("div",{className:"dds-upload-content-list",children:[Le&&(0,C.jsxs)("div",{className:"dds-upload-content-list-count",children:[de.length," / ",Le]}),(0,C.jsx)(ae,{files:de,onRemoveFile:St,fileType:st})]})]}),it&&(0,C.jsx)(fe.Z,{size:"large",className:"dds-upload-loading",spinning:it,delay:500})]})},ie=Q,me=1e3,je=10,Ee=function(J){var de=J.open,xe=J.isInit,ce=J.fileList,Le=J.setFileList,Oe=J.onClickOk,we=J.onClickCancel,Ne=J.limitRemoveFile,st=J.okText,et=J.limitClose,Ye=J.uploadPreAnnot,ke=J.onChangePreAnnotFile,Be=J.onRemovePreAnnotFile;return(0,C.jsx)("div",{onMouseDown:function(Ve){return Ve.stopPropagation()},onMouseUp:function(Ve){return Ve.stopPropagation()},children:(0,C.jsxs)(te.Z,{title:(0,d._w)("quicklabel.title"),width:675,open:de,onOk:Oe,onCancel:we,okText:st,okButtonProps:{disabled:ce.length===0},cancelButtonProps:{hidden:et},closable:!et,destroyOnClose:!0,children:[(0,C.jsx)(V.Z,{message:(0,d._w)("quicklabel.formModal.attn"),description:(0,d._w)("quicklabel.formModal.tip"),type:"info",showIcon:!0}),(0,C.jsx)("div",{className:"dds-quicklabel-subtitle",children:(0,d._w)("quicklabel.formModal.importImages")}),(0,C.jsx)("div",{className:"dds-quicklabel-upload",children:(0,C.jsx)(ie,{fileList:ce,setFileList:Le,fileType:"image",acceptTypes:["image/png","image/jpeg","image/jpg"],limitRemoveFile:Ne,maxCount:me,maxSize:je})}),(0,C.jsx)(V.Z,{className:"dds-quicklabel-upload-tip",message:(0,d._w)("quicklabel.formModal.imageTips",{count:me,size:je}),type:"info",showIcon:!0}),xe&&(0,C.jsx)(q.Tn,{uploadFiles:Ye,onChangeFile:ke,onRemoveFile:Be,children:(0,C.jsx)(s.ZP,{icon:(0,C.jsx)(k,{}),className:"dds-quicklabel-upload-preannot-btn",children:(0,d._w)("quicklabel.formModal.importPreAnnots")})})]})})},Me=Ee,We=function(J){var de=J.images,xe=J.filterImages,ce=J.current,Le=J.categories,Oe=J.qsModalVisible,we=J.uploadFiles,Ne=J.uploadPreAnnot,st=J.filterCategoryName,et=J.setImages,Ye=J.setCurrent,ke=J.setCategories,Be=J.setQsModalVisible,it=J.setUploadFiles,Ve=J.limitRemoveFile,xt=J.onCancelUploadFiles,Ht=J.onConfirmUploadFiles,Ot=J.exportAnnotations,wt=J.onChangePreAnnotFile,_t=J.onRemovePreAnnotFile,yt=J.onSelectFilterCategory,ze=J.onClearFilterCategory;(0,l.useEffect)(function(){de.length<=0&&Be(!0)},[]),(0,o.Z)("uparrow",function(){Ye(Math.max(0,ce-1))},{exactMatch:!0}),(0,o.Z)("downarrow",function(){Ye(Math.min(ce+1,de.length-1))},{exactMatch:!0});var tt=function(lt,Gt){if(xe[ce]){var Nt=xe[ce].originalIndex;et(function(At){At[Nt]&&(At[Nt].objects=lt,At[Nt].width=Gt.width,At[Nt].height=Gt.height)})}};return(0,C.jsxs)("div",{className:"dds-quicklabel",children:[(0,C.jsxs)("div",{className:"dds-quicklabel-list",onMouseDown:function(lt){lt.stopPropagation()},onMouseUp:function(lt){lt.stopPropagation()},children:[(0,C.jsx)(s.ZP,{type:"primary",icon:(0,C.jsx)(a.Z,{}),onClick:function(){Be(!0)},children:(0,d._w)("quicklabel.setting")}),(0,C.jsx)(D,{images:xe,selected:ce,onImageSelected:function(lt){Ye(lt)}})]}),(0,C.jsx)("div",{className:"dds-quicklabel-workspace",children:(0,C.jsx)(n.kl,{isOldMode:!0,isSeperate:!0,visible:!0,mode:n.je.Edit,categories:Le,setCategories:ke,list:xe,current:ce,titleElements:[(0,C.jsx)(Z,{categories:Le,filterCategoryName:st,onSelectFilter:yt,onClearFilter:ze},"image-filters")],actionElements:[(0,C.jsx)(s.ZP,{type:"primary",onClick:Ot,children:(0,d._w)("quicklabel.export")},"export")],onAutoSave:tt,onCancel:function(){return t.history.push("/")}})}),(0,C.jsx)(Me,{open:Oe,isInit:de.length===0,fileList:we,setFileList:it,limitRemoveFile:Ve,okText:(0,d._w)("quicklabel.formModal.confirm"),onClickCancel:xt,onClickOk:Ht,limitClose:de.length<=0,uploadPreAnnot:Ne,onChangePreAnnotFile:wt,onRemovePreAnnotFile:_t})]})},re=We},51830:function(b,y,e){"use strict";e.d(y,{ii:function(){return Qe},ZJ:function(){return nt},mn:function(){return n},fL:function(){return h},Qs:function(){return Et},xA:function(){return F},Tn:function(){return se}});var a=e(79233),t=e(58757),o=e(35667),s=function(de){var xe=de.children,ce=de.active,Le=de.tip;return(0,o.jsx)(a.Z,{size:"large",spinning:ce,delay:500,style:{maxHeight:"none",opacity:.3},tip:Le,children:xe})},n=s,d=e(88205),l=e.n(d),c=e(74820),m=e(12562),g=function(J){return J.en="en-US",J.zh="zh-CN",J}({}),M=function(de){var xe=de.getLocale,ce=de.setLocale,Le=de.tooltipPlacement,Oe=Le===void 0?"right":Le,we=de.theme,Ne=we===void 0?"light":we,st=de.className,et=xe(),Ye=function(){var Ht=et===g.zh?g.en:g.zh;ce(Ht)},ke=(0,t.useMemo)(function(){return et===g.zh?["change-lang change-lang-".concat(Ne),"cur-lang cur-lang-".concat(Ne)]:["cur-lang cur-lang-".concat(Ne),"change-lang change-lang-".concat(Ne)]},[Ne,et]),Be=l()(ke,2),it=Be[0],Ve=Be[1];return(0,o.jsx)(c.Z,{placement:Oe,title:et===g.zh?"\u4E2D\u6587 / English":"English / \u4E2D\u6587",children:(0,o.jsx)(m.ZP,{type:"text",className:"dds-lang-selector ".concat(st),onClick:Ye,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:Ve,children:"\u4E2D"}),(0,o.jsx)("span",{className:it,children:"En"})]})})})},h=M,S=e(62109),w=e(12632),C=function(de){var xe=de.error,ce=de.componentStack,Le=de.resetError,Oe=function(){S.Z.error({title:xe.toString(),content:(0,o.jsx)("div",{style:{height:"60vh",overflowY:"scroll"},children:(0,o.jsx)("p",{children:ce})}),onOk:function(){},maskClosable:!0,width:"80vw"})};return(0,o.jsx)("div",{style:{position:"relative",height:"calc(100vh - 64px)",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"500",title:"Running Error",subTitle:"Sorry, something went wrong.",extra:[(0,o.jsx)(m.ZP,{type:"primary",onClick:Le,children:"Click here to reset"},"bt1"),(0,o.jsx)(m.ZP,{onClick:Oe,children:"Error Detail"},"bt2")]})})},F=C,Z=e(73267),N=e(94706),L=Object.defineProperty,$=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,j=(J,de,xe)=>de in J?L(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,K=(J,de)=>{for(var xe in de||(de={}))D.call(de,xe)&&j(J,xe,de[xe]);if($)for(var xe of $(de))T.call(de,xe)&&j(J,xe,de[xe]);return J};const k=J=>t.createElement("svg",K({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4.4c0-.22.18-.4.4-.4h1.2c.22 0 .4.18.4.4V6h3.6c.22 0 .4.18.4.4v1.2a.4.4 0 0 1-.4.4H18v1.6a.4.4 0 0 1-.4.4h-1.2a.4.4 0 0 1-.4-.4V4.4ZM2.4 6a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4V6.4a.4.4 0 0 0-.4-.4H2.4Zm8 10a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4v-1.2a.4.4 0 0 0-.4-.4H10.4Zm-8 0a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4H6v1.6c0 .22.18.4.4.4h1.2a.4.4 0 0 0 .4-.4v-5.2a.4.4 0 0 0-.4-.4H6.4a.4.4 0 0 0-.4.4V16H2.4Z",fill:"#434343"}));var te="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNiA0LjRjMC0uMjIuMTgtLjQuNC0uNGgxLjJjLjIyIDAgLjQuMTguNC40VjZoMy42Yy4yMiAwIC40LjE4LjQuNHYxLjJhLjQuNCAwIDAgMS0uNC40SDE4djEuNmEuNC40IDAgMCAxLS40LjRoLTEuMmEuNC40IDAgMCAxLS40LS40VjQuNFpNMi40IDZhLjQuNCAwIDAgMC0uNC40djEuMmMwIC4yMi4xOC40LjQuNGgxMS4yYS40LjQgMCAwIDAgLjQtLjRWNi40YS40LjQgMCAwIDAtLjQtLjRIMi40Wm04IDEwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRoMTEuMmEuNC40IDAgMCAwIC40LS40di0xLjJhLjQuNCAwIDAgMC0uNC0uNEgxMC40Wm0tOCAwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRINnYxLjZjMCAuMjIuMTguNC40LjRoMS4yYS40LjQgMCAwIDAgLjQtLjR2LTUuMmEuNC40IDAgMCAwLS40LS40SDYuNGEuNC40IDAgMCAwLS40LjRWMTZIMi40WiIgZmlsbD0iIzQzNDM0MyIvPjwvc3ZnPg==",V=Object.defineProperty,q=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,W=(J,de,xe)=>de in J?V(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,x=(J,de)=>{for(var xe in de||(de={}))le.call(de,xe)&&W(J,xe,de[xe]);if(q)for(var xe of q(de))X.call(de,xe)&&W(J,xe,de[xe]);return J};const O=J=>t.createElement("svg",x({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("path",{d:"M8.536 1.572H7.464c-.095 0-.143.048-.143.143v5.607h-5.32c-.096 0-.144.048-.144.143v1.072c0 .095.048.142.143.142h5.321v5.608c0 .095.048.142.143.142h1.072c.095 0 .142-.047.142-.142V8.679H14c.095 0 .143-.047.143-.142V7.465c0-.095-.048-.143-.143-.143H8.678V1.715c0-.095-.047-.143-.142-.143Z",fill:"#595959"}));var _="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguNTM2IDEuNTcySDcuNDY0Yy0uMDk1IDAtLjE0My4wNDgtLjE0My4xNDN2NS42MDdoLTUuMzJjLS4wOTYgMC0uMTQ0LjA0OC0uMTQ0LjE0M3YxLjA3MmMwIC4wOTUuMDQ4LjE0Mi4xNDMuMTQyaDUuMzIxdjUuNjA4YzAgLjA5NS4wNDguMTQyLjE0My4xNDJoMS4wNzJjLjA5NSAwIC4xNDItLjA0Ny4xNDItLjE0MlY4LjY3OUgxNGMuMDk1IDAgLjE0My0uMDQ3LjE0My0uMTQyVjcuNDY1YzAtLjA5NS0uMDQ4LS4xNDMtLjE0My0uMTQzSDguNjc4VjEuNzE1YzAtLjA5NS0uMDQ3LS4xNDMtLjE0Mi0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",U=Object.defineProperty,A=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(J,de,xe)=>de in J?U(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,ge=(J,de)=>{for(var xe in de||(de={}))G.call(de,xe)&&pe(J,xe,de[xe]);if(A)for(var xe of A(de))fe.call(de,xe)&&pe(J,xe,de[xe]);return J};const be=J=>t.createElement("svg",ge({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("path",{d:"M14.429 7.322H1.572a.143.143 0 0 0-.143.143v1.072c0 .078.064.142.143.142h12.857a.143.143 0 0 0 .143-.142V7.465a.143.143 0 0 0-.143-.143Z",fill:"#595959"}));var Te="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjQyOSA3LjMyMkgxLjU3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YxLjA3MmMwIC4wNzguMDY0LjE0Mi4xNDMuMTQyaDEyLjg1N2EuMTQzLjE0MyAwIDAgMCAuMTQzLS4xNDJWNy40NjVhLjE0My4xNDMgMCAwIDAtLjE0My0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",Ge=e(53357),Je=function(de){var xe=(0,Ge.bU)(),ce=xe.localeText,Le=de.cloumnCount,Oe=de.maxCloumnCount,we=Oe===void 0?8:Oe,Ne=de.onColumnCountChange,st=de.getPopupContainer;return(0,o.jsx)(Z.Z,{getPopupContainer:st,dropdownRender:function(){return(0,o.jsxs)("div",{className:"dds-column-settings-panel",children:[(0,o.jsx)("div",{className:"item-title",children:ce("ColumnSettings.title")}),(0,o.jsxs)("div",{className:"item-content",children:[(0,o.jsx)(N.Z,{min:1,max:we,onChange:function(ke){return Ne(ke)},value:Le,className:"slider"}),(0,o.jsxs)("div",{className:"num-box",children:[(0,o.jsx)(be,{onClick:function(){return Ne(!1)}}),(0,o.jsx)("div",{className:"num",children:Le}),(0,o.jsx)(O,{onClick:function(){return Ne(!0)}})]})]})]})},children:(0,o.jsx)("div",{className:"dds-column-settings-btn",children:(0,o.jsx)(k,{})})})},Qe=Je,pt=function(){return(0,o.jsx)("div",{style:{height:"100vh",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"404",title:(0,Ge._w)("MobileAlert.title"),subTitle:(0,Ge._w)("MobileAlert.subTitle")})})},Et=pt,ft=e(35910),Wt=e(32423),$e=e(39378),Xe=function(de){var xe=de.current,ce=de.size,Le=de.total,Oe=de.onPageChange,we=de.onPageSizeChange,Ne=(0,t.useState)(ce),st=l()(Ne,2),et=st[0],Ye=st[1],ke=(0,Ge.bU)(),Be=ke.localeText;return(0,o.jsxs)("div",{className:"dds-dynamic-pagination",children:[(0,o.jsx)(ft.Z,{current:xe,pageSize:ce,total:Le,showSizeChanger:!1,showQuickJumper:!0,onChange:function(Ve){return Oe(Ve)}}),(0,o.jsxs)("div",{className:"pagesize-wrap",children:[(0,o.jsx)("div",{className:"pagesize-label",children:Be("DynamicPagination.label")}),(0,o.jsx)(Wt.Z,{min:1,value:et,onChange:function(Ve){Ye(Number(Ve))},onBlur:function(Ve){(0,$e.isNaN)(Number(Ve.target.value))||Number(Ve.target.value)<=0?we(xe,1):we(xe,Number(Ve.target.value))},onPressEnter:function(Ve){Ve.target.blur(Ve)}})]})]})},nt=Xe,Ke=e(28638),ye=e(33010),ne=e(39875),H=e(23241),R=e(18624),P=Object.defineProperty,ae=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,me=(J,de,xe)=>de in J?P(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,je=(J,de)=>{for(var xe in de||(de={}))Q.call(de,xe)&&me(J,xe,de[xe]);if(ae)for(var xe of ae(de))ie.call(de,xe)&&me(J,xe,de[xe]);return J};const Ee=J=>t.createElement("svg",je({viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("g",{clipPath:"url(#upload_file_svg__a)"},t.createElement("path",{d:"m46.55 12.917-8.132-8.131A16.227 16.227 0 0 0 26.868.002H16.333C9.9 0 4.667 5.234 4.667 11.667v32.666C4.667 50.766 9.9 56 16.333 56h23.334c6.433 0 11.666-5.234 11.666-11.667V24.465c0-4.363-1.698-8.46-4.783-11.548Zm-3.3 3.3c.743.742 1.37 1.565 1.879 2.45H35a2.337 2.337 0 0 1-2.333-2.334V6.204c.884.509 1.71 1.137 2.45 1.879l8.131 8.131.003.003Zm3.417 28.116c0 3.86-3.141 7-7 7H16.333c-3.859 0-7-3.14-7-7V11.667c0-3.86 3.141-7 7-7h10.535c.38 0 .759.018 1.132.053v11.613c0 3.86 3.14 7 7 7h11.613c.035.374.054.752.054 1.132v19.868ZM36.65 33.79a2.33 2.33 0 0 1 0 3.3 2.327 2.327 0 0 1-1.65.683 2.327 2.327 0 0 1-1.65-.684l-3.017-3.017v10.262a2.334 2.334 0 0 1-4.666 0V34.071l-3.017 3.017a2.33 2.33 0 0 1-3.3 0 2.33 2.33 0 0 1 0-3.299l3.766-3.766c2.693-2.693 7.075-2.693 9.77 0l3.766 3.766h-.002Z",fill:"#739EFF"})),t.createElement("defs",null,t.createElement("clipPath",{id:"upload_file_svg__a"},t.createElement("path",{fill:"#fff",d:"M0 0h56v56H0z"}))));var Me="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYgNTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJtNDYuNTUgMTIuOTE3LTguMTMyLTguMTMxQTE2LjIyNyAxNi4yMjcgMCAwIDAgMjYuODY4LjAwMkgxNi4zMzNDOS45IDAgNC42NjcgNS4yMzQgNC42NjcgMTEuNjY3djMyLjY2NkM0LjY2NyA1MC43NjYgOS45IDU2IDE2LjMzMyA1NmgyMy4zMzRjNi40MzMgMC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veFile,Oe=de.children,we=(0,Ge.bU)(),Ne=we.localeText;return(0,o.jsx)(H.Z,{className:"dds-upload-pre-anno",maxCount:1,beforeUpload:function(){return!1},fileList:xe,onChange:ce,onRemove:Le,accept:".json",showUploadList:!0,children:Oe||(0,o.jsx)(R.Z,{children:(0,o.jsx)(R.Z.Meta,{avatar:(0,o.jsx)(ne.Z,{component:Ee}),title:Ne("dds-upload-pre-anno"),description:Ne("dds-upload-pre-anno.tip",{maxSize:We})})})})},se=re},28506:function(b,y,e){"use strict";e.d(y,{_:function(){return C},w:function(){return F}});var a=e(63900),t=e.n(a),o=e(88205),s=e.n(o),n=e(58757),d=e(86429),l=e(51129),c=e(74324),m=e(66682);const g=m,M={parseNumbers:!1,parseBooleans:!1},h={skipNull:!1,skipEmptyString:!1};var w=(Z,N)=>{var L,$;const{navigateMode:D="push",parseOptions:T,stringifyOptions:j}=N||{},K=Object.assign(Object.assign({},M),T),k=Object.assign(Object.assign({},h),j),te=g.useLocation(),V=(L=g.useHistory)===null||L===void 0?void 0:L.call(g),q=($=g.useNavigate)===null||$===void 0?void 0:$.call(g),le=(0,d.Z)(),X=(0,n.useRef)(typeof Z=="function"?Z():Z||{}),W=(0,n.useMemo)(()=>(0,c.parse)(te.search,K),[te.search]),x=(0,n.useMemo)(()=>Object.assign(Object.assign({},X.current),W),[W]),O=_=>{const U=typeof _=="function"?_(x):_;le(),V&&V[D]({hash:te.hash,search:(0,c.stringify)(Object.assign(Object.assign({},W),U),k)||"?"},te.state),q&&q({hash:te.hash,search:(0,c.stringify)(Object.assign(Object.assign({},W),U),k)||"?"},{replace:D==="replace",state:te.state})};return[x,(0,l.Z)(O)]};function C(Z){var N=Z.pageState,L=Z.onInitPageState,$=Z.onPageDidMount,D=Z.onPageWillUnmount,T=w({},{navigateMode:"replace"}),j=s()(T,2),K=j[0],k=j[1];(0,n.useEffect)(function(){if(L){var te={};try{te=K.pageState?JSON.parse(K.pageState):{}}catch(V){console.error("get urlPageState error: ",V)}L(te,K)}return $&&$(K),function(){D&&D()}},[]),(0,n.useEffect)(function(){k(t()(t()({},K),{},{pageState:JSON.stringify(N)}))},[N])}function F(){var Z=(0,n.useState)(window.innerWidth),N=s()(Z,2),L=N[0],$=N[1],D=(0,n.useState)(window.innerHeight),T=s()(D,2),j=T[0],K=T[1],k=function(){$(window.innerWidth),K(window.innerHeight)};return(0,n.useEffect)(function(){return window.addEventListener("resize",k),function(){window.removeEventListener("resize",k)}},[]),{width:L,height:j}}},41260:function(b,y,e){"use strict";e.d(y,{O:function(){return t},p:function(){return a}});var a=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Math.floor(s*Math.pow(10,n))/Math.pow(10,n)},t=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number(s.toFixed(n))}},45060:function(b,y,e){"use strict";e.d(y,{Gf:function(){return m},XV:function(){return c},_q:function(){return S},pz:function(){return C}});var a=e(88479),t=e.n(a),o=e(24454),s=e.n(o),n=e(56592),d=e.n(n),l=e(41260);function c(Z,N,L){var $=new Date(Z),D=$.getFullYear(),T=(0,l.p)($.getMonth()+1),j=(0,l.p)($.getDate()),K=(0,l.p)($.getHours()),k=(0,l.p)($.getMinutes()),te=(0,l.p)($.getSeconds()),V=(0,l.p)($.getMilliseconds(),3),q="".concat(D,"_").concat(T,"_").concat(j,"_").concat(K,"_").concat(k,"_").concat(te,"_").concat(V);return N&&(q="".concat(N,"_").concat(q)),L&&(q="".concat(q,".").concat(L)),q}function m(Z,N){var L=JSON.stringify(Z),$=new Blob([L],{type:"application/json"}),D=URL.createObjectURL($),T=document.createElement("a");T.href=D,T.download=N,document.body.appendChild(T),T.click(),document.body.removeChild(T),URL.revokeObjectURL(D)}var g=function(N){return new Promise(function(L,$){var D=new Image;D.src=N,D.onload=function(){L(D)},D.onerror=function(){$(D)}})};function M(Z,N,L){return h.apply(this,arguments)}function h(){return h=d()(s()().mark(function Z(N,L,$){return s()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",new Promise(function(j,K){if(N.isDirectory){var k=N.createReader();k.readEntries(function(){var te=d()(s()().mark(function V(q){var le;return s()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:le=0;case 1:if(!(le0)){le.next=25;break}K=t()(N.items),le.prev=7,K.s();case 9:if((k=K.n()).done){le.next=17;break}if(te=k.value,V=te.webkitGetAsEntry(),!(V!=null&&V.isDirectory)){le.next=15;break}return le.next=15,M(V,$,L);case 15:le.next=9;break;case 17:le.next=22;break;case 19:le.prev=19,le.t0=le.catch(7),K.e(le.t0);case 22:return le.prev=22,K.f(),le.finish(22);case 25:return le.abrupt("return",$);case 26:case"end":return le.stop()}},Z,null,[[7,19,22,25]])})),w.apply(this,arguments)}function C(Z){return F.apply(this,arguments)}function F(){return F=d()(s()().mark(function Z(N){return s()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",new Promise(function(D,T){var j=new Image;j.src=N,j.onload=function(){var K=j.width,k=j.height;D({width:K,height:k})},j.onerror=function(){T(new Error("Load Image Error"))}}));case 1:case"end":return $.stop()}},Z)})),F.apply(this,arguments)}},53357:function(b,y,e){"use strict";e.d(y,{Og:function(){return o},_w:function(){return t},bU:function(){return s}});var a=e(97375),t=function(d){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,a.formatMessage)({id:d},l)},o=a.FormattedMessage,s=function(){var d=(0,a.useIntl)(),l=function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return d.formatMessage({id:m},g)};return{localeText:l}}},23707:function(b,y,e){"use strict";e.d(y,{BQ:function(){return t},Oe:function(){return o},yS:function(){return s}});var a=e(97375),t=function(d){var l=new RegExp("(^|&)"+d+"=([^&]*)(&|$)","i"),c=window.location.search.substr(1).match(l);return c!==null?decodeURIComponent(c[2]):null},o=function(){var d=window.location.pathname.split("/");return d[d.length-1]},s=function(d){document.referrer.includes(d)?window.history.back():a.history.push(d)}},74324:function(b,y,e){"use strict";var a=e(88205).default,t=e(88479).default,o=e(16962).default,s=e(34485).default,n=e(75978),d=e(65140),l=e(96896),c=e(22475),m=function(T){return T==null};function g(D){switch(D.arrayFormat){case"index":return function(T){return function(j,K){var k=j.length;return K===void 0||D.skipNull&&K===null||D.skipEmptyString&&K===""?j:K===null?[].concat(s(j),[[S(T,D),"[",k,"]"].join("")]):[].concat(s(j),[[S(T,D),"[",S(k,D),"]=",S(K,D)].join("")])}};case"bracket":return function(T){return function(j,K){return K===void 0||D.skipNull&&K===null||D.skipEmptyString&&K===""?j:K===null?[].concat(s(j),[[S(T,D),"[]"].join("")]):[].concat(s(j),[[S(T,D),"[]=",S(K,D)].join("")])}};case"comma":case"separator":return function(T){return function(j,K){return K==null||K.length===0?j:j.length===0?[[S(T,D),"=",S(K,D)].join("")]:[[j,S(K,D)].join(D.arrayFormatSeparator)]}};default:return function(T){return function(j,K){return K===void 0||D.skipNull&&K===null||D.skipEmptyString&&K===""?j:K===null?[].concat(s(j),[S(T,D)]):[].concat(s(j),[[S(T,D),"=",S(K,D)].join("")])}}}}function M(D){var T;switch(D.arrayFormat){case"index":return function(j,K,k){if(T=/\[(\d*)\]$/.exec(j),j=j.replace(/\[\d*\]$/,""),!T){k[j]=K;return}k[j]===void 0&&(k[j]={}),k[j][T[1]]=K};case"bracket":return function(j,K,k){if(T=/(\[\])$/.exec(j),j=j.replace(/\[\]$/,""),!T){k[j]=K;return}if(k[j]===void 0){k[j]=[K];return}k[j]=[].concat(k[j],K)};case"comma":case"separator":return function(j,K,k){var te=typeof K=="string"&&K.includes(D.arrayFormatSeparator),V=typeof K=="string"&&!te&&w(K,D).includes(D.arrayFormatSeparator);K=V?w(K,D):K;var q=te||V?K.split(D.arrayFormatSeparator).map(function(le){return w(le,D)}):K===null?K:w(K,D);k[j]=q};default:return function(j,K,k){if(k[j]===void 0){k[j]=K;return}k[j]=[].concat(k[j],K)}}}function h(D){if(typeof D!="string"||D.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function S(D,T){return T.encode?T.strict?n(D):encodeURIComponent(D):D}function w(D,T){return T.decode?d(D):D}function C(D){return Array.isArray(D)?D.sort():o(D)==="object"?C(Object.keys(D)).sort(function(T,j){return Number(T)-Number(j)}).map(function(T){return D[T]}):D}function F(D){var T=D.indexOf("#");return T!==-1&&(D=D.slice(0,T)),D}function Z(D){var T="",j=D.indexOf("#");return j!==-1&&(T=D.slice(j)),T}function N(D){D=F(D);var T=D.indexOf("?");return T===-1?"":D.slice(T+1)}function L(D,T){return T.parseNumbers&&!Number.isNaN(Number(D))&&typeof D=="string"&&D.trim()!==""?D=Number(D):T.parseBooleans&&D!==null&&(D.toLowerCase()==="true"||D.toLowerCase()==="false")&&(D=D.toLowerCase()==="true"),D}function $(D,T){T=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},T),h(T.arrayFormatSeparator);var j=M(T),K=Object.create(null);if(typeof D!="string"||(D=D.trim().replace(/^[?#&]/,""),!D))return K;var k=t(D.split("&")),te;try{for(k.s();!(te=k.n()).done;){var V=te.value;if(V!==""){var q=l(T.decode?V.replace(/\+/g," "):V,"="),le=a(q,2),X=le[0],W=le[1];W=W===void 0?null:["comma","separator"].includes(T.arrayFormat)?W:w(W,T),j(w(X,T),W,K)}}}catch(pe){k.e(pe)}finally{k.f()}for(var x=0,O=Object.keys(K);x0}).join("&")},y.parseUrl=function(D,T){T=Object.assign({decode:!0},T);var j=l(D,"#"),K=a(j,2),k=K[0],te=K[1];return Object.assign({url:k.split("?")[0]||"",query:$(N(D),T)},T&&T.parseFragmentIdentifier&&te?{fragmentIdentifier:w(te,T)}:{})},y.stringifyUrl=function(D,T){T=Object.assign({encode:!0,strict:!0},T);var j=F(D.url).split("?")[0]||"",K=y.extract(D.url),k=y.parse(K,{sort:!1}),te=Object.assign(k,D.query),V=y.stringify(te,T);V&&(V="?".concat(V));var q=Z(D.url);return D.fragmentIdentifier&&(q="#".concat(S(D.fragmentIdentifier,T))),"".concat(j).concat(V).concat(q)},y.pick=function(D,T,j){j=Object.assign({parseFragmentIdentifier:!0},j);var K=y.parseUrl(D,j),k=K.url,te=K.query,V=K.fragmentIdentifier;return y.stringifyUrl({url:k,query:c(te,T),fragmentIdentifier:V},j)},y.exclude=function(D,T,j){var K=Array.isArray(T)?function(k){return!T.includes(k)}:function(k,te){return!T(k,te)};return y.pick(D,K,j)}},96896:function(b){"use strict";b.exports=function(y,e){if(!(typeof y=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[y];var a=y.indexOf(e);return a===-1?[y]:[y.slice(0,a),y.slice(a+e.length)]}},75978:function(b){"use strict";b.exports=function(y){return encodeURIComponent(y).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},60581:function(b,y,e){"use strict";e.d(y,{Il:function(){return o},Ov:function(){return s}});var a=e(58757),t=null,o=a.createContext({});function s(){return a.useContext(o)}function n(){var m=useLocation(),g=s(),M=g.clientRoutes,h=matchRoutes(M,m.pathname);return h||[]}function d(){var m,g=n().slice(-1),M=((m=g[0])===null||m===void 0?void 0:m.route)||{},h=M.element,S=_objectWithoutProperties(M,t);return S}function l(){var m=useRouteData(),g=s();return{data:g.serverLoaderData[m.route.id]}}function c(){var m=useRouteData(),g=s();return{data:g.clientLoaderData[m.route.id]}}},21325:function(b,y,e){"use strict";var a=e(23671),t=e(68716),o=e(8851);function s(n,d,l){l===void 0&&(l={});var c=(0,a.Z)(d);(0,o.Z)(function(){var m=(0,t.n)(l.target,window);if(m!=null&&m.addEventListener){var g=function(M){return c.current(M)};return m.addEventListener(n,g,{capture:l.capture,once:l.once,passive:l.passive}),function(){m.removeEventListener(n,g,{capture:l.capture})}}},[n,l.capture,l.once,l.passive],l.target)}y.Z=s},2556:function(b,y,e){"use strict";e.d(y,{Z:function(){return D}});var a=e(43112),t=e(23671),o=e(53807),s=e(68716),n=e(58757),d=e(8851),l=e(85466),c=e.n(l),m=function(T,j){return T===void 0&&(T=[]),j===void 0&&(j=[]),c()(T,j)},g=function(T,j,K){var k=(0,n.useRef)(),te=(0,n.useRef)(0);m(j,k.current)||(k.current=j,te.current+=1),(0,d.Z)(T,[te.current],K)},M=g,h=/(mac|iphone|ipod|ipad)/i.test(typeof navigator!="undefined"?navigator==null?void 0:navigator.platform:""),S=h,w={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:S?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},C={ctrl:function(T){return T.ctrlKey},shift:function(T){return T.shiftKey},alt:function(T){return T.altKey},meta:function(T){return T.type==="keyup"?w.meta.includes(T.keyCode):T.metaKey}};function F(T){var j=Object.keys(C).reduce(function(K,k){return C[k](T)?K+1:K},0);return[16,17,18,91,92].includes(T.keyCode)?j:j+1}function Z(T,j,K){var k,te;if(!T.key)return!1;if((0,o.hj)(j))return T.keyCode===j;var V=j.split("."),q=0;try{for(var le=(0,a.XA)(V),X=le.next();!X.done;X=le.next()){var W=X.value,x=C[W],O=w[W.toLowerCase()];(x&&x(T)||O&&O===T.keyCode)&&q++}}catch(_){k={error:_}}finally{try{X&&!X.done&&(te=le.return)&&te.call(le)}finally{if(k)throw k.error}}return K?q===V.length&&F(T)===V.length:q===V.length}function N(T,j){return(0,o.mf)(T)?T:(0,o.HD)(T)||(0,o.hj)(T)?function(K){return Z(K,T,j)}:Array.isArray(T)?function(K){return T.some(function(k){return Z(K,k,j)})}:function(){return!!T}}var L=["keydown"];function $(T,j,K){var k=K||{},te=k.events,V=te===void 0?L:te,q=k.target,le=k.exactMatch,X=le===void 0?!1:le,W=k.useCapture,x=W===void 0?!1:W,O=(0,t.Z)(j),_=(0,t.Z)(T);M(function(){var U,A,G,fe=(0,s.n)(q,window);if(fe){var pe=function(Ge){var Je,Qe=N(_.current,X);if(Qe(Ge))return(Je=O.current)===null||Je===void 0?void 0:Je.call(O,Ge)};try{for(var ge=(0,a.XA)(V),be=ge.next();!be.done;be=ge.next()){var Te=be.value;(G=fe==null?void 0:fe.addEventListener)===null||G===void 0||G.call(fe,Te,pe,x)}}catch(Ge){U={error:Ge}}finally{try{be&&!be.done&&(A=ge.return)&&A.call(ge)}finally{if(U)throw U.error}}return function(){var Ge,Je,Qe;try{for(var pt=(0,a.XA)(V),Et=pt.next();!Et.done;Et=pt.next()){var ft=Et.value;(Qe=fe==null?void 0:fe.removeEventListener)===null||Qe===void 0||Qe.call(fe,ft,pe,x)}}catch(Wt){Ge={error:Wt}}finally{try{Et&&!Et.done&&(Je=pt.return)&&Je.call(pt)}finally{if(Ge)throw Ge.error}}}}},[V],q)}var D=$},23671:function(b,y,e){"use strict";var a=e(58757);function t(o){var s=(0,a.useRef)(o);return s.current=o,s}y.Z=t},51129:function(b,y,e){"use strict";var a=e(58757),t=e(53807),o=e(8182);function s(n){o.Z&&((0,t.mf)(n)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof n)));var d=(0,a.useRef)(n);d.current=(0,a.useMemo)(function(){return n},[n]);var l=(0,a.useRef)();return l.current||(l.current=function(){for(var c=[],m=0;m-1&&(J=setTimeout(function(){M.delete(Me)},We)),M.set(Me,(0,a.pi)((0,a.pi)({},re),{timer:J}))},S=function(Me){return M.get(Me)},w=function(Me){if(Me){var We=Array.isArray(Me)?Me:[Me];We.forEach(function(re){return M.delete(re)})}else M.clear()},C=new Map,F=function(Me){return C.get(Me)},Z=function(Me,We){C.set(Me,We),We.then(function(re){return C.delete(Me),re}).catch(function(){C.delete(Me)})},N={},L=function(Me,We){N[Me]&&N[Me].forEach(function(re){return re(We)})},$=function(Me,We){return N[Me]||(N[Me]=[]),N[Me].push(We),function(){var se=N[Me].indexOf(We);N[Me].splice(se,1)}},D=function(Me,We){var re=We.cacheKey,se=We.cacheTime,J=se===void 0?5*60*1e3:se,de=We.staleTime,xe=de===void 0?0:de,ce=We.setCache,Le=We.getCache,Oe=(0,t.useRef)(),we=(0,t.useRef)(),Ne=function(et,Ye){ce?ce(Ye):h(et,J,Ye),L(et,Ye.data)},st=function(et,Ye){return Ye===void 0&&(Ye=[]),Le?Le(Ye):S(et)};return m(function(){if(re){var et=st(re);et&&Object.hasOwnProperty.call(et,"data")&&(Me.state.data=et.data,Me.state.params=et.params,(xe===-1||new Date().getTime()-et.time<=xe)&&(Me.state.loading=!1)),Oe.current=$(re,function(Ye){Me.setState({data:Ye})})}},[]),(0,g.Z)(function(){var et;(et=Oe.current)===null||et===void 0||et.call(Oe)}),re?{onBefore:function(et){var Ye=st(re,et);return!Ye||!Object.hasOwnProperty.call(Ye,"data")?{}:xe===-1||new Date().getTime()-Ye.time<=xe?{loading:!1,data:Ye==null?void 0:Ye.data,error:void 0,returnNow:!0}:{data:Ye==null?void 0:Ye.data,error:void 0}},onRequest:function(et,Ye){var ke=F(re);return ke&&ke!==we.current?{servicePromise:ke}:(ke=et.apply(void 0,(0,a.ev)([],(0,a.CR)(Ye),!1)),we.current=ke,Z(re,ke),{servicePromise:ke})},onSuccess:function(et,Ye){var ke;re&&((ke=Oe.current)===null||ke===void 0||ke.call(Oe),Ne(re,{data:et,params:Ye,time:new Date().getTime()}),Oe.current=$(re,function(Be){Me.setState({data:Be})}))},onMutate:function(et){var Ye;re&&((Ye=Oe.current)===null||Ye===void 0||Ye.call(Oe),Ne(re,{data:et,params:Me.state.params,time:new Date().getTime()}),Oe.current=$(re,function(ke){Me.setState({data:ke})}))}}:{}},T=D,j=e(77837),K=e.n(j),k=function(Me,We){var re=We.debounceWait,se=We.debounceLeading,J=We.debounceTrailing,de=We.debounceMaxWait,xe=(0,t.useRef)(),ce=(0,t.useMemo)(function(){var Le={};return se!==void 0&&(Le.leading=se),J!==void 0&&(Le.trailing=J),de!==void 0&&(Le.maxWait=de),Le},[se,J,de]);return(0,t.useEffect)(function(){if(re){var Le=Me.runAsync.bind(Me);return xe.current=K()(function(Oe){Oe()},re,ce),Me.runAsync=function(){for(var Oe=[],we=0;we-1&&pe.splice(re,1)}}if(le.Z){var be=function(){if(!(!X()||!fe()))for(var Me=0;Me{const{type:c,children:m,prefixCls:g,buttonProps:M,close:h,autoFocus:S,emitEvent:w,isSilent:C,quitOnNullishReturnValue:F,actionFn:Z}=l,N=t.useRef(!1),L=t.useRef(null),[$,D]=(0,a.Z)(!1),T=function(){h==null||h.apply(void 0,arguments)};t.useEffect(()=>{let k=null;return S&&(k=setTimeout(()=>{var te;(te=L.current)===null||te===void 0||te.focus()})),()=>{k&&clearTimeout(k)}},[]);const j=k=>{n(k)&&(D(!0),k.then(function(){D(!1,!0),T.apply(void 0,arguments),N.current=!1},te=>{if(D(!1,!0),N.current=!1,!(C!=null&&C()))return Promise.reject(te)}))},K=k=>{if(N.current)return;if(N.current=!0,!Z){T();return}let te;if(w){if(te=Z(k),F&&!n(te)){N.current=!1,T(k);return}}else if(Z.length)te=Z(h),N.current=!1;else if(te=Z(),!te){T();return}j(te)};return t.createElement(o.ZP,Object.assign({},(0,s.n)(c),{onClick:K,loading:$,prefixCls:g},M,{ref:L}),m)};y.Z=d},15018:function(b,y,e){"use strict";e.d(y,{Z:function(){return d},i:function(){return n}});var a=e(60409),t=e(58757),o=e(42505),s=e(61836);function n(l){return function(m){return t.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(l,Object.assign({},m)))}}function d(l,c,m,g){function M(h){const{prefixCls:S,style:w}=h,C=t.useRef(null),[F,Z]=t.useState(0),[N,L]=t.useState(0),[$,D]=(0,a.Z)(!1,{value:h.open}),{getPrefixCls:T}=t.useContext(s.E_),j=T(c||"select",S);t.useEffect(()=>{if(D(!0),typeof ResizeObserver!="undefined"){const k=new ResizeObserver(V=>{const q=V[0].target;Z(q.offsetHeight+8),L(q.offsetWidth)}),te=setInterval(()=>{var V;const q=m?`.${m(j)}`:`.${j}-dropdown`,le=(V=C.current)===null||V===void 0?void 0:V.querySelector(q);le&&(clearInterval(te),k.observe(le))},10);return()=>{clearInterval(te),k.disconnect()}}},[]);let K=Object.assign(Object.assign({},h),{style:Object.assign(Object.assign({},w),{margin:0}),open:$,visible:$,getPopupContainer:()=>C.current});return g&&(K=g(K)),t.createElement("div",{ref:C,style:{paddingBottom:F,position:"relative",minWidth:N}},t.createElement(l,Object.assign({},K)))}return n(M)}},1878:function(b,y,e){"use strict";e.d(y,{o2:function(){return n},yT:function(){return d}});var a=e(29140),t=e(34966);const o=t.i.map(l=>`${l}-inverse`),s=["success","processing","error","default","warning"];function n(l){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,a.Z)(o),(0,a.Z)(t.i)).includes(l):t.i.includes(l)}function d(l){return s.includes(l)}},44818:function(b,y){"use strict";function e(){const a=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const n=o[s];n!==void 0&&(a[s]=n)})}return a}y.Z=e},99836:function(b,y,e){"use strict";e.d(y,{Z:function(){return a}});const a=t=>t?typeof t=="function"?t():t:null},88858:function(b,y,e){"use strict";e.d(y,{Z:function(){return s}});var a=e(52495),t=e(58757);function o(n,d,l){return typeof n=="boolean"?n:d===void 0?!!l:d!==!1&&d!==null}function s(n,d,l){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.createElement(a.Z,null),m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o(n,d,m))return[!1,null];const M=typeof d=="boolean"||d===void 0||d===null?c:d;return[!0,l?l(M):M]}},69387:function(b,y,e){"use strict";var a=e(58757),t=e(32792);y.Z=()=>{const[o,s]=a.useState(!1);return a.useEffect(()=>{s((0,t.fk)())},[]),o}},4459:function(b,y,e){"use strict";e.d(y,{Z:function(){return t}});var a=e(58757);function t(){const[,o]=a.useReducer(s=>s+1,0);return o}},90881:function(b,y,e){"use strict";e.d(y,{m:function(){return l}});const a=()=>({height:0,opacity:0}),t=c=>{const{scrollHeight:m}=c;return{height:m,opacity:1}},o=c=>({height:c?c.offsetHeight:0}),s=(c,m)=>(m==null?void 0:m.deadline)===!0||m.propertyName==="height",n=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:a,onEnterStart:a,onAppearActive:t,onEnterActive:t,onLeaveStart:o,onLeaveActive:a,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}},d=null,l=(c,m,g)=>g!==void 0?g:`${c}-${m}`;y.Z=n},95446:function(b,y,e){"use strict";e.d(y,{Z:function(){return d}});var a=e(24542);function t(l,c,m,g){if(g===!1)return{adjustX:!1,adjustY:!1};const M=g&&typeof g=="object"?g:{},h={};switch(l){case"top":case"bottom":h.shiftX=c.dropdownArrowOffset*2+m;break;case"left":case"right":h.shiftY=c.dropdownArrowOffsetVertical*2+m;break}const S=Object.assign(Object.assign({},h),M);return S.shiftX||(S.adjustX=!0),S.shiftY||(S.adjustY=!0),S}const o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},s={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},n=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function d(l){const{arrowWidth:c,autoAdjustOverflow:m,arrowPointAtCenter:g,offset:M,borderRadius:h,visibleFirst:S}=l,w=c/2,C={};return Object.keys(o).forEach(F=>{const Z=g&&s[F]||o[F],N=Object.assign(Object.assign({},Z),{offset:[0,0]});switch(C[F]=N,n.has(F)&&(N.autoArrow=!1),F){case"top":case"topLeft":case"topRight":N.offset[1]=-w-M;break;case"bottom":case"bottomLeft":case"bottomRight":N.offset[1]=w+M;break;case"left":case"leftTop":case"leftBottom":N.offset[0]=-w-M;break;case"right":case"rightTop":case"rightBottom":N.offset[0]=w+M;break}const L=(0,a.fS)({contentRadius:h,limitVerticalRadius:!0});if(g)switch(F){case"topLeft":case"bottomLeft":N.offset[0]=-L.dropdownArrowOffset-w;break;case"topRight":case"bottomRight":N.offset[0]=L.dropdownArrowOffset+w;break;case"leftTop":case"rightTop":N.offset[1]=-L.dropdownArrowOffset-w;break;case"leftBottom":case"rightBottom":N.offset[1]=L.dropdownArrowOffset+w;break}N.overflow=t(F,L,c,m),S&&(N.htmlRegion="visibleFirst")}),C}},37047:function(b,y,e){"use strict";var a;e.d(y,{M2:function(){return s},Tm:function(){return d},l$:function(){return o},wm:function(){return n}});var t=e(58757);const{isValidElement:o}=a||(a=e.t(t,2));function s(l){return l&&o(l)&&l.type===t.Fragment}function n(l,c,m){return o(l)?t.cloneElement(l,typeof m=="function"?m(l.props||{}):m):c}function d(l,c){return n(l,l,c)}},87078:function(b,y,e){"use strict";e.d(y,{Z:function(){return d},c:function(){return o}});var a=e(58757),t=e(51806);const o=["xxl","xl","lg","md","sm","xs"],s=l=>({xs:`(max-width: ${l.screenXSMax}px)`,sm:`(min-width: ${l.screenSM}px)`,md:`(min-width: ${l.screenMD}px)`,lg:`(min-width: ${l.screenLG}px)`,xl:`(min-width: ${l.screenXL}px)`,xxl:`(min-width: ${l.screenXXL}px)`}),n=l=>{const c=l,m=[].concat(o).reverse();return m.forEach((g,M)=>{const h=g.toUpperCase(),S=`screen${h}Min`,w=`screen${h}`;if(!(c[S]<=c[w]))throw new Error(`${S}<=${w} fails : !(${c[S]}<=${c[w]})`);if(M{const m=new Map;let g=-1,M={};return{matchHandlers:{},dispatch(h){return M=h,m.forEach(S=>S(M)),m.size>=1},subscribe(h){return m.size||this.register(),g+=1,m.set(g,h),h(M),g},unsubscribe(h){m.delete(h),m.size||this.unregister()},unregister(){Object.keys(c).forEach(h=>{const S=c[h],w=this.matchHandlers[S];w==null||w.mql.removeListener(w==null?void 0:w.listener)}),m.clear()},register(){Object.keys(c).forEach(h=>{const S=c[h],w=F=>{let{matches:Z}=F;this.dispatch(Object.assign(Object.assign({},M),{[h]:Z}))},C=window.matchMedia(S);C.addListener(w),this.matchHandlers[S]={mql:C,listener:w},w(C)})},responsiveMap:c}},[l])}},41496:function(b,y,e){"use strict";e.d(y,{F:function(){return n},Z:function(){return s}});var a=e(87608),t=e.n(a);const o=null;function s(d,l,c){return t()({[`${d}-status-success`]:l==="success",[`${d}-status-warning`]:l==="warning",[`${d}-status-error`]:l==="error",[`${d}-status-validating`]:l==="validating",[`${d}-has-feedback`]:c})}const n=(d,l)=>l||d},32792:function(b,y,e){"use strict";e.d(y,{fk:function(){return s},jD:function(){return t}});var a=e(19075);const t=()=>(0,a.Z)()&&window.document.documentElement;let o;const s=()=>{if(!t())return!1;if(o!==void 0)return o;const n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.rowGap="1px",n.appendChild(document.createElement("div")),n.appendChild(document.createElement("div"));const d=document.createElement("div");return d.style.position="absolute",d.style.zIndex="-9999",d.appendChild(n),document.body.appendChild(d),o=n.scrollHeight===1,document.body.removeChild(d),o}},37486:function(b,y,e){"use strict";e.d(y,{Z:function(){return te}});var a=e(87608),t=e.n(a),o=e(21319),s=e(46499),n=e(58757),d=e(61836),l=e(37047),c=e(52628);const m=V=>{const{componentCls:q,colorPrimary:le}=V;return{[q]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${le})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${V.motionEaseOutCirc}`,`opacity 2s ${V.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${V.motionEaseInOut}`,`opacity 0.35s ${V.motionEaseInOut}`].join(",")}}}}};var g=(0,c.Z)("Wave",V=>[m(V)]),M=e(51729),h=e(61834),S=e(17598),w=e(52323);function C(V){const q=(V||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return q&&q[1]&&q[2]&&q[3]?!(q[1]===q[2]&&q[2]===q[3]):!0}function F(V){return V&&V!=="#fff"&&V!=="#ffffff"&&V!=="rgb(255, 255, 255)"&&V!=="rgba(255, 255, 255, 1)"&&C(V)&&!/rgba\((?:\d*, ){3}0\)/.test(V)&&V!=="transparent"}function Z(V){const{borderTopColor:q,borderColor:le,backgroundColor:X}=getComputedStyle(V);return F(q)?q:F(le)?le:F(X)?X:null}var N=e(78856);function L(V){return Number.isNaN(V)?0:V}const $=V=>{const{className:q,target:le,component:X}=V,W=n.useRef(null),[x,O]=n.useState(null),[_,U]=n.useState([]),[A,G]=n.useState(0),[fe,pe]=n.useState(0),[ge,be]=n.useState(0),[Te,Ge]=n.useState(0),[Je,Qe]=n.useState(!1),pt={left:A,top:fe,width:ge,height:Te,borderRadius:_.map(Wt=>`${Wt}px`).join(" ")};x&&(pt["--wave-color"]=x);function Et(){const Wt=getComputedStyle(le);O(Z(le));const $e=Wt.position==="static",{borderLeftWidth:Xe,borderTopWidth:nt}=Wt;G($e?le.offsetLeft:L(-parseFloat(Xe))),pe($e?le.offsetTop:L(-parseFloat(nt))),be(le.offsetWidth),Ge(le.offsetHeight);const{borderTopLeftRadius:Ke,borderTopRightRadius:ye,borderBottomLeftRadius:ne,borderBottomRightRadius:H}=Wt;U([Ke,ye,H,ne].map(R=>L(parseFloat(R))))}if(n.useEffect(()=>{if(le){const Wt=(0,h.Z)(()=>{Et(),Qe(!0)});let $e;return typeof ResizeObserver!="undefined"&&($e=new ResizeObserver(Et),$e.observe(le)),()=>{h.Z.cancel(Wt),$e==null||$e.disconnect()}}},[]),!Je)return null;const ft=(X==="Checkbox"||X==="Radio")&&(le==null?void 0:le.classList.contains(N.A));return n.createElement(S.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Wt,$e)=>{var Xe;if($e.deadline||$e.propertyName==="opacity"){const nt=(Xe=W.current)===null||Xe===void 0?void 0:Xe.parentElement;(0,w.v)(nt).then(()=>{nt==null||nt.remove()})}return!1}},Wt=>{let{className:$e}=Wt;return n.createElement("div",{ref:W,className:t()(q,{"wave-quick":ft},$e),style:pt})})};var T=(V,q)=>{var le;const{component:X}=q;if(X==="Checkbox"&&!(!((le=V.querySelector("input"))===null||le===void 0)&&le.checked))return;const W=document.createElement("div");W.style.position="absolute",W.style.left="0px",W.style.top="0px",V==null||V.insertBefore(W,V==null?void 0:V.firstChild),(0,w.s)(n.createElement($,Object.assign({},q,{target:V})),W)},j=e(51806);function K(V,q,le){const{wave:X}=n.useContext(d.E_),[,W,x]=(0,j.Z)(),O=(0,M.Z)(A=>{const G=V.current;if(X!=null&&X.disabled||!G)return;const fe=G.querySelector(`.${N.A}`)||G,{showEffect:pe}=X||{};(pe||T)(fe,{className:q,token:W,component:le,event:A,hashId:x})}),_=n.useRef();return A=>{h.Z.cancel(_.current),_.current=(0,h.Z)(()=>{O(A)})}}var te=V=>{const{children:q,disabled:le,component:X}=V,{getPrefixCls:W}=(0,n.useContext)(d.E_),x=(0,n.useRef)(null),O=W("wave"),[,_]=g(O),U=K(x,t()(O,_),X);if(n.useEffect(()=>{const G=x.current;if(!G||G.nodeType!==1||le)return;const fe=pe=>{!(0,s.Z)(pe.target)||!G.getAttribute||G.getAttribute("disabled")||G.disabled||G.className.includes("disabled")||G.className.includes("-leave")||U(pe)};return G.addEventListener("click",fe,!0),()=>{G.removeEventListener("click",fe,!0)}},[le]),!n.isValidElement(q))return q!=null?q:null;const A=(0,o.Yr)(q)?(0,o.sQ)(q.ref,x):x;return(0,l.Tm)(q,{ref:A})}},78856:function(b,y,e){"use strict";e.d(y,{A:function(){return a}});const a="ant-wave-target"},15618:function(b,y,e){"use strict";e.d(y,{Z:function(){return U}});var a=e(85678),t=e(79999),o=e(52495),s=e(69831),n=e(33064),d=e(87608),l=e.n(d),c=e(17598),m=e(33926),g=e(58757),M=e(37047),h=e(61836),S=e(78330),w=e(52628),C=e(22151);const F=(A,G,fe,pe,ge)=>({backgroundColor:A,border:`${pe.lineWidth}px ${pe.lineType} ${G}`,[`${ge}-icon`]:{color:fe}}),Z=A=>{const{componentCls:G,motionDurationSlow:fe,marginXS:pe,marginSM:ge,fontSize:be,fontSizeLG:Te,lineHeight:Ge,borderRadiusLG:Je,motionEaseInOutCirc:Qe,alertIconSizeLG:pt,colorText:Et,paddingContentVerticalSM:ft,alertPaddingHorizontal:Wt,paddingMD:$e,paddingContentHorizontalLG:Xe,colorTextHeading:nt}=A;return{[G]:Object.assign(Object.assign({},(0,S.Wf)(A)),{position:"relative",display:"flex",alignItems:"center",padding:`${ft}px ${Wt}px`,wordWrap:"break-word",borderRadius:Je,[`&${G}-rtl`]:{direction:"rtl"},[`${G}-content`]:{flex:1,minWidth:0},[`${G}-icon`]:{marginInlineEnd:pe,lineHeight:0},["&-description"]:{display:"none",fontSize:be,lineHeight:Ge},"&-message":{color:Et},[`&${G}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${fe} ${Qe}, opacity ${fe} ${Qe}, + `),wo=!1),Yn||mo(Ua()),Yn.formatMessage(Rt,Ae)},ho=function(){return Object.keys(wr)}},47338:function(b,y,e){"use strict";e.d(y,{t:function(){return N},z:function(){return Z}});var a=e(88205),t=e.n(a),o=e(61697),s=e.n(o),n=e(77016),d=e.n(n),l=e(2657),c=e.n(l),m=e(44204),g=e.n(m),M=e(58757),h=e(35667),S=M.createContext(null),w=s()(function L(){var $=this;d()(this,L),c()(this,"callbacks",{}),c()(this,"data",{}),c()(this,"update",function(D){$.callbacks[D]&&$.callbacks[D].forEach(function(T){try{var j=$.data[D];T(j)}catch(K){T(void 0)}})})});function C(L){var $=L.hook,D=L.onUpdate,T=L.namespace,j=(0,M.useRef)(D),K=(0,M.useRef)(!1),k;try{k=$()}catch(te){console.error("plugin-model: Invoking '".concat(T||"unknown","' model failed:"),te)}return(0,M.useMemo)(function(){j.current(k)},[]),(0,M.useEffect)(function(){K.current?j.current(k):K.current=!0}),null}var F=new w;function Z(L){return(0,h.jsxs)(S.Provider,{value:{dispatcher:F},children:[Object.keys(L.models).map(function($){return(0,h.jsx)(C,{hook:L.models[$],namespace:$,onUpdate:function(T){F.data[$]=T,F.update($)}},$)}),L.children]})}function N(L,$){var D=(0,M.useContext)(S),T=D.dispatcher,j=(0,M.useRef)($);j.current=$;var K=(0,M.useState)(function(){return j.current?j.current(T.data[L]):T.data[L]}),k=t()(K,2),te=k[0],V=k[1],q=(0,M.useRef)(te);q.current=te;var le=(0,M.useRef)(!1);return(0,M.useEffect)(function(){return le.current=!0,function(){le.current=!1}},[]),(0,M.useEffect)(function(){var X,W=function(O){if(!le.current)setTimeout(function(){T.data[L]=O,T.update(L)});else{var _=j.current?j.current(O):O,U=q.current;g()(_,U)||(q.current=_,V(_))}};return(X=T.callbacks)[L]||(X[L]=new Set),T.callbacks[L].add(W),T.update(L),function(){T.callbacks[L].delete(W)}},[L]),te}},76180:function(b,y,e){"use strict";e.d(y,{AD:function(){return H},JJ:function(){return ye},EX:function(){return P},BP:function(){return xe},pB:function(){return ce},G3:function(){return Le},YZ:function(){return J},J1:function(){return de},L8:function(){return $e},Ss:function(){return R},zY:function(){return ne},oC:function(){return we},gS:function(){return Ke},po:function(){return Ee},a5:function(){return Me},j3:function(){return re},YC:function(){return We},iP:function(){return Q},oM:function(){return ie},JQ:function(){return ae},Wp:function(){return je},$j:function(){return se},uP:function(){return me},Uf:function(){return Oe}});var a=e(2657),t=e.n(a),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(et,Ye,ke)=>Ye in et?s(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,m=(et,Ye)=>{for(var ke in Ye||(Ye={}))d.call(Ye,ke)&&c(et,ke,Ye[ke]);if(n)for(var ke of n(Ye))l.call(Ye,ke)&&c(et,ke,Ye[ke]);return et};const g=et=>o.createElement("svg",m({className:"classification_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M797.723 912.007h-149.1c-59.634 0-109.325-49.691-109.325-109.326V539.325h263.356c59.635 0 109.326 49.69 109.326 109.325v149.073c0 29.804-9.944 54.65-29.804 79.495-29.83 24.818-54.703 34.762-84.48 34.762zm-422.373 0H226.277c-64.593 0-114.257-49.691-114.257-109.326V653.608c0-29.803 9.917-59.634 34.762-79.494 19.86-19.887 49.691-34.79 79.495-34.79h258.398v263.357c0 29.804-9.943 54.65-29.803 79.495-24.846 19.887-49.691 29.83-79.522 29.83zm422.373-422.373H534.339V226.277c0-29.804 9.97-59.634 34.79-79.495 19.887-19.86 49.69-34.762 79.521-34.762h149.073c59.608 4.932 109.298 54.623 109.298 114.257V375.35c0 29.83-9.916 54.676-29.803 79.495-24.846 24.845-49.691 34.762-79.495 34.762zm-313.048 0H221.32c-59.635 0-109.326-49.691-109.326-109.326V231.235c0-29.803 9.944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zAgMjkuODMtOS45MTYgNTQuNjc2LTI5LjgwMyA3OS40OTUtMjQuODQ2IDI0Ljg0NS00OS42OTEgMzQuNzYyLTc5LjQ5NSAzNC43NjJ6bS0zMTMuMDQ4IDBIMjIxLjMyYy01OS42MzUgMC0xMDkuMzI2LTQ5LjY5MS0xMDkuMzI2LTEwOS4zMjZWMjMxLjIzNWMwLTI5LjgwMyA5Ljk0NC01OS42MDcgMzQuNzktNzkuNDk0IDE5Ljg2LTI0LjgxOSA0OS42OS0zNC43NjIgNzQuNTM2LTM0Ljc2MmgxNDkuMDczYzU5LjYzNCAwIDEwOS4yOTggNDkuNjY0IDEwOS4yOTggMTA5LjI5OHYyNjMuMzg0aDQuOTU4di0uMDI3eiIvPjwvc3ZnPg==",h=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,F=(et,Ye,ke)=>Ye in et?h(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,Z=(et,Ye)=>{for(var ke in Ye||(Ye={}))w.call(Ye,ke)&&F(et,ke,Ye[ke]);if(S)for(var ke of S(Ye))C.call(Ye,ke)&&F(et,ke,Ye[ke]);return et};const N=et=>o.createElement("svg",Z({className:"datasetDetection_svg__icon",viewBox:"0 0 1092 1024",xmlns:"http://www.w3.org/2000/svg",width:213.281,height:200},et),o.createElement("path",{d:"m514.859 116.928 318.336 130.624-1.28 3.2 2.88-1.152v448l-320 128-320-128v-448l2.816 1.152-1.28-3.2 318.528-130.624zm-256 227.2v310.144l224 89.6V434.24h1.28l-225.28-90.112zm512 0L545.323 434.24h1.408v309.632l224-89.6V344.128zm-256.064-158.08-236.352 97.024L514.795 377.6l236.288-94.528-236.288-97.024zM132.523 728.064v160h160v64h-224v-224h64zm830.272 0v224h-224v-64h160v-160h64zm-670.272-672v64h-160v160h-64v-224h224zm670.272 0v224h-64v-160h-160v-64h224z"}),o.createElement("path",{d:"M4.267 0h1024v1024h-1024z",fill:"none"}));var L="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwOTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjEzLjI4MSIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Im01MTQuODU5IDExNi45MjggMzE4LjMzNiAxMzAuNjI0LTEuMjggMy4yIDIuODgtMS4xNTJ2NDQ4bC0zMjAgMTI4LTMyMC0xMjh2LTQ0OGwyLjgxNiAxLjE1Mi0xLjI4LTMuMiAzMTguNTI4LTEzMC42MjR6bS0yNTYgMjI3LjJ2MzEwLjE0NGwyMjQgODkuNlY0MzQuMjRoMS4yOGwtMjI1LjI4LTkwLjExMnptNTEyIDBMNTQ1LjMyMyA0MzQuMjRoMS40MDh2MzA5LjYzMmwyMjQtODkuNlYzNDQuMTI4em0tMjU2LjA2NC0xNTguMDgtMjM2LjM1MiA5Ny4wMjRMNTE0Ljc5NSAzNzcuNmwyMzYuMjg4LTk0LjUyOC0yMzYuMjg4LTk3LjAyNHpNMTMyLjUyMyA3MjguMDY0djE2MGgxNjB2NjRoLTIyNHYtMjI0aDY0em04MzAuMjcyIDB2MjI0aC0yMjR2LTY0aDE2MHYtMTYwaDY0em0tNjcwLjI3Mi02NzJ2NjRoLTE2MHYxNjBoLTY0di0yMjRoMjI0em02NzAuMjcyIDB2MjI0aC02NHYtMTYwaC0xNjB2LTY0aDIyNHoiLz48cGF0aCBkPSJNNC4yNjcgMGgxMDI0djEwMjRoLTEwMjR6IiBmaWxsPSJub25lIi8+PC9zdmc+",$=Object.defineProperty,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,K=(et,Ye,ke)=>Ye in et?$(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,k=(et,Ye)=>{for(var ke in Ye||(Ye={}))T.call(Ye,ke)&&K(et,ke,Ye[ke]);if(D)for(var ke of D(Ye))j.call(Ye,ke)&&K(et,ke,Ye[ke]);return et};const te=et=>o.createElement("svg",k({className:"datasetSegment_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M179.2 524.288h678.912a25.6 25.6 0 0 0 0-51.2H179.2a25.6 25.6 0 0 0 0 51.2zm700.672-245.504v-56.32l-164.864 156.16H774.4l105.472-99.84zm0 73.216-27.904 26.624h27.904V352zm-242.176 26.624 242.176-229.376v-15.616h-43.264L578.304 378.624h59.392zm-136.96 0 258.56-244.992h-59.392L441.6 378.624h59.136zm-136.704 0 258.304-244.992h-59.392l-258.56 244.992h59.648zm-136.96 0 258.56-244.992H426.24L167.68 378.624h59.392zm62.72-244.992L156.16 260.352v55.808l192.512-182.528h-58.88zm-133.632 0v53.504l56.32-53.504h-56.32zm618.24 742.4 105.472-99.584v-56.576l-164.864 156.16H774.4zm105.472 0v-26.368l-27.904 26.368h27.904zm-301.568 0h59.392l242.176-229.376v-15.36h-43.264L578.304 876.032zm121.6-244.736L441.6 876.032h59.136l258.56-244.736h-59.392zm-136.96 0-258.56 244.736h59.648l258.304-244.736h-59.392zm-136.704 0L167.68 876.032h59.392l258.56-244.736H426.24zm-136.448 0L156.16 758.016v55.808l192.512-182.528h-58.88zM156.16 684.544l56.32-53.248h-56.32v53.248z"}));var V="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE3OS4yIDUyNC4yODhoNjc4LjkxMmEyNS42IDI1LjYgMCAwIDAgMC01MS4ySDE3OS4yYTI1LjYgMjUuNiAwIDAgMCAwIDUxLjJ6bTcwMC42NzItMjQ1LjUwNHYtNTYuMzJsLTE2NC44NjQgMTU2L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OC44OHpNMTU2LjE2IDY4NC41NDRsNTYuMzItNTMuMjQ4aC01Ni4zMnY1My4yNDh6Ii8+PC9zdmc+",q=Object.defineProperty,le=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,x=(et,Ye,ke)=>Ye in et?q(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,O=(et,Ye)=>{for(var ke in Ye||(Ye={}))X.call(Ye,ke)&&x(et,ke,Ye[ke]);if(le)for(var ke of le(Ye))W.call(Ye,ke)&&x(et,ke,Ye[ke]);return et};const _=et=>o.createElement("svg",O({className:"datasetMatting_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M832 288h-96v-96c0-52.9-43.1-96-96-96H192c-52.9 0-96 43.1-96 96v448c0 52.9 43.1 96 96 96h96v96c0 52.9 43.1 96 96 96h448c52.9 0 96-43.1 96-96V384c0-52.9-43.1-96-96-96zM160 640V192c0-17.6 14.4-32 32-32h448c17.6 0 32 14.4 32 32v96h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32v288c0 17.6-14.4 32-32 32H352v-32c0-17.7-14.3-32-32-32s-32 14.3-32 32v32h-96c-17.6 0-32-14.4-32-32zm704 192c0 17.6-14.4 32-32 32H384c-17.6 0-32-14.4-32-32v-96h288c52.9 0 96-43.1 96-96V352h96c17.6 0 32 14.4 32 32v448z"}),o.createElement("path",{d:"M320 576c17.7 0 32-14.3 32-32v-64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 17.7 14.3 32 32 32zm160-224h64c17.7 0 32-14.3 32-32s-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-160 64c17.7 0 32-14.3 32-32 0-17.6 14.4-32 32-32 17.7 0 32-14.3 32-32s-14.3-32-32-32c-52.9 0-96 43.1-96 96 0 17.7 14.3 32 32 32z"}));var U="data:image/svg+xml;base64,PHN2Z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zMnptLTE2MCA2NGMxNy43IDAgMzItMTQuMyAzMi0zMiAwLTE3LjYgMTQuNC0zMiAzMi0zMiAxNy43IDAgMzItMTQuMyAzMi0zMnMtMTQuMy0zMi0zMi0zMmMtNTIuOSAwLTk2IDQzLjEtOTYgOTYgMCAxNy43IDE0LjMgMzIgMzIgMzJ6Ii8+PC9zdmc+",A=Object.defineProperty,G=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,ge=(et,Ye,ke)=>Ye in et?A(et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ke}):et[Ye]=ke,be=(et,Ye)=>{for(var ke in Ye||(Ye={}))fe.call(Ye,ke)&&ge(et,ke,Ye[ke]);if(G)for(var ke of G(Ye))pe.call(Ye,ke)&&ge(et,ke,Ye[ke]);return et};const Te=et=>o.createElement("svg",be({className:"datasetKeypoint_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},et),o.createElement("path",{d:"M938.667 298.667c0 70.613-57.387 128-128 128s-128-57.387-128-128c0-1.92 0-3.627.213-5.334L501.12 238.72a107.03 107.03 0 0 1-63.787 55.253l69.334 138.24c15.36-3.626 31.573-5.546 48-5.546C672.213 426.667 768 522.453 768 640s-95.787 213.333-213.333 213.333c-85.334 0-159.147-50.56-193.067-123.093l-34.133 22.613c8.96 17.28 13.866 36.907 13.866 57.814 0 70.613-57.386 128-128 128s-128-57.387-128-128 57.387-128 128-128c34.774 0 66.134 13.653 88.96 36.053l44.8-29.867c-3.84-15.573-5.76-32-5.76-48.853 0-85.973 51.2-160.213 124.587-193.92L391.68 297.6A106.475 106.475 0 0 1 298.667 192c0-58.88 47.786-106.667 106.666-106.667S512 133.12 512 192c0 1.707 0 3.627-.213 5.333l180.053 53.974a127.957 127.957 0 0 1 118.827-80.64c70.613 0 128 57.386 128 128z"}));var Ge="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMC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C42NGM3MC42MTMgMCAxMjggNTcuMzg2IDEyOCAxMjh6Ii8+PC9zdmc+",Je,Qe,pt,Et,ft="Deep Data Space",Wt="https://img.alicdn.com/tfs/TB1YHEpwUT1gK0jSZFhXXaAtVXa-28-27.svg",$e=50,Xe=null,nt=null,Ke=8,ye=function(et){return et.Classification="Classification",et.Detection="Detection",et.Segmentation="Segmentation",et.Matting="Matting",et.KeyPoints="KeyPoints",et.Mask="Mask",et}({}),ne=function(et){return et.showAnnotations="showAnnotations",et.showAllCategory="showAllCategory",et.showImgDesc="showImgDesc",et.showBoxText="showBoxText",et.showSegFilling="showSegFilling",et.showSegContour="showSegContour",et.showMattingColorFill="showMattingColorFill",et.showKeyPointsLine="showKeyPointsLine",et.showKeyPointsBox="showKeyPointsBox",et}({}),H=(Je={},t()(Je,ye.Classification,g),t()(Je,ye.Detection,N),t()(Je,ye.Segmentation,te),t()(Je,ye.Matting,_),t()(Je,ye.KeyPoints,Te),t()(Je,ye.Mask,_),Je),R=(Qe={},t()(Qe,ne.showAnnotations,"lab.displayOption.showAnnotations"),t()(Qe,ne.showAllCategory,"lab.displayOption.showAllCategory"),t()(Qe,ne.showImgDesc,"lab.displayOption.showImgDesc"),t()(Qe,ne.showBoxText,"lab.displayOption.showBoxText"),t()(Qe,ne.showSegFilling,"lab.displayOption.showSegFilling"),t()(Qe,ne.showSegContour,"lab.displayOption.showSegContour"),t()(Qe,ne.showMattingColorFill,"lab.displayOption.showMattingColorFill"),t()(Qe,ne.showKeyPointsLine,"lab.displayOption.showKeyPointsLine"),t()(Qe,ne.showKeyPointsBox,"lab.displayOption.showKeyPointsBox"),Qe),P=[ne.showAnnotations,ne.showAllCategory,ne.showImgDesc],ae=[[0],[2],[5],[10],[1,5,3],[5,2,10]],Q=[1,.4,.6,.8,.85,.9],ie=[1,1.5,1.75,2,2.25,2.5],me=function(et){return et.Overlay="dataset.diffMode.overlay",et.Tiled="dataset.diffMode.tiled",et}({}),je=[me.Overlay,me.Tiled],Ee=function(et){return et[et.all=-1]="all",et[et.unflaged=0]="unflaged",et[et.picked=1]="picked",et[et.rejected=2]="rejected",et}({}),Me=(pt={},t()(pt,Ee.all,"transparent"),t()(pt,Ee.unflaged,"#8C8C8C"),t()(pt,Ee.picked,"#52C41A"),t()(pt,Ee.rejected,"#F5222D"),pt),We=[{value:Ee.picked,tip:"save as 'positive'"},{value:Ee.rejected,tip:"save as 'negative'"},{value:Ee.unflaged,tip:"save as 'unset'"}],re=[{value:Ee.all,name:"all"},{value:Ee.unflaged,name:"unset"},{value:Ee.picked,name:"positive"},{value:Ee.rejected,name:"negative"}],se=function(et){return et.gt="GT",et.user="User",et.pred="Pred",et}({}),J=function(et){return et.fn="fn",et.fp="fp",et}({}),de=[{value:J.fn,name:"FN count"},{value:J.fp,name:"FP count"}],xe=function(et){return et.ok="OK",et.fn="FN",et.fp="FP",et}({}),ce=(Et={},t()(Et,xe.ok,""),t()(Et,xe.fn,"rgba(255,0,0,0.4)"),t()(Et,xe.fp,"rgba(0,0,255,0.4)"),Et),Le=[{value:se.gt,name:"GT - Matched"},{value:xe.fn,name:"GT - FN"},{value:se.pred,name:"Prediction - Matched"},{value:xe.fp,name:"Prediction - FP"}],Oe=function(et){return et.AUTH_TOKEN="auth_token",et}({}),we=function(et){return et.Active="active",et.Inactive="inactive",et.Activating="activating",et}({}),Ne=function(et){return et.Upload="self_uploaded",et.DirectUrl="direct_url",et}({}),st=function(et){return et.Waiting="waiting",et.Running="running",et.Success="success",et.Failed="failed",et.Fail="fail",et}({})},67160:function(b,y,e){"use strict";e.d(y,{$I:function(){return c},C2:function(){return d},nJ:function(){return s},vA:function(){return l}});var a=e(63900),t=e.n(a),o=e(76180),s=function(m){return m[m.pagination=0]="pagination",m[m.random=1]="random",m}({}),n={categoryId:"All",displayAnnotationType:void 0,displayOptions:[o.zY.showAnnotations,o.zY.showAllCategory],selectedLabelIds:[],diffMode:o.uP.Overlay},d={datasetId:"",datasetName:"",queryMode:s.pagination,offset:-1,page:1,pageSize:o.L8,cloumnCount:5,isSingleAnnotation:!1,previewIndex:-1,filterValues:t()({},n),comparisons:void 0,flagTools:void 0},l={imgList:[],total:0,flagTools:{lastShiftIndex:-1,lastSavedIndexs:[],count:0}},c=t()(t()({},l),{},{screenLoading:"",hasEmbedFile:!1,filters:{categories:[],annotationTypes:[],displayOptions:o.EX,labels:[]}})},35459:function(b,y,e){"use strict";e.d(y,{JE:function(){return m},ZA:function(){return c},gZ:function(){return l},j$:function(){return g},mu:function(){return d},tz:function(){return n}});var a=e(2657),t=e.n(a),o,s,n=function(M){return M.Waiting="waiting",M.Initializing="initializing",M.Working="working",M.Reviewing="reviewing",M.Rejected="rejected",M.Accepted="accepted",M.Exported="exported",M}({}),d=(o={},t()(o,n.Waiting,{text:"proj.statusMap.waiting",color:"default"}),t()(o,n.Initializing,{text:"proj.statusMap.initializing",color:"default"}),t()(o,n.Working,{text:"proj.statusMap.working",color:"processing"}),t()(o,n.Reviewing,{text:"proj.statusMap.reviewing",color:"warning"}),t()(o,n.Rejected,{text:"proj.statusMap.rejected",color:"error"}),t()(o,n.Accepted,{text:"proj.statusMap.accepted",color:"success"}),t()(o,n.Exported,{text:"proj.statusMap.exported",color:"default"}),o),l=function(M){return M.Waiting="waiting",M.Working="working",M.Reviewing="reviewing",M.Rejected="rejected",M.Accepted="accepted",M}({}),c=(s={},t()(s,l.Waiting,{text:"proj.eTaskStatus.waiting",color:"default"}),t()(s,l.Working,{text:"proj.eTaskStatus.working",color:"processing"}),t()(s,l.Reviewing,{text:"proj.eTaskStatus.reviewing",color:"warning"}),t()(s,l.Rejected,{text:"proj.eTaskStatus.rejected",color:"error"}),t()(s,l.Accepted,{text:"proj.eTaskStatus.accepted",color:"success"}),s),m=function(M){return M.Accept="accept",M.Reject="reject",M.ForceAccept="force_accept",M}({}),g=function(M){return M.Labeling="labeling",M.Reviewing="reviewing",M.Rejected="rejected",M.Accepted="accepted",M}({})},1239:function(b,y,e){"use strict";e.d(y,{Oc:function(){return d},vb:function(){return n}});var a=e(2657),t=e.n(a),o=e(97375),s,n=function(c){return c.Owner="owner",c.Manager="manager",c.LabelLeader="label_leader",c.ReviewLeader="review_leader",c.Labeler="labeler",c.Reviewer="reviewer",c}({}),d=function(c){return c[c.ProjectEdit=0]="ProjectEdit",c[c.ProjectInfo=1]="ProjectInfo",c[c.ProjectInit=2]="ProjectInit",c[c.ProjectQa=3]="ProjectQa",c[c.ProjectExport=4]="ProjectExport",c[c.AssignLeader=100]="AssignLeader",c[c.TaskQa=101]="TaskQa",c[c.AssignLabeler=102]="AssignLabeler",c[c.AssignReviewer=103]="AssignReviewer",c[c.RestartTask=104]="RestartTask",c[c.StartLabel=105]="StartLabel",c[c.StartReview=106]="StartReview",c[c.CommitReviewTask=107]="CommitReviewTask",c[c.View=108]="View",c}({}),l=(s={},t()(s,n.Owner,[d.ProjectEdit,d.ProjectQa,d.View,d.ProjectExport]),t()(s,n.Manager,[d.ProjectInit,d.ProjectInfo,d.AssignLeader,d.TaskQa,d.View]),t()(s,n.LabelLeader,[d.AssignLabeler,d.RestartTask,d.View]),t()(s,n.ReviewLeader,[d.AssignReviewer,d.View]),t()(s,n.Labeler,[d.StartLabel]),t()(s,n.Reviewer,[d.StartReview,d.CommitReviewTask]),s);y.ZP=function(){var c=(0,o.useModel)("user"),m=c.user,g=function(S,w){if(!m.userId||!S)return[];var C=[];if(m.userId===S.owner.id&&C.push(n.Owner),S.managers.find(function(N){return N.id===m.userId})&&C.push(n.Manager),w){var F,Z;((F=w.labelLeader)===null||F===void 0?void 0:F.userId)===m.userId&&C.push(n.LabelLeader),((Z=w.reviewLeader)===null||Z===void 0?void 0:Z.userId)===m.userId&&C.push(n.ReviewLeader),w.labelers.find(function(N){return N.userId===m.userId})&&C.push(n.Labeler),w.reviewers.find(function(N){return N.userId===m.userId})&&C.push(n.Reviewer)}return C},M=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0,C=[];return S.forEach(function(F){var Z=l[F];Z.forEach(function(N){C.includes(N)||C.push(N)})}),C.includes(w)};return{getUserRoles:g,checkPermission:M}}},32694:function(b,y,e){"use strict";e.d(y,{u:function(){return Z}});var a=e(24454),t=e.n(a),o=e(34485),s=e.n(o),n=e(56592),d=e.n(n),l=e(88205),c=e.n(l),m=e(97375),g=e(65246),M=e(7986),h=e(91290),S=e(53357),w=e(84045),C=e(23707),F=20,Z=function(L){return L[L.labelLeader=0]="labelLeader",L[L.reviewLeader=1]="reviewLeader",L[L.labeler=2]="labeler",L[L.reviewer=3]="reviewer",L[L.reassign=4]="reassign",L}({}),N={show:!1,types:[],tasks:[],initialValues:{}};y.Z=function(){var L=(0,m.useModel)("user"),$=L.user,D=(0,g.x)({list:[],total:0,selectedTaskIds:[]}),T=c()(D,2),j=T[0],K=T[1],k=(0,g.x)({page:1,pageSize:F}),te=c()(k,2),V=te[0],q=te[1],le=(0,g.x)(void 0),X=c()(le,2),W=X[0],x=X[1],O=(0,g.x)(N),_=c()(O,2),U=_[0],A=_[1],G=(0,M.Z)(function(ye,ne){return K(function(H){H.list=[]}),(0,h.ZJ)({projectId:(0,C.Oe)(),pageNum:ye||V.page,pageSize:ne||V.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[V.page,V.pageSize],onSuccess:function(ne){var H=ne.taskList,R=ne.total;K(function(P){P.list=H,P.total=R,P.selectedTaskIds=[]})},onError:function(){}}),fe=G.loading,pe=G.run,ge=(0,M.Z)(function(){return(0,h.NT)((0,C.Oe)())},{manual:!0,debounceWait:100,refreshDeps:[V.page,V.pageSize],onSuccess:function(ne){K(function(H){H.projectDetail=ne,H.isPm=!!ne.managers.find(function(R){return R.id===$.userId})})},onError:function(){}}),be=ge.run,Te=function(ne,H){q(function(R){R.page=H===R.pageSize?ne:1,R.pageSize=H}),pe(ne,H)},Ge=function(ne){K(function(H){H.selectedTaskIds=ne})},Je=function(ne){if(j.projectDetail){var H=ne||j.selectedTaskIds,R=[],P={},ae=j.list.find(function(me){return me.id===H[0]});if(j.projectDetail.labelTimes>0){var Q;R.push(Z.labelLeader),P.labelLeaderId=ae==null||(Q=ae.labelLeader)===null||Q===void 0?void 0:Q.userId}if(j.projectDetail.reviewTimes>0){var ie;R.push(Z.reviewLeader),P.reviewLeaderId=ae==null||(ie=ae.reviewLeader)===null||ie===void 0?void 0:ie.userId}A(function(me){me.show=!0,me.types=R,me.tasks=j.list.filter(function(je){return H.includes(je.id)}),me.initialValues=P})}},Qe=function(ne,H){if(j.projectDetail){var R={};if(H.includes(Z.labeler)){var P;R.labelerIds=(P=ne.labelers)===null||P===void 0?void 0:P.map(function(Q){return Q.userId})}if(H.includes(Z.reviewer)){var ae;R.reviewerIds=(ae=ne.reviewers)===null||ae===void 0?void 0:ae.map(function(Q){return Q.userId})}A(function(Q){Q.show=!0,Q.types=H,Q.tasks=[ne],Q.initialValues=R})}},pt=function(ne,H){A(function(R){R.show=!0,R.types=[Z.reassign],R.tasks=[ne],R.reassignTarget=H})},Et=function(){A(N)},ft=function(){var ye=d()(t()().mark(function ne(H){var R,P,ae,Q,ie;return t()().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(R=H.keyWords,P=R===void 0?"":R,ae=[],Q=U.tasks,ie=U.types,Q.forEach(function(Ee){var Me=[];ie.includes(Z.labelLeader)&&Me.push(Ee.labelLeader),ie.includes(Z.reviewLeader)&&Me.push(Ee.reviewLeader),ie.includes(Z.labeler)&&Me.push.apply(Me,s()(Ee.labelers)),ie.includes(Z.reviewer)&&Me.push.apply(Me,s()(Ee.reviewers)),Me.forEach(function(We){We&&!ae.find(function(re){return We.userId===re.id})&&ae.push({id:We.userId,name:We.userName})})}),!P){je.next=8;break}return je.next=7,(0,h.Qm)({name:P});case 7:ae=je.sent.userList.map(function(Ee){return{name:Ee.name,id:Ee.id}});case 8:return je.abrupt("return",ae.map(function(Ee){return{label:Ee.name,value:Ee.id}}));case 9:case"end":return je.stop()}},ne)}));return function(H){return ye.apply(this,arguments)}}(),Wt=function(){var ye=d()(t()().mark(function ne(H){var R,P,ae,Q,ie,me;return t()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(R=U.initialValues,!(U.types.includes(Z.labelLeader)||U.types.includes(Z.reviewLeader))){Ee.next=16;break}if(!(H.labelLeaderId!==R.labelLeaderId||H.reviewLeaderId!==R.reviewLeaderId)){Ee.next=14;break}return Ee.prev=3,Ee.next=6,(0,h.nu)({projectId:((P=j.projectDetail)===null||P===void 0?void 0:P.id)||"",taskIds:U.tasks.map(function(Me){return Me.id}),labelLeaderId:H.labelLeaderId!==R.labelLeaderId?H.labelLeaderId:void 0,reviewLeaderId:H.reviewLeaderId!==R.reviewLeaderId?H.reviewLeaderId:void 0});case 6:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignLeader")),Ee.next=14;break;case 10:return Ee.prev=10,Ee.t0=Ee.catch(3),console.error(Ee.t0),Ee.abrupt("return",Promise.resolve(!1));case 14:Ee.next=43;break;case 16:if(Q=U.tasks[0],!(U.types.includes(Z.labeler)||U.types.includes(Z.reviewer))){Ee.next=31;break}return Ee.prev=18,Ee.next=21,(0,h.zb)(Q.id,H);case 21:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignWorker")),Ee.next=29;break;case 25:return Ee.prev=25,Ee.t1=Ee.catch(18),console.error(Ee.t1),Ee.abrupt("return",Promise.resolve(!1));case 29:Ee.next=43;break;case 31:if(!(U.types.includes(Z.reassign)&&H.reassigner!==((ae=U.reassignTarget)===null||ae===void 0?void 0:ae.userId))){Ee.next=43;break}return Ee.prev=32,Ee.next=35,(0,h.xv)(Q.id,{oldWorkerId:((ie=U.reassignTarget)===null||ie===void 0?void 0:ie.userId)||"",newWorkerId:H.reassigner||"",role:((me=U.reassignTarget)===null||me===void 0?void 0:me.role)||""});case 35:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.reassignWorker")),Ee.next=43;break;case 39:return Ee.prev=39,Ee.t2=Ee.catch(32),console.error(Ee.t2),Ee.abrupt("return",Promise.resolve(!1));case 43:return Et(),Ee.abrupt("return",Promise.resolve(!1));case 45:case"end":return Ee.stop()}},ne,null,[[3,10],[18,25],[32,39]])}));return function(H){return ye.apply(this,arguments)}}(),$e=function(){var ye=d()(t()().mark(function ne(H){return t()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,P.next=3,(0,h.vo)(H.id);case 3:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.restarTask")),P.next=11;break;case 7:return P.prev=7,P.t0=P.catch(0),console.error(P.t0),P.abrupt("return",Promise.resolve(!1));case 11:case"end":return P.stop()}},ne,null,[[0,7]])}));return function(H){return ye.apply(this,arguments)}}(),Xe=function(){var ye=d()(t()().mark(function ne(H){return t()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,P.next=3,(0,h.$x)(H.id);case 3:pe(),w.ZP.success((0,S._w)("proj.assignModalFinish.commiTask")),P.next=11;break;case 7:return P.prev=7,P.t0=P.catch(0),console.error(P.t0),P.abrupt("return",Promise.resolve(!1));case 11:case"end":return P.stop()}},ne,null,[[0,7]])}));return function(H){return ye.apply(this,arguments)}}(),nt=function(){var ye=d()(t()().mark(function ne(H,R){return t()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.prev=0,ae.next=3,(0,h.d5)(H.id,{action:R});case 3:w.ZP.success((0,S._w)("proj.assignModalFinish.changeTaskStatus")),pe(),ae.next=11;break;case 7:return ae.prev=7,ae.t0=ae.catch(0),console.error(ae.t0),ae.abrupt("return",Promise.reject(!1));case 11:case"end":return ae.stop()}},ne,null,[[0,7]])}));return function(H,R){return ye.apply(this,arguments)}}(),Ke=function(ne){q(function(H){Object.assign(H,{page:1,pageSize:F},ne)}),be(),pe()};return{pageData:j,pageState:V,loading:fe,onPageChange:Te,onSelectChange:Ge,onInitPageState:Ke,taskDetailModalIndex:W,setTaskDetailModalIndex:x,assignModal:U,assignLeaders:Je,assignWorker:Qe,reassignWorker:pt,onCloseAssignModal:Et,userLintRequest:ft,assignModalFinish:Wt,restartTask:$e,commitReviewTask:Xe,onChangeTaskResult:nt}}},54518:function(b,y,e){"use strict";e.d(y,{I:function(){return L}});var a=e(24454),t=e.n(a),o=e(56592),s=e.n(o),n=e(63900),d=e.n(n),l=e(88205),c=e.n(l),m=e(97375),g=e(65246),M=e(7986),h=e(91290),S=e(84045),w=e(53357),C=e(35459),F=e(39378),Z=e.n(F),N=20,L="proj.editModal.setWorkflowNow",$={show:!1,current:0,initialValues:{basics:{},settings:{},workflowInitNow:[],hadBatchSize:!1,hadReviewer:!1}};y.Z=function(){var D=(0,m.useModel)("user"),T=D.user,j=(0,m.useModel)("Project.auth"),K=j.getUserRoles,k=(0,g.x)({list:[],total:0}),te=c()(k,2),V=te[0],q=te[1],le=(0,g.x)({page:1,pageSize:N}),X=c()(le,2),W=X[0],x=X[1],O=(0,g.x)($),_=c()(O,2),U=_[0],A=_[1],G=(0,M.Z)(function($e,Xe){return q(function(nt){nt.list=[]}),(0,h.eK)({pageNum:$e||W.page,pageSize:Xe||W.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[W.page,W.pageSize],onSuccess:function(Xe){var nt=Xe.projectList,Ke=Xe.total;q({list:nt.map(function(ye){return d()(d()({},ye),{},{userRoles:K(ye)})}),total:Ke})},onError:function(){}}),fe=G.loading,pe=G.run,ge=function(Xe,nt){x(function(Ke){Ke.page=nt===Ke.pageSize?Xe:1,Ke.pageSize=nt}),pe(Xe,nt)},be=function(){A(function(Xe){Xe.show=!0})},Te=function(Xe,nt){A(function(Ke){var ye=Xe.name,ne=Xe.description,H=Xe.categories,R=Xe.datasets,P=Xe.preLabel,ae=Xe.managers,Q=Xe.batchSize,ie=Xe.reviewTimes,me=Xe.status;Ke.show=!0,Ke.targetProject=Xe,Ke.current=nt?1:0,Ke.initialValues.basics={name:ye,description:ne,categories:H,preLabel:P,datasetIds:R.map(function(je){return je.id}),managerIds:ae.map(function(je){return je.id})},Ke.initialValues.settings=me!==C.tz.Waiting?{batchSize:Q>0?Q:void 0}:{},Ke.initialValues.workflowInitNow=[(0,w._w)(L)],Ke.initialValues.hadBatchSize=Q>0,Ke.initialValues.hadReviewer=ie>0})},Ge=function(){A($)},Je=function(Xe){A(function(nt){Xe===0&&(nt.current=0)})},Qe=function(Xe){return A(function(nt){var Ke;nt.disableInitProject=!((Ke=Xe.basics.managerIds)!==null&&Ke!==void 0&&Ke.includes(T.userId)),nt.current=1}),Promise.resolve(!1)},pt=function(){var $e=s()(t()().mark(function Xe(nt){var Ke,ye,ne,H,R,P,ae,Q;return t()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(ne=!1,H=(Ke=U.targetProject)===null||Ke===void 0?void 0:Ke.id,H){me.next=18;break}return me.prev=3,me.next=6,(0,h.o9)(nt.basics);case 6:R=me.sent,H=R.id,A(function(je){je.targetProject=R}),ne=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.new")),me.next=16;break;case 13:me.prev=13,me.t0=me.catch(3),console.error(me.t0);case 16:me.next=30;break;case 18:if(P=U.initialValues.basics,ae=P.description,Q=P.managerIds,!(nt.basics.description!==ae||!(0,F.isEqual)(nt.basics.managerIds,Q))){me.next=30;break}return me.prev=20,me.next=23,(0,h.NV)(H,nt.basics);case 23:ne=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.edit")),me.next=30;break;case 27:me.prev=27,me.t1=me.catch(20),console.error(me.t1);case 30:if(!((!U.targetProject||((ye=U.targetProject)===null||ye===void 0?void 0:ye.status)===C.tz.Waiting)&&nt.workflowInitNow&&nt.workflowInitNow.length)){me.next=41;break}return me.prev=31,me.next=34,(0,h.mN)(H,{batchSize:nt.hadBatchSize?nt.settings.batchSize:0,labelTimes:1,reviewTimes:nt.hadReviewer?1:0});case 34:ne=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.init")),me.next=41;break;case 38:me.prev=38,me.t2=me.catch(31),console.error(me.t2);case 41:return ne&&pe(),Ge(),me.abrupt("return",Promise.resolve(!1));case 44:case"end":return me.stop()}},Xe,null,[[3,13],[20,27],[31,38]])}));return function(nt){return $e.apply(this,arguments)}}(),Et=function(){var $e=s()(t()().mark(function Xe(nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.prev=0,ne.next=3,(0,h.lw)(nt.id,{action:Ke});case 3:S.ZP.success((0,w._w)("proj.projectModalFinish.change")),pe(),ne.next=11;break;case 7:return ne.prev=7,ne.t0=ne.catch(0),console.error(ne.t0),ne.abrupt("return",Promise.reject(!1));case 11:case"end":return ne.stop()}},Xe,null,[[0,7]])}));return function(nt,Ke){return $e.apply(this,arguments)}}(),ft=function(){var $e=s()(t()().mark(function Xe(nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.prev=0,ne.next=3,(0,h.Cd)(nt,{labelName:Ke==null?void 0:Ke.labelName});case 3:S.ZP.success((0,w._w)("proj.exportModal.submitSuccess",{name:Ke==null?void 0:Ke.labelName})),pe(),ne.next=10;break;case 7:ne.prev=7,ne.t0=ne.catch(0),console.error(ne.t0);case 10:case"end":return ne.stop()}},Xe,null,[[0,7]])}));return function(nt,Ke){return $e.apply(this,arguments)}}(),Wt=function(Xe){x(function(nt){Object.assign(nt,{page:1,pageSize:N},Xe)}),pe()};return{pageData:V,pageState:W,loading:fe,onPageChange:ge,onInitPageState:Wt,projectModal:U,onNewProject:be,onEditProject:Te,closeProjectModal:Ge,onProjectModalCurrentChange:Je,projectModalNext:Qe,projectModalFinish:pt,onChangeProjectResult:Et,onExportLabelProject:ft}}},93059:function(b,y,e){"use strict";e.d(y,{D:function(){return T}});var a=e(63900),t=e.n(a),o=e(24454),s=e.n(o),n=e(56592),d=e.n(n),l=e(34485),c=e.n(l),m=e(88205),g=e.n(m),M=e(65246),h=e(7986),S=e(91290),w=e(35459),C=e(58757),F=e(84045),Z=e(33010),N=e(97375),L=e(23707),$=e(53357),D=100,T={Init:0,More:1};y.Z=function(){var j=(0,N.useModel)("user"),K=j.user,k=(0,N.useModel)("global"),te=k.setLoading,V=(0,M.x)({taskRoles:[],categoryList:[],list:[],curIndex:-1,page:1,pageSize:D,total:0,editorMode:Z.je.View}),q=g()(V,2),le=q[0],X=q[1],W=(0,M.x)({status:w.j$.Labeling,taskStatus:w.gZ.Working}),x=g()(W,2),O=x[0],_=x[1],U=(0,C.useMemo)(function(){return(0,L.BQ)("projectId")||""},[window.location.search]),A=(0,C.useMemo)(function(){return(0,L.BQ)("taskId")||""},[window.location.search]),G=(0,C.useMemo)(function(){var je;return(je=le.taskRoles)===null||je===void 0?void 0:je.find(function(Ee){return Ee.id===O.roleId})},[le.taskRoles,O.roleId]),fe=(0,C.useMemo)(function(){return G&&K.userId===(G==null?void 0:G.userId)?[G.role]:[]},[K.userId,G]),pe=(0,C.useMemo)(function(){var je;return((je=le.list)===null||je===void 0?void 0:je.map(function(Ee){var Me=[],We="";return O.status===w.j$.Labeling&&!Ee.labeled?Ee.defaultLabels&&Ee.defaultLabels.annotations&&Me.push.apply(Me,c()(Ee.defaultLabels.annotations)):Ee.labels.forEach(function(re){We=re.id,Me.push.apply(Me,c()(re.annotations))}),{id:Ee.id,url:Ee.url,urlFullRes:Ee.urlFullRes,labelId:We,objects:Me}}))||[]},[le.list,O.status]),ge=function(){var je=d()(s()().mark(function Ee(Me,We){var re,se,J,de;return s()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(!le.loadingImagesType){ce.next=2;break}return ce.abrupt("return",Promise.reject(null));case 2:return X(function(Le){Le.loadingImagesType=Me,Me===T.Init&&(Le.list=[])}),ce.prev=3,ce.next=6,(0,S.zO)((0,L.BQ)("taskId")||"",{status:We.status||O.status,roleId:We.roleId||O.roleId,pageNum:We.page,pageSize:le.pageSize});case 6:re=ce.sent,se=re.imageList,J=re.total,de=re.pageNum,X(function(Le){Le.list=Le.list.concat(se),Le.page=de,Le.total=J,Le.loadingImagesType=void 0}),ce.next=17;break;case 13:return ce.prev=13,ce.t0=ce.catch(3),X(function(Le){Le.loadingImagesType=void 0}),ce.abrupt("return",Promise.reject(ce.t0));case 17:case"end":return ce.stop()}},Ee,null,[[3,13]])}));return function(Me,We){return je.apply(this,arguments)}}(),be=(0,h.Z)(function(){return Promise.all([(0,S.Cb)((0,L.BQ)("taskId")||""),(0,S.Iu)((0,L.BQ)("taskId")||"")])},{manual:!0,debounceWait:60,onSuccess:function(Ee){var Me=g()(Ee,2),We=Me[0],re=Me[1];X(function(se){se.categoryList=re.categoryList,se.taskRoles=We.roleList}),_(function(se){We.roleList.length&&(!se.roleId||!We.roleList.find(function(J){return J.id===se.roleId}))&&(se.roleId=We.roleList[0].id)})},onError:function(){}}),Te=be.loading,Ge=be.run,Je=function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Promise.all([Ge(),ge(T.Init,t()(t()({},Ee),{},{page:1}))])},Qe=function(){var je=d()(s()().mark(function Ee(){return s()().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(!(le.list.length0&&(re.curIndex=re.curIndex-1)}),We.abrupt("return",Promise.resolve());case 2:case"end":return We.stop()}},Ee)}));return function(){return je.apply(this,arguments)}}(),$e=function(){var je=d()(s()().mark(function Ee(){return s()().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(!(le.curIndex=0;return{pageData:le,pageState:O,loading:Te||le.loadingImagesType===T.Init,loadPageData:Je,loadMore:Qe,onInitPageState:Q,projectId:U,taskId:A,curRole:G,userRoles:fe,tabItems:ie,labelImages:pe,isEditorVisible:me,onStatusTabChange:pt,onRoleChange:Et,clickItem:ft,onExitEditor:ne,onPrevImage:Wt,onNextImage:$e,onLabelSave:H,onReviewResult:R,onReviewAccept:P,onReviewReject:ae,onEnterEdit:Xe,onStartLabel:nt,onStartRework:Ke,onStartReview:ye}}},91290:function(b,y,e){"use strict";e.d(y,{$x:function(){return fe},Cb:function(){return ge},Cd:function(){return $},Iu:function(){return Te},J9:function(){return T},Jg:function(){return ft},NT:function(){return g},NV:function(){return F},Qm:function(){return K},ZJ:function(){return te},d5:function(){return A},eK:function(){return c},lw:function(){return N},mN:function(){return w},nQ:function(){return pt},nu:function(){return q},o9:function(){return h},vo:function(){return _},xv:function(){return x},zO:function(){return Je},zb:function(){return X}});var a=e(24454),t=e.n(a),o=e(63900),s=e.n(o),n=e(56592),d=e.n(n),l=e(97375);function c($e,Xe){return m.apply(this,arguments)}function m(){return m=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),m.apply(this,arguments)}function g($e,Xe){return M.apply(this,arguments)}function M(){return M=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(Xe),s()({method:"GET"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),M.apply(this,arguments)}function h($e,Xe){return S.apply(this,arguments)}function S(){return S=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"POST",data:s()({},Xe)},nt||{})));case 1:case"end":return ye.stop()}},$e)})),S.apply(this,arguments)}function w($e,Xe,nt){return C.apply(this,arguments)}function C(){return C=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_project_configs/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),C.apply(this,arguments)}function F($e,Xe,nt){return Z.apply(this,arguments)}function Z(){return Z=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),Z.apply(this,arguments)}function N($e,Xe,nt){return L.apply(this,arguments)}function L(){return L=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_project_qa/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),L.apply(this,arguments)}function $($e,Xe,nt){return D.apply(this,arguments)}function D(){return D=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_project_export/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),D.apply(this,arguments)}function T($e,Xe){return j.apply(this,arguments)}function j(){return j=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/dataset_name_lints",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),j.apply(this,arguments)}function K($e,Xe){return k.apply(this,arguments)}function k(){return k=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/user_name_lints",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),k.apply(this,arguments)}function te($e,Xe){return V.apply(this,arguments)}function V(){return V=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_tasks",s()({method:"GET",params:Xe},nt||{})));case 1:case"end":return ye.stop()}},$e)})),V.apply(this,arguments)}function q($e,Xe){return le.apply(this,arguments)}function le(){return le=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_leaders",s()({method:"POST",data:s()({},Xe)},nt||{})));case 1:case"end":return ye.stop()}},$e)})),le.apply(this,arguments)}function X($e,Xe,nt){return W.apply(this,arguments)}function W(){return W=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_workers/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),W.apply(this,arguments)}function x($e,Xe,nt){return O.apply(this,arguments)}function O(){return O=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_reassign/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),O.apply(this,arguments)}function _($e,Xe){return U.apply(this,arguments)}function U(){return U=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_restart/".concat(Xe),s()({method:"POST"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),U.apply(this,arguments)}function A($e,Xe,nt){return G.apply(this,arguments)}function G(){return G=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_qa/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),G.apply(this,arguments)}function fe($e,Xe){return pe.apply(this,arguments)}function pe(){return pe=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_review_commit/".concat(Xe),s()({method:"POST"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),pe.apply(this,arguments)}function ge($e,Xe){return be.apply(this,arguments)}function be(){return be=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_roles/".concat(Xe),s()({method:"GET"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),be.apply(this,arguments)}function Te($e,Xe){return Ge.apply(this,arguments)}function Ge(){return Ge=d()(t()().mark(function $e(Xe,nt){return t()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,l.request)("/api/v1/label_task_configs/".concat(Xe),s()({method:"GET"},nt||{})));case 1:case"end":return ye.stop()}},$e)})),Ge.apply(this,arguments)}function Je($e,Xe,nt){return Qe.apply(this,arguments)}function Qe(){return Qe=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_images/".concat(Xe),s()({method:"GET",params:nt},Ke||{})));case 1:case"end":return ne.stop()}},$e)})),Qe.apply(this,arguments)}function pt($e,Xe,nt){return Et.apply(this,arguments)}function Et(){return Et=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_image_labels/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{hideCodeErrorMsg:!0})));case 1:case"end":return ne.stop()}},$e)})),Et.apply(this,arguments)}function ft($e,Xe,nt){return Wt.apply(this,arguments)}function Wt(){return Wt=d()(t()().mark(function $e(Xe,nt,Ke){return t()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,l.request)("/api/v1/label_task_image_reviews/".concat(Xe),s()({method:"POST",data:s()({},nt)},Ke||{hideCodeErrorMsg:!0})));case 1:case"end":return ne.stop()}},$e)})),Wt.apply(this,arguments)}},74595:function(b,y,e){"use strict";e.d(y,{B8:function(){return g},JC:function(){return h},WR:function(){return M},i0:function(){return c},iE:function(){return m}});var a=e(63900),t=e.n(a),o=e(34485),s=e.n(o),n=e(76180),d=e(39378),l=e.n(d),c=function(w){var C=0;return(0,d.includes)(w,"Classification")&&(C=1),(0,d.includes)(w,"Detection")&&(C=2),(0,d.includes)(w,"Segmentation")&&(C=3),(0,d.includes)(w,"Matting")&&(C=4),(0,d.includes)(w,"KeyPoints")&&(C=5),e(14677)("./card_cover_".concat(C,".png"))},m=function(w,C,F){if(!w||!C||F)return{colorAplha:n.iP[0],strokeDash:n.JQ[0],lineWidth:n.oM[0]};var Z=C.indexOf(w);return{colorAplha:n.iP[Z]||n.iP[0],strokeDash:n.JQ[Z]||n.JQ[0],lineWidth:n.oM[Z]||n.oM[0]}},g=function(w,C){var F=[],Z=[],N=w.filter(function(L){return n.EX.includes(L)});return C===n.JJ.Detection?(F=[n.zY.showBoxText],Z=F):C===n.JJ.Segmentation?(F=[n.zY.showSegFilling,n.zY.showSegContour],Z=F):C===n.JJ.Matting?F=[n.zY.showMattingColorFill]:C===n.JJ.KeyPoints&&(F=[n.zY.showKeyPointsLine,n.zY.showKeyPointsBox],Z=F),[[].concat(s()(n.EX),s()(F)),[].concat(s()(N),s()(Z))]},M=function(w,C,F){var Z=[];return F===n.JJ.Matting&&Z.push({id:"origin",name:"Origin image",source:n.$j.gt,comparePrecisions:[],confidenceRange:[0,1]}),C.length&&C.forEach(function(N){var L=w.find(function($){return $.id===N});L&&Z.push(t()({},L))}),Z},h=function(w,C,F){var Z=[];return C.length?(w.forEach(function(N){F===n.JJ.Matting&&Z.push(t()({},N)),Z.push.apply(Z,s()(new Array(C.length).fill({}).map(function(L,$){var D=t()({},N);return D.curLabelId=C[$],D})))}),Z):w}},17410:function(b,y,e){"use strict";e.d(y,{v_:function(){return wr},yj:function(){return zr},Uu:function(){return ta},ru:function(){return Er},Zo:function(){return ga},QD:function(){return Sr},Yq:function(){return sr},Ze:function(){return wn},gr:function(){return Rn},jB:function(){return Kr},HE:function(){return pr},ft:function(){return kr},GI:function(){return Xr},t:function(){return ma},Fv:function(){return ia},vL:function(){return Mr},TR:function(){return Ma},VC:function(){return Zn},ef:function(){return Yn},Xn:function(){return Ur},oP:function(){return Wn}});var a=e(2657),t=e.n(a),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(Pt,on,Mn)=>on in Pt?s(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,m=(Pt,on)=>{for(var Mn in on||(on={}))d.call(on,Mn)&&c(Pt,Mn,on[Mn]);if(n)for(var Mn of n(on))l.call(on,Mn)&&c(Pt,Mn,on[Mn]);return Pt};const g=Pt=>o.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"1em",width:"1em"},Pt),o.createElement("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v3h-3v2h3v3h2v-3h3v-2h-3z"}));var M="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgaGVpZ2h0PSIxZW0iIHdpZHRoPSIxZW0iPjxwYXRoIGQ9Ik0zIDExaDhWM0gzdjh6bTItNmg0djRINVY1em04LTJ2OGg4VjNoLTh6bTYgNmgtNFY1aDR2NHpNMyAyMWg4di04SDN2OHptMi02aDR2NEg1di00em0xMy0yaC0ydjNoLTN2MmgzdjNoMnYtM2gzdi0yaC0zeiIvPjwvc3ZnPg==",h=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,F=(Pt,on,Mn)=>on in Pt?h(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Z=(Pt,on)=>{for(var Mn in on||(on={}))w.call(on,Mn)&&F(Pt,Mn,on[Mn]);if(S)for(var Mn of S(on))C.call(on,Mn)&&F(Pt,Mn,on[Mn]);return Pt};const N=Pt=>o.createElement("svg",Z({className:"delete_all_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"M864 192v576h64V192c0-70.4-57.6-128-128-128H352v64h448c35.2 0 64 28.8 64 64z"}),o.createElement("path",{d:"M672 192H224c-70.4 0-128 57.6-128 128v512c0 70.4 57.6 128 128 128h448c70.4 0 128-57.6 128-128V320c0-70.4-57.6-128-128-128zm-73.235 489.51c12.445 12.445 12.445 32.81 0 45.255s-32.81 12.445-45.255 0L448 621.255l-105.51 105.51c-12.445 12.445-32.81 12.445-45.255 0s-12.445-32.81 0-45.255L402.745 576l-105.51-105.51c-12.445-12.445-12.445-32.81 0-45.255s32.81-12.445 45.255 0L448 530.745l105.51-105.51c12.445-12.445 32.81-12.445 45.255 0s12.445 32.81 0 45.255L493.255 576l105.51 105.51z"}));var L="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik04NjQgMTkydjU3Nmg2NFYxOTJjMC03MC40LTU3LjYtMTI4LTEyOC0xMjhIMzUydjY0aDQ0OGMzNS4yIDAgNjQgMjguOCA2NCA2NHoiLz48cGF0aCBkPSJNNjcyIDE5MkgyMjRjLTcwLjQgMC0xMjggNTcuNi0xMjggMTI4djUxMmMwIDcwLjQgNTcuNiAxMjggMTI4IDEyOGg0NDhjNzAuNCAwIDEyOC01Ny42IDEyOC0xMjhWMzIwYzAtNzAuNC01Ny42LTEyOC0xMjgtMTI4em0tNzMuMjM1IDQ4OS41MWMxMi40NDUgMTIuNDQ1IDEyLjQ0NSAzMi44MSAwIDQ1LjI1NXMtMzIuODEgMTIuNDQ1LTQ1LjI1NSAwTDQ0OCA2MjEuMjU1bC0xMDUuNTEgMTA1LjUxYy0xMi40NDUgMTIuNDQ1LTMyLjgxIDEyLjQ0NS00NS4yNTUgMHMtMTIuNDQ1LTMyLjgxIDAtNDUuMjU1TDQwMi43NDUgNTc2bC0xMDUuNTEtMTA1LjUxYy0xMi40NDUtMTIuNDQ1LTEyLjQ0NS0zMi44MSAwLTQ1LjI1NXMzMi44MS0xMi40NDUgNDUuMjU1IDBMNDQ4IDUzMC43NDVsMTA1LjUxLTEwNS41MWMxMi40NDUtMTIuNDQ1IDMyLjgxLTEyLjQ0NSA0NS4yNTUgMHMxMi40NDUgMzIuODEgMCA0NS4yNTVMNDkzLjI1NSA1NzZsMTA1LjUxIDEwNS41MXoiLz48L3N2Zz4=",$=Object.defineProperty,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,K=(Pt,on,Mn)=>on in Pt?$(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,k=(Pt,on)=>{for(var Mn in on||(on={}))T.call(on,Mn)&&K(Pt,Mn,on[Mn]);if(D)for(var Mn of D(on))j.call(on,Mn)&&K(Pt,Mn,on[Mn]);return Pt};const te=Pt=>o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Pt),o.createElement("defs",null,o.createElement("style",null,".magic_svg__cls-1{fill:#fff}")),o.createElement("path",{className:"magic_svg__cls-1",d:"M26.08 18.47V16.6c0-.58.27-1.19 1-1.25s1.05.45 1.06 1.29v1.83h1.92c.76 0 1.25.46 1.19 1.08a1 1 0 0 1-1.18 1h-1.91v1.74c0 .91-.39 1.41-1.06 1.39s-1-.49-1-1.42v-1.71h-1.91c-.71 0-1.21-.29-1.21-1s.5-1 1.21-1ZM12.81 6.47h1.59a1 1 0 0 1 1 1 1 1 0 0 1-1 1.07h-1.58v1.5c0 .68-.38 1.11-1.07 1.1a1 1 0 0 1-1-1.08V8.54H9.29c-.68 0-1.13-.36-1.12-1s.46-1 1.14-1h1.44V5.01a1 1 0 1 1 2.06 0c.02.38 0 .87 0 1.46ZM19.93 24.67c.11-1.56.33-2 1.05-2s1 .44 1.12 2c.8.17 2.09-.2 2 1.22-.07 1.15-1.14.89-2 .95-.18.8.22 2.11-1.2 2-1.18-.07-.89-1.19-1-2-.84-.09-1.91.21-2-1.06-.07-.7.39-.94 2.03-1.11ZM30.2 6l-2.51-2.49a2.15 2.15 0 0 0-3.06 0L3.27 24.92a2.2 2.2 0 0 0 0 3.08l2.51 2.51a2.17 2.17 0 0 0 3.06 0L30.2 9.09a2.19 2.19 0 0 0 0-3.09ZM29 8.47l-4.39 4.39a.94.94 0 0 1-1.35 0l-2.28-2.28a1 1 0 0 1 0-1.36l4.38-4.39a1 1 0 0 1 1.36 0L29 7.11a1 1 0 0 1 0 1.36Z"}));var V="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjYuMDggMTguNDdWMTYuNmMwLS41OC4yNy0xLjE5IDEtMS4yNXMxLjA1LjQ1IDEuMDYgMS4yOXYxLjgzaDEuOTJjLjc2IDAgMS4yNS40NiAxLjE5IDEuMDhhMSAxIDAgMCAxLTEuMTggMWgtMS45MXYxLjc0YzAgLjkxLS4zOSAxLjQxLTEuMDYgMS4zOXMtMS0uNDktMS0xLjQydi0xLjcxaC0xLjkxYy0uNzEgMC0xLjIxLS4yOS0xLjIxLTFzLjUtMSAxLjIxLTFaTTEyLjgxIDYuNDdoMS41OWExIDEgMCAwIDEgMSAxIDEgMSAwIDAgMS0xIDEuMDdoLTEuNTh2MS41YzAgLjY4LS4zOCAxLjExLTEuMDcgMS4xYTEgMSAwIDAgMS0xLTEuMDhWOC41NEg5LjI5Yy0uNjggMC0xLjEzLS4zNi0xLjEyLTFzLjQ2LTEgMS4xNC0xaDEuNDRWNS4wMWExIDEgMCAxIDEgMi4wNiAwYy4wMi4zOCAwIC44NyAwIDEuNDZaTTE5LjkzIDI0LjY3Yy4xMS0xLjU2LjMzLTIgMS4wNS0yczEgLjQ0IDEuMTIgMmMuOC4xNyAyLjA5LS4yIDIgMS4yMi0uMDcgMS4xNS0xLjE0Ljg5LTIgLjk1LS4xOC44LjIyIDIuMTEtMS4yIDItMS4xOC0uMDctLjg5LTEuMTktMS0yLS44NC0uMDktMS45MS4yMS0yLTEuMDYtLjA3LS43LjM5LS45NCAyLjAzLTEuMTFaTTMwLjIgNmwtMi41MS0yLjQ5YTIuMTUgMi4xNSAwIDAgMC0zLjA2IDBMMy4yNyAyNC45MmEyLjIgMi4yIDAgMCAwIDAgMy4wOGwyLjUxIDIuNTFhMi4xNyAyLjE3IDAgMCAwIDMuMDYgMEwzMC4yIDkuMDlhMi4xOSAyLjE5IDAgMCAwIDAtMy4wOVpNMjkgOC40N2wtNC4zOSA0LjM5YS45NC45NCAwIDAgMS0xLjM1IDBsLTIuMjgtMi4yOGExIDEgMCAwIDEgMC0xLjM2bDQuMzgtNC4zOWExIDEgMCAwIDEgMS4zNiAwTDI5IDcuMTFhMSAxIDAgMCAxIDAgMS4zNloiLz48L3N2Zz4=",q=Object.defineProperty,le=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,x=(Pt,on,Mn)=>on in Pt?q(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,O=(Pt,on)=>{for(var Mn in on||(on={}))X.call(on,Mn)&&x(Pt,Mn,on[Mn]);if(le)for(var Mn of le(on))W.call(on,Mn)&&x(Pt,Mn,on[Mn]);return Pt};const _=Pt=>o.createElement("svg",O({viewBox:"0 0 33 33",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#mask-ai_svg__a)"},o.createElement("path",{d:"M15.278 33H6.753c-1.77 0-2.435-.664-2.103-2.436.443-1.993.886-3.985 1.218-5.978.11-.665.443-.886 1.107-.886h16.718c.664 0 .996.332 1.107.886.443 1.993.886 3.985 1.218 5.978.332 1.772-.222 2.436-2.104 2.436h-8.636ZM15.39 20.6H7.306c-.996 0-1.107-.11-1.107-1.218v-1.66c0-1.218.554-1.772 1.882-1.772h3.432c.665 0 .997-.221.886-.886V5.432c0-1.66.886-2.99 2.325-3.321 1.993-.554 3.764.996 3.764 3.21v9.3c0 1.44 0 1.329 1.33 1.329h3.21c1.107 0 1.66.554 1.66 1.66v1.994c0 .775-.332.996-.996.996H15.39Z"})),o.createElement("path",{d:"M26.928 11.296h-3.492l-.6 1.704h-1.428l2.988-8.352h1.584L28.968 13h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52V13h-1.368V4.66h1.368Z"}),o.createElement("defs",null,o.createElement("clipPath",{id:"mask-ai_svg__a"},o.createElement("path",{transform:"translate(0 2)",d:"M0 0h31v31H0z"}))));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzMgMzMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMTUuMjc4IDMzSDYuNzUzYy0xLjc3IDAtMi40MzUtLjY2NC0yLjEwMy0yLjQzNi40NDMtMS45OTMuODg2LTMuOTg1IDEuMjE4LTUuOTc4LjExLS42NjUuNDQzLS44ODYgMS4xMDctLjg4NmgxNi43MThjLjY2NCAwIC45OTYuMzMyIDEuMTA3Ljg4Ni40NDMgMS45OTMuODg2IDMuOTg1IDEuMjE4IDUuOTc4LjMzMiAxLjc3Mi0uMjIyIDIuNDM2LTIuMTA0IDIuNDM2aC04LjYzNlpNMTUuMzkgMjAuNkg3LjMwNmMtLjk5NiAwLTEuMTA3LS4xMS0xLjEwNy0xLjIxOHYtMS42NmMwLTEuMjE4LjU1NC0xLjc3MiAxLjg4Mi0xLjc3MmgzLjQzMmMuNjY1IDAgLjk5Ny0uMjIxLjg4Ni0uODg2VjUuNDMyYzAtMS42Ni44ODYtMi45OSAyLjMyNS0zLjMyMSAxLjk5My0uNTU0IDMuNzY0Ljk5NiAzLjc2NCAzLjIxdjkuM2MwIDEuNDQgMCAxLjMyOSAxLjMzIDEuMzI5aDMuMjFjMS4xMDcgMCAxLjY2LjU1NCAxLjY2IDEuNjZ2MS45OTRjMCAuNzc1LS4zMzIuOTk2LS45OTYuOTk2SDE1LjM5WiIvPjwvZz48cGF0aCBkPSJNMjYuOTI4IDExLjI5NmgtMy40OTJsLS42IDEuNzA0aC0xLjQyOGwyLjk4OC04LjM1MmgxLjU4NEwyOC45NjggMTNoLTEuNDRsLS42LTEuNzA0Wm0tLjM4NC0xLjExNi0xLjM1Ni0zLjg3Ni0xLjM2OCAzLjg3NmgyLjcyNFptNS4wOTEtNS41MlYxM2gtMS4zNjhWNC42NmgxLjM2OFoiLz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgMikiIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",A=Object.defineProperty,G=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,ge=(Pt,on,Mn)=>on in Pt?A(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,be=(Pt,on)=>{for(var Mn in on||(on={}))fe.call(on,Mn)&&ge(Pt,Mn,on[Mn]);if(G)for(var Mn of G(on))pe.call(on,Mn)&&ge(Pt,Mn,on[Mn]);return Pt};const Te=Pt=>o.createElement("svg",be({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},Pt),o.createElement("path",{className:"mask_svg__cls-1",d:"M17.29 31.49H9.44c-1.68 0-2.24-.66-1.92-2.28.36-1.83.77-3.66 1.13-5.49a.9.9 0 0 1 1-.84h15.39a.91.91 0 0 1 1 .85c.37 1.83.78 3.65 1.13 5.48.32 1.62-.24 2.28-1.92 2.28-2.63.01-5.25 0-7.96 0ZM17.39 20.05H9.92c-1 0-1.09-.12-1.09-1.06v-1.72a1.36 1.36 0 0 1 1.44-1.46h3.51c.56 0 .74-.19.73-.74 0-2.89.05-5.78 0-8.67C14.43 3.93 16 2.94 17.38 3s2.93 1 2.87 3.48c-.07 2.84 0 5.68 0 8.52 0 .64.16.89.84.86 1.09-.05 2.19 0 3.29 0a1.4 1.4 0 0 1 1.56 1.57v1.8c0 .6-.36.89-1 .89Z"}),o.createElement("path",{style:{fill:"none"},d:"M2.89 2.83h28.35v28.35H2.89z"}));var Ge="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNCAzNCI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTcuMjkgMzEuNDlIOS40NGMtMS42OCAwLTIuMjQtLjY2LTEuOTItMi4yOC4zNi0xLjgzLjc3LTMuNjYgMS4xMy01LjQ5YS45LjkgMCAwIDEgMS0uODRoMTUuMzlhLjkxLjkxIDAgMCAxIDEgLjg1Yy4zNyAxLjgzLjc4IDMuNjUgMS4xMyA1LjQ4LjMyIDEuNjItLjI0IDIuMjgtMS45MiAyLjI4LTIuNjMuMDEtNS4yNSAwLTcuOTYgMFpNMTcuMzkgMjAuMDVIOS45MmMtMSAwLTEuMDktLjEyLTEuMDktMS4wNnYtMS43MmExLjM2IDEuMzYgMCAwIDEgMS40NC0xLjQ2aDMuNTFjLjU2IDAgLjc0LS4xOS43My0uNzQgMC0yLjg5LjA1LTUuNzggMC04LjY3QzE0LjQzIDMuOTMgMTYgMi45NCAxNy4zOCAzczIuOTMgMSAyLjg3IDMuNDhjLS4wNyAyLjg0IDAgNS42OCAwIDguNTIgMCAuNjQuMTYuODkuODQuODYgMS4wOS0uMDUgMi4xOSAwIDMuMjkgMGExLjQgMS40IDAgMCAxIDEuNTYgMS41N3YxLjhjMCAuNi0uMzYuODktMSAuODlaIi8+PHBhdGggc3R5bGU9ImZpbGw6bm9uZSIgZD0iTTIuODkgMi44M2gyOC4zNXYyOC4zNUgyLjg5eiIvPjwvc3ZnPg==",Je=Object.defineProperty,Qe=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,ft=(Pt,on,Mn)=>on in Pt?Je(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Wt=(Pt,on)=>{for(var Mn in on||(on={}))pt.call(on,Mn)&&ft(Pt,Mn,on[Mn]);if(Qe)for(var Mn of Qe(on))Et.call(on,Mn)&&ft(Pt,Mn,on[Mn]);return Pt};const $e=Pt=>o.createElement("svg",Wt({viewBox:"0 0 35 31",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#polygon-ai_svg__a)"},o.createElement("path",{d:"M27.125 23.25c-.534 0-1.042.108-1.505.303l-5.444-6.17a3.854 3.854 0 0 0-.008-3.782l5.403-6.178c.477.21 1.002.327 1.554.327A3.88 3.88 0 0 0 31 3.875 3.88 3.88 0 0 0 27.125 0a3.88 3.88 0 0 0-3.653 2.583H7.528A3.88 3.88 0 0 0 3.875 0 3.88 3.88 0 0 0 0 3.875a3.88 3.88 0 0 0 2.583 3.653v15.944A3.88 3.88 0 0 0 0 27.125 3.88 3.88 0 0 0 3.875 31a3.88 3.88 0 0 0 3.653-2.583h15.944A3.88 3.88 0 0 0 27.125 31 3.88 3.88 0 0 0 31 27.125a3.88 3.88 0 0 0-3.875-3.875ZM7.528 5.167h15.944c.06.168.132.332.213.488l-5.46 6.245a3.854 3.854 0 0 0-1.433-.275 3.88 3.88 0 0 0-3.875 3.875 3.88 3.88 0 0 0 3.875 3.875c.511 0 1-.1 1.448-.282l5.471 6.202a3.937 3.937 0 0 0-.239.538H7.528a3.894 3.894 0 0 0-2.361-2.36V7.527a3.894 3.894 0 0 0 2.36-2.361Z"})),o.createElement("path",{d:"M28.928 17.296h-3.492l-.6 1.704h-1.428l2.988-8.352h1.584L30.968 19h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52V19h-1.368v-8.34h1.368Z"}),o.createElement("defs",null,o.createElement("clipPath",{id:"polygon-ai_svg__a"},o.createElement("path",{d:"M0 0h31v31H0z"}))));var Xe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzUgMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjcuMTI1IDIzLjI1Yy0uNTM0IDAtMS4wNDIuMTA4LTEuNTA1LjMwM2wtNS40NDQtNi4xN2EzLjg1NCAzLjg1NCAwIDAgMC0uMDA4LTMuNzgybDUuNDAzLTYuMTc4Yy40NzcuMjEgMS4wMDIuMzI3IDEuNTU0LjMyN0EzLjg4IDMuODggMCAwIDAgMzEgMy44NzUgMy44OCAzLjg4IDAgMCAwIDI3LjEyNSAwYTMuODggMy44OCAwIDAgMC0zLjY1MyAyLjU4M0g3LjUyOEEzLjg4IDMuODggMCAwIDAgMy44NzUgMCAzLjg4IDMuODggMCAwIDAgMCAzLjg3NWEzLjg4IDMuODggMCAwIDAgMi41ODMgMy42NTN2MTUuOTQ0QTMuODggMy44OCAwIDAgMCAwIDI3LjEyNSAzLjg4IDMuODggMCAwIDAgMy44NzUgMzFhMy44OCAzLjg4IDAgMCAwIDMuNjUzLTIuNTgzaDE1Ljk0NEEzLjg4IDMuODggMCAwIDAgMjcuMTI1IDMxIDMuODggMy44OCAwIDAgMCAzMSAyNy4xMjVhMy44OCAzLjg4IDAgMCAwLTMuODc1LTMuODc1Wk03LjUyOCA1LjE2N2gxNS45NDRjLjA2LjE2OC4xMzIuMzMyLjIxMy40ODhsLTUuNDYgNi4yNDVhMy44NTQgMy44NTQgMCAwIDAtMS40MzMtLjI3NSAzLjg4IDMuODggMCAwIDAtMy44NzUgMy44NzUgMy44OCAzLjg4IDAgMCAwIDMuODc1IDMuODc1Yy41MTEgMCAxLS4xIDEuNDQ4LS4yODJsNS40NzEgNi4yMDJhMy45MzcgMy45MzcgMCAwIDAtLjIzOS41MzhINy41MjhhMy44OTQgMy44OTQgMCAwIDAtMi4zNjEtMi4zNlY3LjUyN2EzLjg5NCAzLjg5NCAwIDAgMCAyLjM2LTIuMzYxWiIvPjwvZz48cGF0aCBkPSJNMjguOTI4IDE3LjI5NmgtMy40OTJsLS42IDEuNzA0aC0xLjQyOGwyLjk4OC04LjM1MmgxLjU4NEwzMC45NjggMTloLTEuNDRsLS42LTEuNzA0Wm0tLjM4NC0xLjExNi0xLjM1Ni0zLjg3Ni0xLjM2OCAzLjg3NmgyLjcyNFptNS4wOTEtNS41MlYxOWgtMS4zNjh2LTguMzRoMS4zNjhaIi8+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCAwaDMxdjMxSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",nt=Object.defineProperty,Ke=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,H=(Pt,on,Mn)=>on in Pt?nt(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,R=(Pt,on)=>{for(var Mn in on||(on={}))ye.call(on,Mn)&&H(Pt,Mn,on[Mn]);if(Ke)for(var Mn of Ke(on))ne.call(on,Mn)&&H(Pt,Mn,on[Mn]);return Pt};const P=Pt=>o.createElement("svg",R({viewBox:"0 0 31 31",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#polygon_svg__a)"},o.createElement("path",{d:"M27.125 23.25c-.534 0-1.042.108-1.505.303l-5.444-6.17a3.854 3.854 0 0 0-.008-3.782l5.403-6.178c.477.21 1.002.327 1.554.327A3.88 3.88 0 0 0 31 3.875 3.88 3.88 0 0 0 27.125 0a3.88 3.88 0 0 0-3.653 2.583H7.528A3.88 3.88 0 0 0 3.875 0 3.88 3.88 0 0 0 0 3.875a3.88 3.88 0 0 0 2.583 3.653v15.944A3.88 3.88 0 0 0 0 27.125 3.88 3.88 0 0 0 3.875 31a3.88 3.88 0 0 0 3.653-2.583h15.944A3.88 3.88 0 0 0 27.125 31 3.88 3.88 0 0 0 31 27.125a3.88 3.88 0 0 0-3.875-3.875ZM7.528 5.167h15.944c.06.168.132.332.213.488l-5.46 6.245a3.854 3.854 0 0 0-1.433-.275 3.88 3.88 0 0 0-3.875 3.875 3.88 3.88 0 0 0 3.875 3.875c.511 0 1-.1 1.448-.282l5.471 6.202a3.937 3.937 0 0 0-.239.538H7.528a3.894 3.894 0 0 0-2.361-2.36V7.527a3.894 3.894 0 0 0 2.36-2.361Z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"polygon_svg__a"},o.createElement("path",{d:"M0 0h31v31H0z"}))));var ae="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzEgMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjcuMTI1IDIzLjI1Yy0uNTM0IDAtMS4wNDIuMTA4LTEuNTA1LjMwM2wtNS40NDQtNi4xN2EzLjg1NCAzLjg1NCAwIDAgMC0uMDA4LTMuNzgybDUuNDAzLTYuMTc4Yy40NzcuMjEgMS4wMDIuMzI3IDEuNTU0LjMyN0EzLjg4IDMuODggMCAwIDAgMzEgMy44NzUgMy44OCAzLjg4IDAgMCAwIDI3LjEyNSAwYTMuODggMy44OCAwIDAgMC0zLjY1MyAyLjU4M0g3LjUyOEEzLjg4IDMuODggMCAwIDAgMy44NzUgMCAzLjg4IDMuODggMCAwIDAgMCAzLjg3NWEzLjg4IDMuODggMCAwIDAgMi41ODMgMy42NTN2MTUuOTQ0QTMuODggMy44OCAwIDAgMCAwIDI3LjEyNSAzLjg4IDMuODggMCAwIDAgMy44NzUgMzFhMy44OCAzLjg4IDAgMCAwIDMuNjUzLTIuNTgzaDE1Ljk0NEEzLjg4IDMuODggMCAwIDAgMjcuMTI1IDMxIDMuODggMy44OCAwIDAgMCAzMSAyNy4xMjVhMy44OCAzLjg4IDAgMCAwLTMuODc1LTMuODc1Wk03LjUyOCA1LjE2N2gxNS45NDRjLjA2LjE2OC4xMzIuMzMyLjIxMy40ODhsLTUuNDYgNi4yNDVhMy44NTQgMy44NTQgMCAwIDAtMS40MzMtLjI3NSAzLjg4IDMuODggMCAwIDAtMy44NzUgMy44NzUgMy44OCAzLjg4IDAgMCAwIDMuODc1IDMuODc1Yy41MTEgMCAxLS4xIDEuNDQ4LS4yODJsNS40NzEgNi4yMDJhMy45MzcgMy45MzcgMCAwIDAtLjIzOS41MzhINy41MjhhMy44OTQgMy44OTQgMCAwIDAtMi4zNjEtMi4zNlY3LjUyN2EzLjg5NCAzLjg5NCAwIDAgMCAyLjM2LTIuMzYxWiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",Q=Object.defineProperty,ie=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ee=(Pt,on,Mn)=>on in Pt?Q(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Me=(Pt,on)=>{for(var Mn in on||(on={}))me.call(on,Mn)&&Ee(Pt,Mn,on[Mn]);if(ie)for(var Mn of ie(on))je.call(on,Mn)&&Ee(Pt,Mn,on[Mn]);return Pt};const We=Pt=>o.createElement("svg",Me({viewBox:"0 0 29 29",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("path",{d:"M27.32 6.07a1 1 0 0 0 1-1V1.01a1 1 0 0 0-1-1.001h-4.05a1 1 0 0 0-1 1v1H6.06v-1a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1h1V22.26H1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-4.03a1 1 0 0 0-1-1h-1V6.07h1.02Zm-3 16.2h-1a1 1 0 0 0-1 1v1H6.06v-1a1 1 0 0 0-1-1h-1V6.07h1a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h1l.06 16.2Z"}),o.createElement("path",{d:"M13.928 17.305h-3.492l-.6 1.704H8.408l2.988-8.352h1.584l2.988 8.352h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52v8.34h-1.368v-8.34h1.368Z"}));var re="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjkgMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3LjMyIDYuMDdhMSAxIDAgMCAwIDEtMVYxLjAxYTEgMSAwIDAgMC0xLTEuMDAxaC00LjA1YTEgMSAwIDAgMC0xIDF2MUg2LjA2di0xYTEgMSAwIDAgMC0xLTFIMWExIDEgMCAwIDAtMSAxdjQuMDVhMSAxIDAgMCAwIDEgMWgxVjIyLjI2SDFhMSAxIDAgMCAwLTEgMXY0LjA1YTEgMSAwIDAgMCAxIDFoNC4wNWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDQuMDVhMSAxIDAgMCAwIDEtMXYtNC4wM2ExIDEgMCAwIDAtMS0xaC0xVjYuMDdoMS4wMlptLTMgMTYuMmgtMWExIDEgMCAwIDAtMSAxdjFINi4wNnYtMWExIDEgMCAwIDAtMS0xaC0xVjYuMDdoMWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDFsLjA2IDE2LjJaIi8+PHBhdGggZD0iTTEzLjkyOCAxNy4zMDVoLTMuNDkybC0uNiAxLjcwNEg4LjQwOGwyLjk4OC04LjM1MmgxLjU4NGwyLjk4OCA4LjM1MmgtMS40NGwtLjYtMS43MDRabS0uMzg0LTEuMTE2LTEuMzU2LTMuODc2LTEuMzY4IDMuODc2aDIuNzI0Wm01LjA5MS01LjUydjguMzRoLTEuMzY4di04LjM0aDEuMzY4WiIvPjwvc3ZnPg==",se=Object.defineProperty,J=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ce=(Pt,on,Mn)=>on in Pt?se(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Le=(Pt,on)=>{for(var Mn in on||(on={}))de.call(on,Mn)&&ce(Pt,Mn,on[Mn]);if(J)for(var Mn of J(on))xe.call(on,Mn)&&ce(Pt,Mn,on[Mn]);return Pt};const Oe=Pt=>o.createElement("svg",Le({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Pt),o.createElement("path",{className:"rectangle_svg__cls-1",d:"M30.17 8.91a1 1 0 0 0 1-1V3.85a1 1 0 0 0-1-1h-4.05a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1H3.85a1 1 0 0 0-1 1V7.9a1 1 0 0 0 1 1h1v16.2h-1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1H7.9a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-4.03a1 1 0 0 0-1-1h-1V8.91Zm-3 16.2h-1a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1h-1V8.91h1a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h1Z"}),o.createElement("path",{className:"rectangle_svg__cls-2",fill:"none",d:"M2.83 2.83h28.35v28.35H2.83z"}));var we="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMzAuMTcgOC45MWExIDEgMCAwIDAgMS0xVjMuODVhMSAxIDAgMCAwLTEtMWgtNC4wNWExIDEgMCAwIDAtMSAxdjFIOC45MXYtMWExIDEgMCAwIDAtMS0xSDMuODVhMSAxIDAgMCAwLTEgMVY3LjlhMSAxIDAgMCAwIDEgMWgxdjE2LjJoLTFhMSAxIDAgMCAwLTEgMXY0LjA1YTEgMSAwIDAgMCAxIDFINy45YTEgMSAwIDAgMCAxLTF2LTFoMTYuMnYxYTEgMSAwIDAgMCAxIDFoNC4wNWExIDEgMCAwIDAgMS0xdi00LjAzYTEgMSAwIDAgMC0xLTFoLTFWOC45MVptLTMgMTYuMmgtMWExIDEgMCAwIDAtMSAxdjFIOC45MXYtMWExIDEgMCAwIDAtMS0xaC0xVjguOTFoMWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDFaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBmaWxsPSJub25lIiBkPSJNMi44MyAyLjgzaDI4LjM1djI4LjM1SDIuODN6Ii8+PC9zdmc+",Ne=Object.defineProperty,st=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ke=(Pt,on,Mn)=>on in Pt?Ne(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Be=(Pt,on)=>{for(var Mn in on||(on={}))et.call(on,Mn)&&ke(Pt,Mn,on[Mn]);if(st)for(var Mn of st(on))Ye.call(on,Mn)&&ke(Pt,Mn,on[Mn]);return Pt};const it=Pt=>o.createElement("svg",Be({className:"redo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"m1017.173 430.08-477.866-307.2c-6.827-3.413-13.654-3.413-17.067 0-6.827 3.413-10.24 6.827-10.24 13.653v187.734c-341.333 10.24-508.587 337.92-512 563.2v3.413c0 6.827 6.827 13.653 17.067 13.653s17.066-6.826 17.066-17.066c3.414-51.2 228.694-279.894 477.867-290.134v187.734c0 6.826 3.413 13.653 10.24 13.653 6.827 3.413 13.653 3.413 17.067 0l477.866-341.333c3.414-3.414 6.827-10.24 6.827-13.654s-3.413-10.24-6.827-13.653z",fill:"#fff"}));var Ve="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Im0xMDE3LjE3MyA0MzAuMDgtNDc3Ljg2Ni0zMDcuMmMtNi44MjctMy40MTMtMTMuNjU0LTMuNDEzLTE3LjA2NyAwLTYuODI3IDMuNDEzLTEwLjI0IDYuODI3LTEwLjI0IDEzLjY1M3YxODcuNzM0Yy0zNDEuMzMzIDEwLjI0LTUwOC41ODcgMzM3LjkyLTUxMiA1NjMuMnYzLjQxM2MwIDYuODI3IDYuODI3IDEzLjY1MyAxNy4wNjcgMTMuNjUzczE3LjA2Ni02LjgyNiAxNy4wNjYtMTcuMDY2YzMuNDE0LTUxLjIgMjI4LjY5NC0yNzkuODk0IDQ3Ny44NjctMjkwLjEzNHYxODcuNzM0YzAgNi44MjYgMy40MTMgMTMuNjUzIDEwLjI0IDEzLjY1MyA2LjgyNyAzLjQxMyAxMy42NTMgMy40MTMgMTcuMDY3IDBsNDc3Ljg2Ni0zNDEuMzMzYzMuNDE0LTMuNDE0IDYuODI3LTEwLjI0IDYuODI3LTEzLjY1NHMtMy40MTMtMTAuMjQtNi44MjctMTMuNjUzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",xt=Object.defineProperty,Ht=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,_t=(Pt,on,Mn)=>on in Pt?xt(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,yt=(Pt,on)=>{for(var Mn in on||(on={}))Ot.call(on,Mn)&&_t(Pt,Mn,on[Mn]);if(Ht)for(var Mn of Ht(on))wt.call(on,Mn)&&_t(Pt,Mn,on[Mn]);return Pt};const ze=Pt=>o.createElement("svg",yt({className:"repeat_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"M0 448c0 35.4 28.6 64 64 64s64-28.6 64-64c0-106 86-192 192-192h320v64c0 25.8 15.6 49.2 39.6 59.2s51.4 4.4 69.8-13.8l128-128c25-25 25-65.6 0-90.6l-128-128C731 .4 703.6-5 679.6 5S640 38.2 640 64v64H320C143.2 128 0 271.2 0 448zm1024 128c0-35.4-28.6-64-64-64s-64 28.6-64 64c0 106-86 192-192 192H384v-64c0-25.8-15.6-49.2-39.6-59.2s-51.4-4.4-69.8 13.8l-128 128c-25 25-25 65.6 0 90.6l128 128c18.4 18.4 45.8 23.8 69.8 13.8s39.6-33.2 39.6-59.2V896h320c176.8 0 320-143.2 320-320z",fill:"#fff"}));var tt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0wIDQ0OGMwIDM1LjQgMjguNiA2NCA2NCA2NHM2NC0yOC42IDY0LTY0YzAtMTA2IDg2LTE5MiAxOTItMTkyaDMyMHY2NGMwIDI1LjggMTUuNiA0OS4yIDM5LjYgNTkuMnM1MS40IDQuNCA2OS44LTEzLjhsMTI4LTEyOGMyNS0yNSAyNS02NS42IDAtOTAuNmwtMTI4LTEyOEM3MzEgLjQgNzAzLjYtNSA2NzkuNiA1UzY0MCAzOC4yIDY0MCA2NHY2NEgzMjBDMTQzLjIgMTI4IDAgMjcxLjIgMCA0NDh6bTEwMjQgMTI4YzAtMzUuNC0yOC42LTY0LTY0LTY0cy02NCAyOC42LTY0IDY0YzAgMTA2LTg2IDE5Mi0xOTIgMTkySDM4NHYtNjRjMC0yNS44LTE1LjYtNDkuMi0zOS42LTU5LjJzLTUxLjQtNC40LTY5LjggMTMuOGwtMTI4IDEyOGMtMjUgMjUtMjUgNjUuNiAwIDkwLjZsMTI4IDEyOGMxOC40IDE4LjQgNDUuOCAyMy44IDY5LjggMTMuOHMzOS42LTMzLjIgMzkuNi01OS4yVjg5NmgzMjBjMTc2LjggMCAzMjAtMTQzLjIgMzIwLTMyMHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",St=Object.defineProperty,lt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,At=(Pt,on,Mn)=>on in Pt?St(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,Ie=(Pt,on)=>{for(var Mn in on||(on={}))Gt.call(on,Mn)&&At(Pt,Mn,on[Mn]);if(lt)for(var Mn of lt(on))Nt.call(on,Mn)&&At(Pt,Mn,on[Mn]);return Pt};const Se=Pt=>o.createElement("svg",Ie({viewBox:"0 0 31 35",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#skeleton-ai_svg__a)"},o.createElement("path",{d:"M25.833 19.5a5.161 5.161 0 0 0-4.097 2.023l-.09-.039a6.459 6.459 0 0 0-7.762-8.237l-.118-.222a5.16 5.16 0 1 0-2.297 1.18l.094.176a6.448 6.448 0 0 0-1.465 8.654l-2.435 2.277a5.167 5.167 0 1 0 1.88 1.78l2.374-2.22a6.45 6.45 0 0 0 8.446-1.125l.36.154a5.167 5.167 0 1 0 5.11-4.401ZM7.75 9.167a2.583 2.583 0 1 1 5.167 0 2.583 2.583 0 0 1-5.167 0Zm-2.583 23.25a2.583 2.583 0 1 1 0-5.166 2.583 2.583 0 0 1 0 5.166ZM15.5 23.375a3.874 3.874 0 0 1-2.067-7.148l.526-.28a3.876 3.876 0 1 1 1.54 7.428Zm10.333 3.875a2.583 2.583 0 1 1 0-5.165 2.583 2.583 0 0 1 0 5.165Z"})),o.createElement("path",{d:"M24.928 11.296h-3.492l-.6 1.704h-1.428l2.988-8.352h1.584L26.968 13h-1.44l-.6-1.704Zm-.384-1.116-1.356-3.876-1.368 3.876h2.724Zm5.091-5.52V13h-1.368V4.66h1.368Z"}),o.createElement("defs",null,o.createElement("clipPath",{id:"skeleton-ai_svg__a"},o.createElement("path",{transform:"translate(0 4)",d:"M0 0h31v31H0z"}))));var bt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzEgMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjUuODMzIDE5LjVhNS4xNjEgNS4xNjEgMCAwIDAtNC4wOTcgMi4wMjNsLS4wOS0uMDM5YTYuNDU5IDYuNDU5IDAgMCAwLTcuNzYyLTguMjM3bC0uMTE4LS4yMjJhNS4xNiA1LjE2IDAgMSAwLTIuMjk3IDEuMThsLjA5NC4xNzZhNi40NDggNi40NDggMCAwIDAtMS40NjUgOC42NTRsLTIuNDM1IDIuMjc3YTUuMTY3IDUuMTY3IDAgMSAwIDEuODggMS43OGwyLjM3NC0yLjIyYTYuNDUgNi40NSAwIDAgMCA4LjQ0Ni0xLjEyNWwuMzYuMTU0YTUuMTY3IDUuMTY3IDAgMSAwIDUuMTEtNC40MDFaTTcuNzUgOS4xNjdhMi41ODMgMi41ODMgMCAxIDEgNS4xNjcgMCAyLjU4MyAyLjU4MyAwIDAgMS01LjE2NyAwWm0tMi41ODMgMjMuMjVhMi41ODMgMi41ODMgMCAxIDEgMC01LjE2NiAyLjU4MyAyLjU4MyAwIDAgMSAwIDUuMTY2Wk0xNS41IDIzLjM3NWEzLjg3NCAzLjg3NCAwIDAgMS0yLjA2Ny03LjE0OGwuNTI2LS4yOGEzLjg3NiAzLjg3NiAwIDEgMSAxLjU0IDcuNDI4Wm0xMC4zMzMgMy44NzVhMi41ODMgMi41ODMgMCAxIDEgMC01LjE2NSAyLjU4MyAyLjU4MyAwIDAgMSAwIDUuMTY1WiIvPjwvZz48cGF0aCBkPSJNMjQuOTI4IDExLjI5NmgtMy40OTJsLS42IDEuNzA0aC0xLjQyOGwyLjk4OC04LjM1MmgxLjU4NEwyNi45NjggMTNoLTEuNDRsLS42LTEuNzA0Wm0tLjM4NC0xLjExNi0xLjM1Ni0zLjg3Ni0xLjM2OCAzLjg3NmgyLjcyNFptNS4wOTEtNS41MlYxM2gtMS4zNjhWNC42NmgxLjM2OFoiLz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgNCkiIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",jt=Object.defineProperty,He=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Zt=(Pt,on,Mn)=>on in Pt?jt(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,qt=(Pt,on)=>{for(var Mn in on||(on={}))qe.call(on,Mn)&&Zt(Pt,Mn,on[Mn]);if(He)for(var Mn of He(on))$t.call(on,Mn)&&Zt(Pt,Mn,on[Mn]);return Pt};const un=Pt=>o.createElement("svg",qt({viewBox:"0 0 31 31",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#skeleton_svg__a)"},o.createElement("path",{d:"M25.833 15.5a5.161 5.161 0 0 0-4.097 2.023l-.09-.039a6.459 6.459 0 0 0-7.762-8.237l-.118-.222a5.16 5.16 0 1 0-2.297 1.18l.094.176a6.448 6.448 0 0 0-1.465 8.654l-2.435 2.277a5.167 5.167 0 1 0 1.88 1.78l2.374-2.22a6.45 6.45 0 0 0 8.446-1.125l.36.154a5.167 5.167 0 1 0 5.11-4.401ZM7.75 5.167a2.583 2.583 0 1 1 5.167 0 2.583 2.583 0 0 1-5.167 0Zm-2.583 23.25a2.583 2.583 0 1 1 0-5.166 2.583 2.583 0 0 1 0 5.166ZM15.5 19.375a3.874 3.874 0 0 1-2.067-7.148l.526-.28a3.876 3.876 0 1 1 1.54 7.428Zm10.333 3.875a2.583 2.583 0 1 1 0-5.165 2.583 2.583 0 0 1 0 5.165Z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"skeleton_svg__a"},o.createElement("path",{d:"M0 0h31v31H0z"}))));var xn="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzEgMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjUuODMzIDE1LjVhNS4xNjEgNS4xNjEgMCAwIDAtNC4wOTcgMi4wMjNsLS4wOS0uMDM5YTYuNDU5IDYuNDU5IDAgMCAwLTcuNzYyLTguMjM3bC0uMTE4LS4yMjJhNS4xNiA1LjE2IDAgMSAwLTIuMjk3IDEuMThsLjA5NC4xNzZhNi40NDggNi40NDggMCAwIDAtMS40NjUgOC42NTRsLTIuNDM1IDIuMjc3YTUuMTY3IDUuMTY3IDAgMSAwIDEuODggMS43OGwyLjM3NC0yLjIyYTYuNDUgNi40NSAwIDAgMCA4LjQ0Ni0xLjEyNWwuMzYuMTU0YTUuMTY3IDUuMTY3IDAgMSAwIDUuMTEtNC40MDFaTTcuNzUgNS4xNjdhMi41ODMgMi41ODMgMCAxIDEgNS4xNjcgMCAyLjU4MyAyLjU4MyAwIDAgMS01LjE2NyAwWm0tMi41ODMgMjMuMjVhMi41ODMgMi41ODMgMCAxIDEgMC01LjE2NiAyLjU4MyAyLjU4MyAwIDAgMSAwIDUuMTY2Wk0xNS41IDE5LjM3NWEzLjg3NCAzLjg3NCAwIDAgMS0yLjA2Ny03LjE0OGwuNTI2LS4yOGEzLjg3NiAzLjg3NiAwIDEgMSAxLjU0IDcuNDI4Wm0xMC4zMzMgMy44NzVhMi41ODMgMi41ODMgMCAxIDEgMC01LjE2NSAyLjU4MyAyLjU4MyAwIDAgMSAwIDUuMTY1WiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0wIDBoMzF2MzFIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",pn=Object.defineProperty,Gn=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,br=(Pt,on,Mn)=>on in Pt?pn(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,zt=(Pt,on)=>{for(var Mn in on||(on={}))Qn.call(on,Mn)&&br(Pt,Mn,on[Mn]);if(Gn)for(var Mn of Gn(on))ur.call(on,Mn)&&br(Pt,Mn,on[Mn]);return Pt};const en=Pt=>o.createElement("svg",zt({viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#text-prompt_svg__a)"},o.createElement("path",{d:"M24.5 49C38.031 49 49 38.031 49 24.5S38.031 0 24.5 0 0 10.969 0 24.5 10.969 49 24.5 49Z",fill:"#CCDCFF"}),o.createElement("path",{d:"M4.64 16.275v16.45H24.5l9.93-8.225-9.93-8.225H4.64Z",fill:"#fff"}),o.createElement("path",{d:"M24.5 16.275h19.86v16.45H24.5v-16.45Z",fill:"#E8E8E8"}),o.createElement("path",{d:"M15.06 13.87v-3.243H6.646v3.242h2.586v21.262H6.646v3.242h8.414v-3.242h-2.585V13.869h2.585Z",fill:"#5C5B68"}),o.createElement("path",{d:"M15.69 26.757h6.247v2.871H15.69v-2.87Z",fill:"#397DEA"}),o.createElement("path",{d:"M25.24 26.757h6.247v2.871H25.24v-2.87ZM34.79 26.757h6.247v2.871H34.79v-2.87Z",fill:"#2C5DBF"})),o.createElement("defs",null,o.createElement("clipPath",{id:"text-prompt_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h49v49H0z"}))));var an="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDkgNDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjQuNSA0OUMzOC4wMzEgNDkgNDkgMzguMDMxIDQ5IDI0LjVTMzguMDMxIDAgMjQuNSAwIDAgMTAuOTY5IDAgMjQuNSAxMC45NjkgNDkgMjQuNSA0OVoiIGZpbGw9IiNDQ0RDRkYiLz48cGF0aCBkPSJNNC42NCAxNi4yNzV2MTYuNDVIMjQuNWw5LjkzLTguMjI1LTkuOTMtOC4yMjVINC42NFoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMjQuNSAxNi4yNzVoMTkuODZ2MTYuNDVIMjQuNXYtMTYuNDVaIiBmaWxsPSIjRThFOEU4Ii8+PHBhdGggZD0iTTE1LjA2IDEzLjg3di0zLjI0M0g2LjY0NnYzLjI0MmgyLjU4NnYyMS4yNjJINi42NDZ2My4yNDJoOC40MTR2LTMuMjQyaC0yLjU4NVYxMy44NjloMi41ODVaIiBmaWxsPSIjNUM1QjY4Ii8+PHBhdGggZD0iTTE1LjY5IDI2Ljc1N2g2LjI0N3YyLjg3MUgxNS42OXYtMi44N1oiIGZpbGw9IiMzOTdERUEiLz48cGF0aCBkPSJNMjUuMjQgMjYuNzU3aDYuMjQ3djIuODcxSDI1LjI0di0yLjg3Wk0zNC43OSAyNi43NTdoNi4yNDd2Mi44NzFIMzQuNzl2LTIuODdaIiBmaWxsPSIjMkM1REJGIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg0OXY0OUgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==",vn=Object.defineProperty,An=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,gt=(Pt,on,Mn)=>on in Pt?vn(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,ln=(Pt,on)=>{for(var Mn in on||(on={}))sn.call(on,Mn)&>(Pt,Mn,on[Mn]);if(An)for(var Mn of An(on))mt.call(on,Mn)&>(Pt,Mn,on[Mn]);return Pt};const Qt=Pt=>o.createElement("svg",ln({className:"undo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Pt),o.createElement("path",{d:"M512 324.267V136.533c0-6.826-3.413-13.653-10.24-13.653-6.827-3.413-13.653-3.413-17.067 0L6.827 430.08C3.413 433.493 0 436.907 0 443.733s3.413 10.24 6.827 13.654L484.693 798.72c6.827 3.413 13.654 3.413 17.067 0 6.827-3.413 10.24-10.24 10.24-13.653V597.333c249.173 10.24 474.453 235.52 477.867 290.134 0 10.24 6.826 17.066 17.066 17.066S1024 897.707 1024 887.467c-3.413-225.28-170.667-552.96-512-563.2z",fill:"#fff"}));var tn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI0LjI2N1YxMzYuNTMzYzAtNi44MjYtMy40MTMtMTMuNjUzLTEwLjI0LTEzLjY1My02LjgyNy0zLjQxMy0xMy42NTMtMy40MTMtMTcuMDY3IDBMNi44MjcgNDMwLjA4QzMuNDEzIDQzMy40OTMgMCA0MzYuOTA3IDAgNDQzLjczM3MzLjQxMyAxMC4yNCA2LjgyNyAxMy42NTRMNDg0LjY5MyA3OTguNzJjNi44MjcgMy40MTMgMTMuNjU0IDMuNDEzIDE3LjA2NyAwIDYuODI3LTMuNDEzIDEwLjI0LTEwLjI0IDEwLjI0LTEzLjY1M1Y1OTcuMzMzYzI0OS4xNzMgMTAuMjQgNDc0LjQ1MyAyMzUuNTIgNDc3Ljg2NyAyOTAuMTM0IDAgMTAuMjQgNi44MjYgMTcuMDY2IDE3LjA2NiAxNy4wNjZTMTAyNCA4OTcuNzA3IDEwMjQgODg3LjQ2N2MtMy40MTMtMjI1LjI4LTE3MC42NjctNTUyLjk2LTUxMi01NjMuMnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",yn=Object.defineProperty,gn=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,ut=(Pt,on,Mn)=>on in Pt?yn(Pt,on,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Pt[on]=Mn,ct=(Pt,on)=>{for(var Mn in on||(on={}))_n.call(on,Mn)&&ut(Pt,Mn,on[Mn]);if(gn)for(var Mn of gn(on))nr.call(on,Mn)&&ut(Pt,Mn,on[Mn]);return Pt};const It=Pt=>o.createElement("svg",ct({viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pt),o.createElement("g",{clipPath:"url(#visual-prompt_svg__a)"},o.createElement("path",{d:"M24.5 49C38.031 49 49 38.031 49 24.5S38.031 0 24.5 0 0 10.969 0 24.5 10.969 49 24.5 49Z",fill:"#CCDCFF"}),o.createElement("path",{d:"M24.5 40.84h-2.393v-7.178H24.5l.808 3.648-.808 3.53Z",fill:"#87ADFF"}),o.createElement("path",{d:"M24.5 33.662h2.393v7.177H24.5v-7.177Z",fill:"#165DFF"}),o.createElement("path",{d:"M24.5 42.514h-5.742V40.6H24.5l.642.957-.642.957Z",fill:"#165DFF"}),o.createElement("path",{d:"M24.5 40.6h5.742v1.914H24.5V40.6Z",fill:"#0E57FF"}),o.createElement("path",{d:"M25.765 23.118 24.5 13.32H6.316v18.183l18.184.563 1.265-8.948Z",fill:"#fff"}),o.createElement("path",{d:"M24.5 13.32v18.746l18.184-.563V13.32H24.5Z",fill:"#EAEDF4"}),o.createElement("path",{d:"m24.5 33.896.808-1.196-.808-1.197H6.316v2.393H24.5Z",fill:"#165DFF"}),o.createElement("path",{d:"M24.5 31.503h18.184v2.393H24.5v-2.393Z",fill:"#0E57FF"}),o.createElement("path",{d:"m36.198 24.423-3.163-1.054 1.055 3.163.527-.527 1.912 1.912 1.054-1.055-1.912-1.912.527-.527Z",fill:"#5C5B68"}),o.createElement("path",{d:"m19.034 19.3 3.474.608 1.992 2.548 1.48 2.73-1.48 3.517-5.466-3.156V19.3Z",fill:"#87ADFF"}),o.createElement("path",{d:"M29.966 25.547v-6.311l-3.399.786-2.067 2.434v6.247l5.466-3.156Z",fill:"#165DFF"}),o.createElement("path",{d:"m19.034 19.3 5.466 3.156 1.241-3.33L24.5 16.08l-5.466 3.22Z",fill:"#C1D4FD"}),o.createElement("path",{d:"M24.5 16.08v6.376l5.466-3.22L24.5 16.08Z",fill:"#A9C3FC"})),o.createElement("defs",null,o.createElement("clipPath",{id:"visual-prompt_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h49v49H0z"}))));var Ct="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDkgNDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMjQuNSA0OUMzOC4wMzEgNDkgNDkgMzguMDMxIDQ5IDI0LjVTMzguMDMxIDAgMjQuNSAwIDAgMTAuOTY5IDAgMj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4IDMuNTE3LTUuNDY2LTMuMTU2VjE5LjNaIiBmaWxsPSIjODdBREZGIi8+PHBhdGggZD0iTTI5Ljk2NiAyNS41NDd2LTYuMzExbC0zLjM5OS43ODYtMi4wNjcgMi40MzR2Ni4yNDdsNS40NjYtMy4xNTZaIiBmaWxsPSIjMTY1REZGIi8+PHBhdGggZD0ibTE5LjAzNCAxOS4zIDUuNDY2IDMuMTU2IDEuMjQxLTMuMzNMMjQuNSAxNi4wOGwtNS40NjYgMy4yMloiIGZpbGw9IiNDMUQ0RkQiLz48cGF0aCBkPSJNMjQuNSAxNi4wOHY2LjM3Nmw1LjQ2Ni0zLjIyTDI0LjUgMTYuMDhaIiBmaWxsPSIjQTlDM0ZDIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg0OXY0OUgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==",Ut,cn,rn,Dn,Bn,Cr,rr,$n=function(Pt){return Pt.showAnnotations="showAnnotations",Pt.showAllCategory="showAllCategory",Pt.showImgDesc="showImgDesc",Pt.showBoxText="showBoxText",Pt.showSegFilling="showSegFilling",Pt.showSegContour="showSegContour",Pt.showMattingColorFill="showMattingColorFill",Pt.showKeyPointsLine="showKeyPointsLine",Pt.showKeyPointsBox="showKeyPointsBox",Pt}({}),kr=function(Pt){return Pt.Waiting="waiting",Pt.Running="running",Pt.Success="success",Pt.Failed="failed",Pt}({}),Mr=.1,ia=20,zr=.5,Wn=.1,wn=function(Pt){return Pt.Rectangle="rect",Pt.Polygon="polygon",Pt.Mask="mask",Pt.Skeleton="coco_keypoints_17",Pt.Classification="classification",Pt}({}),Rn=function(Pt){return Pt.Custom="Custom",Pt.Classification="Classification",Pt.Rectangle="Rectangle",Pt.Polygon="Polygon",Pt.Skeleton="Skeleton",Pt.Mask="Mask",Pt.Matting="Matting",Pt.Point="Point",Pt.Polyline="Polyline",Pt}({}),sr=function(Pt){return Pt.Rect="rect",Pt.Circle="circle",Pt.Polygon="polygon",Pt.None="none",Pt}({}),Er=function(Pt){return Pt.Drag="Drag",Pt.Rectangle="Rect",Pt.Polygon="Polygon",Pt.Skeleton="Skeleton",Pt.Mask="Mask",Pt}({}),Kr=function(Pt){return Pt.PenAdd="PenAdd",Pt.PenErase="PenErase",Pt.BrushAdd="BrushAdd",Pt.BrushErase="BrushErase",Pt.AutoSegmentByBox="AutoSegmentByBox",Pt.AutoSegmentByClick="AutoSegmentByClick",Pt.AutoSegmentByStroke="AutoSegmentByStroke",Pt.AutoSegmentEverything="AutoSegmentEverything",Pt.AutoEdgeStitching="AutoEdgeStitching",Pt.PositiveVisualPrompt="PositiveVisualPrompt",Pt.NegativeVisualPrompt="NegativeVisualPrompt",Pt}({}),ta=function(Pt){return Pt.SmartAnnotation="SmartAnnotation",Pt.Undo="Undo",Pt.Redo="Redo",Pt.RepeatPrevious="RepeatPrevious",Pt.DeleteAll="DeleteAll",Pt}({}),ga=(Ut={},t()(Ut,Er.Drag,Rn.Custom),t()(Ut,Er.Rectangle,Rn.Rectangle),t()(Ut,Er.Polygon,Rn.Polygon),t()(Ut,Er.Skeleton,Rn.Skeleton),t()(Ut,Er.Mask,Rn.Mask),Ut),pr=function(Pt){return Pt.Detection="ai_detection",Pt.IVP="ivp",Pt.SegmentByPolygon="ai_polygon",Pt.SegmentByMask="ai_segmentation_mask",Pt.Pose="ai_pose",Pt.MaskEdgeStitching="ai_mask_edge_stitching",Pt.SegmentEverything="ai_segment_everything",Pt}({}),Ur=(cn={},t()(cn,Er.Drag,[]),t()(cn,Er.Rectangle,[pr.Detection,pr.IVP]),t()(cn,Er.Polygon,[pr.SegmentByPolygon]),t()(cn,Er.Mask,[pr.SegmentEverything,pr.SegmentByMask,pr.IVP]),t()(cn,Er.Skeleton,[pr.Pose]),cn),Ma=(rn={},t()(rn,pr.Detection,{name:"DDSAnnotator.smart.gdino.name",icon:en,description:"DDSAnnotator.smart.gdino.desc",hightlight:!1}),t()(rn,pr.IVP,{name:"DDSAnnotator.smart.ivp.name",icon:It,description:"DDSAnnotator.smart.ivp.desc",hightlight:!0}),t()(rn,pr.SegmentEverything,{name:"DDSAnnotator.smart.sam.name",icon:It,description:"DDSAnnotator.smart.sam.desc",hightlight:!1}),t()(rn,pr.SegmentByMask,{name:"DDSAnnotator.smart.isg.name",icon:It,description:"DDSAnnotator.smart.isg.desc",hightlight:!1}),rn),ma=(Dn={},t()(Dn,wn.Rectangle,Er.Rectangle),t()(Dn,wn.Polygon,Er.Polygon),t()(Dn,wn.Mask,Er.Mask),t()(Dn,wn.Skeleton,Er.Skeleton),Dn),Yn=(Bn={},t()(Bn,Rn.Rectangle,Oe),t()(Bn,Rn.Skeleton,un),t()(Bn,Rn.Polygon,P),t()(Bn,Rn.Mask,Te),t()(Bn,Rn.Matting,Te),t()(Bn,Rn.Point,g),t()(Bn,Rn.Polyline,g),t()(Bn,Rn.Custom,g),t()(Bn,Rn.Classification,g),Bn),Zn=(Cr={},t()(Cr,Rn.Rectangle,We),t()(Cr,Rn.Skeleton,Se),t()(Cr,Rn.Polygon,$e),t()(Cr,Rn.Mask,_),Cr),Sr=(rr={},t()(rr,ta.SmartAnnotation,te),t()(rr,ta.Undo,Qt),t()(rr,ta.Redo,it),t()(rr,ta.RepeatPrevious,ze),t()(rr,ta.DeleteAll,N),rr),Xr=function(Pt){return Pt[Pt.noLabeled=0]="noLabeled",Pt[Pt.labeledNotVisible=1]="labeledNotVisible",Pt[Pt.labeledVisible=2]="labeledVisible",Pt}({}),wr={categoryName:"person",boundingBox:{xmax:.44072164948453607,xmin:.2654639175257732,ymax:.5698739977090492,ymin:.09335624284077892},points:[175.25773195876286,61.21134020618557,0,1,2,1,179.9828178694158,41.45189003436426,0,1,2,1,170.96219931271477,41.881443298969074,0,1,2,1,189.86254295532646,51.33161512027492,0,1,2,1,163.23024054982818,50.47250859106529,0,1,2,1,192.86941580756016,68.08419243986253,0,1,2,1,158.295150820924,67.63982699371964,0,1,2,1,202.74914089347078,99.87113402061856,0,1,2,1,150.34364261168383,99.87113402061856,0,1,2,1,208.76288659793815,127.36254295532646,0,1,2,1,142.61168384879724,129.0807560137457,0,1,2,1,182.13058419243984,126.50343642611685,0,1,2,1,162.2279495990836,125.4739898092191,0,1,2,1,184.70790378006873,175.4725085910653,0,1,2,1,158.78675066819395,176.9759450171821,0,1,2,1,190.29209621993127,208.11855670103094,0,1,2,1,152.92096219931273,206.82989690721652,0,1,2,1],lines:[15,13,13,11,16,14,14,12,11,12,5,11,6,12,5,6,5,7,6,8,7,9,8,10,1,2,0,1,0,2,1,3,2,4,3,5,4,6],pointColors:["128","0","0","255","178","102","230","230","0","255","51","255","153","204","255","255","128","0","0","255","255","128","0","255","51","153","255","169","165","139","255","0","0","102","255","102","184","97","134","128","128","0","255","190","255","0","128","0","0","0","255"],pointNames:["nose","left_eye","right_eye","left_ear","right_ear","left_shoulder","right_shoulder","left_elbow","right_elbow","left_wrist","right_wrist","left_hip","right_hip","left_knee","right_knee","left_ankle","right_ankle"]}},34095:function(b,y,e){"use strict";e.d(y,{$k:function(){return S},Bt:function(){return m},CJ:function(){return g},XQ:function(){return c},cj:function(){return h},lz:function(){return M},mh:function(){return n},rl:function(){return d},s_:function(){return l}});var a=e(2657),t=e.n(a),o=e(50910),s,n={DEFAULT:0,DEFAULT_SHAPE:.35,CREATING:0,JUST_CREATED:.5,FOCUS:.6,CTRL_TO_SELECT:.1,OTHER:0},d={DEFAULT:1,CREATING:1,CREATING_LINE:.8,FOCUS:1,ACTIVE:1,OTHER:.3},l={CREATING:.7,FOCUS:.7,JUST_CREATED:.5,DEFAULT:.35},c={CREATING:"#fff"},m={CREATING:"transparent",CREATING_POSITIVE:"#2876d4",CREATING_NEGATIVE:"#e91d00"},g={POSITIVE:"rgba(1, 128, 0, 1)",NEGATIVE:"rgba(255, 3, 0, 1)"},M={POSITIVE:"rgba(1, 128, 0, 0.6)",NEGATIVE:"rgba(255, 3, 0, 0.6)"},h=(s={},t()(s,o.SP.Solid,{lineDash:[],thickness:2}),t()(s,o.SP.DoubleSolid,{lineDash:[],thickness:4}),t()(s,o.SP.LCurbside,{lineDash:[],thickness:2}),t()(s,o.SP.RCurbside,{lineDash:[],thickness:2}),t()(s,o.SP.Unknown,{lineDash:[],thickness:2}),t()(s,o.SP.Dashed,{lineDash:[4,4],thickness:2}),t()(s,o.SP.DoubleDashed,{lineDash:[4,4],thickness:4}),t()(s,o.SP.LDashedRSolid,{lineDash:[4,8,4,8,16,4],thickness:4}),t()(s,o.SP.LSolidRDashed,{lineDash:[4,8,16,4],thickness:4}),s),S={Yellow:"#d97945",White:"#de1760",Other:"#72af44"}},33010:function(b,y,e){"use strict";e.d(y,{kl:function(){return Cs},j5:function(){return Su},D5:function(){return nl},je:function(){return W.je}});var a=e(63900),t=e.n(a),o=e(88205),s=e.n(o),n=e(62109),d=e(73267),l=e(87608),c=e.n(l),m=e(39378),g=e(58757),M=e(65246),h=e(52495),S=e(84045),w=e(18624),C=e(12562),F=e(53357),Z=function(he){return he==null||he===""||Array.isArray(he)&&he.length===0},N=e(47513),L=e(74820),$=e(10852),D=e(38904),T=e(21149),j=Object.defineProperty,K=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(Ue,he,Pe)=>he in Ue?j(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,q=(Ue,he)=>{for(var Pe in he||(he={}))k.call(he,Pe)&&V(Ue,Pe,he[Pe]);if(K)for(var Pe of K(he))te.call(he,Pe)&&V(Ue,Pe,he[Pe]);return Ue};const le=Ue=>g.createElement("svg",q({viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M16.625 4.375v12.25H4.375V4.375h12.25ZM3.5 2.625c-.438 0-.875.438-.875.875v14c0 .525.35.875.875.875h14c.525 0 .875-.35.875-.875v-14c0-.525-.35-.875-.875-.875h-14Z"}),g.createElement("path",{d:"M14.875 7.788c0-.525-.35-.875-.875-.875H9.625v-.438A.877.877 0 0 0 8.75 5.6c-.525 0-.875.35-.875.875v.438H7c-.525 0-.875.35-.875.875s.35.875.875.875h.875V9.1c0 .525.35.875.875.875s.875-.35.875-.875v-.437H14c.525 0 .875-.35.875-.875ZM6.125 13.3c0 .525.35.875.875.875h4.375v.438c0 .525.438.875.875.875.525 0 .875-.35.875-.875v-.438H14c.525 0 .875-.35.875-.875s-.35-.875-.875-.875h-.875v-.437c0-.525-.35-.875-.875-.875s-.875.35-.875.875v.437H7a.877.877 0 0 0-.875.875Z"}));var X="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjEgMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2LjYyNSA0LjM3NXYxMi4yNUg0LjM3NVY0LjM3NWgxMi4yNVpNMy41IDIuNjI1Yy0uNDM4IDAtLjg3NS40MzgtLjg3NS44NzV2MTRjMCAuNTI1LjM1Ljg3NS44NzUuODc1aDE0Yy41MjUgMCAuODc1LS4zNS44NzUtLjg3NXYtMTRjMC0uNTI1LS4zNS0uODc1LS44NzUtLjg3NWgtMTRaIi8+PHBhdGggZD0iTTE0Ljg3NSA3Ljc4OGMwLS41MjUtLjM1LS44NzUtLjg3NS0uODc1SDkuNjI1di0uNDM4QS44NzcuODc3IDAgMCAwIDguNzUgNS42Yy0uNTI1IDAtLjg3NS4zNS0uODc1Ljg3NXYuNDM4SDdjLS41MjUgMC0uODc1LjM1LS44NzUuODc1cy4zNS44NzUuODc1Ljg3NWguODc1VjkuMWMwIC41MjUuMzUuODc1Ljg3NS44NzVzLjg3NS0uMzUuODc1LS44NzV2LS40MzdIMTRjLjUyNSAwIC44NzUtLjM1Ljg3NS0uODc1Wk02LjEyNSAxMy4zYzAgLjUyNS4zNS44NzUuODc1Ljg3NWg0LjM3NXYuNDM4YzAgLjUyNS40MzguODc1Ljg3NS44NzUuNTI1IDAgLjg3NS0uMzUuODc1LS44NzV2LS40MzhIMTRjLjUyNSAwIC44NzUtLjM1Ljg3NS0uODc1cy0uMzUtLjg3NS0uODc1LS44NzVoLS44NzV2LS40MzdjMC0uNTI1LS4zNS0uODc1LS44NzUtLjg3NXMtLjg3NS4zNS0uODc1Ljg3NXYuNDM3SDdhLjg3Ny44NzcgMCAwIDAtLjg3NS44NzVaIi8+PC9zdmc+",W=e(50910),x=e(35667),O=function(he,Pe){return he.isDarkTheme===Pe.isDarkTheme&&he.disabled===Pe.disabled&&(0,m.isEqual)(he.data,Pe.data)&&(0,m.isEqual)(he.values,Pe.values)&&he.onChangeValue===Pe.onChangeValue&&he.onFocusInput===Pe.onFocusInput&&he.onClickAttributes===Pe.onClickAttributes},_=(0,g.memo)(function(Ue){var he=(0,F.bU)(),Pe=he.localeText,Un=Ue.isDarkTheme,vt=Ue.disabled,zn=Ue.data,En=Ue.values,On=Ue.onChangeValue,Fn=Ue.onFocusInput,mr=Ue.onClickAttributes;return(0,x.jsx)(N.Z,{layout:"vertical",className:c()("dds-annotator-attributes-form",{"dds-annotator-attributes-form-dark":Un}),children:zn.map(function(fr,or){var jn,ua;return(0,x.jsxs)(N.Z.Item,{required:fr.required,label:fr.hasAttributes?(0,x.jsxs)("div",{className:"dds-annotator-attributes-form-item-title",children:[fr.field,(0,x.jsx)(L.Z,{title:Pe("DDSAnnotator.attribute.edit"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"dds-annotator-attributes-form-item-title-btn",icon:(0,x.jsx)(le,{className:fr.requireAttribute?"attribute-warn":""}),shape:"circle",onClick:function(ar){ar.stopPropagation(),mr==null||mr(or)}})})]}):fr.field,children:[fr.type===W.In.Radio&&(0,x.jsx)($.ZP.Group,{value:En[or],options:(jn=fr.options)===null||jn===void 0?void 0:jn.map(function(Or,ar){var hr=Or.label;return{label:hr,value:ar}}),onChange:function(ar){return On(or,ar.target.value)},disabled:vt}),fr.type===W.In.Checkbox&&(0,x.jsx)(D.Z.Group,{value:En[or],options:(ua=fr.options)===null||ua===void 0?void 0:ua.map(function(Or,ar){var hr=Or.label;return{label:hr,value:ar}}),onChange:function(ar){return On(or,ar)},disabled:vt}),fr.type===W.In.Text&&(0,x.jsx)(T.Z,{placeholder:Pe("DDSAnnotator.attribute.input"),value:En[or],onChange:function(ar){return On(or,ar.target.value)},onFocus:function(ar){return Fn==null?void 0:Fn(or,ar)},onKeyUp:function(ar){return ar.stopPropagation()},onKeyDown:function(ar){return ar.stopPropagation()},disabled:vt})]},fr.field)})})},O),U=_,A=function(he){var Pe=he.children,Un=he.eventHandler,vt=function(En){Un?Un(En):En.stopPropagation()};return(0,x.jsx)("div",{onMouseDown:vt,onMouseUp:vt,style:{userSelect:"none"},children:Pe})},G=(0,g.memo)(function(Ue){var he=Ue.data,Pe=Ue.supportEdit,Un=Ue.onConfirmAttibuteEdit,vt=Ue.onCancelAttibuteEdit,zn=(0,F.bU)(),En=zn.localeText,On=(0,M.x)([]),Fn=s()(On,2),mr=Fn[0],fr=Fn[1];(0,g.useEffect)(function(){fr((he==null?void 0:he.values)||[])},[he.values]);var or=function(Or,ar){fr(function(hr){hr[Or]=ar})},jn=function(){if(he.attributes.find(function(ar,hr){return ar.required&&Z(mr[hr])})){S.ZP.error(En("DDSAnnotator.attribute.required"));return}var Or=[];he.attributes.forEach(function(ar,hr){Or.push(mr[hr]===void 0?null:mr[hr])}),Un(Or)};return(0,x.jsx)(A,{children:(0,x.jsx)(w.Z,{id:"annotation-editor",className:"dds-annotator-attribute-editor",title:(0,x.jsxs)("div",{className:"dds-annotator-attribute-editor-title",children:[(0,x.jsxs)("div",{children:[En("DDSAnnotator.attribute.modal")," #",he.index+1]}),(0,x.jsx)(C.ZP,{ghost:!0,className:"dds-annotator-attribute-editor-title-btn",icon:(0,x.jsx)(h.Z,{}),shape:"circle",size:"small",onClick:vt})]}),children:(0,x.jsxs)("div",{className:"dds-annotator-attribute-editor-content",children:[(0,x.jsx)(U,{disabled:!Pe,data:he.attributes,values:mr,onChangeValue:or}),Pe&&(0,x.jsx)("div",{className:"dds-annotator-attribute-editor-actions",children:(0,x.jsx)(C.ZP,{type:"primary",onClick:function(Or){Or.preventDefault(),jn()},children:En("DDSAnnotator.confirm")})})]})})})}),fe=G,pe=e(83720),ge=e(56019),be=e(16951),Te=function(he,Pe){return he.className===Pe.className&&he.supportEdit===Pe.supportEdit&&(0,m.isEqual)(he.classificationOptions,Pe.classificationOptions)&&(0,m.isEqual)(he.values,Pe.values)&&he.setDrawDataWithHistory===Pe.setDrawDataWithHistory},Ge=(0,g.memo)(function(Ue){var he=(0,F.bU)(),Pe=he.localeText,Un=Ue.className,vt=Ue.classificationOptions,zn=Ue.values,En=Ue.setDrawDataWithHistory,On=Ue.supportEdit,Fn=(0,g.useState)(!1),mr=s()(Fn,2),fr=mr[0],or=mr[1],jn=function(Jn,fa,Qr){var $r,lr=vt[Jn],Ir=zn==null||($r=zn.find(function(Vr){var Ar=Vr.labelId;return Ar===(lr==null?void 0:lr.id)}))===null||$r===void 0?void 0:$r.attributes;return lr!=null&&lr.attributes&&lr.attributes.length>0&&(fa==null?void 0:fa.labelId)!==lr.id&&(!Qr||!(Ir!=null&&Ir.length))?{index:-1,labelId:lr.id,attributes:lr==null?void 0:lr.attributes,values:Ir}:null},ua=function(Jn){setTimeout(function(){En(function(fa){var Qr=jn(Jn,fa.editingAttribute);Qr&&(fa.editingAttribute=Qr)})})},Or=function(Jn,fa){En(function(Qr){var $r,lr=vt[Jn],Ir=Qr.classifications.findIndex(function(Vr){return Vr.labelId===lr.id});Ir>-1?Qr.classifications[Ir].labelValue=fa:Qr.classifications.push({labelId:vt[Jn].id,labelValue:fa}),(($r=Qr.editingAttribute)===null||$r===void 0?void 0:$r.labelId)!==(lr==null?void 0:lr.id)&&(Qr.editingAttribute=jn(Jn,Qr.editingAttribute,!0)||void 0)})},ar=(0,g.useMemo)(function(){return vt.map(function(aa){var Jn,fa;return{field:aa.labelName,type:aa.valueType,required:!0,options:aa.valueOptions,hasAttributes:!!((Jn=aa.attributes)!==null&&Jn!==void 0&&Jn.length),requireAttribute:!!((fa=aa.attributes)!==null&&fa!==void 0&&fa.find(function(Qr,$r){var lr,Ir;return(Qr==null?void 0:Qr.required)&&[void 0,null,""].includes((lr=zn.find(function(Vr){var Ar=Vr.labelId;return Ar===aa.id}))===null||lr===void 0||(Ir=lr.attributes)===null||Ir===void 0?void 0:Ir[$r])}))}})},[vt,zn]),hr=(0,g.useMemo)(function(){var aa=[];return vt.forEach(function(Jn){var fa,Qr=(fa=zn.find(function($r){var lr=$r.labelId;return lr===Jn.id}))===null||fa===void 0?void 0:fa.labelValue;aa.push(Qr===void 0?null:Qr)}),aa},[vt,zn]),Pr=(0,x.jsx)(U,{isDarkTheme:!0,disabled:!On,data:ar,values:hr,onChangeValue:Or,onFocusInput:ua,onClickAttributes:ua});return(0,x.jsx)("div",{className:c()("dds-annotator-classification",Un),onMouseDown:function(Jn){Jn.stopPropagation()},children:(0,x.jsx)(be.Z,{activeKey:"classification",items:[{key:"classification",label:Pe("DDSAnnotator.annotsList.classification"),children:fr?null:Pr}],tabBarExtraContent:(0,x.jsx)(L.Z,{title:Pe(fr?"DDSAnnotator.annotsList.showAll":"DDSAnnotator.annotsList.hideAll"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"tab-header-actions",icon:fr?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:function(){return or(!fr)}})})})})},Te),Je=Ge,Qe=e(22283),pt=e(79233),Et=Object.defineProperty,ft=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Xe=(Ue,he,Pe)=>he in Ue?Et(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,nt=(Ue,he)=>{for(var Pe in he||(he={}))Wt.call(he,Pe)&&Xe(Ue,Pe,he[Pe]);if(ft)for(var Pe of ft(he))$e.call(he,Pe)&&Xe(Ue,Pe,he[Pe]);return Ue};const Ke=Ue=>React.createElement("svg",nt({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:600,height:600,fill:"none"},Ue),React.createElement("path",{fill:"#FFF",d:"M0 0h600v600H0z"}),React.createElement("mask",{id:"img-broken_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#img-broken_svg__a"})),React.createElement("g",{mask:"url(#img-broken_svg__b)"},React.createElement("path",{style:{fill:"#f3f3fa"},opacity:.6,d:"M520.82 276.411c.7 7.103 1.058 14.305 1.058 21.589 0 122.04-100.54 221-224.51 221-99.159 0-183.328-63.313-213.047-151.107h-8.426c-3.4 0-6.17-2.76-6.17-6.16A6.168 6.168 0 0 1 73.608 356H84c7.18 0 13-5.82 13-13v-1c0-7.18-5.82-13-13-13h-8.95l-.023-.161H52.855c-5.68 0-10.28-4.6-10.28-10.28s4.6-10.28 10.28-10.28h20.241A221.042 221.042 0 0 1 72.858 298c0-32.629 7.187-63.608 20.086-91.486H57c-15.46 0-28-12.541-28-28.001v-1.56c0-14.913 11.67-27.11 26.373-27.953H182c5.52 0 10-4.48 10-10s-4.48-10-10-10h-29.294l.732-.605h-14.59c-10.49 0-19-8.51-19-19v-1.06c0-10.49 8.51-19 19-19h84.392C246.448 81.345 271.393 77 297.368 77c51.023 0 98.077 16.763 135.787 45H418c-7.18 0-13 5.82-13 13v1c0 7.18 5.82 13 13 13h45.166a222.478 222.478 0 0 1 23.253 29.763h21.461c7.73 0 14 6.27 14 14v.78c0 6.387-4.281 11.777-10.128 13.457H492c-8.84 0-16 7.16-16 16v5c0 8.84 7.16 16 16 16h67.901c6.952 1.741 12.097 8.028 12.097 15.521v.89c0 8.84-7.16 16-16 16z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__c)",d:"M147.977 187.468c-14.64 0-26.51 11.87-26.51 26.5h-5.34c-6.73 0-12.19 5.93-12.19 13.25s5.46 13.25 12.19 13.25h65.65c6.74 0 12.19-5.93 12.19-13.25s-5.45-13.25-12.19-13.25h-7.31c0-14.63-11.86-26.5-26.49-26.5z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__d)",d:"M313.088 148.128c0 5.25 3.91 9.5 8.74 9.5h47.07c4.83 0 8.74-4.25 8.74-9.5s-3.91-9.5-8.74-9.5h-5.24c0-10.5-8.51-19-19-19s-19 8.5-19 19h-3.83c-4.83 0-8.74 4.25-8.74 9.5z"}),React.createElement("path",{style:{fill:"#e7eaf0"},d:"M508 453.5c0 11.036-19.12 20.438-45.869 23.988-6.38 1.885-13.556 3.663-21.438 5.315A16.82 16.82 0 0 1 441 486c0 24.3-52.84 44-118 44-58.623 0-107.274-15.946-116.445-36.841C128.328 487.215 73 472.59 73 455.5c0-22.36 94.71-40.5 211.5-40.5 61.363 0 116.631 5.008 155.269 13.004C477.563 428.253 508 439.575 508 453.5z"}),React.createElement("g",{fillRule:"evenodd"},React.createElement("path",{fill:"url(#img-broken_svg__e)",d:"M356 62c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V38.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09C353.97.39 352.63 0 351.13 0c-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L347 62h9z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__f)",d:"M385 60.7c.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L387 82h9c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V58.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09c-1.19-.78-2.53-1.17-4.03-1.17-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__g)",d:"M35.34 1.66C33.67.55 31.78 0 29.68 0c-2.4 0-4.36.73-5.89 2.19-1.52 1.46-2.83 3.21-3.95 5.26h-.09L5.97 32.96c-.94.81-1.71 1.78-2.32 2.89a8.845 8.845 0 0 0-1.1 3.59l-2.2 5.09c-.11.29-.2.58-.26.87 0 0-.09.62-.09.97 0 2.04.64 3.81 1.93 5.3a9 9 0 0 0 4.83 2.93l9.92.53c.47.82 1.07 1.46 1.8 1.93s1.6.7 2.59.7c1.23 0 2.34-.44 3.34-1.32v13.41c0 3.86-.03 6.95-.09 9.25-.06 2.31-.12 4.14-.18 5.49L23.88 88h12.64c-.17-1.93-.32-3.94-.44-6.05-.11-1.75-.21-3.73-.3-5.92s-.13-4.36-.13-6.53V54.87l13.69-.18h1.67c.59 0 1.11-.02 1.58-.09.59 0 1.14-.02 1.67-.08a7.599 7.599 0 0 0 3.42-2.77c.88-1.25 1.32-2.7 1.32-4.34l-.18-1.13-.35-1.4c-.17-.53-.32-1.03-.44-1.5l-1.49-2.97c.29-1.06.44-2.05.44-2.98 0-2.28-.64-4.3-1.93-6.05s-2.93-2.98-4.92-3.69L39.07 6.05c-.82-1.82-2.07-3.28-3.73-4.39z",transform:"translate(92 370)"})),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__h)",opacity:.5,d:"M195.17 339.008 336 259.118l-180.79-56.11L3 241.048l192.17 97.96z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__i)",d:"m120.19 238.468 16.76-67-23.23-50.7L147 87.008l-137.81.8A9.242 9.242 0 0 0 0 97.058v132.16c0 5.12 4.15 9.25 9.26 9.25l103.61 4.54 7.32-4.54z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__j)",d:"M0 233.728c0 5.13 4.13 9.28 9.22 9.28h103.19l17.59-70.83-24.95-52.65L130 93.008l-120.85.8c-5.05.04-9.15 4.18-9.15 9.28v130.64z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__k)",d:"M129 177.408s-39.15 25.41-39.87 25.47c-15.59-13.61-41.17-39.55-41.17-39.55-2.95-3.01-8.11-3.11-11.19-.2L0 214.158v18.8c0 5.05 3.11 10.05 10.1 10.05h102.84l10.05-40.81 6.01-24.79z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__l)",d:"m161.114 121.588 10.21 50.9-39.15 72.66 77.97 21.2c5.34 2.12 11.32-1.05 12.51-6.63l36.14-134.09c1.03-4.82-1.95-9.58-6.76-10.81l-53.81-13.81-37.11 20.58z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__m)",d:"m153.53 125.233 10.21 50.89-37.74 67.36 77.98 21.21c5.33 2.12 11.31-1.04 12.5-6.63l34.73-128.8c1.03-4.82-1.96-9.58-6.76-10.81l-53.81-13.81-37.11 20.59z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__n)",d:"M181.344 174.368c-2-3.27-6.23-4.33-9.52-2.39l-8.09 4.16-37.65 67.37s67.22 18.7 75.12 20.47c7.91 1.76 13.7.54 14.89-5.08l3.37-11.51-38.12-73.02z",transform:"translate(180 194.992)"}),React.createElement("path",{style:{fill:"#fff"},d:"M223.104 151.697c0-9.32-7.57-16.88-16.9-16.88-9.33 0-16.89 7.56-16.89 16.88s7.56 16.88 16.89 16.88c9.33 0 16.9-7.56 16.9-16.88z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__o)",d:"m50.921 37.823 12.386-6.041 11.209 22.982-7.452-32.637-12.592 6.142L42.197 6.864l8.724 30.959z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__p)",d:"m217.598 48.895 17.888 17.184-30.945 23.817s47.929-22.37 46.996-23.709c-.925-1.335-18.57-16.992-18.57-16.992l24.134-25.537-39.503 25.236z",transform:"translate(180 194.992)"})),React.createElement("defs",null,React.createElement("linearGradient",{id:"img-broken_svg__i",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__p",x1:198.923,y1:151.68,x2:253.588,y2:43.245,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__d",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__e",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__f",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__g",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__h",x1:"50%",y1:"30.387%",x2:"-31.215%",y2:"-60.228%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E8EBF1",stopOpacity:.24}),React.createElement("stop",{offset:1,stopColor:"#A2ABB9"})),React.createElement("linearGradient",{id:"img-broken_svg__c",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__j",x1:"137.408%",y1:"115.518%",x2:"64.225%",y2:"-9.666%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__k",x1:"93.55%",y1:"132.782%",x2:"29.55%",y2:"19.901%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__l",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__m",x1:"113.805%",y1:"123.201%",x2:"30.832%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__n",x1:"110.007%",y1:"128.49%",x2:"50%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__o",x1:92.534,y1:94.384,x2:55.523,y2:19.166,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("path",{id:"img-broken_svg__a",d:"M0 0h600v600H0z"})));var ye="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0Z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Vmcz48L3N2Zz4=",ne=function(he){var Pe=he.url,Un=Pe===void 0?"":Pe,vt=he.imgRef,zn=he.canvasRef,En=he.activeCanvasRef,On=he.clientSize,Fn=he.imagePos,mr=he.onLoad,fr=(0,g.useState)(!1),or=s()(fr,2),jn=or[0],ua=or[1],Or=(0,g.useState)(!0),ar=s()(Or,2),hr=ar[0],Pr=ar[1],aa=function(lr){Pr(!1),mr(lr)},Jn=function(lr){lr.stopPropagation(),vt!=null&&vt.current&&(vt.current.src=Un,Pr(!0),ua(!1))},fa=function(lr){var Ir=lr.target;Ir.src=ye,Pr(!1),ua(!0)},Qr=Un.indexOf("aliyuncs.com")>-1?"anonymous":void 0;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("img",{ref:vt,src:Un,alt:"pic",crossOrigin:Qr,style:{width:On.width,height:On.height},onLoad:aa,onError:fa}),(0,x.jsx)("canvas",{ref:zn,draggable:!1,onContextMenu:function(lr){return lr.preventDefault()},className:"dds-annotator-imageview-canvas"}),(0,x.jsx)("canvas",{ref:En,draggable:!1,onContextMenu:function(lr){return lr.preventDefault()},className:"dds-annotator-imageview-canvas"}),jn&&(0,x.jsxs)("div",{className:"dds-annotator-imageview-reload-cover",onClick:Jn,onDoubleClick:Jn,style:{left:Fn.current.x,top:Fn.current.y,width:On.width,height:On.height},children:[(0,x.jsx)("img",{src:ye,alt:"error-pic"}),(0,x.jsx)("div",{className:"content-box",children:(0,x.jsx)(C.ZP,{ghost:!0,type:"primary",className:"reload-trigger",shape:"circle",size:"small",icon:(0,x.jsx)(Qe.Z,{})})})]}),hr&&(0,x.jsx)("div",{className:"dds-annotator-imageview-reload-cover",style:{backgroundColor:"#f6f6f6",left:Fn.current.x,top:Fn.current.y,width:On.width,height:On.height},children:(0,x.jsx)(pt.Z,{className:"reload-trigger"})})]})},H=e(39875),R=e(32814),P=e(45060),ae=e(23707),Q=e(17410),ie=(0,g.memo)(function(Ue){var he=Ue.AIAnnotation,Pe=Ue.modelOptions,Un=Ue.selectedModel,vt=Ue.onSelectModel,zn=Ue.onCloseModal,En=(0,F.bU)(),On=En.localeText,Fn=Pe.length*220+(Pe.length+1)*20,mr=(0,g.useMemo)(function(){return!!(he&&Pe&&Pe.length>1&&!Un)},[he,Pe,Un]);return(0,x.jsx)(A,{children:(0,x.jsx)(n.Z,{open:mr,title:On("DDSAnnotator.smart.modelSelectModal.title"),width:Fn,onCancel:zn,footer:null,centered:!0,destroyOnClose:!0,children:(0,x.jsx)("div",{className:"dds-annotator-model-selector-modal",children:Pe.map(function(fr,or){var jn=Q.TR[fr];return jn?(0,x.jsxs)("div",{className:c()("dds-annotator-model-selector-modal-option",{"dds-annotator-model-selector-modal-option-hightlight":jn.hightlight}),onClick:function(){return vt(fr)},children:[(0,x.jsx)(H.Z,{className:"dds-annotator-model-selector-modal-option-icon",component:jn.icon}),(0,x.jsx)("div",{className:"dds-annotator-model-selector-modal-option-name",children:On(jn.name)}),(0,x.jsx)("div",{className:"dds-annotator-model-selector-modal-option-description",children:On(jn.description)}),jn.hightlight&&(0,x.jsx)(R.Z,{color:"geekblue",className:"dds-annotator-model-selector-modal-option-tag",children:"New"})]},or):(0,x.jsx)(x.Fragment,{})})})})})}),me=ie,je=e(23605),Ee=e(2556),Me=e(82968),We=e(37617),re=e(28506),se=e(18695),J=Object.defineProperty,de=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,Le=(Ue,he,Pe)=>he in Ue?J(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Oe=(Ue,he)=>{for(var Pe in he||(he={}))xe.call(he,Pe)&&Le(Ue,Pe,he[Pe]);if(de)for(var Pe of de(he))ce.call(he,Pe)&&Le(Ue,Pe,he[Pe]);return Ue};const we=Ue=>g.createElement("svg",Oe({width:10,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.464 5.65A1 1 0 0 0 2.88 7.064l2.12-2.12 2.122 2.12A1 1 0 0 0 8.535 5.65L5.713 2.828a1 1 0 0 0-1.42-.006L1.464 5.65Z",fill:"#fff"}));var Ne="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjQ2NCA1LjY1QTEgMSAwIDAgMCAyLjg4IDcuMDY0bDIuMTItMi4xMiAyLjEyMiAyLjEyQTEgMSAwIDAgMCA4LjUzNSA1LjY1TDUuNzEzIDIuODI4YTEgMSAwIDAgMC0xLjQyLS4wMDZMMS40NjQgNS42NVoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",st=Object.defineProperty,et=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Be=(Ue,he,Pe)=>he in Ue?st(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,it=(Ue,he)=>{for(var Pe in he||(he={}))Ye.call(he,Pe)&&Be(Ue,Pe,he[Pe]);if(et)for(var Pe of et(he))ke.call(he,Pe)&&Be(Ue,Pe,he[Pe]);return Ue};const Ve=Ue=>g.createElement("svg",it({viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#layer_svg__a)"},g.createElement("path",{d:"m.57 6.625 5.805 3.48a2.182 2.182 0 0 0 2.25 0l5.805-3.48a1.163 1.163 0 0 0 0-1.995L8.625 1.144a2.18 2.18 0 0 0-2.25 0L.57 4.625a1.163 1.163 0 0 0 0 1.995v.005ZM7.34 2.75a.313.313 0 0 1 .32 0l4.789 2.875L7.66 8.5a.313.313 0 0 1-.322 0L2.551 5.625 7.34 2.75Z"}),g.createElement("path",{d:"M8.304 11.77a1.562 1.562 0 0 1-1.608 0L1.42 8.603a.937.937 0 0 0-.965 1.607l5.276 3.164a3.43 3.43 0 0 0 3.538 0l5.276-3.166a.937.937 0 1 0-.965-1.605l-5.276 3.165Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"layer_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h15v15H0z"}))));var xt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTUgMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJtLjU3IDYuNjI1IDUuODA1IDMuNDhhMi4xODIgMi4xODIgMCAwIDAgMi4yNSAwbDUuODA1LTMuNDhhMS4xNjMgMS4xNjMgMCAwIDAgMC0xLjk5NUw4LjYyNSAxLjE0NGEyLjE4IDIuMTggMCAwIDAtMi4yNSAwTC41NyA0LjYyNWExLjE2MyAxLjE2MyAwIDAgMCAwIDEuOTk1di4wMDVaTTcuMzQgMi43NWEuMzEzLjMxMyAwIDAgMSAuMzIgMGw0Ljc4OSAyLjg3NUw3LjY2IDguNWEuMzEzLjMxMyAwIDAgMS0uMzIyIDBMMi41NTEgNS42MjUgNy4zNCAyLjc1WiIvPjxwYXRoIGQ9Ik04LjMwNCAxMS43N2ExLjU2MiAxLjU2MiAwIDAgMS0xLjYwOCAwTDEuNDIgOC42MDNhLjkzNy45MzcgMCAwIDAtLjk2NSAxLjYwN2w1LjI3NiAzLjE2NGEzLjQzIDMuNDMgMCAwIDAgMy41MzggMGw1LjI3Ni0zLjE2NmEuOTM3LjkzNyAwIDEgMC0uOTY1LTEuNjA1bC01LjI3NiAzLjE2NVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE1djE1SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Ht=Object.defineProperty,Ot=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,yt=(Ue,he,Pe)=>he in Ue?Ht(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ze=(Ue,he)=>{for(var Pe in he||(he={}))wt.call(he,Pe)&&yt(Ue,Pe,he[Pe]);if(Ot)for(var Pe of Ot(he))_t.call(he,Pe)&&yt(Ue,Pe,he[Pe]);return Ue};const tt=Ue=>g.createElement("svg",ze({className:"palette_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Ue),g.createElement("path",{d:"M512 102.39c-226.202 0-409.6 183.367-409.6 409.6S285.798 921.62 512 921.62a408.556 408.556 0 0 0 156.672-31.2 68.332 68.332 0 0 0 22.16-111.402l-48.057-48.056a68.28 68.28 0 0 1 48.261-116.542l162.304-.04a68.26 68.26 0 0 0 68.27-68.26v-34.13c-.01-226.243-183.378-409.6-409.61-409.6zm341.33 443.73-162.304.03c-75.305 0-136.53 61.225-136.53 136.53 0 36.485 14.203 70.738 39.997 96.543l48.067 48.056a338.166 338.166 0 0 1-130.57 26.082c-188.201 0-341.33-153.14-341.33-341.371S323.799 170.65 512 170.65s341.33 153.098 341.33 341.33v34.14z",fill:"#fff"}),g.createElement("path",{d:"M443.73 307.19a68.27 68.27 0 1 0 136.54 0 68.27 68.27 0 1 0-136.54 0ZM300.503 555.254a68.198 68.198 0 0 1 93.225 24.996 68.3 68.3 0 0 1-24.934 93.266 68.352 68.352 0 0 1-93.297-24.996 68.321 68.321 0 0 1 25.006-93.266zM621.056 409.59a68.29 68.29 0 1 0 136.581 0 68.29 68.29 0 1 0-136.581 0ZM300.503 468.716a68.26 68.26 0 0 1-24.965-93.266 68.25 68.25 0 1 1 118.2 68.239 68.27 68.27 0 0 1-93.235 25.027z",fill:"#fff"}));var St="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEw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Y4LjM1MiAwIDAgMS05My4yOTctMjQuOTk2IDY4LjMyMSA2OC4zMjEgMCAwIDEgMjUuMDA2LTkzLjI2NnpNNjIxLjA1NiA0MDkuNTlhNjguMjkgNjguMjkgMCAxIDAgMTM2LjU4MSAwIDY4LjI5IDY4LjI5IDAgMSAwLTEzNi41ODEgMFpNMzAwLjUwMyA0NjguNzE2YTY4LjI2IDY4LjI2IDAgMCAxLTI0Ljk2NS05My4yNjYgNjguMjUgNjguMjUgMCAxIDEgMTE4LjIgNjguMjM5IDY4LjI3IDY4LjI3IDAgMCAxLTkzLjIzNSAyNS4wMjd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+",lt=e(2657),Gt=e.n(lt),Nt,At=function(Ue){return Ue.Tool="DDSAnnotator.shortcuts.tools",Ue.GeneralAction="DDSAnnotator.shortcuts.general",Ue.ViewAction="DDSAnnotator.shortcuts.viewControl",Ue.AnnotationAction="DDSAnnotator.shortcuts.annotsControl",Ue}({}),Ie=function(Ue){return Ue[Ue.RectangleTool=0]="RectangleTool",Ue[Ue.PolygonTool=1]="PolygonTool",Ue[Ue.SkeletonTool=2]="SkeletonTool",Ue[Ue.DragTool=3]="DragTool",Ue[Ue.MaskTool=4]="MaskTool",Ue[Ue.SmartAnnotation=5]="SmartAnnotation",Ue[Ue.Undo=6]="Undo",Ue[Ue.Redo=7]="Redo",Ue[Ue.RepeatPrevious=8]="RepeatPrevious",Ue[Ue.DeleteAll=9]="DeleteAll",Ue[Ue.NextImage=10]="NextImage",Ue[Ue.PreviousImage=11]="PreviousImage",Ue[Ue.Save=12]="Save",Ue[Ue.Accept=13]="Accept",Ue[Ue.Reject=14]="Reject",Ue[Ue.ZoomIn=15]="ZoomIn",Ue[Ue.ZoomOut=16]="ZoomOut",Ue[Ue.Reset=17]="Reset",Ue[Ue.HideCurrObject=18]="HideCurrObject",Ue[Ue.HideCurrCategory=19]="HideCurrCategory",Ue[Ue.HideAll=20]="HideAll",Ue[Ue.PanImage=21]="PanImage",Ue[Ue.DeleteCurrObject=22]="DeleteCurrObject",Ue[Ue.SaveCurrObject=23]="SaveCurrObject",Ue[Ue.CancelCurrObject=24]="CancelCurrObject",Ue}({}),Se=(Nt={},Gt()(Nt,Ie.RectangleTool,{name:"RectangleTool",type:At.Tool,shortcut:["r"],descTextKey:"DDSAnnotator.shortcuts.tools.rectangle"}),Gt()(Nt,Ie.PolygonTool,{name:"PolygonTool",type:At.Tool,shortcut:["p"],descTextKey:"DDSAnnotator.shortcuts.tools.polygon"}),Gt()(Nt,Ie.SkeletonTool,{name:"SkeletonTool",type:At.Tool,shortcut:["s"],descTextKey:"DDSAnnotator.shortcuts.tools.skeleton"}),Gt()(Nt,Ie.MaskTool,{name:"MaskTool",type:At.Tool,shortcut:["m"],descTextKey:"DDSAnnotator.shortcuts.tools.mask"}),Gt()(Nt,Ie.DragTool,{name:"DragTool",type:At.Tool,shortcut:["d"],descTextKey:"DDSAnnotator.shortcuts.tools.drag"}),Gt()(Nt,Ie.SmartAnnotation,{name:"SmartAnnotation",type:At.GeneralAction,shortcut:["a"],descTextKey:"DDSAnnotator.shortcuts.general.smart"}),Gt()(Nt,Ie.Undo,{name:"Undo",type:At.GeneralAction,shortcut:["ctrl.z","meta.z"],descTextKey:"DDSAnnotator.shortcuts.general.undo"}),Gt()(Nt,Ie.Redo,{name:"Redo",type:At.GeneralAction,shortcut:["ctrl.shift.z","meta.shift.z"],descTextKey:"DDSAnnotator.shortcuts.general.redo"}),Gt()(Nt,Ie.RepeatPrevious,{name:"RepeatPrevious",type:At.GeneralAction,shortcut:["ctrl.r","meta.r"],descTextKey:"DDSAnnotator.shortcuts.general.repeatPrevious"}),Gt()(Nt,Ie.DeleteAll,{name:"DeleteAll",type:At.GeneralAction,shortcut:["ctrl.shift.d","meta.shift.d"],descTextKey:"DDSAnnotator.shortcuts.general.deleteAll"}),Gt()(Nt,Ie.Save,{name:"Save",type:At.GeneralAction,shortcut:["ctrl.s","meta.s"],descTextKey:"DDSAnnotator.shortcuts.general.save"}),Gt()(Nt,Ie.HideCurrObject,{name:"HideCurrObject",type:At.ViewAction,shortcut:["h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrObject"}),Gt()(Nt,Ie.HideCurrCategory,{name:"HideCurrCategory",type:At.ViewAction,shortcut:["ctrl.h","meta.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrCategory"}),Gt()(Nt,Ie.HideAll,{name:"HideAll",type:At.ViewAction,shortcut:["ctrl.shift.h","meta.shift.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideAll"}),Gt()(Nt,Ie.ZoomIn,{name:"ZoomIn",type:At.ViewAction,shortcut:["equalsign"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomIn"}),Gt()(Nt,Ie.ZoomOut,{name:"ZoomOut",type:At.ViewAction,shortcut:["dash"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomOut"}),Gt()(Nt,Ie.Reset,{name:"Reset",type:At.ViewAction,shortcut:["0"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomReset"}),Gt()(Nt,Ie.Accept,{name:"Accept",type:At.GeneralAction,shortcut:["ctrl.a","meta.a"],descTextKey:"DDSAnnotator.shortcuts.general.accept"}),Gt()(Nt,Ie.Reject,{name:"Reject",type:At.GeneralAction,shortcut:["ctrl.r","meta.r"],descTextKey:"DDSAnnotator.shortcuts.general.reject"}),Gt()(Nt,Ie.NextImage,{name:"NextImage",type:At.ViewAction,shortcut:["rightarrow"],descTextKey:"DDSAnnotator.shortcuts.general.next"}),Gt()(Nt,Ie.PreviousImage,{name:"PreviousImage",type:At.ViewAction,shortcut:["leftarrow"],descTextKey:"DDSAnnotator.shortcuts.general.prev"}),Gt()(Nt,Ie.PanImage,{name:"PanImage",type:At.ViewAction,shortcut:["Space"],descTextKey:"DDSAnnotator.shortcuts.viewControl.panImage"}),Gt()(Nt,Ie.SaveCurrObject,{name:"SaveCurrObject",type:At.AnnotationAction,shortcut:["enter"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.finish"}),Gt()(Nt,Ie.DeleteCurrObject,{name:"DeleteCurrObject",type:At.AnnotationAction,shortcut:["Backspace","Delete"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.delete"}),Gt()(Nt,Ie.CancelCurrObject,{name:"CancelCurrObject",type:At.AnnotationAction,shortcut:["esc"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.cancel"}),Nt),bt=function(he){var Pe=he;switch(he){case"meta":Pe="\u2318";break;case"shift":Pe="\u21E7";break;case"equalsign":case"add":Pe="+";break;case"dash":case"subtract":Pe="-";break;case"leftarrow":Pe="\u2190";break;case"rightarrow":Pe="\u2192";break;default:Pe=he.toUpperCase();break}return Pe},jt=function(Ue){return Ue.Object="object",Ue.Class="class",Ue}(jt||{}),He=function(he,Pe){return(0,m.isEqual)(he.objects,Pe.objects)&&(0,m.isEqual)(he.framesObjects,Pe.framesObjects)&&he.activeObjectIndex===Pe.activeObjectIndex&&he.supportEdit===Pe.supportEdit&&he.activeClassName===Pe.activeClassName&&he.className===Pe.className&&he.onChangeActiveClassName===Pe.onChangeActiveClassName&&he.onFocusObject===Pe.onFocusObject&&he.onDeleteObject===Pe.onDeleteObject&&he.onChangeObjectHidden===Pe.onChangeObjectHidden&&he.onChangeCategoryHidden===Pe.onChangeCategoryHidden&&he.setDrawDataWithHistory===Pe.setDrawDataWithHistory&&(0,m.isEqual)(he.categories,Pe.categories)&&he.colorByCategory===Pe.colorByCategory&&he.onChangeAnnotsDisplayOpts===Pe.onChangeAnnotsDisplayOpts},qe=(0,g.memo)(function(Ue){var he=Ue.objects,Pe=Ue.framesObjects,Un=Ue.activeObjectIndex,vt=Ue.className,zn=Ue.supportEdit,En=Ue.activeClassName,On=Ue.onFocusObject,Fn=Ue.onActiveObject,mr=Ue.onChangeObjectHidden,fr=Ue.onDeleteObject,or=Ue.onChangeCategoryHidden,jn=Ue.onChangeActiveClassName,ua=Ue.categories,Or=Ue.setDrawDataWithHistory,ar=Ue.colorByCategory,hr=Ue.onChangeAnnotsDisplayOpts,Pr=(0,F.bU)(),aa=Pr.localeText,Jn=aa("DDSAnnotator.annotsList.uncategorized"),fa=(0,g.useState)(jt.Class),Qr=s()(fa,2),$r=Qr[0],lr=Qr[1],Ir=function(hn){lr(hn)},Vr=(0,re.w)(),Ar=Vr.height,Y=45,z=35,ue=Ar-Y-56,Ce=(0,g.useRef)(null),Re=(0,g.useMemo)(function(){return!he.some(function(fn){return!fn.hidden})},[he]),rt=function(){he.forEach(function(hn,bn){mr(bn,!Re)})},Mt=function(){hr({colorByCategory:!ar})},Dt=(0,g.useCallback)(function(fn,hn,bn){Fn(bn),Or(function(Yt){Yt.editingAttribute={index:bn,labelId:fn.labelId,attributes:hn.attributes||[],values:fn.attributes||[]}})},[Fn,Or]);(0,Ee.Z)(Se[Ie.HideAll].shortcut,function(fn){fn.preventDefault(),rt()},{exactMatch:!0});var Vt=(0,g.useMemo)(function(){return he.reduce(function(fn,hn,bn){var Yt,Ln=((Yt=ua.find(function(qn){return qn.id===hn.labelId}))===null||Yt===void 0?void 0:Yt.name)||Jn;return fn[Ln]||(fn[Ln]=[]),fn[Ln].push(t()(t()({},hn),{},{originIndex:bn})),fn},{})},[he]);(0,g.useEffect)(function(){if(!(Un<0)){var fn=document.querySelector(".ant-tabs-tabpane-active");if($r===jt.Object){var hn=fn==null?void 0:fn.querySelector(".tab-collapse .ant-collapse-item:nth-child(".concat(Un+1,")"));hn==null||hn.scrollIntoView({behavior:"smooth",block:"nearest"})}else if($r===jt.Class&&Vt[En]){var bn=Vt[En].findIndex(function(Ln){return Ln.originIndex===Un});if(bn>-1){var Yt;(Yt=Ce.current)===null||Yt===void 0||Yt.scrollTo({index:bn,align:"auto"})}}}},[Un]);var nn=(0,x.jsx)(Me.Z,{accordion:!0,ghost:!0,className:"tab-collapse",activeKey:En,children:he.length>0&&Object.keys(Vt).sort().map(function(fn){var hn,bn=Vt[fn],Yt=bn.every(function(qn){return qn.hidden}),Ln=(hn=bn[0])===null||hn===void 0?void 0:hn.color;return(0,x.jsx)(Me.Z.Panel,{showArrow:!1,header:(0,x.jsxs)("div",{className:c()("collapse-header",{"collapse-header-selected":En===fn}),style:{height:Y},onClick:function(){jn(fn===En?"":fn)},children:[En===fn&&(0,x.jsx)("div",{className:"selected-line",style:{backgroundColor:Ln||"#fff"}}),(0,x.jsx)("div",{className:"label-name",children:fn}),(0,x.jsxs)("div",{className:"label-actions",children:[(0,x.jsx)("span",{className:"label-count",children:bn.length}),(0,x.jsx)(L.Z,{title:aa(Yt?"DDSAnnotator.annotsList.showCate":"DDSAnnotator.annotsList.hideCate"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:Yt?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:function(cr){cr.stopPropagation(),or(fn,!Yt)}})}),(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:(0,x.jsx)(we,{className:"down-arrow"}),shape:"circle"})]})]},fn),children:En===fn&&(0,x.jsx)(We.Z,{children:(0,x.jsx)(se.Z,{data:bn,height:ue,fullHeight:!1,itemHeight:z,itemKey:"originIndex",ref:Ce,children:function(cr,Dr){var Rr,Aa,xa,pa,za=ua.find(function(Xa){return Xa.id===cr.labelId}),ha=!!(za!=null&&(Rr=za.attributes)!==null&&Rr!==void 0&&Rr.length),Yr=za==null||(Aa=za.attributes)===null||Aa===void 0?void 0:Aa.find(function(Xa,io){var Go;return Xa.required&&[void 0,null,""].includes((Go=cr.attributes)===null||Go===void 0?void 0:Go[io])}),$a=(Pe==null||(xa=Pe[cr.originIndex])===null||xa===void 0||(pa=xa.filter(function(Xa){return Xa&&!Xa.frameEmpty}))===null||pa===void 0?void 0:pa.length)||1;return(0,x.jsxs)(We.Z.Item,{className:"collapse-item",style:{height:z},onMouseOver:function(){On(cr.originIndex)},onClick:function(io){io.stopPropagation(),Fn(cr.originIndex)},children:[Un===cr.originIndex&&(0,x.jsx)("div",{className:"color-hint",style:{backgroundColor:cr.color}}),(0,x.jsx)(H.Z,{className:"label-icon",component:Q.ef[cr.type]}),(0,x.jsxs)("div",{className:"label",children:["# ",cr.originIndex+1]}),(0,x.jsxs)("div",{className:"label-actions",children:[Pe&&(0,x.jsxs)("span",{className:"frame-count",children:[(0,x.jsx)(Ve,{})," ",$a]}),ha&&(0,x.jsx)(L.Z,{title:aa("DDSAnnotator.attribute.edit"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:c()("attr-btn",{"attr-btn-warn":Yr}),icon:(0,x.jsx)(le,{}),shape:"circle",onClick:function(io){io.stopPropagation(),Dt(cr,za,cr.originIndex)}})}),(0,x.jsx)(L.Z,{title:cr.hidden?aa("DDSAnnotator.annotsList.show"):aa("DDSAnnotator.annotsList.hide"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:cr.hidden?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:function(io){io.stopPropagation(),mr(cr.originIndex,!cr.hidden)}})}),zn&&(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(L.Z,{title:aa("DDSAnnotator.annotsList.delete"),children:(0,x.jsx)(C.ZP,{ghost:!0,className:"label-btn",icon:(0,x.jsx)(je.Z,{}),shape:"circle",onClick:function(io){io.stopPropagation(),fr(cr.originIndex)}})})})]})]},cr.labelId+Dr)}})})},fn||Jn)})});return(0,x.jsx)("div",{className:c()("dds-annotator-objectlist",vt),id:"rightOperations",onMouseDown:function(hn){hn.stopPropagation()},children:(0,x.jsx)(be.Z,{activeKey:$r,onChange:Ir,items:[{key:jt.Class,label:aa("DDSAnnotator.annotsList.labels"),children:nn}],tabBarExtraContent:(0,x.jsxs)("div",{className:"tab-header-actions",children:[(0,x.jsx)(L.Z,{title:aa("DDSAnnotator.colorMode"),children:(0,x.jsx)(C.ZP,{type:"primary",className:c()("tab-header-actions-color-btn",{"tab-header-actions-color-btn-active":!ar}),icon:(0,x.jsx)(H.Z,{component:tt}),onClick:Mt})}),he.length>0&&(0,x.jsx)(L.Z,{title:aa(Re?"DDSAnnotator.annotsList.showAll":"DDSAnnotator.annotsList.hideAll"),children:(0,x.jsx)(C.ZP,{ghost:!0,icon:Re?(0,x.jsx)(pe.Z,{}):(0,x.jsx)(ge.Z,{}),shape:"circle",onClick:rt})})]})})})},He),$t=e(60698),Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"down-circle",theme:"outlined"},qt=Zt,un=e(17202),xn=function(he,Pe){return g.createElement(un.Z,(0,$t.Z)({},he,{ref:Pe,icon:qt}))},pn=g.forwardRef(xn),Gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.5 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"up-circle",theme:"outlined"},Qn=Gn,ur=function(he,Pe){return g.createElement(un.Z,(0,$t.Z)({},he,{ref:Pe,icon:Qn}))},br=g.forwardRef(ur),zt=e(59504),en={item:"item___v9XQ_",selected:"selected___H8gjQ",info:"info___YLqTh",action:"action___zGuUy",btn:"btn___ean1l"},an=function(he){var Pe=he.point,Un=he.index,vt=he.active,zn=he.onMouseEnter,En=he.onMouseOut,On=he.onMouseOver,Fn=he.onVisibleChange,mr=(0,F.bU)(),fr=mr.localeText;return(0,x.jsxs)("div",{className:en.item,onMouseOut:En,onMouseOver:On,onMouseEnter:zn,children:[vt&&(0,x.jsx)("div",{className:en.selected,style:{backgroundColor:Pe.color}}),(0,x.jsx)("div",{className:en.info,children:Pe.name?"#".concat(Un+1," ").concat(Pe.name):"".concat(Un+1," ")}),(0,x.jsx)("div",{className:en.action,children:(0,x.jsxs)(zt.Z,{bordered:!1,showArrow:!0,popupClassName:en["selector-dropdown"],size:"small",value:Pe.visible,onChange:Fn,style:{width:"100%"},children:[(0,x.jsx)(zt.Z.Option,{value:Q.GI.noLabeled,children:fr("DDSAnnotator.annotsList.point.notInImage")}),(0,x.jsx)(zt.Z.Option,{value:Q.GI.labeledNotVisible,children:fr("DDSAnnotator.annotsList.point.notVisible")}),(0,x.jsx)(zt.Z.Option,{value:Q.GI.labeledVisible,children:fr("DDSAnnotator.annotsList.point.visible")})]})})]},Un)},vn=an,An=(0,g.memo)(function(Ue){var he=Ue.mode,Pe=Ue.isAiAnnotation,Un=Ue.currObject,vt=Ue.currObjectIndex,zn=Ue.focusObjectIndex,En=Ue.focusEleType,On=Ue.focusEleIndex,Fn=Ue.onChangePointVisible,mr=Ue.setEditState,fr=(0,F.bU)(),or=fr.localeText,jn=(0,g.useState)(!0),ua=s()(jn,2),Or=ua[0],ar=ua[1],hr=(0,g.useMemo)(function(){return vt>-1&&(Un==null?void 0:Un.type)===Q.gr.Skeleton&&!Pe},[he,Un,vt,Pe]),Pr=function(Jn){mr(function(fa){fa.focusObjectIndex=vt,fa.focusEleIndex=Jn,fa.focusEleType=Q.Yq.Circle})};return(0,x.jsx)(A,{children:(0,x.jsx)(w.Z,{className:c()("dds-annotator-points-editor",{"dds-annotator-points-editor-visible":hr}),title:(0,x.jsxs)("div",{className:"title",onClick:function(){return ar(function(Jn){return!Jn})},children:[or("DDSAnnotator.points.editor"),(0,x.jsx)("div",{className:"extra-btn",children:Or?(0,x.jsx)(pn,{}):(0,x.jsx)(br,{})})]}),children:!Or&&(0,x.jsx)("div",{className:"content",onMouseMove:function(Jn){Jn.stopPropagation()},children:Un&&Un.keypoints&&Un.keypoints.points.map(function(aa,Jn){return(0,x.jsx)(vn,{point:aa,index:Jn,active:zn===vt&&En===Q.Yq.Circle&&On===Jn,onMouseEnter:function(){return Pr(Jn)},onVisibleChange:function(Qr){Fn(Jn,Qr)}},Jn)})})})})}),sn=An,mt=(0,g.memo)(function(Ue){var he=Ue.mode,Pe=Ue.isAiAnnotation,Un=Ue.latestLabelId,vt=Ue.currObject,zn=Ue.onFinishCurrCreate,En=(0,F.bU)(),On=En.localeText,Fn=(0,g.useMemo)(function(){return he!==W.je.Edit?!1:!!((vt==null?void 0:vt.type)===Q.gr.Mask||(vt==null?void 0:vt.type)===Q.gr.Polygon&&Pe)},[he,vt,Pe]);return(0,Ee.Z)(Se[Ie.SaveCurrObject].shortcut,function(mr){vt&&(mr.preventDefault(),zn(Un))},{exactMatch:!0}),(0,x.jsx)(A,{children:(0,x.jsx)(w.Z,{className:c()("dds-annotator-seg-confirm",{"dds-annotator-seg-confirm-visible":Fn}),title:(0,x.jsx)("div",{className:"title",children:On("DDSAnnotator.seg.tool")}),children:(0,x.jsxs)("div",{className:"content",children:[(0,x.jsx)("div",{children:On("DDSAnnotator.seg.tool.content")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:function(fr){fr.preventDefault(),zn(Un)},children:On("DDSAnnotator.confirm")})]})})})}),gt=mt,ln=e(34485),Qt=e.n(ln),tn=e(2528),yn=e(98030),gn=e(33181),_n=Object.defineProperty,nr=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,It=(Ue,he,Pe)=>he in Ue?_n(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Ct=(Ue,he)=>{for(var Pe in he||(he={}))ut.call(he,Pe)&&It(Ue,Pe,he[Pe]);if(nr)for(var Pe of nr(he))ct.call(he,Pe)&&It(Ue,Pe,he[Pe]);return Ue};const Ut=Ue=>g.createElement("svg",Ct({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 29"},Ue),g.createElement("defs",null,g.createElement("style",null,".drag_svg__cls-1{fill:none}")),g.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),g.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),g.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83Z"}),g.createElement("path",{className:"drag_svg__cls-2",d:"m21.73 18.19 8.23 4.8-3.51 1 2.51 4.35-2.05 1.18-2.51-4.35-2.63 2.54-.04-9.52z"}),g.createElement("path",{className:"drag_svg__cls-2",d:"M19.37 9.92h2.36v2.36h5.91a1.18 1.18 0 0 1 1.18 1.18v4.73h-2.36v-3.54H14.65v11.81h4.72v2.36h-5.91a1.18 1.18 0 0 1-1.18-1.18v-5.91H9.92v-2.36h2.36v-5.91a1.18 1.18 0 0 1 1.18-1.18h5.91ZM5.2 19.37h2.36v2.36H5.2zM5.2 14.65h2.36v2.36H5.2zM5.2 9.92h2.36v2.36H5.2zM5.2 5.2h2.36v2.36H5.2zM9.92 5.2h2.36v2.36H9.92zM14.65 5.2h2.36v2.36h-2.36zM19.37 5.2h2.36v2.36h-2.36z"}));var cn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOSAyOSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmV9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMi44MyAyLjgzaDI4LjM1djI4LjM1SDIuODN6Ii8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMi44MyAyLjgzaDI4LjM1djI4LjM1SDIuODN6Ii8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMi44MyAyLjgzaDI4LjM1djI4LjM1SDIuODNaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJtMjEuNzMgMTguMTkgOC4yMyA0LjgtMy41MSAxIDIuNTEgNC4zNS0yLjA1IDEuMTgtMi41MS00LjM1LTIuNjMgMi41NC0uMDQtOS41MnoiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xOS4zNyA5LjkyaDIuMzZ2Mi4zNmg1LjkxYTEuMTggMS4xOCAwIDAgMSAxLjE4IDEuMTh2NC43M2gtMi4zNnYtMy41NEgxNC42NXYxMS44MWg0LjcydjIuMzZoLTUuOTFhMS4xOCAxLjE4IDAgMCAxLTEuMTgtMS4xOHYtNS45MUg5Ljkydi0yLjM2aDIuMzZ2LTUuOTFhMS4xOCAxLjE4IDAgMCAxIDEuMTgtMS4xOGg1LjkxWk01LjIgMTkuMzdoMi4zNnYyLjM2SDUuMnpNNS4yIDE0LjY1aDIuMzZ2Mi4zNkg1LjJ6TTUuMiA5LjkyaDIuMzZ2Mi4zNkg1LjJ6TTUuMiA1LjJoMi4zNnYyLjM2SDUuMnpNOS45MiA1LjJoMi4zNnYyLjM2SDkuOTJ6TTE0LjY1IDUuMmgyLjM2djIuMzZoLTIuMzZ6TTE5LjM3IDUuMmgyLjM2djIuMzZoLTIuMzZ6Ii8+PC9zdmc+",rn=Object.defineProperty,Dn=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,rr=(Ue,he,Pe)=>he in Ue?rn(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,$n=(Ue,he)=>{for(var Pe in he||(he={}))Bn.call(he,Pe)&&rr(Ue,Pe,he[Pe]);if(Dn)for(var Pe of Dn(he))Cr.call(he,Pe)&&rr(Ue,Pe,he[Pe]);return Ue};const kr=Ue=>g.createElement("svg",$n({className:"zoomResize_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ue),g.createElement("path",{d:"M981.333 42.667v938.666H42.667V42.667h938.666zM128 896h768V128H128v768zm170.667-170.667H448v85.334H213.333V576h85.334v149.333zm426.666-426.666H576v-85.334h234.667V448h-85.334V298.667z"}));var Mr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk4MS4zMzMgNDIuNjY3djkzOC42NjZINDIuNjY3VjQyLjY2N2g5MzguNjY2ek0xMjggODk2aDc2OFYxMjhIMTI4djc2OHptMTcwLjY2Ny0xNzAuNjY3SDQ0OHY4NS4zMzRIMjEzLjMzM1Y1NzZoODUuMzM0djE0OS4zMzN6bTQyNi42NjYtNDI2LjY2Nkg1NzZ2LTg1LjMzNGgyMzQuNjY3VjQ0OGgtODUuMzM0VjI5OC42Njd6Ii8+PC9zdmc+",ia=e(85706),zr=Object.defineProperty,Wn=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,sr=(Ue,he,Pe)=>he in Ue?zr(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Er=(Ue,he)=>{for(var Pe in he||(he={}))wn.call(he,Pe)&&sr(Ue,Pe,he[Pe]);if(Wn)for(var Pe of Wn(he))Rn.call(he,Pe)&&sr(Ue,Pe,he[Pe]);return Ue};const Kr=Ue=>g.createElement("svg",Er({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M21.5 3h-19A2.503 2.503 0 0 0 0 5.5V17h24V5.5C24 4.122 22.878 3 21.5 3Zm.5 12H2V5.5a.5.5 0 0 1 .5-.5h19a.5.5 0 0 1 .5.5V15ZM4 7h3v2H4V7Zm8 2H9V7h3v2Zm2-2h6v2h-6V7Zm-6 4h8v2H8v-2Zm10 0h2v2h-2v-2ZM4 11h2v2H4v-2Zm11.293 7.707 1.414 1.414-3.293 3.293c-.39.39-.902.585-1.414.585a1.993 1.993 0 0 1-1.414-.585l-3.293-3.293 1.414-1.414L12 22l3.293-3.293Z"}));var ta="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIxLjUgM2gtMTlBMi41MDMgMi41MDMgMCAwIDAgMCA1LjVWMTdoMjRWNS41QzI0IDQuMTIyIDIyLjg3OCAzIDIxLjUgM1ptLjUgMTJIMlY1LjVhLjUuNSAwIDAgMSAuNS0uNWgxOWEuNS41IDAgMCAxIC41LjVWMTVaTTQgN2gzdjJINFY3Wm04IDJIOVY3aDN2MlptMi0yaDZ2MmgtNlY3Wm0tNiA0aDh2Mkg4di0yWm0xMCAwaDJ2MmgtMnYtMlpNNCAxMWgydjJINHYtMlptMTEuMjkzIDcuNzA3IDEuNDE0IDEuNDE0LTMuMjkzIDMuMjkzYy0uMzkuMzktLjkwMi41ODUtMS40MTQuNTg1YTEuOTkzIDEuOTkzIDAgMCAxLTEuNDE0LS41ODVsLTMuMjkzLTMuMjkzIDEuNDE0LTEuNDE0TDEyIDIybDMuMjkzLTMuMjkzWiIvPjwvc3ZnPg==",ga=function(he){for(var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Un=navigator.userAgent.toLowerCase(),vt=Un.indexOf("mac")>-1,zn=[],En=function(){var fr=he[On];if(!vt&&fr.includes("meta")||vt&&fr.includes("ctrl"))return"continue";if(fr.includes(".")){var or=fr.split(".");or.forEach(function(ua,Or){var ar=(0,x.jsx)("span",{className:c()({"dds-annotator-shortcutsinfo-key":Pe}),children:bt(ua)},Or);zn.push(ar),Or!==or.length-1&&zn.push((0,x.jsxs)("span",{className:c()({"dds-annotator-shortcutsinfo-combine":Pe}),children:[" ","+"," "]},Or+"and"))})}else{var jn=(0,x.jsx)("span",{className:c()({"dds-annotator-shortcutsinfo-key":Pe}),children:bt(fr)},On);zn.push(jn)}On!==he.length-1&&zn.push((0,x.jsxs)("span",{className:c()({"dds-annotator-shortcutsinfo-combine":Pe}),children:[" ","/"," "]},On+"or"))},On=0;On=Q.Fv,Ar=jn<=Q.vL;(0,Ee.Z)(Se[Ie.ZoomIn].shortcut,function(){Vr||ua()}),(0,Ee.Z)(Se[Ie.ZoomOut].shortcut,function(){Ar||Or()}),(0,Ee.Z)(Se[Ie.Reset].shortcut,function(){ar()});var Y=function(ue){var Ce=ga(ue.shortcut.shortcut,!1);return(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar-popover",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("span",{className:"popover-title",children:ue.name}),(0,x.jsx)("span",{className:"popover-key",children:Ce})]}),(0,x.jsx)("div",{className:"popover-divider"}),(0,x.jsx)("div",{className:"popover-description",children:ue.description})]})};return(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar",onMouseDown:function(ue){ue.stopPropagation()},children:[hr?(0,x.jsx)("div",{}):(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar-content",children:[fa.map(function(z){return(0,x.jsx)(gn.Z,{placement:"right",content:Y(z),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn",{"slidertoolbar-btn-active":he===z.key}),icon:z.icon,onClick:function(){return En(z.key)}})},z.key)}),Qr.map(function(z){return(0,x.jsxs)("div",{className:c()({"slidertoolbar-annotool-active-wrap":he===z.key&&!Pe}),children:[(0,x.jsx)(gn.Z,{placement:"right",content:Y(z),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn",{"slidertoolbar-btn-active":he===z.key&&!zn}),icon:z.icon,onClick:function(){return En(z.key)}})}),he===z.key&&!Pe&&(0,x.jsx)(gn.Z,{placement:"right",content:Y($r),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn",{"slidertoolbar-btn-active":zn}),icon:z.aiIcon,onClick:function(){return On(!zn)}})},$r.key)]},z.key)}),(0,x.jsx)("div",{className:"slidertoolbar-divider"}),lr.map(function(z){return(0,x.jsx)(gn.Z,{placement:"right",content:Y(z),children:(0,x.jsx)(C.ZP,{className:c()("slidertoolbar-btn"),icon:z.icon,onClick:z.handler})},z.key)})]}),(0,x.jsxs)("div",{className:"dds-annotator-slidertoolbar-content",children:[(0,x.jsx)(C.ZP,{type:"primary",className:"slidertoolbar-btn",onClick:ar,icon:(0,x.jsx)(H.Z,{component:kr})}),(0,x.jsx)(C.ZP,{type:"primary",className:c()("slidertoolbar-btn",{"slidertoolbar-btn-disabled":Ar}),icon:(0,x.jsx)(tn.Z,{}),onClick:Or}),(0,x.jsxs)("div",{className:"slidertoolbar-scale-text",children:[Math.floor(jn*100),"%"]}),(0,x.jsx)(C.ZP,{type:"primary",className:c()("slidertoolbar-btn",{"slidertoolbar-btn-disabled":Vr}),icon:(0,x.jsx)(yn.Z,{}),onClick:ua})]})]})}),Ma=Ur,ma=e(38875),Yn=e(94706),Zn=e(57414),Sr=Object.defineProperty,Xr=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,on=(Ue,he,Pe)=>he in Ue?Sr(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Mn=(Ue,he)=>{for(var Pe in he||(he={}))wr.call(he,Pe)&&on(Ue,Pe,he[Pe]);if(Xr)for(var Pe of Xr(he))Pt.call(he,Pe)&&on(Ue,Pe,he[Pe]);return Ue};const Ja=Ue=>g.createElement("svg",Mn({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M23.737 13.118v7.764a6.713 6.713 0 0 1-6.706 6.707 6.713 6.713 0 0 1-6.705-6.707v-7.764a6.713 6.713 0 0 1 6.705-6.707 6.713 6.713 0 0 1 6.706 6.707Zm-.693 3.662H11.018v4.102a6.02 6.02 0 0 0 6.013 6.017 6.02 6.02 0 0 0 6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 0-5.698-6.008v8.977h5.698v-2.969Z",fill:"#fff"}));var mo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjMuNzM3IDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMS02LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMS02LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDEgNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDEgNi43MDYgNi43MDdabS0uNjkzIDMuNjYySDExLjAxOHY0LjEwMmE2LjAyIDYuMDIgMCAwIDAgNi4wMTMgNi4wMTcgNi4wMiA2LjAyIDAgMCAwIDYuMDEzLTYuMDE3VjE2Ljc4Wm0wLTMuNjYyYTYuMDIgNi4wMiAwIDAgMC01LjY5OC02LjAwOHY4Ljk3N2g1LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",Ua=Object.defineProperty,ka=Object.getOwnPropertySymbols,Qa=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,No=(Ue,he,Pe)=>he in Ue?Ua(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ho=(Ue,he)=>{for(var Pe in he||(he={}))Qa.call(he,Pe)&&No(Ue,Pe,he[Pe]);if(ka)for(var Pe of ka(he))wo.call(he,Pe)&&No(Ue,Pe,he[Pe]);return Ue};const dt=Ue=>g.createElement("svg",ho({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M10.263 13.118v7.764a6.713 6.713 0 0 0 6.706 6.707 6.713 6.713 0 0 0 6.705-6.707v-7.764a6.713 6.713 0 0 0-6.705-6.707 6.713 6.713 0 0 0-6.706 6.707Zm.693 3.662h12.026v4.102a6.02 6.02 0 0 1-6.013 6.017 6.02 6.02 0 0 1-6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 1 5.698-6.008v8.977h-5.698v-2.969Z",fill:"#fff"}));var Rt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMjYzIDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDAtNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDAtNi43MDYgNi43MDdabS42OTMgMy42NjJoMTIuMDI2djQuMTAyYTYuMDIgNi4wMiAwIDAgMS02LjAxMyA2LjAxNyA2LjAyIDYuMDIgMCAwIDEtNi4wMTMtNi4wMTdWMTYuNzhabTAtMy42NjJhNi4wMiA2LjAyIDAgMCAxIDUuNjk4LTYuMDA4djguOTc3aC01LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",Ae=(0,g.memo)(function(Ue){var he,Pe=Ue.selectedTool,Un=Ue.selectedSubTool,vt=Ue.selectedModel,zn=Ue.AIAnnotation,En=Ue.isBatchEditing,On=Ue.isCtrlPressed,Fn=Ue.naturalSize,mr=Ue.limitConf,fr=Ue.latestLabel,or=Ue.onExitAIAnnotation,jn=Ue.onAiAnnotation,ua=Ue.onChangeConfidenceRange,Or=Ue.onChangeLimitConf,ar=Ue.onAcceptValidObjects,hr=Ue.onCancelBatchEdit,Pr=Ue.forceChangeTool,aa=(0,F.bU)(),Jn=aa.localeText,fa=(0,g.useState)(function(){return fr}),Qr=s()(fa,2),$r=Qr[0],lr=Qr[1];(0,g.useEffect)(function(){lr(fr)},[fr]);var Ir=(0,M.x)({predIouThresh:.89,pointsPerSide:32,minMaskRegionArea:300}),Vr=s()(Ir,2),Ar=Vr[0],Y=Vr[1],z=(he={},Gt()(he,Q.ru.Drag,{name:Jn("DDSAnnotator.shortcuts.tools.drag"),icon:Ut}),Gt()(he,Q.ru.Rectangle,{name:vt===Q.HE.Detection?Jn("DDSAnnotator.smart.detection.name"):Jn("DDSAnnotator.smart.ivp.name"),icon:Q.ef[Q.gr.Rectangle]}),Gt()(he,Q.ru.Polygon,{name:Jn("DDSAnnotator.smart.segmentation.name"),icon:Q.ef[Q.gr.Polygon]}),Gt()(he,Q.ru.Skeleton,{name:Jn("DDSAnnotator.smart.pose.name"),icon:Q.ef[Q.gr.Skeleton]}),Gt()(he,Q.ru.Mask,{name:vt===Q.HE.SegmentByMask?Jn("DDSAnnotator.smart.isg.name"):vt===Q.HE.SegmentEverything?Jn("DDSAnnotator.smart.sam.name"):Jn("DDSAnnotator.smart.ivp.name"),icon:Q.ef[Q.gr.Mask]}),he),ue=function(Dt){if(Dt.type==="mouseup"&&(Pe===Q.ru.Skeleton||Pe===Q.ru.Mask&&Un===Q.jB.AutoSegmentEverything||Pe===Q.ru.Rectangle)){Dt.preventDefault();return}else Dt.stopPropagation()},Ce=(0,g.useMemo)(function(){return!zn||Pe===Q.ru.Drag?!1:Pe===Q.ru.Mask?vt===Q.HE.SegmentEverything?Un===Q.jB.AutoSegmentEverything:vt===Q.HE.SegmentByMask?!1:vt===Q.HE.IVP?En:!1:Pe===Q.ru.Polygon?!1:Pe===Q.ru.Rectangle?vt===Q.HE.Detection?!(En&&On):vt===Q.HE.IVP?En:!1:!0},[Pe,Un,vt,zn,En,On]),Re=(0,g.useMemo)(function(){return Pe===Q.ru.Rectangle&&vt===Q.HE.Detection&&En&&On?[{text:Jn("DDSAnnotator.smart.tip.recover"),logo:(0,x.jsx)(Ja,{})},{text:Jn("DDSAnnotator.smart.tip.overlayobject"),logo:(0,x.jsx)(dt,{})}]:[]},[En,On,vt]),rt=(0,g.useMemo)(function(){return Fn.width*Fn.height},[Fn]);return(0,x.jsxs)(A,{eventHandler:ue,children:[Re.length>0&&(0,x.jsx)("div",{className:"dds-annotator-operation-tip",children:Re.map(function(Mt){return(0,x.jsxs)("div",{className:"dds-annotator-operation-tip-item",children:[(0,x.jsx)("span",{children:Mt.text}),Mt.logo]},Mt.text)})}),(0,x.jsx)(w.Z,{id:"smart-annotation-editor",className:c()("dds-annotator-smart-container",{"dds-annotator-smart-container-visible":Ce}),title:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-title",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-title-icon",children:[(0,x.jsx)(ma.Z,{component:Q.QD[Q.Uu.SmartAnnotation]}),(0,x.jsx)("div",{children:z[Pe].name})]}),(0,x.jsx)(C.ZP,{ghost:!0,className:"dds-annotator-smart-container-btn",icon:(0,x.jsx)(h.Z,{}),shape:"circle",size:"small",onClick:function(){or(),Pr(Pe,Q.jB.PenAdd)}})]}),children:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content",children:[Pe===Q.ru.Rectangle&&vt===Q.HE.Detection&&(En?(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:[Jn("DDSAnnotator.smart.detection.confidence"),":"]}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",defaultValue:mr,min:0,max:1,step:.01,onAfterChange:Or,railStyle:{background:"#99bdff"},trackStyle:{background:"#edf0f3"}})]})}),(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-tip-text",children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.tip"),": "]}),Jn("DDSAnnotator.smart.tip.ctrl")]}),(0,x.jsxs)("div",{style:{alignSelf:"flex-end"},children:[(0,x.jsx)(C.ZP,{style:{marginRight:"10px"},onClick:hr,children:Jn("DDSAnnotator.smart.back")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:ar,children:Jn("DDSAnnotator.save")})]})]}):(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,x.jsxs)("div",{children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.detection.label"),":"]}),fr]}),(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item-row",children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.detection.prompt"),":"]}),(0,x.jsx)(T.Z,{placeholder:Jn("DDSAnnotator.smart.detection.input"),value:$r,onChange:function(Dt){return lr(Dt.target.value)},onKeyUp:function(Dt){return Dt.stopPropagation()},onKeyDown:function(Dt){return Dt.stopPropagation()}})]}),(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-column-item-right",children:(0,x.jsx)(C.ZP,{type:"primary",onClick:function(){return jn({text:$r})},children:Jn("DDSAnnotator.smart.annotate")})})]})),(Pe===Q.ru.Rectangle&&vt===Q.HE.IVP||Pe===Q.ru.Mask&&vt===Q.HE.IVP)&&(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-tip-text",children:[(0,x.jsxs)("span",{children:[Jn("DDSAnnotator.smart.tip"),": "]}),Jn("DDSAnnotator.smart.tip.visualPrompt")]}),(0,x.jsxs)("div",{style:{alignSelf:"flex-end"},children:[(0,x.jsx)(C.ZP,{style:{marginRight:"10px"},onClick:hr,children:Jn("DDSAnnotator.smart.back")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:ar,children:Jn("DDSAnnotator.save")})]})]}),Pe===Q.ru.Skeleton&&(En?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Jn("DDSAnnotator.confidence")}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",range:!0,defaultValue:[0,100],onAfterChange:function(Dt){return ua([Dt[0]/100,Dt[1]/100])},tooltip:{formatter:function(Dt){return(0,x.jsx)(x.Fragment,{children:"".concat(Dt/100)})},getPopupContainer:function(){return document.getElementById("conf-slider")}}})]})}),(0,x.jsx)(C.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:ar,children:Jn("DDSAnnotator.save")})]}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(C.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return jn({})},children:Jn("DDSAnnotator.smart.annotate")})})),Pe===Q.ru.Mask&&vt===Q.HE.SegmentEverything&&Un===Q.jB.AutoSegmentEverything&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{id:"param-controls",className:"dds-annotator-smart-container-content-param-controls",children:[(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Jn("DDSAnnotator.smart.iouThres")}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:1-Ar.predIouThresh,onChange:function(Dt){return Y(function(Vt){Vt.predIouThresh=1-Dt})},min:0,max:.99,step:.01,reverse:!0,tooltip:{formatter:function(Dt){return"".concat(Math.floor((1-Dt)*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]}),(0,x.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,x.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Jn("DDSAnnotator.smart.minArea")}),(0,x.jsx)(Yn.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:Ar.minMaskRegionArea/rt,onChange:function(Dt){return Y(function(Vt){Vt.minMaskRegionArea=Dt*rt})},min:.01,max:.3,step:.01,tooltip:{formatter:function(Dt){return"".concat(Math.ceil(Dt*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]})]}),En?(0,x.jsxs)(Zn.Z,{className:"dds-annotator-smart-container-content-actions",style:{justifyContent:"flex-end"},children:[(0,x.jsx)(C.ZP,{onClick:function(){return jn({segmentEverythingParams:Ar})},children:Jn("DDSAnnotator.smart.retry")}),(0,x.jsx)(C.ZP,{type:"primary",onClick:function(){ar(),Pr(Q.ru.Mask,Q.jB.AutoEdgeStitching)},children:Jn("DDSAnnotator.annotsEditor.finish")})]}):(0,x.jsx)(C.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return jn({segmentEverythingParams:Ar})},children:Jn("DDSAnnotator.smart.annotate")})]})]})})]})}),dn=Ae,Pn=e(24454),Sn=e.n(Pn),er=e(56592),ir=e.n(er),Hr=e(99142),Oa=e(91169),oa=function(he,Pe){return he.current===Pe.current&&he.total===Pe.total&&he.customText===Pe.customText&&he.customDisableNext===Pe.customDisableNext},Jr=(0,g.memo)(function(Ue){var he=Ue.current,Pe=Ue.total,Un=Ue.customText,vt=Ue.customDisableNext,zn=Ue.onPrev,En=zn===void 0?function(){return Promise.resolve()}:zn,On=Ue.onNext,Fn=On===void 0?function(){return Promise.resolve()}:On,mr=(0,F.bU)(),fr=mr.localeText,or=(0,g.useState)(!1),jn=s()(or,2),ua=jn[0],Or=jn[1],ar=(0,g.useState)(!1),hr=s()(ar,2),Pr=hr[0],aa=hr[1],Jn=function(){var lr=ir()(Sn()().mark(function Ir(){return Sn()().wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Or(!0),Ar.next=3,En();case 3:Or(!1);case 4:case"end":return Ar.stop()}},Ir)}));return function(){return lr.apply(this,arguments)}}(),fa=function(){var lr=ir()(Sn()().mark(function Ir(){return Sn()().wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return aa(!0),Ar.next=3,Fn();case 3:aa(!1);case 4:case"end":return Ar.stop()}},Ir)}));return function(){return lr.apply(this,arguments)}}(),Qr=he<=0,$r=vt!=null?vt:he>=Pe-1;return(0,Ee.Z)(Se[Ie.PreviousImage].shortcut,function(){Qr||Jn()},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.NextImage].shortcut,function(){$r||fa()},{exactMatch:!0}),(0,x.jsxs)("div",{className:"dds-annotator-toppagination",children:[(0,x.jsx)(L.Z,{title:fr("DDSAnnotator.prev"),children:(0,x.jsx)(C.ZP,{className:c()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":Qr}),type:"primary",icon:(0,x.jsx)(Hr.Z,{}),loading:ua,onClick:Jn})}),Un||(0,x.jsxs)("div",{className:"dds-annotator-toppagination-scale-text",children:[he+1," / ",Pe]}),(0,x.jsx)(L.Z,{title:fr("DDSAnnotator.next"),children:(0,x.jsx)(C.ZP,{className:c()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":$r}),type:"primary",icon:(0,x.jsx)(Oa.Z,{}),loading:Pr,onClick:fa})})]})},oa),na=function(he){var Pe=he.mode,Un=he.currImageItem,vt=he.modal,zn=he.framesData,En=he.drawData,On=he.editState,Fn=he.setEditState,mr=he.hadChangeRecord,fr=he.categories,or=he.translateObject,jn=he.flagSaved,ua=he.onCancel,Or=he.onSave,ar=he.onCommit,hr=he.onReviewModify,Pr=he.onReviewAccept,aa=he.onReviewReject,Jn=he.classificationOptions,fa=he.isInAiSession,Qr=(0,F.bU)(),$r=Qr.localeText,lr=On.isRequiring,Ir=function(Dt){return Fn(function(Vt){Vt.isRequiring=Dt})},Vr=(0,g.useCallback)(function(Mt){var Dt=[];return zn?Dt=zn.objects.map(function(Vt){var nn={};return Vt.forEach(function(fn,hn){if(fn&&!fn.frameEmpty){var bn=or==null?void 0:or(fn),Yt=bn.labelId,Ln=bn.attributes,qn=bn.labelValue;nn.labelId=Yt,nn.attributes=Ln,nn.labelValue||(nn.labelValue={}),nn.labelValue[String(hn)]=qn}}),nn}):Dt=Mt.objectList.map(function(Vt){return or==null?void 0:or(Vt)}),[(zn==null?void 0:zn.id)||(Un==null?void 0:Un.id)||"",[].concat(Qt()(Mt.classifications.map(function(Vt){var nn,fn=fr.find(function(hn){return hn.id===Vt.labelId});return t()(t()({},Vt),{},{attributes:Vt.attributes||(fn==null||(nn=fn.attributes)===null||nn===void 0?void 0:nn.map(function(){return null}))||[]})})),Qt()(Dt)),zn?Gt()({},zn.activeIndex,{}):void 0]},[Un,or,zn]),Ar=function(Dt){var Vt=[];return Jn==null||Jn.forEach(function(nn,fn){var hn=Dt.find(function(bn){return bn.labelId===nn.id});(!hn||Z(hn.labelValue))&&Vt.push($r("DDSAnnotator.save.check.classification",{idx:fn+1}))}),Dt.forEach(function(nn,fn){var hn,bn=fr.find(function(Yt){return Yt.id===nn.labelId});bn!=null&&(hn=bn.attributes)!==null&&hn!==void 0&&hn.find(function(Yt,Ln){var qn;return Yt.required&&Z((qn=nn.attributes)===null||qn===void 0?void 0:qn[Ln])})&&Vt.push($r("DDSAnnotator.save.check.label",{idx:fn+1,labelName:bn.labelName}))}),Vt.length>0?(n.Z.warning({width:480,title:$r("DDSAnnotator.save.check.error"),content:(0,x.jsxs)("div",{children:[Vt.map(function(nn,fn){return(0,x.jsxs)("span",{children:[nn,(0,x.jsx)("br",{})]},fn)}),(0,x.jsx)("span",{children:$r("DDSAnnotator.save.check.tip")})]})}),!0):!1},Y=function(){var Mt=ir()(Sn()().mark(function Dt(){var Vt,nn,fn,hn;return Sn()().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(!(lr||!Or||fa())){Yt.next=2;break}return Yt.abrupt("return");case 2:if(Vt=Vr(En),nn=s()(Vt,2),fn=nn[0],hn=nn[1],console.log(">>> save",fn,hn),!Ar(hn)){Yt.next=6;break}return Yt.abrupt("return");case 6:return Ir(!0),Yt.prev=7,Yt.next=10,Or(fn,hn);case 10:jn==null||jn(),Yt.next=16;break;case 13:Yt.prev=13,Yt.t0=Yt.catch(7),console.error(Yt.t0);case 16:Ir(!1);case 17:case"end":return Yt.stop()}},Dt,null,[[7,13]])}));return function(){return Mt.apply(this,arguments)}}(),z=function(){var Mt=ir()(Sn()().mark(function Dt(){var Vt,nn,fn,hn;return Sn()().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(!(lr||!ar||fa())){Yt.next=2;break}return Yt.abrupt("return");case 2:if(Vt=Vr(En),nn=s()(Vt,2),fn=nn[0],hn=nn[1],!Ar(hn)){Yt.next=5;break}return Yt.abrupt("return");case 5:return Ir(!0),Yt.prev=6,Yt.next=9,ar(fn,hn);case 9:Yt.next=14;break;case 11:Yt.prev=11,Yt.t0=Yt.catch(6),console.error(Yt.t0);case 14:Ir(!1);case 15:case"end":return Yt.stop()}},Dt,null,[[6,11]])}));return function(){return Mt.apply(this,arguments)}}(),ue=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:Pe===W.je.Review&&aa&&aa.apply(void 0,Qt()(Vr(En)));case 1:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}(),Ce=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:Pe===W.je.Review&&Pr&&Pr.apply(void 0,Qt()(Vr(En)));case 1:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}(),Re=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:Pe===W.je.Review&&hr&&hr.apply(void 0,Qt()(Vr(En)));case 1:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}(),rt=function(){var Mt=ir()(Sn()().mark(function Dt(){return Sn()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!(Pe===W.je.Edit&&mr)){nn.next=3;break}return vt.confirm({getContainer:function(){return document.body},content:$r("DDSAnnotator.confirmLeave.content"),cancelText:$r("DDSAnnotator.confirmLeave.cancel"),okText:$r("DDSAnnotator.confirmLeave.ok"),okButtonProps:{danger:!0},onOk:function(){ua&&ua()}}),nn.abrupt("return");case 3:ua&&ua();case 4:case"end":return nn.stop()}},Dt)}));return function(){return Mt.apply(this,arguments)}}();return{onSaveAnnotations:Y,onCommitAnnotations:z,onCancelAnnotations:rt,onRejectAnnotations:ue,onAcceptAnnotations:Ce,onModifyAnnotations:Re}},Lr=na,Zr=e(97375),ca;(function(Ue){})(ca||(ca={}));function Ta(Ue,he,Pe){return eo.apply(this,arguments)}function eo(){return eo=ir()(Sn()().mark(function Ue(he,Pe,Un){var vt;return Sn()().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return vt="".concat("https://api.deepdataspace.com","/tasks/").concat(he),En.abrupt("return",(0,Zr.request)(vt,t()({method:"POST",data:t()({},Pe)},Un||{hideCodeErrorMsg:!0})));case 2:case"end":return En.stop()}},Ue)})),eo.apply(this,arguments)}function Va(Ue,he){var Pe="".concat("https://api.deepdataspace.com","/task_statuses/").concat(Ue);return(0,Zr.request)(Pe,t()({method:"GET"},he||{}))}function Xt(Ue,he){return In.apply(this,arguments)}function In(){return In=ir()(Sn()().mark(function Ue(he,Pe){var Un,vt,zn,En,On=arguments;return Sn()().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:Un=On.length>2&&On[2]!==void 0?On[2]:5e3,vt=On.length>3&&On[3]!==void 0?On[3]:1e3,zn=0;case 3:if(!(znqn?cr.score:qn},((Dt=Vt[0])===null||Dt===void 0?void 0:Dt.score)||0),bn=Vt.map(function(qn){var cr=t()({},(0,qr.JP)(qn.bbox,Fn,mr)),Dr=qn.score/hn;return{rect:t()(t()({},cr),{},{visible:!0}),labelId:En.latestLabelId,type:Q.gr.Rectangle,hidden:!1,status:Dr>=fn?W.TK.Checked:W.TK.Unchecked,conf:Dr,color:fr(En.latestLabelId,!0)}}).reverse(),zn(function(qn){qn.isBatchEditing=!0,qn.limitConf=fn;var cr=qn.objectList.filter(function(Dr){return(Dr==null?void 0:Dr.status)===W.TK.Commited});qn.objectList=[].concat(Qt()(cr),Qt()(bn)),qn.creatingObject&&qn.objectList[qn.activeObjectIndex]&&(qn.creatingObject=t()({},qn.objectList[qn.activeObjectIndex])),qn.prompt.sessionId=Mt}),Ln.abrupt("return",!0);case 18:case"end":return Ln.stop()}},Y)}));return function(z,ue){return Ar.apply(this,arguments)}}(),aa=function(){var Ar=ir()(Sn()().mark(function Y(z,ue){var Ce,Re,rt,Mt,Dt,Vt,nn,fn;return Sn()().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(!(!Pe||!ue)){bn.next=2;break}return bn.abrupt("return");case 2:if(Ce={prompts:hr(ue||[]),labelTypes:["bbox"]},!z.prompt.sessionId){bn.next=7;break}Object.assign(Ce,{sessionId:z.prompt.sessionId}),bn.next=11;break;case 7:return bn.next=9,Ia(Pe.url);case 9:Re=bn.sent,Object.assign(Ce,{promptImage:Re,inferImage:Re});case 11:return bn.next=13,Tn(Q.HE.IVP,Ce);case 13:if(rt=bn.sent,Mt=rt.result,Dt=rt.sessionId,!Mt){bn.next=22;break}return Vt=Mt.objects,nn=.3,fn=Vt.filter(function(Yt){return Yt.bbox}).map(function(Yt){var Ln=Yt.bbox,qn=s()(Ln,4),cr=qn[0],Dr=qn[1],Rr=qn[2],Aa=qn[3],xa=(0,qr.$S)((0,qr.Aw)({xmin:cr,ymin:Dr,xmax:Rr,ymax:Aa}),Fn,mr);return{rect:t()(t()({},xa),{},{visible:!0}),labelId:En.latestLabelId,type:Q.gr.Rectangle,hidden:!1,status:Yt.score>=nn?W.TK.Checked:W.TK.Unchecked,conf:Yt.score,color:fr(En.latestLabelId,!0)}}).reverse(),zn(function(Yt){Yt.isBatchEditing=!0,Yt.limitConf=nn;var Ln=Yt.objectList.filter(function(qn){return qn.status===W.TK.Commited});Yt.objectList=[].concat(Qt()(Ln),Qt()(fn)),Yt.creatingObject&&Yt.objectList[Yt.activeObjectIndex]&&(Yt.creatingObject=t()({},Yt.objectList[Yt.activeObjectIndex])),Yt.prompt.promptsQueue=ue,Yt.prompt.sessionId=Dt,Yt.prompt.creatingPrompt=void 0}),bn.abrupt("return",!0);case 22:case"end":return bn.stop()}},Y)}));return function(z,ue){return Ar.apply(this,arguments)}}(),Jn=function(){var Ar=ir()(Sn()().mark(function Y(z,ue){var Ce,Re,rt,Mt,Dt,Vt,nn;return Sn()().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(!(!Pe||!ue)){hn.next=2;break}return hn.abrupt("return");case 2:if(Ce={prompts:hr(ue||[]),labelTypes:["mask"]},!z.prompt.sessionId){hn.next=7;break}Object.assign(Ce,{sessionId:z.prompt.sessionId}),hn.next=11;break;case 7:return hn.next=9,Ia(Pe.url);case 9:Re=hn.sent,Object.assign(Ce,{promptImage:Re,inferImage:Re});case 11:return hn.next=13,Tn(Q.HE.IVP,Ce);case 13:if(rt=hn.sent,Mt=rt.result,Dt=rt.sessionId,!Mt){hn.next=22;break}return On(function(bn){bn.annotsDisplayOptions.colorByCategory=!1}),Vt=Mt.objects,nn=Vt.filter(function(bn){return!!bn.mask}).map(function(bn){var Yt,Ln=fr(En.latestLabelId),qn=((Yt=bn.mask)===null||Yt===void 0?void 0:Yt.counts)||"";return{type:Q.gr.Mask,hidden:!1,labelId:En.latestLabelId,maskRle:qn,maskCanvasElement:(0,yr.ei)(qn,Fn,Ln),status:W.TK.Checked,conf:bn.score,color:fr(En.latestLabelId,!0)}}),zn(function(bn){bn.isBatchEditing=!0;var Yt=bn.objectList.filter(function(Ln){return Ln.status===W.TK.Commited});bn.objectList=[].concat(Qt()(Yt),Qt()(nn)),bn.creatingObject&&bn.objectList[bn.activeObjectIndex]&&(bn.creatingObject=t()({},bn.objectList[bn.activeObjectIndex])),bn.prompt.promptsQueue=ue,bn.prompt.sessionId=Dt,bn.prompt.creatingPrompt=void 0}),hn.abrupt("return",!0);case 22:case"end":return hn.stop()}},Y)}));return function(z,ue){return Ar.apply(this,arguments)}}(),fa=function(){var Ar=ir()(Sn()().mark(function Y(z,ue){var Ce,Re,rt,Mt,Dt,Vt,nn,fn;return Sn()().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(ue){bn.next=2;break}return bn.abrupt("return");case 2:return bn.next=4,ar(z,{density:z.pointResolution,prompts:hr(ue||[])});case 4:return Ce=bn.sent,bn.next=7,Tn(Q.HE.SegmentByPolygon,Ce);case 7:if(Re=bn.sent,rt=Re.result,Mt=Re.sessionId,!rt){bn.next=17;break}if(Dt=rt.polygons,!(Dt&&Dt.length>0)){bn.next=17;break}return nn=Dt.filter(function(Yt){return Yt.length>=6}).map(function(Yt){for(var Ln=[],qn=0;qn-1&&Mt[z.activeObjectIndex]&&z.creatingObject&&(Mt[z.activeObjectIndex]=t()(t()({},Mt[z.activeObjectIndex]),z.creatingObject)),Dt=Mt.filter(function(cr){return cr.type===Q.gr.Skeleton&&cr.status===W.TK.Checked}),Dt.length>0&&(Vt=Dt.map(function(cr){return{keypoints:cr.keypoints?(0,qr.$G)(cr.keypoints.points,Fn,mr).points:void 0,bbox:cr.rect?(0,qr.cx)(cr.rect,mr,Fn):void 0}}),Object.assign(rt,{objects:Vt}))),qn.next=7,Tn(Q.HE.Pose,rt);case 7:if(nn=qn.sent,fn=nn.result,hn=nn.sessionId,!fn){qn.next=16;break}if(bn=fn.objects,!(bn&&bn.length>0)){qn.next=16;break}return Yt=bn.map(function(cr){var Dr=cr.bbox,Rr=cr.keypoints,Aa=cr.score,xa={labelId:En.latestLabelId,color:fr(En.latestLabelId),type:Q.gr.Skeleton,hidden:!1,conf:Aa,status:W.TK.Checked};if(Dr){var pa=(0,qr.JP)(Dr,Fn,mr);Object.assign(xa,{rect:t()({visible:!0},pa)})}if(Rr&&ue&&Re&&Ce){var za=(0,qr.OX)(Rr,Ce,Re,Fn,mr);Object.assign(xa,{keypoints:{points:za,lines:ue}})}return xa}),zn(function(cr){cr.isBatchEditing||(cr.isBatchEditing=!0);var Dr=cr.objectList.filter(function(Rr){return Rr.status===W.TK.Commited});cr.objectList=[].concat(Qt()(Dr),Qt()(Yt)),cr.creatingObject&&cr.objectList[cr.activeObjectIndex]&&(cr.creatingObject=t()({},cr.objectList[cr.activeObjectIndex])),cr.prompt.sessionId=hn}),qn.abrupt("return",!0);case 16:case"end":return qn.stop()}},Y)}));return function(z){return Ar.apply(this,arguments)}}(),lr=function(){var Ar=ir()(Sn()().mark(function Y(z){var ue,Ce,Re,rt,Mt,Dt,Vt,nn,fn,hn,bn,Yt,Ln,qn,cr;return Sn()().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:if(!(!((ue=z.prompt.creatingPrompt)!==null&&ue!==void 0&&ue.stroke)||!((Ce=z.prompt.creatingPrompt)!==null&&Ce!==void 0&&Ce.radius))){Rr.next=2;break}return Rr.abrupt("return");case 2:if(rt=z.prompt.creatingPrompt,Mt=rt.stroke,Dt=rt.radius,Vt=z.objectList.filter(function(Aa){return Aa.type===Q.gr.Mask}),!(Vt.length<2)){Rr.next=8;break}return S.ZP.error(jn("DDSAnnotator.smart.tip.edgeStitchError")),vt(function(Aa){Aa.prompt.creatingPrompt=void 0}),Rr.abrupt("return");case 8:return nn=Vt.map(function(Aa){return{counts:Aa.maskRle||"",size:[Fn.height,Fn.width]}}),fn=Mt.reduce(function(Aa,xa){var pa=xa.x,za=xa.y,ha=(0,qr.AR)([pa,za],Fn,mr);return Aa.concat([ha.x,ha.y])},[]),Rr.next=12,ar(z,{masks:nn,prompts:[{type:W.Ae.Stroke,stroke:fn,radius:Dt}]});case 12:return hn=Rr.sent,Rr.next=15,Tn(Q.HE.MaskEdgeStitching,hn);case 15:if(bn=Rr.sent,Yt=bn.result,Ln=bn.sessionId,!(Yt&&((Re=Yt.masks)===null||Re===void 0?void 0:Re.length)>0)){Rr.next=23;break}return qn=Vt.map(function(Aa,xa){var pa,za,ha=((pa=Yt.masks)===null||pa===void 0||(za=pa[xa])===null||za===void 0?void 0:za.counts)||"";return t()(t()({},Aa),{},{maskRle:ha,maskCanvasElement:(0,yr.ei)(ha,Fn,Aa.color)})}),cr=z.objectList.filter(function(Aa){return Aa.type!==Q.gr.Mask}),zn(function(Aa){Aa.objectList=[].concat(Qt()(cr),Qt()(qn)),Aa.prompt.creatingPrompt=void 0,Aa.prompt.sessionId=Ln}),Rr.abrupt("return",!0);case 23:case"end":return Rr.stop()}},Y)}));return function(z){return Ar.apply(this,arguments)}}(),Ir=function(){var Ar=ir()(Sn()().mark(function Y(z){var ue,Ce,Re,rt,Mt;return Sn()().wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(Pe){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.t0=t(),Vt.next=5,Ia(Pe.url);case 5:return Vt.t1=Vt.sent,Vt.t2={image:Vt.t1},Vt.t3=z,Ce=(0,Vt.t0)(Vt.t2,Vt.t3),Vt.next=11,Tn(Q.HE.SegmentEverything,Ce);case 11:if(Re=Vt.sent,rt=Re.result,!(rt&&((ue=rt.masks)===null||ue===void 0?void 0:ue.length)>0)){Vt.next=18;break}return On(function(nn){nn.annotsDisplayOptions.colorByCategory=!1}),Mt=rt.masks.map(function(nn){var fn=fr(En.latestLabelId),hn=(nn==null?void 0:nn.counts)||"";return{type:Q.gr.Mask,hidden:!1,labelId:En.latestLabelId,maskRle:hn,maskCanvasElement:(0,yr.ei)(hn,Fn,fn),conf:1,status:W.TK.Checked,color:fn}}),zn(function(nn){nn.objectList=Mt,nn.isBatchEditing=!0}),Vt.abrupt("return",!0);case 18:case"end":return Vt.stop()}},Y)}));return function(z){return Ar.apply(this,arguments)}}(),Vr=(0,g.useCallback)(function(){var Ar=ir()(Sn()().mark(function Y(z){var ue,Ce,Re,rt,Mt,Dt,Vt,nn,fn,hn;return Sn()().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(ue=z.type,Ce=z.drawData,Re=z.text,rt=z.promptsQueue,Mt=z.segmentEverythingParams,!(En.isRequiring||!Pe)){Yt.next=3;break}return Yt.abrupt("return");case 3:Dt=Ce||Un,Vt=S.ZP.loading(jn("DDSAnnotator.smart.msg.loading"),1e5),Yt.prev=5,Or(!0),On(function(Ln){Ln.isRequiring=!0}),nn=ue||Q.Zo[Dt.selectedTool],Yt.t0=nn,Yt.next=Yt.t0===Q.gr.Rectangle?12:Yt.t0===Q.gr.Skeleton?22:Yt.t0===Q.gr.Polygon?26:Yt.t0===Q.gr.Mask?30:54;break;case 12:if(Dt.selectedModel[Dt.selectedTool]!==Q.HE.Detection){Yt.next=18;break}return Yt.next=15,Pr(Dt,Re||"");case 15:fn=Yt.sent,Yt.next=21;break;case 18:return Yt.next=20,aa(Dt,rt);case 20:fn=Yt.sent;case 21:return Yt.abrupt("break",56);case 22:return Yt.next=24,$r(Dt);case 24:return fn=Yt.sent,Yt.abrupt("break",56);case 26:return Yt.next=28,fa(Dt,rt);case 28:return fn=Yt.sent,Yt.abrupt("break",56);case 30:if(hn=Dt.selectedModel[Dt.selectedTool],hn!==Q.HE.SegmentEverything){Yt.next=44;break}if(Dt.selectedSubTool!==Q.jB.AutoEdgeStitching){Yt.next=38;break}return Yt.next=35,lr(Dt);case 35:fn=Yt.sent,Yt.next=42;break;case 38:if(Dt.selectedSubTool!==Q.jB.AutoSegmentEverything){Yt.next=42;break}return Yt.next=41,Ir(Mt);case 41:fn=Yt.sent;case 42:Yt.next=53;break;case 44:if(hn!==Q.HE.IVP){Yt.next=50;break}return Yt.next=47,Jn(Dt,rt);case 47:fn=Yt.sent,Yt.next=53;break;case 50:return Yt.next=52,Qr(Dt,rt);case 52:fn=Yt.sent;case 53:return Yt.abrupt("break",56);case 54:return S.ZP.warning("Plan to Support!"),Yt.abrupt("break",56);case 56:fn&&S.ZP.success(jn("DDSAnnotator.smart.msg.success")),Yt.next=63;break;case 59:Yt.prev=59,Yt.t1=Yt.catch(5),zn(function(Ln){Ln.prompt.creatingPrompt&&(Ln.prompt.creatingPrompt=void 0)}),S.ZP.error(jn("DDSAnnotator.smart.msg.error"));case 63:return Yt.prev=63,Or(!1),On(function(Ln){Ln.isRequiring=!1}),vt(function(Ln){Ln.prompt.activeRectWhileLoading=void 0}),Vt(),Yt.finish(63);case 69:case"end":return Yt.stop()}},Y,null,[[5,59,63,69]])}));return function(Y){return Ar.apply(this,arguments)}}(),[Un,Pe,En,Fn,mr,fr,zn]);return{onAiAnnotation:Vr}},Co=fo;function _a(Ue){var he=Ue.setDrawDataWithHistory,Pe=Ue.categories,Un=(0,g.useCallback)(function(En,On){var Fn=Pe.find(function(mr){return mr.id===En.labelId});if(Fn!=null&&Fn.attributes&&Fn.attributes.length>0)return{index:On,labelId:En.labelId,attributes:Fn.attributes,values:En.attributes||[]}},[Pe]),vt=(0,g.useCallback)(function(En){he(function(On){if(On.editingAttribute){if(On.objectList[On.editingAttribute.index])On.objectList[On.editingAttribute.index].attributes=En;else{var Fn=On.classifications.findIndex(function(fr){var or;return fr.labelId===((or=On.editingAttribute)===null||or===void 0?void 0:or.labelId)});if(Fn>-1)On.classifications[Fn].attributes=En;else{var mr;On.classifications.push({labelId:(mr=On.editingAttribute)===null||mr===void 0?void 0:mr.labelId,labelValue:null,attributes:En})}}On.editingAttribute=void 0}})},[he]),zn=function(){he(function(On){On.editingAttribute=void 0})};return{judgeEditingAttribute:Un,onConfirmAttibuteEdit:vt,onCancelAttibuteEdit:zn}}var bo=e(95073),so=e(43112),Sa=e(5397),Ba=e(21325),Mo=e(68716),Ko={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Jo=function(Ue){var he=(0,so.CR)((0,Sa.Z)(Ko),2),Pe=he[0],Un=he[1];return(0,Ba.Z)("mousemove",function(vt){var zn=vt.screenX,En=vt.screenY,On=vt.clientX,Fn=vt.clientY,mr=vt.pageX,fr=vt.pageY,or={screenX:zn,screenY:En,clientX:On,clientY:Fn,pageX:mr,pageY:fr,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},jn=(0,Mo.n)(Ue);if(jn){var ua=jn.getBoundingClientRect(),Or=ua.left,ar=ua.top,hr=ua.width,Pr=ua.height;or.elementPosX=Or+window.pageXOffset,or.elementPosY=ar+window.pageYOffset,or.elementX=mr-or.elementPosX,or.elementY=fr-or.elementPosY,or.elementW=hr,or.elementH=Pr}Un(or)},{target:function(){return document}}),Pe},ao=e(41260);function yi(Ue){var he=Ue.isRequiring,Pe=Ue.visible,Un=Ue.minPadding,vt=Un===void 0?{top:0,left:0}:Un,zn=Ue.allowMove,En=Ue.drawData,On=Ue.cursorSize,Fn=Ue.onClickMaskBg,mr=Ue.hideReferenceLine,fr=(0,g.useRef)(null),or=(0,bo.Z)(function(){return fr.current}),jn=Jo(function(){return fr.current}),ua=(0,g.useState)({width:0,height:0}),Or=s()(ua,2),ar=Or[0],hr=Or[1],Pr=(0,M.x)({width:ar.width,height:ar.height,scale:1}),aa=s()(Pr,2),Jn=aa[0],fa=aa[1],Qr=(0,g.useRef)({x:0,y:0}),$r=(0,g.useRef)(void 0),lr=(0,g.useMemo)(function(){return t()(t()({},jn),{},{elementW:Jn.width,elementH:Jn.height,elementX:jn.elementX-Qr.current.x,elementY:jn.elementY-Qr.current.y})},[jn,Jn]),Ir=(0,M.x)(null),Vr=s()(Ir,2),Ar=Vr[0],Y=Vr[1],z=function(Rr,Aa){if(Rr!=null&&Rr.width&&Aa!==null&&Aa!==void 0&&Aa.height){var xa=Aa.width,pa=Aa.height,za=(0,qr.t9)(Rr.width,Rr.height,xa-vt.left*2,pa-vt.top*2),ha=s()(za,3),Yr=ha[0],$a=ha[1],Xa=ha[2];Qr.current={x:(xa-Yr)*.5,y:(pa-$a)*.5},fa({scale:Xa,width:Rr.width*Xa,height:Rr.height*Xa}),$r.current=void 0}};(0,g.useEffect)(function(){ar&&or&&z(ar,or)},[or]);var ue=function(){if(or){var Rr=or==null?void 0:or.width,Aa=or==null?void 0:or.height,xa=.5,pa=.5,za=Rr/2,ha=Aa/2;$r.current&&(xa=$r.current.posRatioX,pa=$r.current.posRatioY,za=$r.current.mouseX,ha=$r.current.mouseY);var Yr=za-Jn.width*xa,$a=ha-Jn.height*pa;Qr.current={x:Yr,y:$a}}};(0,g.useEffect)(function(){ue()},[Jn]);var Ce=function(Rr,Aa,xa){!Pe||he||fa(function(pa){var za=Rr?Math.min(Q.Fv,(0,ao.O)(pa.scale+Aa,2)):Math.max(Q.vL,(0,ao.O)(pa.scale-Aa,2));if((!$r.current||jn.elementX!==$r.current.mouseX||jn.elementY!==$r.current.mouseY)&&!xa&&!isNaN(lr.elementX)&&!isNaN(jn.elementX)&&Jn.width){var ha={posRatioX:lr.elementX/Jn.width,posRatioY:lr.elementY/Jn.height,mouseX:jn.elementX,mouseY:jn.elementY};$r.current=ha}pa.scale=za,pa.width=ar.width*za,pa.height=ar.height*za})},Re=(0,g.useCallback)(function(){Ce(!0,Q.yj,!0)},[Q.yj,Ce]),rt=(0,g.useCallback)(function(){Ce(!1,Q.yj,!0)},[Q.yj,Ce]),Mt=function(Rr){if(!(!Pe||he)){var Aa=Rr.deltaY;Aa>0?Ce(!1,Q.oP):Aa<0&&Ce(!0,Q.oP)}},Dt=(0,g.useCallback)(function(){$r.current=void 0,or&&ar&&z(ar,or)},[ar.width,ar.height,or==null?void 0:or.width,or==null?void 0:or.height]);(0,g.useEffect)(function(){Pe||(hr({width:0,height:0}),fa({scale:1,width:0,height:0}),Qr.current={x:0,y:0},$r.current=void 0)},[Pe]);var Vt=(0,g.useState)(!1),nn=s()(Vt,2),fn=nn[0],hn=nn[1];(0,Ba.Z)("mousedown",function(){!Pe||!fr.current||!(0,qr.jt)(jn)||(hn(!0),Y({x:lr.elementX,y:lr.elementY}))}),(0,Ba.Z)("mousemove",function(){if(Pe&&Ar&&zn&&fn){var Dr=lr.elementX-Ar.x,Rr=lr.elementY-Ar.y,Aa=Qr.current,xa=Aa.x,pa=Aa.y;Qr.current={x:xa+Dr,y:pa+Rr}}}),(0,Ba.Z)("mouseup",function(){if(hn(!1),!(!Pe||!zn)&&Ar){Y(null);return}}),(0,g.useEffect)(function(){Y(zn?{x:lr.elementX,y:lr.elementY}:null)},[zn]);var bn=function(Rr,Aa){var xa=Rr.target,pa={width:xa.naturalWidth,height:xa.naturalHeight};hr(pa),or&&pa&&!Aa&&z(pa,or)},Yt=function(Rr){(0,qr.jt)(lr)||Fn==null||Fn(Rr)},Ln=(0,g.useMemo)(function(){var Dr=[Q.jB.AutoEdgeStitching,Q.jB.AutoSegmentByStroke,Q.jB.BrushAdd,Q.jB.BrushErase].includes(En.selectedSubTool);return En.creatingObject&&En.activeObjectIndex>-1&&[Q.gr.Mask,Q.gr.Polygon].includes(En.creatingObject.type)?Dr:En.selectedTool!==Q.ru.Drag&&!En.isBatchEditing?[Q.ru.Mask,Q.ru.Polygon].includes(En.selectedTool)&&Dr:!1},[En.selectedTool,En.selectedSubTool]),qn=(0,g.useMemo)(function(){return En.selectedTool!==Q.ru.Drag&&!Ln&&!mr},[En.selectedTool,Ln,mr]),cr=function(Rr){var Aa=Rr.children,xa=Rr.className;return Pe?(0,x.jsxs)("div",{ref:fr,onWheel:Mt,onClick:Yt,className:xa,children:[Aa,qn&&!zn&&(0,qr.jt)(lr)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",width:jn.elementX-18,height:1,left:0,top:0,transform:"translateY(".concat(jn.elementY,"px)")}}),(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",height:1,width:jn.elementW-jn.elementX-18,right:0,top:0,transform:"translateY(".concat(jn.elementY,"px)")}}),(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",width:1,height:jn.elementY-18,left:0,top:0,transform:"translateX(".concat(jn.elementX-1,"px")}}),(0,x.jsx)("div",{style:{position:"absolute",backgroundColor:"#fff",width:1,height:jn.elementH-jn.elementY-18,left:0,bottom:0,transform:"translateX(".concat(jn.elementX-1,"px")}})]}),Ln&&On>0&&(0,qr.jt)(jn)&&(0,qr.jt)(lr)&&!zn&&(0,x.jsx)("div",{style:{position:"fixed",backgroundColor:"rgba(255, 255, 255, 0.5)",border:"1px solid rgba(255, 255, 255, 0.7)",width:On*Jn.scale,height:On*Jn.scale,borderRadius:On*Jn.scale/2,left:0,top:0,transformOrigin:"top left",transform:"translate(".concat(jn.clientX-On*Jn.scale/2,"px, ").concat(jn.clientY-On*Jn.scale/2,"px)")}})]}):null};return{CanvasContainer:cr,scale:Jn.scale,containerRef:fr,naturalSize:ar,clientSize:{width:Jn.width,height:Jn.height},containerSize:or,containerMouse:t()(t()({},jn),{},{elementW:(or==null?void 0:or.width)||jn.elementW,elementH:(or==null?void 0:or.height)||jn.elementH}),contentMouse:lr,imagePos:Qr,isMousePress:fn,onLoadImg:bn,onZoomIn:Re,onZoomOut:rt,onWheelMove:Mt,onReset:Dt}}var ji=function(he){var Pe=he.index,Un=he.targetElement,vt=he.imagePos;return(0,x.jsx)(A,{children:(0,x.jsx)("div",{className:"dds-annotator-popover-menu",style:{left:Un.x+vt.x+5,top:Un.y+vt.y+5},children:(0,x.jsx)("div",{className:"dds-annotator-popover-menu-content",children:(0,x.jsx)("span",{className:"dds-annotator-popover-menu-text",children:"".concat(Pe+1," ").concat(Un.name)})})})})},_o=ji,Bo=e(34095),oi=e(14464),ri=e(81179),Si=function(he){var Pe=he.visible,Un=he.drawData,vt=he.editState,zn=he.clientSize,En=he.imagePos,On=he.containerMouse,Fn=he.canvasRef,mr=he.activeCanvasRef,fr=he.imgRef,or=he.objectHooksMap,jn=he.videoLoading,ua=function(lr,Ir,Vr){var Ar=[(0,oi.a7)(Ir,Bo.rl.DEFAULT),(0,oi.a7)(Ir,Bo.mh.DEFAULT),Bo.s_.DEFAULT],Y=Ar[0],z=Ar[1],ue=Ar[2];return Vr==="focus"?(ue=Bo.s_.FOCUS,Y=(0,oi.a7)(Ir,Bo.rl.FOCUS),z=(0,oi.a7)(Ir,Bo.mh.FOCUS)):Vr==="justCreated"?(ue=Bo.s_.JUST_CREATED,z=(0,oi.a7)(Ir,Bo.mh.JUST_CREATED)):Vr==="editing"?(ue=Bo.s_.CREATING,Y=(0,oi.a7)(Ir,Bo.rl.CREATING),z=(0,oi.a7)(Ir,Bo.mh.CREATING)):Vr==="creating"&&(ue=Bo.s_.CREATING,Y=Bo.XQ.CREATING,z=Bo.Bt.CREATING),t()({strokeColor:Y,fillColor:z,maskAlpha:ue,strokeDash:[0],thickness:2,pointAplha:1},lr.customStyles||{})},Or=function(lr){var Ir=ua(lr,lr.color,"creating");or[lr.type].renderCreatingObject({object:lr,color:lr.color,styles:Ir})},ar=function(lr){if(!lr.hidden){var Ir=(0,qr.lT)(lr,{x:-En.current.x,y:-En.current.y}),Vr=vt.focusObjectIndex===Un.activeObjectIndex,Ar=ua(lr,lr.color,Vr?"focus":"editing");or[lr.type].renderEditingObject({object:Ir,color:lr.color,styles:Ar,isFocus:Vr})}},hr=function(lr){var Ir=lr.prompt;if(Ir.creatingPrompt||Ir.promptsQueue||Ir.activeRectWhileLoading){var Vr,Ar;lr.selectedTool===Q.ru.Mask||((Vr=lr.creatingObject)===null||Vr===void 0?void 0:Vr.type)===Q.gr.Mask?or[Q.gr.Mask].renderPrompt({prompt:Ir}):lr.selectedTool===Q.ru.Polygon||((Ar=lr.creatingObject)===null||Ar===void 0?void 0:Ar.type)===Q.gr.Polygon?or[Q.gr.Polygon].renderPrompt({prompt:Ir}):lr.selectedTool===Q.ru.Rectangle&&lr.selectedModel[lr.selectedTool]===Q.HE.IVP&&or[Q.gr.Rectangle].renderPrompt({prompt:Ir})}},Pr=function(lr){if(!(!Pe||!mr.current)){(0,ri.ix)(mr.current,{width:On.elementW,height:On.elementH}),mr.current.getContext("2d").imageSmoothingEnabled=!1,(0,ri.UN)(mr.current);var Ir=lr||Un;Ir.creatingObject&&(Ir.activeObjectIndex>-1?ar(Ir.creatingObject):Or(Ir.creatingObject)),hr(Ir)}},aa=function(lr,Ir,Vr){var Ar=(0,qr.lT)(lr,{x:-En.current.x,y:-En.current.y}),Y=Ar.type,z=Ir?"focus":Vr?"justCreated":void 0,ue=ua(lr,lr.color,z);(0,ri.M5)(Fn.current,Un.creatingObject?.6:1),or[Y].renderObject({object:Ar,color:lr.color,styles:ue,isFocus:Ir,isJustCreated:Vr})},Jn=function(lr,Ir){lr.forEach(function(Vr,Ar){var Y;if(!(Vr.hidden||Ar===Ir||Ar===vt.focusObjectIndex||Vr.frameEmpty)){var z=((Y=Un.editingAttribute)===null||Y===void 0?void 0:Y.index)===Ar,ue=!vt.isCtrlPressed&&Vr.status===W.TK.Checked||Un.isJustCreated&&Ar===lr.length-1;aa(Vr,z,ue)}})},fa=function(lr){if(!(!Pe||!Fn.current||!fr.current||!fr.current.complete)){if(jn){(0,ri.UN)(Fn.current);return}(0,ri.ix)(Fn.current,{width:On.elementW,height:On.elementH}),Fn.current.getContext("2d").imageSmoothingEnabled=!1,(0,ri.UN)(Fn.current),(0,ri.KJ)(Fn.current,vt.imageDisplayOptions.brightness,vt.imageDisplayOptions.contrast,vt.imageDisplayOptions.saturate),(0,ri.AE)(Fn.current,fr.current,{x:En.current.x,y:En.current.y,width:zn.width,height:zn.height}),(0,ri.ku)(Fn.current);var Ir=lr||Un;if(Jn(Ir.objectList,Ir.activeObjectIndex),Pr(Ir),vt.focusObjectIndex>-1&&vt.focusObjectIndex!==Un.activeObjectIndex&&Ir.objectList[vt.focusObjectIndex]&&!Ir.objectList[vt.focusObjectIndex].hidden&&!Ir.objectList[vt.focusObjectIndex].frameEmpty&&aa(Ir.objectList[vt.focusObjectIndex],!0,!1),Un.highlightCategory){var Vr=Ir.objectList.filter(function(Ar){return Ar.labelId===Un.highlightCategory.id});Vr.forEach(function(Ar){aa(Ar,!0,!1)})}}},Qr=function(){if(vt.focusObjectIndex>-1&&Un.objectList[vt.focusObjectIndex]&&!Un.objectList[vt.focusObjectIndex].hidden&&vt.focusEleIndex>-1&&vt.focusEleType===Q.Yq.Circle){var lr,Ir,Vr=(lr=Un.objectList[vt.focusObjectIndex].keypoints)===null||lr===void 0||(Ir=lr.points)===null||Ir===void 0?void 0:Ir[vt.focusEleIndex];if(Vr)return(0,x.jsx)(_o,{index:vt.focusEleIndex,targetElement:Vr,imagePos:En.current})}return(0,x.jsx)(x.Fragment,{})};return{updateRender:fa,renderPopoverMenu:Qr}},Ni=Si;function Ei(Ue){var he=Ue.categories,Pe=Ue.editState,Un=Ue.forceColorByObject,vt=(0,g.useMemo)(function(){return(0,oi.Cj)(he.map(function(Fn){return Fn.id}))},[he]),zn=(0,g.useRef)(0),En=function(mr){var fr=.618;zn.current=mr+fr;var or=(mr+fr)%1,jn=(0,oi.WE)(or,.8,.95);return(0,oi.ZT)(jn)};(0,g.useEffect)(function(){zn.current=0},[Pe.annotsDisplayOptions.colorByCategory]);var On=(0,g.useCallback)(function(Fn,mr){if(!Un&&(Pe.annotsDisplayOptions.colorByCategory||mr)){var fr=he.find(function(or){return or.id===Fn});return(fr==null?void 0:fr.renderColor)||vt[Fn]||"#fff"}else return En(zn.current)},[Pe.annotsDisplayOptions.colorByCategory,vt,En,zn.current,Un]);return{labelColors:vt,getAnnotColor:On}}function to(Ue,he){var Pe=(0,g.useRef)(),Un=(0,g.useRef)(),vt=typeof he=="function"?he(Un.current,Ue):!0;vt&&(Pe.current=Un.current,Un.current=Ue);var zn=function(){Pe.current=void 0};return[Pe.current,zn]}var Ga=function(he){var Pe=he.imagePos,Un=he.clientSize,vt=he.naturalSize,zn=he.annotations,En=he.setAnnotations,On=he.drawData,Fn=he.setDrawData,mr=he.setFramesData,fr=he.editState,or=he.setEditState,jn=he.initObjectList,ua=he.updateRender,Or=he.clearHistory,ar=he.objectsFilter,hr=he.labelOptions,Pr=he.customDefaultDrawData,aa=to(Un),Jn=s()(aa,2),fa=Jn[0],Qr=Jn[1],$r=function(z,ue){if(!(!Un.width||!Un.height||!vt.width||!vt.height)){if(!On.initialized||z)jn(ue||zn);else if(On.initialized&&fa){mr&&(mr==null||mr(function(Re){Re.objects=(0,qr.nF)(Re.objects,fa,Un)}));var Ce=(0,qr.hv)(On,fa,Un);Fn(Ce),ua(Ce),Qr()}}},lr=(0,g.useCallback)(function(){Fn(t()(t()({},(0,m.cloneDeep)(W.f7)),{},{brushSize:On.brushSize,selectedTool:On.selectedTool,selectedSubTool:On.selectedSubTool,selectedModel:On.selectedModel,AIAnnotation:On.AIAnnotation},Pr))},[W.f7,Pr,On.brushSize,On.selectedSubTool,On.selectedTool,On.AIAnnotation]),Ir=(0,g.useCallback)(function(){var Y;or(t()(t()({},(0,m.cloneDeep)(W.rl)),{},{latestLabelId:(hr==null||(Y=hr[0])===null||Y===void 0?void 0:Y.id)||"",imageDisplayOptions:fr.imageDisplayOptions,annotsDisplayOptions:fr.annotsDisplayOptions}))},[W.rl,hr,fr.imageDisplayOptions,fr.annotsDisplayOptions]),Vr=(0,g.useCallback)(function(Y){var z=Y!=null&&Y.objects?Qt()(Y==null?void 0:Y.objects):[],ue=Y&&ar?ar(Y)||[]:z;En(ue),$r(!0,ue)},[ar,$r]),Ar=(0,g.useCallback)(function(Y){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;En([]),lr(),Ir(),ue&&Or(),z&&Y&&Vr(Y)},[lr,Ir,Or,Vr]);return(0,g.useEffect)(function(){ua()},[On,fr,Pe.current.x,Pe.current.y]),(0,g.useEffect)(function(){$r()},[Un.height,Un.width]),(0,g.useEffect)(function(){$r(!0)},[vt.width,vt.height]),(0,g.useEffect)(function(){hr!=null&&hr.length&&or(function(Y){if(!Y.latestLabelId||!hr.find(function(ue){return ue.id===Y.latestLabelId})){var z;Y.latestLabelId=(z=hr[0])===null||z===void 0?void 0:z.id}})},[hr]),{rebuildDrawData:$r,resetDataWithImageData:Ar}},Qo=Ga,qo=function(he){var Pe=he.clientSize,Un=he.naturalSize,vt=he.onAutoSave,zn=he.setDrawData,En=he.translateObject,On=he.framesData,Fn=he.setFramesData,mr=(0,g.useRef)(!1),fr=(0,M.x)([]),or=s()(fr,2),jn=or[0],ua=or[1],Or=(0,g.useState)(0),ar=s()(Or,2),hr=ar[0],Pr=ar[1],aa=20,Jn=function(){mr.current=!1},fa=function(z){if(vt){var ue=z.drawData.objectList.map(function(Ce){return(En==null?void 0:En(Ce))||{}});vt(ue,Un)}},Qr=(0,g.useCallback)(function(Y){Fn==null||Fn(function(ue){if(Y.framesData){var Ce;ue.activeIndex=(Ce=Y.framesData)===null||Ce===void 0?void 0:Ce.activeIndex,ue.objects=(0,qr.nF)(Y.framesData.objects,Y.clientSize,Pe)}});var z=(0,qr.hv)(Y.drawData,Y.clientSize,Pe);zn(z),fa(Y)},[Pe.width,Pe.height]),$r=(0,g.useCallback)(function(){hr>0&&(Pr(function(Y){return mr.current=jn.length>1&&Y-1!==0,Y-1}),Qr(jn[hr-1]))},[hr,jn,Qr]),lr=(0,g.useCallback)(function(){hr1&&Y+1!==0,Y+1}),Qr(jn[hr+1]))},[hr,jn,Qr]),Ir=function(z,ue){var Ce=(0,m.cloneDeep)({drawData:z,clientSize:Pe,framesData:ue||On});ua(function(Re){var rt,Mt,Dt;if(Re[hr]&&(0,m.isEqual)(Ce,Re[hr])||hr===0&&(0,m.isEqual)(Ce.drawData,(rt=Re[hr])===null||rt===void 0?void 0:rt.drawData))return Re;!ue&&Ce.framesData&&Fn&&Ce.drawData.objectList.length&&!(0,m.isEqual)(Ce.drawData.objectList,(Mt=Re[hr])===null||Mt===void 0||(Dt=Mt.drawData)===null||Dt===void 0?void 0:Dt.objectList)&&(Ce.framesData.objects=(0,qr.cf)(Ce.drawData.objectList,Ce.framesData.objects,Ce.framesData.list.length,Ce.framesData.activeIndex,Un),Fn(function(Vt){Vt.objects=(0,m.cloneDeep)(Ce.framesData.objects)})),Re.splice(hr+1),Re.push(Ce),Re.length>aa&&Re.shift(),Pr(Re.length-1),mr.current=Re.length>1&&Re.length-1!==0}),fa(Ce)},Vr=(0,g.useCallback)(function(){ua([])},[]),Ar=function(z){typeof z=="function"?zn(function(ue){z(ue),Ir((0,m.cloneDeep)(ue))}):(zn(z),Ir((0,m.cloneDeep)(z)))};return{updateHistory:Ir,undo:$r,redo:lr,clearHistory:Vr,setDrawDataWithHistory:Ar,flagSaved:Jn,hadChangeRecord:mr.current}},xo=qo;function Ro(Ue){var he=Ue.isOldMode,Pe=Ue.categories,Un=Ue.setCategories,vt=Ue.drawData,zn=Ue.setDrawData,En=Ue.editState,On=Ue.updateObjectWithoutHistory,Fn=Ue.updateAllObjectWithoutHistory,mr=vt.objectList,fr=(0,g.useMemo)(function(){if(he)return Pe;if(vt.objectList[vt.activeObjectIndex]||vt.selectedTool!==Q.ru.Drag){var Jn=vt.objectList[vt.activeObjectIndex]?Object.keys(Q.Zo).find(function(Qr){return vt.objectList[vt.activeObjectIndex].type===Q.Zo[Qr]}):vt.selectedTool,fa=Object.keys(Q.t).find(function(Qr){return Jn===Q.t[Qr]});return Pe.filter(function(Qr){return Qr.labelType===fa})}return[]},[Pe,vt.objectList,vt.activeObjectIndex,vt.selectedTool]),or=(0,g.useMemo)(function(){return(Pe==null?void 0:Pe.filter(function(Jn){return Jn.labelType===Q.Ze.Classification}))||[]},[Pe]),jn=(0,g.useCallback)(function(Jn){Pe.find(function(fa){return fa.name===Jn})||!Un||Un(function(fa){return[].concat(Qt()(fa),[{id:Jn,name:Jn}])})},[Pe]),ua=(0,g.useCallback)(function(Jn,fa){var Qr=t()({},vt.objectList[Jn]);Qr.hidden=fa,On(Qr,Jn)},[vt.objectList]),Or=(0,g.useCallback)(function(Jn,fa){var Qr=vt.objectList.map(function($r){var lr,Ir=t()({},$r);return((lr=Pe.find(function(Vr){return Vr.id===$r.labelId}))===null||lr===void 0?void 0:lr.name)===Jn&&(Ir.hidden=fa),Ir});Fn(Qr)},[vt.objectList]),ar=function(fa,Qr){var $r=t()({},vt.objectList[En.focusObjectIndex]);switch(fa){case Q.Yq.Rect:{$r.rect&&($r.rect.visible=Qr,On($r,En.focusObjectIndex));break}case Q.Yq.Polygon:{$r.polygon&&($r.polygon.visible=Qr,On($r,En.focusObjectIndex));break}}},hr=(0,g.useCallback)(function(Jn,fa){var Qr,$r,lr=(0,m.cloneDeep)(vt.objectList[vt.activeObjectIndex]),Ir=(Qr=lr.keypoints)===null||Qr===void 0||($r=Qr.points)===null||$r===void 0?void 0:$r[Jn];Ir&&(Ir.visible=fa),On(lr,vt.activeObjectIndex)},[vt.activeObjectIndex,vt.objectList]),Pr=(0,g.useCallback)(function(Jn){zn(function(fa){Jn!==fa.activeClassName&&(fa.activeClassName=Jn)})},[]);(0,g.useEffect)(function(){var Jn;if(!(vt.activeObjectIndex<0)){var fa=((Jn=Pe.find(function(Qr){return Qr.id===vt.objectList[vt.activeObjectIndex].labelId}))===null||Jn===void 0?void 0:Jn.name)||"";fa!==vt.activeClassName&&Pr(fa)}},[vt.activeObjectIndex]);var aa=(0,g.useMemo)(function(){var Jn=fr.find(function(fa){return fa.id===En.latestLabelId});return(Jn==null?void 0:Jn.labelName)||(Jn==null?void 0:Jn.name)||""},[fr,En.latestLabelId]);return{labelOptions:fr,latestLabel:aa,classificationOptions:or,curObjects:mr,onChangeObjectHidden:ua,onChangeCategoryHidden:Or,onChangeElementVisible:ar,onChangePointVisible:hr,onChangeActiveClass:Pr,onCreateCategory:jn}}var Ci=function(he){var Pe=he.topCanvas,Un=he.editState,vt=he.drawData,zn=(0,g.useCallback)(function(En,On){if(Pe){var Fn=En;if(On)switch(On){case qr.Nm.TOP:case qr.Nm.BOTTOM:Fn="ns-resize";break;case qr.Nm.TOP_LEFT:case qr.Nm.BOTTOM_RIGHT:Fn="nwse-resize";break;case qr.Nm.BOTTOM_LEFT:case qr.Nm.TOP_RIGHT:Fn="nesw-resize";break;default:Fn="ew-resize"}Fn!==Pe.style.cursor&&(Pe.style.cursor=Fn)}},[Pe]);return(0,g.useEffect)(function(){Un.allowMove?zn("grabbing"):vt.selectedTool===Q.ru.Drag?zn("grab"):zn("crosshair")},[Un.allowMove]),{updateMouseCursor:zn}},Ri=Ci,Ui=e(23671),Os=e(53807),fs=function(Ue,he){if(he===void 0&&(he=0),typeof requestAnimationFrame=="undefined")return{id:setInterval(Ue,he)};var Pe=new Date().getTime(),Un={id:0},vt=function(){var zn=new Date().getTime();zn-Pe>=he&&(Ue(),Pe=new Date().getTime()),Un.id=requestAnimationFrame(vt)};return Un.id=requestAnimationFrame(vt),Un};function Gs(Ue){return typeof cancelAnimationFrame=="undefined"}var xl=function(Ue){if(Gs(Ue.id))return clearInterval(Ue.id);cancelAnimationFrame(Ue.id)};function Kn(Ue,he,Pe){var Un=Pe==null?void 0:Pe.immediate,vt=(0,Ui.Z)(Ue),zn=(0,g.useRef)();(0,g.useEffect)(function(){if(!(!(0,Os.hj)(he)||he<0))return Un&&vt.current(),zn.current=fs(function(){vt.current()},he),function(){zn.current&&xl(zn.current)}},[he]);var En=(0,g.useCallback)(function(){zn.current&&xl(zn.current)},[]);return En}var Gr=Kn,jr=40,Br=10,ra=function(he){var Pe=he.visible,Un=he.mode,vt=he.drawData,zn=he.setDrawData,En=he.editState,On=he.setEditState,Fn=he.clientSize,mr=he.contentMouse,fr=he.categories,or=he.updateRender,jn=he.updateMouseCursor,ua=he.objectHooksMap,Or=he.imagePos,ar=he.containerMouse,hr=he.limitActiveObject,Pr=he.getAnnotColor,aa=(0,g.useRef)({topMin:0,topMax:0,leftMin:0,leftMax:0}),Jn=(0,g.useState)(void 0),fa=s()(Jn,2),Qr=fa[0],$r=fa[1];Gr(function(){var rt,Mt,Dt,Vt,nn=!1;(rt=aa.current.direction)!==null&&rt!==void 0&&rt.includes("TOP")&&Or.current.yaa.current.topMin&&(Or.current.y-=8,nn=!0),(Dt=aa.current.direction)!==null&&Dt!==void 0&&Dt.includes("LEFT")&&Or.current.xaa.current.leftMin&&(Or.current.x-=8,nn=!0),nn||$r(void 0),or()},Qr);var lr=function(){var Mt="",Dt=jr,Vt=ar.elementH-mr.elementH-jr,nn=jr,fn=ar.elementW-mr.elementW-jr;ar.elementY<=Br&&Or.current.y=ar.elementH-Br&&Or.current.y>Vt&&(Mt="BOTTOM"),ar.elementX<=Br&&Or.current.x=ar.elementW-Br&&Or.current.x>fn&&(Mt+=Mt?"_RIGHT":"RIGHT"),Mt?(aa.current={direction:Mt,topMax:Dt,topMin:Vt,leftMax:nn,leftMin:fn},$r(16)):$r(void 0)},Ir=function(){var Mt;return vt.isBatchEditing&&(vt.selectedTool===Q.ru.Rectangle&&En.isCtrlPressed?Mt=function(Vt){return Vt.status===W.TK.Unchecked}:Mt=function(Vt){return Vt.status!==W.TK.Unchecked}),Mt},Vr=function(){if((0,qr.jt)(ar)){var Mt=(0,qr.Z0)(Fn,mr,vt.activeObjectIndex,vt.objectList,Ir());if(Mt>-1&&Mt===vt.activeObjectIndex){On(function(bn){bn.focusObjectIndex=Mt});var Dt=vt.objectList[vt.activeObjectIndex],Vt=(0,qr.o7)(mr,Dt),nn=Vt.focusEleIndex,fn=Vt.focusEleType,hn=Vt.focusPolygonInfo;On(function(bn){bn.focusEleIndex=nn,bn.focusEleType=fn,bn.focusPolygonInfo=hn})}else vt.selectedTool===Q.ru.Drag||vt.isBatchEditing?On(function(bn){bn.focusObjectIndex=Mt,bn.focusEleIndex=-1,bn.focusEleType=Q.Yq.None,bn.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}}):On(function(bn){bn.focusObjectIndex=-1,bn.focusEleIndex=-1,bn.focusEleType=Q.Yq.None,bn.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}})}},Ar=(0,g.useCallback)(function(rt,Mt){if(!(rt<0)){var Dt=(Mt==null?void 0:Mt.button)===2;if(Dt){var Vt=(0,qr.RF)(Fn,mr,vt.objectList,Ir());Vt.length>0?On(function(nn){nn.foucsObjectAllIndexs=Vt}):On(function(nn){nn.foucsObjectAllIndexs=[]});return}zn(function(nn){var fn;if(nn.selectedTool===Q.ru.Rectangle&&nn.isBatchEditing&&En.isCtrlPressed)nn.objectList[rt].status=W.TK.Checked,On(function(bn){bn.focusObjectIndex=-1});else{var hn;nn.AIAnnotation=!1,nn.activeObjectIndex=rt,(hn=nn.objectList[rt])!==null&&hn!==void 0&&hn.frameEmpty?nn.creatingObject=void 0:nn.creatingObject=t()(t()({},nn.objectList[rt]),{},{currIndex:void 0,startPoint:void 0,tempMaskSteps:[],maskStep:void 0}),nn.selectedTool!==Q.ru.Drag&&nn.objectList[rt]&&Q.Zo[nn.selectedTool]!==nn.objectList[rt].type&&(nn.selectedTool=Q.ru.Drag)}((fn=nn.editingAttribute)===null||fn===void 0?void 0:fn.index)!==rt&&(nn.editingAttribute=void 0)})}},[Fn.width,Fn.height,mr,vt.objectList]),Y=function(){if(!En.foucsObjectAllIndexs.length)return(0,x.jsx)(x.Fragment,{});var Mt=function(fn){fn.stopPropagation()},Dt=function(fn){On(function(hn){hn.focusObjectIndex=fn})},Vt=function(fn){Ar(fn),On(function(hn){hn.foucsObjectAllIndexs=[]})};return(0,x.jsx)("div",{className:"dds-annotator-dropdown-options",onMouseDown:Mt,onMouseUp:Mt,onMouseMove:Mt,onContextMenu:function(fn){return fn.preventDefault()},children:En.foucsObjectAllIndexs.map(function(nn){var fn,hn,bn;return(0,x.jsxs)("div",{className:"dds-annotator-dropdown-options-object",onMouseEnter:function(){return Dt(nn)},onMouseDown:function(){return Vt(nn)},children:[(0,x.jsx)("div",{className:"dds-annotator-dropdown-options-object-dot",style:{backgroundColor:((fn=vt.objectList[nn])===null||fn===void 0?void 0:fn.color)||"#fff"}}),((hn=fr.find(function(Yt){var Ln;return Yt.id===((Ln=vt.objectList[nn])===null||Ln===void 0?void 0:Ln.labelId)}))===null||hn===void 0?void 0:hn.name)||"",vt.isBatchEditing&&" (".concat((0,ao.O)(((bn=vt.objectList[nn])===null||bn===void 0?void 0:bn.conf)||0),")")]},nn)})})},z=function(Mt){if(!(!Pe||En.allowMove||En.isRequiring||!(0,qr.jt)(mr)||!(0,qr.jt)(ar))&&(On(function(Vt){Vt.foucsObjectAllIndexs=[]}),!(vt.creatingObject&&vt.activeObjectIndex>-1&&Un===W.je.Edit&&ua[vt.creatingObject.type].startEditingWhenMouseDown({event:Mt,object:vt.creatingObject}))))if(vt.selectedTool!==Q.ru.Drag&&(!vt.isBatchEditing||vt.selectedModel[vt.selectedTool]===Q.HE.IVP)){zn(function(Vt){Vt.editingAttribute=void 0});var Dt=Q.Zo[vt.selectedTool];if(Un===W.je.Edit&&ua[Dt].startCreatingWhenMouseDown({event:Mt,object:vt.creatingObject,point:{x:mr.elementX,y:mr.elementY},basic:{hidden:!1,labelId:En.latestLabelId||fr[0].id,status:W.TK.Commited,color:Pr(En.latestLabelId||fr[0].name)}}))return}else En.focusObjectIndex>-1&&!hr?Ar(En.focusObjectIndex,Mt):(On(function(Vt){Vt.allowMove=!0}),zn(function(Vt){Vt.activeObjectIndex=-1,Vt.editingAttribute=void 0,Vt.creatingObject=void 0}))},ue=function(Mt){if(!(!Pe||En.isRequiring||En.allowMove)){if(En.focusObjectIndex>-1?jn("pointer"):vt.selectedTool!==Q.ru.Drag?jn("crosshair"):jn("grab"),vt.creatingObject&&vt.activeObjectIndex>-1){if(Un===W.je.Edit&&ua[vt.creatingObject.type].updateEditingWhenMouseMove({event:Mt,object:vt.creatingObject})){var Dt,Vt=vt.creatingObject.type===Q.gr.Mask&&!((Dt=vt.creatingObject)!==null&&Dt!==void 0&&Dt.maskStep);Vt||lr(),or();return}}else if(vt.selectedTool!==Q.ru.Drag&&vt.activeObjectIndex<0){var nn=Q.Zo[vt.selectedTool];if(Un===W.je.Edit&&ua[nn].updateCreatingWhenMouseMove({event:Mt,object:vt.creatingObject})){var fn,hn=nn===Q.gr.Mask&&!((fn=vt.creatingObject)!==null&&fn!==void 0&&fn.maskStep);hn||lr(),or();return}}Vr(),or()}},Ce=function(Mt){if($r(void 0),!(!Pe||En.isRequiring)){if(En.allowMove){On(function(Vt){Vt.allowMove=!1});return}if(vt.creatingObject&&vt.activeObjectIndex>-1){if(Un===W.je.Edit&&ua[vt.creatingObject.type].finishEditingWhenMouseUp({event:Mt,object:vt.creatingObject}))return}else if(vt.selectedTool!==Q.ru.Drag&&vt.activeObjectIndex<0){var Dt=Q.Zo[vt.selectedTool];if(Un===W.je.Edit&&ua[Dt].finishCreatingWhenMouseUp({event:Mt,object:vt.creatingObject}))return}}},Re=(0,g.useCallback)(function(rt){On(function(Mt){Mt.focusObjectIndex=rt})},[]);return(0,Ba.Z)("mousedown",function(rt){z(rt)}),(0,Ba.Z)("mousemove",function(rt){ue(rt)}),(0,Ba.Z)("mouseup",function(rt){Ce(rt)}),{selectFocusObject:Ar,forceChangeFocusObject:Re,mouseRightObjectsDropDownRender:Y}},ja=ra,Ra=function(he){var Pe=he.mode,Un=he.categories,vt=he.drawData,zn=he.setDrawData,En=he.setDrawDataWithHistory,On=he.framesData,Fn=he.setFramesData,mr=he.setEditState,fr=he.translateToObject,or=he.judgeEditingAttribute,jn=he.updateHistory,ua=function(Ir){zn(function(Vr){var Ar=(0,m.cloneDeep)(Vr),Y=(0,m.cloneDeep)(On);if(Ar.initialized=!0,Y){var z=Ir.map(function(Ce){return(fr==null?void 0:fr(Ce,Y.list.length))||{}});Y.objects=z.filter(function(Ce){return!!Ce.objects}).map(function(Ce){return Ce.objects}),Ar.classifications=z.filter(function(Ce){return!!Ce.classification}).map(function(Ce){return Ce.classification}),Ar.objectList=Y.objects.map(function(Ce){return Ce[Y.activeIndex]}),Fn==null||Fn(Y)}else{var ue=Ir.map(function(Ce){return(fr==null?void 0:fr(Ce))||{}});Ar.classifications=ue.filter(function(Ce){return Ce.type===Q.gr.Classification}),Ar.objectList=ue.filter(function(Ce){return Ce.type!==Q.gr.Custom&&Ce.type!==Q.gr.Classification})}return jn((0,m.cloneDeep)(Ar),(0,m.cloneDeep)(Y)),Ar})},Or=function(Ir){Pe===W.je.Edit&&En(function(Vr){var Ar;Vr.objectList.push(Ir),Vr.isJustCreated=!0,Vr.creatingObject=void 0,Vr.activeObjectIndex=-1,Vr.activeClassName=((Ar=Un.find(function(Y){return Y.id===Ir.labelId}))===null||Ar===void 0?void 0:Ar.name)||"",or&&(Vr.editingAttribute=or(Ir,Vr.objectList.length-1))})},ar=function(Ir){if(!(Pe!==W.je.Edit||!vt.objectList[Ir])){mr(function(Y){Y.focusObjectIndex=-1,Y.focusEleIndex=-1,Y.focusEleType=Q.Yq.Rect});var Vr=(0,m.cloneDeep)(On),Ar=(0,m.cloneDeep)(vt);Vr&&Vr.objects[Ir]&&(Vr.objects.splice(Ir,1),Fn==null||Fn(Vr)),Ar.objectList[Ir]&&(Ar.objectList.splice(Ir,1),Ar.activeObjectIndex=-1,Ar.creatingObject=void 0,Ar.editingAttribute=void 0),zn(Ar),jn((0,m.cloneDeep)(Ar),(0,m.cloneDeep)(Vr))}},hr=(0,g.useCallback)(function(){if(Pe===W.je.Edit){mr(function(Vr){Vr.focusObjectIndex=-1,Vr.focusEleIndex=-1,Vr.focusEleType=Q.Yq.Rect});var lr=(0,m.cloneDeep)(On),Ir=(0,m.cloneDeep)(vt);lr&&(lr.objects=[],Fn==null||Fn(lr)),Ir.objectList=[],Ir.activeObjectIndex=-1,Ir.creatingObject=void 0,Ir.editingAttribute=void 0,zn(Ir),jn((0,m.cloneDeep)(Ir),(0,m.cloneDeep)(lr))}},[Pe,On,vt]),Pr=function(Ir,Vr){Pe!==W.je.Edit||!vt.objectList[Vr]||En(function(Ar){Ir.labelId!==Ar.objectList[Vr].labelId&&or&&(Ar.editingAttribute=or(Ir,Vr)),Ar.objectList[Vr]=Ir,Ar.creatingObject&&Ar.activeObjectIndex===Vr&&(Ar.creatingObject=t()({},Ir))})},aa=function(Ir){En(function(Vr){Vr.objectList=Ir,Vr.creatingObject&&Vr.objectList[Vr.activeObjectIndex]&&(Vr.creatingObject=t()({},Vr.objectList[Vr.activeObjectIndex])),Vr.isJustCreated=!1})},Jn=function(Ir,Vr){vt.objectList[Vr]&&zn(function(Ar){Ar.objectList[Vr]=Ir,Ar.creatingObject&&Ar.activeObjectIndex===Vr&&(Ar.creatingObject=t()({},Ir))})},fa=function(Ir){zn(function(Vr){Vr.objectList=Ir,Vr.creatingObject&&Vr.objectList[Vr.activeObjectIndex]&&(Vr.creatingObject=t()({},Vr.objectList[Vr.activeObjectIndex]))})},Qr=(0,g.useMemo)(function(){return vt.objectList.filter(function(lr){return(lr==null?void 0:lr.status)===W.TK.Commited})},[vt.isBatchEditing,vt.objectList]),$r=(0,g.useMemo)(function(){return vt.objectList[vt.activeObjectIndex]||vt.creatingObject},[vt.objectList,vt.activeObjectIndex,vt.creatingObject]);return{initObjectList:ua,addObject:Or,removeObject:ar,removeAllObjects:hr,updateObject:Pr,updateAllObject:aa,updateObjectWithoutHistory:Jn,updateAllObjectWithoutHistory:fa,commitedObjects:Qr,currObject:$r}},Pa=Ra,To=function(he){var Pe=he.visible,Un=he.mode,vt=he.drawData,zn=he.categories,En=he.isMousePress,On=he.setDrawData,Fn=he.setEditState,mr=he.onSaveAnnotations,fr=he.onAcceptAnnotations,or=he.onRejectAnnotations,jn=he.onChangeObjectHidden,ua=he.onChangeCategoryHidden,Or=he.removeObject,ar=he.addObject;return(0,Ee.Z)(Se[Ie.Save].shortcut,function(hr){hr.preventDefault(),Un===W.je.Edit&&(mr==null||mr())},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.Accept].shortcut,function(hr){hr.preventDefault(),fr==null||fr()},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.Reject].shortcut,function(hr){hr.preventDefault(),or==null||or()},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.PanImage].shortcut,function(hr){Pe&&(hr.type==="keydown"&&!En?Fn(function(Pr){Pr.allowMove=!0}):hr.type==="keyup"&&Fn(function(Pr){Pr.allowMove=!1}))},{events:["keydown","keyup"]}),(0,Ee.Z)(Se[Ie.CancelCurrObject].shortcut,function(hr){Pe&&hr.type==="keyup"&&(vt.creatingObject?On(function(Pr){var aa,Jn,fa,Qr,$r,lr;((aa=Pr.creatingObject)===null||aa===void 0?void 0:aa.type)===Q.gr.Mask&&(Jn=Pr.creatingObject)!==null&&Jn!==void 0&&(fa=Jn.maskStep)!==null&&fa!==void 0&&(Qr=fa.points)!==null&&Qr!==void 0&&Qr.length&&($r=Pr.creatingObject)!==null&&$r!==void 0&&(lr=$r.tempMaskSteps)!==null&&lr!==void 0&&lr.length?Pr.creatingObject.maskStep=void 0:(Pr.creatingObject=void 0,Pr.activeObjectIndex=-1),Pr.AIAnnotation&&(Pr.prompt={})}):On(function(Pr){Pr.activeObjectIndex=-1}))},{events:["keydown","keyup"]}),(0,Ee.Z)(Se[Ie.HideCurrObject].shortcut,function(hr){vt.activeObjectIndex<0||(hr.preventDefault(),jn(vt.activeObjectIndex,!vt.objectList[vt.activeObjectIndex].hidden))},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.HideCurrCategory].shortcut,function(hr){var Pr;if(!(vt.activeObjectIndex<0)){hr.preventDefault();var aa=vt.objectList[vt.activeObjectIndex],Jn=aa.labelId,fa=aa.hidden,Qr=((Pr=zn.find(function($r){return $r.id===Jn}))===null||Pr===void 0?void 0:Pr.name)||"";ua(Qr,!fa)}},{exactMatch:!0}),(0,Ee.Z)(Se[Ie.DeleteCurrObject].shortcut,function(hr){!Pe||Un!==W.je.Edit||["Delete","Backspace"].includes(hr.key)&&vt.activeObjectIndex>-1&&Or(vt.activeObjectIndex)},{events:["keyup"]}),(0,Ee.Z)(["ctrl"],function(hr){vt.activeObjectIndex>-1||Fn(function(Pr){var aa=hr.type==="keydown";if(Pr.isCtrlPressed===aa)return Pr;Pr.isCtrlPressed=hr.type==="keydown",Pr.focusObjectIndex=-1,Pr.foucsObjectAllIndexs=[]})},{events:["keydown","keyup"]}),(0,Ee.Z)(["v"],function(hr){Fn(function(Pr){var aa=hr.type==="keydown";if(Pr.hideCreatingObject===aa)return Pr;Pr.hideCreatingObject=hr.type==="keydown"})},{events:["keydown","keyup"]}),(0,Ee.Z)(["enter"],function(){if(!vt.AIAnnotation&&vt.creatingObject&&vt.creatingObject.type===Q.gr.Polygon){var hr=vt.creatingObject,Pr=hr.polygon,aa=hr.type,Jn=hr.hidden,fa=hr.labelId,Qr=hr.status,$r=hr.color;if(Pr&&Pr.group&&Pr.group[0].length>2){var lr={polygon:Pr,type:aa,hidden:Jn,labelId:fa,status:Qr,color:$r};ar(lr)}}},{exactMatch:!0,events:["keyup"]}),{}},Yo=To,Zo=Object.defineProperty,zi=Object.getOwnPropertySymbols,bs=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Ds=(Ue,he,Pe)=>he in Ue?Zo(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Xi=(Ue,he)=>{for(var Pe in he||(he={}))bs.call(he,Pe)&&Ds(Ue,Pe,he[Pe]);if(zi)for(var Pe of zi(he))Gi.call(he,Pe)&&Ds(Ue,Pe,he[Pe]);return Ue};const Vo=Ue=>g.createElement("svg",Xi({viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M18.33 4.069a.67.67 0 0 0 .67-.672V.671A.672.672 0 0 0 18.33 0h-2.718a.67.67 0 0 0-.671.671v.672H4.066V.67A.672.672 0 0 0 3.395 0H.67A.67.67 0 0 0 0 .671v2.72a.672.672 0 0 0 .67.67h.672v10.877H.67A.67.67 0 0 0 0 15.61v2.72A.672.672 0 0 0 .67 19h2.718a.67.67 0 0 0 .671-.671v-.672h10.869v.672a.672.672 0 0 0 .67.671h2.718a.67.67 0 0 0 .67-.671v-2.706a.672.672 0 0 0-.67-.671h-.671V4.069h.684Zm-2.014 10.876h-.67a.67.67 0 0 0-.671.671v.672H4.065v-.672a.672.672 0 0 0-.67-.671h-.671V4.069h.67a.67.67 0 0 0 .672-.672v-.671h10.868v.671a.672.672 0 0 0 .671.672h.671l.02 5.438.02 5.438Z",fill:"#fff"}),g.createElement("g",{clipPath:"url(#add-prompt_svg__a)"},g.createElement("path",{d:"M14.51 5.884a.851.851 0 0 0-1.204 0l-5.418 5.423-2.409-2.41a.851.851 0 1 0-1.204 1.205l3.01 3.012a.849.849 0 0 0 1.205 0l6.02-6.025a.852.852 0 0 0 0-1.205Z",fill:"#fff"})),g.createElement("defs",null,g.createElement("clipPath",{id:"add-prompt_svg__a"},g.createElement("path",{fill:"#fff",transform:"translate(4.025 4.129)",d:"M0 0h10.735v10.742H0z"}))));var tu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTkgMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE4LjMzIDQuMDY5YS42Ny42NyAwIDAgMCAuNjctLjY3MlYuNjcxQS42NzIuNjcyIDAgMCAwIDE4LjMzIDBoLTIuNzE4YS42Ny42NyAwIDAgMC0uNjcxLjY3MXYuNjcySDQuMDY2Vi42N0EuNjcyLjY3MiAwIDAgMCAzLjM5NSAwSC42N0EuNjcuNjcgMCAwIDAgMCAuNjcxdjIuNzJhLjY3Mi42NzIgMCAwIDAgLjY3LjY3aC42NzJ2MTAuODc3SC42N0EuNjcuNjcgMCAwIDAgMCAxNS42MXYyLjcyQS42NzIuNjcyIDAgMCAwIC42NyAxOWgyLjcxOGEuNjcuNjcgMCAwIDAgLjY3MS0uNjcxdi0uNjcyaDEwLjg2OXYuNjcyYS42NzIuNjcyIDAgMCAwIC42Ny42NzFoMi43MThhLjY3LjY3IDAgMCAwIC42Ny0uNjcxdi0yLjcwNmEuNjcyLjY3MiAwIDAgMC0uNjctLjY3MWgtLjY3MVY0LjA2OWguNjg0Wm0tMi4wMTQgMTAuODc2aC0uNjdhLjY3LjY3IDAgMCAwLS42NzEuNjcxdi42NzJINC4wNjV2LS42NzJhLjY3Mi42NzIgMCAwIDAtLjY3LS42NzFoLS42NzFWNC4wNjloLjY3YS42Ny42NyAwIDAgMCAuNjcyLS42NzJ2LS42NzFoMTAuODY4di42NzFhLjY3Mi42NzIgMCAwIDAgLjY3MS42NzJoLjY3MWwuMDIgNS40MzguMDIgNS40MzhaIiBmaWxsPSIjZmZmIi8+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMTQuNTEgNS44ODRhLjg1MS44NTEgMCAwIDAtMS4yMDQgMGwtNS40MTggNS40MjMtMi40MDktMi40MWEuODUxLjg1MSAwIDEgMC0xLjIwNCAxLjIwNWwzLjAxIDMuMDEyYS44NDkuODQ5IDAgMCAwIDEuMjA1IDBsNi4wMi02LjAyNWEuODUyLjg1MiAwIDAgMCAwLTEuMjA1WiIgZmlsbD0iI2ZmZiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQuMDI1IDQuMTI5KSIgZD0iTTAgMGgxMC43MzV2MTAuNzQySDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Il=Object.defineProperty,ul=Object.getOwnPropertySymbols,Iu=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,Ks=(Ue,he,Pe)=>he in Ue?Il(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ws=(Ue,he)=>{for(var Pe in he||(he={}))Iu.call(he,Pe)&&Ks(Ue,Pe,he[Pe]);if(ul)for(var Pe of ul(he))cl.call(he,Pe)&&Ks(Ue,Pe,he[Pe]);return Ue};const Qs=Ue=>g.createElement("svg",ws({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#brush-add_svg__a)",fill:"#fff"},g.createElement("path",{d:"M5.07 10.37 4.02 9.22l-.46-.46a1.42 1.42 0 0 1 0-1.89l.41-.41 3.84-3.73L10.34.22a.71.71 0 0 1 1.07 0c.34.31.67.63 1 .93a.66.66 0 0 1 .22.69c-.1.43-.19.87-.28 1.34l.69-.13c.25 0 .5-.1.75-.12a.82.82 0 0 1 .69.26l4.47 4.37.45.44a.87.87 0 0 1 0 1.3l-2 2-.08.08-1.34-.79 1.89-1.95-.33-.33-3.78-3.71a.3.3 0 0 0-.32-.09l-1.89.37A.74.74 0 0 1 10.7 4c.06-.33.12-.65.19-1s.1-.58.18-.85a.31.31 0 0 0-.17-.4L6.7 5.94l5 4.85c-.3.21-.61.4-.88.62a4.76 4.76 0 0 0-1.75 3 .88.88 0 0 1-.25.44l-2.94 3.37a3.42 3.42 0 0 1-5 .22 3 3 0 0 1-.83-2 3.39 3.39 0 0 1 1.33-2.88l3.32-2.89.37-.3Z"}),g.createElement("path",{d:"M17.88 13.99a4.06 4.06 0 0 0-4.46-2.68 4 4 0 0 0 .61 7.9c.22 0 .44 0 .65-.06a4 4 0 0 0 3.2-5.16Zm-2.31 2.13h-.62v.58a.94.94 0 0 1-1.87 0v-.58h-.58a.94.94 0 0 1 0-1.87h.58v-.56a.94.94 0 1 1 1.87 0v.53h.62a.94.94 0 0 1 0 1.87v.03Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"brush-add_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h19.7v19.44H0z"}))));var zl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik01LjA3IDEwLjM3IDQuMDIgOS4yMmwtLj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wUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgxOS43djE5LjQ0SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",fu=Object.defineProperty,rs=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable,js=(Ue,he,Pe)=>he in Ue?fu(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,nu=(Ue,he)=>{for(var Pe in he||(he={}))Ms.call(he,Pe)&&js(Ue,Pe,he[Pe]);if(rs)for(var Pe of rs(he))Bs.call(he,Pe)&&js(Ue,Pe,he[Pe]);return Ue};const Vl=Ue=>g.createElement("svg",nu({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#brush-erase_svg__a)",fill:"#fff"},g.createElement("path",{d:"m6.47 5.69 4.8 4.7c-.29.2-.59.38-.85.59a4.73 4.73 0 0 0-1.74 3.05.45.45 0 0 1-.1.21l-2.89 3.34a3.24 3.24 0 0 1-2.47 1.2 3 3 0 0 1-3.23-3.1 3.34 3.34 0 0 1 1.39-2.7c1.16-.95 2.29-1.93 3.44-2.89l.14-.1-.4-.38-1-1a1.38 1.38 0 0 1 0-2.07L7.7 2.48c.76-.7 1.52-1.5 2.29-2.24a.69.69 0 0 1 1.05 0l1 .91a.59.59 0 0 1 .18.63c-.09.43-.18.87-.27 1.33l1.27-.25a.88.88 0 0 1 .84.24l2.71 2.68 2 1.92a.9.9 0 0 1 .29.8.66.66 0 0 1-.16.35c-.7.7-1.41 1.39-2.12 2.08l-1.28-.77 1.84-1.79V8.3l-4-3.88a.29.29 0 0 0-.28-.07l-1.84.43a.86.86 0 0 1-.8-.26.571.571 0 0 1-.13-.56c.12-.59.24-1.17.37-1.76 0-.19 0-.33-.18-.42L6.47 5.69Z"}),g.createElement("path",{d:"M9.69 14.71a3.88 3.88 0 1 1 3.88 3.8 3.83 3.83 0 0 1-3.88-3.8Zm3.87 1h1.57a1 1 0 0 0 1-1 1 1 0 0 0-1-1.06h-3.14a1 1 0 0 0 0 2l1.57.06Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"brush-erase_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h19.03v18.77H0z"}))));var Ps="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im02LjQ3IDUuNjkgNC44IDQuN2MtLjI5LjItLjU5LjM4LS44NS41OWE0LjczIDQuNzMgMCAwIDAtMS43NCAzLjA1LjQ1LjQ1IDAgMCAxLS4xLjIxbC0yLjg5IDMuMzRhMy4yNCAzLjI0IDAgMCAxLTIuNDcgMS4yIDMgMyAwIDAgMS0zLjIzLTMuMSAzLjM0IDMuMzQgMCAwIDEgMS4zOS0yLjdjMS4xNi0uOTUgMi4yOS0xLjkzIDMuNDQtMi44OWwuMTQtLjEtLjQtLjM4LTEtMWExLjM4IDEuMzggMCAwIDEgMC0yLjA3TDcuNyAyLjQ4Yy43Ni0uNyAxLjUyLTEuNSAyLjI5LTIuMjRhLjY5LjY5IDAgMCAxIDEuMDUgMGwxIC45MWEuNTkuNTkgMCAwIDEgLjE4LjYzYy0uMDkuNDMtLjE4Ljg3LS4yNyAxLjMzbDEuMjctLjI1YS44OC44OCAwIDAgMSAuODQuMjRsMi43MSAyLjY4IDIgMS45MmEuOS45IDAgMCAxIC4yOS44LjY2LjY2IDAgMCAxLS4xNi4zNWMtLjcuNy0xLjQxIDEuMzktMi4xMiAyLjA4bC0xLjI4LS43NyAxLjg0LTEuNzlWOC4zbC00LTMuODhhLjI5LjI5IDAgMCAwLS4yOC0uMDdsLTEuODQuNDNhLjg2Ljg2IDAgMCAxLS44LS4yNi41NzEuNTcxIDAgMCAxLS4xMy0uNTZjLjEyLS41OS4yNC0xLjE3LjM3LTEuNzYgMC0uMTkgMC0uMzMtLjE4LS40Mkw2LjQ3IDUuNjlaIi8+PHBhdGggZD0iTTkuNjkgMTQuNzFhMy44OCAzLjg4IDAgMSAxIDMuODggMy44IDMuODMgMy44MyAwIDAgMS0zLjg4LTMuOFptMy44NyAxaDEuNTdhMSAxIDAgMCAwIDEtMSAxIDEgMCAwIDAtMS0xLjA2aC0zLjE0YTEgMSAwIDAgMCAwIDJsMS41Ny4wNloiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE5LjAzdjE4Ljc3SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Ft=Object.defineProperty,So=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable,dl=(Ue,he,Pe)=>he in Ue?Ft(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,sa=(Ue,he)=>{for(var Pe in he||(he={}))$s.call(he,Pe)&&dl(Ue,Pe,he[Pe]);if(So)for(var Pe of So(he))zo.call(he,Pe)&&dl(Ue,Pe,he[Pe]);return Ue};const fl=Ue=>g.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".edge-stitch_svg__cls-1{fill:#fcfefe}.edge-stitch_svg__cls-3{fill:#fff}")),g.createElement("path",{className:"edge-stitch_svg__cls-1",d:"M22.25 18.52a.82.82 0 0 0 .57.15h4.3a1.44 1.44 0 1 0 0-2.87h-.86L31 11.06a1.42 1.42 0 0 0-2-2l-4.73 4.74v-.86a1.44 1.44 0 1 0-2.87 0v4.3a.87.87 0 0 0 .14.57 1.67 1.67 0 0 0 .71.71ZM9.91 31.58a1.31 1.31 0 0 0 1-.43l4.74-4.74v.86a1.44 1.44 0 1 0 2.87 0V23a.82.82 0 0 0-.15-.57 1.7 1.7 0 0 0-.71-.72.85.85 0 0 0-.58-.15h-4.3a1.44 1.44 0 1 0 0 2.87h.86l-4.73 4.71a1.38 1.38 0 0 0 0 2 1.31 1.31 0 0 0 1 .44Z"}),g.createElement("path",{style:{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3},d:"m14.4 14.51 11.14 11.14"}),g.createElement("path",{className:"edge-stitch_svg__cls-3",d:"M7.51 5.7a3.41 3.41 0 0 1 .74.45c.85.8 1.67 1.64 2.49 2.47a1.19 1.19 0 1 1-1.69 1.67Q7.77 9 6.53 7.77a1.13 1.13 0 0 1-.26-1.33 1.33 1.33 0 0 1 1.24-.74ZM19.85 10.84a5.11 5.11 0 0 1-.92-.75.93.93 0 0 1 .07-1.24c.94-1 1.89-1.95 2.88-2.87a1.07 1.07 0 0 1 1.51.09 1.09 1.09 0 0 1 .11 1.56c-.91 1-1.87 1.9-2.83 2.83a2.88 2.88 0 0 1-.82.38ZM7.26 23.44a5 5 0 0 1-.92-.73.92.92 0 0 1 .06-1.24Q7.81 20 9.31 18.56a1.08 1.08 0 0 1 1.51.14 1.1 1.1 0 0 1 .09 1.52C10 21.21 9 22.15 8 23.09a3.07 3.07 0 0 1-.74.35ZM16.16 5.64v1.67A1.24 1.24 0 0 1 15 8.59a1.22 1.22 0 0 1-1.19-1.28v-3.4A1.22 1.22 0 0 1 15 2.63a1.23 1.23 0 0 1 1.19 1.29c-.01.57-.03 1.15-.03 1.72ZM6 15.73H4.38a1.2 1.2 0 1 1 0-2.4h3.34a1.2 1.2 0 1 1 0 2.4c-.58.02-1.15 0-1.72 0Z"}));var ru="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PG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zMgMCAwIDEgMS4yNC0uNzRaTTE5Ljg1IDEwLjg0YTUuMTEgNS4xMSAwIDAgMS0uOTItLjc1LjkzLjkzIDAgMCAxIC4wNy0xLjI0Yy45NC0xIDEuODktMS45NSAyLjg4LTIuODdhMS4wNyAxLjA3IDAgMCAxIDEuNTEuMDkgMS4wOSAxLjA5IDAgMCAxIC4xMSAxLjU2Yy0uOTEgMS0xLjg3IDEuOS0yLjgzIDIuODNhMi44OCAyLjg4IDAgMCAxLS44Mi4zOFpNNy4yNiAyMy40NGE1IDUgMCAwIDEtLjkyLS43My45Mi45MiAwIDAgMSAuMDYtMS4yNFE3LjgxIDIwIDkuMzEgMTguNTZhMS4wOCAxLjA4IDAgMCAxIDEuNTEuMTQgMS4xIDEuMSAwIDAgMSAuMDkgMS41MkMxMCAyMS4yMSA5IDIyLjE1IDggMjMuMDlhMy4wNyAzLjA3IDAgMCAxLS43NC4zNVpNMTYuMTYgNS42NHYxLjY3QTEuMjQgMS4yNCAwIDAgMSAxNSA4LjU5YTEuMjIgMS4yMiAwIDAgMS0xLjE5LTEuMjh2LTMuNEExLjIyIDEuMjIgMCAwIDEgMTUgMi42M2ExLjIzIDEuMjMgMCAwIDEgMS4xOSAxLjI5Yy0uMDEuNTctLjAzIDEuMTUtLjAzIDEuNzJaTTYgMTUuNzNINC4zOGExLjIgMS4yIDAgMSAxIDAtMi40aDMuMzRhMS4yIDEuMiAwIDEgMSAwIDIuNGMtLjU4LjAyLTEuMTUgMC0xLjcyIDBaIi8+PC9zdmc+",Xs=Object.defineProperty,Fl=Object.getOwnPropertySymbols,Gl=Object.prototype.hasOwnProperty,Io=Object.prototype.propertyIsEnumerable,bi=(Ue,he,Pe)=>he in Ue?Xs(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,fc=(Ue,he)=>{for(var Pe in he||(he={}))Gl.call(he,Pe)&&bi(Ue,Pe,he[Pe]);if(Fl)for(var Pe of Fl(he))Io.call(he,Pe)&&bi(Ue,Pe,he[Pe]);return Ue};const ec=Ue=>g.createElement("svg",fc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".magic-box_svg__cls-1,.magic-box_svg__cls-3{fill:none}.magic-box_svg__cls-2{fill:#fcfefe}.magic-box_svg__cls-3{stroke:#fcfeff;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px}")),g.createElement("path",{className:"magic-box_svg__cls-1",d:"M5.28 16.36V6.08a1 1 0 0 1 1-1h22.2a1 1 0 0 1 1 1v21.67a1 1 0 0 1-1 .95h-10v2.39H31.4V2.74H3.17v13.62ZM3.06 2.74h.11v13.62h-.11z"}),g.createElement("path",{className:"magic-box_svg__cls-2",d:"M7.28 7.12H27.4V26.7h-8.91v2h10a1 1 0 0 0 1-.95V6.08a1 1 0 0 0-1-1H6.24a1 1 0 0 0-1 1v10.28h2Z"}),g.createElement("path",{className:"magic-box_svg__cls-2",d:"M4.82 28.43a.87.87 0 0 0 .11 1.19 1 1 0 0 0 1.19.09c3.29-2.56 4.66-2.56 8 0a.92.92 0 0 0 1.28-1.28c-2.56-3.29-2.56-4.66 0-8a.92.92 0 0 0-1.28-1.28c-3.29 2.56-4.66 2.56-8 0a1.37 1.37 0 0 0-.55-.15.83.83 0 0 0-.64.27.87.87 0 0 0-.09 1.19c2.63 3.31 2.63 4.59-.02 7.97Z"}),g.createElement("path",{className:"magic-box_svg__cls-3",d:"m19.24 10.15 5.75-.07M24.99 15.91v-5.83M17.97 17.19l7.02-7.11"}));var no="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTN7ZmlsbDpub25lfS5jbHMtMntmaWxsOiNmY2ZlZmV9LmNscy0ze3N0cm9rZTojZmNmZWZmO3N0cm9rZS1saW5lY2FwOnJv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ue?Ji(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Al=(Ue,he)=>{for(var Pe in he||(he={}))Na.call(he,Pe)&&_i(Ue,Pe,he[Pe]);if(Zs)for(var Pe of Zs(he))au.call(he,Pe)&&_i(Ue,Pe,he[Pe]);return Ue};const vl=Ue=>g.createElement("svg",Al({id:"magic-brush_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".magic-brush_svg__cls-1{fill:#fff}")),g.createElement("path",{className:"magic-brush_svg__cls-1",d:"M15.22 14.73 21 9l10.1 10.1-5.8 5.76ZM14.33 15.43l10.34 10.36c-.87.86-1.78 1.78-2.71 2.68-.09.08-.37 0-.53-.07-1.31-.58-2.63-1.16-3.92-1.78a.74.74 0 0 0-1 .17q-1.75 1.82-3.57 3.56a2.14 2.14 0 0 1-2.33.51 2.08 2.08 0 0 1-1.42-1.69 2.2 2.2 0 0 1 .67-2.05C11 26 12.14 24.8 13.32 23.66a.74.74 0 0 0 .19-1c-.61-1.27-1.16-2.57-1.77-3.85a.67.67 0 0 1 .15-.91c.84-.81 1.63-1.64 2.44-2.47Zm-1.82 13.18a1 1 0 1 0-2 .05 1 1 0 0 0 2-.05Z"}),g.createElement("path",{d:"M3.2 12.66a.89.89 0 0 0 .11 1.23 1 1 0 0 0 1.23.1c3.4-2.65 4.82-2.65 8.27 0a.95.95 0 0 0 1.32-1.33c-2.64-3.4-2.64-4.81 0-8.26A.9.9 0 0 0 14 3.17a.89.89 0 0 0-1.23-.1C9.41 5.72 8 5.72 4.54 3.07A1.27 1.27 0 0 0 4 2.89a.84.84 0 0 0-.66.28.9.9 0 0 0-.12 1.23c2.72 3.45 2.72 4.77-.02 8.26Z",style:{fill:"#fcfefe"}}));var vu="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFt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jg0Ljg0IDAgMCAwLS42Ni4yOC45LjkgMCAwIDAtLjEyIDEuMjNjMi43MiAzLjQ1IDIuNzIgNC43Ny0uMDIgOC4yNloiIHN0eWxlPSJmaWxsOiNmY2ZlZmUiLz48L3N2Zz4=",Bl=Object.defineProperty,tc=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Lo=Object.prototype.propertyIsEnumerable,Au=(Ue,he,Pe)=>he in Ue?Bl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Kl=(Ue,he)=>{for(var Pe in he||(he={}))Zu.call(he,Pe)&&Au(Ue,Pe,he[Pe]);if(tc)for(var Pe of tc(he))Lo.call(he,Pe)&&Au(Ue,Pe,he[Pe]);return Ue};const vs=Ue=>g.createElement("svg",Kl({id:"magic-click_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".magic-click_svg__cls-1{fill:#fff}")),g.createElement("path",{className:"magic-click_svg__cls-1",d:"M30.88 21.21a1.6 1.6 0 0 1-1 1.35c-1.54.75-3.08 1.51-4.59 2.31a2.18 2.18 0 0 0-.87.86c-.79 1.49-1.53 3-2.27 4.53a1.49 1.49 0 0 1-2.89-.18Q17.2 23.8 15.1 17.52a1.49 1.49 0 0 1 2-2l12.55 4.19a1.56 1.56 0 0 1 1.23 1.5Zm-5.25.23-6.94-2.32 2.32 7c.37-.74.71-1.3.95-1.9a3 3 0 0 1 1.8-1.79c.6-.29 1.15-.62 1.87-.99ZM7.34 6.09a4.23 4.23 0 0 1 .89.54l3 3a1.45 1.45 0 1 1-2 2c-1-1-2.06-2-3.07-3.07A1.37 1.37 0 0 1 5.83 7a1.6 1.6 0 0 1 1.51-.91ZM22.35 12.35a6.61 6.61 0 0 1-1.12-.92 1.14 1.14 0 0 1 .09-1.51c1.14-1.19 2.3-2.37 3.5-3.49a1.31 1.31 0 0 1 1.84.1 1.34 1.34 0 0 1 .14 1.9c-1.11 1.19-2.28 2.32-3.45 3.45a3.92 3.92 0 0 1-1 .47ZM7 27.68a6 6 0 0 1-1.13-.9 1.12 1.12 0 0 1 .13-1.5c1.15-1.21 2.32-2.4 3.55-3.54a1.32 1.32 0 0 1 1.84.17 1.33 1.33 0 0 1 .1 1.85C10.35 25 9.16 26.11 8 27.25a3.75 3.75 0 0 1-1 .43ZM17.87 6v2A1.46 1.46 0 1 1 15 8V3.87a1.49 1.49 0 0 1 1.46-1.56 1.51 1.51 0 0 1 1.45 1.57c-.03.74-.04 1.44-.04 2.12ZM5.48 18.3h-2a1.5 1.5 0 0 1-1.55-1.5 1.48 1.48 0 0 1 1.59-1.42h4.07a1.49 1.49 0 0 1 1.59 1.49 1.5 1.5 0 0 1-1.6 1.42c-.69.02-1.4.01-2.1.01Z"}),g.createElement("path",{className:"magic-click_svg__cls-1",d:"M25.63 21.44c-.72.37-1.27.7-1.87.94A3 3 0 0 0 22 24.17c-.24.6-.58 1.16-.95 1.9l-2.32-6.95Z"}));var Ol="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zMC44OCAyMS4yMWExLjYgMS42IDAgMCAxLTEgMS4zNWMtMS41NC43NS0zLjA4IDEuNTEtNC41OSAyLjMxYTIuMTggMi4xOCAwIDAgMC0uODcuODZjLS43OSAxLjQ5LTEuNTMgMy0yLjI3IDQuNTNhMS40OSAxLjQ5IDAgMCAxLTIuODktLjE4UTE3LjIgMjMuOCAxNS4xIDE3LjUyYTEuNDkgMS40OSAwIDAgMSAy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LjQ4IDEuNDggMCAwIDEgMS41OS0xLjQyaDQuMDdhMS40OSAxLjQ5IDAgMCAxIDEuNTkgMS40OSAxLjUgMS41IDAgMCAxLTEuNiAxLjQyYy0uNjkuMDItMS40LjAxLTIuMS4wMVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNS42MyAyMS40NGMtLjcyLjM3LTEuMjcuNy0xLjg3Ljk0QTMgMyAwIDAgMCAyMiAyNC4xN2MtLjI0LjYtLjU4IDEuMTYtLjk1IDEuOWwtMi4zMi02Ljk1WiIvPjwvc3ZnPg==",gl=Object.defineProperty,kt=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,$i=(Ue,he,Pe)=>he in Ue?gl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,$o=(Ue,he)=>{for(var Pe in he||(he={}))Di.call(he,Pe)&&$i(Ue,Pe,he[Pe]);if(kt)for(var Pe of kt(he))Ql.call(he,Pe)&&$i(Ue,Pe,he[Pe]);return Ue};const uo=Ue=>g.createElement("svg",$o({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#pen-add_svg__a)",fill:"#fff"},g.createElement("path",{d:"M16.7 10c0-.1 0-.1.1-.2v-.2c0-.1 0-.1-.1-.1l-3.2-3.2-3.1-3.1v-.1H10.1c-.1.2-.3.3-.6.3-1.7.7-3.4 1.3-5.2 1.9-.1 0-.1.1-.2.1s0 .1 0 .2c-.2.6-.4 1.2-.6 1.9C3 9.2 2.5 11 2 12.7L.3 18.4c-.1.3-.2.7-.3 1l.2-.1L7 12.4l.1-.1V12c-.1-.2-.2-.5-.2-.8 0-.3 0-.6.1-.8.1-.3.3-.5.5-.7.2-.2.4-.3.7-.4H9c.3 0 .5.1.8.3.2.1.4.3.6.6.9-.8 2-1.2 3.3-1.2 1.1 0 2.2.4 3 1Z"}),g.createElement("path",{d:"M8.6 13.2h-.3c-.2-.1-.3-.2-.5-.3L.7 20l4-1.2 5-1.4c-.7-.9-1.2-2-1.2-3.3 0-.3.1-.6.1-.9ZM11.3 2.6 16.7 8l.8.8L20 7.2 12.8 0l-.1.1c-.5.8-1 1.5-1.5 2.2v.2l.1.1c-.1 0-.1 0 0 0ZM16.4 11c-.7-.6-1.7-1.1-2.7-1.1-1.2 0-2.3.5-3 1.3-.4.5-.8 1-.9 1.7-.1.4-.2.7-.2 1.1 0 1.2.5 2.2 1.3 3 .7.7 1.7 1.2 2.9 1.2 2.3 0 4.1-1.9 4.1-4.1-.1-1.2-.7-2.3-1.5-3.1Zm-1.1 4.1h-.7v.8c0 .6-.4 1-1 1s-1-.4-1-1v-.8H12c-.6 0-1-.4-1-1s.4-1 1-1h.6v-.5c0-.6.4-1 1-1s1 .4 1 1v.5h.7c.6 0 1 .4 1 1s-.4 1-1 1Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"pen-add_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))));var Uu="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xNi43IDEwYzAtLjEgMC0uMS4xLS4ydi0uMmMwLS4xIDAtLjEtLjEtLjFsLTMuMi0zLjItMy4xLTMuMXYtLjFIMTAuMWMtLjEuMi0uMy4zLS42LjMtMS43LjctMy40IDEuMy01LjIgMS45LS4xIDAtLjEuMS0uMi4xczAgLjEgMCAuMmMtLjIuNi0uNCAxLjItLjYgMS45QzMgOS4yIDIuNSAxMSAyIDEyLjdMLjMgMTguNGMtLjEuMy0uMi43LS4zIDFsLjItLjFMNyAxMi40bC4xLS4xV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0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,qi=(Ue,he)=>{for(var Pe in he||(he={}))Dl.call(he,Pe)&&xi(Ue,Pe,he[Pe]);if(ss)for(var Pe of ss(he))Mi.call(he,Pe)&&xi(Ue,Pe,he[Pe]);return Ue};const as=Ue=>g.createElement("svg",qi({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#pen-erase_svg__a)",fill:"#fff"},g.createElement("path",{d:"m16.74 10 .07-.2a.22.22 0 0 0 0-.16.22.22 0 0 0-.09-.12l-3.14-3.16-3.07-3.08a.18.18 0 0 0 0-.07H10.29l-.72.26-5.23 1.82a.42.42 0 0 0-.18.11.35.35 0 0 0-.1.19c-.17.63-.36 1.25-.55 1.88C3 9.21 2.51 11 2 12.67L.3 18.34c-.09.31-.18.66-.3 1l.16-.14L7 12.42l.06-.06a.16.16 0 0 0 0-.09.17.17 0 0 0 0-.1v-.08a1.87 1.87 0 0 1-.06-1.6A1.95 1.95 0 0 1 8.16 9.4c.27-.09.558-.118.84-.08a2 2 0 0 1 .78.26c.232.15.432.344.59.57a5 5 0 0 1 6.37-.15Z"}),g.createElement("path",{d:"M8.63 13.2c-.106.01-.214.01-.32 0a3.38 3.38 0 0 1-.52-.22L.74 20l4-1.2 5-1.44a4.9 4.9 0 0 1-1.11-4.16ZM11.25 2.62c1.83 1.82 3.62 3.62 5.43 5.43l.81.83L20 7.21 12.83 0l-.08.1c-.5.75-1 1.53-1.5 2.25v.06a.192.192 0 0 0 0 .07.19.19 0 0 0 0 .08.208.208 0 0 0 0 .06ZM16.38 11a4.1 4.1 0 0 0-6.66 2 4.24 4.24 0 0 0-.18 1.13 4.11 4.11 0 0 0 1.27 3 4.06 4.06 0 0 0 2.85 1.16A4.12 4.12 0 0 0 16.38 11Zm-1 4.08h-3.32a1 1 0 0 1 0-2h3.27a1 1 0 0 1 0 2h.05Z"})),g.createElement("defs",null,g.createElement("cl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44M0wyMCA3LjIxIDEyLjgzIDBsLS4wOC4xYy0uNS43NS0xIDEuNTMtMS41IDIuMjV2LjA2YS4xOTIuMTkyIDAgMCAwIDAgLjA3LjE5LjE5IDAgMCAwIDAgLjA4LjIwOC4yMDggMCAwIDAgMCAuMDZaTTE2LjM4IDExYTQuMSA0LjEgMCAwIDAtNi42NiAyIDQuMjQgNC4yNCAwIDAgMC0uMTggMS4xMyA0LjExIDQuMTEgMCAwIDAgMS4yNyAzIDQuMDYgNC4wNiAwIDAgMCAyLjg1IDEuMTZBNC4xMiA0LjEyIDAgMCAwIDE2LjM4IDExWm0tMSA0LjA4aC0zLjMyYTEgMSAwIDAgMSAwLTJoMy4yN2ExIDEgMCAwIDEgMCAyaC4wNVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Js=Object.defineProperty,ou=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,mu=(Ue,he,Pe)=>he in Ue?Js(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Us=(Ue,he)=>{for(var Pe in he||(he={}))Zi.call(he,Pe)&&mu(Ue,Pe,he[Pe]);if(ou)for(var Pe of ou(he))iu.call(he,Pe)&&mu(Ue,Pe,he[Pe]);return Ue};const wl=Ue=>g.createElement("svg",Us({viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M18.33 4.069a.67.67 0 0 0 .67-.672V.671A.672.672 0 0 0 18.33 0h-2.718a.67.67 0 0 0-.671.671v.672H4.066V.67A.672.672 0 0 0 3.395 0H.67A.67.67 0 0 0 0 .671v2.72a.672.672 0 0 0 .67.67h.672v10.877H.67A.67.67 0 0 0 0 15.61v2.72A.672.672 0 0 0 .67 19h2.718a.67.67 0 0 0 .671-.671v-.672h10.869v.672a.672.672 0 0 0 .67.671h2.718a.67.67 0 0 0 .67-.671v-2.706a.672.672 0 0 0-.67-.671h-.671V4.069h.684Zm-2.014 10.876h-.67a.67.67 0 0 0-.671.671v.672H4.065v-.672a.672.672 0 0 0-.67-.671h-.671V4.069h.67a.67.67 0 0 0 .672-.672v-.671h10.868v.671a.672.672 0 0 0 .671.672h.671l.02 5.438.02 5.438Z",fill:"#fff"}),g.createElement("g",{stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"},g.createElement("path",{d:"m6.71 6.713 6.037 6.043M6.71 6.713l6.037 6.043M6.71 6.713l6.037 6.043M6.71 6.713l6.037 6.043"})),g.createElement("g",{stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"},g.createElement("path",{d:"M12.747 6.713 6.71 12.756M12.747 6.713 6.71 12.756M12.747 6.713 6.71 12.756M12.747 6.713 6.71 12.756"})));var jl="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTkgMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE4LjMzIDQuMDY5YS42Ny42NyAwIDAgMCAuNjctLjY3MlYuNjcxQS42NzIuNjcyIDAgMCAwIDE4LjMzIDBoLTIuNzE4YS42Ny42NyAwIDAgMC0uNjcxLjY3MXYuNjcySDQuMDY2Vi42N0EuNjcyLjY3MiAwIDAgMCAzLjM5NSAwSC42N0EuNjcuNjcgMCAwIDAgMCAuNjcxdjIuNzJhLjY3Mi42NzIgMCAwIDAgLjY3LjY3aC42NzJ2MTAuODc3SC42N0EuNjcuNjcgMCAwIDAgMCAxNS42MXYyLjcyQS42NzIuNjcyIDAgMCAwIC42NyAxOWgyLjcxOGEuNjcuNjcgMCAwIDAgLjY3MS0uNjcxdi0uNjcyaDEwLjg2OXYuNjcyYS42NzIuNjcyIDAgMCAwIC42Ny42NzFoMi43MThhLjY3LjY3IDAgMCAwIC42Ny0uNjcxdi0yLjcwNmEuNjcyLjY3MiAwIDAgMC0uNjctLjY3MWgtLjY3MVY0LjA2OWguNjg0Wm0tMi4wMTQgMTAuODc2aC0uNjdhLjY3LjY3IDAgMCAwLS42NzEuNjcxdi42NzJINC4wNjV2LS42NzJhLjY3Mi42NzIgMCAwIDAtLjY3LS42NzFoLS42NzFWNC4wNjloLjY3YS42Ny42NyAwIDAgMCAuNjcyLS42NzJ2LS42NzFoMTAuODY4di42NzFhLjY3Mi42NzIgMCAwIDAgLjY3MS42NzJoLjY3MWwuMDIgNS40MzguMDIgNS40MzhaIiBmaWxsPSIjZmZmIi8+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48cGF0aCBkPSJtNi43MSA2LjcxMyA2LjAzNyA2LjA0M002LjcxIDYuNzEzbDYuMDM3IDYuMDQzTTYuNzEgNi43MTNsNi4wMzcgNi4wNDNNNi43MSA2LjcxM2w2LjAzNyA2LjA0MyIvPjwvZz48ZyBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiPjxwYXRoIGQ9Ik0xMi43NDcgNi43MTMgNi43MSAxMi43NTZNMTIuNzQ3IDYuNzEzIDYuNzEgMTIuNzU2TTEyLjc0NyA2LjcxMyA2LjcxIDEyLjc1Nk0xMi43NDcgNi43MTMgNi43MSAxMi43NTYiLz48L2c+PC9zdmc+",Ss=Object.defineProperty,gs=Object.getOwnPropertySymbols,Ou=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable,va=(Ue,he,Pe)=>he in Ue?Ss(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,at=(Ue,he)=>{for(var Pe in he||(he={}))Ou.call(he,Pe)&&va(Ue,Pe,he[Pe]);if(gs)for(var Pe of gs(he))ks.call(he,Pe)&&va(Ue,Pe,he[Pe]);return Ue};const Kt=Ue=>g.createElement("svg",at({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},Ue),g.createElement("defs",null,g.createElement("style",null,".segment-everything_svg__cls-1{fill:#fff}.segment-everything_svg__cls-3{fill:none}")),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"m6.26 15.54 5.88 3.88a1 1 0 0 1 0 1.56L6.1 25.29a.9.9 0 0 1-1.41-.79l.19-8.2a.9.9 0 0 1 1.38-.76ZM7.58 29.17 23.43 17.7a1.71 1.71 0 0 1 2.25.22l3.32 3.5v7.75Z"}),g.createElement("path",{d:"M31 4.35a.88.88 0 0 0-.11-1.19 1 1 0 0 0-1.19-.09c-3.29 2.56-4.66 2.56-8 0a.87.87 0 0 0-1.19.09.87.87 0 0 0-.09 1.19c2.56 3.29 2.56 4.66 0 8a.92.92 0 0 0 1.28 1.28c3.29-2.56 4.66-2.56 8 0a1.28 1.28 0 0 0 .55.18.91.91 0 0 0 .64-.27.87.87 0 0 0 .11-1.19c-2.65-3.35-2.65-4.62 0-8Z",style:{fill:"#fcfefe"}}),g.createElement("path",{className:"segment-everything_svg__cls-3",d:"M4.07 4.13h26.29v26.29H4.07z"}),g.createElement("path",{className:"segment-everything_svg__cls-3",d:"M6.39 28.56h22.49V17H16.49v-3.38a2.56 2.56 0 0 1-2 .93 2.63 2.63 0 0 1-2.59-2.72 2.66 2.66 0 0 1 2.6-2.67 2.57 2.57 0 0 1 2 .95v-4H6.39Z"}),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"M14.51 9.16a2.66 2.66 0 0 0-2.6 2.67 2.63 2.63 0 0 0 2.59 2.72 2.56 2.56 0 0 0 2-.93v-3.51a2.57 2.57 0 0 0-1.99-.95Z"}),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"M28.88 28.56H6.39V6.1h10.1V4.25H5.42a.88.88 0 0 0-.89.88v25.28h26.21V17h-1.86Z"}),g.createElement("path",{className:"segment-everything_svg__cls-1",d:"M17.14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U2IDAgMCAxLTIgLjkzIDIuNjMgMi42MyAwIDAgMS0yLjU5LTIuNzIgMi42NiAyLjY2IDAgMCAxIDIuNi0yLjY3IDIuNTcgMi41NyAwIDAgMSAyIC45NXYtNEg2LjM5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0LjUxIDkuMTZhMi42NiAyLjY2IDAgMCAwLTIuNiAyLjY3IDIuNjMgMi42MyAwIDAgMCAyLjU5IDIuNzIgMi41NiAyLjU2IDAgMCAwIDItLjkzdi0zLjUxYTIuNTcgMi41NyAwIDAgMC0xLjk5LS45NVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yOC44OCAyOC41Nkg2LjM5VjYuMWgxMC4xVjQuMjVINS40MmEuODguODggMCAwIDAtLjg5Ljg4djI1LjI4aDI2LjIxVjE3aC0xLjg2WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE3LjE0IDExLjg3YTIuNzQgMi43NCAwIDAgMC0uNjUtMS43NnYzLjUxYTIuNyAyLjcgMCAwIDAgLjY1LTEuNzVaIi8+PC9zdmc+",gr=function(he){var Pe=he.drawData,Un=he.onChangePointResolution,vt=(0,F.bU)(),zn=vt.localeText,En=(0,g.useMemo)(function(){return Pe.objectList.length===0&&!Pe.creatingObject||Pe.isBatchEditing},[Pe.objectList,Pe.creatingObject,Pe.isBatchEditing]),On=(0,g.useMemo)(function(){return[{key:Q.jB.PenAdd,name:zn("DDSAnnotator.subtoolbar.mask.penAdd"),icon:(0,x.jsx)(H.Z,{component:uo}),available:!0},{key:Q.jB.PenErase,name:zn("DDSAnnotator.subtoolbar.mask.penErase"),icon:(0,x.jsx)(H.Z,{component:as}),available:!!Pe.creatingObject},{key:Q.jB.BrushAdd,name:zn("DDSAnnotator.subtoolbar.mask.brushAdd"),icon:(0,x.jsx)(H.Z,{component:Qs}),available:!0,withSize:!0},{key:Q.jB.BrushErase,name:zn("DDSAnnotator.subtoolbar.mask.brushErase"),icon:(0,x.jsx)(H.Z,{component:Vl}),available:!!Pe.creatingObject,withSize:!0}]},[Pe.creatingObject]),Fn=(0,g.useMemo)(function(){return[{key:Q.jB.AutoSegmentByBox,name:zn("DDSAnnotator.subtoolbar.mask.box"),icon:(0,x.jsx)(H.Z,{component:ec}),available:!0},{key:Q.jB.AutoSegmentByStroke,name:zn("DDSAnnotator.subtoolbar.mask.stroke"),icon:(0,x.jsx)(H.Z,{component:vl}),available:!0,withSize:!0},{key:Q.jB.AutoSegmentByClick,name:zn("DDSAnnotator.subtoolbar.mask.click"),icon:(0,x.jsx)(H.Z,{component:vs}),available:!0}]},[]),mr=(0,g.useMemo)(function(){return[{key:Q.jB.AutoSegmentByBox,name:zn("DDSAnnotator.subtoolbar.mask.box"),icon:(0,x.jsx)(H.Z,{component:ec}),available:!0,withCustomElement:!0},{key:Q.jB.AutoSegmentByStroke,name:zn("DDSAnnotator.subtoolbar.mask.stroke"),icon:(0,x.jsx)(H.Z,{component:vl}),available:!0,withSize:!0,withCustomElement:!0},{key:Q.jB.AutoSegmentByClick,name:zn("DDSAnnotator.subtoolbar.mask.click"),icon:(0,x.jsx)(H.Z,{component:vs}),available:!0,withCustomElement:!0}]},[]),fr=(0,g.useMemo)(function(){var Or;return[{key:Q.jB.PositiveVisualPrompt,name:zn("DDSAnnotator.subtoolbar.visualprompt.positive"),icon:(0,x.jsx)(H.Z,{component:Vo}),available:!0},{key:Q.jB.NegativeVisualPrompt,name:zn("DDSAnnotator.subtoolbar.visualprompt.negative"),icon:(0,x.jsx)(H.Z,{component:wl}),available:!!((Or=Pe.prompt.promptsQueue)!==null&&Or!==void 0&&Or.some(function(ar){return ar.isPositive}))}]},[Pe.prompt]),or=(0,g.useMemo)(function(){return[{key:Q.jB.AutoSegmentEverything,name:zn("DDSAnnotator.subtoolbar.mask.sam"),icon:(0,x.jsx)(H.Z,{component:Kt}),available:En,description:zn(En?"DDSAnnotator.subtoolbar.mask.sam.desc":"DDSAnnotator.subtoolbar.mask.sam.notAllow")},{key:Q.jB.AutoEdgeStitching,name:zn("DDSAnnotator.subtoolbar.mask.edgeStitch"),icon:(0,x.jsx)(H.Z,{component:fl}),available:!0,withSize:!0}]},[En]),jn=(0,g.useMemo)(function(){var Or=Pe.selectedTool,ar=Pe.creatingObject,hr=Pe.AIAnnotation,Pr=Pe.selectedModel;return!!(Or===Q.ru.Mask||(ar==null?void 0:ar.type)===Q.gr.Mask||Or===Q.ru.Rectangle&&hr&&Pr[Or]===Q.HE.IVP||(Or===Q.ru.Polygon||(ar==null?void 0:ar.type)===Q.gr.Polygon)&&hr)},[Pe.selectedTool,Pe.creatingObject,Pe.AIAnnotation,Pe.selectedModel]),ua=(0,g.useMemo)(function(){var Or,ar;if(Pe.selectedTool===Q.ru.Mask||((Or=Pe.creatingObject)===null||Or===void 0?void 0:Or.type)===Q.gr.Mask){if(!Pe.AIAnnotation)return{basicTools:On,smartTools:[]};var hr=Pe.selectedModel[Pe.selectedTool];return hr===Q.HE.IVP?{basicTools:[],smartTools:fr}:hr===Q.HE.SegmentByMask?{basicTools:[],smartTools:Fn}:hr===Q.HE.SegmentEverything?{basicTools:[],smartTools:or}:{basicTools:On,smartTools:[]}}else{if(Pe.selectedTool===Q.ru.Polygon||((ar=Pe.creatingObject)===null||ar===void 0?void 0:ar.type)===Q.gr.Polygon)return{basicTools:[],smartTools:mr,customElement:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-title",children:zn("DDSAnnotator.subtoolbar.polygon.pointResolution")}),(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-slider",children:(0,x.jsx)(Yn.Z,{min:.1,max:.9,step:.1,value:Pe.pointResolution,onChange:Un,onAfterChange:function(aa){return Un(aa,!0)}})})]})};if(Pe.selectedTool===Q.ru.Rectangle&&Pe.AIAnnotation&&Pe.selectedModel[Pe.selectedTool]===Q.HE.IVP)return{basicTools:[],smartTools:fr}}return{basicTools:[],smartTools:[]}},[Pe.selectedTool,Pe.creatingObject,Pe.AIAnnotation,Pe.selectedModel,mr,On,Fn,or,fr,Pe.pointResolution]);return{showSubTools:jn,currSubTools:ua}},Da=gr,lo=function(he){var Pe=he.mode,Un=he.manualMode,vt=he.drawData,zn=he.setDrawData,En=he.setDrawDataWithHistory,On=he.editState,Fn=he.setEditState,mr=he.clientSize,fr=he.naturalSize,or=he.addObject,jn=he.updateObject,ua=he.updateAllObject,Or=he.getAnnotColor,ar=he.onAiAnnotation,hr=(0,F.bU)(),Pr=hr.localeText,aa=(0,g.useCallback)(function(Yt){var Ln;return On.annotsDisplayOptions.colorByCategory?Or(Yt):vt.activeObjectIndex>-1?vt.objectList[vt.activeObjectIndex].color:((Ln=vt.creatingObject)===null||Ln===void 0?void 0:Ln.color)||Or(Yt)},[On.annotsDisplayOptions.colorByCategory,Or,vt.activeObjectIndex,vt.objectList,vt.creatingObject]),Jn=function(Ln){var qn=vt.objectList[vt.activeObjectIndex];if(qn){var cr=t()(t()({},vt.objectList[vt.activeObjectIndex]),{},{attributes:void 0});cr.labelId=Ln,On.annotsDisplayOptions.colorByCategory&&(cr.color=Or(Ln)),cr.type===Q.gr.Mask&&cr.maskRle&&(cr.maskCanvasElement=(0,yr.ei)(cr.maskRle,fr,cr.color)),vt.isBatchEditing&&(cr.conf=1),jn(cr,vt.activeObjectIndex)}Fn(function(Dr){Dr.latestLabelId=Ln})},fa=(0,g.useCallback)(function(Yt){var Ln,qn;if(((Ln=vt.creatingObject)===null||Ln===void 0?void 0:Ln.type)===Q.gr.Mask){var cr,Dr,Rr=(0,yr.G9)(mr,fr,((cr=vt.creatingObject)===null||cr===void 0?void 0:cr.tempMaskSteps)||[],(Dr=vt.creatingObject)===null||Dr===void 0?void 0:Dr.maskCanvasElement);if(Rr&&Rr.length>0){var Aa=aa(Yt),xa=t()(t()({},vt.objectList[vt.activeObjectIndex]),{},{type:Q.gr.Mask,labelId:Yt,hidden:!1,maskRle:Rr,maskCanvasElement:(0,yr.ei)(Rr,fr,Aa),conf:1,status:W.TK.Commited,color:Aa});vt.activeObjectIndex>-1?jn(xa,vt.activeObjectIndex):or(xa)}else Rr?S.ZP.warning(Pr("DDSAnnotator.anno.mask.emptyWarning")):S.ZP.error(Pr("DDSAnnotator.anno.mask.translateToRleError"))}else if(((qn=vt.creatingObject)===null||qn===void 0?void 0:qn.type)===Q.gr.Polygon){var pa,za=Or(Yt),ha=t()(t()({},vt.objectList[vt.activeObjectIndex]),{},{type:Q.gr.Polygon,labelId:Yt,hidden:!1,polygon:(pa=vt.creatingObject)===null||pa===void 0?void 0:pa.polygon,conf:1,status:W.TK.Commited,color:za});vt.activeObjectIndex>-1?jn(ha,vt.activeObjectIndex):or(ha)}else{var Yr=t()({},vt.objectList[vt.activeObjectIndex]);Yr.labelId=Yt,On.annotsDisplayOptions.colorByCategory&&(Yr.color=Or(Yt)),vt.isBatchEditing&&(Yr.conf=1),jn(Yr,vt.activeObjectIndex)}zn(function($a){$a.creatingObject=void 0,$a.prompt={},$a.activeObjectIndex=-1,$a.selectedSubTool===Q.jB.PenErase?$a.selectedSubTool=Q.jB.PenAdd:$a.selectedSubTool===Q.jB.BrushErase&&($a.selectedSubTool=Q.jB.BrushAdd)}),Fn(function($a){$a.latestLabelId=Yt})},[vt.creatingObject,vt.activeObjectIndex,vt.objectList,vt.selectedSubTool]),Qr=(0,g.useCallback)(function(){En(function(Yt){var Ln=(0,m.cloneDeep)(vt.objectList).filter(function(qn){return qn.status!==W.TK.Unchecked}).map(function(qn){return qn.status=W.TK.Commited,qn.type!==Q.gr.Mask&&(qn.color=Or(qn.labelId)),qn});Yt.objectList=Ln,Yt.isBatchEditing=!1,Yt.activeObjectIndex=-1,Yt.creatingObject=void 0,Yt.prompt={}})},[vt.objectList,En]),$r=(0,g.useCallback)(function(){En(function(Yt){var Ln=(0,m.cloneDeep)(vt.objectList).filter(function(qn){return qn.status===W.TK.Commited});Yt.objectList=Ln,Yt.isBatchEditing=!1,Yt.activeObjectIndex=-1,Yt.creatingObject=void 0,Yt.prompt={}})},[vt.objectList,En]),lr=(0,g.useCallback)(function(){var Yt=vt.selectedTool,Ln=vt.AIAnnotation,qn=vt.selectedModel,cr=vt.selectedSubTool,Dr=vt.isBatchEditing,Rr=vt.creatingObject,Aa=function(){if(!Ln)return!1;if(Yt===Q.ru.Rectangle)return Dr;if(Yt===Q.ru.Polygon)return Rr;if(Yt===Q.ru.Skeleton)return Dr;if(Yt===Q.ru.Mask){var za=qn[Yt];return za===Q.HE.IVP||za===Q.HE.SegmentEverything&&cr===Q.jB.AutoSegmentEverything?Dr:za===Q.HE.SegmentByMask?Rr:!1}return!1},xa=Aa();return xa&&S.ZP.warning(Pr("DDSAnnotator.smart.tip.limitJump")),xa},[vt.selectedTool,vt.selectedModel,vt.AIAnnotation,vt.selectedSubTool,vt.isBatchEditing,vt.creatingObject]),Ir=(0,g.useCallback)(function(Yt){Pe!==W.je.Edit||Yt===vt.selectedTool&&!vt.AIAnnotation||lr()||zn(function(Ln){Ln.selectedTool=Yt,Ln.isJustCreated=!1,Ln.AIAnnotation=!1,Ln.activeObjectIndex=-1,Ln.creatingObject=void 0,Ln.editingAttribute=void 0,Ln.prompt={}})},[Pe,vt.selectedTool,vt.isBatchEditing,vt.AIAnnotation,lr]),Vr=(0,g.useCallback)(function(Yt){var Ln=vt.selectedTool,qn=vt.selectedModel,cr=vt.selectedSubTool,Dr=vt.AIAnnotation,Rr=vt.isBatchEditing;Pe!==W.je.Edit||Yt===cr||Ln===Q.ru.Mask&&Dr&&qn[Ln]===Q.HE.SegmentEverything&&Rr||zn(function(Aa){Aa.selectedSubTool=Yt})},[Pe,vt.selectedTool,vt.AIAnnotation,vt.selectedModel,vt.isBatchEditing,vt.selectedSubTool,lr]),Ar=(0,g.useCallback)(function(Yt,Ln){zn(function(qn){qn.selectedTool=Yt,qn.selectedSubTool=Ln})},[]),Y=(0,g.useCallback)(function(){En(function(Yt){Yt.objectList=Yt.objectList.filter(function(Ln){return Ln.status===W.TK.Commited}),Yt.AIAnnotation=!1,Yt.isBatchEditing=!1,Yt.creatingObject=void 0,Yt.prompt={}})},[En]),z=(0,g.useCallback)(function(Yt){Pe===W.je.Edit&&zn(function(Ln){Ln.brushSize=Yt})},[Pe]),ue=(0,g.useCallback)(function(Yt){Pe===W.je.Edit&&zn(function(Ln){Ln.pointResolution=Yt})},[Pe]),Ce=(0,g.useCallback)(function(Yt,Ln){if(ue(Yt),Ln&&vt.creatingObject&&vt.creatingObject.type===Q.gr.Polygon&&vt.prompt.promptsQueue&&vt.prompt.promptsQueue.length>0){var qn=t()(t()({},vt),{},{pointResolution:Yt});ar({type:Q.gr.Polygon,drawData:qn,promptsQueue:vt.prompt.promptsQueue})}},[vt.creatingObject,vt.prompt]),Re=function(){n.Z.info({centered:!0,closable:!0,title:Pr("DDSAnnotator.smart.infoModal.title"),content:Pr("DDSAnnotator.smart.infoModal.content"),okText:Pr("DDSAnnotator.smart.infoModal.action"),onOk:function(){window.open("https://deepdataspace.com","_blank")}})},rt=(0,g.useCallback)(function(Yt){Pe!==W.je.Edit||Un||lr()||zn(function(Ln){Ln.AIAnnotation=Yt})},[Pe,Un,lr]),Mt=(0,g.useCallback)(function(Yt){En(function(Ln){var qn=(0,m.cloneDeep)(vt.objectList).map(function(cr){return cr.status===W.TK.Commited?cr:cr.conf===void 0?(cr.status=W.TK.Unchecked,cr):(cr.status=cr.confYt[1]?W.TK.Unchecked:W.TK.Checked,cr)});Ln.objectList=qn})},[vt.objectList,En]),Dt=(0,g.useCallback)(function(Yt){En(function(Ln){var qn=(0,m.cloneDeep)(vt.objectList).map(function(Dr){return Dr.status===W.TK.Commited||(Dr.status=Dr.conf&&Dr.conf>=Yt?W.TK.Checked:W.TK.Unchecked),Dr});Ln.objectList=qn;var cr=qn.filter(function(Dr){return Dr.status===W.TK.Checked}).length;S.ZP.success(Pr("DDSAnnotator.smart.tip.annotationApplied",{count:cr}))})},[vt.objectList,En]),Vt=(0,g.useCallback)(function(Yt){Fn(function(Ln){Ln.imageDisplayOptions=Yt})},[]),nn=(0,g.useCallback)(function(Yt){Fn(function(Ln){Ln.annotsDisplayOptions=Yt})},[]),fn=(0,g.useCallback)(function(){if(!(!vt.objectList||!vt.objectList.length)){var Yt=(0,m.cloneDeep)(vt.objectList).map(function(Ln){var qn=Or(Ln.labelId);return Ln.type===Q.gr.Mask&&Ln.maskRle&&Ln.maskRle.length>0?t()(t()({},Ln),{},{color:qn,maskCanvasElement:(0,yr.ei)(Ln.maskRle,fr,qn)}):t()(t()({},Ln),{},{color:qn})});ua(Yt)}},[vt.objectList,Or]),hn=(0,g.useCallback)(function(Yt){var Ln=vt.selectedTool,qn=Q.Xn[Ln];return!(!qn.includes(Yt)||lr())},[Q.Xn,vt.selectedTool,lr]),bn=(0,g.useCallback)(function(Yt){hn(Yt)&&zn(function(Ln){Ln.selectedModel[Ln.selectedTool]=Yt})},[hn]);return(0,g.useEffect)(function(){zn(function(Yt){if(Yt.AIAnnotation){var Ln=Yt.selectedModel[Yt.selectedTool];switch(Yt.selectedTool){case Q.ru.Rectangle:Ln===Q.HE.IVP?Yt.selectedSubTool=Q.jB.PositiveVisualPrompt:Yt.selectedSubTool=Q.jB.PenAdd;break;case Q.ru.Mask:if(Ln===Q.HE.IVP)Yt.selectedSubTool=Q.jB.PositiveVisualPrompt;else if(Ln===Q.HE.SegmentEverything){var qn=Yt.objectList.length===0&&!Yt.creatingObject||Yt.isBatchEditing;Yt.selectedSubTool=qn?Q.jB.AutoSegmentEverything:Q.jB.PenAdd}else Yt.selectedSubTool=Q.jB.AutoSegmentByBox;break;case Q.ru.Polygon:Yt.selectedSubTool=Q.jB.AutoSegmentByBox;break;case Q.ru.Skeleton:case Q.ru.Drag:Yt.selectedSubTool=Q.jB.PenAdd;break}}else Yt.selectedSubTool=Q.jB.PenAdd})},[vt.selectedTool,vt.AIAnnotation,vt.selectedModel]),{onChangeObjectLabel:Jn,onFinishCurrCreate:fa,onAcceptValidObjects:Qr,onAbortBatchObjects:$r,selectTool:Ir,selectSubTool:Vr,forceChangeTool:Ar,onExitAIAnnotation:Y,setBrushSize:z,activeAIAnnotation:rt,displayAIModeUnavailableModal:Re,onChangeSkeletonConf:Mt,onChangeLimitConf:Dt,onChangeImageDisplayOpts:Vt,onChangeAnnotsDisplayOpts:nn,onChangeColorMode:fn,onChangePointResolution:Ce,onSelectModel:bn,isInAiSession:lr}},ii=lo,Fo=e(92183),es=Object.defineProperty,ei=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ao=(Ue,he,Pe)=>he in Ue?es(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,ki=(Ue,he)=>{for(var Pe in he||(he={}))di.call(he,Pe)&&Ao(Ue,Pe,he[Pe]);if(ei)for(var Pe of ei(he))Eo.call(he,Pe)&&Ao(Ue,Pe,he[Pe]);return Ue};const ms=Ue=>g.createElement("svg",ki({viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#docs_svg__a)"},g.createElement("path",{d:"M14.666 5.5a.917.917 0 1 1 0 1.833H7.333a.917.917 0 1 1 0-1.833h7.333Zm7.065 16.231a.916.916 0 0 1-1.296 0l-2.206-2.206a4.086 4.086 0 0 1-4.48-.053 4.125 4.125 0 1 1 6.417-3.43 4.085 4.085 0 0 1-.641 2.187l2.206 2.206a.917.917 0 0 1 0 1.296Zm-5.69-3.398a2.292 2.292 0 1 0 0-4.583 2.292 2.292 0 0 0 0 4.583Zm-4.125 1.834h-5.5a2.75 2.75 0 0 1-2.75-2.75V4.583a2.75 2.75 0 0 1 2.75-2.75h11a.917.917 0 0 1 .917.917v7.333a.917.917 0 0 0 1.833 0V2.75A2.75 2.75 0 0 0 17.416 0h-11a4.589 4.589 0 0 0-4.583 4.583v12.834A4.589 4.589 0 0 0 6.416 22h5.5a.917.917 0 1 0 0-1.833Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"docs_svg__a"},g.createElement("path",{d:"M0 0h22v22H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,Jl=Object.prototype.propertyIsEnumerable,us=(Ue,he,Pe)=>he in Ue?Xl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Oc=(Ue,he)=>{for(var Pe in he||(he={}))wu.call(he,Pe)&&us(Ue,Pe,he[Pe]);if(ls)for(var Pe of ls(he))Jl.call(he,Pe)&&us(Ue,Pe,he[Pe]);return Ue};const nc=Ue=>g.createElement("svg",Oc({viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Ue),g.createElement("path",{d:"m15.5 1 13.423 7.75v15.5L15.5 32 2.077 24.25V8.75L15.5 1Z",fill:"#fff"}),g.createElement("path",{fill:"url(#logo_svg__a)",d:"M0 0h33v33H0z"}),g.createElement("defs",null,g.createElement("pattern",{id:"logo_svg__a",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#logo_svg__b",transform:"scale(.00417)"})),g.createElement("image",{id:"logo_svg__b",width:240,height:240,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABLHSURBVHgB7d1fVhw3FgbwKxX2jIE47QWYFCtIWMHACoLBeQ5eAbACmhUAK8B5DtidFcAOcFbgMlmAexyMk4GSRqqmCSYBd3dJKl3V93vKOfPnnND9dd0rXakEQXLy5U+LOtNbmnQhS7ld9B4VBEkSBMnIl3VHyU9bJPTGZ/+Blt0P6o+9fu9JnyApCHAi5lZscEsTXNG5479SaK23f3s1+5IgGQgwc7ZcVlLtm08yH/F/YsvqJZTVaUCAmTLBzU2fu2/63EWazEv0x/whwMwM+tw/1kmoLtXXN/3x7umrR9sELCHAjOSr5+uKbHDv7HMnhf6YKQSYgRvbQovkkSDRE6XYRFnNBwIcMQd97qTQHzOBAEforz733m0h31BWM4AAR+bpytma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F5V1RmZzFzRHRvVThRWUFkUTM5OEcvcGNueEJnVDlwZVZtUDhNUXdFMkxQOCtkbUdWbks5TFVIR01iK3dFT0FBV2xKV284OXRBQUljRU9NenVQY3lYNktlS09VbXRvWENRNEFia0VwL2pENjNlUWh3ZzY3R011MjJFN2VEOVJoL2pBUUMzREIyL2JGOW14LzYzR2dnd0pHbyttT3BqMkl0cXpIK0dDY0VPREt4OWNjWWY0d2JBaHloZlBsOVIwMU5iVFI4YkJGOUxnTUljTVNhNjQ4eC9zZ0ZBc3hBL3Z6M1JhMnlmZDlsZGRYblNyVlovRHc3MHFYdzBEd0VtQkZmL1RINlhMNFFZR1ljSDF2RStDTnpDREJURHZyamw3S2Mza1J3ZVVPQW1SdTNyTWI0WTFvUTRFUjg2ZGhpMWVkcXRZMjNIS1FGQVU3SUhXVTErdHlFSWNBSkdoNWJOUHU1ZlJ6elM5di9BV2lQL05ZUHp6MVFBQUFBQUVsRlRrU3VRbUNDIi8+PC9kZWZzPjwvc3ZnPg==",Pl=Object.defineProperty,$l=Object.getOwnPropertySymbols,ku=Object.prototype.hasOwnProperty,Dc=Object.prototype.propertyIsEnumerable,pu=(Ue,he,Pe)=>he in Ue?Pl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,hu=(Ue,he)=>{for(var Pe in he||(he={}))ku.call(he,Pe)&&pu(Ue,Pe,he[Pe]);if($l)for(var Pe of $l(he))Dc.call(he,Pe)&&pu(Ue,Pe,he[Pe]);return Ue};const yu=Ue=>g.createElement("svg",hu({className:"displayReset_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ue),g.createElement("path",{d:"m193.07 70.353 5.423.931a34.91 34.91 0 0 1 28.37 40.425l-.024.07-12.87 72.541A448.698 448.698 0 0 1 507.857 75.38c246.831 0 447.023 197.912 447.023 442.182S754.688 959.744 507.857 959.744c-160.186 0-305.687-84.084-385.466-218.159a37.795 37.795 0 0 1 13.359-51.921 38.167 38.167 0 0 1 52.154 13.289c66.21 111.243 186.903 180.992 319.953 180.992 204.87 0 370.851-164.096 370.851-366.383S712.728 151.18 507.858 151.18c-107.288 0-206.802 45.265-276.318 121.995H373.04a34.91 34.91 0 0 1 0 69.818H163.584c-2.607 0-5.19-.279-7.657-.837a34.63 34.63 0 0 1-5.26-.512l-5.422-.931a34.91 34.91 0 0 1-28.346-40.495l35.77-201.588a34.91 34.91 0 0 1 40.402-28.277z",fill:"#fff"}));var os="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0ibTE5My4wNyA3MC4zNTMgNS40MjMuOTMxYTM0LjkxIDM0LjkxIDAgMCAxIDI4LjM3IDQwLjQyNWwtLjAyNC4wNy0xMi44NyA3Mi41NDFBNDQ4LjY5OCA0NDguNjk4IDAgMCAxIDUwNy44NTcgNzUuMzhjMjQ2LjgzMSAwIDQ0Ny4wMjMgMTk3LjkxMiA0NDcuMDIzIDQ0Mi4xODJTNzU0LjY4OCA5NTkuNzQ0IDUwNy44NTcgOTU5Ljc0NGMtMTYwLjE4NiAwLTMwNS42ODctODQuMDg0LTM4NS40NjYtMjE4LjE1OWEzNy43OTUgMzcuNzk1IDAgMCAxIDEzLjM1OS01MS45MjEgMzguMTY3IDM4LjE2NyAwIDAgMSA1Mi4xNTQgMTMuMjg5YzY2LjIxIDExMS4yNDMgMTg2LjkwMyAxODAuOTkyIDMxOS45NTMgMTgwLjk5MiAyMDQuODcgMCAzNzAuODUxLTE2NC4wOTYgMzcwLjg1MS0zNjYuMzgzUzcxMi43MjggMTUxLjE4IDUwNy44NTggMTUxLjE4Yy0xMDcuMjg4IDAtMjA2LjgwMiA0NS4yNjUtMjc2LjMxOCAxMjEuOTk1SDM3My4wNGEzNC45MSAzNC45MSAwIDAgMSAwIDY5LjgxOEgxNjMuNTg0Yy0yLjYwNyAwLTUuMTktLjI3OS03LjY1Ny0uODM3YTM0LjYzIDM0LjYzIDAgMCAxLTUuMjYtLjUxMmwtNS40MjItLjkzMWEzNC45MSAzNC45MSAwIDAgMS0yOC4zNDYtNDAuNDk1bDM1Ljc3LTIwMS41ODhhMzQuOTEgMzQuOTEgMCAwIDEgNDAuNDAyLTI4LjI3N3oiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",ju=Object.defineProperty,ps=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable,qs=(Ue,he,Pe)=>he in Ue?ju(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Uo=(Ue,he)=>{for(var Pe in he||(he={}))Ki.call(he,Pe)&&qs(Ue,Pe,he[Pe]);if(ps)for(var Pe of ps(he))Ts.call(he,Pe)&&qs(Ue,Pe,he[Pe]);return Ue};const su=Ue=>g.createElement("svg",Uo({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#settings-sliders_svg__a)"},g.createElement("path",{d:"M.833 3.958h2.28a3.107 3.107 0 0 0 5.996 0h10.058a.833.833 0 0 0 0-1.667H9.109a3.107 3.107 0 0 0-5.996 0H.833a.833.833 0 0 0 0 1.667Zm5.278-2.292a1.458 1.458 0 1 1 0 2.917 1.458 1.458 0 0 1 0-2.917ZM19.167 9.167h-2.28a3.106 3.106 0 0 0-5.995 0H.833a.833.833 0 0 0 0 1.666h10.059a3.105 3.105 0 0 0 5.995 0h2.28a.833.833 0 0 0 0-1.666Zm-5.278 2.291a1.458 1.458 0 1 1 0-2.915 1.458 1.458 0 0 1 0 2.915ZM19.167 16.042H9.109a3.107 3.107 0 0 0-5.996 0H.833a.833.833 0 1 0 0 1.666h2.28a3.107 3.107 0 0 0 5.996 0h10.058a.833.833 0 0 0 0-1.666ZM6.11 18.333a1.458 1.458 0 1 1 0-2.915 1.458 1.458 0 0 1 0 2.915Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"settings-sliders_svg__a"},g.createElement("path",{d:"M0 0h20v20H0z"}))));var cs="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNLjgzMyAzLjk1OGgyLjI4YTMuMTA3IDMuMTA3IDAgMCAwIDUuOTk2IDBoMTAuMDU4YS44MzMuODMzIDAgMCAwIDAtMS42NjdIOS4xMDlhMy4xMDcgMy4xMDcgMCAwIDAtNS45OTYgMEguODMzYS44MzMuODMzIDAgMCAwIDAgMS42NjdabTUuMjc4LTIuMjkyYTEuNDU4IDEuNDU4IDAgMSAxIDAgMi45MTcgMS40NTggMS40NTggMCAwIDEgMC0yLjkxN1pNMTkuMTY3IDkuMTY3aC0yLjI4YTMuMTA2IDMuMTA2IDAgMCAwLTUuOTk1IDBILjgzM2EuODMzLjgzMyAwIDAgMCAwIDEuNjY2aDEwLjA1OWEzLjEwNSAzLjEwNSAwIDAgMCA1Ljk5NSAwaDIuMjhhLjgzMy44MzMgMCAwIDAgMC0xLjY2NlptLTUuMjc4IDIuMjkxYTEuNDU4IDEuNDU4IDAgMSAxIDAtMi45MTUgMS40NTggMS40NTggMCAwIDEgMCAyLjkxNVpNMTkuMTY3IDE2LjA0Mkg5LjEwOWEzLjEwNyAzLjEwNyAwIDAgMC01Ljk5NiAwSC44MzNhLjgzMy44MzMgMCAxIDAgMCAxLjY2NmgyLjI4YTMuMTA3IDMuMTA3IDAgMCAwIDUuOTk2IDBoMTAuMDU4YS44MzMuODMzIDAgMCAwIDAtMS42NjZaTTYuMTEgMTguMzMzYTEuNDU4IDEuNDU4IDAgMSAxIDAtMi45MTUgMS40NTggMS40NTggMCAwIDEgMCAyLjkxNVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",rc=(0,g.memo)(function(Ue){var he=Ue.displayOption,Pe=Ue.onChangeImageDisplayOpts,Un=Ue.onChangeAnnotsDisplayOpts,vt=(0,F.bU)(),zn=vt.localeText,En=(0,g.useMemo)(function(){return(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container",children:[(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-header",children:[(0,x.jsx)("div",{children:zn("DDSAnnotator.imgDisplayTool.title")}),(0,x.jsx)(C.ZP,{type:"primary",className:"dds-annotator-display-pop-container-btn",icon:(0,x.jsx)(H.Z,{component:yu}),onClick:function(){return Pe(W.O4)}})]}),(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-option",children:[(0,x.jsx)("label",{children:zn("DDSAnnotator.imgDisplayTool.brightness")}),(0,x.jsx)(Yn.Z,{value:he.brightness,onChange:function(Fn){return Pe(t()(t()({},he),{},{brightness:Fn}))},min:0,max:200})]}),(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-option",children:[(0,x.jsx)("label",{children:zn("DDSAnnotator.imgDisplayTool.contrast")}),(0,x.jsx)(Yn.Z,{value:he.contrast,onChange:function(Fn){return Pe(t()(t()({},he),{},{contrast:Fn}))},min:0,max:200})]}),(0,x.jsxs)("div",{className:"dds-annotator-display-pop-container-option",children:[(0,x.jsx)("label",{children:zn("DDSAnnotator.imgDisplayTool.saturate")}),(0,x.jsx)(Yn.Z,{value:he.saturate,onChange:function(Fn){return Pe(t()(t()({},he),{},{saturate:Fn}))},min:0,max:200})]})]})},[he.brightness,he.contrast,he.saturate,Pe,Un]);return(0,x.jsx)(gn.Z,{placement:"top",content:En,trigger:"click",overlayClassName:"dds-annotator-display-popover",color:"#212121",children:(0,x.jsx)(L.Z,{title:zn("DDSAnnotator.imgDisplayTool.title"),children:(0,x.jsx)(H.Z,{component:su,className:"dds-annotator-display"})})})}),el=rc,pl=Object.defineProperty,Ls=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,bu=(Ue,he,Pe)=>he in Ue?pl(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Pu=(Ue,he)=>{for(var Pe in he||(he={}))fi.call(he,Pe)&&bu(Ue,Pe,he[Pe]);if(Ls)for(var Pe of Ls(he))Es.call(he,Pe)&&bu(Ue,Pe,he[Pe]);return Ue};const hl=Ue=>g.createElement("svg",Pu({viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("g",{clipPath:"url(#label_svg__a)"},g.createElement("path",{d:"M13.5 27C20.956 27 27 20.956 27 13.5S20.956 0 13.5 0 0 6.044 0 13.5 6.044 27 13.5 27Z",fill:"#26A1F4"}),g.createElement("path",{d:"m18.201 12.527-.007-.008-3.721-3.723s-4.535 4.535-6.72 6.765c-.273.278-.479.664-.601 1.037-.359 1.097-.656 2.215-.986 3.322-.088.297-.07.559.162.78.22.211.466.219.751.133 1.055-.316 2.116-.617 3.176-.92a3.243 3.243 0 0 0 1.432-.865c2.082-2.095 6.514-6.521 6.514-6.521ZM20.373 7.9l-1.272-1.272a1.74 1.74 0 0 0-2.46 0l-1.442 1.44 3.733 3.734 1.442-1.442a1.74 1.74 0 0 0 0-2.46Z",fill:"#fff"})),g.createElement("defs",null,g.createElement("clipPath",{id:"label_svg__a"},g.createElement("path",{fill:"#fff",d:"M0 0h27v27H0z"}))));var Wu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjcgMjciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJNMTMuNSAyN0MyMC45NTYgMjcgMjcgMjAuOTU2IDI3IDEzLjVTMjAuOTU2IDAgMTMuNSAwIDAgNi4wNDQgMCAxMy41IDYuMDQ0IDI3IDEzLjUgMjdaIiBmaWxsPSIjMjZBMUY0Ii8+PHBhdGggZD0ibTE4LjIwMSAxMi41MjctLjAwNy0uMDA4LTMuNzIxLTMuNzIzcy00LjUzNSA0LjUzNS02LjcyIDYuNzY1Yy0uMjczLjI3OC0uNDc5LjY2NC0uNjAxIDEuMDM3LS4zNTkgMS4wOTctLjY1NiAyLjIxNS0uOTg2IDMuMzIyLS4wODguMjk3LS4wNy41NTkuMTYyLjc4LjIyLjIxMS40NjYuMjE5Ljc1MS4xMzMgMS4wNTUtLjMxNiAyLjExNi0uNjE3IDMuMTc2LS45MmEzLjI0MyAzLjI0MyAwIDAgMCAxLjQzMi0uODY1YzIuMDgyLTIuMDk1IDYuNTE0LTYuNTIxIDYuNTE0LTYuNTIxWk0yMC4zNzMgNy45bC0xLjI3Mi0xLjI3MmExLjc0IDEuNzQgMCAwIDAtMi40NiAwbC0xLjQ0MiAxLjQ0IDMuNzMzIDMuNzM0IDEuNDQyLTEuNDQyYTEuNzQgMS43NCAwIDAgMCAwLTIuNDZaIiBmaWxsPSIjZmZmIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgyN3YyN0gweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==",Tu=Object.defineProperty,Zl=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable,Xo=(Ue,he,Pe)=>he in Ue?Tu(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,B=(Ue,he)=>{for(var Pe in he||(he={}))Tl.call(he,Pe)&&Xo(Ue,Pe,he[Pe]);if(Zl)for(var Pe of Zl(he))Ul.call(he,Pe)&&Xo(Ue,Pe,he[Pe]);return Ue};const ve=Ue=>g.createElement("svg",B({viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M13.5 27C20.956 27 27 20.956 27 13.5S20.956 0 13.5 0 0 6.044 0 13.5 6.044 27 13.5 27Z",fill:"#FFD305"}),g.createElement("path",{d:"m20.713 19.26-.369-.37-.063-.064-1.493 1.493.036.036.396.396c.254.254.791.125 1.207-.287.415-.412.54-.952.286-1.204ZM16.709 15.31a5.797 5.797 0 1 0-1.515 1.47l3.229 3.181 1.493-1.492-3.207-3.16Zm-4.655.717a4.092 4.092 0 1 1 0-8.184 4.092 4.092 0 0 1 0 8.184Z",fill:"#fff"}));var Ze="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjcgMjciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjUgMjdDMjAuOTU2IDI3IDI3IDIwLjk1NiAyNyAxMy41UzIwLjk1NiAwIDEzLjUgMCAwIDYuMDQ0IDAgMTMuNSA2LjA0NCAyNyAxMy41IDI3WiIgZmlsbD0iI0ZGRDMwNSIvPjxwYXRoIGQ9Im0yMC43MTMgMTkuMjYtLjM2OS0uMzctLjA2My0uMDY0LTEuNDkzIDEuNDkzLjAzNi4wMzYuMzk2LjM5NmMuMjU0LjI1NC43OTEuMTI1IDEuMjA3LS4yODcuNDE1LS40MTIuNTQtLjk1Mi4yODYtMS4yMDRaTTE2LjcwOSAxNS4zMWE1Ljc5NyA1Ljc5NyAwIDEgMC0xLjUxNSAxLjQ3bDMuMjI5IDMuMTgxIDEuNDkzLTEuNDkyLTMuMjA3LTMuMTZabS00LjY1NS43MTdhNC4wOTIgNC4wOTIgMCAxIDEgMC04LjE4NCA0LjA5MiA0LjA5MiAwIDAgMSAwIDguMTg0WiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",ot=(0,g.memo)(function(Ue){var he=Ue.mode,Pe=(0,F.bU)(),Un=Pe.localeText;return he===W.je.View?null:(0,x.jsx)("div",{className:c()("dds-annotator-editor-status","dds-annotator-editor-status-".concat(he)),children:he===W.je.Edit?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(hl,{}),Un("DDSAnnotator.status.labeling")]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ve,{}),Un("DDSAnnotator.status.reviewing")]})})}),Lt=ot,Nn=e(12673),Fr=e(51244),oo=(0,g.memo)(function(Ue){var he=Ue.onAdd,Pe=(0,F.bU)(),Un=Pe.localeText,vt=(0,g.useRef)(null),zn=(0,g.useState)(""),En=s()(zn,2),On=En[0],Fn=En[1],mr=function(jn){jn.stopPropagation(),Fn(jn.target.value)},fr=function(){var jn;On!==""&&(he(On),Fn(""),(jn=vt.current)===null||jn===void 0||jn.focus())};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Fr.Z,{style:{margin:"8px 0"}}),(0,x.jsxs)(Zn.Z,{style:{padding:"0 8px 4px"},children:[(0,x.jsx)(T.Z,{placeholder:Un("DDSAnnotator.annotsEditor.addCategory"),ref:vt,value:On,onChange:mr,onKeyDown:function(jn){jn.code==="Enter"&&fr(),jn.stopPropagation()}}),(0,x.jsx)(C.ZP,{type:"text",icon:(0,x.jsx)(Nn.Z,{}),onClick:fr,children:Un("DDSAnnotator.annotsEditor.add")})]})]})}),jo=oo,li=(0,g.memo)(function(Ue){var he,Pe=Ue.drawData,Un=Ue.latestLabelId,vt=Ue.isSeperate,zn=Ue.labelOptions,En=Ue.labelColors,On=Ue.onChangeObjectLabel,Fn=Ue.onCreateCategory,mr=(0,F.bU)(),fr=mr.localeText,or=(0,g.useMemo)(function(){if(zn.length>0){var jn,ua=(jn=zn[0])===null||jn===void 0?void 0:jn.labelType,Or=ua&&Q.t[ua],ar=Q.Zo[Or];if(ar)return Q.ef[ar]}},[zn]);return(0,x.jsx)("div",{className:"dds-annotator-label-selector",children:(0,x.jsx)(zt.Z,{showSearch:!0,placeholder:fr("DDSAnnotator.label.select"),size:"middle",value:((he=Pe.objectList[Pe.activeObjectIndex])===null||he===void 0?void 0:he.labelId)||Un,onChange:On,popupClassName:"objects-select-popup",onClick:function(ua){return ua.stopPropagation()},onKeyUp:function(ua){return ua.stopPropagation()},onInputKeyDown:function(ua){ua.code!=="Enter"&&ua.stopPropagation()},filterOption:function(ua,Or){var ar,hr,Pr,aa=(Or==null||(ar=Or.children)===null||ar===void 0?void 0:ar[((Or==null||(hr=Or.children)===null||hr===void 0?void 0:hr.length)||0)-1])||"";return(Pr=aa.toLowerCase())===null||Pr===void 0?void 0:Pr.includes(ua.toLowerCase())},dropdownRender:function(ua){return(0,x.jsxs)(x.Fragment,{children:[ua,vt&&(0,x.jsx)(jo,{onAdd:Fn})]})},children:zn==null?void 0:zn.map(function(jn){return(0,x.jsxs)(zt.Z.Option,{value:jn.id,className:"dds-annotator-label-selector-option",children:[or?(0,x.jsx)(or,{color:jn.renderColor,fill:jn.renderColor}):(0,x.jsx)("div",{className:"dds-annotator-label-selector-option-color",style:{backgroundColor:En==null?void 0:En[jn.id]}}),jn.name]},jn.id)})})})}),Yi=li,tl=(0,g.memo)(function(Ue){var he=Ue.selectedTool,Pe=Ue.selectedModel,Un=Ue.modelOptions,vt=Ue.onSelectModel,zn=(0,F.bU)(),En=zn.localeText,On=Q.Zo[he];return(0,x.jsx)("div",{className:"dds-annotator-model-selector",children:(0,x.jsx)(zt.Z,{placeholder:En("DDSAnnotator.label.select"),size:"middle",value:Pe,onChange:vt,popupClassName:"objects-select-popup",onClick:function(mr){return mr.stopPropagation()},onKeyUp:function(mr){return mr.stopPropagation()},onInputKeyDown:function(mr){mr.code!=="Enter"&&mr.stopPropagation()},children:Un==null?void 0:Un.map(function(Fn,mr){return(0,x.jsxs)(zt.Z.Option,{value:Fn,className:"dds-annotator-model-selector-option",children:[(0,x.jsx)(H.Z,{component:Q.VC[On]}),Q.TR[Fn]&&En(Q.TR[Fn].name)]},mr)})})})}),yl=tl,ac=(0,g.memo)(function(Ue){var he,Pe=Ue.toolOptions,Un=Ue.selectedSubTool,vt=Ue.isAIAnnotationActive,zn=Ue.brushSize,En=Ue.onChangeSubTool,On=Ue.onChangeBrushSize,Fn=(0,g.useMemo)(function(){return[].concat(Qt()(Pe.basicTools),Qt()(Pe.smartTools))},[Pe.basicTools,Pe.smartTools]),mr=(0,g.useMemo)(function(){for(var Or=[],ar=1;ar<=Fn.length;ar++)Or.push(ar.toString());return Or},[Fn]);(0,Ee.Z)(mr,function(Or){var ar=Fn.find(function(hr,Pr){return(Pr+1).toString()===Or.key});if(ar&&ar.available){if(Pe.smartTools.find(function(hr){return ar.key===hr.key})&&!vt)return;En(ar.key)}},{exactMatch:!0});var fr=function(ar){var hr=Fn.find(function(Pr){return Pr.key===Un});ar.type==="mouseup"&&(hr!=null&&hr.withSize||hr!=null&&hr.withCustomElement)||ar.stopPropagation()},or=function(ar){var hr=Fn.findIndex(function(Pr){return Pr.key===ar.key})+1;return(0,x.jsxs)("div",{className:"dds-annotator-subtoolbar-popover",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("span",{className:"dds-annotator-subtoolbar-popover-title",children:ar.name}),hr&&(0,x.jsx)("span",{className:"dds-annotator-subtoolbar-popover-key",children:hr})]}),ar.description&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-popover-divider"}),(0,x.jsx)("div",{children:ar.description})]})]})},jn=function(ar){var hr=Fn.find(function(Pr){return Pr.key===ar});hr&&hr.available&&En(ar)},ua=function(ar){return(0,x.jsx)(gn.Z,{placement:"bottom",content:or(ar),children:(0,x.jsx)(C.ZP,{className:c()("dds-annotator-subtoolbar-btn",{"dds-annotator-subtoolbar-btn-active":Un===ar.key&&ar.available,"dds-annotator-subtoolbar-btn-limited":ar.available}),style:{cursor:ar.available?"pointer":"not-allowed"},icon:ar.icon,onClick:function(){return jn(ar.key)}})},ar.key)};return(0,x.jsx)(A,{eventHandler:fr,children:(0,x.jsxs)("div",{className:"dds-annotator-subtoolbar",children:[Pe.basicTools.map(function(Or){return ua(Or)}),vt&&(0,x.jsxs)(x.Fragment,{children:[Pe.basicTools.length>0&&Pe.smartTools.length>0&&(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),Pe.smartTools.map(function(Or){return ua(Or)})]}),Pe.customElement&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),Pe.customElement]}),!!((he=Fn.find(function(Or){return Or.key===Un}))!==null&&he!==void 0&&he.withSize)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-title",children:"Brush Size"}),(0,x.jsx)("div",{className:"dds-annotator-subtoolbar-slider",children:(0,x.jsx)(Yn.Z,{defaultValue:20,min:1,max:100,value:zn,onChange:function(ar){return On(ar)}})})]})]})})}),Ii=ac,oc=function(he){var Pe=he.className,Un=Pe===void 0?"":Pe,vt=he.children,zn=he.leftTools,En=zn===void 0?[]:zn,On=he.rightTools,Fn=On===void 0?[]:On,mr=function(or){return or.map(function(jn,ua){var Or=jn.title,ar=jn.icon,hr=jn.onClick,Pr=jn.disabled,aa=jn.splitLine,Jn=jn.customElement;return(0,x.jsxs)(g.Fragment,{children:[Jn||(0,x.jsx)(L.Z,{title:Or,children:(0,x.jsx)("div",{className:c()("dds-annnotator-toptools-row-icon",{"dds-annnotator-toptools-row-icon-disabled":!!Pr}),onClick:hr,children:ar})}),aa&&(0,x.jsx)("div",{className:"dds-annnotator-toptools-row-split"})]},ua)})};return(0,x.jsxs)("div",{className:c()("dds-annnotator-toptools",Un),onMouseDown:function(or){or.stopPropagation()},children:[(0,x.jsx)("div",{className:"dds-annnotator-toptools-row",children:mr(En)}),(0,x.jsx)("div",{className:"dds-annnotator-toptools-progress",children:vt}),(0,x.jsx)("div",{className:"dds-annnotator-toptools-row",children:mr(Fn)})]})},wc=oc,ic=function(he){var Pe=he.isOldMode,Un=he.isSeperate,vt=he.mode,zn=he.fileName,En=he.drawData,On=he.editState,Fn=he.hideTopBarActions,mr=he.titleElements,fr=he.actionElements,or=he.enableReviewerModify,jn=he.labelOptions,ua=he.labelColors,Or=he.showSubTools,ar=he.currSubTools,hr=he.topBarCenterElement,Pr=he.selectSubTool,aa=he.setBrushSize,Jn=he.activeAIAnnotation,fa=he.onChangeImageDisplayOpts,Qr=he.onChangeAnnotsDisplayOpts,$r=he.onChangeObjectLabel,lr=he.onCreateCategory,Ir=he.onSaveAnnotations,Vr=he.onCommitAnnotations,Ar=he.onRejectAnnotations,Y=he.onAcceptAnnotations,z=he.onModifyAnnotations,ue=he.onCancelAnnotations,Ce=he.onSelectModel,Re=(0,F.bU)(),rt=Re.localeText,Mt=function(){window.open("https://docs.deepdataspace.com")},Dt=(0,g.useMemo)(function(){var fn=fr?fr.map(function(hn){return{customElement:hn}}):[];return Fn||(vt===W.je.Review&&fn.push.apply(fn,[{customElement:(0,x.jsx)(C.ZP,{type:"primary",danger:!0,onClick:Ar,children:rt("DDSAnnotator.reject")})}].concat(Qt()(Pe||!or?[]:[{customElement:(0,x.jsx)(C.ZP,{type:"default",onClick:z,children:rt("DDSAnnotator.modify")})}]),[{customElement:(0,x.jsx)(C.ZP,{type:"primary",onClick:Y,children:rt("DDSAnnotator.approve")})}])),vt===W.je.Edit&&!Un&&(fn.push({customElement:(0,x.jsx)(C.ZP,{type:"default",onClick:Ir,children:rt("DDSAnnotator.save")})}),Pe||fn.push({customElement:(0,x.jsx)(C.ZP,{type:"primary",onClick:Vr,children:rt("DDSAnnotator.commit")})})),fn.unshift({customElement:(0,x.jsxs)(x.Fragment,{children:[vt===W.je.Edit&&(0,x.jsxs)("div",{className:"dds-annotator-qk-actions",children:[(0,x.jsx)(L.Z,{title:rt("DDSAnnotator.docs"),children:(0,x.jsx)(H.Z,{component:ms,onClick:Mt})}),(0,x.jsx)(el,{displayOption:On.imageDisplayOptions,colorByCategory:On.annotsDisplayOptions.colorByCategory,onChangeImageDisplayOpts:fa,onChangeAnnotsDisplayOpts:Qr})]}),(0,x.jsx)(pr,{mode:vt}),(0,x.jsx)(Lt,{mode:vt})]})}),vt===W.je.Edit&&zn&&fn.unshift({customElement:(0,x.jsx)(x.Fragment,{children:zn})})),fn},[vt,Pe,or,Fn,Ir,Vr,ue,Ar,Y,z]),Vt=function(){var hn=[];return mr?hn.push.apply(hn,Qt()(mr.map(function(bn){return{customElement:bn}}))):(Un||vt===W.je.Edit?hn.push({customElement:(0,x.jsx)(L.Z,{title:rt("DDSAnnotator.exit"),children:(0,x.jsx)(nc,{className:"dds-annotator-logo",onClick:ue})})}):hn.push({title:rt("DDSAnnotator.exit"),icon:(0,x.jsx)(Fo.Z,{}),onClick:function(){return ue()}}),vt!==W.je.Edit&&zn&&hn.push({customElement:zn})),vt===W.je.Edit&&Q.Xn[En.selectedTool]&&Q.Xn[En.selectedTool].length>1&&En.AIAnnotation&&En.selectedModel&&hn.push({customElement:(0,x.jsx)(yl,{selectedTool:En.selectedTool,selectedModel:En.selectedModel[En.selectedTool],modelOptions:Q.Xn[En.selectedTool],onSelectModel:Ce})}),vt===W.je.Edit&&(En.objectList[En.activeObjectIndex]||En.selectedTool!==Q.ru.Drag)&&hn.push({customElement:(0,x.jsx)(Yi,{drawData:En,latestLabelId:On.latestLabelId,isSeperate:Un,labelOptions:jn,labelColors:ua,onChangeObjectLabel:$r,onCreateCategory:lr})}),vt===W.je.Edit&&Or&&hn.push({customElement:(0,x.jsx)(Ii,{toolOptions:ar,selectedSubTool:En.selectedSubTool,isAIAnnotationActive:En.AIAnnotation,brushSize:En.brushSize,onChangeSubTool:Pr,onChangeBrushSize:aa,onActiveAIAnnotation:Jn})}),hn},nn=(0,x.jsx)(wc,{leftTools:Vt(),rightTools:Dt,children:hr});return{topToolsBar:nn}},vc=ic,gc=function(he){var Pe=he.isOldMode,Un=he.clientSize,vt=he.naturalSize,zn=he.categories,En=he.getAnnotColor,On=function(jn){var ua=jn.categoryId,Or=jn.boundingBox,ar=jn.points,hr=jn.lines,Pr=jn.pointNames,aa=jn.pointColors,Jn=jn.segmentation,fa=jn.mask,Qr=jn.alpha,$r=jn.point,lr=jn.polyline,Ir=jn.lineColor,Vr=jn.lineType,Ar=En(ua||""),Y={labelId:ua||"",type:Q.gr.Rectangle,hidden:!1,conf:jn.conf||1,customStyles:jn.customStyles,status:W.TK.Commited,color:Ar};if(Or){var z=(0,qr.cO)(Or,Un);Object.assign(Y,{rect:t()({visible:!0},z)})}if(ar&&ar.length>0&&hr&&hr.length>0&&Pr&&aa){var ue=(0,qr.el)(ar,Pr,aa,vt,Un);Object.assign(Y,{keypoints:{points:ue,lines:hr}})}if(Jn){var Ce=(0,qr.Vh)(Jn,vt,Un),Re={group:Ce,visible:!0};Object.assign(Y,{polygon:Re})}if(fa){var rt=fa.counts||"";Object.assign(Y,{maskRle:rt,maskCanvasElement:(0,yr.ei)(rt,vt,Ar)})}if(Qr){var Mt=new Image;Mt.src=Qr,Object.assign(Y,{alpha:Qr,alphaImageElement:Mt})}if($r&&Object.assign(Y,{point:t()(t()({},(0,qr.YO)($r,vt,Un)),{},{visible:Q.GI.labeledVisible})}),lr&&Vr&&Ir){var Dt=(0,qr.aH)(lr).map(function(nn){return(0,qr.YO)([nn.x,nn.y],vt,Un)}),Vt={group:[Dt],visible:!0,lineType:Vr,color:(0,qr.Yc)(Ir)};Object.assign(Y,{polyline:Vt})}return Y.type=(0,qr.tQ)(Y),Y},Fn=function(jn){var ua,Or=jn.labelId,ar=jn.rect,hr=jn.keypoints,Pr=jn.polygon,aa=jn.maskRle,Jn=jn.point,fa=((ua=zn.find(function(Ar){return Ar.id===Or}))===null||ua===void 0?void 0:ua.name)||"",Qr={categoryId:Or,categoryName:fa};if(ar&&Object.assign(Qr,{boundingBox:(0,qr.kq)(ar,Un)}),hr&&Object.assign(Qr,t()({lines:hr.lines},(0,qr.yn)(hr.points,vt,Un))),Pr){var $r=(0,qr.Vi)(Pr,vt,Un);Object.assign(Qr,{segmentation:$r})}if(aa&&Object.assign(Qr,{mask:{counts:aa,size:[vt.height,vt.width]}}),Jn){var lr=(0,qr.AR)([Jn.x,Jn.y],vt,Un),Ir=lr.x,Vr=lr.y;Object.assign(Qr,{point:[Ir,Vr]})}return Qr},mr=function(jn,ua){var Or,ar=jn.labelId,hr=jn.labelValue,Pr=En(ar),aa=zn.find(function(Ir){return Ir.id===ar}),Jn=(aa==null||(Or=aa.attributes)===null||Or===void 0?void 0:Or.map(function(Ir,Vr){var Ar;return((Ar=jn.attributes)===null||Ar===void 0?void 0:Ar[Vr])||null}))||void 0,fa={labelId:ar,type:Q.gr.Custom,hidden:!1,status:W.TK.Commited,color:Pr,attributes:Jn},Qr=function(Vr,Ar){switch(aa==null?void 0:aa.labelType){case Q.Ze.Rectangle:{var Y=(0,qr.JP)(Ar,vt,Un);Object.assign(Vr,{rect:t()({visible:!0},Y),type:Q.gr.Rectangle});break}case Q.Ze.Polygon:{var z=(0,qr.Uy)(Ar,vt,Un),ue={group:z,visible:!0};Object.assign(Vr,{polygon:ue,type:Q.gr.Polygon});break}case Q.Ze.Skeleton:{var Ce=(0,qr.OX)(Ar,Q.v_.pointNames,Q.v_.pointColors,vt,Un);Object.assign(Vr,{keypoints:{points:Ce,lines:Q.v_.lines},type:Q.gr.Skeleton});break}case Q.Ze.Mask:{var Re=Ar.counts||"";Object.assign(Vr,{maskRle:Re,maskCanvasElement:(0,yr.ei)(Re,vt,Pr),type:Q.gr.Mask});break}case Q.Ze.Classification:{Object.assign(Vr,{labelValue:Ar,type:Q.gr.Classification});break}}return Vr};if(ua&&ua>0){if((aa==null?void 0:aa.labelType)===Q.Ze.Classification)return{classification:Qr(fa,hr)};var $r=new Array(ua).fill(void 0),lr;return Object.keys(hr).forEach(function(Ir){lr=Qr((0,m.cloneDeep)(fa),hr[Ir]),$r[Number(Ir)]=t()(t()({},lr),{},{frameEmpty:!1})}),{objects:$r.map(function(Ir){return Ir||t()(t()({},(0,m.cloneDeep)(lr)),{},{frameEmpty:!0})})}}return Qr(fa,hr)},fr=function(jn){var ua,Or=jn.labelId,ar=jn.rect,hr=jn.keypoints,Pr=jn.polygon,aa=jn.maskRle,Jn=jn.attributes,fa=zn.find(function(Ir){return Ir.id===Or}),Qr={labelId:Or,attributes:Jn||(fa==null||(ua=fa.attributes)===null||ua===void 0?void 0:ua.map(function(){return null}))||[]};switch(fa==null?void 0:fa.labelType){case Q.Ze.Rectangle:{ar&&(Qr.labelValue=(0,qr.cx)(ar,Un,vt));break}case Q.Ze.Polygon:{Pr&&(Qr.labelValue=(0,qr.A_)(Pr,vt,Un));break}case Q.Ze.Skeleton:{if(hr){var $r=(0,qr.$G)(hr.points,vt,Un),lr=$r.points;Qr.labelValue=lr}break}case Q.Ze.Mask:{aa&&(Qr.labelValue={counts:aa,size:[vt.height,vt.width]});break}}return Qr};return{translateAnnotationToObject:On,translateObjectToAnnotation:Fn,translateLabelToObject:mr,translateObjectToLabel:fr,translateObject:Pe?Fn:fr,translateToObject:Pe?On:mr}},ql=gc,Fi=e(87478),go=function(he){var Pe,Un=he.theme,vt=Un===void 0?"dark":Un,zn=he.isOldMode,En=he.isSeperate,On=he.visible,Fn=he.categories,mr=he.list,fr=he.current,or=he.pagination,jn=he.mode,ua=he.enableReviewerModify,Or=he.limitToolTypes,ar=he.titleElements,hr=he.actionElements,Pr=he.layoutOptions,aa=he.displayOptionsResult,Jn=he.manualMode,fa=he.forceColorByObject,Qr=he.limitActiveObject,$r=he.customDefaultDrawData,lr=he.onPrev,Ir=he.onNext,Vr=he.onCancel,Ar=he.onSave,Y=he.onCommit,z=he.onReviewModify,ue=he.onReviewAccept,Ce=he.onReviewReject,Re=he.setCategories,rt=he.onAutoSave,Mt=he.objectsFilter,Dt=n.Z.useModal(),Vt=s()(Dt,2),nn=Vt[0],fn=Vt[1],hn=(0,M.x)([]),bn=s()(hn,2),Yt=bn[0],Ln=bn[1],qn=(0,M.x)((0,m.cloneDeep)(W.rl)),cr=s()(qn,2),Dr=cr[0],Rr=cr[1],Aa=(0,M.x)(t()(t()({},(0,m.cloneDeep)(W.f7)),$r)),xa=s()(Aa,2),pa=xa[0],za=xa[1],ha=(0,g.useRef)(null),Yr=(0,g.useRef)(null),$a=(0,g.useRef)(null),Xa=(0,g.useMemo)(function(){return mr[fr]},[mr,fr]),io=Xa,Go=Ei({categories:Fn,editState:Dr,forceColorByObject:fa}),Oo=Go.getAnnotColor,Ka=Go.labelColors,Za=yi({visible:On,drawData:pa,allowMove:Dr.allowMove,isRequiring:Dr.isRequiring,minPadding:(Pr==null?void 0:Pr.minPadding)||{top:30,left:80},cursorSize:pa.brushSize,hideReferenceLine:!!(Pr!=null&&Pr.hideReferenceLine)}),ui=Za.scale,ai=Za.naturalSize,Ai=Za.clientSize,po=Za.containerMouse,Pi=Za.contentMouse,Oi=Za.imagePos,vi=Za.onLoadImg,Wi=Za.onZoomIn,La=Za.onZoomOut,mi=Za.onReset,hs=Za.CanvasContainer,Hi=Za.isMousePress,ts=ql({isOldMode:zn,clientSize:Ai,naturalSize:ai,categories:Fn,getAnnotColor:Oo}),kl=ts.translateObject,Ru=ts.translateToObject,rl=xo({clientSize:Ai,naturalSize:ai,setDrawData:za,onAutoSave:rt,translateObject:kl}),ys=rl.undo,ds=rl.redo,al=rl.clearHistory,Ti=rl.flagSaved,ns=rl.hadChangeRecord,ti=rl.updateHistory,gi=rl.setDrawDataWithHistory,Qi=_a({setDrawDataWithHistory:gi,categories:Fn}),Eu=Qi.judgeEditingAttribute,ol=Qi.onConfirmAttibuteEdit,Nl=Qi.onCancelAttibuteEdit,il=Pa({mode:jn,categories:Fn,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,setEditState:Rr,translateToObject:Ru,judgeEditingAttribute:Eu,updateHistory:ti}),Ml=il.addObject,Zc=il.removeObject,hc=il.removeAllObjects,yc=il.initObjectList,fd=il.updateAllObject,cu=il.updateObject,bc=il.updateObjectWithoutHistory,td=il.updateAllObjectWithoutHistory,nd=il.commitedObjects,eu=il.currObject,si=Ro({isOldMode:zn,mode:jn,categories:Fn,setCategories:Re,drawData:pa,setDrawData:za,editState:Dr,updateObjectWithoutHistory:bc,updateAllObjectWithoutHistory:td}),xs=si.labelOptions,Is=si.latestLabel,Ns=si.classificationOptions,Wl=si.onChangeObjectHidden,Mc=si.onChangeCategoryHidden,Rs=si.onChangeActiveClass,Uc=si.onCreateCategory,Sc=si.onChangePointVisible,rd=Co({currImageItem:io,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,editState:Dr,setEditState:Rr,naturalSize:ai,clientSize:Ai,getAnnotColor:Oo}),Lc=rd.onAiAnnotation,Nc=Ri({topCanvas:Yr.current,editState:Dr,drawData:pa}),Sl=Nc.updateMouseCursor,As=ii({mode:jn,manualMode:!!Jn,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,editState:Dr,setEditState:Rr,getAnnotColor:Oo,clientSize:Ai,naturalSize:ai,addObject:Ml,updateObject:cu,updateAllObject:fd,onAiAnnotation:Lc}),Rc=As.onChangeObjectLabel,Vu=As.onFinishCurrCreate,kc=As.onAcceptValidObjects,vd=As.onAbortBatchObjects,lc=As.selectTool,ad=As.selectSubTool,uc=As.forceChangeTool,od=As.onExitAIAnnotation,Wc=As.setBrushSize,Rl=As.activeAIAnnotation,id=As.onChangeSkeletonConf,sd=As.onChangeLimitConf,El=As.onChangeAnnotsDisplayOpts,Gu=As.onChangeImageDisplayOpts,du=As.onChangeColorMode,ld=As.onChangePointResolution,gd=As.onSelectModel,Hl=As.isInAiSession,Hc=Da({drawData:pa,onChangePointResolution:ld}),md=Hc.showSubTools,pd=Hc.currSubTools,zd=(0,Fi.Vr)({imgRef:$a,editState:Dr,clientSize:Ai,naturalSize:ai,contentMouse:Pi,imagePos:Oi,containerMouse:po,canvasRef:ha,activeCanvasRef:Yr,setEditState:Rr,drawData:pa,setDrawData:za,setDrawDataWithHistory:gi,updateHistory:ti,updateObject:cu,addObject:Ml,updateMouseCursor:Sl,onAiAnnotation:Lc,getAnnotColor:Oo,categories:Fn,displayOptionsResult:aa}),Ku=zd.objectHooksMap,hd=Ni({visible:On,drawData:pa,editState:Dr,clientSize:Ai,imagePos:Oi,containerMouse:po,canvasRef:ha,activeCanvasRef:Yr,imgRef:$a,objectHooksMap:Ku}),_c=hd.updateRender,Ec=hd.renderPopoverMenu,Yc=ja({visible:On,mode:jn,drawData:pa,setDrawData:za,editState:Dr,setEditState:Rr,clientSize:Ai,contentMouse:Pi,categories:Fn,updateRender:_c,updateMouseCursor:Sl,objectHooksMap:Ku,imagePos:Oi,containerMouse:po,getAnnotColor:Oo,limitActiveObject:Qr}),Cc=Yc.selectFocusObject,Cd=Yc.forceChangeFocusObject,xd=Yc.mouseRightObjectsDropDownRender,cc=Lr({mode:jn,currImageItem:io,modal:nn,drawData:pa,editState:Dr,setEditState:Rr,hadChangeRecord:ns,categories:Fn,translateObject:kl,flagSaved:Ti,onCancel:Vr,onSave:Ar,onCommit:Y,onReviewModify:z,onReviewAccept:ue,onReviewReject:Ce,classificationOptions:Ns,isInAiSession:Hl}),Vc=cc.onSaveAnnotations,Fd=cc.onCommitAnnotations,Bd=cc.onCancelAnnotations,yd=cc.onRejectAnnotations,bd=cc.onAcceptAnnotations,xc=cc.onModifyAnnotations;Yo({visible:On,mode:jn,drawData:pa,categories:Fn,isMousePress:Hi,setDrawData:za,setEditState:Rr,onSaveAnnotations:Vc,onAcceptAnnotations:bd,onRejectAnnotations:yd,onChangeObjectHidden:Wl,onChangeCategoryHidden:Mc,removeObject:Zc,addObject:Ml});var $d=Qo({imagePos:Oi,clientSize:Ai,naturalSize:ai,annotations:Yt,setAnnotations:Ln,drawData:pa,setDrawData:za,editState:Dr,setEditState:Rr,initObjectList:yc,updateRender:_c,clearHistory:al,objectsFilter:Mt,labelOptions:xs,customDefaultDrawData:$r}),zc=$d.resetDataWithImageData;(0,g.useEffect)(function(){return document.body.style.overflow=On?"hidden":"overlay",function(){document.body.style.overflow="overlay"}},[On]),(0,g.useEffect)(function(){zc(io,On)},[On,jn,fr,io==null?void 0:io.id,Mt]),(0,g.useEffect)(function(){du()},[Dr.annotsDisplayOptions.colorByCategory]);var ud=(0,g.useMemo)(function(){if(Xa!=null&&Xa.name)return Xa==null?void 0:Xa.name;if(Xa!=null&&Xa.url&&(Xa==null?void 0:Xa.url.indexOf("http"))===0){var cd=decodeURIComponent(Xa==null?void 0:Xa.url);return cd.replace(/\?.*$/,"").split("/").pop()||""}return""},[Xa]),is=or&&or.show?(0,x.jsx)(Jr,{list:mr,current:fr,total:or.total,customText:or.customText,customDisableNext:or.customDisableNext,onPrev:lr,onNext:Ir}):null,Zd=vc({isOldMode:zn,isSeperate:En,mode:jn,hideTopBarActions:Pr==null?void 0:Pr.hideTopBarActions,fileName:ud,drawData:pa,editState:Dr,titleElements:ar,actionElements:hr,enableReviewerModify:ua,labelOptions:xs,showSubTools:md,currSubTools:pd,topBarCenterElement:is,labelColors:Ka,selectSubTool:ad,setBrushSize:Wc,activeAIAnnotation:Rl,onChangeImageDisplayOpts:Gu,onChangeAnnotsDisplayOpts:El,onChangeObjectLabel:Rc,onCreateCategory:Uc,onSaveAnnotations:Vc,onCommitAnnotations:Fd,onRejectAnnotations:yd,onAcceptAnnotations:bd,onModifyAnnotations:xc,onCancelAnnotations:Bd,onSelectModel:gd}),Id=Zd.topToolsBar;return On?(0,x.jsxs)("div",{className:c()("dds-annotator","dds-annotator-editor","dds-annotator-editor-".concat(vt)),style:{height:(Pr==null?void 0:Pr.wrapHeight)||"100vh"},children:[!(Pr!=null&&Pr.hideTopBar)&&Id,(0,x.jsxs)("div",{className:"editor-container",style:{top:Pr!=null&&Pr.hideTopBar?"0":""},children:[!(Pr!=null&&Pr.hideMainToolBar)&&(0,x.jsx)(Ma,{onlySupportZoom:jn!==W.je.Edit,selectedTool:pa.selectedTool,manualMode:!!Jn,limitToolTypes:Or,isAIAnnotationActive:pa.AIAnnotation,onChangeSelectedTool:lc,onActiveAIAnnotation:Rl,hideUndoRedoActions:Pr==null?void 0:Pr.hideUndoRedoActions,undo:ys,redo:ds,deleteAll:hc,scale:ui,onZoomIn:Wi,onZoomOut:La,onZoomReset:mi}),(0,x.jsxs)("div",{className:"center-content",children:[io&&(0,x.jsx)(d.Z,{dropdownRender:xd,trigger:["contextMenu"],open:Dr.foucsObjectAllIndexs.length>0,children:hs({className:"edit-wrap",children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ne,{url:io==null?void 0:io.url,imgRef:$a,canvasRef:ha,activeCanvasRef:Yr,clientSize:Ai,imagePos:Oi,onLoad:function(Gc){_c(),vi(Gc)}}),Ec()]})})}),(0,x.jsx)(gt,{mode:jn,isAiAnnotation:pa.AIAnnotation,latestLabelId:Dr.latestLabelId,currObject:eu,onFinishCurrCreate:Vu}),(0,x.jsx)(sn,{mode:jn,isAiAnnotation:pa.AIAnnotation,currObject:eu,currObjectIndex:pa.activeObjectIndex,focusObjectIndex:Dr.focusObjectIndex,focusEleType:Dr.focusEleType,focusEleIndex:Dr.focusEleIndex,onChangePointVisible:Sc,setEditState:Rr}),(0,x.jsx)(dn,{selectedTool:pa.selectedTool,selectedSubTool:pa.selectedSubTool,selectedModel:pa.selectedModel[pa.selectedTool],isBatchEditing:pa.isBatchEditing,AIAnnotation:pa.AIAnnotation,hasPolygonPreds:!!((Pe=pa.creatingObject)!==null&&Pe!==void 0&&Pe.polygon),isCtrlPressed:Dr.isCtrlPressed,limitConf:pa.limitConf,naturalSize:ai,latestLabel:Is,forceChangeTool:uc,onAiAnnotation:Lc,onExitAIAnnotation:od,onChangeConfidenceRange:id,onChangeLimitConf:sd,onAcceptValidObjects:kc,onCancelBatchEdit:vd}),(0,x.jsx)(me,{AIAnnotation:pa.AIAnnotation,modelOptions:Q.Xn[pa.selectedTool],selectedModel:pa.selectedModel[pa.selectedTool],onSelectModel:gd,onCloseModal:function(){return za(function(Gc){Gc.AIAnnotation=!1})}}),pa.editingAttribute&&(0,x.jsx)(fe,{data:pa.editingAttribute,supportEdit:jn===W.je.Edit,onConfirmAttibuteEdit:ol,onCancelAttibuteEdit:Nl})]}),!(Pr!=null&&Pr.hideRightList)&&(0,x.jsxs)("div",{className:"right-slider",children:[Ns.length>0&&(0,x.jsx)(Je,{className:"classifications",supportEdit:jn===W.je.Edit,classificationOptions:Ns,values:pa.classifications,setDrawDataWithHistory:gi}),(0,x.jsx)(qe,{supportEdit:jn===W.je.Edit,className:"object-list",objects:nd,categories:Fn,activeObjectIndex:pa.activeObjectIndex,activeClassName:pa.activeClassName,onFocusObject:Cd,onActiveObject:Cc,onChangeObjectHidden:Wl,onChangeCategoryHidden:Mc,onDeleteObject:Zc,onChangeActiveClassName:Rs,setDrawDataWithHistory:gi,colorByCategory:Dr.annotsDisplayOptions.colorByCategory,onChangeAnnotsDisplayOpts:El})]})]}),(0,x.jsx)("div",{onMouseDown:function(Gc){Gc.stopPropagation()},children:fn})]}):null},Cs=go,mc=e(16962),Mu=e.n(mc),Hu=Object.defineProperty,ed=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,jc=(Ue,he,Pe)=>he in Ue?Hu(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,Lu=(Ue,he)=>{for(var Pe in he||(he={}))Ws.call(he,Pe)&&jc(Ue,Pe,he[Pe]);if(ed)for(var Pe of ed(he))Hs.call(he,Pe)&&jc(Ue,Pe,he[Pe]);return Ue};const Ll=Ue=>g.createElement("svg",Lu({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"m8.379 7.648-4.56-5.825a.283.283 0 0 0-.224-.11h-1.38a.142.142 0 0 0-.113.231L6.842 8l-4.74 6.055a.143.143 0 0 0 .112.23h1.38a.289.289 0 0 0 .226-.109l4.559-5.823a.571.571 0 0 0 0-.705Zm5.428 0L9.248 1.823a.283.283 0 0 0-.225-.11h-1.38a.142.142 0 0 0-.112.231L12.27 8l-4.74 6.055a.143.143 0 0 0 .113.23h1.38a.289.289 0 0 0 .225-.109l4.56-5.823a.571.571 0 0 0 0-.705Z",fill:"#fff",opacity:.85}));var bl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTguMzc5IDcuNjQ4LTQuNTYtNS44MjVhLjI4My4yODMgMCAwIDAtLjIyNC0uMTFoLTEuMzhhLjE0Mi4xNDIgMCAwIDAtLjExMy4yMzFMNi44NDIgOGwtNC43NCA2LjA1NWEuMTQzLjE0MyAwIDAgMCAuMTEyLjIzaDEuMzhhLjI4OS4yODkgMCAwIDAgLjIyNi0uMTA5bDQuNTU5LTUuODIzYS41NzEuNTcxIDAgMCAwIDAtLjcwNVptNS40MjggMEw5LjI0OCAxLjgyM2EuMjgzLjI4MyAwIDAgMC0uMjI1LS4xMWgtMS4zOGEuMTQyLjE0MiAwIDAgMC0uMTEyLjIzMUwxMi4yNyA4bC00Ljc0IDYuMDU1YS4xNDMuMTQzIDAgMCAwIC4xMTMuMjNoMS4zOGEuMjg5LjI4OSAwIDAgMCAuMjI1LS4xMDlsNC41Ni01LjgyM2EuNTcxLjU3MSAwIDAgMCAwLS43MDVaIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIuODUiLz48L3N2Zz4=",sc=Object.defineProperty,_s=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable,Tc=(Ue,he,Pe)=>he in Ue?sc(Ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ue[he]=Pe,_u=(Ue,he)=>{for(var Pe in he||(he={}))lu.call(he,Pe)&&Tc(Ue,Pe,he[Pe]);if(_s)for(var Pe of _s(he))Pc.call(he,Pe)&&Tc(Ue,Pe,he[Pe]);return Ue};const Bc=Ue=>g.createElement("svg",_u({viewBox:"0 0 14 14",fill:"#595959",xmlns:"http://www.w3.org/2000/svg"},Ue),g.createElement("path",{d:"M6.887 9.657a.143.143 0 0 0 .225 0l2-2.53A.142.142 0 0 0 9 6.897H7.677V.854A.143.143 0 0 0 7.534.71H6.462a.143.143 0 0 0-.143.143v6.041H5a.142.142 0 0 0-.112.23l2 2.532Zm6.649-.625h-1.072a.143.143 0 0 0-.143.143v2.75H1.678v-2.75a.143.143 0 0 0-.142-.143H.464a.143.143 0 0 0-.143.143v3.536a.57.57 0 0 0 .572.572h12.214a.57.57 0 0 0 .571-.572V9.175a.143.143 0 0 0-.142-.143Z"}));var Yu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQgMTQiIGZpbGw9IiM1OTU5NTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuODg3IDkuNjU3YS4xNDMuMTQzIDAgMCAwIC4yMjUgMGwyLTIuNTNBLjE0Mi4xNDIgMCAwIDAgOSA2Ljg5N0g3LjY3N1YuODU0QS4xNDMuMTQzIDAgMCAwIDcuNTM0LjcxSDYuNDYyYS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjYuMDQxSDVhLjE0Mi4xNDIgMCAwIDAtLjExMi4yM2wyIDIuNTMyWm02LjY0OS0uNjI1aC0xLjA3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YyLjc1SDEuNjc4di0yLjc1YS4xNDMuMTQzIDAgMCAwLS4xNDItLjE0M0guNDY0YS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjMuNTM2YS41Ny41NyAwIDAgMCAuNTcyLjU3MmgxMi4yMTRhLjU3LjU3IDAgMCAwIC41NzEtLjU3MlY5LjE3NWEuMTQzLjE0MyAwIDAgMC0uMTQyLS4xNDNaIi8+PC9zdmc+",$c=function(he){var Pe=he.text,Un=he.highlights,vt=he.onHoverHighlightWord,zn=he.onLeaveHighlightWord,En=(0,g.useMemo)(function(){var On=[],Fn=new RegExp(Un.map(function(or){return"\\b(".concat((0,m.escapeRegExp)(or.text),")\\b")}).join("|"),"g"),mr=Array.from(Pe.matchAll(Fn)),fr=0;return mr.forEach(function(or){var jn,ua=or[0],Or=(jn=or.index)!==null&&jn!==void 0?jn:0;Or>fr&&On.push(Pe.substring(fr,Or));var ar=Un.find(function(hr){return hr.text===ua});ar&&On.push((0,x.jsx)(R.Z,{color:ar.color,bordered:!1,onMouseEnter:function(){return vt(ua)},onMouseLeave:zn,children:ua},"".concat(Or,"-").concat(ua))),fr=Or+ua.length}),fr-1&&Ar.objectList[$r.focusObjectIndex]&&!((ns=Ar.objectList[$r.focusObjectIndex])!==null&&ns!==void 0&&ns.hidden)&&$r.focusEleIndex>-1&&$r.focusEleType===Q.Yq.Circle){var ti,gi,Qi,Eu=(ti=Ar.objectList[$r.focusObjectIndex])===null||ti===void 0||(gi=ti.keypoints)===null||gi===void 0||(Qi=gi.points)===null||Qi===void 0?void 0:Qi[$r.focusEleIndex];if(Eu)return(0,x.jsx)(_o,{index:$r.focusEleIndex,targetElement:Eu,imagePos:fn.current})}return(0,x.jsx)(x.Fragment,{})};if(!zn)return(0,x.jsx)(x.Fragment,{});var ys=function(){var ns=jn?jn(On[Fn]):On[Fn].objects;return En.filter(function(ti){return ns.find(function(gi){return gi.categoryId===ti.id})}).map(function(ti){return{text:ti.name,color:cr(ti.id)}})},ds=function(ns){Y(function(ti){var gi=En.find(function(Qi){return Qi.name===ns});ti.highlightCategory=gi})},al=function(){Y(function(ns){ns.highlightCategory=void 0})};return(0,x.jsxs)("div",{className:"dds-annotator dds-annotator-preview",children:[(0,x.jsx)(wc,{className:"top-tools",leftTools:[{icon:(0,x.jsx)(yn.Z,{}),onClick:bn,disabled:rt>=Q.Fv},{icon:(0,x.jsx)(tn.Z,{}),onClick:Yt,disabled:rt<=Q.vL},{icon:(0,x.jsx)(Bc,{}),onClick:Ru},{icon:mi?(0,x.jsx)(ge.Z,{}):(0,x.jsx)(pe.Z,{}),onClick:kl,disabled:!Hi||!Hi.caption,title:ar(mi?"dataset.detail.hideGrounding":"dataset.detail.showGrounding")}],rightTools:[{icon:(0,x.jsx)(h.Z,{}),onClick:or}],children:"".concat(Fn+1," / ").concat(On.length)}),Ln({className:"edit-wrap",children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ne,{url:(Un=On[Fn])===null||Un===void 0?void 0:Un.url,imgRef:Ce,canvasRef:z,activeCanvasRef:ue,clientSize:Dt,imagePos:fn,onLoad:hn}),rl()]})}),(0,x.jsx)("div",{className:c()("switch","switch-left",{"switch-disable":Fn===0}),onClick:mr,children:(0,x.jsx)(Hr.Z,{})}),(0,x.jsx)("div",{className:c()("switch","switch-right",{"switch-disable":Fn===On.length-1}),onClick:fr,children:(0,x.jsx)(Oa.Z,{})}),Oi&&Hi&&(0,x.jsxs)("div",{className:"info-wrap",children:[(0,x.jsx)("div",{className:"info-box",children:Object.keys(Hi).map(function(Ti){return(0,x.jsxs)("div",{className:"item",children:[Ti,(0,x.jsx)("br",{}),Mu()(Hi[Ti])==="object"?JSON.stringify(Hi[Ti]):Hi[Ti]]},Ti)})}),(0,x.jsx)("div",{className:"bottom-mask"}),(0,x.jsx)("div",{className:"hide-info-btn",onClick:ts,children:(0,x.jsx)(Ll,{})})]}),!Oi&&(0,x.jsx)("div",{className:"show-info-btn",onClick:ts,children:(0,x.jsx)(Ll,{})}),mi&&!!(Hi!=null&&Hi.caption)&&(0,x.jsx)("div",{className:"dds-annotator-grounding-preview",children:(0,x.jsx)(pc,{text:Hi.caption,highlights:ys(),onHoverHighlightWord:function(ns){return ds(ns)},onLeaveHighlightWord:al})})]})},Su=uu,Nu=function(he){var Pe=he.isOldMode,Un=he.categories,vt=he.data,zn=he.currentSize,En=he.wrapWidth,On=he.wrapHeight,Fn=he.minHeight,mr=he.objectsFilter,fr=he.displayOptionsResult,or=(0,M.x)([]),jn=s()(or,2),ua=jn[0],Or=jn[1],ar=(0,M.x)((0,m.cloneDeep)(W.rl)),hr=s()(ar,2),Pr=hr[0],aa=hr[1],Jn=(0,M.x)((0,m.cloneDeep)(W.f7)),fa=s()(Jn,2),Qr=fa[0],$r=fa[1],lr=(0,g.useRef)(null),Ir=(0,g.useRef)(null),Vr=(0,g.useRef)(null),Ar=(0,g.useRef)({x:0,y:0}),Y=(0,g.useState)({width:0,height:Fn||0}),z=s()(Y,2),ue=z[0],Ce=z[1],Re=(0,g.useMemo)(function(){if(zn)return zn;if(!ue.width)return{width:En||0,height:On||Fn||0};var Ka=(0,qr.t9)(ue.width,ue.height,En,On),Za=s()(Ka,2),ui=Za[0],ai=Za[1];return{width:ui,height:ai}},[En,On,Fn,ue,zn]),rt=(0,g.useMemo)(function(){var Ka={screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,elementX:0,elementY:0,elementPosX:0,elementPosY:0,elementW:Re.width,elementH:Re.height};return[Ka,Ka]},[Re]),Mt=s()(rt,2),Dt=Mt[0],Vt=Mt[1],nn=Ei({categories:Un,editState:Pr}),fn=nn.getAnnotColor,hn=ql({isOldMode:Pe,clientSize:Re,naturalSize:ue,categories:Un,getAnnotColor:fn}),bn=hn.translateToObject,Yt=xo({clientSize:Re,naturalSize:ue,setDrawData:$r}),Ln=Yt.clearHistory,qn=Yt.updateHistory,cr=Yt.setDrawDataWithHistory,Dr=Pa({mode:W.je.View,categories:Un,drawData:Qr,setDrawData:$r,setDrawDataWithHistory:cr,setEditState:aa,translateToObject:bn,updateHistory:qn}),Rr=Dr.addObject,Aa=Dr.initObjectList,xa=Dr.updateObject,pa=Ri({topCanvas:Ir.current,editState:Pr,drawData:Qr}),za=pa.updateMouseCursor,ha=(0,Fi.Vr)({imgRef:Vr,editState:Pr,clientSize:Re,naturalSize:ue,contentMouse:Dt,containerMouse:Vt,imagePos:Ar,canvasRef:lr,activeCanvasRef:Ir,setEditState:aa,drawData:Qr,setDrawData:$r,setDrawDataWithHistory:cr,updateHistory:qn,updateObject:xa,addObject:Rr,updateMouseCursor:za,displayOptionsResult:fr,getAnnotColor:fn,categories:Un}),Yr=ha.objectHooksMap,$a=Ni({visible:!0,drawData:Qr,editState:Pr,clientSize:Re,imagePos:Ar,containerMouse:Vt,canvasRef:lr,activeCanvasRef:Ir,imgRef:Vr,objectHooksMap:Yr}),Xa=$a.updateRender,io=Qo({imagePos:Ar,clientSize:Re,naturalSize:ue,annotations:ua,setAnnotations:Or,drawData:Qr,setDrawData:$r,editState:Pr,setEditState:aa,initObjectList:Aa,updateRender:Xa,clearHistory:Ln,objectsFilter:mr,labelOptions:Un}),Go=io.resetDataWithImageData;(0,g.useEffect)(function(){Go(vt,!0)},[vt,mr]),(0,g.useEffect)(function(){Xa()},[fr]);var Oo=function(Za){var ui=Za.target,ai={width:ui.naturalWidth,height:ui.naturalHeight};Ce(ai)};return(0,x.jsx)("div",{className:"dds-annotator-view",children:(0,x.jsx)(ne,{url:vt==null?void 0:vt.url,imgRef:Vr,canvasRef:lr,activeCanvasRef:Ir,clientSize:Re,imagePos:Ar,onLoad:Oo})})},nl=Nu},87478:function(b,y,e){"use strict";e.d(y,{$N:function(){return x},hF:function(){return X},G9:function(){return W},_G:function(){return O},Vr:function(){return le}});var a=e(63900),t=e.n(a),o=e(2657),s=e.n(o),n=e(17410),d=e(46134),l=e(81179),c=e(67761),m=function(U){var A=U.imgRef,G=U.imagePos,fe=U.canvasRef,pe=U.clientSize,ge=U.displayOptionsResult,be=function(Ke){if(!(!Ke||!fe.current||!A.current)){var ye=ge||{},ne=ye.showMattingColorFill,H=fe.current.getContext("2d"),R=t()({x:G.current.x,y:G.current.y},pe);(0,l.UN)(fe.current),(0,l.AE)(fe.current,Ke,R),ne?(H.globalCompositeOperation="source-out",(0,l.CR)(fe.current,R,"#000"),H.globalCompositeOperation="destination-atop",(0,l.CR)(fe.current,R,"#fff")):(H.globalCompositeOperation="source-in",(0,l.AE)(fe.current,A.current,R),H.globalCompositeOperation="destination-over",(0,l.CR)(fe.current,R,"#fff"))}},Te=function(Ke){var ye=Ke.object,ne=ye.alphaImageElement;ne&&(be(ne),ne.onload=function(){be(ne)})},Ge=function(){},Je=function(){},Qe=function(){},pt=function(){return!1},Et=function(){return!1},ft=function(){return!1},Wt=function(){return!1},$e=function(){return!1},Xe=function(){return!1};return{renderObject:Te,renderCreatingObject:Ge,renderEditingObject:Je,renderPrompt:Qe,startEditingWhenMouseDown:pt,startCreatingWhenMouseDown:Et,updateEditingWhenMouseMove:ft,updateCreatingWhenMouseMove:Wt,finishEditingWhenMouseUp:$e,finishCreatingWhenMouseUp:Xe}},g=m,M=function(U){var A=U.canvasRef,G=function(ft){var Wt=ft.object,$e=ft.styles,Xe=Wt.point;if(Xe&&Xe.visible){var nt=Xe.x,Ke=Xe.y,ye=$e.strokeColor,ne=$e.fillColor;(0,l.G5)(A.current,{x:nt,y:Ke},4,ne,2,ye)}},fe=function(){},pe=function(){},ge=function(){},be=function(){return!1},Te=function(){return!1},Ge=function(){return!1},Je=function(){return!1},Qe=function(){return!1},pt=function(){return!1};return{renderObject:G,renderCreatingObject:fe,renderEditingObject:pe,renderPrompt:ge,startEditingWhenMouseDown:be,startCreatingWhenMouseDown:Te,updateEditingWhenMouseMove:Ge,updateCreatingWhenMouseMove:Je,finishEditingWhenMouseUp:Qe,finishCreatingWhenMouseUp:pt}},h=M,S=e(34485),w=e.n(S),C=e(39378),F=e(34095),Z=e(50910),N=e(14464),L=function(U){var A=U.editState,G=U.clientSize,fe=U.naturalSize,pe=U.imagePos,ge=U.containerMouse,be=U.canvasRef,Te=U.activeCanvasRef,Ge=U.contentMouse,Je=U.setEditState,Qe=U.drawData,pt=U.setDrawData,Et=U.setDrawDataWithHistory,ft=U.updateHistory,Wt=U.updateMouseCursor,$e=U.updateObject,Xe=U.addObject,nt=U.onAiAnnotation,Ke=U.displayOptionsResult,ye=function(J){var de=J.object,xe=J.color,ce=J.styles,Le=J.isFocus,Oe=J.isJustCreated,we=de.polygon;if(we&&we.visible){var Ne=ce.fillColor;!Le&&!Oe&&(Ne=(0,N.a7)(xe,F.mh.DEFAULT_SHAPE));var st=ce.thickness;Ke&&(!Ke.showSegFilling&&!Le&&(Ne="transparent"),Ke.showSegContour||(st=0)),we==null||we.group.forEach(function(et){(0,l.fb)(be.current,et,Ne,ce.strokeColor,st,ce.strokeDash)})}},ne=function(J){var de=J.object,xe=J.styles,ce=de.currIndex,Le=(0,d.lT)(de,{x:-pe.current.x,y:-pe.current.y}),Oe=Le.polygon;Oe&&Oe.visible&&Oe.group.forEach(function(we,Ne){ce===Ne?we.forEach(function(st,et){(0,l.G5)(Te.current,st,et===0?6:4,xe.strokeColor,3,"#1f4dd8"),we.length>1&&et-1&&et>-1){var ke=Oe.group[st][et];ke&&(0,l.G5)(Te.current,ke,4,"#fff",5,xe)}else if(st>-1&&Ye>-1){var Be=(0,d.Iw)(Oe.group[st]);if(Be[Ye]){var it=Be[Ye],Ve=it.start,xt=it.end,Ht=(0,d.Z4)({x:Ge.elementX+pe.current.x,y:Ge.elementY+pe.current.y},Ve,xt);Ht&&(0,l.G5)(Te.current,Ht,4,"#fff",5,xe)}}}},R=function(J){var de=J.prompt;if(de.creatingPrompt){var xe=F.XQ.CREATING,ce=F.Bt.CREATING;switch(de.creatingPrompt.type){case Z.Ae.Rect:{var Le=de.creatingPrompt.startPoint,Oe=(0,d.A7)(Le,{x:Ge.elementX,y:Ge.elementY},{width:Ge.elementW,height:Ge.elementH}),we=(0,d.ZU)(Oe,{x:-pe.current.x,y:-pe.current.y});(0,l.Mu)(Te.current,we,xe,2,[0],ce);break}case Z.Ae.Point:{if(!de.creatingPrompt.point)break;var Ne=(0,d.aF)(de.creatingPrompt.point,{x:-pe.current.x,y:-pe.current.y});(0,l.G5)(Te.current,Ne,4,de.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff")}case Z.Ae.Stroke:{if(!de.creatingPrompt.stroke||!de.creatingPrompt.radius)break;var st=(0,d.U8)(de.creatingPrompt.stroke,{x:-pe.current.x,y:-pe.current.y}),et=de.creatingPrompt.radius*G.width/fe.width,Ye=de.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE;(0,l.AT)(Te.current,st,Ye,et);break}default:break}if(A.isRequiring&&de.activeRectWhileLoading){var ke=(0,d.ZU)(de.activeRectWhileLoading,{x:-pe.current.x,y:-pe.current.y});(0,l.HU)(Te.current,ke)}}de.promptsQueue&&de.promptsQueue.forEach(function(Be){if(Be.type===Z.Ae.Point){var it=(0,d.aF)(Be.point,{x:-pe.current.x,y:-pe.current.y});(0,l.G5)(Te.current,it,4,Be.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff")}})},P=function(J){var de={x:Ge.elementX,y:Ge.elementY};pt(function(xe){switch(xe.selectedSubTool){case n.jB.AutoSegmentByBox:xe.prompt.creatingPrompt={type:Z.Ae.Rect,startPoint:de,isPositive:!0};break;case n.jB.AutoSegmentByClick:xe.prompt.creatingPrompt={type:Z.Ae.Point,startPoint:de,point:de,isPositive:X(J)};break;case n.jB.AutoSegmentByStroke:{xe.prompt.creatingPrompt={type:Z.Ae.Stroke,startPoint:de,stroke:[de],radius:xe.brushSize,isPositive:X(J)};break}default:}})},ae=function(J){var de=J.object,xe=J.event;return Qe.AIAnnotation?(P(xe),!0):(xe==null?void 0:xe.button)===2?!1:!!x({object:de,contentMouse:Ge,setEditState:Je,setDrawData:pt})},Q=function(J){var de=J.event,xe=J.point,ce=J.basic;return pt(function(Le){if(!Le.creatingObject||Le.activeObjectIndex>-1)if(Le.activeObjectIndex=-1,Le.AIAnnotation)switch(Le.selectedSubTool){case n.jB.AutoSegmentByBox:Le.prompt.creatingPrompt={type:Z.Ae.Rect,startPoint:xe,isPositive:!0};break;case n.jB.AutoSegmentByClick:Le.prompt.creatingPrompt={type:Z.Ae.Point,startPoint:xe,point:xe,isPositive:X(de)};break;case n.jB.AutoSegmentByStroke:{Le.prompt.creatingPrompt={type:Z.Ae.Stroke,startPoint:xe,stroke:[xe],radius:Le.brushSize,isPositive:X(de)};break}}else Le.creatingObject=t()({type:n.gr.Polygon,polygon:{visible:!0,group:[[xe]]},currIndex:0},ce),ft((0,C.cloneDeep)(Qe));else if(Le.AIAnnotation)P(de);else{var Oe=Le.creatingObject.currIndex,we=Le.creatingObject.polygon;if(Oe>-1){var Ne=we.group[Oe][0];(0,d.uN)(Ne,Ge)?Le.creatingObject.currIndex=-1:Le.creatingObject.polygon&&(we.group[Oe].push(xe),ft((0,C.cloneDeep)(Le)))}else we.group.push([xe]),Le.creatingObject.currIndex=we.group.length-1,ft((0,C.cloneDeep)(Le))}}),!0},ie=function(J){var de=J.event,xe=Qe.selectedSubTool===n.jB.AutoSegmentByStroke,ce=de.buttons===1||de.buttons===2;if(Qe.prompt.creatingPrompt&&xe&&ce){var Le={x:Ge.elementX,y:Ge.elementY};return pt(function(Oe){var we,Ne;(we=Oe.prompt.creatingPrompt)===null||we===void 0||(Ne=we.stroke)===null||Ne===void 0||Ne.push(Le)}),!0}return!!Qe.creatingObject},me=function(J){var de=J.event;if(Qe.AIAnnotation)return Wt("crosshair"),ie({event:de});var xe=A.focusEleType,ce=A.focusEleIndex,Le=A.focusObjectIndex,Oe=A.focusPolygonInfo;if(Le===Qe.activeObjectIndex&&xe===n.Yq.Polygon&&(Oe.pointIndex>-1?Wt("pointer"):Oe.lineIndex>-1?Wt("crosshair"):Wt("move")),xe===n.Yq.Polygon&&ce===0){var we=A.focusPolygonInfo,Ne=we.index,st=we.pointIndex;if(A.startElementMovePoint&&Ne>-1)return st>-1?(pt(function(et){var Ye,ke;if(et.activeObjectIndex>-1&&A.focusEleIndex>-1&&A.startElementMovePoint&&(Ye=et.creatingObject)!==null&&Ye!==void 0&&(ke=Ye.polygon)!==null&&ke!==void 0&&ke.group[Ne]){var Be,it,Ve=(Be=et.creatingObject)===null||Be===void 0||(it=Be.polygon)===null||it===void 0?void 0:it.group[Ne];Ve[st]=(0,d.E5)(Ge)}}),!0):(pt(function(et){var Ye,ke;if(et.activeObjectIndex>-1&&A.focusEleIndex>-1&&A.startElementMovePoint&&(Ye=et.creatingObject)!==null&&Ye!==void 0&&(ke=Ye.polygon)!==null&&ke!==void 0&&ke.group[Ne]){var Be,it,Ve=(Be=et.creatingObject)===null||Be===void 0||(it=Be.polygon)===null||it===void 0?void 0:it.group[Ne],xt=(0,d.s5)(Ve,A.startElementMovePoint,Ge);et.creatingObject.polygon.group[Ne]=xt,Je(function(Ht){Ht.startElementMovePoint&&(Ht.startElementMovePoint.mousePoint={x:Ge.elementX,y:Ge.elementY})})}}),!0)}return!1},je=function(J){var de=J.event;return ie({event:de})},Ee=function(){if(Qe.prompt.promptsQueue&&Qe.prompt.promptsQueue.length>0)return Qe.prompt.promptsQueue;var J=!Qe.prompt.sessionId&&Qe.creatingObject;if(J){var de,xe,ce=((de=Qe.creatingObject)===null||de===void 0||(xe=de.polygon)===null||xe===void 0?void 0:xe.group.map(function(Oe){return Oe.reduce(function(we,Ne){return we.concat([Ne.x,Ne.y])},[])}))||[],Le={type:Z.Ae.Modify,isPositive:!0,polygons:ce};return[Le]}else return[]},Me=function(){var J={x:Ge.elementX,y:Ge.elementY},de=Ee();switch(Qe.selectedSubTool){case n.jB.AutoSegmentByBox:{var xe,ce,Le;if(!((xe=Qe.prompt.creatingPrompt)!==null&&xe!==void 0&&xe.startPoint))break;if(J.x===((ce=Qe.prompt.creatingPrompt.startPoint)===null||ce===void 0?void 0:ce.x)||J.y===((Le=Qe.prompt.creatingPrompt.startPoint)===null||Le===void 0?void 0:Le.y)){pt(function(Ve){return Ve.prompt.creatingPrompt=void 0});break}var Oe=(0,d.A7)(Qe.prompt.creatingPrompt.startPoint,J,{width:Ge.elementW,height:Ge.elementH}),we={type:Z.Ae.Rect,isPositive:!0,rect:Oe};Et(function(Ve){Ve.prompt.activeRectWhileLoading=Oe});var Ne=[].concat(w()(de),[we]);nt==null||nt({type:n.gr.Polygon,drawData:Qe,promptsQueue:Ne});break}case n.jB.AutoSegmentByClick:{var st;if(!(0,d.jt)(Ge)||!(0,d.jt)(ge)||!((st=Qe.prompt.creatingPrompt)!==null&&st!==void 0&&st.point))break;var et={type:Z.Ae.Point,isPositive:Qe.prompt.creatingPrompt.isPositive,point:Qe.prompt.creatingPrompt.point},Ye=[].concat(w()(de),[et]);nt==null||nt({type:n.gr.Polygon,drawData:Qe,promptsQueue:Ye});break}case n.jB.AutoSegmentByStroke:{var ke;if(!((ke=Qe.prompt.creatingPrompt)!==null&&ke!==void 0&&ke.stroke))break;var Be={type:Z.Ae.Stroke,isPositive:Qe.prompt.creatingPrompt.isPositive,stroke:Qe.prompt.creatingPrompt.stroke,radius:Qe.brushSize},it=[].concat(w()(de),[Be]);nt==null||nt({type:n.gr.Polygon,drawData:Qe,promptsQueue:it});break}}},We=function(J){var de=J.object;if(Qe.AIAnnotation)Me();else{var xe,ce,Le=A.startRectResizeAnchor||A.startElementMovePoint,Oe=A.startElementMovePoint&&((xe=A.startElementMovePoint.initPoint)===null||xe===void 0?void 0:xe.x)===Ge.elementX&&((ce=A.startElementMovePoint.initPoint)===null||ce===void 0?void 0:ce.y)===Ge.elementY,we=Oe&&A.focusPolygonInfo.index>-1&&A.focusPolygonInfo.pointIndex>-1;if(we){var Ne,st=(0,C.cloneDeep)(de),et=A.focusPolygonInfo,Ye=et.index,ke=et.pointIndex,Be=(Ne=st.polygon)===null||Ne===void 0?void 0:Ne.group[Ye];Be&&Ye>-1&&ke>-1&&Be.length>=3&&Be.splice(ke,1),$e(st,Qe.activeObjectIndex)}else Le&&$e(de,Qe.activeObjectIndex);Je(function(it){it.startRectResizeAnchor=void 0,it.startElementMovePoint=void 0})}return!0},re=function(J){var de=J.object;if(Qe.AIAnnotation)Me();else if(de&&de.currIndex===-1){var xe=de.polygon,ce=de.type,Le=de.hidden,Oe=de.labelId,we=de.status,Ne=de.color,st={polygon:xe,type:ce,hidden:Le,labelId:Oe,status:we,color:Ne};Xe(st)}return!0};return{renderObject:ye,renderCreatingObject:ne,renderEditingObject:H,renderPrompt:R,startEditingWhenMouseDown:ae,startCreatingWhenMouseDown:Q,updateEditingWhenMouseMove:me,updateCreatingWhenMouseMove:je,finishEditingWhenMouseUp:We,finishCreatingWhenMouseUp:re}},$=L,D=function(U){var A=U.canvasRef,G=function(ft){var Wt=ft.object,$e=ft.color,Xe=ft.isFocus,nt=Wt.polyline;if(nt&&nt.visible&&nt.lineType){var Ke=nt.lineType,ye=nt.color||$e,ne=Xe?(0,N.a7)(ye,F.rl.FOCUS):(0,N.a7)(ye,F.rl.DEFAULT);nt==null||nt.group.forEach(function(H){(0,l.bT)(A.current,H,ne,Ke)})}},fe=function(){},pe=function(){},ge=function(){},be=function(){return!1},Te=function(){return!1},Ge=function(){return!1},Je=function(){return!1},Qe=function(){return!1},pt=function(){return!1};return{renderObject:G,renderCreatingObject:fe,renderEditingObject:pe,renderPrompt:ge,startEditingWhenMouseDown:be,startCreatingWhenMouseDown:Te,updateEditingWhenMouseMove:Ge,updateCreatingWhenMouseMove:Je,finishEditingWhenMouseUp:Qe,finishCreatingWhenMouseUp:pt}},T=D,j=function(U){var A=U.contentMouse,G=U.imagePos,fe=U.canvasRef,pe=U.activeCanvasRef,ge=U.editState,be=U.setEditState,Te=U.drawData,Ge=U.setDrawData,Je=U.updateMouseCursor,Qe=U.updateObject,pt=U.addObject,Et=U.getAnnotColor,ft=U.displayOptionsResult,Wt=U.categories,$e=U.onAiAnnotation,Xe=function(me){var je=me.object,Ee=me.color,Me=me.styles,We=me.isFocus,re=je.rect;if(re&&re.visible){var se=Me.strokeDash,J=Me.strokeColor,de=Me.fillColor,xe=Me.thickness,ce=Te.selectedModel[Te.selectedTool];if(Te.isBatchEditing){if(je.status===Z.TK.Unchecked&&(!ge.isCtrlPressed||ce===n.HE.IVP))return;ge.isCtrlPressed&&ce===n.HE.Detection&&(je.status!==Z.TK.Unchecked?(J=(0,N.a7)(Ee,.8),se=[2],xe=1.5):de=We?(0,N.a7)(Ee,F.mh.DEFAULT):(0,N.a7)(Ee,F.mh.CTRL_TO_SELECT))}if((0,l.Mu)(fe.current,re,J,xe,se,de),ft!=null&&ft.showBoxText){var Le,Oe=((Le=Wt.find(function(Ne){return Ne.id===je.labelId}))===null||Le===void 0?void 0:Le.name)||"",we=je!=null&&je.conf&&je.conf>0&&je.conf<1?"".concat(Oe," (").concat(je.conf.toFixed(3),")"):Oe;(0,l.yU)(fe.current,we||"",13,{x:re.x+6,y:re.y+6},Ee,!0,"left")}Te.isBatchEditing&&ge.isCtrlPressed&&We&&(0,l.HU)(pe.current,re,"#000",.6)}},nt=function(me){var je=me.object,Ee=me.styles,Me=je.startPoint;if(Me){var We=(0,d.A7)(Me,{x:A.elementX,y:A.elementY},{width:A.elementW,height:A.elementH}),re=(0,d.ZU)(We,{x:-G.current.x,y:-G.current.y});(0,l.Mu)(pe.current,re,Ee.strokeColor,Ee.thickness,Ee.strokeDash,Ee.fillColor)}},Ke=function(me){var je=me.object,Ee=me.styles,Me=je.rect;Me&&Me.visible&&((0,l.Mu)(pe.current,Me,Ee.strokeColor,Ee.thickness,Ee.strokeDash,Ee.fillColor),W(pe.current,Me))},ye=function(me){var je=me.prompt;if(je.creatingPrompt){var Ee=je.creatingPrompt.isPositive?F.CJ.POSITIVE:F.CJ.NEGATIVE,Me=je.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE;switch(je.creatingPrompt.type){case Z.Ae.Rect:{var We=je.creatingPrompt.startPoint,re=(0,d.A7)(We,{x:A.elementX,y:A.elementY},{width:A.elementW,height:A.elementH}),se=(0,d.ZU)(re,{x:-G.current.x,y:-G.current.y});(0,l.Mu)(pe.current,se,Ee,2,[0],Me);break}case Z.Ae.Point:{if(!je.creatingPrompt.point)break;var J=(0,d.aF)(je.creatingPrompt.point,{x:-G.current.x,y:-G.current.y});(0,l.G5)(pe.current,J,4,je.creatingPrompt.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff")}default:break}}je.promptsQueue&&je.promptsQueue.forEach(function(de){switch(de.type){case Z.Ae.Rect:{var xe=(0,d.ZU)(de.rect,{x:-G.current.x,y:-G.current.y});(0,l.Mu)(pe.current,xe,de.isPositive?F.CJ.POSITIVE:F.CJ.NEGATIVE,2,[0],de.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE);break}case Z.Ae.Point:{var ce=(0,d.aF)(de.point,{x:-G.current.x,y:-G.current.y});(0,l.G5)(pe.current,ce,4,de.isPositive?F.lz.POSITIVE:F.lz.NEGATIVE,2,"#fff");break}}})},ne=function(me){var je=me.object,Ee=me.event;return(Ee==null?void 0:Ee.button)===2?!1:!!x({object:je,contentMouse:A,setEditState:be,setDrawData:Ge})},H=function(me){var je=me.point,Ee=me.basic;return Ge(function(Me){var We=Me.selectedModel[Me.selectedTool];Me.AIAnnotation&&We===n.HE.IVP?(Me.activeObjectIndex=-1,Me.prompt.creatingPrompt={type:Z.Ae.Rect,startPoint:je,point:je,isPositive:Me.selectedSubTool!==n.jB.NegativeVisualPrompt}):(Me.activeObjectIndex=-1,Me.creatingObject=t()({type:n.gr.Rectangle,startPoint:je},Ee))}),!0},R=function(me){var je=me.object;return O({object:je,editState:ge,contentMouse:A,drawData:Te,setDrawData:Ge,updateMouseCursor:Je})},P=function(me){var je=me.object;return!!je},ae=function(me){var je=me.object,Ee=ge.startRectResizeAnchor||ge.startElementMovePoint;return Ee&&Qe(je,Te.activeObjectIndex),be(function(Me){Me.startRectResizeAnchor=void 0,Me.startElementMovePoint=void 0}),!0},Q=function(me){var je,Ee=me.object,Me={x:A.elementX,y:A.elementY};if(Te.AIAnnotation&&Te.selectedModel[Te.selectedTool]===n.HE.IVP&&(je=Te.prompt.creatingPrompt)!==null&&je!==void 0&&je.startPoint){var We=Te.prompt.creatingPrompt.startPoint;if(Me.x===We.x||Me.y===We.y)return Ge(function(ce){ce.prompt.creatingPrompt=void 0}),!0;var re=(0,d.A7)(We,Me,{width:A.elementW,height:A.elementH}),se={type:Z.Ae.Rect,isPositive:Te.prompt.creatingPrompt.isPositive,rect:re},J=[].concat(w()(Te.prompt.promptsQueue||[]),[se]);return $e==null||$e({type:n.gr.Rectangle,drawData:Te,promptsQueue:J}),!0}if(!Ee||!Ee.startPoint)return!1;if(A.elementX===Ee.startPoint.x||A.elementY===Ee.startPoint.y)return Ge(function(ce){ce.creatingObject=void 0}),!0;var de=(0,d.A7)(Ee.startPoint,{x:A.elementX,y:A.elementY},{width:A.elementW,height:A.elementH}),xe={type:n.gr.Rectangle,labelId:Ee.labelId,hidden:!1,rect:t()({visible:!0},de),conf:1,status:Z.TK.Commited,color:Et(Ee.labelId)};return pt(xe),!0};return{renderObject:Xe,renderCreatingObject:nt,renderEditingObject:Ke,renderPrompt:ye,startEditingWhenMouseDown:ne,startCreatingWhenMouseDown:H,updateEditingWhenMouseMove:R,updateCreatingWhenMouseMove:P,finishEditingWhenMouseUp:ae,finishCreatingWhenMouseUp:Q}},K=j,k=function(U,A,G,fe,pe){var ge=arguments.length>5&&arguments[5]!==void 0?arguments[5]:4,be=A.lines,Te=A.points;if(!pe)for(var Ge=0;Ge*2400?4:2)}},nt=function(me){var je=me.object,Ee=me.styles,Me=je.startPoint;if(Me){var We=(0,d.A7)(Me,{x:pe.elementX,y:pe.elementY},{width:pe.elementW,height:pe.elementH}),re=(0,d.ZU)(We,{x:-ge.current.x,y:-ge.current.y}),se=n.v_.points,J=n.v_.lines,de=n.v_.pointColors,xe=n.v_.pointNames,ce=(0,d.el)(se,xe,de,fe,G),Le=(0,d.cU)(ce,re);(0,l.Mu)(Te.current,re,Ee.strokeColor,Ee.thickness),Le.forEach(function(et){(0,l.G5)(Te.current,{x:et.x,y:et.y},4,Ee.strokeColor,3,"#1f4dd8")});for(var Oe=0;Oe*2-1&&A.focusEleIndex>-1&&A.startElementMovePoint&&(Me=Ee.creatingObject)!==null&&Me!==void 0&&(We=Me.keypoints)!==null&&We!==void 0&&(re=We.points)!==null&&re!==void 0&&re[A.focusEleIndex]){var se,J,de,xe=(se=Ee.creatingObject)===null||se===void 0||(J=se.keypoints)===null||J===void 0||(de=J.points)===null||de===void 0?void 0:de[A.focusEleIndex],ce=(0,d.E5)(pe),Le=ce.x,Oe=ce.y;xe.x=Le,xe.y=Oe}}),!0):!1)},P=function(me){var je=me.object;return!!je},ae=function(me){var je=me.object,Ee=A.startRectResizeAnchor||A.startElementMovePoint;if(Ee&&ft(je,Je.activeObjectIndex),Je.AIAnnotation){var Me,We;A.startElementMovePoint&&(((Me=A.startElementMovePoint.mousePoint)===null||Me===void 0?void 0:Me.x)!==pe.elementX||((We=A.startElementMovePoint.mousePoint)===null||We===void 0?void 0:We.y)!==pe.elementY)&&(Wt==null||Wt({type:n.gr.Skeleton,drawData:Je}))}return Ge(function(re){re.startRectResizeAnchor=void 0,re.startElementMovePoint=void 0}),!0},Q=function(me){var je,Ee,Me=me.object;if(!Me||!Me.startPoint)return!1;if(pe.elementX===((je=Me.startPoint)===null||je===void 0?void 0:je.x)||pe.elementY===((Ee=Me.startPoint)===null||Ee===void 0?void 0:Ee.y))return Qe(function(Oe){return Oe.creatingObject=void 0}),!0;var We=(0,d.A7)(Me.startPoint,{x:pe.elementX,y:pe.elementY},{width:pe.elementW,height:pe.elementH}),re=n.v_.points,se=n.v_.lines,J=n.v_.pointColors,de=n.v_.pointNames,xe=(0,d.el)(re,de,J,fe,G),ce=(0,d.cU)(xe,We),Le={type:n.gr.Skeleton,labelId:Me.labelId,hidden:!1,color:Me.color,rect:t()({visible:!0},We),keypoints:{points:ce,lines:se},conf:1,status:Z.TK.Commited};return Et(Le),!0};return{renderObject:Xe,renderCreatingObject:nt,renderEditingObject:Ke,renderPrompt:ye,startEditingWhenMouseDown:ne,startCreatingWhenMouseDown:H,updateEditingWhenMouseMove:R,updateCreatingWhenMouseMove:P,finishEditingWhenMouseUp:ae,finishCreatingWhenMouseUp:Q}},V=te,q;(function(_){})(q||(q={}));var le=function(U){var A,G=K(U),fe=$(U),pe=V(U),ge=(0,c.ZP)(U),be=g(U),Te=h(U),Ge=T(U),Je=(A={},s()(A,n.gr.Rectangle,G),s()(A,n.gr.Polygon,fe),s()(A,n.gr.Skeleton,pe),s()(A,n.gr.Mask,ge),s()(A,n.gr.Matting,be),s()(A,n.gr.Point,Te),s()(A,n.gr.Polyline,Ge),s()(A,n.gr.Custom,G),s()(A,n.gr.Classification,G),A);return{objectHooksMap:Je}},X=function(U){return!(U.button===2||U.button===0&&U.altKey)},W=function(U,A){var G=(0,d.Qo)(A).map(function(fe){return fe.position});G.forEach(function(fe){var pe=(0,d.Ak)(fe,{width:10,height:10}),ge=(0,d.my)(pe);(0,l.Mu)(U,ge,"rgba(0, 0, 0, 0.8)",3,[0],"#fff")})},x=function(U){var A=U.object,G=U.contentMouse,fe=U.setEditState,pe=U.setDrawData,ge=(0,d.o7)(G,A),be=ge.focusEleIndex,Te=ge.focusEleType,Ge=ge.focusPolygonInfo;if(Te===n.Yq.None)return!1;var Je=A.rect,Qe=A.keypoints,pt=A.polygon,Et={x:G.elementX,y:G.elementY};return fe(function(ft){switch(Te){case n.Yq.Rect:{if(Je){var Wt=(0,d.Oh)(Je,Et);Wt?ft.startRectResizeAnchor={type:Wt.type,position:(0,d.l1)(Je,Wt.type)}:ft.startElementMovePoint={topLeftPoint:{x:Je.x,y:Je.y},mousePoint:Et}}break}case n.Yq.Circle:{if(Qe){var $e=Qe.points[be];ft.startElementMovePoint={topLeftPoint:{x:$e.x,y:$e.y},mousePoint:Et}}break}case n.Yq.Polygon:{var Xe=Ge.lineIndex,nt=Ge.index;if(pt)if(Xe>-1){var Ke=(0,d.Iw)(pt.group[nt])[Xe];if(Ke){var ye=(0,d.Z4)(Et,Ke.start,Ke.end);pe(function(ne){var H=ne.objectList[ne.activeObjectIndex];H.polygon&&H.polygon.group[nt].splice(Xe+1,0,ye),ne.creatingObject=t()({},H)}),ft.focusPolygonInfo.pointIndex=Xe+1,ft.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:ye,initPoint:ye}}}else ft.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:Et,initPoint:Et};break}}}),!0},O=function(U){var A=U.object,G=U.editState,fe=U.contentMouse,pe=U.drawData,ge=U.setDrawData,be=U.updateMouseCursor,Te=G.focusObjectIndex,Ge=G.focusEleIndex,Je=G.focusEleType,Qe=G.startRectResizeAnchor;if(Te===pe.activeObjectIndex&&Je===n.Yq.Rect&&A.rect){var pt=(0,d.Oh)(A.rect,{x:fe.elementX,y:fe.elementY});pt?be("resize",pt.type):be("move")}if(Je===n.Yq.Rect&&Ge===0){if(Qe)return ge(function(Et){if(Et.activeObjectIndex>-1&&G.startRectResizeAnchor&&Et.creatingObject&&Et.creatingObject.rect){var ft=(0,d.XR)(Et.creatingObject.rect,G.startRectResizeAnchor,fe);Et.creatingObject.rect=t()(t()({},Et.creatingObject.rect),ft)}}),!0;if(G.startElementMovePoint)return ge(function(Et){if(Et.activeObjectIndex>-1&&G.startElementMovePoint&&Et.creatingObject&&Et.creatingObject.rect){var ft=(0,d.i$)(Et.creatingObject.rect,G.startElementMovePoint,fe);Et.creatingObject.rect=t()(t()({},Et.creatingObject.rect),ft)}}),!0}return!1}},67761:function(b,y,e){"use strict";e.d(y,{G9:function(){return j},ei:function(){return K}});var a=e(34485),t=e.n(a),o=e(63900),s=e.n(o),n=e(39378),d=e.n(n),l=e(17410),c=e(34095),m=e(50910),g=e(14464),M=e(46134),h=e(81179),S=e(87478),w=function(V){for(var q=V.length,le=0,X=0,W=!0,x=Array(q*6),O=0;O2&&(X-=V[O-2]),W=!0;W;){var _=X&31;X>>=5,W=!!(X!==-1&&_&16||X!==0&&!(_&16)),W&&(_|=32),_+=48,x[le]=String.fromCharCode(_),le+=1}return x.join("")},C=function(V){for(var q=0,le=[];q2&&(X+=le[le.length-2]),le.push(X)}return le},F=function(V,q){for(var le=new Array(q),X=0,W=0,x=0;x0&&x.forEach(function(_){var U=(0,M.U8)(_.points,{x:-q.x,y:-q.y});(_.tool===l.jB.PenAdd||_.tool===l.jB.PenErase)&&(0,h.HT)(V,U,_.positive,(0,g.a7)(W,c.s_.CREATING),"transparent"),(_.tool===l.jB.BrushAdd||_.tool===l.jB.BrushErase)&&(0,h.T8)(V,U,_.positive,W,c.s_.CREATING,_.radius*le.width/X.width)}),O.restore()},D=function(V,q,le,X,W,x,O){if(V){var _=q.maskStep,U=q.tempMaskSteps,A=q.maskCanvasElement,G=V.getContext("2d");if(!G)return null;if(A&&(G.globalAlpha=c.s_.CREATING,(0,h.AE)(V,A,{x:le.x,y:le.y,width:x.width,height:x.height}),G.globalAlpha=1),$(V,le,x,O,X,U),_&&_.points.length>0){var fe=_.tool===l.jB.PenAdd||_.tool===l.jB.BrushAdd?c.Bt.CREATING_POSITIVE:c.Bt.CREATING_NEGATIVE,pe=(0,M.U8)(_.points,{x:-le.x,y:-le.y});(_.tool===l.jB.PenAdd||_.tool===l.jB.PenErase)&&((0,h.G5)(V,pe[0],6,(0,g.a7)(fe,c.rl.CREATING),3,c.XQ.CREATING),pe.length>0&&((0,h.MC)(V,pe,(0,g.a7)(fe,c.rl.CREATING),2.5,[0]),(0,h.pS)(V,pe[pe.length-1],W,(0,g.a7)(fe,c.rl.CREATING_LINE),2.5,[5]))),(_.tool===l.jB.BrushAdd||_.tool===l.jB.BrushErase||_.tool===l.jB.AutoSegmentByStroke)&&pe.length>1&&(0,h.AT)(V,pe,(0,g.a7)(fe,c.s_.CREATING),_.radius*x.width/O.width)}}},T=function(V,q){var le=V.getContext("2d",{willReadFrequently:!0});if(!le)return null;for(var X=le.getImageData(0,0,V.width,V.height),W=hexToRgbArray(q),x=X.data.length/4;x--;)X.data[x*4+3]>0&&(X.data[x*4]=W[0],X.data[x*4+1]=W[1],X.data[x*4+2]=W[2],X.data[x*4+3]=255);return clearCanvas(V),le.putImageData(X,0,0),V},j=function(V,q,le,X){var W=document.createElement("canvas"),x=W.getContext("2d",{willReadFrequently:!0});if(!x||!le)return null;W.width=q.width,W.height=q.height;var O=le.map(function(pe){return s()(s()({},pe),{},{points:pe.points.map(function(ge){return(0,M.Ap)(ge,V,q)})})});X&&(0,h.AE)(W,X,{x:0,y:0,width:q.width,height:q.height}),$(W,{x:0,y:0},q,q,"#fff",O);for(var _=x.getImageData(0,0,q.width,q.height),U=0,A=new Array(_.data.length/4).fill(0),G=_.data.length/4;G--;){var fe=0;_.data[G*4+3]>0&&(U++,fe=1,A[G]=1),_.data[G*4]=_.data[G*4+1]=_.data[G*4+2]=_.data[G*4+3]=fe}return U>0?L(A):""},K=function(V,q,le){var X=q.width,W=q.height,x=document.createElement("canvas"),O=x.getContext("2d");if(x.width=X,x.height=W,!O)return null;for(var _=O.createImageData(X,W),U=(0,g.dX)(le),A=N(V,Math.ceil(X)*Math.ceil(W)),G=_.data.length/4;G--;)A[G]>0&&(_.data[G*4]=U[0],_.data[G*4+1]=U[1],_.data[G*4+2]=U[2],_.data[G*4+3]=255);return O.putImageData(_,0,0),x},k=function(V){var q=V.editState,le=V.clientSize,X=V.naturalSize,W=V.contentMouse,x=V.imagePos,O=V.containerMouse,_=V.canvasRef,U=V.activeCanvasRef,A=V.drawData,G=V.setDrawData,fe=V.setDrawDataWithHistory,pe=V.updateHistory,ge=V.onAiAnnotation,be=V.updateMouseCursor,Te=function(H){var R=H.object,P=H.styles,ae=R.maskCanvasElement,Q=_.current.getContext("2d"),ie=Q.globalAlpha;Q.globalAlpha=Q.globalAlpha*P.maskAlpha,(0,h.AE)(_.current,ae,{x:x.current.x,y:x.current.y,width:le.width,height:le.height}),Q.globalAlpha=ie},Ge=function(H){var R=H.object,P=H.color;q.hideCreatingObject||D(U.current,R,x.current,P,{x:O.elementX,y:O.elementY},le,X)},Je=function(H){var R=H.object,P=H.color;q.hideCreatingObject||D(U.current,R,x.current,P,{x:O.elementX,y:O.elementY},le,X)},Qe=function(H){var R=H.prompt,P=A.selectedModel[A.selectedTool];if(R.creatingPrompt)if(P===l.HE.IVP){var ae=R.creatingPrompt.isPositive?c.CJ.POSITIVE:c.CJ.NEGATIVE,Q=R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE;switch(R.creatingPrompt.type){case m.Ae.Rect:{var ie=R.creatingPrompt.startPoint,me=(0,M.A7)(ie,{x:W.elementX,y:W.elementY},{width:W.elementW,height:W.elementH}),je=(0,M.ZU)(me,{x:-x.current.x,y:-x.current.y});(0,h.Mu)(U.current,je,ae,2,[0],Q);break}case m.Ae.Point:{if(!R.creatingPrompt.point)break;var Ee=(0,M.aF)(R.creatingPrompt.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,Ee,4,R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff")}default:break}}else{var Me=c.XQ.CREATING,We=c.Bt.CREATING;switch(R.creatingPrompt.type){case m.Ae.Rect:{var re=R.creatingPrompt.startPoint,se=(0,M.A7)(re,{x:W.elementX,y:W.elementY},{width:W.elementW,height:W.elementH}),J=(0,M.ZU)(se,{x:-x.current.x,y:-x.current.y});(0,h.Mu)(U.current,J,Me,2,[0],We);break}case m.Ae.Point:{if(!R.creatingPrompt.point)break;var de=(0,M.aF)(R.creatingPrompt.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,de,4,R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff")}case m.Ae.EdgeStitch:case m.Ae.Stroke:{if(!R.creatingPrompt.stroke||!R.creatingPrompt.radius)break;var xe=(0,M.U8)(R.creatingPrompt.stroke,{x:-x.current.x,y:-x.current.y}),ce=R.creatingPrompt.radius*le.width/X.width,Le=R.creatingPrompt.type===m.Ae.EdgeStitch?(0,g.a7)(Me,c.s_.CREATING):R.creatingPrompt.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE;(0,h.AT)(U.current,xe,Le,ce);break}default:break}if(q.isRequiring&&R.activeRectWhileLoading){var Oe=(0,M.ZU)(R.activeRectWhileLoading,{x:-x.current.x,y:-x.current.y});(0,h.HU)(U.current,Oe)}}R.promptsQueue&&(P===l.HE.IVP?R.promptsQueue.forEach(function(we){switch(we.type){case m.Ae.Rect:{var Ne=(0,M.ZU)(we.rect,{x:-x.current.x,y:-x.current.y});(0,h.Mu)(U.current,Ne,we.isPositive?c.CJ.POSITIVE:c.CJ.NEGATIVE,2,[0],we.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE);break}case m.Ae.Point:{var st=(0,M.aF)(we.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,st,4,we.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff");break}}}):R.promptsQueue.forEach(function(we){if(we.type===m.Ae.Point){var Ne=(0,M.aF)(we.point,{x:-x.current.x,y:-x.current.y});(0,h.G5)(U.current,Ne,4,we.isPositive?c.lz.POSITIVE:c.lz.NEGATIVE,2,"#fff")}}))},pt=function(H){var R={x:W.elementX,y:W.elementY};G(function(P){switch(P.selectedSubTool){case l.jB.PenAdd:case l.jB.PenErase:case l.jB.BrushAdd:case l.jB.BrushErase:if(P.creatingObject){if(P.creatingObject.maskStep){if(P.creatingObject.maskStep.points.push(R),[l.jB.PenAdd,l.jB.PenErase].includes(P.selectedSubTool)&&(0,M.uN)(P.creatingObject.maskStep.points[0],W)){var ae;(ae=P.creatingObject.tempMaskSteps)===null||ae===void 0||ae.push(P.creatingObject.maskStep),P.creatingObject.maskStep=void 0}}else P.creatingObject.maskStep={tool:P.selectedSubTool,positive:P.selectedSubTool===l.jB.PenAdd||P.selectedSubTool===l.jB.BrushAdd,points:[R],radius:P.brushSize};[l.jB.BrushAdd,l.jB.BrushErase].includes(P.selectedSubTool)||pe((0,n.cloneDeep)(P))}P.prompt.sessionId=void 0;break;case l.jB.AutoSegmentByBox:P.prompt.creatingPrompt={type:m.Ae.Rect,startPoint:R,isPositive:!0};break;case l.jB.AutoSegmentByClick:P.prompt.creatingPrompt={type:m.Ae.Point,startPoint:R,point:R,isPositive:(0,S.hF)(H)};break;case l.jB.AutoSegmentByStroke:P.prompt.creatingPrompt={type:m.Ae.Stroke,startPoint:R,stroke:[R],radius:P.brushSize,isPositive:(0,S.hF)(H)};break;case l.jB.AutoEdgeStitching:P.prompt.creatingPrompt={type:m.Ae.EdgeStitch,startPoint:R,stroke:[R],radius:P.brushSize,isPositive:!0};default:break}})},Et=function(H){var R=H.event;return pt(R),!0},ft=function(H){var R=H.event,P=H.object,ae=H.point,Q=H.basic;return P?pt(R):G(function(ie){switch(ie.activeObjectIndex=-1,ie.selectedSubTool){case l.jB.PenAdd:case l.jB.PenErase:case l.jB.BrushAdd:case l.jB.BrushErase:ie.creatingObject=s()(s()({},Q),{},{type:l.gr.Mask,startPoint:ae,maskStep:{tool:ie.selectedSubTool,positive:ie.selectedSubTool===l.jB.PenAdd||ie.selectedSubTool===l.jB.BrushAdd,points:[ae],radius:ie.brushSize},tempMaskSteps:[]}),ie.prompt.sessionId=void 0;break;case l.jB.AutoSegmentByBox:ie.prompt.creatingPrompt={type:m.Ae.Rect,startPoint:ae,isPositive:!0};break;case l.jB.AutoSegmentByClick:ie.prompt.creatingPrompt={type:m.Ae.Point,startPoint:ae,point:ae,isPositive:(0,S.hF)(R)};break;case l.jB.AutoSegmentByStroke:ie.prompt.creatingPrompt={type:m.Ae.Stroke,startPoint:ae,stroke:[ae],radius:ie.brushSize,isPositive:(0,S.hF)(R)};break;case l.jB.AutoEdgeStitching:ie.prompt.creatingPrompt={type:m.Ae.EdgeStitch,startPoint:ae,stroke:[ae],radius:ie.brushSize,isPositive:!0};break;case l.jB.PositiveVisualPrompt:case l.jB.NegativeVisualPrompt:ie.prompt.creatingPrompt={type:m.Ae.Rect,startPoint:ae,point:ae,isPositive:ie.selectedSubTool!==l.jB.NegativeVisualPrompt};default:break}}),!0},Wt=function(H){var R=H.event,P=H.object;if(P||A.prompt.creatingPrompt){be("crosshair");var ae=[l.jB.BrushAdd,l.jB.BrushErase,l.jB.PenAdd,l.jB.PenErase,l.jB.AutoSegmentByStroke,l.jB.AutoEdgeStitching].includes(A.selectedSubTool),Q=R.buttons===1||R.buttons===2;if(ae&&Q){var ie={x:W.elementX,y:W.elementY},me=[l.jB.AutoSegmentByStroke,l.jB.AutoEdgeStitching].includes(A.selectedSubTool);G(function(je){if(me){var Ee,Me;(Ee=je.prompt.creatingPrompt)===null||Ee===void 0||(Me=Ee.stroke)===null||Me===void 0||Me.push(ie)}else{var We,re;(We=je.creatingObject)===null||We===void 0||(re=We.maskStep)===null||re===void 0||re.points.push(ie)}})}return!0}return!1},$e=function(H){var R=H.object,P=H.event;return Wt({object:R,event:P})},Xe=function(H){var R=H.object,P=H.event;return Wt({object:R,event:P})},nt=function(){if(!(!A.creatingObject&&!A.prompt.creatingPrompt)){var H={x:W.elementX,y:W.elementY},R=A.selectedModel[A.selectedTool];switch(A.selectedSubTool){case l.jB.BrushAdd:case l.jB.BrushErase:case l.jB.PenAdd:case l.jB.PenErase:{fe(function(Ne){if(Ne.creatingObject&&Ne.creatingObject.tempMaskSteps&&Ne.creatingObject.maskStep&&Ne.creatingObject.maskStep.points.length>1&&([l.jB.BrushAdd,l.jB.BrushErase].includes(Ne.selectedSubTool)||[l.jB.PenAdd,l.jB.PenErase].includes(Ne.selectedSubTool)&&(0,M.uN)(Ne.creatingObject.maskStep.points[0],W))){var st;(st=Ne.creatingObject.tempMaskSteps)===null||st===void 0||st.push(Ne.creatingObject.maskStep),Ne.creatingObject.maskStep=void 0}Ne.prompt.sessionId=void 0});break}case l.jB.AutoSegmentByBox:{var P,ae,Q;if(!((P=A.prompt.creatingPrompt)!==null&&P!==void 0&&P.startPoint))break;if(H.x===((ae=A.prompt.creatingPrompt.startPoint)===null||ae===void 0?void 0:ae.x)||H.y===((Q=A.prompt.creatingPrompt.startPoint)===null||Q===void 0?void 0:Q.y)){G(function(Ne){return Ne.prompt.creatingPrompt=void 0});break}var ie=(0,M.A7)(A.prompt.creatingPrompt.startPoint,H,{width:W.elementW,height:W.elementH}),me={type:m.Ae.Rect,isPositive:!0,rect:ie};fe(function(Ne){Ne.prompt.activeRectWhileLoading=ie});var je=A.prompt.promptsQueue?[].concat(t()(A.prompt.promptsQueue),[me]):[me];ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:je});break}case l.jB.AutoSegmentByClick:{var Ee;if(!(0,M.jt)(W)||!(0,M.jt)(O)||!((Ee=A.prompt.creatingPrompt)!==null&&Ee!==void 0&&Ee.point))break;var Me={type:m.Ae.Point,isPositive:A.prompt.creatingPrompt.isPositive,point:A.prompt.creatingPrompt.point},We=A.prompt.promptsQueue?[].concat(t()(A.prompt.promptsQueue),[Me]):[Me];ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:We});break}case l.jB.AutoSegmentByStroke:{var re;if(!((re=A.prompt.creatingPrompt)!==null&&re!==void 0&&re.stroke))break;var se={type:m.Ae.Stroke,isPositive:A.prompt.creatingPrompt.isPositive,stroke:A.prompt.creatingPrompt.stroke,radius:A.brushSize},J=A.prompt.promptsQueue?[].concat(t()(A.prompt.promptsQueue),[se]):[se];ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:J});break}case l.jB.AutoEdgeStitching:{var de;if(!((de=A.prompt.creatingPrompt)!==null&&de!==void 0&&de.stroke))break;ge==null||ge({type:l.gr.Mask,drawData:A});break}case l.jB.PositiveVisualPrompt:case l.jB.NegativeVisualPrompt:{var xe;if(R!==l.HE.IVP||!((xe=A.prompt.creatingPrompt)!==null&&xe!==void 0&&xe.startPoint))break;var ce=A.prompt.creatingPrompt.startPoint;if(H.x===ce.x||H.y===ce.y){G(function(Ne){return Ne.prompt.creatingPrompt=void 0});break}else{var Le=(0,M.A7)(ce,H,{width:W.elementW,height:W.elementH}),Oe={type:m.Ae.Rect,isPositive:A.prompt.creatingPrompt.isPositive,rect:Le},we=[].concat(t()(A.prompt.promptsQueue||[]),[Oe]);ge==null||ge({type:l.gr.Mask,drawData:A,promptsQueue:we})}}}}},Ke=function(){return nt(),!0},ye=function(){return nt(),!0};return{renderObject:Te,renderCreatingObject:Ge,renderEditingObject:Je,renderPrompt:Qe,startEditingWhenMouseDown:Et,startCreatingWhenMouseDown:ft,updateEditingWhenMouseMove:$e,updateCreatingWhenMouseMove:Xe,finishEditingWhenMouseUp:Ke,finishCreatingWhenMouseUp:ye}};y.ZP=k},50910:function(b,y,e){"use strict";e.d(y,{Ae:function(){return l},In:function(){return n},O4:function(){return g},SP:function(){return S},TK:function(){return d},f7:function(){return m},je:function(){return c},rl:function(){return h}});var a=e(2657),t=e.n(a),o=e(17410),s,n=function(w){return w.Radio="radio",w.Checkbox="checkbox",w.Text="text",w}({}),d=function(w){return w[w.Unchecked=0]="Unchecked",w[w.Checked=1]="Checked",w[w.Commited=2]="Commited",w}({}),l=function(w){return w.Rect="rect",w.Point="point",w.Stroke="stroke",w.EdgeStitch="edgeStitch",w.Modify="modify",w.Text="text",w}({}),c={View:0,Edit:1,Review:2},m={initialized:!1,selectedTool:o.ru.Drag,selectedSubTool:o.jB.PenAdd,selectedModel:(s={},t()(s,o.ru.Drag,void 0),t()(s,o.ru.Rectangle,void 0),t()(s,o.ru.Mask,void 0),t()(s,o.ru.Skeleton,o.HE.Pose),t()(s,o.ru.Polygon,o.HE.SegmentByPolygon),s),AIAnnotation:!1,objectList:[],classifications:[],activeObjectIndex:-1,activeClassName:"",isJustCreated:!1,creatingObject:void 0,editingAttribute:void 0,highlightCategory:void 0,brushSize:20,pointResolution:.5,prompt:{},isBatchEditing:!1,limitConf:0},g={brightness:100,contrast:100,saturate:100},M={colorByCategory:!0},h={isLoading:!1,isLoadingError:!1,isRequiring:!1,allowMove:!1,latestLabelId:"",startRectResizeAnchor:void 0,startElementMovePoint:void 0,focusObjectIndex:-1,foucsObjectAllIndexs:[],focusEleType:o.Yq.Rect,focusEleIndex:-1,focusPolygonInfo:{index:-1,pointIndex:-1,lineIndex:-1},isCtrlPressed:!1,hideCreatingObject:!1,imageDisplayOptions:g,annotsDisplayOptions:M},S=function(w){return w.Solid="solid",w.Dashed="dash",w.DoubleSolid="double_solid",w.DoubleDashed="double_dash",w.LDashedRSolid="left_dash-right_solid",w.LSolidRDashed="left_solid-right_dash",w.LCurbside="left_curbside",w.RCurbside="right_curbside",w.Unknown="none",w}({})},14464:function(b,y,e){"use strict";e.d(y,{Cj:function(){return c},WE:function(){return h},ZT:function(){return o},a7:function(){return d},dX:function(){return n},g9:function(){return g},wj:function(){return m}});var a=e(34485),t=e.n(a),o=function(C){return C.length!==3?"transparent":"#".concat(C[0].toString(16).padStart(2,"0")).concat(C[1].toString(16).padStart(2,"0")).concat(C[2].toString(16).padStart(2,"0")).toUpperCase()},s=function(C){var F=/^rgba?\((\d+),\s*(\d+),\s*(\d+)\)$/i.exec(C);return F?o(F):"transparent"},n=function(C){var F=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Z=C.replace(F,function(L,$,D,T){return $+$+D+D+T+T}),N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(Z);return N?[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)]:[0,0,0]},d=function(C){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Z=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,N=C.replace(Z,function(D,T,j,K){return T+T+j+j+K+K}),L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(N),$=F<0||F>1?1:F;return L?"rgba(".concat(parseInt(L[1],16),",").concat(parseInt(L[2],16),",").concat(parseInt(L[3],16),",").concat($,")"):"transparent"},l=function(C){for(var F=["#FFFF00","#FF0000","#0000FF","#00FF00","#FF00FF","#00FFFF"],Z=[255,128,64,32,16,8,4,2,1],N=F.length+1;F.length0)if(L[T%3]+Z[Math.floor(T/3)]<=255)L[T%3]+=Z[Math.floor(T/3)];else{D=!1;break}$<<=1}if(D){var j="#".concat(L[0].toString(16).padStart(2,"0")).concat(L[1].toString(16).padStart(2,"0")).concat(L[2].toString(16).padStart(2,"0")).toUpperCase();F.includes(j)||F.push(j)}}return F},c=function(C){if(!C.length)return{};var F=t()(C),Z=l(F.length),N={};return F.forEach(function(L,$){N[L]=Z[$]}),N},m=function(C,F){return C.length!==3?"transparent":"rgba(".concat(C[0],", ").concat(C[1],", ").concat(C[2],", ").concat(F,")")},g=function(C){var F=C.slice(5,-1).split(",").map(function(Z){return Z.trim()});return F.length!==4||isNaN(parseFloat(F[3]))?[]:F.slice(0,3)},M=function(C,F){if(!C)return"rgba(0,0,0,0)";var Z=C.substring(5,C.length-1).split(",").map(function($){return parseInt($.trim())}),N=[].concat(_toConsumableArray(Z.slice(0,3)),[F]),L="rgba(".concat(N.join(","),")");return L},h=function(C,F,Z){var N=Z*F,L=N*(1-Math.abs(C*6%2-1)),$=Z-N,D=0,T=0,j=0;return C<1/6?(D=N,T=L):C<2/6?(D=L,T=N):C<3/6?(T=N,j=L):C<4/6?(T=L,j=N):C<5/6?(D=L,j=N):(D=N,j=L),[Math.round((D+$)*255),Math.round((T+$)*255),Math.round((j+$)*255)]},S=function(){var w=.618033988749895,C=0;return function(){C=(C+w)%1;var F=h(C,.8,.95);return o(F)}}()},46134:function(b,y,e){"use strict";e.d(y,{$G:function(){return G},$S:function(){return q},A7:function(){return D},AR:function(){return N},A_:function(){return We},Ak:function(){return R},Ap:function(){return X},Aw:function(){return O},E5:function(){return je},I4:function(){return Le},Iw:function(){return Et},JP:function(){return W},Nm:function(){return nt},OX:function(){return A},Oh:function(){return P},Qo:function(){return H},RF:function(){return Xe},U8:function(){return Ne},Uy:function(){return $},Vh:function(){return L},Vi:function(){return re},X6:function(){return Oe},XR:function(){return Q},YO:function(){return Z},Yc:function(){return _t},Z0:function(){return $e},Z4:function(){return se},ZU:function(){return we},aF:function(){return st},aH:function(){return wt},cO:function(){return x},cU:function(){return k},cf:function(){return Ve},cx:function(){return le},e4:function(){return Ot},el:function(){return _},hv:function(){return it},i$:function(){return ie},jt:function(){return pe},kh:function(){return V},kq:function(){return te},l1:function(){return ae},lT:function(){return et},my:function(){return ne},nF:function(){return Be},o7:function(){return Wt},s5:function(){return me},t9:function(){return F},tQ:function(){return Me},uN:function(){return Je},yn:function(){return U}});var a=e(34485),t=e.n(a),o=e(63900),s=e.n(o),n=e(88479),d=e.n(n),l=e(88205),c=e.n(l),m=e(39378),g=e.n(m),M=e(17410),h=e(34095),S=e(67761),w=e(50910),C=e(14464),F=function(ze,tt,St,lt){if(!ze||!tt)return[0,0,1];if(!St)return[ze/tt*(lt||0),lt||0,1];if(!lt)return[St||0,tt/ze*(St||0),1];var Gt=ze,Nt=tt,At=1;return ze/tt>=St/lt?(Gt=St,Nt=tt*St/ze,At=St/ze):(Nt=lt,Gt=ze*lt/tt,At=lt/tt),[Gt||0,Nt||0,At]},Z=function(ze,tt,St){var lt=c()(ze,2),Gt=lt[0],Nt=Gt===void 0?0:Gt,At=lt[1],Ie=At===void 0?0:At;return{x:Nt/tt.width*St.width,y:Ie/tt.height*St.height}},N=function(ze,tt,St){var lt=c()(ze,2),Gt=lt[0],Nt=Gt===void 0?0:Gt,At=lt[1],Ie=At===void 0?0:At;return{x:Nt/St.width*tt.width,y:Ie/St.height*tt.height}},L=function(ze,tt,St){var lt=[];if(!ze)return lt;var Gt=ze.split("/");return Gt==null||Gt.forEach(function(Nt){for(var At=[],Ie=Nt.split(",").map(Number),Se=0;SeSt.width?St.width:tt.x,y:tt.y<0?0:tt.y>St.height?St.height:tt.y};return{x:Math.min(ze.x,lt.x),y:Math.min(ze.y,lt.y),width:Math.abs(ze.x-lt.x),height:Math.abs(ze.y-lt.y)}},T=function(ze){var tt=1/0,St=1/0,lt=-1/0,Gt=-1/0,Nt=d()(ze),At;try{for(Nt.s();!(At=Nt.n()).done;){var Ie=At.value;tt=Math.min(tt,Ie.x),St=Math.min(St,Ie.y),lt=Math.max(lt,Ie.x),Gt=Math.max(Gt,Ie.y)}}catch(Se){Nt.e(Se)}finally{Nt.f()}return{minX:tt,minY:St,maxX:lt,maxY:Gt}},j=function(ze,tt,St){return{x:tt*ze.x,y:St*ze.y}},K=function(ze,tt,St){return{x:ze.x+tt,y:ze.y+St}},k=function(ze,tt){var St=T(ze),lt=St.minX,Gt=St.minY,Nt=St.maxX,At=St.maxY,Ie=tt.width/(Nt-lt),Se=tt.height/(At-Gt),bt=ze.map(function(jt){var He=K(jt,-lt,-Gt),qe=j(He,Ie,Se),$t=K(qe,tt.x,tt.y);return s()(s()({},jt),$t)});return bt},te=function(ze,tt){return{xmin:ze.x/tt.width,ymin:ze.y/tt.height,xmax:(ze.x+ze.width)/tt.width,ymax:(ze.y+ze.height)/tt.height}},V=function(ze){return{xmin:ze.x,ymin:ze.y,xmax:ze.x+ze.width,ymax:ze.y+ze.height}},q=function(ze,tt,St){return{x:ze.x*St.width/tt.width,y:ze.y*St.height/tt.height,width:ze.width*St.width/tt.width,height:ze.height*St.height/tt.height}},le=function(ze,tt,St){var lt=q(ze,tt,St);return[lt.x,lt.y,lt.x+lt.width,lt.y+lt.height]},X=function(ze,tt,St){return{x:ze.x*St.width/tt.width,y:ze.y*St.height/tt.height}},W=function(ze,tt,St){return{x:(ze[0]||0)/tt.width*St.width,y:(ze[1]||0)/tt.height*St.height,width:((ze[2]||0)-(ze[0]||0))/tt.width*St.width,height:((ze[3]||0)-(ze[1]||0))/tt.height*St.height}},x=function(ze,tt){return{x:(ze.xmin||0)*tt.width,y:(ze.ymin||0)*tt.height,width:((ze.xmax||0)-(ze.xmin||0))*tt.width,height:((ze.ymax||0)-(ze.ymin||0))*tt.height}},O=function(ze){return{x:ze.xmin,y:ze.ymin,width:ze.xmax-ze.xmin,height:ze.ymax-ze.ymin}},_=function(ze,tt,St,lt,Gt){for(var Nt=[],At=0;At*6=0&&ze.elementX<=ze.elementW&&ze.elementY>=0&&ze.elementY<=ze.elementH},ge=function(ze,tt){return{x:ze.x-tt.x,y:ze.y-tt.y,width:ze.width+2*tt.x,height:ze.height+2*tt.y}},be=function(ze,tt){return s()(s()({},ze),{},{radius:tt})};function Te(yt,ze,tt){var St={x:ze.x-yt.x,y:ze.y-yt.y},lt={x:tt.x-yt.x,y:tt.y-yt.y};return St.x*lt.y-St.y*lt.x}var Ge=function(ze,tt,St){if(!ze||!tt)return!1;switch(St){case M.Yq.Rect:{var lt=ze;return lt.x<=tt.x&<.x+lt.width>=tt.x&<.y<=tt.y&<.y+lt.height>=tt.y}case M.Yq.Circle:{var Gt=ze;return Math.sqrt(Math.pow(tt.x-Gt.x,2)+Math.pow(tt.y-Gt.y,2))<=Gt.radius}case M.Yq.Polygon:{for(var Nt=ze,At=1;At0&&Ie*bt>0)return!0}return!1}default:return!1}},Je=function(ze,tt){var St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,lt=be(ze,St),Gt={x:tt.elementX,y:tt.elementY};return Ge(lt,Gt,M.Yq.Circle)},Qe=function(ze,tt){var St=tt.elementX,lt=tt.elementY,Gt=Math.sqrt(Math.pow(St-ze.start.x,2)+Math.pow(lt-ze.start.y,2)),Nt=Math.sqrt(Math.pow(St-ze.end.x,2)+Math.pow(lt-ze.end.y,2)),At=Math.sqrt(Math.pow(ze.end.x-ze.start.x,2)+Math.pow(ze.end.y-ze.start.y,2)),Ie=.75;return Gt+Nt>=At-Ie&&Gt+Nt<=At+Ie},pt=function(ze){var tt=T(ze),St=tt.maxX,lt=tt.minX,Gt=tt.maxY,Nt=tt.minY;return{x:lt,y:Nt,width:St-lt,height:Gt-Nt}},Et=function(ze){for(var tt=[],St=0;St0)return!0}break}}return!1},Wt=function(ze,tt){var St,lt=M.Yq.None,Gt=-1,Nt={index:-1,pointIndex:-1,lineIndex:-1};if(!pe(ze)||tt.hidden)return{focusEleType:lt,focusEleIndex:Gt,focusPolygonInfo:Nt};if((St=tt.keypoints)!==null&&St!==void 0&&St.points)for(var At=tt.keypoints.points,Ie=0;Ie-1)return Nt.index=$t,Nt.pointIndex=Zt,{focusEleType:M.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:Nt}}for(var qt=0;qt-1)return Nt.index=qt,Nt.lineIndex=xn,{focusEleType:M.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:Nt}}var pn=qe.findIndex(function(Gn){return Ge(Gn,{x:ze.elementX,y:ze.elementY},M.Yq.Polygon)});if(pn>-1)return Nt.index=pn,{focusEleType:M.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:Nt}}return tt.rect&&Ge(ge(tt.rect,{x:8,y:8}),{x:ze.elementX,y:ze.elementY},M.Yq.Rect)?(lt=M.Yq.Rect,Gt=0,{focusEleType:lt,focusEleIndex:Gt,focusPolygonInfo:Nt}):{focusEleType:lt,focusEleIndex:Gt,focusPolygonInfo:Nt}},$e=function(ze,tt,St,lt){var Gt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!0};if(!pe(tt))return-1;if(lt[St]&&Gt(lt[St])&&ft(tt,lt[St],ze))return St;for(var Nt=lt.length-1;Nt>=0;Nt--)if(Gt(lt[Nt])&&ft(tt,lt[Nt],ze))return Nt;return-1},Xe=function(ze,tt,St){var lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(!pe(tt))return[];for(var Gt=[],Nt=St.length-1;Nt>=0;Nt--)lt(St[Nt])&&ft(tt,St[Nt],ze)&&Gt.push(Nt);return Gt},nt=function(yt){return yt.TOP="TOP",yt.BOTTOM="BOTTOM",yt.LEFT="LEFT",yt.RIGHT="RIGHT",yt.TOP_RIGHT="TOP_RIGHT",yt.TOP_LEFT="TOP_LEFT",yt.BOTTOM_RIGHT="BOTTOM_RIGHT",yt.BOTTOM_LEFT="BOTTOM_LEFT",yt.CENTER="CENTER",yt}({}),Ke=function(ze){return Math.floor(ze)+.5},ye=function(ze){return{x:Ke(ze.x),y:Ke(ze.y)}},ne=function(ze){var tt={x:ze.x,y:ze.y},St={x:ze.x+ze.width,y:ze.y+ze.height},lt=ye(tt),Gt=ye(St);return{x:lt.x,y:lt.y,width:Gt.x-lt.x,height:Gt.y-lt.y}},H=function(ze){return[{type:nt.TOP_LEFT,position:{x:ze.x,y:ze.y}},{type:nt.TOP,position:{x:ze.x+.5*ze.width,y:ze.y}},{type:nt.TOP_RIGHT,position:{x:ze.x+ze.width,y:ze.y}},{type:nt.LEFT,position:{x:ze.x,y:ze.y+.5*ze.height}},{type:nt.RIGHT,position:{x:ze.x+ze.width,y:ze.y+.5*ze.height}},{type:nt.BOTTOM_LEFT,position:{x:ze.x,y:ze.y+ze.height}},{type:nt.BOTTOM,position:{x:ze.x+.5*ze.width,y:ze.y+ze.height}},{type:nt.BOTTOM_RIGHT,position:{x:ze.x+ze.width,y:ze.y+ze.height}}]},R=function(ze,tt){return s()({x:ze.x-.5*tt.width,y:ze.y-.5*tt.height},tt)},P=function(ze,tt){for(var St=H(ze),lt=0;ltSt.elementW?St.elementW:St.elementX,At=St.elementY<0?0:St.elementY>St.elementH?St.elementH:St.elementY,Ie={x:Nt,y:At};switch(lt){case nt.RIGHT:Ie.y=ze.y+ze.height;break;case nt.BOTTOM:Ie.x=ze.x+ze.width;break;case nt.LEFT:Ie.y=ze.y;break;case nt.TOP:Ie.x=ze.x;break}return D(Gt,Ie,{width:St.elementW,height:St.elementH})},ie=function(ze,tt,St){var lt=ze.width,Gt=ze.height,Nt=tt.topLeftPoint,At=tt.mousePoint,Ie=St.elementX-At.x,Se=St.elementY-At.y,bt=Nt.x+Ie,jt=Nt.y+Se;return{x:bt<0?0:bt+lt>St.elementW?St.elementW-lt:bt,y:jt<0?0:jt+Gt>St.elementH?St.elementH-Gt:jt,width:lt,height:Gt}},me=function(ze,tt,St){var lt=tt.mousePoint,Gt=St.elementX,Nt=St.elementY,At=St.elementW,Ie=St.elementH,Se=T(ze),bt=Se.minX,jt=Se.minY,He=Se.maxX,qe=Se.maxY,$t=Gt-lt.x,Zt=Nt-lt.y;$t=$t+He>At?At-He:$t+bt<0?0:$t,Zt=Zt+qe>Ie?Ie-qe:Zt+jt<0?0:Zt;var qt=ze.map(function(un){return{x:un.x+$t,y:un.y+Zt}});return qt},je=function(ze){var tt=ze.elementX,St=ze.elementY;return{x:tt<0?0:tt>ze.elementW?ze.elementW:tt,y:St<0?0:St>ze.elementH?ze.elementH:St}},Ee=function(ze){return!(!(0,m.isNumber)(ze.x)||!(0,m.isNumber)(ze.y)||!(0,m.isNumber)(ze.width)||!(0,m.isNumber)(ze.height)||ze.x===0&&ze.y===0&&ze.width===0&&ze.height===0)},Me=function(ze){return ze.maskRle?M.gr.Mask:ze.alpha?M.gr.Matting:ze.keypoints?M.gr.Skeleton:ze.polygon?M.gr.Polygon:ze.point?M.gr.Point:ze.rect&&Ee(ze.rect)?M.gr.Rectangle:ze.polyline?M.gr.Polyline:M.gr.Custom},We=function(ze,tt,St){var lt=ze.group.map(function(Gt){return Gt.reduce(function(Nt,At){var Ie=At.x,Se=At.y,bt=N([Ie,Se],tt,St);return Nt.concat([bt.x,bt.y])},[])});return lt},re=function(ze,tt,St){var lt=We(ze,tt,St),Gt=lt.map(function(Nt){return Nt.join(",")}).join("/")||"";return Gt},se=function(ze,tt,St){var lt={x:ze.x-tt.x,y:ze.y-tt.y},Gt={x:St.x-tt.x,y:St.y-tt.y},Nt=Gt.x*Gt.x+Gt.y*Gt.y,At=lt.x*Gt.x+lt.y*Gt.y,Ie=At/Nt;return Ie<0||isNaN(Ie)?Ie=0:Ie>1&&(Ie=1),{x:tt.x+Gt.x*Ie,y:tt.y+Gt.y*Ie}},J=function(ze,tt){return{x:(ze.x+tt.x)/2,y:(ze.y+tt.y)/2}},de=function(ze){var tt=ze.x,St=ze.y,lt=ze.width,Gt=ze.height,Nt={x:tt,y:St},At={x:tt+lt,y:St},Ie={x:tt,y:St+Gt},Se={x:tt+lt,y:St+Gt},bt={x:tt+lt/2,y:St},jt={x:tt+lt/2,y:St+Gt},He={x:tt,y:St+Gt/2},qe={x:tt+lt,y:St+Gt/2},$t={x:tt+lt/2,y:St+Gt/2};return[Nt,At,Ie,Se,bt,jt,He,qe,$t]},xe=function(ze,tt){var St=T(ze),lt=T(tt);if(lt.minX>=St.maxX||lt.maxX<=St.minX||lt.minY>=St.maxY||lt.maxY<=St.minY)return!1;var Gt=_createForOfIteratorHelper(ze),Nt;try{for(Gt.s();!(Nt=Gt.n()).done;){var At=Nt.value;if(!Ge(tt,At,EElementType.Polygon))return!1}}catch(Ie){Gt.e(Ie)}finally{Gt.f()}return!0},ce=function(ze){for(var tt=[],St=0;Stlt&&(0,m.isEqual)((0,m.omitBy)(bt,m.isUndefined),(0,m.omitBy)(Se[lt],m.isUndefined))?qe=At:!He&&At.type===M.gr.Mask&&qe.maskRle&&At.labelId!==bt.labelId&&(qe.maskCanvasElement=(0,S.ei)(qe.maskRle,Gt,At.color)),s()(s()({},qe),{},{type:At.type,labelId:At.labelId,hidden:At.hidden,color:At.color,customStyles:At.customStyles,attributes:At.attributes,status:At.status,frameEmpty:He})})}),Nt},xt=function(ze){var tt,St;if(ze.activeObjectIndex>=0&&(tt=ze.objectList)!==null&&tt!==void 0&&tt[ze.activeObjectIndex]&&!((St=ze.objectList)!==null&&St!==void 0&&St[ze.activeObjectIndex].frameEmpty)){var lt;ze.creatingObject=_objectSpread(_objectSpread({},ze.creatingObject),(lt=ze.objectList)===null||lt===void 0?void 0:lt[ze.activeObjectIndex]);return}ze.prompt={},ze.creatingObject=void 0},Ht=function(ze,tt,St){var lt=ze.x,Gt=ze.y,Nt=tt.width,At=tt.height,Ie=St.elementW,Se=St.elementH;if(lt>Ie||Gt>Se||lt+Nt<=0||Gt+At<=0)return{xmin:0,ymin:0,xmax:0,ymax:0};var bt={x:Math.max(0,lt),y:Math.max(0,Gt)},jt={x:Math.min(lt+Nt,Ie),y:Math.min(Gt+At,Se)},He={x:ze.x,y:ze.y},qe=st(bt,He),$t=qe.x,Zt=qe.y,qt=st(jt,He),un=qt.x,xn=qt.y;return{xmin:$t,ymin:Zt,xmax:un,ymax:xn}},Ot=function(ze){for(var tt=ze.getContext("2d",{willReadFrequently:!0}),St=tt.getImageData(0,0,ze.width,ze.height),lt=St.data,Gt=St.width,Nt=St.height,At=Gt,Ie=Nt,Se=0,bt=0,jt=0,He=0;He0){var $t=He/4%Gt,Zt=Math.floor(He/4/Gt);jt++,At=Math.min(At,$t),Ie=Math.min(Ie,Zt),Se=Math.max(Se,$t),bt=Math.max(bt,Zt)}}var qt={xmin:At,ymin:Ie,xmax:Se,ymax:bt};return{area:jt,bbox:qt}},wt=function(ze){var tt,St;if(!ze||ze.length<2||((tt=ze[0])===null||tt===void 0?void 0:tt.length)!==((St=ze[1])===null||St===void 0?void 0:St.length))return[];for(var lt=c()(ze,2),Gt=lt[0],Nt=lt[1],At=[],Ie=0;Ie3&&arguments[3]!==void 0?arguments[3]:"#111111",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5?arguments[5]:void 0,O=V.getContext("2d");O.save(),O.strokeStyle=X,O.lineWidth=W,O.lineCap="round",O.beginPath(),x&&O.setLineDash(x),O.moveTo(q.x,q.y),O.lineTo(le.x+1,le.y+1),O.stroke(),O.restore()}function h(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#111111",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,W=arguments.length>4?arguments[4]:void 0,x=V.getContext("2d");x.save(),x.strokeStyle=le,x.lineWidth=X,x.lineCap="round",x.lineJoin="round",W&&x.setLineDash(W),x.beginPath(),x.moveTo(q[0].x,q[0].y);for(var O=1,_=q.length;O<_;O++)x.lineTo(q[O].x,q[O].y);x.stroke(),x.restore()}var S=function(q,le){return{x:q.x+(le.x-q.x)/2,y:q.y+(le.y-q.y)/2}};function w(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#111111",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:20,W=arguments.length>4?arguments[4]:void 0,x=V.getContext("2d");x.save(),x.strokeStyle=le,x.lineWidth=X,x.lineCap="round",x.lineJoin="round",W&&x.setLineDash(W),x.beginPath();var O=q[0],_=q[1];x.moveTo(O.x,O.y);for(var U=1,A=q.length;U2&&arguments[2]!==void 0?arguments[2]:"#fff",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,W=arguments.length>4?arguments[4]:void 0,x=arguments.length>5?arguments[5]:void 0;if(V){var O=V.getContext("2d");O.save(),O.strokeStyle=le,O.lineWidth=X,O.beginPath(),W&&O.setLineDash(W),O.rect(q.x,q.y,q.width,q.height),O.stroke(),x&&(O.fillStyle=x,O.fill()),O.restore()}}function F(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#fff";if(V){var X=V.getContext("2d");X.save(),X.fillStyle=le,X.beginPath(),X.rect(q.x,q.y,q.width,q.height),X.fill(),X.restore()}}function Z(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#000",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5,W=V.getContext("2d");W.save(),W.fillStyle=le,W.globalAlpha=X,W.fillRect(0,0,V.width,V.height),W.globalCompositeOperation="destination-out",W.globalAlpha=1,W.fillRect(q.x,q.y,q.width,q.height),W.restore()}function N(V){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0},le=arguments.length>2?arguments[2]:void 0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1;if(V){var x=V.getContext("2d");x.save(),x.strokeStyle=X,x.lineWidth=W,x.beginPath();var O=q.x,_=q.y;x.moveTo(le[0].x+O,le[0].y+_);for(var U=1;U1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0},le=arguments.length>2?arguments[2]:void 0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5?arguments[5]:void 0;if(V){var O=V.getContext("2d");O.save(),O.strokeStyle=X,O.lineWidth=W,x&&O.setLineDash(x),O.beginPath();var _=q.x,U=q.y;O.moveTo(le[0].x+_,le[0].y+U);for(var A=1;A2&&arguments[2]!==void 0?arguments[2]:"#fff",X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5?arguments[5]:void 0;if(V){var O=V.getContext("2d");O.save(),O.fillStyle=le,O.strokeStyle=X,O.lineWidth=W,x&&O.setLineDash(x),O.beginPath(),O.moveTo(q[0].x,q[0].y);for(var _=1;_0&&O.stroke(),O.fill(),O.restore()}}function T(V,q,le,X){var W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#ffffff",x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,O=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"center",_=V.getContext("2d");_.save(),_.fillStyle=W,_.textAlign=O,_.textBaseline="top",_.font=(x?"bold ":"")+le+"px Arial",_.fillText(q,X.x,X.y),_.restore()}function j(V,q,le){var X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#ffffff",W=arguments.length>4?arguments[4]:void 0,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#000",O=V.getContext("2d");O.save();var _=o(0),U=o(360);O.lineWidth=W||0,O.strokeStyle=x,O.fillStyle=X,O.beginPath(),O.arc(q.x,q.y,le,_,U,!1),O.stroke(),O.fill(),O.restore()}function K(V,q,le,X,W){var x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,O=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"#ffffff",_=V.getContext("2d"),U=o(X),A=o(W);_.save(),_.strokeStyle=O,_.lineWidth=x,_.beginPath(),_.arc(q.x,q.y,le,U,A,!1),_.stroke(),_.restore()}function k(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#fff",x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1,O=arguments.length>6?arguments[6]:void 0,_=V.getContext("2d");_.save(),_.fillStyle=X,_.strokeStyle=W,_.lineWidth=x,_.lineCap="round",_.lineJoin="round",O&&_.setLineDash(O),_.beginPath(),_.moveTo(q[0].x,q[0].y);for(var U=1;U0&&_.stroke(),_.fill()),_.restore()}function te(V,q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#111111",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,O=arguments.length>6?arguments[6]:void 0,_=V.getContext("2d");_.save(),_.strokeStyle=X,_.lineWidth=x,_.lineCap="round",_.lineJoin="round",_.beginPath(),O&&_.setLineDash(O);var U=q[0],A=q[1];_.moveTo(U.x,U.y);for(var G=1,fe=q.length;G0&&(_.globalCompositeOperation="destination-out",_.strokeStyle=X,_.stroke(),_.strokeStyle=(0,t.a7)(X,W),_.globalCompositeOperation="source-over",_.stroke()):(_.globalCompositeOperation="destination-out",_.stroke()),_.restore()}},28638:function(b,y,e){"use strict";e.d(y,{Z:function(){return re}});var a=e(39800),t=e(97375),o=e(2556),s=e(12562),n=e(33010),d=e(53357),l=e(58757),c=e(60698),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},g=m,M=e(17202),h=function(J,de){return l.createElement(M.Z,(0,c.Z)({},J,{ref:de,icon:g}))},S=l.forwardRef(h),w=e(59504),C=e(35667),F=function(J){var de=J.categories,xe=J.filterCategoryName,ce=J.onSelectFilter,Le=J.onClearFilter;return(0,C.jsxs)("div",{className:"dds-quicklabel-image-filter",children:[(0,C.jsx)("div",{children:(0,d._w)("quicklabel.imageFilter")}),(0,C.jsx)(w.Z,{style:{width:150},showSearch:!0,placeholder:(0,d._w)("quicklabel.allCategories"),size:"middle",value:xe,onChange:ce,popupClassName:"filter-options-popup",onClick:function(we){return we.stopPropagation()},onKeyUp:function(we){return we.stopPropagation()},onInputKeyDown:function(we){we.code!=="Enter"&&we.stopPropagation()},dropdownRender:function(we){return(0,C.jsxs)(C.Fragment,{children:[we,(0,C.jsx)(s.ZP,{type:"text",icon:(0,C.jsx)(S,{}),onClick:Le,children:(0,d._w)("quicklabel.clearFilter")})]})},children:de==null?void 0:de.map(function(Oe){return(0,C.jsx)(w.Z.Option,{value:Oe.name,children:Oe.name},Oe.name)})})]})},Z=F,N=e(88205),L=e.n(N),$=e(18695),D=function(J){var de=J.images,xe=J.selected,ce=J.onImageSelected,Le=(0,l.useState)(0),Oe=L()(Le,2),we=Oe[0],Ne=Oe[1],st=120,et=(0,l.useCallback)(function(){var ke=document.getElementById("image-options-container");if(ke){var Be=ke.offsetHeight||0;Ne(Be-56)}},[]);(0,l.useEffect)(function(){return et(),window.addEventListener("resize",et),function(){window.removeEventListener("resize",et)}},[et]);var Ye=function(Be){Be<0||Be>=de.length||ce(Be)};return(0,C.jsx)("div",{id:"image-options-container",className:"dds-quicklabel-options-list",children:(0,C.jsx)($.Z,{className:"dds-quicklabel-options-list-virtual",data:de,height:we,fullHeight:!0,itemHeight:st,itemKey:"id",children:function(Be,it){var Ve=it===xe?"dds-quicklabel-options-list-image-selected":"";return(0,C.jsx)("div",{children:(0,C.jsx)("img",{className:"dds-quicklabel-options-list-image ".concat(Ve),src:Be.url,onClick:function(){return Ye(it)}},Be.id)})}})})},T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},j=T,K=function(J,de){return l.createElement(M.Z,(0,c.Z)({},J,{ref:de,icon:j}))},k=l.forwardRef(K),te=e(62109),V=e(15618),q=e(51830),le=e(24454),X=e.n(le),W=e(34485),x=e.n(W),O=e(88479),_=e.n(O),U=e(56592),A=e.n(U),G=e(84045),fe=e(79233),pe=e(23671),ge=e(68716),be=e(8851),Te=function(se,J){J===void 0&&(J={});var de=(0,pe.Z)(J),xe=(0,l.useRef)();(0,be.Z)(function(){var ce=(0,ge.n)(se);if(ce!=null&&ce.addEventListener){var Le=function(Ye,ke){var Be=Ye.getData("text/uri-list"),it=Ye.getData("custom");if(it&&de.current.onDom){var Ve=it;try{Ve=JSON.parse(it)}catch(xt){Ve=it}de.current.onDom(Ve,ke);return}if(Be&&de.current.onUri){de.current.onUri(Be,ke);return}if(Ye.files&&Ye.files.length&&de.current.onFiles){de.current.onFiles(Array.from(Ye.files),ke);return}Ye.items&&Ye.items.length&&de.current.onText&&Ye.items[0].getAsString(function(xt){de.current.onText(xt,ke)})},Oe=function(Ye){var ke,Be;Ye.preventDefault(),Ye.stopPropagation(),xe.current=Ye.target,(Be=(ke=de.current).onDragEnter)===null||Be===void 0||Be.call(ke,Ye)},we=function(Ye){var ke,Be;Ye.preventDefault(),(Be=(ke=de.current).onDragOver)===null||Be===void 0||Be.call(ke,Ye)},Ne=function(Ye){var ke,Be;Ye.target===xe.current&&((Be=(ke=de.current).onDragLeave)===null||Be===void 0||Be.call(ke,Ye))},st=function(Ye){var ke,Be;Ye.preventDefault(),Le(Ye.dataTransfer,Ye),(Be=(ke=de.current).onDrop)===null||Be===void 0||Be.call(ke,Ye)},et=function(Ye){var ke,Be;Le(Ye.clipboardData,Ye),(Be=(ke=de.current).onPaste)===null||Be===void 0||Be.call(ke,Ye)};return ce.addEventListener("dragenter",Oe),ce.addEventListener("dragover",we),ce.addEventListener("dragleave",Ne),ce.addEventListener("drop",st),ce.addEventListener("paste",et),function(){ce.removeEventListener("dragenter",Oe),ce.removeEventListener("dragover",we),ce.removeEventListener("dragleave",Ne),ce.removeEventListener("drop",st),ce.removeEventListener("paste",et)}}},[],se)},Ge=Te,Je=e(39378),Qe=Object.defineProperty,pt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Wt=(se,J,de)=>J in se?Qe(se,J,{enumerable:!0,configurable:!0,writable:!0,value:de}):se[J]=de,$e=(se,J)=>{for(var de in J||(J={}))Et.call(J,de)&&Wt(se,de,J[de]);if(pt)for(var de of pt(J))ft.call(J,de)&&Wt(se,de,J[de]);return se};const Xe=se=>l.createElement("svg",$e({viewBox:"0 0 91 75",fill:"none",xmlns:"http://www.w3.org/2000/svg"},se),l.createElement("path",{d:"M60.633.007C49.453-.22 37.923 6.255 34.76 20.864c-12.874-4.444-24.497 4.32-23.29 18.315C4.735 41.932 0 48.587 0 56.409 0 66.709 8.199 75 18.383 75h22.33c-.005-6.26-.018-18.818-.018-21.197l-5.237 1.919c-3.8 1.656-6.605-3.183-3.352-6.195l9.909-9.739c2.263-2.288 4.966-2.026 6.97 0l9.909 9.739c3.253 3.012.447 7.85-3.352 6.195l-5.237-1.92V75h22.312C82.801 75 91 66.708 91 56.41c0-7.58-4.45-14.06-10.855-16.96C92.558 14.977 76.972.336 60.633.006Z",fill:"#B9CEFF"}),l.createElement("path",{d:"M60.633.004c-.623-.013-1.306.009-1.93.037-14.278 22.757 7.788 39.403 21.442 39.403C92.558 14.974 76.972.334 60.633.004Z",fill:"#739EFF"}));var nt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTEgNzUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYwLjYzMy4wMDdDNDkuNDUzLS4yMiAzNy45MjMgNi4yNTUgMzQuNzYgMjAuODY0Yy0xMi44NzQtNC40NDQtMjQuNDk3IDQuMzItMjMuMjkgMTguMzE1QzQuNzM1IDQxLjkzMiAwIDQ4LjU4NyAwIDU2LjQwOSAwIDY2LjcwOSA4LjE5OSA3NSAxOC4zODMgNzVoMjIuMzNjLS4wMDUtNi4yNi0uMDE4LTE4LjgxOC0uMDE4LTIxLjE5N2wtNS4yMzcgMS45MTljLTMuOCAxLjY1Ni02LjYwNS0zLjE4My0zLjM1Mi02LjE5NWw5LjkwOS05LjczOWMyLjI2My0yLjI4OCA0Ljk2Ni0yLjAyNiA2Ljk3IDBsOS45MDkgOS43MzljMy4yNTMgMy4wMTIuNDQ3IDcuODUtMy4zNTIgNi4xOTVsLTUuMjM3LTEuOTJWNzVoMjIuMzEyQzgyLjgwMSA3NSA5MSA2Ni43MDggOTEgNTYuNDFjMC03LjU4LTQuNDUtMTQuMDYtMTAuODU1LTE2Ljk2QzkyLjU1OCAxNC45NzcgNzYuOTcyLjMzNiA2MC42MzMuMDA2WiIgZmlsbD0iI0I5Q0VGRiIvPjxwYXRoIGQ9Ik02MC42MzMuMDA0Yy0uNjIzLS4wMTMtMS4zMDYuMDA5LTEuOTMuMDM3LTE0LjI3OCAyMi43NTcgNy43ODggMzkuNDAzIDIxLjQ0MiAzOS40MDNDOTIuNTU4IDE0Ljk3NCA3Ni45NzIuMzM0IDYwLjYzMy4wMDRaIiBmaWxsPSIjNzM5RUZGIi8+PC9zdmc+",Ke=e(45060),ye=e(23605),ne=e(95073),H=e(87608),R=e.n(H),P=function(J){var de=J.files,xe=J.fileType,ce=J.onRemoveFile,Le=(0,l.useRef)(null),Oe=(0,ne.Z)(Le),we=Oe!=null&&Oe.width&&Oe.width>800?8:5,Ne=(0,l.useMemo)(function(){return(0,Je.chunk)(de,we).map(function(Ot,wt){return{index:wt,rowImages:Ot}})},[de,we]),st=8,et=18,Ye=.75,ke=.95,Be=30,it=(0,l.useMemo)(function(){return Oe!=null&&Oe.width?((Oe==null?void 0:Oe.width)-et*2-(we-1)*st)/we:0},[Oe==null?void 0:Oe.width,we,st]),Ve=(0,l.useMemo)(function(){return it*ke},[it,ke]),xt=(0,l.useMemo)(function(){return Ve*Ye},[Ve,Ye]),Ht=(0,l.useMemo)(function(){return xt+Be+16},[xt,Be]);return(0,C.jsx)("div",{ref:Le,className:"dds-upload-list",children:(0,C.jsx)($.Z,{className:"virtual-list",data:Ne,height:(Oe==null?void 0:Oe.height)||0,fullHeight:!0,itemHeight:Ht,itemKey:"index",children:function(wt,_t){return(0,C.jsx)("div",{className:"row-container",style:{gap:st,padding:"".concat(st,"px ").concat(et,"px")},children:wt.rowImages.map(function(yt,ze){return(0,C.jsxs)("div",{className:R()("preview-container",{"preview-container-success":yt.status==="success","preview-container-error":yt.status==="error"}),style:{width:it},children:[xe==="video"?(0,C.jsx)("video",{className:"file-preview",src:yt.url,style:{width:Ve,height:xt}}):(0,C.jsx)("img",{className:"file-preview",src:yt.url,style:{width:Ve,height:xt}}),(0,C.jsx)("div",{className:"remove-button",children:(0,C.jsx)(s.ZP,{icon:(0,C.jsx)(ye.Z,{}),shape:"circle",danger:!0,onClick:function(St){St.stopPropagation(),ce(_t*we+ze)}})}),(0,C.jsx)("div",{className:"file-name",children:yt.name})]},yt.name)})},_t)}})})},ae=P,Q=function(J){var de=J.fileList,xe=J.setFileList,ce=J.acceptTypes,Le=J.maxCount,Oe=J.maxSize,we=J.maxDuratuion,Ne=J.limitRemoveFile,st=J.fileType,et=(0,d.bU)(),Ye=et.localeText,ke=(0,l.useState)(!1),Be=L()(ke,2),it=Be[0],Ve=Be[1],xt=(0,l.useState)(!1),Ht=L()(xt,2),Ot=Ht[0],wt=Ht[1],_t=(0,l.useRef)(!1),yt=(0,l.useRef)(null),ze=ce?ce.join(", "):void 0,tt=function(){var Nt=A()(X()().mark(function At(Ie){var Se,bt,jt,He,qe;return X()().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:Ve(!0),Se=[],bt=_()(Ie),Zt.prev=3,He=X()().mark(function qt(){var un,xn,pn,Gn;return X()().wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:if(un=jt.value,xn=0,pn=0,Gn=0,!(Oe&&un.size&&un.size/1024/1024>Oe)){ur.next=4;break}return ur.abrupt("return","continue");case 4:if(!(Le&&Se.length+de.length>Le-1)){ur.next=6;break}return ur.abrupt("return","continue");case 6:if(!de.find(function(br){return br.name===un.name})){ur.next=8;break}return ur.abrupt("return","continue");case 8:Se.push({id:un.name,name:un.name,url:URL.createObjectURL(un),originFileObj:un,frameCount:xn,frameRate:pn,duration:Gn});case 9:case"end":return ur.stop()}},qt)}),bt.s();case 6:if((jt=bt.n()).done){Zt.next=13;break}return Zt.delegateYield(He(),"t0",8);case 8:if(qe=Zt.t0,qe!=="continue"){Zt.next=11;break}return Zt.abrupt("continue",11);case 11:Zt.next=6;break;case 13:Zt.next=18;break;case 15:Zt.prev=15,Zt.t1=Zt.catch(3),bt.e(Zt.t1);case 18:return Zt.prev=18,bt.f(),Zt.finish(18);case 21:Ve(!1),Se.length>0&&(xe([].concat(Se,x()(de))),G.ZP.success(Ye("dds-upload.tip.successLoad",{count:Se.length})));case 23:case"end":return Zt.stop()}},At,null,[[3,15,18,21]])}));return function(Ie){return Nt.apply(this,arguments)}}(),St=(0,l.useCallback)(function(Nt){if(!(Ne&&Ne(Nt))){var At=(0,Je.cloneDeep)(de);At.splice(Nt,1),xe(At)}},[de]),lt=function(At){_t.current=!1;var Ie=At.target.files?x()(At.target.files):[];Ie.length>0&&tt(Ie),wt(!1),At.target.value=""},Gt=(0,l.useCallback)(function(){var Nt;if(Le&&de.length>=Le){G.ZP.warning(Ye("dds-upload.tip.fileCountLimitMsg",{count:Le}));return}wt(!0),(Nt=yt.current)===null||Nt===void 0||Nt.click(),_t.current=!0,window.addEventListener("focus",function(){setTimeout(function(){_t.current&&wt(!1)},100)},{once:!0})},[de,Le]);return Ge(window.document.body,{onFiles:function(){var Nt=A()(X()().mark(function Ie(Se,bt){var jt;return X()().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!(Le&&de.length>=Le)){qe.next=3;break}return G.ZP.warning(Ye("dds-upload.tip.fileCountLimitMsg",{count:Le})),qe.abrupt("return");case 3:return qe.next=5,(0,Ke._q)(bt==null?void 0:bt.dataTransfer,ce);case 5:jt=qe.sent,tt(jt);case 7:case"end":return qe.stop()}},Ie)}));function At(Ie,Se){return Nt.apply(this,arguments)}return At}(),onDragEnter:function(){wt(!0)},onDrop:function(){wt(!1)},onDragLeave:function(){wt(!1)}}),(0,C.jsxs)("div",{className:"dds-upload",children:[(0,C.jsx)("input",{ref:yt,type:"file",accept:ze,multiple:!0,onChange:lt}),de.length<=0?(0,C.jsxs)("div",{className:R()("dds-upload-empty",{"dds-upload-draging":Ot}),onClick:Gt,children:[(0,C.jsx)(Xe,{}),(0,C.jsx)("p",{className:"dds-upload-title",children:Ye("dds-upload.title")}),(0,C.jsx)("p",{className:"dds-upload-text",children:Ye(st==="video"?"dds-upload.limit.type.video":"dds-upload.limit.type.image")})]}):(0,C.jsxs)("div",{className:R()("dds-upload-content",{"dds-upload-draging":Ot}),children:[(0,C.jsxs)("div",{className:"dds-upload-topbar",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"dds-upload-title",children:Ye("dds-upload.title")}),(0,C.jsx)("div",{className:"dds-upload-text",children:Ye(st==="video"?"dds-upload.limit.type.video":"dds-upload.limit.type.image")})]}),(0,C.jsx)(s.ZP,{type:"primary",onClick:Gt,children:Ye("dds-upload.upload")})]}),(0,C.jsxs)("div",{className:"dds-upload-content-list",children:[Le&&(0,C.jsxs)("div",{className:"dds-upload-content-list-count",children:[de.length," / ",Le]}),(0,C.jsx)(ae,{files:de,onRemoveFile:St,fileType:st})]})]}),it&&(0,C.jsx)(fe.Z,{size:"large",className:"dds-upload-loading",spinning:it,delay:500})]})},ie=Q,me=1e3,je=10,Ee=function(J){var de=J.open,xe=J.isInit,ce=J.fileList,Le=J.setFileList,Oe=J.onClickOk,we=J.onClickCancel,Ne=J.limitRemoveFile,st=J.okText,et=J.limitClose,Ye=J.uploadPreAnnot,ke=J.onChangePreAnnotFile,Be=J.onRemovePreAnnotFile;return(0,C.jsx)("div",{onMouseDown:function(Ve){return Ve.stopPropagation()},onMouseUp:function(Ve){return Ve.stopPropagation()},children:(0,C.jsxs)(te.Z,{title:(0,d._w)("quicklabel.title"),width:675,open:de,onOk:Oe,onCancel:we,okText:st,okButtonProps:{disabled:ce.length===0},cancelButtonProps:{hidden:et},closable:!et,destroyOnClose:!0,children:[(0,C.jsx)(V.Z,{message:(0,d._w)("quicklabel.formModal.attn"),description:(0,d._w)("quicklabel.formModal.tip"),type:"info",showIcon:!0}),(0,C.jsx)("div",{className:"dds-quicklabel-subtitle",children:(0,d._w)("quicklabel.formModal.importImages")}),(0,C.jsx)("div",{className:"dds-quicklabel-upload",children:(0,C.jsx)(ie,{fileList:ce,setFileList:Le,fileType:"image",acceptTypes:["image/png","image/jpeg","image/jpg"],limitRemoveFile:Ne,maxCount:me,maxSize:je})}),(0,C.jsx)(V.Z,{className:"dds-quicklabel-upload-tip",message:(0,d._w)("quicklabel.formModal.imageTips",{count:me,size:je}),type:"info",showIcon:!0}),xe&&(0,C.jsx)(q.Tn,{uploadFiles:Ye,onChangeFile:ke,onRemoveFile:Be,children:(0,C.jsx)(s.ZP,{icon:(0,C.jsx)(k,{}),className:"dds-quicklabel-upload-preannot-btn",children:(0,d._w)("quicklabel.formModal.importPreAnnots")})})]})})},Me=Ee,We=function(J){var de=J.images,xe=J.filterImages,ce=J.current,Le=J.categories,Oe=J.qsModalVisible,we=J.uploadFiles,Ne=J.uploadPreAnnot,st=J.filterCategoryName,et=J.setImages,Ye=J.setCurrent,ke=J.setCategories,Be=J.setQsModalVisible,it=J.setUploadFiles,Ve=J.limitRemoveFile,xt=J.onCancelUploadFiles,Ht=J.onConfirmUploadFiles,Ot=J.exportAnnotations,wt=J.onChangePreAnnotFile,_t=J.onRemovePreAnnotFile,yt=J.onSelectFilterCategory,ze=J.onClearFilterCategory;(0,l.useEffect)(function(){de.length<=0&&Be(!0)},[]),(0,o.Z)("uparrow",function(){Ye(Math.max(0,ce-1))},{exactMatch:!0}),(0,o.Z)("downarrow",function(){Ye(Math.min(ce+1,de.length-1))},{exactMatch:!0});var tt=function(lt,Gt){if(xe[ce]){var Nt=xe[ce].originalIndex;et(function(At){At[Nt]&&(At[Nt].objects=lt,At[Nt].width=Gt.width,At[Nt].height=Gt.height)})}};return(0,C.jsxs)("div",{className:"dds-quicklabel",children:[(0,C.jsxs)("div",{className:"dds-quicklabel-list",onMouseDown:function(lt){lt.stopPropagation()},onMouseUp:function(lt){lt.stopPropagation()},children:[(0,C.jsx)(s.ZP,{type:"primary",icon:(0,C.jsx)(a.Z,{}),onClick:function(){Be(!0)},children:(0,d._w)("quicklabel.setting")}),(0,C.jsx)(D,{images:xe,selected:ce,onImageSelected:function(lt){Ye(lt)}})]}),(0,C.jsx)("div",{className:"dds-quicklabel-workspace",children:(0,C.jsx)(n.kl,{isOldMode:!0,isSeperate:!0,visible:!0,mode:n.je.Edit,categories:Le,setCategories:ke,list:xe,current:ce,titleElements:[(0,C.jsx)(Z,{categories:Le,filterCategoryName:st,onSelectFilter:yt,onClearFilter:ze},"image-filters")],actionElements:[(0,C.jsx)(s.ZP,{type:"primary",onClick:Ot,children:(0,d._w)("quicklabel.export")},"export")],onAutoSave:tt,onCancel:function(){return t.history.push("/")}})}),(0,C.jsx)(Me,{open:Oe,isInit:de.length===0,fileList:we,setFileList:it,limitRemoveFile:Ve,okText:(0,d._w)("quicklabel.formModal.confirm"),onClickCancel:xt,onClickOk:Ht,limitClose:de.length<=0,uploadPreAnnot:Ne,onChangePreAnnotFile:wt,onRemovePreAnnotFile:_t})]})},re=We},51830:function(b,y,e){"use strict";e.d(y,{ii:function(){return Qe},ZJ:function(){return nt},mn:function(){return n},fL:function(){return h},Qs:function(){return Et},xA:function(){return F},Tn:function(){return se}});var a=e(79233),t=e(58757),o=e(35667),s=function(de){var xe=de.children,ce=de.active,Le=de.tip;return(0,o.jsx)(a.Z,{size:"large",spinning:ce,delay:500,style:{maxHeight:"none",opacity:.3},tip:Le,children:xe})},n=s,d=e(88205),l=e.n(d),c=e(74820),m=e(12562),g=function(J){return J.en="en-US",J.zh="zh-CN",J}({}),M=function(de){var xe=de.getLocale,ce=de.setLocale,Le=de.tooltipPlacement,Oe=Le===void 0?"right":Le,we=de.theme,Ne=we===void 0?"light":we,st=de.className,et=xe(),Ye=function(){var Ht=et===g.zh?g.en:g.zh;ce(Ht)},ke=(0,t.useMemo)(function(){return et===g.zh?["change-lang change-lang-".concat(Ne),"cur-lang cur-lang-".concat(Ne)]:["cur-lang cur-lang-".concat(Ne),"change-lang change-lang-".concat(Ne)]},[Ne,et]),Be=l()(ke,2),it=Be[0],Ve=Be[1];return(0,o.jsx)(c.Z,{placement:Oe,title:et===g.zh?"\u4E2D\u6587 / English":"English / \u4E2D\u6587",children:(0,o.jsx)(m.ZP,{type:"text",className:"dds-lang-selector ".concat(st),onClick:Ye,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:Ve,children:"\u4E2D"}),(0,o.jsx)("span",{className:it,children:"En"})]})})})},h=M,S=e(62109),w=e(12632),C=function(de){var xe=de.error,ce=de.componentStack,Le=de.resetError,Oe=function(){S.Z.error({title:xe.toString(),content:(0,o.jsx)("div",{style:{height:"60vh",overflowY:"scroll"},children:(0,o.jsx)("p",{children:ce})}),onOk:function(){},maskClosable:!0,width:"80vw"})};return(0,o.jsx)("div",{style:{position:"relative",height:"calc(100vh - 64px)",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"500",title:"Running Error",subTitle:"Sorry, something went wrong.",extra:[(0,o.jsx)(m.ZP,{type:"primary",onClick:Le,children:"Click here to reset"},"bt1"),(0,o.jsx)(m.ZP,{onClick:Oe,children:"Error Detail"},"bt2")]})})},F=C,Z=e(73267),N=e(94706),L=Object.defineProperty,$=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,j=(J,de,xe)=>de in J?L(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,K=(J,de)=>{for(var xe in de||(de={}))D.call(de,xe)&&j(J,xe,de[xe]);if($)for(var xe of $(de))T.call(de,xe)&&j(J,xe,de[xe]);return J};const k=J=>t.createElement("svg",K({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4.4c0-.22.18-.4.4-.4h1.2c.22 0 .4.18.4.4V6h3.6c.22 0 .4.18.4.4v1.2a.4.4 0 0 1-.4.4H18v1.6a.4.4 0 0 1-.4.4h-1.2a.4.4 0 0 1-.4-.4V4.4ZM2.4 6a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4V6.4a.4.4 0 0 0-.4-.4H2.4Zm8 10a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4v-1.2a.4.4 0 0 0-.4-.4H10.4Zm-8 0a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4H6v1.6c0 .22.18.4.4.4h1.2a.4.4 0 0 0 .4-.4v-5.2a.4.4 0 0 0-.4-.4H6.4a.4.4 0 0 0-.4.4V16H2.4Z",fill:"#434343"}));var te="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNiA0LjRjMC0uMjIuMTgtLjQuNC0uNGgxLjJjLjIyIDAgLjQuMTguNC40VjZoMy42Yy4yMiAwIC40LjE4LjQuNHYxLjJhLjQuNCAwIDAgMS0uNC40SDE4djEuNmEuNC40IDAgMCAxLS40LjRoLTEuMmEuNC40IDAgMCAxLS40LS40VjQuNFpNMi40IDZhLjQuNCAwIDAgMC0uNC40djEuMmMwIC4yMi4xOC40LjQuNGgxMS4yYS40LjQgMCAwIDAgLjQtLjRWNi40YS40LjQgMCAwIDAtLjQtLjRIMi40Wm04IDEwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRoMTEuMmEuNC40IDAgMCAwIC40LS40di0xLjJhLjQuNCAwIDAgMC0uNC0uNEgxMC40Wm0tOCAwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRINnYxLjZjMCAuMjIuMTguNC40LjRoMS4yYS40LjQgMCAwIDAgLjQtLjR2LTUuMmEuNC40IDAgMCAwLS40LS40SDYuNGEuNC40IDAgMCAwLS40LjRWMTZIMi40WiIgZmlsbD0iIzQzNDM0MyIvPjwvc3ZnPg==",V=Object.defineProperty,q=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,W=(J,de,xe)=>de in J?V(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,x=(J,de)=>{for(var xe in de||(de={}))le.call(de,xe)&&W(J,xe,de[xe]);if(q)for(var xe of q(de))X.call(de,xe)&&W(J,xe,de[xe]);return J};const O=J=>t.createElement("svg",x({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("path",{d:"M8.536 1.572H7.464c-.095 0-.143.048-.143.143v5.607h-5.32c-.096 0-.144.048-.144.143v1.072c0 .095.048.142.143.142h5.321v5.608c0 .095.048.142.143.142h1.072c.095 0 .142-.047.142-.142V8.679H14c.095 0 .143-.047.143-.142V7.465c0-.095-.048-.143-.143-.143H8.678V1.715c0-.095-.047-.143-.142-.143Z",fill:"#595959"}));var _="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguNTM2IDEuNTcySDcuNDY0Yy0uMDk1IDAtLjE0My4wNDgtLjE0My4xNDN2NS42MDdoLTUuMzJjLS4wOTYgMC0uMTQ0LjA0OC0uMTQ0LjE0M3YxLjA3MmMwIC4wOTUuMDQ4LjE0Mi4xNDMuMTQyaDUuMzIxdjUuNjA4YzAgLjA5NS4wNDguMTQyLjE0My4xNDJoMS4wNzJjLjA5NSAwIC4xNDItLjA0Ny4xNDItLjE0MlY4LjY3OUgxNGMuMDk1IDAgLjE0My0uMDQ3LjE0My0uMTQyVjcuNDY1YzAtLjA5NS0uMDQ4LS4xNDMtLjE0My0uMTQzSDguNjc4VjEuNzE1YzAtLjA5NS0uMDQ3LS4xNDMtLjE0Mi0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",U=Object.defineProperty,A=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(J,de,xe)=>de in J?U(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,ge=(J,de)=>{for(var xe in de||(de={}))G.call(de,xe)&&pe(J,xe,de[xe]);if(A)for(var xe of A(de))fe.call(de,xe)&&pe(J,xe,de[xe]);return J};const be=J=>t.createElement("svg",ge({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("path",{d:"M14.429 7.322H1.572a.143.143 0 0 0-.143.143v1.072c0 .078.064.142.143.142h12.857a.143.143 0 0 0 .143-.142V7.465a.143.143 0 0 0-.143-.143Z",fill:"#595959"}));var Te="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjQyOSA3LjMyMkgxLjU3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YxLjA3MmMwIC4wNzguMDY0LjE0Mi4xNDMuMTQyaDEyLjg1N2EuMTQzLjE0MyAwIDAgMCAuMTQzLS4xNDJWNy40NjVhLjE0My4xNDMgMCAwIDAtLjE0My0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",Ge=e(53357),Je=function(de){var xe=(0,Ge.bU)(),ce=xe.localeText,Le=de.cloumnCount,Oe=de.maxCloumnCount,we=Oe===void 0?8:Oe,Ne=de.onColumnCountChange,st=de.getPopupContainer;return(0,o.jsx)(Z.Z,{getPopupContainer:st,dropdownRender:function(){return(0,o.jsxs)("div",{className:"dds-column-settings-panel",children:[(0,o.jsx)("div",{className:"item-title",children:ce("ColumnSettings.title")}),(0,o.jsxs)("div",{className:"item-content",children:[(0,o.jsx)(N.Z,{min:1,max:we,onChange:function(ke){return Ne(ke)},value:Le,className:"slider"}),(0,o.jsxs)("div",{className:"num-box",children:[(0,o.jsx)(be,{onClick:function(){return Ne(!1)}}),(0,o.jsx)("div",{className:"num",children:Le}),(0,o.jsx)(O,{onClick:function(){return Ne(!0)}})]})]})]})},children:(0,o.jsx)("div",{className:"dds-column-settings-btn",children:(0,o.jsx)(k,{})})})},Qe=Je,pt=function(){return(0,o.jsx)("div",{style:{height:"100vh",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"404",title:(0,Ge._w)("MobileAlert.title"),subTitle:(0,Ge._w)("MobileAlert.subTitle")})})},Et=pt,ft=e(35910),Wt=e(32423),$e=e(39378),Xe=function(de){var xe=de.current,ce=de.size,Le=de.total,Oe=de.onPageChange,we=de.onPageSizeChange,Ne=(0,t.useState)(ce),st=l()(Ne,2),et=st[0],Ye=st[1],ke=(0,Ge.bU)(),Be=ke.localeText;return(0,o.jsxs)("div",{className:"dds-dynamic-pagination",children:[(0,o.jsx)(ft.Z,{current:xe,pageSize:ce,total:Le,showSizeChanger:!1,showQuickJumper:!0,onChange:function(Ve){return Oe(Ve)}}),(0,o.jsxs)("div",{className:"pagesize-wrap",children:[(0,o.jsx)("div",{className:"pagesize-label",children:Be("DynamicPagination.label")}),(0,o.jsx)(Wt.Z,{min:1,value:et,onChange:function(Ve){Ye(Number(Ve))},onBlur:function(Ve){(0,$e.isNaN)(Number(Ve.target.value))||Number(Ve.target.value)<=0?we(xe,1):we(xe,Number(Ve.target.value))},onPressEnter:function(Ve){Ve.target.blur(Ve)}})]})]})},nt=Xe,Ke=e(28638),ye=e(33010),ne=e(39875),H=e(23241),R=e(18624),P=Object.defineProperty,ae=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,me=(J,de,xe)=>de in J?P(J,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):J[de]=xe,je=(J,de)=>{for(var xe in de||(de={}))Q.call(de,xe)&&me(J,xe,de[xe]);if(ae)for(var xe of ae(de))ie.call(de,xe)&&me(J,xe,de[xe]);return J};const Ee=J=>t.createElement("svg",je({viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J),t.createElement("g",{clipPath:"url(#upload_file_svg__a)"},t.createElement("path",{d:"m46.55 12.917-8.132-8.131A16.227 16.227 0 0 0 26.868.002H16.333C9.9 0 4.667 5.234 4.667 11.667v32.666C4.667 50.766 9.9 56 16.333 56h23.334c6.433 0 11.666-5.234 11.666-11.667V24.465c0-4.363-1.698-8.46-4.783-11.548Zm-3.3 3.3c.743.742 1.37 1.565 1.879 2.45H35a2.337 2.337 0 0 1-2.333-2.334V6.204c.884.509 1.71 1.137 2.45 1.879l8.131 8.131.003.003Zm3.417 28.116c0 3.86-3.141 7-7 7H16.333c-3.859 0-7-3.14-7-7V11.667c0-3.86 3.141-7 7-7h10.535c.38 0 .759.018 1.132.053v11.613c0 3.86 3.14 7 7 7h11.613c.035.374.054.752.054 1.132v19.868ZM36.65 33.79a2.33 2.33 0 0 1 0 3.3 2.327 2.327 0 0 1-1.65.683 2.327 2.327 0 0 1-1.65-.684l-3.017-3.017v10.262a2.334 2.334 0 0 1-4.666 0V34.071l-3.017 3.017a2.33 2.33 0 0 1-3.3 0 2.33 2.33 0 0 1 0-3.299l3.766-3.766c2.693-2.693 7.075-2.693 9.77 0l3.766 3.766h-.002Z",fill:"#739EFF"})),t.createElement("defs",null,t.createElement("clipPath",{id:"upload_file_svg__a"},t.createElement("path",{fill:"#fff",d:"M0 0h56v56H0z"}))));var Me="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYgNTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBkPSJtNDYuNTUgMTIuOTE3LTguMTMyLTguMTMxQTE2LjIyNyAxNi4yMjcgMCAwIDAgMjYuODY4LjAwMkgxNi4zMzNDOS45IDAgNC42NjcgNS4yMzQgNC42NjcgMTEuNjY3djMyLjY2NkM0LjY2NyA1MC43NjYgOS45IDU2IDE2LjMzMyA1NmgyMy4zMzRjNi40MzMgMCAxMS42NjYtNS4yMzQgMTEuNjY2LTExLjY2N1YyNC40NjVjMC00LjM2My0xLjY5OC04LjQ2LTQuNzgzLTExLjU0OFptLTMuMyAzLjNjLjc0My43NDIgMS4zNyAxLjU2NSAxLjg3OSAyLjQ1SDM1YTIuMzM3IDIuMzM3IDAgMCAxLTIuMzMzLTIuMzM0VjYuMjA0Yy44ODQuNTA5IDEuNzEgMS4xMzcgMi40NSAxLjg3OWw4LjEzMSA4LjEzMS4wMDMuMDAzWm0zLjQxNyAyOC4xMTZjMCAzLjg2LTMuMTQxIDctNyA3SDE2LjMzM2MtMy44NTkgMC03LTMuMTQtNy03VjExLjY2N2MwLTMuODYgMy4xNDEtNyA3LTdoMTAuNTM1Yy4zOCAwIC43NTkuMDE4IDEuMTMyLjA1M3YxMS42MTNjMCAzLjg2IDMuMTQgNyA3IDdoMTEuNjEzYy4wMzUuMzc0LjA1NC43NTIuMDU0IDEuMTMydjE5Ljg2OFpNMzYuNjUgMzMuNzlhMi4zMyAyLjMzIDAgMCAxIDAgMy4zIDIuMzI3IDIuMzI3IDAgMCAxLTEuNjUuNjgzIDIuMzI3IDIuMzI3IDAgMCAxLTEuNjUtLjY4NGwtMy4wMTctMy4wMTd2MTAuMjYyYTIuMzM0IDIuMzM0IDAgMCAxLTQuNjY2IDBWMzQuMDcxbC0zLjAxNyAzLjAxN2EyLjMzIDIuMzMgMCAwIDEtMy4zIDAgMi4zMyAyLjMzIDAgMCAxIDAtMy4yOTlsMy43NjYtMy43NjZjMi42OTMtMi42OTMgNy4wNzUtMi42OTMgOS43NyAwbDMuNzY2IDMuNzY2aC0uMDAyWiIgZmlsbD0iIzczOUVGRiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoNTZ2NTZIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",We=20,re=function(de){var xe=de.uploadFiles,ce=de.onChangeFile,Le=de.onRemoveFile,Oe=de.children,we=(0,Ge.bU)(),Ne=we.localeText;return(0,o.jsx)(H.Z,{className:"dds-upload-pre-anno",maxCount:1,beforeUpload:function(){return!1},fileList:xe,onChange:ce,onRemove:Le,accept:".json",showUploadList:!0,children:Oe||(0,o.jsx)(R.Z,{children:(0,o.jsx)(R.Z.Meta,{avatar:(0,o.jsx)(ne.Z,{component:Ee}),title:Ne("dds-upload-pre-anno"),description:Ne("dds-upload-pre-anno.tip",{maxSize:We})})})})},se=re},28506:function(b,y,e){"use strict";e.d(y,{_:function(){return C},w:function(){return F}});var a=e(63900),t=e.n(a),o=e(88205),s=e.n(o),n=e(58757),d=e(86429),l=e(51129),c=e(74324),m=e(66682);const g=m,M={parseNumbers:!1,parseBooleans:!1},h={skipNull:!1,skipEmptyString:!1};var w=(Z,N)=>{var L,$;const{navigateMode:D="push",parseOptions:T,stringifyOptions:j}=N||{},K=Object.assign(Object.assign({},M),T),k=Object.assign(Object.assign({},h),j),te=g.useLocation(),V=(L=g.useHistory)===null||L===void 0?void 0:L.call(g),q=($=g.useNavigate)===null||$===void 0?void 0:$.call(g),le=(0,d.Z)(),X=(0,n.useRef)(typeof Z=="function"?Z():Z||{}),W=(0,n.useMemo)(()=>(0,c.parse)(te.search,K),[te.search]),x=(0,n.useMemo)(()=>Object.assign(Object.assign({},X.current),W),[W]),O=_=>{const U=typeof _=="function"?_(x):_;le(),V&&V[D]({hash:te.hash,search:(0,c.stringify)(Object.assign(Object.assign({},W),U),k)||"?"},te.state),q&&q({hash:te.hash,search:(0,c.stringify)(Object.assign(Object.assign({},W),U),k)||"?"},{replace:D==="replace",state:te.state})};return[x,(0,l.Z)(O)]};function C(Z){var N=Z.pageState,L=Z.onInitPageState,$=Z.onPageDidMount,D=Z.onPageWillUnmount,T=w({},{navigateMode:"replace"}),j=s()(T,2),K=j[0],k=j[1];(0,n.useEffect)(function(){if(L){var te={};try{te=K.pageState?JSON.parse(K.pageState):{}}catch(V){console.error("get urlPageState error: ",V)}L(te,K)}return $&&$(K),function(){D&&D()}},[]),(0,n.useEffect)(function(){k(t()(t()({},K),{},{pageState:JSON.stringify(N)}))},[N])}function F(){var Z=(0,n.useState)(window.innerWidth),N=s()(Z,2),L=N[0],$=N[1],D=(0,n.useState)(window.innerHeight),T=s()(D,2),j=T[0],K=T[1],k=function(){$(window.innerWidth),K(window.innerHeight)};return(0,n.useEffect)(function(){return window.addEventListener("resize",k),function(){window.removeEventListener("resize",k)}},[]),{width:L,height:j}}},41260:function(b,y,e){"use strict";e.d(y,{O:function(){return t},p:function(){return a}});var a=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Math.floor(s*Math.pow(10,n))/Math.pow(10,n)},t=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number(s.toFixed(n))}},45060:function(b,y,e){"use strict";e.d(y,{Gf:function(){return m},XV:function(){return c},_q:function(){return S},pz:function(){return C}});var a=e(88479),t=e.n(a),o=e(24454),s=e.n(o),n=e(56592),d=e.n(n),l=e(41260);function c(Z,N,L){var $=new Date(Z),D=$.getFullYear(),T=(0,l.p)($.getMonth()+1),j=(0,l.p)($.getDate()),K=(0,l.p)($.getHours()),k=(0,l.p)($.getMinutes()),te=(0,l.p)($.getSeconds()),V=(0,l.p)($.getMilliseconds(),3),q="".concat(D,"_").concat(T,"_").concat(j,"_").concat(K,"_").concat(k,"_").concat(te,"_").concat(V);return N&&(q="".concat(N,"_").concat(q)),L&&(q="".concat(q,".").concat(L)),q}function m(Z,N){var L=JSON.stringify(Z),$=new Blob([L],{type:"application/json"}),D=URL.createObjectURL($),T=document.createElement("a");T.href=D,T.download=N,document.body.appendChild(T),T.click(),document.body.removeChild(T),URL.revokeObjectURL(D)}var g=function(N){return new Promise(function(L,$){var D=new Image;D.src=N,D.onload=function(){L(D)},D.onerror=function(){$(D)}})};function M(Z,N,L){return h.apply(this,arguments)}function h(){return h=d()(s()().mark(function Z(N,L,$){return s()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",new Promise(function(j,K){if(N.isDirectory){var k=N.createReader();k.readEntries(function(){var te=d()(s()().mark(function V(q){var le;return s()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:le=0;case 1:if(!(le0)){le.next=25;break}K=t()(N.items),le.prev=7,K.s();case 9:if((k=K.n()).done){le.next=17;break}if(te=k.value,V=te.webkitGetAsEntry(),!(V!=null&&V.isDirectory)){le.next=15;break}return le.next=15,M(V,$,L);case 15:le.next=9;break;case 17:le.next=22;break;case 19:le.prev=19,le.t0=le.catch(7),K.e(le.t0);case 22:return le.prev=22,K.f(),le.finish(22);case 25:return le.abrupt("return",$);case 26:case"end":return le.stop()}},Z,null,[[7,19,22,25]])})),w.apply(this,arguments)}function C(Z){return F.apply(this,arguments)}function F(){return F=d()(s()().mark(function Z(N){return s()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",new Promise(function(D,T){var j=new Image;j.src=N,j.onload=function(){var K=j.width,k=j.height;D({width:K,height:k})},j.onerror=function(){T(new Error("Load Image Error"))}}));case 1:case"end":return $.stop()}},Z)})),F.apply(this,arguments)}},53357:function(b,y,e){"use strict";e.d(y,{Og:function(){return o},_w:function(){return t},bU:function(){return s}});var a=e(97375),t=function(d){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,a.formatMessage)({id:d},l)},o=a.FormattedMessage,s=function(){var d=(0,a.useIntl)(),l=function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return d.formatMessage({id:m},g)};return{localeText:l}}},23707:function(b,y,e){"use strict";e.d(y,{BQ:function(){return t},Oe:function(){return o},yS:function(){return s}});var a=e(97375),t=function(d){var l=new RegExp("(^|&)"+d+"=([^&]*)(&|$)","i"),c=window.location.search.substr(1).match(l);return c!==null?decodeURIComponent(c[2]):null},o=function(){var d=window.location.pathname.split("/");return d[d.length-1]},s=function(d){document.referrer.includes(d)?window.history.back():a.history.push(d)}},74324:function(b,y,e){"use strict";var a=e(88205).default,t=e(88479).default,o=e(16962).default,s=e(34485).default,n=e(75978),d=e(65140),l=e(96896),c=e(22475),m=function(T){return T==null};function g(D){switch(D.arrayFormat){case"index":return function(T){return function(j,K){var k=j.length;return K===void 0||D.skipNull&&K===null||D.skipEmptyString&&K===""?j:K===null?[].concat(s(j),[[S(T,D),"[",k,"]"].join("")]):[].concat(s(j),[[S(T,D),"[",S(k,D),"]=",S(K,D)].join("")])}};case"bracket":return function(T){return function(j,K){return K===void 0||D.skipNull&&K===null||D.skipEmptyString&&K===""?j:K===null?[].concat(s(j),[[S(T,D),"[]"].join("")]):[].concat(s(j),[[S(T,D),"[]=",S(K,D)].join("")])}};case"comma":case"separator":return function(T){return function(j,K){return K==null||K.length===0?j:j.length===0?[[S(T,D),"=",S(K,D)].join("")]:[[j,S(K,D)].join(D.arrayFormatSeparator)]}};default:return function(T){return function(j,K){return K===void 0||D.skipNull&&K===null||D.skipEmptyString&&K===""?j:K===null?[].concat(s(j),[S(T,D)]):[].concat(s(j),[[S(T,D),"=",S(K,D)].join("")])}}}}function M(D){var T;switch(D.arrayFormat){case"index":return function(j,K,k){if(T=/\[(\d*)\]$/.exec(j),j=j.replace(/\[\d*\]$/,""),!T){k[j]=K;return}k[j]===void 0&&(k[j]={}),k[j][T[1]]=K};case"bracket":return function(j,K,k){if(T=/(\[\])$/.exec(j),j=j.replace(/\[\]$/,""),!T){k[j]=K;return}if(k[j]===void 0){k[j]=[K];return}k[j]=[].concat(k[j],K)};case"comma":case"separator":return function(j,K,k){var te=typeof K=="string"&&K.includes(D.arrayFormatSeparator),V=typeof K=="string"&&!te&&w(K,D).includes(D.arrayFormatSeparator);K=V?w(K,D):K;var q=te||V?K.split(D.arrayFormatSeparator).map(function(le){return w(le,D)}):K===null?K:w(K,D);k[j]=q};default:return function(j,K,k){if(k[j]===void 0){k[j]=K;return}k[j]=[].concat(k[j],K)}}}function h(D){if(typeof D!="string"||D.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function S(D,T){return T.encode?T.strict?n(D):encodeURIComponent(D):D}function w(D,T){return T.decode?d(D):D}function C(D){return Array.isArray(D)?D.sort():o(D)==="object"?C(Object.keys(D)).sort(function(T,j){return Number(T)-Number(j)}).map(function(T){return D[T]}):D}function F(D){var T=D.indexOf("#");return T!==-1&&(D=D.slice(0,T)),D}function Z(D){var T="",j=D.indexOf("#");return j!==-1&&(T=D.slice(j)),T}function N(D){D=F(D);var T=D.indexOf("?");return T===-1?"":D.slice(T+1)}function L(D,T){return T.parseNumbers&&!Number.isNaN(Number(D))&&typeof D=="string"&&D.trim()!==""?D=Number(D):T.parseBooleans&&D!==null&&(D.toLowerCase()==="true"||D.toLowerCase()==="false")&&(D=D.toLowerCase()==="true"),D}function $(D,T){T=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},T),h(T.arrayFormatSeparator);var j=M(T),K=Object.create(null);if(typeof D!="string"||(D=D.trim().replace(/^[?#&]/,""),!D))return K;var k=t(D.split("&")),te;try{for(k.s();!(te=k.n()).done;){var V=te.value;if(V!==""){var q=l(T.decode?V.replace(/\+/g," "):V,"="),le=a(q,2),X=le[0],W=le[1];W=W===void 0?null:["comma","separator"].includes(T.arrayFormat)?W:w(W,T),j(w(X,T),W,K)}}}catch(pe){k.e(pe)}finally{k.f()}for(var x=0,O=Object.keys(K);x0}).join("&")},y.parseUrl=function(D,T){T=Object.assign({decode:!0},T);var j=l(D,"#"),K=a(j,2),k=K[0],te=K[1];return Object.assign({url:k.split("?")[0]||"",query:$(N(D),T)},T&&T.parseFragmentIdentifier&&te?{fragmentIdentifier:w(te,T)}:{})},y.stringifyUrl=function(D,T){T=Object.assign({encode:!0,strict:!0},T);var j=F(D.url).split("?")[0]||"",K=y.extract(D.url),k=y.parse(K,{sort:!1}),te=Object.assign(k,D.query),V=y.stringify(te,T);V&&(V="?".concat(V));var q=Z(D.url);return D.fragmentIdentifier&&(q="#".concat(S(D.fragmentIdentifier,T))),"".concat(j).concat(V).concat(q)},y.pick=function(D,T,j){j=Object.assign({parseFragmentIdentifier:!0},j);var K=y.parseUrl(D,j),k=K.url,te=K.query,V=K.fragmentIdentifier;return y.stringifyUrl({url:k,query:c(te,T),fragmentIdentifier:V},j)},y.exclude=function(D,T,j){var K=Array.isArray(T)?function(k){return!T.includes(k)}:function(k,te){return!T(k,te)};return y.pick(D,K,j)}},96896:function(b){"use strict";b.exports=function(y,e){if(!(typeof y=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[y];var a=y.indexOf(e);return a===-1?[y]:[y.slice(0,a),y.slice(a+e.length)]}},75978:function(b){"use strict";b.exports=function(y){return encodeURIComponent(y).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},60581:function(b,y,e){"use strict";e.d(y,{Il:function(){return o},Ov:function(){return s}});var a=e(58757),t=null,o=a.createContext({});function s(){return a.useContext(o)}function n(){var m=useLocation(),g=s(),M=g.clientRoutes,h=matchRoutes(M,m.pathname);return h||[]}function d(){var m,g=n().slice(-1),M=((m=g[0])===null||m===void 0?void 0:m.route)||{},h=M.element,S=_objectWithoutProperties(M,t);return S}function l(){var m=useRouteData(),g=s();return{data:g.serverLoaderData[m.route.id]}}function c(){var m=useRouteData(),g=s();return{data:g.clientLoaderData[m.route.id]}}},21325:function(b,y,e){"use strict";var a=e(23671),t=e(68716),o=e(8851);function s(n,d,l){l===void 0&&(l={});var c=(0,a.Z)(d);(0,o.Z)(function(){var m=(0,t.n)(l.target,window);if(m!=null&&m.addEventListener){var g=function(M){return c.current(M)};return m.addEventListener(n,g,{capture:l.capture,once:l.once,passive:l.passive}),function(){m.removeEventListener(n,g,{capture:l.capture})}}},[n,l.capture,l.once,l.passive],l.target)}y.Z=s},2556:function(b,y,e){"use strict";e.d(y,{Z:function(){return D}});var a=e(43112),t=e(23671),o=e(53807),s=e(68716),n=e(58757),d=e(8851),l=e(85466),c=e.n(l),m=function(T,j){return T===void 0&&(T=[]),j===void 0&&(j=[]),c()(T,j)},g=function(T,j,K){var k=(0,n.useRef)(),te=(0,n.useRef)(0);m(j,k.current)||(k.current=j,te.current+=1),(0,d.Z)(T,[te.current],K)},M=g,h=/(mac|iphone|ipod|ipad)/i.test(typeof navigator!="undefined"?navigator==null?void 0:navigator.platform:""),S=h,w={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:S?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},C={ctrl:function(T){return T.ctrlKey},shift:function(T){return T.shiftKey},alt:function(T){return T.altKey},meta:function(T){return T.type==="keyup"?w.meta.includes(T.keyCode):T.metaKey}};function F(T){var j=Object.keys(C).reduce(function(K,k){return C[k](T)?K+1:K},0);return[16,17,18,91,92].includes(T.keyCode)?j:j+1}function Z(T,j,K){var k,te;if(!T.key)return!1;if((0,o.hj)(j))return T.keyCode===j;var V=j.split("."),q=0;try{for(var le=(0,a.XA)(V),X=le.next();!X.done;X=le.next()){var W=X.value,x=C[W],O=w[W.toLowerCase()];(x&&x(T)||O&&O===T.keyCode)&&q++}}catch(_){k={error:_}}finally{try{X&&!X.done&&(te=le.return)&&te.call(le)}finally{if(k)throw k.error}}return K?q===V.length&&F(T)===V.length:q===V.length}function N(T,j){return(0,o.mf)(T)?T:(0,o.HD)(T)||(0,o.hj)(T)?function(K){return Z(K,T,j)}:Array.isArray(T)?function(K){return T.some(function(k){return Z(K,k,j)})}:function(){return!!T}}var L=["keydown"];function $(T,j,K){var k=K||{},te=k.events,V=te===void 0?L:te,q=k.target,le=k.exactMatch,X=le===void 0?!1:le,W=k.useCapture,x=W===void 0?!1:W,O=(0,t.Z)(j),_=(0,t.Z)(T);M(function(){var U,A,G,fe=(0,s.n)(q,window);if(fe){var pe=function(Ge){var Je,Qe=N(_.current,X);if(Qe(Ge))return(Je=O.current)===null||Je===void 0?void 0:Je.call(O,Ge)};try{for(var ge=(0,a.XA)(V),be=ge.next();!be.done;be=ge.next()){var Te=be.value;(G=fe==null?void 0:fe.addEventListener)===null||G===void 0||G.call(fe,Te,pe,x)}}catch(Ge){U={error:Ge}}finally{try{be&&!be.done&&(A=ge.return)&&A.call(ge)}finally{if(U)throw U.error}}return function(){var Ge,Je,Qe;try{for(var pt=(0,a.XA)(V),Et=pt.next();!Et.done;Et=pt.next()){var ft=Et.value;(Qe=fe==null?void 0:fe.removeEventListener)===null||Qe===void 0||Qe.call(fe,ft,pe,x)}}catch(Wt){Ge={error:Wt}}finally{try{Et&&!Et.done&&(Je=pt.return)&&Je.call(pt)}finally{if(Ge)throw Ge.error}}}}},[V],q)}var D=$},23671:function(b,y,e){"use strict";var a=e(58757);function t(o){var s=(0,a.useRef)(o);return s.current=o,s}y.Z=t},51129:function(b,y,e){"use strict";var a=e(58757),t=e(53807),o=e(8182);function s(n){o.Z&&((0,t.mf)(n)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof n)));var d=(0,a.useRef)(n);d.current=(0,a.useMemo)(function(){return n},[n]);var l=(0,a.useRef)();return l.current||(l.current=function(){for(var c=[],m=0;m-1&&(J=setTimeout(function(){M.delete(Me)},We)),M.set(Me,(0,a.pi)((0,a.pi)({},re),{timer:J}))},S=function(Me){return M.get(Me)},w=function(Me){if(Me){var We=Array.isArray(Me)?Me:[Me];We.forEach(function(re){return M.delete(re)})}else M.clear()},C=new Map,F=function(Me){return C.get(Me)},Z=function(Me,We){C.set(Me,We),We.then(function(re){return C.delete(Me),re}).catch(function(){C.delete(Me)})},N={},L=function(Me,We){N[Me]&&N[Me].forEach(function(re){return re(We)})},$=function(Me,We){return N[Me]||(N[Me]=[]),N[Me].push(We),function(){var se=N[Me].indexOf(We);N[Me].splice(se,1)}},D=function(Me,We){var re=We.cacheKey,se=We.cacheTime,J=se===void 0?5*60*1e3:se,de=We.staleTime,xe=de===void 0?0:de,ce=We.setCache,Le=We.getCache,Oe=(0,t.useRef)(),we=(0,t.useRef)(),Ne=function(et,Ye){ce?ce(Ye):h(et,J,Ye),L(et,Ye.data)},st=function(et,Ye){return Ye===void 0&&(Ye=[]),Le?Le(Ye):S(et)};return m(function(){if(re){var et=st(re);et&&Object.hasOwnProperty.call(et,"data")&&(Me.state.data=et.data,Me.state.params=et.params,(xe===-1||new Date().getTime()-et.time<=xe)&&(Me.state.loading=!1)),Oe.current=$(re,function(Ye){Me.setState({data:Ye})})}},[]),(0,g.Z)(function(){var et;(et=Oe.current)===null||et===void 0||et.call(Oe)}),re?{onBefore:function(et){var Ye=st(re,et);return!Ye||!Object.hasOwnProperty.call(Ye,"data")?{}:xe===-1||new Date().getTime()-Ye.time<=xe?{loading:!1,data:Ye==null?void 0:Ye.data,error:void 0,returnNow:!0}:{data:Ye==null?void 0:Ye.data,error:void 0}},onRequest:function(et,Ye){var ke=F(re);return ke&&ke!==we.current?{servicePromise:ke}:(ke=et.apply(void 0,(0,a.ev)([],(0,a.CR)(Ye),!1)),we.current=ke,Z(re,ke),{servicePromise:ke})},onSuccess:function(et,Ye){var ke;re&&((ke=Oe.current)===null||ke===void 0||ke.call(Oe),Ne(re,{data:et,params:Ye,time:new Date().getTime()}),Oe.current=$(re,function(Be){Me.setState({data:Be})}))},onMutate:function(et){var Ye;re&&((Ye=Oe.current)===null||Ye===void 0||Ye.call(Oe),Ne(re,{data:et,params:Me.state.params,time:new Date().getTime()}),Oe.current=$(re,function(ke){Me.setState({data:ke})}))}}:{}},T=D,j=e(77837),K=e.n(j),k=function(Me,We){var re=We.debounceWait,se=We.debounceLeading,J=We.debounceTrailing,de=We.debounceMaxWait,xe=(0,t.useRef)(),ce=(0,t.useMemo)(function(){var Le={};return se!==void 0&&(Le.leading=se),J!==void 0&&(Le.trailing=J),de!==void 0&&(Le.maxWait=de),Le},[se,J,de]);return(0,t.useEffect)(function(){if(re){var Le=Me.runAsync.bind(Me);return xe.current=K()(function(Oe){Oe()},re,ce),Me.runAsync=function(){for(var Oe=[],we=0;we-1&&pe.splice(re,1)}}if(le.Z){var be=function(){if(!(!X()||!fe()))for(var Me=0;Me{const{type:c,children:m,prefixCls:g,buttonProps:M,close:h,autoFocus:S,emitEvent:w,isSilent:C,quitOnNullishReturnValue:F,actionFn:Z}=l,N=t.useRef(!1),L=t.useRef(null),[$,D]=(0,a.Z)(!1),T=function(){h==null||h.apply(void 0,arguments)};t.useEffect(()=>{let k=null;return S&&(k=setTimeout(()=>{var te;(te=L.current)===null||te===void 0||te.focus()})),()=>{k&&clearTimeout(k)}},[]);const j=k=>{n(k)&&(D(!0),k.then(function(){D(!1,!0),T.apply(void 0,arguments),N.current=!1},te=>{if(D(!1,!0),N.current=!1,!(C!=null&&C()))return Promise.reject(te)}))},K=k=>{if(N.current)return;if(N.current=!0,!Z){T();return}let te;if(w){if(te=Z(k),F&&!n(te)){N.current=!1,T(k);return}}else if(Z.length)te=Z(h),N.current=!1;else if(te=Z(),!te){T();return}j(te)};return t.createElement(o.ZP,Object.assign({},(0,s.n)(c),{onClick:K,loading:$,prefixCls:g},M,{ref:L}),m)};y.Z=d},15018:function(b,y,e){"use strict";e.d(y,{Z:function(){return d},i:function(){return n}});var a=e(60409),t=e(58757),o=e(42505),s=e(61836);function n(l){return function(m){return t.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(l,Object.assign({},m)))}}function d(l,c,m,g){function M(h){const{prefixCls:S,style:w}=h,C=t.useRef(null),[F,Z]=t.useState(0),[N,L]=t.useState(0),[$,D]=(0,a.Z)(!1,{value:h.open}),{getPrefixCls:T}=t.useContext(s.E_),j=T(c||"select",S);t.useEffect(()=>{if(D(!0),typeof ResizeObserver!="undefined"){const k=new ResizeObserver(V=>{const q=V[0].target;Z(q.offsetHeight+8),L(q.offsetWidth)}),te=setInterval(()=>{var V;const q=m?`.${m(j)}`:`.${j}-dropdown`,le=(V=C.current)===null||V===void 0?void 0:V.querySelector(q);le&&(clearInterval(te),k.observe(le))},10);return()=>{clearInterval(te),k.disconnect()}}},[]);let K=Object.assign(Object.assign({},h),{style:Object.assign(Object.assign({},w),{margin:0}),open:$,visible:$,getPopupContainer:()=>C.current});return g&&(K=g(K)),t.createElement("div",{ref:C,style:{paddingBottom:F,position:"relative",minWidth:N}},t.createElement(l,Object.assign({},K)))}return n(M)}},1878:function(b,y,e){"use strict";e.d(y,{o2:function(){return n},yT:function(){return d}});var a=e(29140),t=e(34966);const o=t.i.map(l=>`${l}-inverse`),s=["success","processing","error","default","warning"];function n(l){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,a.Z)(o),(0,a.Z)(t.i)).includes(l):t.i.includes(l)}function d(l){return s.includes(l)}},44818:function(b,y){"use strict";function e(){const a=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const n=o[s];n!==void 0&&(a[s]=n)})}return a}y.Z=e},99836:function(b,y,e){"use strict";e.d(y,{Z:function(){return a}});const a=t=>t?typeof t=="function"?t():t:null},88858:function(b,y,e){"use strict";e.d(y,{Z:function(){return s}});var a=e(52495),t=e(58757);function o(n,d,l){return typeof n=="boolean"?n:d===void 0?!!l:d!==!1&&d!==null}function s(n,d,l){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.createElement(a.Z,null),m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o(n,d,m))return[!1,null];const M=typeof d=="boolean"||d===void 0||d===null?c:d;return[!0,l?l(M):M]}},69387:function(b,y,e){"use strict";var a=e(58757),t=e(32792);y.Z=()=>{const[o,s]=a.useState(!1);return a.useEffect(()=>{s((0,t.fk)())},[]),o}},4459:function(b,y,e){"use strict";e.d(y,{Z:function(){return t}});var a=e(58757);function t(){const[,o]=a.useReducer(s=>s+1,0);return o}},90881:function(b,y,e){"use strict";e.d(y,{m:function(){return l}});const a=()=>({height:0,opacity:0}),t=c=>{const{scrollHeight:m}=c;return{height:m,opacity:1}},o=c=>({height:c?c.offsetHeight:0}),s=(c,m)=>(m==null?void 0:m.deadline)===!0||m.propertyName==="height",n=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:a,onEnterStart:a,onAppearActive:t,onEnterActive:t,onLeaveStart:o,onLeaveActive:a,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}},d=null,l=(c,m,g)=>g!==void 0?g:`${c}-${m}`;y.Z=n},95446:function(b,y,e){"use strict";e.d(y,{Z:function(){return d}});var a=e(24542);function t(l,c,m,g){if(g===!1)return{adjustX:!1,adjustY:!1};const M=g&&typeof g=="object"?g:{},h={};switch(l){case"top":case"bottom":h.shiftX=c.dropdownArrowOffset*2+m;break;case"left":case"right":h.shiftY=c.dropdownArrowOffsetVertical*2+m;break}const S=Object.assign(Object.assign({},h),M);return S.shiftX||(S.adjustX=!0),S.shiftY||(S.adjustY=!0),S}const o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},s={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},n=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function d(l){const{arrowWidth:c,autoAdjustOverflow:m,arrowPointAtCenter:g,offset:M,borderRadius:h,visibleFirst:S}=l,w=c/2,C={};return Object.keys(o).forEach(F=>{const Z=g&&s[F]||o[F],N=Object.assign(Object.assign({},Z),{offset:[0,0]});switch(C[F]=N,n.has(F)&&(N.autoArrow=!1),F){case"top":case"topLeft":case"topRight":N.offset[1]=-w-M;break;case"bottom":case"bottomLeft":case"bottomRight":N.offset[1]=w+M;break;case"left":case"leftTop":case"leftBottom":N.offset[0]=-w-M;break;case"right":case"rightTop":case"rightBottom":N.offset[0]=w+M;break}const L=(0,a.fS)({contentRadius:h,limitVerticalRadius:!0});if(g)switch(F){case"topLeft":case"bottomLeft":N.offset[0]=-L.dropdownArrowOffset-w;break;case"topRight":case"bottomRight":N.offset[0]=L.dropdownArrowOffset+w;break;case"leftTop":case"rightTop":N.offset[1]=-L.dropdownArrowOffset-w;break;case"leftBottom":case"rightBottom":N.offset[1]=L.dropdownArrowOffset+w;break}N.overflow=t(F,L,c,m),S&&(N.htmlRegion="visibleFirst")}),C}},37047:function(b,y,e){"use strict";var a;e.d(y,{M2:function(){return s},Tm:function(){return d},l$:function(){return o},wm:function(){return n}});var t=e(58757);const{isValidElement:o}=a||(a=e.t(t,2));function s(l){return l&&o(l)&&l.type===t.Fragment}function n(l,c,m){return o(l)?t.cloneElement(l,typeof m=="function"?m(l.props||{}):m):c}function d(l,c){return n(l,l,c)}},87078:function(b,y,e){"use strict";e.d(y,{Z:function(){return d},c:function(){return o}});var a=e(58757),t=e(51806);const o=["xxl","xl","lg","md","sm","xs"],s=l=>({xs:`(max-width: ${l.screenXSMax}px)`,sm:`(min-width: ${l.screenSM}px)`,md:`(min-width: ${l.screenMD}px)`,lg:`(min-width: ${l.screenLG}px)`,xl:`(min-width: ${l.screenXL}px)`,xxl:`(min-width: ${l.screenXXL}px)`}),n=l=>{const c=l,m=[].concat(o).reverse();return m.forEach((g,M)=>{const h=g.toUpperCase(),S=`screen${h}Min`,w=`screen${h}`;if(!(c[S]<=c[w]))throw new Error(`${S}<=${w} fails : !(${c[S]}<=${c[w]})`);if(M{const m=new Map;let g=-1,M={};return{matchHandlers:{},dispatch(h){return M=h,m.forEach(S=>S(M)),m.size>=1},subscribe(h){return m.size||this.register(),g+=1,m.set(g,h),h(M),g},unsubscribe(h){m.delete(h),m.size||this.unregister()},unregister(){Object.keys(c).forEach(h=>{const S=c[h],w=this.matchHandlers[S];w==null||w.mql.removeListener(w==null?void 0:w.listener)}),m.clear()},register(){Object.keys(c).forEach(h=>{const S=c[h],w=F=>{let{matches:Z}=F;this.dispatch(Object.assign(Object.assign({},M),{[h]:Z}))},C=window.matchMedia(S);C.addListener(w),this.matchHandlers[S]={mql:C,listener:w},w(C)})},responsiveMap:c}},[l])}},41496:function(b,y,e){"use strict";e.d(y,{F:function(){return n},Z:function(){return s}});var a=e(87608),t=e.n(a);const o=null;function s(d,l,c){return t()({[`${d}-status-success`]:l==="success",[`${d}-status-warning`]:l==="warning",[`${d}-status-error`]:l==="error",[`${d}-status-validating`]:l==="validating",[`${d}-has-feedback`]:c})}const n=(d,l)=>l||d},32792:function(b,y,e){"use strict";e.d(y,{fk:function(){return s},jD:function(){return t}});var a=e(19075);const t=()=>(0,a.Z)()&&window.document.documentElement;let o;const s=()=>{if(!t())return!1;if(o!==void 0)return o;const n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.rowGap="1px",n.appendChild(document.createElement("div")),n.appendChild(document.createElement("div"));const d=document.createElement("div");return d.style.position="absolute",d.style.zIndex="-9999",d.appendChild(n),document.body.appendChild(d),o=n.scrollHeight===1,document.body.removeChild(d),o}},37486:function(b,y,e){"use strict";e.d(y,{Z:function(){return te}});var a=e(87608),t=e.n(a),o=e(21319),s=e(46499),n=e(58757),d=e(61836),l=e(37047),c=e(52628);const m=V=>{const{componentCls:q,colorPrimary:le}=V;return{[q]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${le})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${V.motionEaseOutCirc}`,`opacity 2s ${V.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${V.motionEaseInOut}`,`opacity 0.35s ${V.motionEaseInOut}`].join(",")}}}}};var g=(0,c.Z)("Wave",V=>[m(V)]),M=e(51729),h=e(61834),S=e(17598),w=e(52323);function C(V){const q=(V||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return q&&q[1]&&q[2]&&q[3]?!(q[1]===q[2]&&q[2]===q[3]):!0}function F(V){return V&&V!=="#fff"&&V!=="#ffffff"&&V!=="rgb(255, 255, 255)"&&V!=="rgba(255, 255, 255, 1)"&&C(V)&&!/rgba\((?:\d*, ){3}0\)/.test(V)&&V!=="transparent"}function Z(V){const{borderTopColor:q,borderColor:le,backgroundColor:X}=getComputedStyle(V);return F(q)?q:F(le)?le:F(X)?X:null}var N=e(78856);function L(V){return Number.isNaN(V)?0:V}const $=V=>{const{className:q,target:le,component:X}=V,W=n.useRef(null),[x,O]=n.useState(null),[_,U]=n.useState([]),[A,G]=n.useState(0),[fe,pe]=n.useState(0),[ge,be]=n.useState(0),[Te,Ge]=n.useState(0),[Je,Qe]=n.useState(!1),pt={left:A,top:fe,width:ge,height:Te,borderRadius:_.map(Wt=>`${Wt}px`).join(" ")};x&&(pt["--wave-color"]=x);function Et(){const Wt=getComputedStyle(le);O(Z(le));const $e=Wt.position==="static",{borderLeftWidth:Xe,borderTopWidth:nt}=Wt;G($e?le.offsetLeft:L(-parseFloat(Xe))),pe($e?le.offsetTop:L(-parseFloat(nt))),be(le.offsetWidth),Ge(le.offsetHeight);const{borderTopLeftRadius:Ke,borderTopRightRadius:ye,borderBottomLeftRadius:ne,borderBottomRightRadius:H}=Wt;U([Ke,ye,H,ne].map(R=>L(parseFloat(R))))}if(n.useEffect(()=>{if(le){const Wt=(0,h.Z)(()=>{Et(),Qe(!0)});let $e;return typeof ResizeObserver!="undefined"&&($e=new ResizeObserver(Et),$e.observe(le)),()=>{h.Z.cancel(Wt),$e==null||$e.disconnect()}}},[]),!Je)return null;const ft=(X==="Checkbox"||X==="Radio")&&(le==null?void 0:le.classList.contains(N.A));return n.createElement(S.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Wt,$e)=>{var Xe;if($e.deadline||$e.propertyName==="opacity"){const nt=(Xe=W.current)===null||Xe===void 0?void 0:Xe.parentElement;(0,w.v)(nt).then(()=>{nt==null||nt.remove()})}return!1}},Wt=>{let{className:$e}=Wt;return n.createElement("div",{ref:W,className:t()(q,{"wave-quick":ft},$e),style:pt})})};var T=(V,q)=>{var le;const{component:X}=q;if(X==="Checkbox"&&!(!((le=V.querySelector("input"))===null||le===void 0)&&le.checked))return;const W=document.createElement("div");W.style.position="absolute",W.style.left="0px",W.style.top="0px",V==null||V.insertBefore(W,V==null?void 0:V.firstChild),(0,w.s)(n.createElement($,Object.assign({},q,{target:V})),W)},j=e(51806);function K(V,q,le){const{wave:X}=n.useContext(d.E_),[,W,x]=(0,j.Z)(),O=(0,M.Z)(A=>{const G=V.current;if(X!=null&&X.disabled||!G)return;const fe=G.querySelector(`.${N.A}`)||G,{showEffect:pe}=X||{};(pe||T)(fe,{className:q,token:W,component:le,event:A,hashId:x})}),_=n.useRef();return A=>{h.Z.cancel(_.current),_.current=(0,h.Z)(()=>{O(A)})}}var te=V=>{const{children:q,disabled:le,component:X}=V,{getPrefixCls:W}=(0,n.useContext)(d.E_),x=(0,n.useRef)(null),O=W("wave"),[,_]=g(O),U=K(x,t()(O,_),X);if(n.useEffect(()=>{const G=x.current;if(!G||G.nodeType!==1||le)return;const fe=pe=>{!(0,s.Z)(pe.target)||!G.getAttribute||G.getAttribute("disabled")||G.disabled||G.className.includes("disabled")||G.className.includes("-leave")||U(pe)};return G.addEventListener("click",fe,!0),()=>{G.removeEventListener("click",fe,!0)}},[le]),!n.isValidElement(q))return q!=null?q:null;const A=(0,o.Yr)(q)?(0,o.sQ)(q.ref,x):x;return(0,l.Tm)(q,{ref:A})}},78856:function(b,y,e){"use strict";e.d(y,{A:function(){return a}});const a="ant-wave-target"},15618:function(b,y,e){"use strict";e.d(y,{Z:function(){return U}});var a=e(85678),t=e(79999),o=e(52495),s=e(69831),n=e(33064),d=e(87608),l=e.n(d),c=e(17598),m=e(33926),g=e(58757),M=e(37047),h=e(61836),S=e(78330),w=e(52628),C=e(22151);const F=(A,G,fe,pe,ge)=>({backgroundColor:A,border:`${pe.lineWidth}px ${pe.lineType} ${G}`,[`${ge}-icon`]:{color:fe}}),Z=A=>{const{componentCls:G,motionDurationSlow:fe,marginXS:pe,marginSM:ge,fontSize:be,fontSizeLG:Te,lineHeight:Ge,borderRadiusLG:Je,motionEaseInOutCirc:Qe,alertIconSizeLG:pt,colorText:Et,paddingContentVerticalSM:ft,alertPaddingHorizontal:Wt,paddingMD:$e,paddingContentHorizontalLG:Xe,colorTextHeading:nt}=A;return{[G]:Object.assign(Object.assign({},(0,S.Wf)(A)),{position:"relative",display:"flex",alignItems:"center",padding:`${ft}px ${Wt}px`,wordWrap:"break-word",borderRadius:Je,[`&${G}-rtl`]:{direction:"rtl"},[`${G}-content`]:{flex:1,minWidth:0},[`${G}-icon`]:{marginInlineEnd:pe,lineHeight:0},["&-description"]:{display:"none",fontSize:be,lineHeight:Ge},"&-message":{color:Et},[`&${G}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${fe} ${Qe}, opacity ${fe} ${Qe}, padding-top ${fe} ${Qe}, padding-bottom ${fe} ${Qe}, margin-bottom ${fe} ${Qe}`},[`&${G}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${G}-with-description`]:{alignItems:"flex-start",paddingInline:Xe,paddingBlock:$e,[`${G}-icon`]:{marginInlineEnd:ge,fontSize:pt,lineHeight:0},[`${G}-message`]:{display:"block",marginBottom:pe,color:nt,fontSize:Te},[`${G}-description`]:{display:"block"}},[`${G}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},N=A=>{const{componentCls:G,colorSuccess:fe,colorSuccessBorder:pe,colorSuccessBg:ge,colorWarning:be,colorWarningBorder:Te,colorWarningBg:Ge,colorError:Je,colorErrorBorder:Qe,colorErrorBg:pt,colorInfo:Et,colorInfoBorder:ft,colorInfoBg:Wt}=A;return{[G]:{"&-success":F(ge,pe,fe,A,G),"&-info":F(Wt,ft,Et,A,G),"&-warning":F(Ge,Te,be,A,G),"&-error":Object.assign(Object.assign({},F(pt,Qe,Je,A,G)),{[`${G}-description > pre`]:{margin:0,padding:0}})}}},L=A=>{const{componentCls:G,iconCls:fe,motionDurationMid:pe,marginXS:ge,fontSizeIcon:be,colorIcon:Te,colorIconHover:Ge}=A;return{[G]:{["&-action"]:{marginInlineStart:ge},[`${G}-close-icon`]:{marginInlineStart:ge,padding:0,overflow:"hidden",fontSize:be,lineHeight:`${be}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${fe}-close`]:{color:Te,transition:`color ${pe}`,"&:hover":{color:Ge}}},"&-close-text":{color:Te,transition:`color ${pe}`,"&:hover":{color:Ge}}}}},$=A=>[Z(A),N(A),L(A)];var D=(0,w.Z)("Alert",A=>{const{fontSizeHeading3:G}=A,fe=(0,C.TS)(A,{alertIconSizeLG:G,alertPaddingHorizontal:12});return[$(fe)]}),T=function(A,G){var fe={};for(var pe in A)Object.prototype.hasOwnProperty.call(A,pe)&&G.indexOf(pe)<0&&(fe[pe]=A[pe]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,pe=Object.getOwnPropertySymbols(A);ge{const{icon:G,prefixCls:fe,type:pe}=A,ge=j[pe]||null;return G?(0,M.wm)(G,g.createElement("span",{className:`${fe}-icon`},G),()=>({className:l()(`${fe}-icon`,{[G.props.className]:G.props.className})})):g.createElement(ge,{className:`${fe}-icon`})},k=A=>{const{isClosable:G,prefixCls:fe,closeIcon:pe,handleClose:ge}=A,be=pe===!0||pe===void 0?g.createElement(o.Z,null):pe;return G?g.createElement("button",{type:"button",onClick:ge,className:`${fe}-close-icon`,tabIndex:0},be):null};var V=A=>{const{description:G,prefixCls:fe,message:pe,banner:ge,className:be,rootClassName:Te,style:Ge,onMouseEnter:Je,onMouseLeave:Qe,onClick:pt,afterClose:Et,showIcon:ft,closable:Wt,closeText:$e,closeIcon:Xe,action:nt}=A,Ke=T(A,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[ye,ne]=g.useState(!1),H=g.useRef(null),{getPrefixCls:R,direction:P,alert:ae}=g.useContext(h.E_),Q=R("alert",fe),[ie,me]=D(Q),je=J=>{var de;ne(!0),(de=A.onClose)===null||de===void 0||de.call(A,J)},Ee=g.useMemo(()=>A.type!==void 0?A.type:ge?"warning":"info",[A.type,ge]),Me=g.useMemo(()=>$e?!0:typeof Wt=="boolean"?Wt:Xe!==!1&&Xe!==null&&Xe!==void 0,[$e,Xe,Wt]),We=ge&&ft===void 0?!0:ft,re=l()(Q,`${Q}-${Ee}`,{[`${Q}-with-description`]:!!G,[`${Q}-no-icon`]:!We,[`${Q}-banner`]:!!ge,[`${Q}-rtl`]:P==="rtl"},ae==null?void 0:ae.className,be,Te,me),se=(0,m.Z)(Ke,{aria:!0,data:!0});return ie(g.createElement(c.ZP,{visible:!ye,motionName:`${Q}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:J=>({maxHeight:J.offsetHeight}),onLeaveEnd:Et},J=>{let{className:de,style:xe}=J;return g.createElement("div",Object.assign({ref:H,"data-show":!ye,className:l()(re,de),style:Object.assign(Object.assign(Object.assign({},ae==null?void 0:ae.style),Ge),xe),onMouseEnter:Je,onMouseLeave:Qe,onClick:pt,role:"alert"},se),We?g.createElement(K,{description:G,icon:A.icon,prefixCls:Q,type:Ee}):null,g.createElement("div",{className:`${Q}-content`},pe?g.createElement("div",{className:`${Q}-message`},pe):null,G?g.createElement("div",{className:`${Q}-description`},G):null),nt?g.createElement("div",{className:`${Q}-action`},nt):null,g.createElement(k,{isClosable:Me,prefixCls:Q,closeIcon:$e||Xe,handleClose:je}))}))},q=e(60412),le=e(14346),X=e(87498),W=e(73726),O=function(A){(0,X.Z)(fe,A);var G=(0,W.Z)(fe);function fe(){var pe;return(0,q.Z)(this,fe),pe=G.apply(this,arguments),pe.state={error:void 0,info:{componentStack:""}},pe}return(0,le.Z)(fe,[{key:"componentDidCatch",value:function(ge,be){this.setState({error:ge,info:be})}},{key:"render",value:function(){const{message:ge,description:be,children:Te}=this.props,{error:Ge,info:Je}=this.state,Qe=Je&&Je.componentStack?Je.componentStack:null,pt=typeof ge=="undefined"?(Ge||"").toString():ge,Et=typeof be=="undefined"?Qe:be;return Ge?g.createElement(V,{type:"error",message:pt,description:g.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},Et)}):Te}}]),fe}(g.Component);const _=V;_.ErrorBoundary=O;var U=_},70921:function(b,y,e){"use strict";e.d(y,{n:function(){return re},Z:function(){return xe}});var a=e(87608),t=e.n(a),o=e(98186),s=e(21319),n=e(58757),d=e(37486),l=e(61836),c=e(92428),m=e(58785),g=e(43528),h=(0,n.forwardRef)((ce,Le)=>{const{className:Oe,style:we,children:Ne,prefixCls:st}=ce,et=t()(`${st}-icon`,Oe);return n.createElement("span",{ref:Le,className:et,style:we},Ne)}),S=e(25755),w=e(17598);const C=(0,n.forwardRef)((ce,Le)=>{let{prefixCls:Oe,className:we,style:Ne,iconClassName:st}=ce;const et=t()(`${Oe}-loading-icon`,we);return n.createElement(h,{prefixCls:Oe,className:et,style:Ne,ref:Le},n.createElement(S.Z,{className:st}))}),F=()=>({width:0,opacity:0,transform:"scale(0)"}),Z=ce=>({width:ce.scrollWidth,opacity:1,transform:"scale(1)"});var L=ce=>{const{prefixCls:Le,loading:Oe,existIcon:we,className:Ne,style:st}=ce,et=!!Oe;return we?n.createElement(C,{prefixCls:Le,className:Ne,style:st}):n.createElement(w.ZP,{visible:et,motionName:`${Le}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:F,onAppearActive:Z,onEnterStart:F,onEnterActive:Z,onLeaveStart:Z,onLeaveActive:F},(Ye,ke)=>{let{className:Be,style:it}=Ye;return n.createElement(C,{prefixCls:Le,className:Ne,style:Object.assign(Object.assign({},st),it),ref:ke,iconClassName:Be})})},$=e(51806),D=function(ce,Le){var Oe={};for(var we in ce)Object.prototype.hasOwnProperty.call(ce,we)&&Le.indexOf(we)<0&&(Oe[we]=ce[we]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,we=Object.getOwnPropertySymbols(ce);Ne{const{getPrefixCls:Le,direction:Oe}=n.useContext(l.E_),{prefixCls:we,size:Ne,className:st}=ce,et=D(ce,["prefixCls","size","className"]),Ye=Le("btn-group",we),[,,ke]=(0,$.Z)();let Be="";switch(Ne){case"large":Be="lg";break;case"small":Be="sm";break;case"middle":case void 0:break;default:}const it=t()(Ye,{[`${Ye}-${Be}`]:Be,[`${Ye}-rtl`]:Oe==="rtl"},st,ke);return n.createElement(T.Provider,{value:Ne},n.createElement("div",Object.assign({},et,{className:it})))},k=e(37047);const te=/^[\u4e00-\u9fa5]{2}$/,V=te.test.bind(te);function q(ce){return typeof ce=="string"}function le(ce){return ce==="text"||ce==="link"}function X(ce,Le){if(ce==null)return;const Oe=Le?" ":"";return typeof ce!="string"&&typeof ce!="number"&&q(ce.type)&&V(ce.props.children)?(0,k.Tm)(ce,{children:ce.props.children.split("").join(Oe)}):q(ce)?V(ce)?n.createElement("span",null,ce.split("").join(Oe)):n.createElement("span",null,ce):(0,k.M2)(ce)?n.createElement("span",null,ce):ce}function W(ce,Le){let Oe=!1;const we=[];return n.Children.forEach(ce,Ne=>{const st=typeof Ne,et=st==="string"||st==="number";if(Oe&&et){const Ye=we.length-1,ke=we[Ye];we[Ye]=`${ke}${Ne}`}else we.push(Ne);Oe=et}),n.Children.map(we,Ne=>X(Ne,Le))}const x=null,O=null,_=null;var U=e(78330),A=e(64493);function G(ce,Le){return{[`&-item:not(${Le}-last-item)`]:{marginBottom:-ce.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function fe(ce,Le){return{[`&-item:not(${Le}-first-item):not(${Le}-last-item)`]:{borderRadius:0},[`&-item${Le}-first-item:not(${Le}-last-item)`]:{[`&, &${ce}-sm, &${ce}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${Le}-last-item:not(${Le}-first-item)`]:{[`&, &${ce}-sm, &${ce}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function pe(ce){const Le=`${ce.componentCls}-compact-vertical`;return{[Le]:Object.assign(Object.assign({},G(ce,Le)),fe(ce.componentCls,Le))}}var ge=e(22151),be=e(52628);const Te=(ce,Le)=>({[`> span, > ${ce}`]:{"&:not(:last-child)":{[`&, & > ${ce}`]:{"&:not(:disabled)":{borderInlineEndColor:Le}}},"&:not(:first-child)":{[`&, & > ${ce}`]:{"&:not(:disabled)":{borderInlineStartColor:Le}}}}});var Je=ce=>{const{componentCls:Le,fontSize:Oe,lineWidth:we,colorPrimaryHover:Ne,colorErrorHover:st}=ce;return{[`${Le}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${Le}`]:{"&:not(:last-child)":{[`&, & > ${Le}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-we,[`&, & > ${Le}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[Le]:{position:"relative",zIndex:1,[`&:hover, &:focus, diff --git a/deepdataspace/server/templates/index.html b/deepdataspace/server/templates/index.html index a73c5e8..f8f6551 100644 --- a/deepdataspace/server/templates/index.html +++ b/deepdataspace/server/templates/index.html @@ -9,6 +9,6 @@
- + \ No newline at end of file diff --git a/setup.py b/setup.py index 921019e..49bb011 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup -version = "0.12.0" +version = "0.12.1" description = "A tool for CV dataset labeling, visualizing and analysing" with open("README.md", "r", encoding="utf8") as fp: