"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6160],{15227:(e,t,n)=>{n.d(t,{fz:()=>l,g7:()=>m,yv:()=>f});var r=n(76061),i=n(55537),s=n(15756),u=n(79187),a=n(1352);class c extends r.G{constructor(e,t,n,r,i,s,c){super(),this.m_currentUnionEnvelope2D=new u.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=c,this.m_bufferer=new a.B(c),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=i}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,i.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,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const o=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,i){return this.executeManyEx(e,t,n,Number.NaN,96,r,i)}execute(e,t,n,s){Number.isFinite(n)||(0,i.a)("Invalid distance for buffer operation");const u=new r.S([e]),a=[n],c=this.executeMany(u,t,a,!1,s).next();return c||(0,i.d)("null buffer output"),c}executeManyEx(e,t,n,r,u,a,o){if(void 0!==n.find(e=>!Number.isFinite(e))&&(0,i.a)("Invalid distance for buffer operation"),a){const i=new c(e,t,n,r,u,!1,o);return(new s.p).executeMany(i,t,o,2)}return new c(e,t,n,r,u,!1,o)}};function m(e,t,n){return o.execute(e,t,n,null)}function f(e,t,n,i,s,u){const a=o.executeManyEx(new r.S(e),t,n,i,s,u,null);return Array.from(a)}function l(){return o.supportsCurves()}},46160:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>a,executeMany:()=>c});var r=n(4576),i=n(86211),s=n(15227),u=n(83299);function a(e,t,n={}){const{unit:r}=n,a=(0,u.getSpatialReference)(e);r&&a&&(t=(0,i.UW)(t,r,a));const c=(0,u.fromGeometry)(e),o=c.getSpatialReference();return(0,u.toGeometry)((0,s.g7)(c.getGeometry(),o,t),o)}function c(e,t,n={}){let{maxDeviation:a=NaN,maxVerticesInFullCircle:c=96,union:o=!1,unit:m}=n;const f=(0,u.getSpatialReference)(e);m&&f&&(t=t.map(e=>(0,i.UW)(e,m,f)),a&&(a=(0,i.UW)(a,m,f)));const[l,h]=(0,u.fromGeometries)(e);return(0,s.yv)(l,h,t,a,c,o).map(e=>(0,u.toGeometry)(e,h)).filter(r.Ru)}}}]);