"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[795],{50795:(e,t,i)=>{i.r(t),i.d(t,{executeMany:()=>p});var n=i(4576),r=i(86211),s=i(76061),m=i(55537),u=i(15756),a=i(79187),c=i(1352);class o extends s.G{constructor(e,t,i,n,r,s,m,u,o){super(),this.m_currentUnionEnvelope2D=new a.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=o,this.m_bufferer=new c.B(o),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=i,this.m_maxDeviation=m,this.m_maxVerticesInFullCircle=u,this.m_joins=n,this.m_caps=r,this.m_miterLimit=s}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,m.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const h=new class{getOperatorType(){return 10111}supportsCurves(){return!0}accelerateGeometry(e,t,i){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,i,n,r,s,m,a,c,h,l){if(c){const c=new o(e,t,i,n,r,s,m,a,l);return(new u.p).executeMany(c,t,l,2)}return new o(e,t,i,n,r,s,m,a,l)}};var l=i(83299);const _={round:0,miter:1,bevel:2},f={round:0,butt:1,square:2};function p(e,t,i,m,u={}){let{miterLimit:a=10,maxDeviation:c=NaN,maxVerticesInFullCircle:o=96,union:p=!1,unit:x}=u;const[d,y]=(0,l.fromGeometries)(e);if(x){const i=(0,l.getSpatialReference)(e);i&&(t=t.map(e=>(0,r.UW)(e,x,i)),c&&(c=(0,r.UW)(c,x,i)))}return function(e,t,i,n,r,m,u,a,c){const o=h.executeMany(new s.S(e),t,i,n,r,m,u,a,c,0,null);return Array.from(o)}(d,y,t,_[i],f[m],a,c,o,p).map(e=>(0,l.toGeometry)(e,y)).filter(n.Ru)}}}]);