diff --git a/asset-manifest.json b/asset-manifest.json index a97c54b..839a00f 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/splat3seedchecker/static/css/main.c73ff64c.css", - "main.js": "/splat3seedchecker/static/js/main.f9a92f2e.js", + "main.js": "/splat3seedchecker/static/js/main.963f1f1e.js", "react-syntax-highlighter/refractor-core-import.js": "/splat3seedchecker/static/js/react-syntax-highlighter/refractor-core-import.98b44694.chunk.js", "react-syntax-highlighter_languages_refractor_abap.js": "/splat3seedchecker/static/js/react-syntax-highlighter_languages_refractor_abap.2f89a876.chunk.js", "react-syntax-highlighter_languages_refractor_actionscript.js": "/splat3seedchecker/static/js/react-syntax-highlighter_languages_refractor_actionscript.edc3618f.chunk.js", @@ -181,7 +181,7 @@ "static/media/img_order1.png": "/splat3seedchecker/static/media/img_order1.304481548304734f75a4.png", "index.html": "/splat3seedchecker/index.html", "main.c73ff64c.css.map": "/splat3seedchecker/static/css/main.c73ff64c.css.map", - "main.f9a92f2e.js.map": "/splat3seedchecker/static/js/main.f9a92f2e.js.map", + "main.963f1f1e.js.map": "/splat3seedchecker/static/js/main.963f1f1e.js.map", "refractor-core-import.98b44694.chunk.js.map": "/splat3seedchecker/static/js/react-syntax-highlighter/refractor-core-import.98b44694.chunk.js.map", "react-syntax-highlighter_languages_refractor_abap.2f89a876.chunk.js.map": "/splat3seedchecker/static/js/react-syntax-highlighter_languages_refractor_abap.2f89a876.chunk.js.map", "react-syntax-highlighter_languages_refractor_actionscript.edc3618f.chunk.js.map": "/splat3seedchecker/static/js/react-syntax-highlighter_languages_refractor_actionscript.edc3618f.chunk.js.map", @@ -340,6 +340,6 @@ }, "entrypoints": [ "static/css/main.c73ff64c.css", - "static/js/main.f9a92f2e.js" + "static/js/main.963f1f1e.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index cc83f2c..2ac0204 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
>1,c=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:n-1,m=o?1:-1,d=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(_=isNaN(a)?1:0,i=l):(i=Math.floor(Math.log(a)/Math.LN2),a*(s=Math.pow(2,-i))<1&&(i--,s*=2),(a+=i+u>=1?c/s:c*Math.pow(2,1-u))*s>=2&&(i++,s/=2),i+u>=l?(_=0,i=l):i+u>=1?(_=(a*s-1)*Math.pow(2,t),i+=u):(_=a*Math.pow(2,u-1)*Math.pow(2,t),i=0));t>=8;e[r+f]=255&_,f+=m,_/=256,t-=8);for(i=i< e||125 0}),m()},onMouseLeave:function(){o.setState({nodesSelectionActive:!1}),m()},children:l.draw&&(0,Ta.jsx)("div",{className:"react-flow__selection react-flow__container",style:{width:l.width,height:l.height,transform:"translate(".concat(l.x,"px, ").concat(l.y,"px)")}})})}));function kc(e,a){if(!e.parentNode)return!1;var r=a.get(e.parentNode);return!!r&&(!!r.selected||kc(r,a))}function bc(e,a,r){var o=e;do{var t;if(null!==(t=o)&&void 0!==t&&t.matches(a))return!0;if(o===r.current)return!1;o=o.parentElement}while(o);return!1}function Lc(e,a,r){return Array.from(e.values()).filter((function(a){return(a.selected||a.id===r)&&(!a.parentNode||!kc(a,e))})).map((function(e){var r,o,t,n;return{id:e.id,position:e.position||{x:0,y:0},positionAbsolute:e.positionAbsolute||{x:0,y:0},distance:{x:a.x-(null!==(r=null===(o=e.positionAbsolute)||void 0===o?void 0:o.x)&&void 0!==r?r:0),y:a.y-(null!==(t=null===(n=e.positionAbsolute)||void 0===n?void 0:n.y)&&void 0!==t?t:0)},delta:{x:0,y:0},extent:e.extent,parentNode:e.parentNode,width:e.width,height:e.height}}))}function vc(e,a,r,o){var t=e.extent||o;if("parent"===e.extent)if(e.parentNode&&e.width&&e.height){var n=r.get(e.parentNode);t=null!==n&&void 0!==n&&n.positionAbsolute&&null!==n&&void 0!==n&&n.width&&null!==n&&void 0!==n&&n.height?[[n.positionAbsolute.x,n.positionAbsolute.y],[n.positionAbsolute.x+n.width-e.width,n.positionAbsolute.y+n.height-e.height]]:t}else xl(),t=o;else if(e.extent&&e.parentNode){var i,_,s,p,l=r.get(e.parentNode),u=null!==(i=null===l||void 0===l||null===(_=l.positionAbsolute)||void 0===_?void 0:_.x)&&void 0!==i?i:0,c=null!==(s=null===l||void 0===l||null===(p=l.positionAbsolute)||void 0===p?void 0:p.y)&&void 0!==s?s:0;t=[[e.extent[0][0]+u,e.extent[0][1]+c],[e.extent[1][0]+u,e.extent[1][1]+c]]}var f={x:0,y:0};if(e.parentNode){var m,d,S,g,y=r.get(e.parentNode);f={x:null!==(m=null===y||void 0===y||null===(d=y.positionAbsolute)||void 0===d?void 0:d.x)&&void 0!==m?m:0,y:null!==(S=null===y||void 0===y||null===(g=y.positionAbsolute)||void 0===g?void 0:g.y)&&void 0!==S?S:0}}var h=t?Rl(a,t):a;return{position:{x:h.x-f.x,y:h.y-f.y},positionAbsolute:h}}function Tc(e){var a=e.nodeId,r=e.dragItems,o=e.nodeInternals,t=r.map((function(e){var a=o.get(e.id);return(0,Pa.Z)((0,Pa.Z)({},a),{},{position:e.position,positionAbsolute:e.positionAbsolute})}));return[a?t.find((function(e){return e.id===a})):t[0],t]}hc.displayName="UserSelection";var Mc=function(e,a,r,o){var t=a.querySelectorAll(e);if(!t||!t.length)return null;var n=Array.from(t),i=a.getBoundingClientRect(),_=i.width*o[0],s=i.height*o[1];return n.map((function(e){var a=e.getBoundingClientRect();return(0,Pa.Z)({id:e.getAttribute("data-handleid"),position:e.getAttribute("data-handlepos"),x:(a.left-i.left-_)/r,y:(a.top-i.top-s)/r},Bl(e))}))};function Cc(e,a,r){return void 0===r?r:function(o){var t=a().nodeInternals.get(e);r(o,(0,Pa.Z)({},t))}}function Pc(e){var a=e.id,r=e.store,o=e.unselect,t=void 0!==o&&o,n=r.getState(),i=n.addSelectedNodes,_=n.unselectNodesAndEdges,s=n.multiSelectionActive,p=n.nodeInternals.get(a);r.setState({nodesSelectionActive:!1}),p.selected?(t||p.selected&&s)&&_({nodes:[p]}):i([a])}function Bc(e){return function(a,r,o){return null===e||void 0===e?void 0:e(a,o)}}function Ic(a){var r=a.nodeRef,o=a.disabled,n=void 0!==o&&o,i=a.noDragClassName,_=a.handleSelector,s=a.nodeId,p=a.isSelectable,l=a.selectNodesOnDrag,u=(0,e.useState)(!1),c=(0,t.Z)(u,2),f=c[0],m=c[1],d=su(),S=(0,e.useRef)(),g=(0,e.useRef)({x:null,y:null}),y=(0,e.useCallback)((function(e){var a=e.sourceEvent,r=d.getState(),o=r.transform,t=r.snapGrid,n=r.snapToGrid,i=a.touches?a.touches[0].clientX:a.clientX,_=a.touches?a.touches[0].clientY:a.clientY,s={x:(i-o[0])/o[2],y:(_-o[1])/o[2]};return(0,Pa.Z)({xSnapped:n?t[0]*Math.round(s.x/t[0]):s.x,ySnapped:n?t[1]*Math.round(s.y/t[1]):s.y},s)}),[]);return(0,e.useEffect)((function(){if(null!==r&&void 0!==r&&r.current){var e=x_(r.current);if(!n){var a=function(){var e,a,r,o,t=fl,n=ml,i=dl,_=Sl,s={},p=hi("start","drag","end"),l=0,u=0;function c(e){e.on("mousedown.drag",f).filter(_).on("touchstart.drag",S).on("touchmove.drag",g,W_).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(i,_){if(!o&&t.call(this,i,_)){var s=h(this,n.call(this,i,_),i,_,"mouse");s&&(x_(i.view).on("mousemove.drag",m,F_).on("mouseup.drag",d,F_),j_(i.view),E_(i),r=!1,e=i.clientX,a=i.clientY,s("start",i))}}function m(o){if(D_(o),!r){var t=o.clientX-e,n=o.clientY-a;r=t*t+n*n>u}s.mouse("drag",o)}function d(e){x_(e.view).on("mousemove.drag mouseup.drag",null),z_(e.view,r),D_(e),s.mouse("end",e)}function S(e,a){if(t.call(this,e,a)){var r,o,i=e.changedTouches,_=n.call(this,e,a),s=i.length;for(r=0;r >>0,v);for(var _=0;_ >>0,v);for(var l=0;l >>0,v);for(var c=0;c 0&&(t=e.results.map((function(a,r){return r>100?null:(0,Ta.jsx)("tr",{className:0===(1&r)?WS:FS,children:ES.map((function(a,o){return(0,Ta.jsx)("td",{children:e.results[r][a]},r+"."+o)}))},r)}))),(0,Ta.jsx)("div",{className:NS,children:(0,Ta.jsxs)("table",{className:AS,children:[(0,Ta.jsx)("thead",{children:(0,Ta.jsx)("tr",{children:o})}),(0,Ta.jsx)("tbody",{children:t})]})})},jS=e.memo(DS),zS=function(e){var a=(0,Ne.$)().t;return(0,Ta.jsxs)("div",{className:GS,children:[(0,Ta.jsx)("p",{children:a("misc:Recovery.Refine1")}),(0,Ta.jsx)("p",{children:a("misc:Recovery.Refine2")}),(0,Ta.jsx)(vn.Z,{title:a("misc:Recovery.RefineCount"),type:"number",val:e.value,changed:e.refineHandler})]})},VS=r(4130),KS=r.n(VS),qS=["Head","Clothes","Shoes"],JS=function(a){var r=(0,Ne.$)().t,o=(0,e.useState)(!1),n=(0,t.Z)(o,2),i=n[0],_=n[1],s=(0,ba.Fw)(r,!0),p=(0,e.useState)(s[0]),u=(0,t.Z)(p,2),c=u[0],f=u[1],m=(0,e.useState)([[{value:"None",label:r("misc:Common.None")},{value:"None",label:r("misc:Common.None")}]]),d=(0,t.Z)(m,2),S=d[0],g=d[1],y=(0,e.useState)([]),h=(0,t.Z)(y,2),k=h[0],b=h[1],L=(0,e.useState)({Label:r("misc:Common.None")}),v=(0,t.Z)(L,2),T=v[0],M=v[1],C=(0,e.useState)(1e4),P=(0,t.Z)(C,2),B=P[0],I=P[1],R=(0,ba._)("gearList",ii.OU),G=(0,t.Z)(R,2),H=G[0],O=G[1],w=(0,e.useMemo)((function(){return new Worker("./seed-worker.js")}),[]);(0,e.useEffect)((function(){w.onmessage=function(e){e&&e.data&&(b(e.data.res),_(!1))}}),[w]);var N=function(e,a){g((function(r){var o=(0,l.Z)(r);return o[a][0]=e,o}))},A=function(e,a){g((function(r){var o=(0,l.Z)(r);return o[a][1]=e,o}))},U=function(){var e=(0,l.Z)(S);e.push([{value:"None",label:r("misc:Common.None")},{value:"None",label:r("misc:Common.None")}]),g(e)},x=function(){var e=(0,l.Z)(S);e.pop(),g(e)};return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)(Ga,{show:i}),(0,Ta.jsxs)("h1",{children:["Splatoon 3 - ",r("misc:Navigation.GearSeedRecovery")]}),(0,Ta.jsx)(_i,{currentGear:T,gearChange:function(e){f({value:e.value.Brand,label:r("translation:CommonMsg.Gear.GearBrandName."+e.value.Brand)}),M(e);for(var a=[],o=0;o>>1,t=e[o];if(!(00&&r0&&(null===s||void 0===s||s(S),u&&u(g.map((function(e){return{id:e,type:"remove"}})))),c.length>0&&(null===_||void 0===_||_(c),p)){var y=c.map((function(e){return{id:e.id,type:"remove"}}));p(y)}t.setState({nodesSelectionActive:!1})}}}),[n]),(0,e.useEffect)((function(){t.setState({multiSelectionActive:i})}),[i])}({deleteKeyCode:p,multiSelectionKeyCode:d});var U=_?function(e){return _(e)}:void 0,x=s?function(e){return s(e)}:void 0;return(0,Ta.jsxs)(lc,{onMove:u,onMoveStart:c,onMoveEnd:f,selectionKeyPressed:A,elementsSelectable:g,zoomOnScroll:y,zoomOnPinch:h,panOnScroll:k,panOnScrollSpeed:b,panOnScrollMode:L,zoomOnDoubleClick:v,panOnDrag:T,defaultViewport:M,translateExtent:C,minZoom:P,maxZoom:B,zoomActivationKeyCode:S,preventScrolling:I,noWheelClassName:G,noPanClassName:H,children:[r,(0,Ta.jsx)(hc,{selectionKeyPressed:A}),N&&(0,Ta.jsx)(Nc,{onSelectionContextMenu:R,noPanClassName:H,disableKeyboardA11y:O}),(0,Ta.jsx)(Uc,{onClick:function(e){null===o||void 0===o||o(e),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},onMouseEnter:t,onMouseMove:n,onMouseLeave:i,onContextMenu:U,onWheel:x})]})};Wc.displayName="FlowRenderer";var Fc=(0,e.memo)(Wc);function Ec(e){var a={input:Hc(e.input||Iu),default:Hc(e.default||Pu),output:Hc(e.output||Gu),group:Hc(e.group||Hu)},r=Object.keys(e).filter((function(e){return!["input","default","output","group"].includes(e)})).reduce((function(a,r){return a[r]=Hc(e[r]||Pu),a}),{});return(0,Pa.Z)((0,Pa.Z)({},a),r)}var Dc=function(e){return{nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions}},jc=function(a){var r,o=_u(Dc,pi),t=o.nodesDraggable,n=o.nodesConnectable,i=o.nodesFocusable,_=o.elementsSelectable,s=o.updateNodeDimensions,p=(r=a.onlyRenderVisibleElements,_u((0,e.useCallback)((function(e){return r?yu(e.nodeInternals,{x:0,y:0,width:e.width,height:e.height},e.transform,!0):Array.from(e.nodeInternals.values())}),[r]))),l=(0,e.useRef)(),u=(0,e.useMemo)((function(){if("undefined"===typeof ResizeObserver)return null;var e=new ResizeObserver((function(e){var a=e.map((function(e){return{id:e.target.getAttribute("data-id"),nodeElement:e.target,forceUpdate:!0}}));s(a)}));return l.current=e,e}),[]);return(0,e.useEffect)((function(){return function(){var e;null===l||void 0===l||null===(e=l.current)||void 0===e||e.disconnect()}}),[]),(0,Ta.jsx)("div",{className:"react-flow__nodes",style:ic,children:p.map((function(e){var r,o,s,p,l,c,f,m=e.type||"default";a.nodeTypes[m]||(xl('Node type "'.concat(m,'" not found. Using fallback type "default". Help: https://reactflow.dev/error#300')),m="default");var d=a.nodeTypes[m]||a.nodeTypes.default,S=!!(e.draggable||t&&"undefined"===typeof e.draggable),g=!!(e.selectable||_&&"undefined"===typeof e.selectable),y=!!(e.connectable||n&&"undefined"===typeof e.connectable),h=!!(e.focusable||i&&"undefined"===typeof e.focusable),k=a.nodeExtent?Rl(e.positionAbsolute,a.nodeExtent):e.positionAbsolute,b=null!==(r=null===k||void 0===k?void 0:k.x)&&void 0!==r?r:0,L=null!==(o=null===k||void 0===k?void 0:k.y)&&void 0!==o?o:0,v=function(e){var a=e.x,r=e.y,o=e.width,t=e.height,n=e.origin;return o&&t?n[0]<0||n[1]<0||n[0]>1||n[1]>1?(xl(),{x:a,y:r}):{x:a-o*n[0],y:r-t*n[1]}:{x:a,y:r}}({x:b,y:L,width:null!==(s=e.width)&&void 0!==s?s:0,height:null!==(p=e.height)&&void 0!==p?p:0,origin:a.nodeOrigin});return(0,Ta.jsx)(d,{id:e.id,className:e.className,style:e.style,type:m,data:e.data,sourcePosition:e.sourcePosition||Pl.Bottom,targetPosition:e.targetPosition||Pl.Top,hidden:e.hidden,xPos:b,yPos:L,xPosOrigin:v.x,yPosOrigin:v.y,selectNodesOnDrag:a.selectNodesOnDrag,onClick:a.onNodeClick,onMouseEnter:a.onNodeMouseEnter,onMouseMove:a.onNodeMouseMove,onMouseLeave:a.onNodeMouseLeave,onContextMenu:a.onNodeContextMenu,onDoubleClick:a.onNodeDoubleClick,selected:!!e.selected,isDraggable:S,isSelectable:g,isConnectable:y,isFocusable:h,resizeObserver:u,dragHandle:e.dragHandle,zIndex:null!==(l=null===(c=e[Al])||void 0===c?void 0:c.z)&&void 0!==l?l:0,isParent:!(null===(f=e[Al])||void 0===f||!f.isParent),noDragClassName:a.noDragClassName,noPanClassName:a.noPanClassName,initialized:!!e.width&&!!e.height,rfId:a.rfId,disableKeyboardA11y:a.disableKeyboardA11y,ariaLabel:e.ariaLabel},e.id)}))})};jc.displayName="NodeRenderer";var zc=(0,e.memo)(jc),Vc=[{level:0,isMaxLevel:!0,edges:[]}];function Kc(a,r,o){var n=_u((0,e.useCallback)((function(e){return a?e.edges.filter((function(a){var o=r.get(a.source),t=r.get(a.target);return(null===o||void 0===o?void 0:o.width)&&(null===o||void 0===o?void 0:o.height)&&(null===t||void 0===t?void 0:t.width)&&(null===t||void 0===t?void 0:t.height)&&function(e){var a=e.sourcePos,r=e.targetPos,o=e.sourceWidth,t=e.sourceHeight,n=e.targetWidth,i=e.targetHeight,_=e.width,s=e.height,p=e.transform,l={x:Math.min(a.x,r.x),y:Math.min(a.y,r.y),x2:Math.max(a.x+o,r.x+n),y2:Math.max(a.y+t,r.y+i)};l.x===l.x2&&(l.x2+=1),l.y===l.y2&&(l.y2+=1);var u=Ol({x:(0-p[0])/p[2],y:(0-p[1])/p[2],width:_/p[2],height:s/p[2]}),c=Math.max(0,Math.min(u.x2,l.x2)-Math.max(u.x,l.x)),f=Math.max(0,Math.min(u.y2,l.y2)-Math.max(u.y,l.y));return Math.ceil(c*f)>0}({sourcePos:o.positionAbsolute||{x:0,y:0},targetPos:t.positionAbsolute||{x:0,y:0},sourceWidth:o.width,sourceHeight:o.height,targetWidth:t.width,targetHeight:t.height,width:e.width,height:e.height,transform:e.transform})})):e.edges}),[a,r]));return function(e,a){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=-1,n=e.reduce((function(e,t){var n,i,_,s,p=Nl(t.zIndex),l=p?t.zIndex:0;return r&&(l=p?t.zIndex:Math.max((null===(n=a.get(t.source))||void 0===n||null===(i=n[Al])||void 0===i?void 0:i.z)||0,(null===(_=a.get(t.target))||void 0===_||null===(s=_[Al])||void 0===s?void 0:s.z)||0)),e[l]?e[l].push(t):e[l]=[t],o=l>o?l:o,e}),{}),i=Object.entries(n).map((function(e){var a=(0,t.Z)(e,2),r=+a[0];return{edges:a[1],level:r,isMaxLevel:r===o}}));return 0===i.length?Vc:i}(n,r,o)}var qc=(pl={},(0,To.Z)(pl,Pl.Left,Pl.Right),(0,To.Z)(pl,Pl.Right,Pl.Left),(0,To.Z)(pl,Pl.Top,Pl.Bottom),(0,To.Z)(pl,Pl.Bottom,Pl.Top),pl),Jc=function(a){var r,o,n,i,_,s=a.connectionNodeId,p=a.connectionHandleType,l=a.connectionLineStyle,u=a.connectionLineType,c=void 0===u?Ml.Bezier:u,f=a.isConnectable,m=a.CustomConnectionLineComponent,d=_u((0,e.useCallback)((function(e){return{fromNode:e.nodeInternals.get(s),handleId:e.connectionHandleId,toX:(e.connectionPosition.x-e.transform[0])/e.transform[2],toY:(e.connectionPosition.y-e.transform[1])/e.transform[2]}}),[s]),pi),S=d.fromNode,g=d.handleId,y=d.toX,h=d.toY,k=null===S||void 0===S||null===(r=S[Al])||void 0===r?void 0:r.handleBounds;if(!S||!f||null===k||void 0===k||!k[p])return null;var b=k[p],L=g?b.find((function(e){return e.id===g})):b[0],v=L?L.x+L.width/2:(null!==(o=null===S||void 0===S?void 0:S.width)&&void 0!==o?o:0)/2,T=L?L.y+L.height/2:null!==(n=null===S||void 0===S?void 0:S.height)&&void 0!==n?n:0,M=((null===S||void 0===S||null===(i=S.positionAbsolute)||void 0===i?void 0:i.x)||0)+v,C=((null===S||void 0===S||null===(_=S.positionAbsolute)||void 0===_?void 0:_.y)||0)+T,P=null===L||void 0===L?void 0:L.position;if(!P)return null;var B=qc[P];if(m)return(0,Ta.jsx)("g",{className:"react-flow__connection",children:(0,Ta.jsx)(m,{connectionLineType:c,connectionLineStyle:l,fromNode:S,fromHandle:L,fromX:M,fromY:C,toX:y,toY:h,fromPosition:P,toPosition:B})});var I="",R={sourceX:M,sourceY:C,sourcePosition:P,targetX:y,targetY:h,targetPosition:B};if(c===Ml.Bezier){var G=ru(R);I=(0,t.Z)(G,1)[0]}else if(c===Ml.Step){var H=Yl((0,Pa.Z)((0,Pa.Z)({},R),{},{borderRadius:0}));I=(0,t.Z)(H,1)[0]}else if(c===Ml.SmoothStep){var O=Yl(R);I=(0,t.Z)(O,1)[0]}else if(c===Ml.SimpleBezier){var w=Vl(R);I=(0,t.Z)(w,1)[0]}else I="M".concat(M,",").concat(C," ").concat(y,",").concat(h);return(0,Ta.jsx)("g",{className:"react-flow__connection",children:(0,Ta.jsx)("path",{d:I,fill:"none",className:"react-flow__connection-path",style:l})})};Jc.displayName="ConnectionLine";var Zc=(ll={},(0,To.Z)(ll,Cl.Arrow,(function(e){var a=e.color,r=void 0===a?"none":a,o=e.strokeWidth,t=void 0===o?1:o;return(0,Ta.jsx)("polyline",{stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:t,fill:"none",points:"-5,-4 0,0 -5,4"})})),(0,To.Z)(ll,Cl.ArrowClosed,(function(e){var a=e.color,r=void 0===a?"none":a,o=e.strokeWidth,t=void 0===o?1:o;return(0,Ta.jsx)("polyline",{stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:t,fill:r,points:"-5,-4 0,0 -5,4 -5,-4"})})),ll);var Yc=function(a){var r=a.id,o=a.type,t=a.color,n=a.width,i=void 0===n?12.5:n,_=a.height,s=void 0===_?12.5:_,p=a.markerUnits,l=void 0===p?"strokeWidth":p,u=a.strokeWidth,c=a.orient,f=void 0===c?"auto-start-reverse":c,m=function(a){return(0,e.useMemo)((function(){return Object.prototype.hasOwnProperty.call(Zc,a)?Zc[a]:(xl('Marker type "'.concat(a,"\" doesn't exist. Help: https://reactflow.dev/error#900")),null)}),[a])}(o);return m?(0,Ta.jsx)("marker",{className:"react-flow__arrowhead",id:r,markerWidth:"".concat(i),markerHeight:"".concat(s),viewBox:"-10 -10 20 20",markerUnits:l,orient:f,refX:"0",refY:"0",children:(0,Ta.jsx)(m,{color:t,strokeWidth:u})}):null},Qc=function(a){var r=a.defaultColor,o=a.rfId,t=_u((0,e.useCallback)(function(e){var a=e.defaultColor,r=e.rfId;return function(e){var o=[];return e.edges.reduce((function(e,t){return[t.markerStart,t.markerEnd].forEach((function(t){if(t&&"object"===typeof t){var n=du(t,r);o.includes(n)||(e.push((0,Pa.Z)({id:n,color:t.color||a},t)),o.push(n))}})),e}),[]).sort((function(e,a){return e.id.localeCompare(a.id)}))}}({defaultColor:r,rfId:o}),[r,o]),(function(e,a){return!(e.length!==a.length||e.some((function(e,r){return e.id!==a[r].id})))}));return(0,Ta.jsx)("defs",{children:t.map((function(e){return(0,Ta.jsx)(Yc,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id)}))})};Qc.displayName="MarkerDefinitions";var Xc=(0,e.memo)(Qc),$c=function(e){return{connectionNodeId:e.connectionNodeId,connectionHandleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals}},ef=function(e){var a=_u($c,pi),r=a.connectionNodeId,o=a.connectionHandleType,n=a.nodesConnectable,i=a.edgesFocusable,_=a.elementsSelectable,s=a.width,p=a.height,l=a.connectionMode,u=a.nodeInternals,c=Kc(e.onlyRenderVisibleElements,u,e.elevateEdgesOnSelect);if(!s)return null;var f=e.connectionLineType,m=e.defaultMarkerColor,d=e.connectionLineStyle,S=e.connectionLineComponent,g=e.connectionLineContainerStyle,y=r&&o;return(0,Ta.jsxs)(Ta.Fragment,{children:[c.map((function(a){var r=a.level,o=a.edges,n=a.isMaxLevel;return(0,Ta.jsxs)("svg",{style:{zIndex:r},width:s,height:p,className:"react-flow__edges react-flow__container",children:[n&&(0,Ta.jsx)(Xc,{defaultColor:m,rfId:e.rfId}),(0,Ta.jsx)("g",{children:o.map((function(a){var r=ec(u.get(a.source)),o=(0,t.Z)(r,3),n=o[0],s=o[1],p=o[2],c=ec(u.get(a.target)),f=(0,t.Z)(c,3),m=f[0],d=f[1],S=f[2];if(!p||!S)return null;var g=a.type||"default";e.edgeTypes[g]||(xl('Edge type "'.concat(g,'" not found. Using fallback type "default". Help: https://reactflow.dev/error#300')),g="default");var y=e.edgeTypes[g]||e.edgeTypes.default,h=l===gl.Strict?d.target:d.target||d.source,k=$u(s.source,a.sourceHandle||null),b=$u(h,a.targetHandle||null),L=(null===k||void 0===k?void 0:k.position)||Pl.Bottom,v=(null===b||void 0===b?void 0:b.position)||Pl.Top,T=!!(a.focusable||i&&"undefined"===typeof a.focusable);if(!k||!b)return xl("Couldn't create edge for ".concat(k?"target":"source"," handle id: ").concat(k?a.targetHandle:a.sourceHandle,"; edge id: ").concat(a.id,". Help: https://reactflow.dev/error#800")),null;var M=function(e,a,r,o,t,n){var i=Xu(r,e,a),_=Xu(n,o,t);return{sourceX:i.x,sourceY:i.y,targetX:_.x,targetY:_.y}}(n,k,L,m,b,v),C=M.sourceX,P=M.sourceY,B=M.targetX,I=M.targetY;return(0,Ta.jsx)(y,{id:a.id,className:si([a.className,e.noPanClassName]),type:g,data:a.data,selected:!!a.selected,animated:!!a.animated,hidden:!!a.hidden,label:a.label,labelStyle:a.labelStyle,labelShowBg:a.labelShowBg,labelBgStyle:a.labelBgStyle,labelBgPadding:a.labelBgPadding,labelBgBorderRadius:a.labelBgBorderRadius,style:a.style,source:a.source,target:a.target,sourceHandleId:a.sourceHandle,targetHandleId:a.targetHandle,markerEnd:a.markerEnd,markerStart:a.markerStart,sourceX:C,sourceY:P,targetX:B,targetY:I,sourcePosition:L,targetPosition:v,elementsSelectable:_,onEdgeUpdate:e.onEdgeUpdate,onContextMenu:e.onEdgeContextMenu,onMouseEnter:e.onEdgeMouseEnter,onMouseMove:e.onEdgeMouseMove,onMouseLeave:e.onEdgeMouseLeave,onClick:e.onEdgeClick,edgeUpdaterRadius:e.edgeUpdaterRadius,onEdgeDoubleClick:e.onEdgeDoubleClick,onEdgeUpdateStart:e.onEdgeUpdateStart,onEdgeUpdateEnd:e.onEdgeUpdateEnd,rfId:e.rfId,ariaLabel:a.ariaLabel,isFocusable:T,pathOptions:"pathOptions"in a?a.pathOptions:void 0,interactionWidth:a.interactionWidth},a.id)}))})]},r)})),y&&(0,Ta.jsx)("svg",{style:g,width:s,height:p,className:"react-flow__edges react-flow__connectionline react-flow__container",children:(0,Ta.jsx)(Jc,{connectionNodeId:r,connectionHandleType:o,connectionLineStyle:d,connectionLineType:f,isConnectable:n,CustomConnectionLineComponent:S})})]})};ef.displayName="EdgeRenderer";var af=(0,e.memo)(ef),rf=function(e){return"translate(".concat(e.transform[0],"px,").concat(e.transform[1],"px) scale(").concat(e.transform[2],")")};function of(e){var a=e.children,r=_u(rf);return(0,Ta.jsx)("div",{className:"react-flow__viewport react-flow__container",style:{transform:r},children:a})}function tf(e,a,r,o){var t,n,i,_,s,p,l,u,c,f,m,d;if(!e.parentNode)return o;var S=a.get(e.parentNode);return tf(S,a,r,{x:(null!==(t=o.x)&&void 0!==t?t:0)+(null!==(n=null===(i=S.position)||void 0===i?void 0:i.x)&&void 0!==n?n:0),y:(null!==(_=o.y)&&void 0!==_?_:0)+(null!==(s=null===(p=S.position)||void 0===p?void 0:p.y)&&void 0!==s?s:0),z:(null!==(l=null===(u=S[Al])||void 0===u?void 0:u.z)&&void 0!==l?l:0)>(null!==(c=o.z)&&void 0!==c?c:0)?null!==(f=null===(m=S[Al])||void 0===m?void 0:m.z)&&void 0!==f?f:0:null!==(d=o.z)&&void 0!==d?d:0})}function nf(e,a){var r=new Map,o={};return e.forEach((function(e){var t,n=Nl(e.zIndex)?e.zIndex:e.selected?1e3:0,i=a.get(e.id),_=(0,Pa.Z)((0,Pa.Z)({width:null===i||void 0===i?void 0:i.width,height:null===i||void 0===i?void 0:i.height},e),{},{positionAbsolute:{x:e.position.x,y:e.position.y}});e.parentNode&&(_.parentNode=e.parentNode,o[e.parentNode]=!0),Object.defineProperty(_,Al,{enumerable:!1,value:{handleBounds:null===i||void 0===i||null===(t=i[Al])||void 0===t?void 0:t.handleBounds,z:n}}),r.set(e.id,_)})),r.forEach((function(e){if(e.parentNode&&!r.has(e.parentNode))throw new Error("Parent node ".concat(e.parentNode," not found"));if(e.parentNode||o[e.id]){var a,t,n=tf(e,r,o,(0,Pa.Z)((0,Pa.Z)({},e.position),{},{z:null!==(a=null===(t=e[Al])||void 0===t?void 0:t.z)&&void 0!==a?a:0})),i=n.x,_=n.y,s=n.z;e.positionAbsolute={x:i,y:_},e[Al].z=s,o[e.id]&&(e[Al].isParent=!0)}})),r}function _f(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e(),o=r.nodeInternals,n=r.width,i=r.height,_=r.minZoom,s=r.maxZoom,p=r.d3Zoom,l=r.d3Selection,u=r.fitViewOnInitDone,c=r.fitViewOnInit;if((a.initial&&!u&&c||!a.initial)&&p&&l){var f=Array.from(o.values()).filter((function(e){return a.includeHiddenNodes?e.width&&e.height:!e.hidden})),m=f.every((function(e){return e.width&&e.height}));if(f.length>0&&m){var d,S,g,y=gu(f),h=ku(y,n,i,null!==(d=a.minZoom)&&void 0!==d?d:_,null!==(S=a.maxZoom)&&void 0!==S?S:s,null!==(g=a.padding)&&void 0!==g?g:.1),k=(0,t.Z)(h,3),b=k[0],L=k[1],v=k[2],T=$p.translate(b,L).scale(v);return"number"===typeof a.duration&&a.duration>0?p.transform(bu(l,a.duration),T):p.transform(l,T),!0}}return!1}function sf(e,a){return e.forEach((function(e){var r,o=a.get(e.id);o&&a.set(o.id,(0,Pa.Z)((0,Pa.Z)({},o),{},(r={},(0,To.Z)(r,Al,o[Al]),(0,To.Z)(r,"selected",e.selected),r)))})),new Map(a)}function pf(e,a){return a.map((function(a){var r=e.find((function(e){return e.id===a.id}));return r&&(a.selected=r.selected),a}))}function lf(e){var a=e.changedNodes,r=e.changedEdges,o=e.get,t=e.set,n=o(),i=n.nodeInternals,_=n.edges,s=n.onNodesChange,p=n.onEdgesChange,l=n.hasDefaultNodes,u=n.hasDefaultEdges;null!==a&&void 0!==a&&a.length&&(l&&t({nodeInternals:sf(a,i)}),null===s||void 0===s||s(a)),null!==r&&void 0!==r&&r.length&&(u&&t({edges:pf(r,_)}),null===p||void 0===p||p(r))}var uf=function(){},cf={zoomIn:uf,zoomOut:uf,zoomTo:uf,getZoom:function(){return 1},setViewport:uf,getViewport:function(){return{x:0,y:0,zoom:1}},fitView:uf,setCenter:uf,fitBounds:uf,project:function(e){return e},viewportInitialized:!1},ff=function(e){return{d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}},mf=function(){var a=su(),r=_u(ff,pi),o=r.d3Zoom,n=r.d3Selection,i=(0,e.useMemo)((function(){return n&&o?{zoomIn:function(e){return o.scaleBy(bu(n,null===e||void 0===e?void 0:e.duration),1.2)},zoomOut:function(e){return o.scaleBy(bu(n,null===e||void 0===e?void 0:e.duration),1/1.2)},zoomTo:function(e,a){return o.scaleTo(bu(n,null===a||void 0===a?void 0:a.duration),e)},getZoom:function(){return a.getState().transform[2]},setViewport:function(e,r){var i,_,s,p=(0,t.Z)(a.getState().transform,3),l=p[0],u=p[1],c=p[2],f=$p.translate(null!==(i=e.x)&&void 0!==i?i:l,null!==(_=e.y)&&void 0!==_?_:u).scale(null!==(s=e.zoom)&&void 0!==s?s:c);o.transform(bu(n,null===r||void 0===r?void 0:r.duration),f)},getViewport:function(){var e=(0,t.Z)(a.getState().transform,3);return{x:e[0],y:e[1],zoom:e[2]}},fitView:function(e){return _f(a.getState,e)},setCenter:function(e,r,t){var i=a.getState(),_=i.width,s=i.height,p=i.maxZoom,l="undefined"!==typeof(null===t||void 0===t?void 0:t.zoom)?t.zoom:p,u=_/2-e*l,c=s/2-r*l,f=$p.translate(u,c).scale(l);o.transform(bu(n,null===t||void 0===t?void 0:t.duration),f)},fitBounds:function(e,r){var i,_=a.getState(),s=_.width,p=_.height,l=_.minZoom,u=_.maxZoom,c=ku(e,s,p,l,u,null!==(i=null===r||void 0===r?void 0:r.padding)&&void 0!==i?i:.1),f=(0,t.Z)(c,3),m=f[0],d=f[1],S=f[2],g=$p.translate(m,d).scale(S);o.transform(bu(n,null===r||void 0===r?void 0:r.duration),g)},project:function(e){var r=a.getState();return function(e,a,r,o){var n=e.x,i=e.y,_=(0,t.Z)(a,3),s=_[0],p=_[1],l=_[2],u=(0,t.Z)(o,2),c=u[0],f=u[1],m={x:(n-s)/l,y:(i-p)/l};return r?{x:c*Math.round(m.x/c),y:f*Math.round(m.y/f)}:m}(e,r.transform,r.snapToGrid,r.snapGrid)},viewportInitialized:!0}:cf}),[o,n]);return i};function df(){var a=mf(),r=su(),o=(0,e.useCallback)((function(){var e=r.getState().nodeInternals;return Array.from(e.values()).map((function(e){return(0,Pa.Z)({},e)}))}),[]),n=(0,e.useCallback)((function(e){return r.getState().nodeInternals.get(e)}),[]),i=(0,e.useCallback)((function(){var e=r.getState().edges;return(void 0===e?[]:e).map((function(e){return(0,Pa.Z)({},e)}))}),[]),_=(0,e.useCallback)((function(e){var a=r.getState().edges;return(void 0===a?[]:a).find((function(a){return a.id===e}))}),[]),s=(0,e.useCallback)((function(e){var a=r.getState(),o=a.nodeInternals,t=a.setNodes,n=a.hasDefaultNodes,i=a.onNodesChange,_=Array.from(o.values()),s="function"===typeof e?e(_):e;if(n)t(s);else if(i){var p=0===s.length?_.map((function(e){return{type:"remove",id:e.id}})):s.map((function(e){return{item:e,type:"reset"}}));i(p)}}),[]),p=(0,e.useCallback)((function(e){var a=r.getState(),o=a.edges,t=void 0===o?[]:o,n=a.setEdges,i=a.hasDefaultEdges,_=a.onEdgesChange,s="function"===typeof e?e(t):e;if(i)n(s);else if(_){_(0===s.length?t.map((function(e){return{type:"remove",id:e.id}})):s.map((function(e){return{item:e,type:"reset"}})))}}),[]),u=(0,e.useCallback)((function(e){var a=Array.isArray(e)?e:[e],o=r.getState(),t=o.nodeInternals,n=o.setNodes,i=o.hasDefaultNodes,_=o.onNodesChange;if(i){var s=Array.from(t.values());n([].concat(s,(0,l.Z)(a)))}else if(_){var p=a.map((function(e){return{item:e,type:"add"}}));_(p)}}),[]),c=(0,e.useCallback)((function(e){var a=Array.isArray(e)?e:[e],o=r.getState(),t=o.edges,n=void 0===t?[]:t,i=o.setEdges,_=o.hasDefaultEdges,s=o.onEdgesChange;if(_)i([].concat((0,l.Z)(n),(0,l.Z)(a)));else if(s){s(a.map((function(e){return{item:e,type:"add"}})))}}),[]),f=(0,e.useCallback)((function(){var e=r.getState(),a=e.nodeInternals,o=e.edges,n=void 0===o?[]:o,i=e.transform,_=Array.from(a.values()),s=(0,t.Z)(i,3),p=s[0],l=s[1],u=s[2];return{nodes:_.map((function(e){return(0,Pa.Z)({},e)})),edges:n.map((function(e){return(0,Pa.Z)({},e)})),viewport:{x:p,y:l,zoom:u}}}),[]);return(0,e.useMemo)((function(){return(0,Pa.Z)((0,Pa.Z)({},a),{},{getNodes:o,getNode:n,getEdges:i,getEdge:_,setNodes:s,setEdges:p,addNodes:u,addEdges:c,toObject:f})}),[a,o,n,i,_,s,p,u,c,f])}var Sf=function(a){var r=a.nodeTypes,o=a.edgeTypes,t=a.onMove,n=a.onMoveStart,i=a.onMoveEnd,_=a.onInit,s=a.onNodeClick,p=a.onEdgeClick,l=a.onNodeDoubleClick,u=a.onEdgeDoubleClick,c=a.onNodeMouseEnter,f=a.onNodeMouseMove,m=a.onNodeMouseLeave,d=a.onNodeContextMenu,S=a.onSelectionContextMenu,g=a.connectionLineType,y=a.connectionLineStyle,h=a.connectionLineComponent,k=a.connectionLineContainerStyle,b=a.selectionKeyCode,L=a.multiSelectionKeyCode,v=a.zoomActivationKeyCode,T=a.deleteKeyCode,M=a.onlyRenderVisibleElements,C=a.elementsSelectable,P=a.selectNodesOnDrag,B=a.defaultViewport,I=a.translateExtent,R=a.minZoom,G=a.maxZoom,H=a.preventScrolling,O=a.defaultMarkerColor,w=a.zoomOnScroll,N=a.zoomOnPinch,A=a.panOnScroll,U=a.panOnScrollSpeed,x=a.panOnScrollMode,W=a.zoomOnDoubleClick,F=a.panOnDrag,E=a.onPaneClick,D=a.onPaneMouseEnter,j=a.onPaneMouseMove,z=a.onPaneMouseLeave,V=a.onPaneScroll,K=a.onPaneContextMenu,q=a.onEdgeUpdate,J=a.onEdgeContextMenu,Z=a.onEdgeMouseEnter,Y=a.onEdgeMouseMove,Q=a.onEdgeMouseLeave,X=a.edgeUpdaterRadius,$=a.onEdgeUpdateStart,ee=a.onEdgeUpdateEnd,ae=a.noDragClassName,re=a.noWheelClassName,oe=a.noPanClassName,te=a.elevateEdgesOnSelect,ne=a.disableKeyboardA11y,ie=a.nodeOrigin,_e=a.nodeExtent,se=a.rfId;return function(a){var r=df(),o=(0,e.useRef)(!1);(0,e.useEffect)((function(){!o.current&&r.viewportInitialized&&a&&(setTimeout((function(){return a(r)}),1),o.current=!0)}),[a,r.viewportInitialized])}(_),(0,Ta.jsx)(Fc,{onPaneClick:E,onPaneMouseEnter:D,onPaneMouseMove:j,onPaneMouseLeave:z,onPaneContextMenu:K,onPaneScroll:V,deleteKeyCode:T,selectionKeyCode:b,multiSelectionKeyCode:L,zoomActivationKeyCode:v,elementsSelectable:C,onMove:t,onMoveStart:n,onMoveEnd:i,zoomOnScroll:w,zoomOnPinch:N,zoomOnDoubleClick:W,panOnScroll:A,panOnScrollSpeed:U,panOnScrollMode:x,panOnDrag:F,defaultViewport:B,translateExtent:I,minZoom:R,maxZoom:G,onSelectionContextMenu:S,preventScrolling:H,noDragClassName:ae,noWheelClassName:re,noPanClassName:oe,disableKeyboardA11y:ne,children:(0,Ta.jsxs)(of,{children:[(0,Ta.jsx)(af,{edgeTypes:o,onEdgeClick:p,onEdgeDoubleClick:u,connectionLineType:g,connectionLineStyle:y,connectionLineComponent:h,connectionLineContainerStyle:k,onEdgeUpdate:q,onlyRenderVisibleElements:M,onEdgeContextMenu:J,onEdgeMouseEnter:Z,onEdgeMouseMove:Y,onEdgeMouseLeave:Q,onEdgeUpdateStart:$,onEdgeUpdateEnd:ee,edgeUpdaterRadius:X,defaultMarkerColor:O,noPanClassName:oe,elevateEdgesOnSelect:!!te,disableKeyboardA11y:ne,rfId:se}),(0,Ta.jsx)(zc,{nodeTypes:r,onNodeClick:s,onNodeDoubleClick:l,onNodeMouseEnter:c,onNodeMouseMove:f,onNodeMouseLeave:m,onNodeContextMenu:d,selectNodesOnDrag:P,onlyRenderVisibleElements:M,noPanClassName:oe,noDragClassName:ae,disableKeyboardA11y:ne,nodeOrigin:ie,nodeExtent:_e,rfId:se})]})})};Sf.displayName="GraphView";var gf=(0,e.memo)(Sf);function yf(a,r){(0,e.useRef)(null);return(0,e.useMemo)((function(){return r(a)}),[a])}var hf=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],kf={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:hf,nodeExtent:hf,nodesSelectionActive:!1,userSelectionActive:!1,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionMode:gl.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,elementsSelectable:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,multiSelectionActive:!1,connectionStartHandle:null,connectOnClick:!0,ariaLiveMessage:""},bf=function(){return e=function(e,a){return(0,Pa.Z)((0,Pa.Z)({},kf),{},{setNodes:function(r){e({nodeInternals:nf(r,a().nodeInternals)})},setEdges:function(r){var o=a().defaultEdgeOptions,t=void 0===o?{}:o;e({edges:r.map((function(e){return(0,Pa.Z)((0,Pa.Z)({},t),e)}))})},setDefaultNodesAndEdges:function(a,r){var o="undefined"!==typeof a,t="undefined"!==typeof r,n=o?nf(a,new Map):new Map;e({nodeInternals:n,edges:t?r:[],hasDefaultNodes:o,hasDefaultEdges:t})},updateNodeDimensions:function(r){var o=a(),t=o.onNodesChange,n=o.nodeInternals,i=o.fitViewOnInit,_=o.fitViewOnInitDone,s=o.fitViewOnInitOptions,p=o.domNode,l=o.nodeOrigin,u=null===p||void 0===p?void 0:p.querySelector(".react-flow__viewport");if(u){var c=window.getComputedStyle(u),f=new window.DOMMatrixReadOnly(c.transform).m22,m=r.reduce((function(e,a){var r=n.get(a.id);if(r){var o=Bl(a.nodeElement);o.width&&o.height&&(r.width!==o.width||r.height!==o.height||a.forceUpdate)&&(n.set(r.id,(0,Pa.Z)((0,Pa.Z)({},r),{},(0,To.Z)({},Al,(0,Pa.Z)((0,Pa.Z)({},r[Al]),{},{handleBounds:{source:Mc(".source",a.nodeElement,f,l),target:Mc(".target",a.nodeElement,f,l)}})),o)),e.push({id:r.id,type:"dimensions",dimensions:o}))}return e}),[]),d=_||i&&!_&&_f(a,(0,Pa.Z)({initial:!0},s));e({nodeInternals:new Map(n),fitViewOnInitDone:d}),(null===m||void 0===m?void 0:m.length)>0&&(null===t||void 0===t||t(m))}},updateNodePositions:function(r){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=a(),i=n.onNodesChange,_=n.nodeInternals,s=n.hasDefaultNodes;if(s||i){var p=r.map((function(e){var a={id:e.id,type:"position",dragging:t};return o&&(a.positionAbsolute=e.positionAbsolute,a.position=e.position),a}));if(null!==p&&void 0!==p&&p.length){if(s){var l=fc(p,Array.from(_.values())),u=nf(l,_);e({nodeInternals:u})}null===i||void 0===i||i(p)}}},addSelectedNodes:function(r){var o,t=a(),n=t.multiSelectionActive,i=t.nodeInternals,_=t.edges,s=null;n?o=r.map((function(e){return mc(e,!0)})):(o=dc(Array.from(i.values()),r),s=dc(_,[])),lf({changedNodes:o,changedEdges:s,get:a,set:e})},addSelectedEdges:function(r){var o,t=a(),n=t.multiSelectionActive,i=t.edges,_=t.nodeInternals,s=null;n?o=r.map((function(e){return mc(e,!0)})):(o=dc(i,r),s=dc(Array.from(_.values()),[])),lf({changedNodes:s,changedEdges:o,get:a,set:e})},unselectNodesAndEdges:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.nodes,t=r.edges,n=a(),i=n.nodeInternals,_=n.edges,s=o||Array.from(i.values()),p=t||_,l=s.map((function(e){return e.selected=!1,mc(e.id,!1)})),u=p.map((function(e){return mc(e.id,!1)}));lf({changedNodes:l,changedEdges:u,get:a,set:e})},setMinZoom:function(r){var o=a(),t=o.d3Zoom,n=o.maxZoom;null===t||void 0===t||t.scaleExtent([r,n]),e({minZoom:r})},setMaxZoom:function(r){var o=a(),t=o.d3Zoom,n=o.minZoom;null===t||void 0===t||t.scaleExtent([n,r]),e({maxZoom:r})},setTranslateExtent:function(r){var o=a().d3Zoom;null===o||void 0===o||o.translateExtent(r),e({translateExtent:r})},resetSelectedElements:function(){var r=a(),o=r.nodeInternals,t=r.edges,n=Array.from(o.values()).filter((function(e){return e.selected})).map((function(e){return mc(e.id,!1)})),i=t.filter((function(e){return e.selected})).map((function(e){return mc(e.id,!1)}));lf({changedNodes:n,changedEdges:i,get:a,set:e})},setNodeExtent:function(r){var o=a().nodeInternals;o.forEach((function(e){e.positionAbsolute=Rl(e.position,r)})),e({nodeExtent:r,nodeInternals:new Map(o)})},cancelConnection:function(){return e({connectionNodeId:kf.connectionNodeId,connectionHandleId:kf.connectionHandleId})},reset:function(){return e((0,Pa.Z)({},kf))}})},e?ci(e):ci;var e},Lf=function(a){var r=a.children,o=(0,e.useRef)(null);return o.current||(o.current=bf()),(0,Ta.jsx)(nu,{value:o.current,children:r})};Lf.displayName="ReactFlowProvider";var vf=function(e){var a=e.children,r=!0;try{su()}catch(ze){r=!1}return r?(0,Ta.jsx)(Ta.Fragment,{children:a}):(0,Ta.jsx)(Lf,{children:a})};vf.displayName="ReactFlowWrapper";var Tf={input:Iu,default:Pu,output:Gu,group:Hu},Mf={default:ou,straight:$l,step:Xl,smoothstep:Ql,simplebezier:Kl},Cf=[0,0],Pf=[15,15],Bf={x:0,y:0,zoom:1},If={width:"100%",height:"100%",position:"relative",overflow:"hidden"},Rf=(0,e.forwardRef)((function(e,a){var r=e.nodes,o=e.edges,t=e.defaultNodes,n=e.defaultEdges,i=e.className,_=e.nodeTypes,s=void 0===_?Tf:_,p=e.edgeTypes,l=void 0===p?Mf:p,u=e.onNodeClick,c=e.onEdgeClick,f=e.onInit,m=e.onMove,d=e.onMoveStart,S=e.onMoveEnd,g=e.onConnect,y=e.onConnectStart,h=e.onConnectEnd,k=e.onClickConnectStart,b=e.onClickConnectEnd,L=e.onNodeMouseEnter,v=e.onNodeMouseMove,T=e.onNodeMouseLeave,M=e.onNodeContextMenu,C=e.onNodeDoubleClick,P=e.onNodeDragStart,B=e.onNodeDrag,I=e.onNodeDragStop,R=e.onNodesDelete,G=e.onEdgesDelete,H=e.onSelectionChange,O=e.onSelectionDragStart,w=e.onSelectionDrag,N=e.onSelectionDragStop,A=e.onSelectionContextMenu,U=e.connectionMode,x=void 0===U?gl.Strict:U,W=e.connectionLineType,F=void 0===W?Ml.Bezier:W,E=e.connectionLineStyle,D=e.connectionLineComponent,j=e.connectionLineContainerStyle,z=e.deleteKeyCode,V=void 0===z?"Backspace":z,K=e.selectionKeyCode,q=void 0===K?"Shift":K,J=e.multiSelectionKeyCode,Z=void 0===J?"Meta":J,Y=e.zoomActivationKeyCode,Q=void 0===Y?"Meta":Y,X=e.snapToGrid,$=void 0!==X&&X,ee=e.snapGrid,ae=void 0===ee?Pf:ee,re=e.onlyRenderVisibleElements,oe=void 0!==re&&re,te=e.selectNodesOnDrag,ne=void 0===te||te,ie=e.nodesDraggable,_e=e.nodesConnectable,se=e.nodesFocusable,pe=e.nodeOrigin,le=void 0===pe?Cf:pe,ue=e.edgesFocusable,ce=e.elementsSelectable,fe=e.defaultViewport,me=void 0===fe?Bf:fe,de=e.minZoom,Se=void 0===de?.5:de,ge=e.maxZoom,ye=void 0===ge?2:ge,he=e.translateExtent,ke=void 0===he?hf:he,be=e.preventScrolling,Le=void 0===be||be,ve=e.nodeExtent,Te=e.defaultMarkerColor,Me=void 0===Te?"#b1b1b7":Te,Ce=e.zoomOnScroll,Pe=void 0===Ce||Ce,Be=e.zoomOnPinch,Ie=void 0===Be||Be,Re=e.panOnScroll,Ge=void 0!==Re&&Re,He=e.panOnScrollSpeed,Oe=void 0===He?.5:He,we=e.panOnScrollMode,Ne=void 0===we?yl.Free:we,Ae=e.zoomOnDoubleClick,Ue=void 0===Ae||Ae,xe=e.panOnDrag,We=void 0===xe||xe,Fe=e.onPaneClick,Ee=e.onPaneMouseEnter,De=e.onPaneMouseMove,je=e.onPaneMouseLeave,ze=e.onPaneScroll,Ve=e.onPaneContextMenu,Ke=e.children,qe=e.onEdgeUpdate,Je=e.onEdgeContextMenu,Ze=e.onEdgeDoubleClick,Ye=e.onEdgeMouseEnter,Qe=e.onEdgeMouseMove,Xe=e.onEdgeMouseLeave,$e=e.onEdgeUpdateStart,ea=e.onEdgeUpdateEnd,aa=e.edgeUpdaterRadius,ra=void 0===aa?10:aa,oa=e.onNodesChange,ta=e.onEdgesChange,na=e.noDragClassName,ia=void 0===na?"nodrag":na,_a=e.noWheelClassName,sa=void 0===_a?"nowheel":_a,pa=e.noPanClassName,la=void 0===pa?"nopan":pa,ua=e.fitView,ca=void 0!==ua&&ua,fa=e.fitViewOptions,ma=e.connectOnClick,da=void 0===ma||ma,Sa=e.attributionPosition,ga=e.proOptions,ya=e.defaultEdgeOptions,ha=e.elevateEdgesOnSelect,ka=void 0!==ha&&ha,ba=e.disableKeyboardA11y,La=void 0!==ba&&ba,va=e.style,Ma=e.id,Ca=void 0===Ma?"1":Ma,Ba=Lo(e,Ll),Ia=yf(s,Ec),Ra=yf(l,Qu);return(0,Ta.jsx)("div",(0,Pa.Z)((0,Pa.Z)({},Ba),{},{style:(0,Pa.Z)((0,Pa.Z)({},va),If),ref:a,className:si(["react-flow",i]),"data-testid":"rf__wrapper",children:(0,Ta.jsxs)(vf,{children:[(0,Ta.jsx)(gf,{onInit:f,onMove:m,onMoveStart:d,onMoveEnd:S,onNodeClick:u,onEdgeClick:c,onNodeMouseEnter:L,onNodeMouseMove:v,onNodeMouseLeave:T,onNodeContextMenu:M,onNodeDoubleClick:C,nodeTypes:Ia,edgeTypes:Ra,connectionLineType:F,connectionLineStyle:E,connectionLineComponent:D,connectionLineContainerStyle:j,selectionKeyCode:q,deleteKeyCode:V,multiSelectionKeyCode:Z,zoomActivationKeyCode:Q,onlyRenderVisibleElements:oe,selectNodesOnDrag:ne,defaultViewport:me,translateExtent:ke,minZoom:Se,maxZoom:ye,preventScrolling:Le,zoomOnScroll:Pe,zoomOnPinch:Ie,zoomOnDoubleClick:Ue,panOnScroll:Ge,panOnScrollSpeed:Oe,panOnScrollMode:Ne,panOnDrag:We,onPaneClick:Fe,onPaneMouseEnter:Ee,onPaneMouseMove:De,onPaneMouseLeave:je,onPaneScroll:ze,onPaneContextMenu:Ve,onSelectionContextMenu:A,onEdgeUpdate:qe,onEdgeContextMenu:Je,onEdgeDoubleClick:Ze,onEdgeMouseEnter:Ye,onEdgeMouseMove:Qe,onEdgeMouseLeave:Xe,onEdgeUpdateStart:$e,onEdgeUpdateEnd:ea,edgeUpdaterRadius:ra,defaultMarkerColor:Me,noDragClassName:ia,noWheelClassName:sa,noPanClassName:la,elevateEdgesOnSelect:ka,rfId:Ca,disableKeyboardA11y:La,nodeOrigin:le,nodeExtent:ve}),(0,Ta.jsx)(Wu,{nodes:r,edges:o,defaultNodes:t,defaultEdges:n,onConnect:g,onConnectStart:y,onConnectEnd:h,onClickConnectStart:k,onClickConnectEnd:b,nodesDraggable:ie,nodesConnectable:_e,nodesFocusable:se,edgesFocusable:ue,elementsSelectable:ce,minZoom:Se,maxZoom:ye,nodeExtent:ve,onNodesChange:oa,onEdgesChange:ta,snapToGrid:$,snapGrid:ae,connectionMode:x,translateExtent:ke,connectOnClick:da,defaultEdgeOptions:ya,fitView:ca,fitViewOptions:fa,onNodesDelete:R,onEdgesDelete:G,onNodeDragStart:P,onNodeDrag:B,onNodeDragStop:I,onSelectionDrag:w,onSelectionDragStart:O,onSelectionDragStop:N,noPanClassName:la,nodeOrigin:le,id:Ca}),H&&(0,Ta.jsx)(Nu,{onSelectionChange:H}),Ke,(0,Ta.jsx)(Tl,{proOptions:ga,position:Sa}),!La&&(0,Ta.jsx)(Vu,{rfId:Ca})]})}))}));Rf.displayName="ReactFlow";function Gf(a){return function(r){var o=(0,e.useState)(r),n=(0,t.Z)(o,2),i=n[0],_=n[1],s=(0,e.useCallback)((function(e){return _((function(r){return a(e,r)}))}),[]);return[i,_,s]}}Gf(fc),Gf((function(e,a){return cc(e,a)}));var Hf=["children","className"];function Of(){return(0,Ta.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,Ta.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function wf(){return(0,Ta.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,Ta.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function Nf(){return(0,Ta.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,Ta.jsx)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Af(){return(0,Ta.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,Ta.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Uf(){return(0,Ta.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,Ta.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}var xf=function(e){var a=e.children,r=e.className,o=Lo(e,Hf);return(0,Ta.jsx)("button",(0,Pa.Z)((0,Pa.Z)({type:"button",className:si(["react-flow__controls-button",r])},o),{},{children:a}))};xf.displayName="ControlButton";var Wf=function(e){return e.nodesDraggable&&e.nodesConnectable&&e.elementsSelectable},Ff=function(a){var r=a.style,o=a.showZoom,n=void 0===o||o,i=a.showFitView,_=void 0===i||i,s=a.showInteractive,p=void 0===s||s,l=a.fitViewOptions,u=a.onZoomIn,c=a.onZoomOut,f=a.onFitView,m=a.onInteractiveChange,d=a.className,S=a.children,g=a.position,y=void 0===g?"bottom-left":g,h=su(),k=(0,e.useState)(!1),b=(0,t.Z)(k,2),L=b[0],v=b[1],T=_u(Wf),M=df(),C=M.zoomIn,P=M.zoomOut,B=M.fitView;if((0,e.useEffect)((function(){v(!0)}),[]),!L)return null;return(0,Ta.jsxs)(vl,{className:si(["react-flow__controls",d]),position:y,style:r,children:[n&&(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)(xf,{onClick:function(){C(),null===u||void 0===u||u()},className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",children:(0,Ta.jsx)(Of,{})}),(0,Ta.jsx)(xf,{onClick:function(){P(),null===c||void 0===c||c()},className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",children:(0,Ta.jsx)(wf,{})})]}),_&&(0,Ta.jsx)(xf,{className:"react-flow__controls-fitview",onClick:function(){B(l),null===f||void 0===f||f()},title:"fit view","aria-label":"fit view",children:(0,Ta.jsx)(Nf,{})}),p&&(0,Ta.jsx)(xf,{className:"react-flow__controls-interactive",onClick:function(){h.setState({nodesDraggable:!T,nodesConnectable:!T,elementsSelectable:!T}),null===m||void 0===m||m(!T)},title:"toggle interactivity","aria-label":"toggle interactivity",children:T?(0,Ta.jsx)(Uf,{}):(0,Ta.jsx)(Af,{})}),S]})};Ff.displayName="Controls";var Ef=(0,e.memo)(Ff),Df=r(557),jf=r(2679),zf=r.n(jf);var Vf=function(e){function a(e,o,s,p,c){for(var f,m,d,S,k,L=0,v=0,T=0,M=0,C=0,H=0,w=d=f=0,A=0,U=0,x=0,W=0,F=s.length,E=F-1,D="",j="",z="",V="";A>>0);if(!a.hasNameForId(o,d)){var S=r(l,"."+d,void 0,o);a.insertRules(o,d,S)}t.push(d)}}return t.join(" ")},e}(),wm=/^\s*\/\/.*$/gm,Nm=[":","[",".","#"];function Am(e){var a,r,o,t,n=void 0===e?$f:e,i=n.options,_=void 0===i?$f:i,s=n.plugins,p=void 0===s?Xf:s,l=new Vf(_),u=[],c=function(e){function a(a){if(a)try{e(a+"}")}catch(e){}}return function(r,o,t,n,i,_,s,p,l,u){switch(r){case 1:if(0===l&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===p)return o+"/*|*/";break;case 3:switch(p){case 102:case 112:return e(t[0]+o),"";default:return o+(0===u?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(a)}}}((function(e){u.push(e)})),f=function(e,o,n){return 0===o&&-1!==Nm.indexOf(n[r.length])||n.match(t)?e:"."+a};function m(e,n,i,_){void 0===_&&(_="&");var s=e.replace(wm,""),p=n&&i?i+" "+n+" { "+s+" }":s;return a=_,r=n,o=new RegExp("\\"+r+"\\b","g"),t=new RegExp("(\\"+r+"\\b){2,}"),l(i||!n?"":n,p)}return l.use([].concat(p,[function(e,a,t){2===e&&t.length&&t[0].lastIndexOf(r)>0&&(t[0]=t[0].replace(o,f))},c,function(e){if(-2===e){var a=u;return u=[],a}}])),m.hash=p.length?p.reduce((function(e,a){return a.name||im(15),Im(e,a.name)}),5381).toString():"",m}var Um=e.createContext(),xm=(Um.Consumer,e.createContext()),Wm=(xm.Consumer,new Mm),Fm=Am();function Em(){return(0,e.useContext)(Um)||Wm}function Dm(){return(0,e.useContext)(xm)||Fm}function jm(a){var r=(0,e.useState)(a.stylisPlugins),o=r[0],t=r[1],n=Em(),i=(0,e.useMemo)((function(){var e=n;return a.sheet?e=a.sheet:a.target&&(e=e.reconstructWithOptions({target:a.target},!1)),a.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[a.disableCSSOMInjection,a.sheet,a.target]),_=(0,e.useMemo)((function(){return Am({options:{prefix:!a.disableVendorPrefixes},plugins:o})}),[a.disableVendorPrefixes,o]);return(0,e.useEffect)((function(){zf()(o,a.stylisPlugins)||t(a.stylisPlugins)}),[a.stylisPlugins]),e.createElement(Um.Provider,{value:i},e.createElement(xm.Provider,{value:_},a.children))}var zm=function(){function e(e,a){var r=this;this.inject=function(e,a){void 0===a&&(a=Fm);var o=r.name+a.hash;e.hasNameForId(r.id,o)||e.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return im(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=a}return e.prototype.getName=function(e){return void 0===e&&(e=Fm),this.name+e.hash},e}(),Vm=/([A-Z])/,Km=/([A-Z])/g,qm=/^ms-/,Jm=function(e){return"-"+e.toLowerCase()};function Zm(e){return Vm.test(e)?e.replace(Km,Jm).replace(qm,"-ms-"):e}var Ym=function(e){return null==e||!1===e||""===e};function Qm(e,a,r,o){if(Array.isArray(e)){for(var t,n=[],i=0,_=e.length;i<_;i+=1)""!==(t=Qm(e[i],a,r,o))&&(Array.isArray(t)?n.push.apply(n,t):n.push(t));return n}return Ym(e)?"":rm(e)?"."+e.styledComponentId:em(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!a?e:Qm(e(a),a,r,o):e instanceof zm?r?(e.inject(r,o),e.getName(o)):e:Qf(e)?function e(a,r){var o,t,n=[];for(var i in a)a.hasOwnProperty(i)&&!Ym(a[i])&&(Array.isArray(a[i])&&a[i].isCss||em(a[i])?n.push(Zm(i)+":",a[i],";"):Qf(a[i])?n.push.apply(n,e(a[i],i)):n.push(Zm(i)+": "+(o=i,(null==(t=a[i])||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||o in Kf?String(t).trim():t+"px")+";")));return r?[r+" {"].concat(n,["}"]):n}(e):e.toString();var s}var Xm=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function $m(e){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o?@[\\\]^`{|}~-]+/g,rd=/(^-|-$)/g;function od(e){return e.replace(ad,"-").replace(rd,"")}var td=function(e){return Bm(Rm(e)>>>0)};function nd(e){return"string"==typeof e&&!0}var id=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},_d=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function sd(e,a,r){var o=e[r];id(a)&&id(o)?pd(o,a):e[r]=a}function pd(e){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o=0||(t[r]=e[r]);return t}(r,["componentId"]),n=a&&a+"-"+(nd(e)?e:od(am(e)));return fd(e,Zf({},t,{attrs:f,componentId:n}),o)},Object.defineProperty(d,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=t?pd({},a.defaultProps,e):e}}),d.toString=function(){return"."+d.styledComponentId},n&&fo()(d,a,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),d}var md=function(e){return function e(a,r,o){if(void 0===o&&(o=$f),!(0,Df.isValidElementType)(r))return im(1,String(r));var t=function(){return a(r,o,$m.apply(void 0,arguments))};return t.withConfig=function(t){return e(a,r,Zf({},o,{},t))},t.attrs=function(t){return e(a,r,Zf({},o,{attrs:Array.prototype.concat(o.attrs,t).filter(Boolean)}))},t}(fd,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){md[e]=md(e)}));!function(){function e(e,a){this.rules=e,this.componentId=a,this.isStatic=Gm(e),Mm.registerId(this.componentId+1)}var a=e.prototype;a.createStyles=function(e,a,r,o){var t=o(Qm(this.rules,a,r,o).join(""),""),n=this.componentId+e;r.insertRules(n,n,t)},a.removeStyles=function(e,a){a.clearRules(this.componentId+e)},a.renderStyles=function(e,a,r,o){e>2&&Mm.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,a,r,o)}}();!function(){function a(){var a=this;this._emitSheetCSS=function(){var e=a.instance.toString();if(!e)return"";var r=ym();return""},this.getStyleTags=function(){return a.sealed?im(2):a._emitSheetCSS()},this.getStyleElement=function(){var r;if(a.sealed)return im(2);var o=((r={})[om]="",r["data-styled-version"]="5.3.6",r.dangerouslySetInnerHTML={__html:a.instance.toString()},r),t=ym();return t&&(o.nonce=t),[e.createElement("style",Zf({},o,{key:"sc-0-0"}))]},this.seal=function(){a.sealed=!0},this.instance=new Mm({isServer:!0}),this.sealed=!1}var r=a.prototype;r.collectStyles=function(a){return this.sealed?im(2):e.createElement(jm,{sheet:this.instance},a)},r.interleaveWithNodeStream=function(e){return im(3)}}();var dd,Sd,gd=function(a){var r=e.forwardRef((function(r,o){var t=(0,e.useContext)(ld),n=a.defaultProps,i=ed(r,t,n);return e.createElement(a,Zf({},r,{theme:i,ref:o}))}));return fo()(r,a),r.displayName="WithTheme("+am(a)+")",r},yd=md,hd={bg:"#fff",primary:"#ff0072",nodeBg:"#f2f2f5",nodeColor:"#222",nodeBorder:"#222"},kd={bg:"#000",primary:"#ff0072",nodeBg:"#343435",nodeColor:"#f9f9f9",nodeBorder:"#888"},bd=yd.div(dd||(dd=bo(["\n width: 150px;\n border-radius: 3px;\n padding: 10px;\n font-size: 12px;\n text-align: center;\n border-width: 1px;\n border-style: solid;\n\n border: 1px solid ",";\n background: ",";\n color: ",";\n"])),(function(e){return e.selected?e.theme.primary:e.theme.nodeBorder}),(function(e){return e.theme.nodeBg}),(function(e){return e.theme.nodeColor})),Ld=(0,e.memo)((function(e){var a=e.data,r=e.selected;return(0,Ta.jsxs)(bd,{selected:r,children:[(0,Ta.jsx)(Mu,{type:"target",position:"left"}),(0,Ta.jsx)("div",{children:(0,Ta.jsx)("strong",{children:a.label})}),(0,Ta.jsx)(Mu,{type:"source",position:"right"})]})})),vd={custom:Ld},Td=yd(Rf)(Sd||(Sd=bo(["\n background-color: ",";\n"])),(function(e){return e.theme.bg})),Md=function(e){var a="light"===e.theme?hd:kd;return(0,Ta.jsx)(ud,{theme:a,children:(0,Ta.jsx)(Td,{nodes:e.nodes,edges:e.edges,edgeTypes:e.edgeTypes,nodeTypes:vd,children:(0,Ta.jsx)(Ef,{})})})},Cd="Tabs_Nav__Adbx2",Pd="Tab_Tab__ut6gy",Bd="Tab_Inactive__Z1qzK",Id="Tab_Active__0x-S8",Rd=function(e){var a=[Pd,Bd];return e.active&&(a=[Pd,Id]),(0,Ta.jsx)("li",{className:a.join(" "),children:(0,Ta.jsx)("button",{onClick:function(a){return e.clicked(e.num)},children:e.title})})},Gd=function(e){var a=(0,Ne.$)().t,r=[a("misc:Checker.TabShowAllResults"),a("misc:Checker.TabSearchTarget")];return(0,Ta.jsx)("ul",{className:Cd,children:r.map((function(a,r){return(0,Ta.jsx)(Rd,{title:a,clicked:e.clicked,active:e.active===r,num:r},r)}))})},Hd=r(396),Od=r.n(Hd);var wd=function(e,a){};function Nd(){return Nd=Object.assign||function(e){for(var a=1;a>>0;i!==a&&i!==o;){p.push("Drink");var u=Zn(i,r,_),c=(0,t.Z)(u,2)[0];if(0===c)return[];i=c>>>0}i===a&&n.push(p),i=Qn(e,s)>>>0}for(var f=0;i!==a&&i!==o;f++){var m=[];i=Qn(e,f)>>>0;for(var d=0;d"+o+"
";a.clearData(),a.setData("text/html",t),a.setData("text/plain",o)}},e}Ug(r,a);var o=r.prototype;return o.componentDidMount=function(){this._isMounted=!0},o.componentWillUnmount=function(){this._isMounted=!1},o.render=function(){var a,r,o,t,n=Zg(this.props.theme),i=n.lineNumberContainerStyle,_=n.codeBlockStyle,s=n.codeContainerStyle,p={language:this.props.language||Xg,codeStyle:Ag({},_,null===(a=this.props)||void 0===a?void 0:a.codeBlockStyle),customStyle:null===(r=this.props)||void 0===r?void 0:r.customStyle,showLineNumbers:this.props.showLineNumbers,startingLineNumber:this.props.startingLineNumber,codeTagProps:{style:Ag({},s,null===(o=this.props)||void 0===o?void 0:o.codeContainerStyle)},lineNumberContainerStyle:Ag({},i,null===(t=this.props)||void 0===t?void 0:t.lineNumberContainerStyle),text:this.props.text.toString(),highlight:this.props.highlight};return e.createElement(Qg,Object.assign({},p))},r}(e.PureComponent);$g.displayName="CodeBlock",$g.defaultProps={showLineNumbers:!0,startingLineNumber:1,language:Xg,theme:{},highlight:"",lineNumberContainerStyle:{},customStyle:{},codeBlockStyle:{}};var ey=function(a){var r=a.size,o=a.color,t=xg(a,["size","color"]);return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 384 512",width:r,height:r,fill:o}),e.createElement("path",{d:"M280 240H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm0 96H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM112 232c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 48c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm144 408c0 4.4-3.6 8-8 8H56c-4.4 0-8-3.6-8-8V120c0-4.4 3.6-8 8-8h40v32c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-32h40c4.4 0 8 3.6 8 8v336z"}))};ey.displayName="ClipboardListIcon",ey.defaultProps={size:"16pt",color:"currentcolor"};var ay=function(a){var r=a.size,o=a.color,t=xg(a,["size","color"]);return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 384 512",width:r,height:r,fill:o}),e.createElement("path",{d:"M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"}))};function ry(a){var r=a.size,o=a.color,t=a.copied,n=xg(a,["size","color","copied"]);return t?e.createElement(ay,Object.assign({},{color:o,size:r},n)):e.createElement(ey,Object.assign({},{color:o,size:r},n))}ay.displayName="ClipboardCheckIcon",ay.defaultProps={size:"16pt",color:"currentcolor"};var oy=function(){var a=(0,e.useState)(!1),r=a[0],o=a[1];return(0,e.useEffect)((function(){o(Boolean("undefined"!==typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:r,isServer:!r}},ty=function(e){var a=document.createElement("div");return a.setAttribute("id",e),a},ny=function(a){void 0===a&&(a=Math.random().toString(32).slice(2,10));var r="zeit-ui-"+a,o=oy().isBrowser,t=(0,e.useState)(o?ty(r):null),n=t[0],i=t[1];return(0,e.useEffect)((function(){var e=document.querySelector("#"+r),a=e||ty(r);e||document.body.appendChild(a),i(a)}),[]),n},iy={},_y={onError:function(){return function(e,a){var r="[Zeit UI]"+(a?" ["+a+"]":" ")+": "+e;"undefined"!==typeof console&&(iy[r]||(iy[r]=!0,console.warn(r)))}("Failed to copy.","use-clipboard")}},sy=function(a){void 0===a&&(a=_y);var r=ny("clipboard"),o=(0,e.useCallback)((function(e){!function(e,r){if(e&&r){var o=window.getSelection();if(o){e.style.whiteSpace="pre",e.textContent=r;var t=window.document.createRange();o.removeAllRanges(),t.selectNode(e),o.addRange(t);try{window.document.execCommand("copy")}catch(ze){a.onError&&a.onError()}o.removeAllRanges(),e&&(e.textContent="")}}}(r,e)}),[r]);return{copy:o}};function py(){var e=Wg(["\n position: relative;\n background: ",";\n border-radius: 0.25rem;\n padding: ",";\n"]);return py=function(){return e},e}function ly(){var e=Wg(["\n position: absolute;\n top: 0.5em;\n right: 0.75em;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n background: ",";\n margin-top: 0.15rem;\n border-radius: 0.25rem;\n max-height: 2rem;\n max-width: 2rem;\n padding: 0.25rem;\n &:hover {\n opacity: ",";\n }\n &:focus {\n outline: none;\n opacity: 1;\n }\n .icon {\n width: 1rem;\n height: 1rem;\n }\n"]);return ly=function(){return e},e}var uy=yd.button(ly(),(function(e){return e.theme.backgroundColor}),(function(e){return e.copied?1:.5})),cy=yd.div(py(),(function(e){return e.theme.backgroundColor}),(function(e){return e.codeBlock?"0.25rem 0.5rem 0.25rem 0.25rem":"0.25rem"}));function fy(a){var r=a.theme,o=a.text,t=a.codeBlock,n=void 0!==t&&t,i=a.customStyle,_=void 0===i?{}:i,s=a.onCopy,p=xg(a,["theme","text","codeBlock","customStyle","onCopy"]),l=(0,e.useState)(!1),u=l[0],c=l[1],f=sy().copy;return e.createElement(cy,Object.assign({},{codeBlock:n},{style:_,theme:r}),n?e.createElement($g,Object.assign({text:o,theme:r},p)):e.createElement(Qg,Object.assign({text:o,theme:r},p)),e.createElement(uy,Object.assign({type:"button",onClick:function(){f(o),s?s():c(!u)}},{theme:r,copied:u}),e.createElement(ry,{color:u?r.stringColor:r.textColor,copied:u,className:"icon",size:"16pt"})))}var my=gd(fy);function dy(a){return e.createElement(my,Object.assign({},a))}var Sy={lineNumberColor:"#6272a4",lineNumberBgColor:"#282a36",backgroundColor:"#282a36",textColor:"#f8f8f2",substringColor:"#f1fa8c",keywordColor:"#ff79c6",attributeColor:"#50fa7b",selectorTagColor:"#8be9fd",docTagColor:"#f1fa8c",nameColor:"#66d9ef",builtInColor:"#50fa7b",literalColor:"#FF79C6",bulletColor:"#8BE9FD",codeColor:"#50FA7B",additionColor:"#f1fa8c",regexpColor:"#F1FA8C",symbolColor:"#F1FA8C",variableColor:"#F8F8F2",templateVariableColor:"#FF79C6",linkColor:"#00bcd4",selectorAttributeColor:"#FF79C6",selectorPseudoColor:"#FF79C6",typeColor:"#8BE9FD",stringColor:"#F1FA8C",selectorIdColor:"#50FA7B",selectorClassColor:"#50FA7B",quoteColor:"#E9F284",templateTagColor:"#FF79C6",deletionColor:"#FF79C6",titleColor:"#ff555580",sectionColor:"#F8F8F2",commentColor:"#6272A4",metaKeywordColor:"#50FA7B",metaColor:"#50FA7B",functionColor:"#50FA7B",numberColor:"#bd93f9"},gy=r.p+"static/media/lanista.b2ff3bcd7ec0f83a737c.jpg",yy=function(e){return(0,Ta.jsxs)("div",{className:YS,children:[(0,Ta.jsx)("h2",{children:"Introduction"}),(0,Ta.jsx)("p",{children:"This is a preliminary tutorial to explain the basics about the profile page and how to import data for the badge tracker. A more detailed version will be uploaded in the next days."}),(0,Ta.jsx)("h3",{children:"About"}),(0,Ta.jsxs)("p",{children:[(0,Ta.jsx)(Oe,{to:"/profile",children:"The profile page can be accessed here."})," It has 4 tabs:"]}),(0,Ta.jsx)("h4",{children:"Profile Settings"}),(0,Ta.jsxs)("p",{children:["This page gives an overview of stuff you have unlocked that are relevant for the"," ",(0,Ta.jsx)(Oe,{to:"/seedlisting",children:"SeedListing tab"}),". You can set your level, unlocked items from the catalogue, unlocked titles and unlocked banners."]}),(0,Ta.jsx)("h4",{children:"Badge Progress"}),(0,Ta.jsx)("p",{children:"This page gives an overview of your progress on certain badges. For now this is limited to badges that are obtained from Salmon Run or from public battles, as well as your level and the number of Jackpots you need for the badge."}),(0,Ta.jsx)("h4",{children:"Update Progress"}),(0,Ta.jsx)("p",{children:"This page allows you to update the progress for your badges that are battle and salmon run related. You have the option to upload results from SplatNet at the bottom of the page. Please check the next section on how to obtain said info."}),(0,Ta.jsx)("h4",{children:"Seeds"}),(0,Ta.jsx)("p",{children:"This page is only shown when you inputted your seed key. It gives an overview of all your current seeds."}),(0,Ta.jsx)("h2",{children:"Importing Data"}),(0,Ta.jsx)("p",{children:"Right now there are two ways to obtain progress for the badge tracker: reading your savegame (requires a moddable switch) or from SplatNet records."}),(0,Ta.jsx)("h3",{children:"SplatNet"}),(0,Ta.jsxs)("p",{children:["Please note that this option requires you to regularly upload matches that are obtained from SplatNet. You can use ",(0,Ta.jsx)("a",{href:"https://github.com/frozenpandaman/s3s",children:"s3s"})," to obtain said files. Please refer to the chapter"," ",(0,Ta.jsx)("a",{href:"https://github.com/frozenpandaman/s3s#setup-instructions-",children:"Setup instructions"})," on how to use the tool."]}),(0,Ta.jsx)("p",{children:"After the initial setup, you can run the following command to get your latest matches:"}),(0,Ta.jsx)(dy,{language:"bash",text:"python s3s.py -o",theme:Sy,wrapLines:!0,showLineNumbers:!1,codeBlock:!0}),(0,Ta.jsxs)("p",{children:["This will create a folder called ",(0,Ta.jsx)("code",{children:"exports"}),". This folder has two sub-folders,"," ",(0,Ta.jsx)("code",{children:"coop_results"})," and ",(0,Ta.jsx)("code",{children:"results"}),". The files inside these two sub-folders can be uploaded to update the badge tracker."]}),(0,Ta.jsx)("h3",{children:"Savegame"}),(0,Ta.jsxs)("p",{children:["For this method you need to extract your savegame (i.e. with JKSV). Join a discord server where you can DM Lanista (i.e. ",(0,Ta.jsx)("a",{href:"https://discord.gg/dgYZW4bqep",children:"this one"}),"). DM her the savegame with the command ",(0,Ta.jsx)("code",{children:"!savegame"}),". This will return a database backup that you upload"," ",(0,Ta.jsx)(Oe,{to:"/settings",children:"on the seetings page"}),"."]}),(0,Ta.jsx)("img",{src:gy,alt:"lanista"})]})},hy=function(e){return(0,Ta.jsxs)("div",{className:YS,children:[(0,Ta.jsxs)("strong",{children:[(0,Ta.jsx)("p",{children:"Other Tutorials"}),(0,Ta.jsxs)("ul",{className:QS,children:[(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://www.youtube.com/watch?v=MrY4le2tzcY",children:[dg("US")," by Keen"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://note.com/gamewagashi/n/n2eab91b2c344",children:[dg("JP")," by \u307f\u305a\u3088\u3046\u304b\u3093"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://ikatimes.com/how-to-use-gear-seed-checker/",children:[dg("JP")," by \u30a4\u30ab\u30bf\u30a4\u30e0\u30ba"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://www.youtube.com/watch?v=qFUKuCwIO1Q",children:[dg("JP")," by \u308a\u304a"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://www.bilibili.com/video/BV1Pe4y1L7s1",children:[dg("CN")," by @purelu_7"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://leanny.github.io/tutorials/cn_by_zhongyuzhou820.png",children:[dg("CN")," by @zhongyuzhou820"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://hackmd.io/@kXPlZ_-qRnSVCOAoKrJEBg/HkNyVtSGo",children:[dg("CN")," by Xar Dent"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://www.bilibili.com/read/cv19799932",children:[dg("CN")," by NekoMawarii"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://www.bilibili.com/read/cv18892539",children:[dg("CN")," by SLVRMN"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://www.bilibili.com/video/BV1QY411o7er",children:[dg("CN")," by \u7d22\u9686\u5927\u9b54\u738b"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://forum.gamer.com.tw/C.php?bsn=26487&snA=2223",children:[dg("TW")," by KnucklesLee"]})}),(0,Ta.jsx)("li",{children:(0,Ta.jsxs)("a",{href:"https://www.youtube.com/watch?v=8ZMXUIifwPg&feature=youtu.be",children:[dg("DE")," by DestinyCast"]})})]})]}),(0,Ta.jsx)("h2",{children:"About Gear Seed Checker"}),(0,Ta.jsx)("p",{children:"In Splatoon 3 every piece of gear has a seed. This seed determines every future roll of this specific gear, as well as if drink tickets take effect or not."}),(0,Ta.jsx)("h2",{children:"FAQ"}),(0,Ta.jsxs)("ul",{children:[(0,Ta.jsxs)("li",{children:["Q: Do I need a hacked switch for this?",(0,Ta.jsx)("br",{}),"A: No."]}),(0,Ta.jsxs)("li",{children:["Q: Can I get banned for this?",(0,Ta.jsx)("br",{}),"A: No. All you do is to keep track of your ability rolls and then use a drink at some point that coincidentally leads to your desired abilities. This is not trackable and therefore you cannot get banned for this."]}),(0,Ta.jsxs)("li",{children:["Q: Does this work with Salmon Run Gear?",(0,Ta.jsx)("br",{}),"A: Yes, but the pre-set abilities should not be included in your seed search."]}),(0,Ta.jsxs)("li",{children:["Q: What happens when I replace the gear (i.e. SplatNet3)?",(0,Ta.jsx)("br",{}),"A: Nothing, the seed is unchanged."]}),(0,Ta.jsxs)("li",{children:["Q: What happens when I use chunks?",(0,Ta.jsx)("br",{}),"A: Chunks do not change the seed, so you can just continue as usual."]}),(0,Ta.jsxs)("li",{children:["Q: I did not keep track of one of my abilities. Do I need to start from 0 again?",(0,Ta.jsx)("br",{}),'A: No, in this case you can just leave the one slot at "None" and continue as usual.']}),(0,Ta.jsxs)("li",{children:["Q: What exactly is slot 0?",(0,Ta.jsx)("br",{}),"A: Slot 0 is the time your start tracking your seed."]})]}),(0,Ta.jsx)("h2",{children:"Importing Data from SplatNet"}),(0,Ta.jsx)("p",{children:"It is advised to import your gear from SplatNet. This will also give you the opportunity to have a lot faster seed finding. Follow the instructions on the User Settings page for the import step."}),(0,Ta.jsx)("h2",{children:"Getting the Seed"}),(0,Ta.jsx)("p",{children:"There are two scenarios for obtaining the seed:"}),(0,Ta.jsxs)("ul",{children:[(0,Ta.jsx)("li",{children:"Fresh Gear"}),(0,Ta.jsx)("li",{children:"Already Leveled Gear"})]}),(0,Ta.jsx)("h3",{children:"Fresh Gear"}),(0,Ta.jsx)("p",{children:'This method only works when you imported your gear from SplatNet. If you have obtained a new piece of gear and did not level it yourself (it is okay for the gear to have abilities on it when it comes from Murch or Salmon Run), then click on the "Brand New Gear" button. It will automatically calculate your seed.'}),(0,Ta.jsx)("p",{children:(0,Ta.jsx)("img",{src:mg,alt:"fresh gear"})}),(0,Ta.jsx)("h3",{children:"Already Leveled Gear"}),(0,Ta.jsx)("p",{children:"Here you need to level up your gear. If you imported your gear from SplatNet, then you can select the piece of gear at the beginning and only require 3 to 4 slots on average. If you did not import your gear from SplatNet, then it requires you to have 9 to 10 slots on average."}),(0,Ta.jsx)("p",{children:'Move to the "Gear Seed Recovery" page in order to continue. If you have the gear in your Database, then select it first before continuing. If you have imported your gear from SplatNet in the past and obtained this gear later, then simply add it on the Gear Database page. It is not required to do a full SplatNet import again.'}),(0,Ta.jsx)("h4",{children:"Level Up from Empty Slot"}),(0,Ta.jsx)("p",{children:'When you level your gear and unlock an empty slot, the new ability can be entered in the calculator. In the example here you notice that "Quick Super Jump" got unlocked.'}),(0,Ta.jsx)("img",{src:XS,alt:"unlock_gear_01"})," ",(0,Ta.jsx)("img",{src:$S,alt:"unlock_gear_02"}),(0,Ta.jsx)("p",{children:"Note: Using a drink requires you to set the drink as well. When you unlock an ability under the influence of a drink, then this symbol can be seen."}),(0,Ta.jsx)("img",{src:eg,alt:"unlock_gear_03",width:"256"}),(0,Ta.jsx)("h4",{children:"Level Up from Full Slot"}),(0,Ta.jsx)("p",{children:"Here you enter the ability that pops up at the end."}),(0,Ta.jsx)("img",{src:rg,alt:"unlock_gear_05",width:"256"}),(0,Ta.jsx)("h4",{children:"From Snail Rerolls"}),(0,Ta.jsx)("p",{children:"Rerolling gives you 3 abilities at once. Enter them with NO Drink effect and from left to right in the calculator."}),(0,Ta.jsx)("img",{src:ag,alt:"unlock_gear_04",width:"256"}),(0,Ta.jsx)("h4",{children:"Example (With SplatNet import)"}),(0,Ta.jsx)("p",{children:"For this example I use the Takoroka Mesh. I already leveled the gear a bit and scrubbed it for a fresh start."}),(0,Ta.jsx)("img",{src:ig,alt:"tool_04"}),(0,Ta.jsx)("p",{children:'Next, I level three slots and get the abilities "Special Charge Up", "Quick Respawn", "Special Charge Up". Putting them all in gives me 4 results.'}),(0,Ta.jsx)("img",{src:pg,alt:"tool_07"}),(0,Ta.jsx)("p",{children:'Now I need to scrub the gear again, level one more slot, get "Special Charge Up" and I put it into the search again. After this I find my seed.'}),(0,Ta.jsx)("img",{src:lg,alt:"tool_08"}),(0,Ta.jsx)("h4",{children:"Example (Without SplatNet import)"}),(0,Ta.jsxs)("p",{children:['For this example I use Skalop branded gear. In order to add more slots to the tool, click on the "+" button. After leveling all three slots, I get "Ink Recovery Up", "Quick Respawn", and "Ink Recovery Up". I enter these in Slot 0, 1, and 2. When you click on ',(0,Ta.jsx)("code",{children:"Search Seed"})," then it will give you a list of many seeds quite fast."]}),(0,Ta.jsx)("img",{src:og,alt:"tool_01"}),(0,Ta.jsx)("p",{children:'In order to reduce the number of possible seeds, we need to add more rolls. Here I scrub my gear and unlock the next three slots. I get three times "Ink Resistance Up". I put it all in the tool again.'}),(0,Ta.jsx)("img",{src:tg,alt:"tool_02"}),(0,Ta.jsx)("p",{children:'Here, I still get too many possible seeds, so I continue to level it. But this time the "Refine Seed" button is not grayed out. This button allows me to calculate the next searches fast. On my next three rolls I get "Special Power Up", "Quick Super Jump". After clicking on "Refine Seed" I get exactly one seed instantly.'}),(0,Ta.jsx)("img",{src:ng,alt:"tool_03"}),(0,Ta.jsxs)("p",{children:["Now I end up with the seed ",(0,Ta.jsx)("code",{children:"0x78f56be9"})," for this specific piece of gear and can now predict all future rolls on this specific piece of gear."]}),(0,Ta.jsx)("h2",{children:"Calculating future results"}),(0,Ta.jsxs)("p",{children:["Here, simply enter your brand, if you want to use a Drink Ticket or not, enter your seed, and then click on ",(0,Ta.jsx)("code",{children:"Display Results"}),". This will show you your future rolls for this specific configuration."]}),(0,Ta.jsx)("img",{src:sg,alt:"tool_06"}),(0,Ta.jsx)("p",{children:"The interface in more detail:"}),(0,Ta.jsxs)("ol",{children:[(0,Ta.jsx)("li",{children:"The gear from your database"}),(0,Ta.jsx)("li",{children:"The brand of your gear"}),(0,Ta.jsx)("li",{children:"The drink you have active during level up. Note that snail rerolling is NOT affected by drinks"}),(0,Ta.jsx)("li",{children:"The current seed of your gear"}),(0,Ta.jsx)("li",{children:"The slot you unlock next, starting with slot 0"}),(0,Ta.jsx)("li",{children:"The ability you will roll on this slot"}),(0,Ta.jsx)("li",{children:"The seed of your gear when you reach this roll"}),(0,Ta.jsx)("li",{children:'Additional actions. "Update Seed" will just update the seed in the "Current Seed" box with the seed in "Seed After Roll". The button "Update Seed And Save Gear" will also update the seed in your gear database.'})]}),(0,Ta.jsx)("p",{children:"Here is the same seed, but with a drink ticket active:"}),(0,Ta.jsx)("img",{src:_g,alt:"tool_05"}),(0,Ta.jsx)("p",{children:"It is advices to keep track of of the new seed for your gear for every level when you use a Drink Ticket."})]})},ky=function(e){return(0,Ta.jsxs)("div",{className:YS,children:[(0,Ta.jsx)("h2",{children:"About Seed Listing"}),(0,Ta.jsx)("p",{children:"In Splatoon 3 nearly everything is controlled by a seed, i.e. the Shell-Out Machine, Murch rewards or the Shel-drone, Card packs, etc. The Seed Listing page will display your future rolls and similar after you provided a seed."}),(0,Ta.jsx)("h2",{children:"FAQ"}),(0,Ta.jsxs)("ul",{children:[(0,Ta.jsxs)("li",{children:["Q: Do I need a hacked switch for this?",(0,Ta.jsx)("br",{}),"A: No."]}),(0,Ta.jsxs)("li",{children:["Q: What do I need to get my seed?",(0,Ta.jsx)("br",{}),"A: As of now I provide an easy way to get the seed after you imported your gear from SplatNet. After that you only need to provide a few rolls in order to get the seed."]}),(0,Ta.jsxs)("li",{children:["Q: Can I get banned for this?",(0,Ta.jsx)("br",{}),"A: No. All you do is to provide some rolls you did in-game and also use their SplatNet app."]}),(0,Ta.jsxs)("li",{children:["Q: My result is inaccurate, what do I do? ",(0,Ta.jsx)("br",{}),'A: If you pulled a 10x Ability (Bronze) Capsule instead of a Gold or Silver Capsule, then the future results might be inaccurate. Right now there is no way to track your acquired banners/titles, so if you pull a duplicate it gets replaced wit ha different capsule. Usually it will be correct again after 2-3 additional pulls, but if this is not the case please use "Reset Seed" and find your need seed this way. For any other inaccuracy please contact me on Twitter or Discord.']})]}),(0,Ta.jsx)("h2",{children:"Importing Data from SplatNet"}),(0,Ta.jsx)("p",{children:"It is required that you import your data from SplatNet in order to use this functionality. Follow the instructions on the User Settings page for the import step."}),(0,Ta.jsx)("h2",{children:"Getting the Seed"}),(0,Ta.jsx)("p",{children:"Note: As of now you can only obtain your Shell-Out Machine seed with this method. More seed lists will be provided in the future."}),(0,Ta.jsx)("h3",{children:"Step 1: Obtaining Data"}),(0,Ta.jsx)("p",{children:"As a prerequisite you need to be able to get at least 5 pulls from the Shell-Out machine. The average number of pulls to get the seed is 5, worst case is 11. Please make sure to select the correct tab. While a splatfest is active and you get capsules with a shell on it, then select the Splatfest tab. Otherwise use the normal tab."}),(0,Ta.jsx)("img",{src:ug,alt:"Seed Finder"}),(0,Ta.jsxs)("ol",{children:[(0,Ta.jsx)("li",{children:"Your pulls in correct order"}),(0,Ta.jsx)("li",{children:"Buttons for adding/remove additional pulls"}),(0,Ta.jsx)("li",{children:"Start seed search"}),(0,Ta.jsx)("li",{children:"Result of seed search"})]}),(0,Ta.jsx)("p",{children:'After you have inputted enough pulls, it will find a seed. If you want to save the seed, click "Store Seed". Here is an example of a search:'}),(0,Ta.jsx)("img",{src:cg,alt:"Seed Finder3"}),(0,Ta.jsx)("h3",{children:"Step 2: See future pulls"}),(0,Ta.jsx)("p",{children:"After you have obtained your seed, you will see the following page. Please note that the seed for the Shell-Out Machine is four times longer than for the geer seed. To keep it simple the seed is split into 4 numbers."}),(0,Ta.jsx)("img",{src:fg,alt:"listin"}),(0,Ta.jsxs)("ol",{children:[(0,Ta.jsx)("li",{children:"Your seeds"}),(0,Ta.jsx)("li",{children:"Filter for result types"}),(0,Ta.jsx)("li",{children:"Number of rolls you need to do in order to get this reward"}),(0,Ta.jsx)("li",{children:"Capsule Color"}),(0,Ta.jsx)("li",{children:"Result. If possible I used an image for it. Please note that I cannot predict the banner, title or decoration you get, as they use an external seed. I will add support for them at another point."}),(0,Ta.jsx)("li",{children:"Seed after roll"}),(0,Ta.jsx)("li",{children:'Additional options. "Update Seed" copies your seed into the current seed box, "Update Seed And Save Gear" also stores your progress internally.'})]})]})},by=function(a){var r=(0,e.useState)(0),o=(0,t.Z)(r,2),n=o[0],i=o[1],_=(0,Ne.$)().t;return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsxs)("h1",{children:["Splatoon 3 - ",_("misc:Navigation.Tutorial")]}),(0,Ta.jsx)("div",{className:ZS,children:(0,Ta.jsx)("strong",{children:"Note: If you make videos about this tutorial, feel free to link them to me, so I can link them here."})}),(0,Ta.jsx)(yg,{clicked:i,active:n}),function(){switch(n){case 0:return(0,Ta.jsx)(yy,{});case 1:return(0,Ta.jsx)(hy,{});default:return(0,Ta.jsx)(ky,{})}}()]})},Ly="Writeup_Content__-cMPI",vy="Writeup_ContentCode__6kYnp",Ty=function(e){var a=(0,Ne.$)().t;return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsxs)("h1",{children:["Splatoon 3 - ",a("misc:Navigation.TechnicalDetails")]}),(0,Ta.jsxs)("div",{className:Ly,children:[(0,Ta.jsx)("h2",{children:"General Information"}),(0,Ta.jsxs)("p",{children:["In Splatoon 3, every time you acquire a new piece of gear (i.e. buying or Salmon Run), this piece of gear gets assigned a randomly generated 32 Bit Integer. Internally it is known as"," ",(0,Ta.jsx)("code",{className:vy,children:"RandomContext"}),". This Number is used to determine the next roll or if the Drink Ticket is working for the next roll. After this, a new seed is calculated."]}),(0,Ta.jsx)("h2",{children:"XORSHIFT32"}),(0,Ta.jsxs)("p",{children:["The algorithm used to advance the seed is ",(0,Ta.jsx)("code",{className:vy,children:"XORSHIFT32"}),":"]}),(0,Ta.jsx)(dy,{language:"c",text:"uint32_t advance_seed(uint32_t x32) {\n x32 ^= x32 << 13;\n x32 ^= x32 >> 17;\n x32 ^= x32 << 5;\n return x32;\n}",theme:Sy,wrapLines:!0,showLineNumbers:!1,codeBlock:!0}),(0,Ta.jsx)("h2",{children:"Rolling Ability"}),(0,Ta.jsx)("p",{children:"At the start of rolling a new ability, the first thing that happens is that the seed is advanced by one, and then a number between 0 (inclusive) and N (exclusive) is generated, with N being 35 for non-neutral Brands and 28 for neutral Brands. After that, the game checks in a table what ability it will roll."}),(0,Ta.jsx)(dy,{language:"c",text:"uint32_t get_branded_ability(uint32_t seed, uint32_t brand) {\n uint32_t ability_roll = seed % max_brand_num(brand);\n return weighted_ability(ability_roll, brand);\n}",theme:Sy,wrapLines:!0,showLineNumbers:!1,codeBlock:!0}),(0,Ta.jsx)("h3",{children:"Max Brand Num"}),(0,Ta.jsxs)("p",{children:["To be a bit more precise about how this number is generated, we take a look at"," ",(0,Ta.jsx)("a",{href:"https://github.com/Leanny/leanny.github.io/blob/master/splat3/data/parameter/111/misc/spl__BrandTraitsParam.spl__BrandTraitsParam.json",children:"Brand Traits Parameters"}),". For every brand, the ",(0,Ta.jsx)("code",{className:vy,children:"UnusualGearSkill"})," is worth as defined by much as ",(0,Ta.jsx)("code",{className:vy,children:"SkillEasilyToGetParam[0]"}),","," ",(0,Ta.jsx)("code",{className:vy,children:"UsualGearSkill"})," is worth as much as defined by"," ",(0,Ta.jsx)("code",{className:vy,children:"SkillEasilyToGetParam[2]"}),", and every other ability is worth as much as defined by ",(0,Ta.jsx)("code",{className:vy,children:"SkillEasilyToGetParam[1]"}),"."]}),(0,Ta.jsx)("h3",{children:"Weighted Ability"}),(0,Ta.jsx)("p",{children:"In order to get the correct ability for the ability roll number, the game goes through every ability and subtracts the weight from the ability roll number until it hits 0 or less."}),(0,Ta.jsx)(dy,{language:"c",text:"uint32_t weighted_ability(int ability_roll, uint32_t brand) {\n BrandData brand_data = get_ability_weight(brand);\n uint32_t ability = -1;\n while(ability_roll >= 0) {\n ability++;\n ability_roll -= brand_data[ability].weight;\n }\n return ability;\n}",theme:Sy,wrapLines:!0,showLineNumbers:!1,codeBlock:!0}),(0,Ta.jsx)("h2",{children:"Drink Tickets"}),(0,Ta.jsx)("p",{children:"Here, the game starts by advancing the seed by one and then checks if seed modulo 100 is smaller or equal 29, so basically a 30% chance for this to happen. If this is the case, then it returns the ability from the drink, otherwise it advances the seed again and calculates a new weighted ability, but this time they skip the ability from the drink effect. This means that non-neutral gear ends up with 25, 33, or 34 as modulo for the seed, and for neutral gear it ends up with 26."}),(0,Ta.jsx)(dy,{language:"c",text:"seed = advance_seed(seed);\nif(seed % 0x64 <= 0x1D) {\n return drink_ability;\n}\nseed = advance_seed(seed);\nreturn get_branded_ability_with_drink(seed % max_brand_num_drink(brand, drink), brand, drink);",theme:Sy,wrapLines:!0,showLineNumbers:!1,codeBlock:!0}),(0,Ta.jsx)("h2",{children:"Full Pseudo-Code"}),(0,Ta.jsx)(dy,{language:"c",text:"uint32_t get_ability(uint32_t seed, uint32_t brand, uint32_t drink) {\n seed = advance_seed(seed);\n uint32_t ret = get_branded_ability(seed, brand);\n if(drink != 0xFFFFFFFF) {\n if(seed % 0x64 <= 0x1D) {\n return drink_ability;\n }\n seed = advance_seed(seed);\n ret = get_branded_ability_with_drink(seed % max_brand_num_drink(brand, drink), brand, drink);\n }\n return ret;\n}",theme:Sy,wrapLines:!0,showLineNumbers:!1,codeBlock:!0}),(0,Ta.jsx)("h2",{children:"Internal Ability Order"}),(0,Ta.jsx)(dy,{language:"python",text:'ability_order = [\n "Ink Saver (Main)",\n "Ink Saver (Sub)",\n "Ink Recovery Up",\n "Run Speed Up",\n "Swim Speed Up",\n "Special Charge Up",\n "Special Saver",\n "Special Power Up",\n "Quick Respawn",\n "Quick Super Jump",\n "Sub Power Up",\n "Ink Resistance Up",\n "Sub Resistance Up",\n "Intensify Action",\n]',theme:Sy,wrapLines:!0,showLineNumbers:!1,codeBlock:!0})]})]})},My={Wrapper:"Database_Wrapper__9Qi0n",Card:"Database_Card__HXJ1G",CardDark:"Database_CardDark__nqQZ9",CardContent:"Database_CardContent__gSl5w",CardBox:"Database_CardBox__4YlUB",TopRow:"Database_TopRow__Kwrh5",Gear:"Database_Gear__20o2X",Brand:"Database_Brand__vZfY6",abilityImage:"Database_abilityImage__03fft",Main:"Database_Main__2LF5P",MainAbility:"Database_MainAbility__pC9Kg",Subs:"Database_Subs__TZqC6",SubAbility:"Database_SubAbility__ZLzun",Button:"Database_Button__wUu6G",ButtonSimple:"Database_ButtonSimple__8cX2e",ButtonH1:"Database_ButtonH1__KNVtx",FlexContent:"Database_FlexContent__DRxIa",SettingsContent:"Database_SettingsContent__5T2eO",Table:"Database_Table__-rACF",TableHead:"Database_TableHead__wzDE6",ContentNotFound:"Database_ContentNotFound__0DLHm",TDEven:"Database_TDEven__QVpwN",TDOdd:"Database_TDOdd__8QYgt",displayText:"Database_displayText__Fru09",HoverPointer:"Database_HoverPointer__en2bw",likebutton:"Database_likebutton__SP2eA",liked:"Database_liked__yukfg",likedColor:"Database_likedColor__6qC-f",MultiSelect:"Database_MultiSelect__3TE1x",Title:"Database_Title__aKrNh",InputWrapper:"Database_InputWrapper__7WYl9",Gap:"Database_Gap__wPCxt",Entry:"Database_Entry__fx9qS",Ability:"Database_Ability__rnvy0"},Cy=function(e){var a=(0,Ne.$)().t,r=0===e.type?"CommonMsg.Gear.GearName_Head":1===e.type?"CommonMsg.Gear.GearName_Clothes":"CommonMsg.Gear.GearName_Shoes",o=(0===e.type?oi:1===e.type?ti:ni).filter((function(a){return a.Id===e.gear_id}));if(0===o.length)return null;var t=o[0];return(0,Ta.jsx)("div",{className:My.Card,onClick:function(){return e.onClick(e.gear_id,e.type,e.main,e.history,e.historyDrinks,e.seed)},children:(0,Ta.jsxs)("div",{className:My.CardDark,children:[(0,Ta.jsx)("div",{className:My.CardContent,children:(0,ba.oY)(a,r,t)}),(0,Ta.jsxs)("div",{className:My.TopRow,children:[(0,Ta.jsx)("img",{src:(0,ba.r2)(t.__RowId),alt:t.__RowId,className:My.Gear}),(0,Ta.jsx)("img",{src:(0,ba.R5)(t.Brand),alt:t.Brand,className:My.Brand})]}),(0,Ta.jsx)("div",{className:My.Main,children:(0,Ta.jsx)("img",{src:(0,ba.az)((0,ba.e_)(e.main)),alt:e.main,className:My.abilityImage})}),(0,Ta.jsx)("div",{className:My.Subs,children:[255,255,255].concat((0,l.Z)(e.history.filter((function(e){return e>=0})))).slice(-3).map((function(e,a){return(0,Ta.jsx)("div",{className:My.SubAbility,children:(0,Ta.jsx)("img",{src:(0,ba.az)((0,ba.e_)(e)),alt:e,className:My.abilityImage})},a)}))}),(0,Ta.jsx)("div",{className:My.CardContent,children:"0x".concat((e.seed>>>0).toString(16))})]})})},Py=function(e){var a=(0,Ne.$)().t,r=(0,ba.OZ)(a),o=(0,ba.NX)(a),t=(0,ba.Hf)(a,My),n=(0,ba.h8)(a),i=(0,ba.m1)();return(0,Ta.jsxs)("div",{className:My.Wrapper,children:[(0,Ta.jsxs)("div",{className:My.InputWrapper,children:[(0,Ta.jsx)("span",{className:My.Title,children:a("translation:LayoutMsg.Cmn_CstBase_00.001")}),(0,Ta.jsx)("div",{className:My.MultiSelect,children:(0,Ta.jsx)(bn,{defaultValue:r,isMulti:!0,name:"ability",options:r,value:e.abilitiesToShow,onChange:e.setAbilitiesToShow,styles:i,formatOptionLabel:function(e){var a="https://leanny.github.io/splat3/images/skill/".concat(e.value,".png");return(0,Ta.jsxs)("div",{className:My.Entry,children:["None"!==e.value?(0,Ta.jsx)("img",{src:a,alt:e.label,className:My.Ability}):"",(0,Ta.jsxs)("span",{className:My.displayText,children:[(0,Ta.jsx)("span",{className:My.Gap,children:e.label})," "]})]},e.value)}})})]}),(0,Ta.jsxs)("div",{className:My.InputWrapper,children:[(0,Ta.jsx)("span",{className:My.Title,children:a("translation:LayoutMsg.Cmn_CstBase_00.002")}),(0,Ta.jsx)("div",{className:My.MultiSelect,children:(0,Ta.jsx)(bn,{defaultValue:o,isMulti:!0,name:"brand",value:e.brandsToShow,onChange:e.setBrandsToShow,options:o,styles:i,formatOptionLabel:function(e){var a="https://leanny.github.io/splat3/images/brand/".concat(e.value,".png");return(0,Ta.jsxs)("div",{className:My.Entry,children:["None"!==e.value?(0,Ta.jsx)("img",{src:a,alt:e.label,className:My.Brand}):"",(0,Ta.jsx)("span",{className:My.displayText,children:(0,Ta.jsx)("span",{className:My.Gap,children:e.label})})]},e.value)}})})]}),(0,Ta.jsxs)("div",{className:My.InputWrapper,children:[(0,Ta.jsx)("span",{className:My.Title,children:a("translation:LayoutMsg.Cmn_CstBase_00.000")}),(0,Ta.jsx)("div",{className:My.MultiSelect,children:(0,Ta.jsx)(bn,{defaultValue:t,isMulti:!0,name:"fresh",options:t,styles:i,value:e.favoriteToShow,onChange:e.setFavoriteToShow})})]}),(0,Ta.jsxs)("div",{className:My.InputWrapper,children:[(0,Ta.jsx)("span",{className:My.Title,children:a("misc:Common.Seed")}),(0,Ta.jsx)("div",{className:My.MultiSelect,children:(0,Ta.jsx)(bn,{defaultValue:n,isMulti:!0,name:"seed",styles:i,options:n,value:e.seedsToShow,onChange:e.setSeedsToShow})})]}),(0,Ta.jsx)("div",{children:(0,Ta.jsx)("button",{className:My.ButtonSimple,onClick:function(){return e.setNewGear(!0)},children:a("misc:Database.AddNewGear")})})]})},By=e.lazy((function(){return r.e(1296).then(r.bind(r,1296))})),Iy=function(a){var r=(0,Ne.$)().t,o=(0,ba._)("gearList",ii.OU),n=(0,t.Z)(o,2),i=n[0],_=n[1],s=(0,e.useState)(!1),p=(0,t.Z)(s,2),u=p[0],c=p[1],f=(0,e.useState)(-1),m=(0,t.Z)(f,2),d=m[0],S=m[1],g=(0,e.useState)(-1),y=(0,t.Z)(g,2),h=y[0],k=y[1],b=(0,e.useState)("Unknown"),L=(0,t.Z)(b,2),v=L[0],T=L[1],M=(0,e.useState)(0),C=(0,t.Z)(M,2),P=C[0],B=C[1],I=(0,e.useState)([]),R=(0,t.Z)(I,2),G=R[0],H=R[1],O=(0,e.useState)([]),w=(0,t.Z)(O,2),N=w[0],A=w[1],U=(0,e.useState)(!0),x=(0,t.Z)(U,2),W=x[0],F=x[1],E=(0,e.useState)(-1),D=(0,t.Z)(E,2),j=D[0],z=D[1],V=(0,e.useState)((0,ba.OZ)(r)),K=(0,t.Z)(V,2),q=K[0],J=K[1],Z=(0,e.useState)((0,ba.NX)(r)),Y=(0,t.Z)(Z,2),Q=Y[0],X=Y[1],$=(0,e.useState)((0,ba.Hf)(r,My)),ee=(0,t.Z)($,2),ae=ee[0],re=ee[1],oe=(0,e.useState)((0,ba.h8)(r)),te=(0,t.Z)(oe,2),ne=te[0],ie=te[1],_e=(0,e.useState)(!1),se=(0,t.Z)(_e,2),pe=se[0],le=se[1],ue=function(e,a){S(e),k(a);var r=(0===a?oi:1===a?ti:ni).filter((function(a){return a.Id===e}));T(r[0].Skill),B(0)},ce=function(){c(!1),S(-1),k(-1),T("Unknown"),B(0),z(-1),H([]),A([])},fe=function(e){var a,r=0===h?"HaveGearHeadMap":1===h?"HaveGearClothesMap":"HaveGearShoesMap",o=(0,Pa.Z)({},i),t=!!i[r]&&(!!i[r][d]&&(null!==(a=i[r][d].Favorite)&&void 0!==a&&a));o[r][d]={ExSkillArray:G,ExDrinksArray:N,MainSkill:(0,ba.$d)(v),RandomContext:P,Favorite:t},_(o),ce()},me=function(e,a,r,o,t,n){S(e),k(a),T((0,ba.e_)(r)),B(n),H((0,l.Z)(o)),A((0,l.Z)(t)),c(!0)},de=function(e){var a=e.target.value.toUpperCase();for("0X"===a.substring(0,2)&&(a=a.substring(2)),a=a.replace(/[^0-9A-F]/g,"");a.length>0&&"0"===a.substring(0,1);)a=a.slice(1);0===a.length&&(a="0"),a=(a="0x"+a).substring(0,10);var r=parseInt(a.substring(2),16);B(r)},Se=function(e){z(e)},ge=function(e,a){if(0===e)T((0,ba.e_)(a));else{var r=(e-1)/2>>>0;if(1&e)if(G.length===r)H((function(e){return[].concat((0,l.Z)(e),[a])})),A((function(e){return[].concat((0,l.Z)(e),[255])}));else{var o=(0,l.Z)(G),t=(0,l.Z)(N);for(o[r]=a;255===o[o.length-1]&&255===t[t.length-1];)o.splice(o.length-1,1),t.splice(t.length-1,1);H(o),A(t)}else if(G.length===r)H((function(e){return[].concat((0,l.Z)(e),[255])})),A((function(e){return[].concat((0,l.Z)(e),[a])}));else{var n=(0,l.Z)(G),i=(0,l.Z)(N);for(i[r]=a;255===n[n.length-1]&&255===i[i.length-1];)n.splice(n.length-1,1),i.splice(i.length-1,1);H(n),A(i)}}z(-1)},ye=(0,e.useCallback)((function(){if(window.confirm(r("misc:Database.DeleteConfirmation"))){var e=0===h?"HaveGearHeadMap":1===h?"HaveGearClothesMap":"HaveGearShoesMap",a=(0,Pa.Z)({},i);d in a[e]&&delete a[e][d],_(a),ce()}}),[_,i,d,h,r]),he=(0,e.useCallback)((function(e,a){if(window.confirm(r("misc:Database.DeleteConfirmation"))){var o=0===a?"HaveGearHeadMap":1===a?"HaveGearClothesMap":"HaveGearShoesMap",t=(0,Pa.Z)({},i);e in t[o]&&delete t[o][e],_(t),ce()}}),[_,i,r]),ke=function(){var e=0===h?"Head":1===h?"Clothes":"Shoes",a=1===h&&26e3===d?KS().x86.hash32("".concat((0,ba.C1)(),"_").concat(e,"_").concat(d,"_JUEA-00006"))>>>0:KS().x86.hash32("".concat((0,ba.C1)(),"_").concat(e,"_").concat(d))>>>0;B(a)},be=function(e,a,r,o){var t=0===r?"HaveGearHeadMap":1===r?"HaveGearClothesMap":"HaveGearShoesMap",n=(0,Pa.Z)({},i);n[t][e]={ExSkillArray:a.ExSkillArray,ExDrinksArray:a.ExDrinksArray,MainSkill:a.MainSkill,RandomContext:a.RandomContext,Favorite:o},_(n),ce()},Le=function(e,a,o,t,n){return(0,Ta.jsxs)("tr",{className:0===(1&a)?My.TDEven:My.TDOdd,children:[(0,Ta.jsx)("td",{className:My.HoverPointer,onClick:function(){return me(e.Id,n,o.MainSkill,o.ExSkillArray,o.ExDrinksArray,o.RandomContext)},children:(0,Ta.jsxs)("div",{className:My.FlexContent,children:[(0,Ta.jsx)("img",{src:(0,ba.r2)(e.__RowId),alt:e.__RowId,className:My.Gear}),(0,Ta.jsx)("span",{className:My.displayText,children:(0,ba.oY)(r,t,e)})]})}),(0,Ta.jsx)("td",{className:My.HoverPointer,onClick:function(){return me(e.Id,n,o.MainSkill,o.ExSkillArray,o.ExDrinksArray,o.RandomContext)},children:(0,Ta.jsxs)("div",{className:My.FlexContent,children:[(0,Ta.jsx)("img",{src:(0,ba.R5)(e.Brand),alt:e.Brand,className:My.Brand}),(0,Ta.jsx)("span",{className:My.displayText,children:r("translation:CommonMsg.Gear.GearBrandName."+e.Brand)})]})}),(0,Ta.jsx)("td",{className:My.HoverPointer,onClick:function(){return me(e.Id,n,o.MainSkill,o.ExSkillArray,o.ExDrinksArray,o.RandomContext)},children:(0,Ta.jsxs)("div",{className:My.FlexContent,children:[(0,Ta.jsx)("img",{src:(0,ba.az)(ba.z3[o.MainSkill]?ba.z3[o.MainSkill]:"Unknown"),className:My.MainAbility,alt:o.MainSkill}),(0,Ta.jsx)("span",{className:My.displayText,children:r("translation:CommonMsg.Gear.GearPowerName."+(ba.z3[o.MainSkill]?ba.z3[o.MainSkill]:"Unknown"))})]})}),(0,Ta.jsx)("td",{className:My.HoverPointer,onClick:function(){return me(e.Id,n,o.MainSkill,o.ExSkillArray,o.ExDrinksArray,o.RandomContext)},children:"0x".concat((o.RandomContext>>>0).toString(16).padStart(8,"0"))}),(0,Ta.jsx)("td",{children:o.Favorite?(0,Ta.jsx)("div",{className:My.liked,onClick:function(){return be(e.Id,o,n,!1)},children:(0,Ta.jsx)(Ae.G,{icon:Ue.m6i,className:"fa-fw"})}):(0,Ta.jsx)("div",{className:My.likebutton,onClick:function(){return be(e.Id,o,n,!0)},children:(0,Ta.jsx)(Ae.G,{icon:xe.m6i,className:"fa-fw"})})}),(0,Ta.jsx)("td",{children:(0,Ta.jsx)("div",{className:My.HoverPointer,onClick:function(){return he(e.Id,n)},children:(0,Ta.jsx)(Ae.G,{icon:Ue.$aW,className:"fa-fw"})})})]},"".concat(e.Id,"_").concat(n))},ve=function(e,a){if(1===ne.length&&ne[0].value===(0===a.RandomContext))return!1;if(1===ae.length){if(ae[0].value&&void 0===a.Favorite)return!1;if(void 0!==a.Favorite&&ae[0].value!==a.Favorite)return!1}var r=Q.map((function(e){return e.value}));if(r.length>0&&!r.includes(e.Brand))return!1;var o=q.map((function(e){return ba.aZ[e.value]}));return!(o.length>0&&!o.includes(a.MainSkill))},Te=(0,e.useCallback)((function(){for(var e=[],a=function(){var a=(0,t.Z)(o[r],2),n=a[0],i=a[1],_=oi.filter((function(e){return e.Id===parseInt(n)}))[0];void 0!==_&&ve(_,i)&&e.push(Le(_,e.length,i,"CommonMsg.Gear.GearName_Head",0))},r=0,o=Object.entries(i.HaveGearHeadMap);r=55296&&t<=56319&&rs?s:_+i));1===t?(a=e[o-1],n.push(r[a>>2]+r[a<<4&63]+"==")):2===t&&(a=(e[o-2]<<8)+e[o-1],n.push(r[a>>10]+r[a>>4&63]+r[a<<2&63]+"="));return n.join("")};for(var r=[],o=[],t="undefined"!==typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,_=n.length;i<_;++i)r[i]=n[i],o[n.charCodeAt(i)]=i;function s(e){var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=a),[r,r===a?0:4-r%4]}function p(e,a,o){for(var t,n,i=[],_=a;_t&&(o=t):o=t;var n,i=a.length;for(o>i/2&&(o=i/2),n=0;n