(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[966],{30966:function(e,t,n){var i=n(50883).default,a=n(85715).default,o=n(41132).default;!function(e,t){"use strict";var n,l,s,r;(null!==(t=(e=Path2D.prototype).roundRect)&&void 0!==t||(e.roundRect=h),globalThis.CanvasRenderingContext2D)&&(null!==(l=(n=globalThis.CanvasRenderingContext2D.prototype).roundRect)&&void 0!==l||(n.roundRect=h));globalThis.OffscreenCanvasRenderingContext2D&&(null!==(r=(s=globalThis.OffscreenCanvasRenderingContext2D.prototype).roundRect)&&void 0!==r||(s.roundRect=h));function h(e,t,n,l,s){if([e,t,n,l].every((function(e){return Number.isFinite(e)}))){var r,h,x,y;if(4===(s=function(e){var t=typeof e;if("undefined"===t||null===e)return[0];if("function"===t)return[NaN];if("object"===t)return"function"===typeof e[Symbol.iterator]?o(e).map((function(e){var t=typeof e;return"undefined"===t||null===e?0:"function"===t?NaN:"object"===t?d(e):v(e)})):[d(e)];return[v(e)]}(s)).length)r=p(s[0]),h=p(s[1]),x=p(s[2]),y=p(s[3]);else if(3===s.length)r=p(s[0]),h=p(s[1]),y=p(s[1]),x=p(s[2]);else if(2===s.length)r=p(s[0]),x=p(s[0]),h=p(s[1]),y=p(s[1]);else{if(1!==s.length)throw new RangeError("".concat(u(this)," ").concat(s.length," is not a valid size for radii sequence."));r=p(s[0]),h=p(s[0]),x=p(s[0]),y=p(s[0])}var f=[r,h,x,y],c=f.find((function(e){var t=e.x,n=e.y;return t<0||n<0}));(null===c||void 0===c?void 0:c.x)<0?c.x:null===c||void 0===c||c.y;if(!f.some((function(e){var t=e.x,n=e.y;return!Number.isFinite(t)||!Number.isFinite(n)}))){if(c)throw new RangeError("".concat(u(this)," Radius value ").concat(c," is negative."));!function(e){var t=a(e,4),o=t[0],s=t[1],r=t[2],h=t[3],u=[Math.abs(n)/(o.x+s.x),Math.abs(l)/(s.y+r.y),Math.abs(n)/(r.x+h.x),Math.abs(l)/(o.y+h.y)],x=Math.min.apply(Math,u);if(x<=1){var y,f=i(e);try{for(f.s();!(y=f.n()).done;){var c=y.value;c.x*=x,c.y*=x}}catch(d){f.e(d)}finally{f.f()}}}(f),n<0&&l<0?(this.moveTo(e-r.x,t),this.ellipse(e+n+h.x,t-h.y,h.x,h.y,0,1.5*-Math.PI,-Math.PI),this.ellipse(e+n+x.x,t+l+x.y,x.x,x.y,0,-Math.PI,-Math.PI/2),this.ellipse(e-y.x,t+l+y.y,y.x,y.y,0,-Math.PI/2,0),this.ellipse(e-r.x,t-r.y,r.x,r.y,0,0,-Math.PI/2)):n<0?(this.moveTo(e-r.x,t),this.ellipse(e+n+h.x,t+h.y,h.x,h.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(e+n+x.x,t+l-x.y,x.x,x.y,0,-Math.PI,1.5*-Math.PI,1),this.ellipse(e-y.x,t+l-y.y,y.x,y.y,0,Math.PI/2,0,1),this.ellipse(e-r.x,t+r.y,r.x,r.y,0,0,-Math.PI/2,1)):l<0?(this.moveTo(e+r.x,t),this.ellipse(e+n-h.x,t-h.y,h.x,h.y,0,Math.PI/2,0,1),this.ellipse(e+n-x.x,t+l+x.y,x.x,x.y,0,0,-Math.PI/2,1),this.ellipse(e+y.x,t+l+y.y,y.x,y.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(e+r.x,t-r.y,r.x,r.y,0,-Math.PI,1.5*-Math.PI,1)):(this.moveTo(e+r.x,t),this.ellipse(e+n-h.x,t+h.y,h.x,h.y,0,-Math.PI/2,0),this.ellipse(e+n-x.x,t+l-x.y,x.x,x.y,0,0,Math.PI/2),this.ellipse(e+y.x,t+l-y.y,y.x,y.y,0,Math.PI/2,Math.PI),this.ellipse(e+r.x,t+r.y,r.x,r.y,0,Math.PI,1.5*Math.PI)),this.closePath(),this.moveTo(e,t)}}function d(e){return{x:e.x,y:e.y,z:e.z,w:e.w}}function v(e){return+e}function p(e){var t,n,i=v(e);return Number.isFinite(i)?{x:i,y:i}:Object(e)===e?{x:v(null!==(t=e.x)&&void 0!==t?t:0),y:v(null!==(n=e.y)&&void 0!==n?n:0)}:{x:NaN,y:NaN}}}function u(e){return"Failed to execute 'roundRect' on '".concat(function(e){return Object(e)===e&&e instanceof Path2D?"Path2D":e instanceof(null===globalThis||void 0===globalThis?void 0:globalThis.CanvasRenderingContext2D)?"CanvasRenderingContext2D":e instanceof(null===globalThis||void 0===globalThis?void 0:globalThis.OffscreenCanvasRenderingContext2D)?"OffscreenCanvasRenderingContext2D":(null===e||void 0===e?void 0:e.constructor.name)||e}(e),"':")}}()}}]);