@arcgis/core 4.31.0-next.20240810 → 4.31.0-next.20240813
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Graphic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{861c24d1c27e5fd7dbb2.js → 28f047c68a678f397795.js} +1 -1
- package/assets/esri/core/workers/chunks/{90914ca9c8ea0fc6dd0e.js → 5d036a4719b590ce8515.js} +2 -2
- package/assets/esri/core/workers/chunks/{c3bcdee189de0e3979be.js → 6b1ce80a91b26d89259c.js} +1 -1
- package/assets/esri/core/workers/chunks/78e8e09604e5eb2d8955.js +1 -0
- package/assets/esri/core/workers/chunks/86b97f2bb745bf01b801.js +1 -0
- package/assets/esri/core/workers/chunks/a79dc7819d95a4736e8c.js +1 -0
- package/assets/esri/core/workers/chunks/cd6526f762e7aa30a460.js +1 -0
- package/assets/esri/core/workers/chunks/d8f416440963b77595e3.js +1 -0
- package/assets/esri/themes/base/widgets/_BuildingLevelPicker.scss +7 -1
- package/assets/esri/themes/base/widgets/_Tooltip.scss +2 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/pe.js +1 -1
- package/geometry/support/geodesicUtils.js +1 -1
- package/interfaces.d.ts +44 -0
- package/package.json +1 -1
- package/portal/Portal.js +1 -1
- package/portal/PortalItem.js +1 -1
- package/rest/print.js +1 -1
- package/rest/support/DateBinParameters.js +1 -1
- package/rest/support/printTaskUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/IconSymbol3DLayer.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/Rasterizer.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/layers/graphics/GraphicStoreItem.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/graphics/pipeline/rendering/RenderCommandEncoder.js +5 -0
- package/views/3d/layers/graphics/pipeline/rendering/utils.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/TestSymbol.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TextureFader.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/lib/WebGLLayer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/views/overlay/CrosshairOverlayItem.js +5 -0
- package/views/overlay/TextOverlayItem.js +1 -1
- package/views/support/geodesicMeasurementUtils.js +1 -1
- package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/EditorColumn.js +1 -1
- package/widgets/FeatureTable/TableMenuVisibleElements.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/support/exportUtils.js +5 -0
- package/assets/esri/core/workers/chunks/28128b24dc3c4072f978.js +0 -1
- package/assets/esri/core/workers/chunks/9f3c484d410f06c9bcbe.js +0 -1
- package/assets/esri/core/workers/chunks/c832669cf82493df4fe8.js +0 -1
- package/assets/esri/core/workers/chunks/e79f5570ab22081ae7fa.js +0 -1
- package/assets/esri/core/workers/chunks/ff3cda5fe13cd89bbfd1.js +0 -1
- package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRendererCommandEncoder.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6245],{7320:(t,e,i)=>{i.d(e,{g:()=>n});const n={convertToGEGeometry:function(t,e){return null==e?null:t.convertJSONToGeometry(e)},exportPoint:function(t,e,i){const n=new r(t.getPointX(e),t.getPointY(e),i),s=t.hasZ(e),o=t.hasM(e);return s&&(n.z=t.getPointZ(e)),o&&(n.m=t.getPointM(e)),n},exportPolygon:function(t,e,i){return new s(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportPolyline:function(t,e,i){return new o(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportMultipoint:function(t,e,i){return new a(t.exportPoints(e),i,t.hasZ(e),t.hasM(e))},exportExtent:function(t,e,i){const n=t.hasZ(e),r=t.hasM(e),s=new l(t.getXMin(e),t.getYMin(e),t.getXMax(e),t.getYMax(e),i);if(n){const i=t.getZExtent(e);s.zmin=i.vmin,s.zmax=i.vmax}if(r){const i=t.getMExtent(e);s.mmin=i.vmin,s.mmax=i.vmax}return s}};class r{constructor(t,e,i){this.x=t,this.y=e,this.spatialReference=i,this.z=void 0,this.m=void 0}}class s{constructor(t,e,i,n){this.rings=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class o{constructor(t,e,i,n){this.paths=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class a{constructor(t,e,i,n){this.points=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class l{constructor(t,e,i,n,r){this.xmin=t,this.ymin=e,this.xmax=i,this.ymax=n,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},31464:(t,e,i)=>{i.d(e,{Cv:()=>f,Nk:()=>d,lK:()=>w});var n=i(4576),r=i(74887),s=i(57251),o=i(7320),a=i(21325),l=i(28735);const p=[0,0];function u(t,e){if(!e)return null;if("x"in e){const i={x:0,y:0};return[i.x,i.y]=t(e.x,e.y,p),null!=e.z&&(i.z=e.z),null!=e.m&&(i.m=e.m),i}if("xmin"in e){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=t(e.xmin,e.ymin,p),[i.xmax,i.ymax]=t(e.xmax,e.ymax,p),e.hasZ&&(i.zmin=e.zmin,i.zmax=e.zmax,i.hasZ=!0),e.hasM&&(i.mmin=e.mmin,i.mmax=e.mmax,i.hasM=!0),i}return"rings"in e?{rings:c(e.rings,t),hasM:e.hasM,hasZ:e.hasZ}:"paths"in e?{paths:c(e.paths,t),hasM:e.hasM,hasZ:e.hasZ}:"points"in e?{points:m(e.points,t),hasM:e.hasM,hasZ:e.hasZ}:null}function c(t,e){const i=[];for(const n of t)i.push(m(n,e));return i}function m(t,e){const i=[];for(const n of t){const t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function d(t,e){if(!t||!e)return;const i=Array.isArray(t)?t.map((t=>null!=t.geometry?t.geometry.spatialReference:null)).filter(n.Ru):[t];await(0,s.initializeProjection)(i.map((t=>({source:t,dest:e}))))}const y=u.bind(null,l.je),h=u.bind(null,l.tD);function f(t,e,i,n){if(!t)return t;if(i||(i=e,e=t.spatialReference),!(0,a.fn)(e)||!(0,a.fn)(i)||(0,a.aI)(e,i))return t;if((0,l.y7)(e,i)){const e=(0,a.K8)(i)?y(t):h(t);return e.spatialReference=i,e}return(0,s.projectMany)(o.g,[t],e,i,null,n)[0]}const v=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,a.aI)(e,i))return t;const s={geometries:t,inSpatialReference:e,outSpatialReference:i,geographicTransformation:n,resolve:(0,r.Tw)()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:i,outSpatialReference:n,resolve:r,geographicTransformation:p}=t;(0,l.y7)(i,n)?(0,a.K8)(n)?r(e.map(y)):r(e.map(h)):r((0,s.projectMany)(o.g,e,i,n,p,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function w(t,e,i,n){return v.push(t,e,i,n)}},58727:(t,e,i)=>{i.d(e,{GC:()=>d,T2:()=>y,VY:()=>c,v8:()=>m});var n=i(66552),r=i(83047),s=i(57251),o=i(90634),a=i(65864),l=i(17136),p=i(21325),u=i(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function d(t,e,i){const{outFields:n,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=t;if(n)for(let t=0;t<n.length;t++)n[t]=n[t].trim();if(r)for(let t=0;t<r.length;t++)r[t]=r[t].trim();if(s)for(let t=0;t<s.length;t++)s[t]=s[t].trim();if(o)for(let t=0;t<o.length;t++)o[t].onStatisticField&&(o[t].onStatisticField=o[t].onStatisticField.trim());return t.geometry&&!t.outSR&&(t.outSR=t.geometry.spatialReference),y(t,e,i)}async function y(t,e,n){if(!t)return null;let{where:s}=t;if(t.where=s=s?.trim(),(!s||/^1 *= *1$/.test(s)||e&&e===s)&&(t.where=null),!t.geometry)return t;let d=await async function(t){const{distance:e,units:n}=t,s=t.geometry;if(null==e||"vertexAttributes"in s)return s;const o=s.spatialReference,a=n?c.fromJSON(n):(0,r.Ij)(o),l=o&&((0,p.EA)(o)||(0,p.K8)(o))?s:await(0,u.Nk)(o,p.KK).then((()=>(0,u.Cv)(s,p.KK)));return(await async function(){return(await Promise.all([i.e(9930),i.e(3656)]).then(i.bind(i,47559))).geodesicBuffer}())(l.spatialReference,l,e,a)}(t);if(t.distance=0,t.units=null,"esriSpatialRelEnvelopeIntersects"===t.spatialRel){const{spatialReference:e}=t.geometry;d=(0,o.HA)(d),d.spatialReference=e}if(d){await(0,u.Nk)(d.spatialReference,n),d=function(t,e){const i=t.spatialReference;return h(t,e)&&(0,a.ZC)(t)?{spatialReference:i,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:t}(d,n);const e=(await(0,l.el)((0,a.rS)(d)))[0];if(null==e)throw m;const i="quantizationParameters"in t&&t.quantizationParameters?.tolerance||"maxAllowableOffset"in t&&t.maxAllowableOffset||0,r=i&&h(d,n)?{densificationStep:8*i}:void 0,s=e.toJSON(),o=(0,u.Cv)(s,s.spatialReference,n,r);if(!o)throw m;o.spatialReference=n,t.geometry=o}return t}function h(t,e){if(!t)return!1;const i=t.spatialReference;return((0,a.ZC)(t)||(0,a.Bi)(t)||(0,a.Rg)(t))&&!(0,p.aI)(i,e)&&!(0,s.canProjectWithoutEngine)(i,e)}},76245:(t,e,i)=>{i.d(e,{A:()=>J});var n=i(90237),r=i(59456),s=i(69540),o=i(66552),a=i(25482),l=i(53966),p=i(10107),u=i(56507),c=(i(87811),i(44208),i(93223)),m=i(40608),d=i(65864),y=i(58727),h=i(93637);let f=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.alias=null,this.expression=null,this.field=null,this.responseType=null}};(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"expression",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"field",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"responseType",void 0),f=(0,n._)([(0,m.$)("esri.rest.support.BinParametersAttributes")],f);const v=f;f.from=(0,u.dp)(f);const w=new o.J({naturalLog:"natural-log",squareRoot:"square-root"});let g=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.expression=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitByAttributes=null,this.stackByAttributes=null,this.transformation=null}};(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],g.prototype,"expression",void 0),(0,n._)([(0,p.MZ)({type:String,json:{name:"onField",write:!0}})],g.prototype,"field",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],g.prototype,"firstDayOfWeek",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],g.prototype,"hideUpperBound",void 0),(0,n._)([(0,p.MZ)({type:v,json:{write:{target:{splitBy:{type:String},splitByField:{type:String},splitByAlias:{type:String}},writer:(t,e)=>{null!=t.field&&(e.splitByField=t.field),null!=t.expression&&(e.splitBy=t.expression),null!=t.alias&&(e.splitByAlias=t.alias)}},read:{source:["splitBy","splitByField","splitByAlias"],reader:(t,e)=>new v({field:e.splitByField,expression:e.splitBy,alias:e.splitByAlias})}}})],g.prototype,"splitByAttributes",void 0),(0,n._)([(0,p.MZ)({type:v,json:{write:{target:{stackBy:{type:String},stackByField:{type:String},stackByAlias:{type:String},jsonStyle:{type:String}},writer:(t,e)=>{null!=t.field&&(e.stackByField=t.field),null!=t.expression&&(e.stackBy=t.expression),null!=t.alias&&(e.stackByAlias=t.alias),null!=t.responseType&&(e.jsonStyle=t.responseType)},overridePolicy(){return{enabled:null!=this.stackByAttributes?.field||null!=this.stackByAttributes?.expression}}},read:{source:["stackBy","stackByField","stackByAlias","jsonStyle"],reader:(t,e)=>new v({field:e.stackByField,expression:e.stackBy,alias:e.stackByAlias,responseType:e.jsonStyle})}}})],g.prototype,"stackByAttributes",void 0),(0,n._)([(0,c.e)(w)],g.prototype,"transformation",void 0),g=(0,n._)([(0,m.$)("esri.rest.support.BinParametersBase")],g);const x=g,M=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),_="percent-of-total",Z="field",S=t=>{let e=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let t=this._get("normalizationType");const e=!!this.normalizationField,i=null!=this.normalizationTotal;return e||i?(t=e&&Z||i&&_||null,e&&i&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):t!==Z&&t!==_||(t=null),t}set normalizationType(t){this._set("normalizationType",t)}};return(0,n._)([(0,p.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],e.prototype,"normalizationField",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],e.prototype,"normalizationMaxValue",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],e.prototype,"normalizationMinValue",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],e.prototype,"normalizationTotal",void 0),(0,n._)([(0,c.e)(M,{name:"parameters.normalizationType"})],e.prototype,"normalizationType",null),e=(0,n._)([(0,m.$)("esri.rest.support.NormalizationBinParametersMixin")],e),e};function B(t,e,i){(0,h.sM)(i,t instanceof Date?t.getTime():t,e)}let j=class extends(S(x)){constructor(t){super(t),this.bins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],j.prototype,"bins",void 0),(0,n._)([(0,p.MZ)({json:{name:"parameters.end",write:{writer:B}}})],j.prototype,"end",void 0),(0,n._)([(0,p.MZ)({json:{name:"parameters.start",write:{writer:B}}})],j.prototype,"start",void 0),(0,n._)([(0,c.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],j.prototype,"type",void 0),j=(0,n._)([(0,m.$)("esri.rest.support.AutoIntervalBinParameters")],j);const b=j;j.from=(0,u.dp)(j);const R=(0,o.O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});let z=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.value=null,this.units=null}};(0,n._)([(0,p.MZ)({type:Number,json:{name:"number",write:!0}})],z.prototype,"value",void 0),(0,n._)([(0,c.e)(R,{name:"unit"})],z.prototype,"units",void 0),z=(0,n._)([(0,m.$)("esri.rest.support.DateBinTimeInterval")],z);const A=z;function T(t,e,i){(0,h.sM)(i,t?.getTime(),e)}z.from=(0,u.dp)(z);let P=class extends x{constructor(t){super(t),this.end=null,this.interval=null,this.offset=null,this.start=null,this.type="date"}};(0,n._)([(0,p.MZ)({type:Date,cast:t=>t?new Date(t):null,json:{name:"parameters.end",read:{reader:(t,e)=>null!=e.parameters.end?new Date(e.parameters.end):null},write:{writer:T}}})],P.prototype,"end",void 0),(0,n._)([(0,p.MZ)({type:A,json:{name:"parameters",write:!0}})],P.prototype,"interval",void 0),(0,n._)([(0,p.MZ)({type:A,json:{name:"parameters.offset",write:!0}})],P.prototype,"offset",void 0),(0,n._)([(0,p.MZ)({type:Date,cast:t=>t?new Date(t):null,json:{name:"parameters.start",read:{reader:(t,e)=>null!=e.parameters.start?new Date(e.parameters.start):null},write:{writer:T}}})],P.prototype,"start",void 0),(0,n._)([(0,c.e)({dateBin:"date"},{readOnly:!0})],P.prototype,"type",void 0),P=(0,n._)([(0,m.$)("esri.rest.support.DateBinParameters")],P);const k=P;P.from=(0,u.dp)(P);let F=class extends x{constructor(t){super(t),this.boundaries=null,this.type="fixed-boundaries"}};(0,n._)([(0,p.MZ)({json:{name:"parameters.boundaries",write:{writer:function(t,e,i){(0,h.sM)(i,t&&function(t){return t[0]instanceof Date}(t)?t.map((t=>t.getTime())):t,e)}}}})],F.prototype,"boundaries",void 0),(0,n._)([(0,c.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],F.prototype,"type",void 0),F=(0,n._)([(0,m.$)("esri.rest.support.FixedBoundariesBinParameters")],F);const O=F;function N(t,e,i){(0,h.sM)(i,t instanceof Date?t.getTime():t,e)}F.from=(0,u.dp)(F);let D=class extends(S(x)){constructor(t){super(t),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n._)([(0,p.MZ)({json:{name:"parameters.end",write:{writer:N}}})],D.prototype,"end",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],D.prototype,"interval",void 0),(0,n._)([(0,p.MZ)({json:{name:"parameters.start",write:{writer:N}}})],D.prototype,"start",void 0),(0,n._)([(0,c.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],D.prototype,"type",void 0),D=(0,n._)([(0,m.$)("esri.rest.support.FixedIntervalBinParameters")],D);const I=D;D.from=(0,u.dp)(D);var V=i(27348),$=i(58174),q=i(7562),C=i(56400),Y=i(16930);const K=new o.J({asc:"ascending",desc:"descending"}),U={base:x,key:"type",typeMap:{"auto-interval":b,date:k,"fixed-boundaries":O,"fixed-interval":I}};let E=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.quantizationParameters=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(t){this._set("outTimeZone",t),t&&!(0,C.wr)(t)&&l.A.getLogger(this).warn("#outTimeZone",`the parsed value '${t}' may not be a valid IANA time zone`)}};(0,n._)([(0,p.MZ)({types:U,json:{name:"bin",write:!0}})],E.prototype,"binParameters",void 0),(0,n._)([(0,c.e)(K)],E.prototype,"binOrder",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"cacheHint",void 0),(0,n._)([(0,p.MZ)({json:{write:!0}})],E.prototype,"datumTransformation",void 0),(0,n._)([(0,p.MZ)({type:Y.A,json:{name:"defaultSR",write:!0}})],E.prototype,"defaultSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],E.prototype,"distance",void 0),(0,n._)([(0,p.MZ)({types:r.yR,json:{read:d.rS,write:!0}})],E.prototype,"geometry",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],E.prototype,"lowerBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:Y.A,json:{name:"outSR",write:!0}})],E.prototype,"outSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:[q.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],E.prototype,"outStatistics",void 0),(0,n._)([(0,p.MZ)({value:null,json:{name:"outTimeReference",read:{reader:t=>t.timeZoneIANA},write:{writer:(t,e,i)=>{t&&(e[i]={timeZoneIANA:t})}}}})],E.prototype,"outTimeZone",null),(0,n._)([(0,p.MZ)({type:V.A,json:{write:!0}})],E.prototype,"quantizationParameters",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"returnDistinctValues",void 0),(0,n._)([(0,c.e)($.x,{name:"spatialRel"})],E.prototype,"spatialRelationship",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],E.prototype,"upperBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:String,json:{read:y.VY.read,write:{writer:y.VY.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance&&this.distance>0}}}}})],E.prototype,"units",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],E.prototype,"where",void 0),E=(0,n._)([(0,m.$)("esri.rest.support.BinsQuery")],E);const J=E;E.from=(0,u.dp)(E)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6245],{7320:(t,e,i)=>{i.d(e,{g:()=>n});const n={convertToGEGeometry:function(t,e){return null==e?null:t.convertJSONToGeometry(e)},exportPoint:function(t,e,i){const n=new r(t.getPointX(e),t.getPointY(e),i),s=t.hasZ(e),o=t.hasM(e);return s&&(n.z=t.getPointZ(e)),o&&(n.m=t.getPointM(e)),n},exportPolygon:function(t,e,i){return new s(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportPolyline:function(t,e,i){return new o(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportMultipoint:function(t,e,i){return new a(t.exportPoints(e),i,t.hasZ(e),t.hasM(e))},exportExtent:function(t,e,i){const n=t.hasZ(e),r=t.hasM(e),s=new l(t.getXMin(e),t.getYMin(e),t.getXMax(e),t.getYMax(e),i);if(n){const i=t.getZExtent(e);s.zmin=i.vmin,s.zmax=i.vmax}if(r){const i=t.getMExtent(e);s.mmin=i.vmin,s.mmax=i.vmax}return s}};class r{constructor(t,e,i){this.x=t,this.y=e,this.spatialReference=i,this.z=void 0,this.m=void 0}}class s{constructor(t,e,i,n){this.rings=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class o{constructor(t,e,i,n){this.paths=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class a{constructor(t,e,i,n){this.points=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class l{constructor(t,e,i,n,r){this.xmin=t,this.ymin=e,this.xmax=i,this.ymax=n,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},31464:(t,e,i)=>{i.d(e,{Cv:()=>f,Nk:()=>y,lK:()=>g});var n=i(4576),r=i(74887),s=i(57251),o=i(7320),a=i(21325),l=i(28735);const p=[0,0];function u(t,e){if(!e)return null;if("x"in e){const i={x:0,y:0};return[i.x,i.y]=t(e.x,e.y,p),null!=e.z&&(i.z=e.z),null!=e.m&&(i.m=e.m),i}if("xmin"in e){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=t(e.xmin,e.ymin,p),[i.xmax,i.ymax]=t(e.xmax,e.ymax,p),e.hasZ&&(i.zmin=e.zmin,i.zmax=e.zmax,i.hasZ=!0),e.hasM&&(i.mmin=e.mmin,i.mmax=e.mmax,i.hasM=!0),i}return"rings"in e?{rings:c(e.rings,t),hasM:e.hasM,hasZ:e.hasZ}:"paths"in e?{paths:c(e.paths,t),hasM:e.hasM,hasZ:e.hasZ}:"points"in e?{points:m(e.points,t),hasM:e.hasM,hasZ:e.hasZ}:null}function c(t,e){const i=[];for(const n of t)i.push(m(n,e));return i}function m(t,e){const i=[];for(const n of t){const t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function y(t,e){if(!t||!e)return;const i=Array.isArray(t)?t.map((t=>null!=t.geometry?t.geometry.spatialReference:null)).filter(n.Ru):[t];await(0,s.initializeProjection)(i.map((t=>({source:t,dest:e}))))}const d=u.bind(null,l.je),h=u.bind(null,l.tD);function f(t,e,i,n){if(!t)return t;if(i||(i=e,e=t.spatialReference),!(0,a.fn)(e)||!(0,a.fn)(i)||(0,a.aI)(e,i))return t;if((0,l.y7)(e,i)){const e=(0,a.K8)(i)?d(t):h(t);return e.spatialReference=i,e}return(0,s.projectMany)(o.g,[t],e,i,null,n)[0]}const v=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,a.aI)(e,i))return t;const s={geometries:t,inSpatialReference:e,outSpatialReference:i,geographicTransformation:n,resolve:(0,r.Tw)()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:i,outSpatialReference:n,resolve:r,geographicTransformation:p}=t;(0,l.y7)(i,n)?(0,a.K8)(n)?r(e.map(d)):r(e.map(h)):r((0,s.projectMany)(o.g,e,i,n,p,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(t,e,i,n){return v.push(t,e,i,n)}},58727:(t,e,i)=>{i.d(e,{GC:()=>y,T2:()=>d,VY:()=>c,v8:()=>m});var n=i(66552),r=i(83047),s=i(57251),o=i(90634),a=i(65864),l=i(17136),p=i(21325),u=i(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function y(t,e,i){const{outFields:n,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=t;if(n)for(let t=0;t<n.length;t++)n[t]=n[t].trim();if(r)for(let t=0;t<r.length;t++)r[t]=r[t].trim();if(s)for(let t=0;t<s.length;t++)s[t]=s[t].trim();if(o)for(let t=0;t<o.length;t++)o[t].onStatisticField&&(o[t].onStatisticField=o[t].onStatisticField.trim());return t.geometry&&!t.outSR&&(t.outSR=t.geometry.spatialReference),d(t,e,i)}async function d(t,e,n){if(!t)return null;let{where:s}=t;if(t.where=s=s?.trim(),(!s||/^1 *= *1$/.test(s)||e&&e===s)&&(t.where=null),!t.geometry)return t;let y=await async function(t){const{distance:e,units:n}=t,s=t.geometry;if(null==e||"vertexAttributes"in s)return s;const o=s.spatialReference,a=n?c.fromJSON(n):(0,r.Ij)(o),l=o&&((0,p.EA)(o)||(0,p.K8)(o))?s:await(0,u.Nk)(o,p.KK).then((()=>(0,u.Cv)(s,p.KK)));return(await async function(){return(await Promise.all([i.e(9930),i.e(3656)]).then(i.bind(i,47559))).geodesicBuffer}())(l.spatialReference,l,e,a)}(t);if(t.distance=0,t.units=null,"esriSpatialRelEnvelopeIntersects"===t.spatialRel){const{spatialReference:e}=t.geometry;y=(0,o.HA)(y),y.spatialReference=e}if(y){await(0,u.Nk)(y.spatialReference,n),y=function(t,e){const i=t.spatialReference;return h(t,e)&&(0,a.ZC)(t)?{spatialReference:i,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:t}(y,n);const e=(await(0,l.el)((0,a.rS)(y)))[0];if(null==e)throw m;const i="quantizationParameters"in t&&t.quantizationParameters?.tolerance||"maxAllowableOffset"in t&&t.maxAllowableOffset||0,r=i&&h(y,n)?{densificationStep:8*i}:void 0,s=e.toJSON(),o=(0,u.Cv)(s,s.spatialReference,n,r);if(!o)throw m;o.spatialReference=n,t.geometry=o}return t}function h(t,e){if(!t)return!1;const i=t.spatialReference;return((0,a.ZC)(t)||(0,a.Bi)(t)||(0,a.Rg)(t))&&!(0,p.aI)(i,e)&&!(0,s.canProjectWithoutEngine)(i,e)}},76245:(t,e,i)=>{i.d(e,{A:()=>G});var n=i(90237),r=i(59456),s=i(69540),o=i(66552),a=i(25482),l=i(53966),p=i(10107),u=i(56507),c=(i(87811),i(44208),i(93223)),m=i(40608),y=i(65864),d=i(58727),h=i(93637);let f=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.alias=null,this.expression=null,this.field=null,this.responseType=null}};(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"expression",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"field",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],f.prototype,"responseType",void 0),f=(0,n._)([(0,m.$)("esri.rest.support.BinParametersAttributes")],f);const v=f;f.from=(0,u.dp)(f);const g=new o.J({naturalLog:"natural-log",squareRoot:"square-root"});let w=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.expression=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitByAttributes=null,this.stackByAttributes=null,this.transformation=null}};(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],w.prototype,"expression",void 0),(0,n._)([(0,p.MZ)({type:String,json:{name:"onField",write:!0}})],w.prototype,"field",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],w.prototype,"firstDayOfWeek",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],w.prototype,"hideUpperBound",void 0),(0,n._)([(0,p.MZ)({type:v,json:{write:{target:{splitBy:{type:String},splitByField:{type:String},splitByAlias:{type:String}},writer:(t,e)=>{null!=t.field&&(e.splitByField=t.field),null!=t.expression&&(e.splitBy=t.expression),null!=t.alias&&(e.splitByAlias=t.alias)}},read:{source:["splitBy","splitByField","splitByAlias"],reader:(t,e)=>new v({field:e.splitByField,expression:e.splitBy,alias:e.splitByAlias})}}})],w.prototype,"splitByAttributes",void 0),(0,n._)([(0,p.MZ)({type:v,json:{write:{target:{stackBy:{type:String},stackByField:{type:String},stackByAlias:{type:String},jsonStyle:{type:String}},writer:(t,e)=>{null!=t.field&&(e.stackByField=t.field),null!=t.expression&&(e.stackBy=t.expression),null!=t.alias&&(e.stackByAlias=t.alias),null!=t.responseType&&(e.jsonStyle=t.responseType)},overridePolicy(){return{enabled:null!=this.stackByAttributes?.field||null!=this.stackByAttributes?.expression}}},read:{source:["stackBy","stackByField","stackByAlias","jsonStyle"],reader:(t,e)=>new v({field:e.stackByField,expression:e.stackBy,alias:e.stackByAlias,responseType:e.jsonStyle})}}})],w.prototype,"stackByAttributes",void 0),(0,n._)([(0,c.e)(g)],w.prototype,"transformation",void 0),w=(0,n._)([(0,m.$)("esri.rest.support.BinParametersBase")],w);const x=w,M=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),_="percent-of-total",Z="field",S=t=>{let e=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let t=this._get("normalizationType");const e=!!this.normalizationField,i=null!=this.normalizationTotal;return e||i?(t=e&&Z||i&&_||null,e&&i&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):t!==Z&&t!==_||(t=null),t}set normalizationType(t){this._set("normalizationType",t)}};return(0,n._)([(0,p.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],e.prototype,"normalizationField",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],e.prototype,"normalizationMaxValue",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],e.prototype,"normalizationMinValue",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],e.prototype,"normalizationTotal",void 0),(0,n._)([(0,c.e)(M,{name:"parameters.normalizationType"})],e.prototype,"normalizationType",null),e=(0,n._)([(0,m.$)("esri.rest.support.NormalizationBinParametersMixin")],e),e};function B(t,e,i){(0,h.sM)(i,t instanceof Date?t.getTime():t,e)}let j=class extends(S(x)){constructor(t){super(t),this.bins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],j.prototype,"bins",void 0),(0,n._)([(0,p.MZ)({json:{name:"parameters.end",write:{writer:B}}})],j.prototype,"end",void 0),(0,n._)([(0,p.MZ)({json:{name:"parameters.start",write:{writer:B}}})],j.prototype,"start",void 0),(0,n._)([(0,c.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],j.prototype,"type",void 0),j=(0,n._)([(0,m.$)("esri.rest.support.AutoIntervalBinParameters")],j);const b=j;j.from=(0,u.dp)(j);const R=(0,o.O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});let z=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.value=null,this.units=null}};(0,n._)([(0,p.MZ)({type:Number,json:{name:"number",write:!0}})],z.prototype,"value",void 0),(0,n._)([(0,c.e)(R,{name:"unit"})],z.prototype,"units",void 0),z=(0,n._)([(0,m.$)("esri.rest.support.DateBinTimeInterval")],z);const A=z;function T(t,e,i){(0,h.sM)(i,"string"==typeof t?t:t?.getTime(),e)}function P(t,e){const i=t.parameters[e];return i?"string"==typeof i?i:new Date(i):null}z.from=(0,u.dp)(z);let k=class extends x{constructor(t){super(t),this.end=null,this.interval=null,this.offset=null,this.start=null,this.type="date"}};(0,n._)([(0,p.MZ)({type:Date,cast:t=>t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.end",read:{reader:(t,e)=>P(e,"end")},write:{writer:T}}})],k.prototype,"end",void 0),(0,n._)([(0,p.MZ)({type:A,json:{name:"parameters",write:!0}})],k.prototype,"interval",void 0),(0,n._)([(0,p.MZ)({type:A,json:{name:"parameters.offset",write:!0}})],k.prototype,"offset",void 0),(0,n._)([(0,p.MZ)({type:Date,cast:t=>t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.start",read:{reader:(t,e)=>P(e,"start")},write:{writer:T}}})],k.prototype,"start",void 0),(0,n._)([(0,c.e)({dateBin:"date"},{readOnly:!0})],k.prototype,"type",void 0),k=(0,n._)([(0,m.$)("esri.rest.support.DateBinParameters")],k);const F=k;k.from=(0,u.dp)(k);let O=class extends x{constructor(t){super(t),this.boundaries=null,this.type="fixed-boundaries"}};(0,n._)([(0,p.MZ)({json:{name:"parameters.boundaries",write:{writer:function(t,e,i){(0,h.sM)(i,t&&function(t){return t[0]instanceof Date}(t)?t.map((t=>t.getTime())):t,e)}}}})],O.prototype,"boundaries",void 0),(0,n._)([(0,c.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],O.prototype,"type",void 0),O=(0,n._)([(0,m.$)("esri.rest.support.FixedBoundariesBinParameters")],O);const N=O;function D(t,e,i){(0,h.sM)(i,t instanceof Date?t.getTime():t,e)}O.from=(0,u.dp)(O);let I=class extends(S(x)){constructor(t){super(t),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n._)([(0,p.MZ)({json:{name:"parameters.end",write:{writer:D}}})],I.prototype,"end",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],I.prototype,"interval",void 0),(0,n._)([(0,p.MZ)({json:{name:"parameters.start",write:{writer:D}}})],I.prototype,"start",void 0),(0,n._)([(0,c.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],I.prototype,"type",void 0),I=(0,n._)([(0,m.$)("esri.rest.support.FixedIntervalBinParameters")],I);const V=I;I.from=(0,u.dp)(I);var $=i(27348),q=i(58174),C=i(7562),Y=i(56400),K=i(16930);const U=new o.J({asc:"ascending",desc:"descending"}),E={base:x,key:"type",typeMap:{"auto-interval":b,date:F,"fixed-boundaries":N,"fixed-interval":V}};let J=class extends((0,s.O)(a.oY)){constructor(t){super(t),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.quantizationParameters=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(t){this._set("outTimeZone",t),t&&!(0,Y.wr)(t)&&l.A.getLogger(this).warn("#outTimeZone",`the parsed value '${t}' may not be a valid IANA time zone`)}};(0,n._)([(0,p.MZ)({types:E,json:{name:"bin",write:!0}})],J.prototype,"binParameters",void 0),(0,n._)([(0,c.e)(U)],J.prototype,"binOrder",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],J.prototype,"cacheHint",void 0),(0,n._)([(0,p.MZ)({json:{write:!0}})],J.prototype,"datumTransformation",void 0),(0,n._)([(0,p.MZ)({type:K.A,json:{name:"defaultSR",write:!0}})],J.prototype,"defaultSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],J.prototype,"distance",void 0),(0,n._)([(0,p.MZ)({types:r.yR,json:{read:y.rS,write:!0}})],J.prototype,"geometry",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],J.prototype,"lowerBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:K.A,json:{name:"outSR",write:!0}})],J.prototype,"outSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:[C.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],J.prototype,"outStatistics",void 0),(0,n._)([(0,p.MZ)({value:null,json:{name:"outTimeReference",read:{reader:t=>t.timeZoneIANA},write:{writer:(t,e,i)=>{t&&(e[i]={timeZoneIANA:t})}}}})],J.prototype,"outTimeZone",null),(0,n._)([(0,p.MZ)({type:$.A,json:{write:!0}})],J.prototype,"quantizationParameters",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],J.prototype,"returnDistinctValues",void 0),(0,n._)([(0,c.e)(q.x,{name:"spatialRel"})],J.prototype,"spatialRelationship",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],J.prototype,"upperBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:String,json:{read:d.VY.read,write:{writer:d.VY.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance&&this.distance>0}}}}})],J.prototype,"units",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],J.prototype,"where",void 0),J=(0,n._)([(0,m.$)("esri.rest.support.BinsQuery")],J);const G=J;J.from=(0,u.dp)(J)}}]);
|
|
@@ -911,7 +911,7 @@ vec4 vvLocalNormal(vec3 _normal) { return vec4(_normal, 1.0); }`),t.vvColor?(r.c
|
|
|
911
911
|
vec4 vvColor() {
|
|
912
912
|
return vvGetColor(instanceFeatureAttribute);
|
|
913
913
|
}`:"vec4 vvColor() { return vec4(1.0); }"}
|
|
914
|
-
`)):r.code.add(l.H`vec4 vvColor() { return vec4(1.0); }`)}},35093:(e,t,r)=>{r.d(t,{Q:()=>i});const i=1/
|
|
914
|
+
`)):r.code.add(l.H`vec4 vvColor() { return vec4(1.0); }`)}},35093:(e,t,r)=>{r.d(t,{Q:()=>i});const i=1/255.5},34845:(e,t,r)=>{r.d(t,{Ir:()=>d});var i=r(37585),n=r(48163),o=r(87317),a=r(91829),s=r(47286),l=r(71988),c=r(2597);function d(e){e.fragment.uniforms.add(new l.E("projInfo",((e,t)=>function(e){const t=e.projectionMatrix;return 0===t[11]?(0,o.s)(u,2/(e.fullWidth*t[0]),2/(e.fullHeight*t[5]),(1+t[12])/t[0],(1+t[13])/t[5]):(0,o.s)(u,-2/(e.fullWidth*t[0]),-2/(e.fullHeight*t[5]),(1-t[8])/t[0],(1-t[9])/t[5])}(t.camera)))),e.fragment.uniforms.add(new s.G("zScale",((e,t)=>function(e){return 0===e.projectionMatrix[11]?(0,i.hZ)(h,0,1):(0,i.hZ)(h,1,0)}(t.camera)))),e.fragment.code.add(c.H`vec3 reconstructPosition(vec2 fragCoord, float depth) {
|
|
915
915
|
return vec3((fragCoord * projInfo.xy + projInfo.zw) * (zScale.x * depth + zScale.y), depth);
|
|
916
916
|
}`)}const u=(0,a.vt)(),h=(0,n.vt)()},63365:(e,t,r)=>{r.d(t,{a:()=>n});var i=r(2597);function n(e){e.code.add(i.H`vec4 premultiplyAlpha(vec4 v) {
|
|
917
917
|
return vec4(v.rgb * v.a, v.a);
|
|
@@ -1011,7 +1011,7 @@ const vec4 RGBA4_2_FLOAT_FACTORS = vec4(
|
|
|
1011
1011
|
);
|
|
1012
1012
|
float rgba4ToFloat(vec4 rgba) {
|
|
1013
1013
|
return dot(rgba, RGBA4_2_FLOAT_FACTORS);
|
|
1014
|
-
}`)}},26835:(e,t,r)=>{r(2597)},20693:(e,t,r)=>{r.d(t,{yu:()=>f,NB:()=>m,S7:()=>g});var i=r(58083),n=r(9093),o=r(38954),a=r(51850),s=r(40710),l=r(33079),c=(r(20304),r(39589)),d=r(46263);class u extends c.n{constructor(e,t){super(e,"mat4",d.c.Draw,((r,i,n)=>r.setUniformMatrix4fv(e,t(i,n))))}}var h=r(40095);function f(e,t){t.instancedDoublePrecision?e.constants.add("cameraPosition","vec3",a.uY):e.uniforms.add(new s.W("cameraPosition",((e,t)=>(0,o.s)(v,t.camera.viewInverseTransposeMatrix[3]-e.origin[0],t.camera.viewInverseTransposeMatrix[7]-e.origin[1],t.camera.viewInverseTransposeMatrix[11]-e.origin[2]))))}function m(e,t){if(!t.instancedDoublePrecision)return void e.uniforms.add(new h.X("proj",((e,t)=>t.camera.projectionMatrix)),new u("view",((e,t)=>(0,i.Tl)(p,t.camera.viewMatrix,e.origin))),new s.W("localOrigin",(e=>e.origin)));const r=e=>(0,o.s)(v,e.camera.viewInverseTransposeMatrix[3],e.camera.viewInverseTransposeMatrix[7],e.camera.viewInverseTransposeMatrix[11]);e.uniforms.add(new h.X("proj",((e,t)=>t.camera.projectionMatrix)),new h.X("view",((e,t)=>(0,i.Tl)(p,t.camera.viewMatrix,r(t)))),new l.t("localOrigin",((e,t)=>r(t))))}const p=(0,n.vt)(),v=(0,a.vt)();function g(e){e.uniforms.add(new h.X("viewNormal",((e,t)=>t.camera.viewInverseTransposeMatrix)))}},68259:(e,t,r)=>{r.d(t,{t:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec2",n.c.Draw,((r,i,n,o)=>r.setUniform2fv(e,t(i,n,o))))}}},47286:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec2",n.c.Pass,((r,i,n)=>r.setUniform2fv(e,t(i,n))))}}},40710:(e,t,r)=>{r.d(t,{W:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec3",n.c.Draw,((r,i,n,o)=>r.setUniform3fv(e,t(i,n,o))))}}},33079:(e,t,r)=>{r.d(t,{t:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec3",n.c.Pass,((r,i,n)=>r.setUniform3fv(e,t(i,n))))}}},71988:(e,t,r)=>{r.d(t,{E:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec4",n.c.Pass,((r,i,n)=>r.setUniform4fv(e,t(i,n))))}}},20304:(e,t,r)=>{r.d(t,{m:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"float",n.c.Pass,((r,i,n)=>r.setUniform1f(e,t(i,n))))}}},93588:(e,t,r)=>{r.d(t,{c:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"int",n.c.Pass,((r,i,n)=>r.setUniform1i(e,t(i,n))))}}},98353:(e,t,r)=>{r.d(t,{h:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"mat3",n.c.Draw,((r,i,n)=>r.setUniformMatrix3fv(e,t(i,n))))}}},35644:(e,t,r)=>{r.d(t,{k:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"mat3",n.c.Pass,((r,i,n)=>r.setUniformMatrix3fv(e,t(i,n))))}}},40095:(e,t,r)=>{r.d(t,{X:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"mat4",n.c.Pass,((r,i,n)=>r.setUniformMatrix4fv(e,t(i,n))))}}},85977:(e,t,r)=>{r.d(t,{N5:()=>l});var i=r(49186),n=(r(44208),r(53966)),o=r(46263),a=r(620);class s{constructor(){this._includedModules=new Map}include(e,t){this._includedModules.has(e)?this._includedModules.get(e):(this._includedModules.set(e,t),e(this.builder,t))}}class l extends s{constructor(){super(...arguments),this.vertex=new h,this.fragment=new h,this.attributes=new f,this.varyings=new m,this.extensions=new p,this.outputs=new v}get fragmentUniforms(){return this.fragment.uniforms.entries}get builder(){return this}generate(e){const t=this.extensions.generateSource(e),r=this.attributes.generateSource(e),i=this.varyings.generateSource(e),n="vertex"===e?this.vertex:this.fragment,o=n.uniforms.generateSource(),a=n.code.generateSource(),s=n.main.generateSource(),l="vertex"===e?x:_,c=n.constants.generateSource(),d=this.outputs.generateSource(e);return`#version 300 es\n${t.join("\n")}\n\n${l}\n\n${c.join("\n")}\n\n${o.join("\n")}\n\n${r.join("\n")}\n\n${i.join("\n")}\n\n${d.join("\n")}\n\n${a.join("\n")}\n\n${s.join("\n")}`}generateBindPass(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Pass];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Pass];r&&t.set(e.name,r)}));const r=Array.from(t.values()),i=r.length;return(t,n)=>{for(let o=0;o<i;++o)r[o](e,t,n)}}generateBindDraw(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Draw];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Draw];r&&t.set(e.name,r)}));const r=Array.from(t.values()),i=r.length;return(t,n,o)=>{for(let a=0;a<i;++a)r[a](e,o,t,n)}}}class c{constructor(e){this._stage=e,this._entries=new Map}add(...e){for(const t of e)this._add(t);return this._stage}get(e){return this._entries.get(e)}_add(e){if(null!=e){if(this._entries.has(e.name)&&!this._entries.get(e.name).equals(e))throw new i.A(`Duplicate uniform name ${e.name} for different uniform type`);this._entries.set(e.name,e)}else n.A.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder").error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map((e=>null!=e.arraySize?`uniform ${e.type} ${e.name}[${e.arraySize}];`:`uniform ${e.type} ${e.name};`))}get entries(){return Array.from(this._entries.values())}}class d{constructor(e){this._stage=e,this._bodies=new Array}add(e){return this._bodies.push(e),this._stage}generateSource(){if(this._bodies.length>0)return[`void main() {\n ${this._bodies.join("\n")||""} \n}`];throw new i.A("Shader does not contain main function body.")}}class u{constructor(e){this._stage=e,this._entries=new Array}add(e){return this._entries.push(e),this._stage}generateSource(){return this._entries}}class h extends s{constructor(){super(...arguments),this.uniforms=new c(this),this.main=new d(this),this.code=new u(this),this.constants=new g(this)}get builder(){return this}}class f{constructor(){this._entries=new Array}add(e,t){this._entries.push([e,t])}generateSource(e){return"fragment"===e?[]:this._entries.map((e=>`in ${e[1]} ${e[0]};`))}}class m{constructor(){this._entries=new Map}add(e,t){this._entries.has(e)&&(0,a.vA)(this._entries.get(e)===t),this._entries.set(e,t)}generateSource(e){const t=new Array;return this._entries.forEach(((r,i)=>t.push("vertex"===e?`out ${r} ${i};`:`in ${r} ${i};`))),t}}class p{constructor(){this._entries=new Set}add(e){this._entries.add(e)}generateSource(e){const t="vertex"===e?p.ALLOWLIST_VERTEX:p.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter((e=>t.includes(e))).map((e=>`#extension ${e} : enable`))}}p.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"],p.ALLOWLIST_VERTEX=[];class v{constructor(){this._entries=new Map}add(e,t,r=0){const i=this._entries.get(r);i?(0,a.vA)(i.name===e&&i.type===t,`Fragment shader output location ${r} occupied`):this._entries.set(r,{name:e,type:t})}generateSource(e){if("vertex"===e)return[];0===this._entries.size&&this._entries.set(0,{name:v.DEFAULT_NAME,type:v.DEFAULT_TYPE});const t=new Array;return this._entries.forEach(((e,r)=>t.push(`layout(location = ${r}) out ${e.type} ${e.name};`))),t}}v.DEFAULT_TYPE="vec4",v.DEFAULT_NAME="fragColor";class g{constructor(e){this._stage=e,this._entries=new Set}add(e,t,r){let i="ERROR_CONSTRUCTOR_STRING";switch(t){case"float":i=g._numberToFloatStr(r);break;case"int":i=g._numberToIntStr(r);break;case"bool":i=r.toString();break;case"vec2":i=`vec2(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])})`;break;case"vec3":i=`vec3(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])}, ${g._numberToFloatStr(r[2])})`;break;case"vec4":i=`vec4(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])}, ${g._numberToFloatStr(r[2])}, ${g._numberToFloatStr(r[3])})`;break;case"ivec2":i=`ivec2(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])})`;break;case"ivec3":i=`ivec3(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])})`;break;case"ivec4":i=`ivec4(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])}, ${g._numberToIntStr(r[3])})`;break;case"mat2":case"mat3":case"mat4":i=`${t}(${Array.prototype.map.call(r,(e=>g._numberToFloatStr(e))).join(", ")})`}return this._entries.add(`const ${t} ${e} = ${i};`),this._stage}static _numberToIntStr(e){return e.toFixed(0)}static _numberToFloatStr(e){return Number.isInteger(e)?e.toFixed(1):e.toString()}generateSource(){return Array.from(this._entries)}}const _="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp sampler2D;\n#else\n precision mediump float;\n precision mediump sampler2D;\n#endif",x="precision highp float;\nprecision highp sampler2D;"},15976:(e,t,r)=>{r.d(t,{o:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"sampler2D",n.c.Draw,((r,i,n)=>r.bindTexture(e,t(i,n))))}}},63761:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"sampler2D",n.c.Pass,((r,i,n)=>r.bindTexture(e,t(i,n))))}}},39589:(e,t,r)=>{r.d(t,{n:()=>n});var i=r(46263);class n{constructor(e,t,r,n,o=null){if(this.name=e,this.type=t,this.arraySize=o,this.bind={[i.c.Pass]:null,[i.c.Draw]:null},n)switch(r){case i.c.Pass:this.bind[i.c.Pass]=n;break;case i.c.Draw:this.bind[i.c.Draw]=n}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},2597:(e,t,r)=>{r.d(t,{H:()=>n,If:()=>o,Y:()=>i});const i=class{};function n(e,...t){let r="";for(let i=0;i<t.length;i++)r+=e[i]+t[i];return r+=e[e.length-1],r}function o(e,t,r=""){return e?t:r}var a;(a=n||(n={})).int=function(e){return Math.round(e).toString()},a.float=function(e){return e.toPrecision(8)}},97220:(e,t,r)=>{r.d(t,{$:()=>i});class i{constructor(e,t){this._module=e,this._loadModule=t}get(){return this._module}async reload(){return this._module=await this._loadModule(),this._module}}},84867:(e,t,r)=>{r.d(t,{w:()=>o});var i=r(97768),n=r(63907);class o{constructor(e,t,r){this.release=r,this.initializeConfiguration(e,t),this._configuration=t.snapshot(),this._program=this.initializeProgram(e),this._pipeline=this.initializePipeline(e)}destroy(){this._program=(0,i.WD)(this._program),this._pipeline=this._configuration=null}reload(e){(0,i.WD)(this._program),this._program=this.initializeProgram(e),this._pipeline=this.initializePipeline(e)}get program(){return this._program}get compiled(){return this.program.compiled}get key(){return this._configuration.key}get configuration(){return this._configuration}ensureAttributeLocations(e){this.program.assertCompatibleVertexAttributeLocations(e)}get primitiveType(){return n.WR.TRIANGLES}getPipeline(e,t,r){return this._pipeline}initializeConfiguration(e,t){}}},99769:(e,t,r)=>{r.d(t,{K:()=>o,W:()=>a});var i=r(49186),n=r(2597);class o extends n.Y{constructor(){super(),this._key="",this._keyDirty=!1,this._parameterBits=this._parameterBits?this._parameterBits.map((()=>0)):[],this._parameterNames||(this._parameterNames=[])}get key(){return this._keyDirty&&(this._keyDirty=!1,this._key=String.fromCharCode.apply(String,this._parameterBits)),this._key}snapshot(){const e=this._parameterNames,t={key:this.key};for(const r of e)t[r]=this[r];return t}}function a(e={}){return(t,r)=>{if(t._parameterNames=t._parameterNames??[],t._parameterNames.push(r),null!=e.constValue)Object.defineProperty(t,r,{get:()=>e.constValue});else{const n=t._parameterNames.length-1,o=e.count||2,a=Math.ceil(Math.log2(o)),s=t._parameterBits??[0];let l=0;for(;s[l]+a>16;)l++,l>=s.length&&s.push(0);t._parameterBits=s;const c=s[l],d=(1<<a)-1<<c;s[l]+=a,Object.defineProperty(t,r,{get(){return this[n]},set(t){if(this[n]!==t)if(this[n]=t,this._keyDirty=!0,this._parameterBits[l]=this._parameterBits[l]&~d|+t<<c&d,"number"==typeof t){if(null==e.count)throw new i.A(`Configuration value for ${r} must provide a count option`)}else if("boolean"!=typeof t)throw new i.A(`Configuration value for ${r} must be boolean or number, got ${typeof t}`)}})}}}},69720:(e,t,r)=>{r.d(t,{J:()=>n});var i=r(24326);class n{constructor(){this.id=(0,i.c)()}}},96672:(e,t,r)=>{var i;r.d(t,{X:()=>i}),function(e){e[e.Layer=0]="Layer",e[e.Object=1]="Object",e[e.Mesh=2]="Mesh",e[e.Line=3]="Line",e[e.Point=4]="Point",e[e.Material=5]="Material",e[e.Texture=6]="Texture",e[e.COUNT=7]="COUNT"}(i||(i={}))},39341:(e,t,r)=>{r.d(t,{D:()=>n});var i=r(46540);const n=new Map([[i.r.POSITION,0],[i.r.NORMAL,1],[i.r.NORMALCOMPRESSED,1],[i.r.UV0,2],[i.r.COLOR,3],[i.r.COLORFEATUREATTRIBUTE,3],[i.r.SIZE,4],[i.r.TANGENT,4],[i.r.CENTEROFFSETANDDISTANCE,5],[i.r.SYMBOLCOLOR,5],[i.r.FEATUREATTRIBUTE,6],[i.r.INSTANCEFEATUREATTRIBUTE,6],[i.r.INSTANCECOLOR,7],[i.r.OBJECTANDLAYERIDCOLOR,7],[i.r.INSTANCEOBJECTANDLAYERIDCOLOR,7],[i.r.ROTATION,8],[i.r.INSTANCEMODEL,8],[i.r.INSTANCEMODELNORMAL,12],[i.r.INSTANCEMODELORIGINHI,11],[i.r.INSTANCEMODELORIGINLO,15]])},25634:(e,t,r)=>{r.d(t,{m8:()=>l});var i=r(97768),n=r(74887),o=r(2597),a=r(89192);class s{constructor(e){this._material=e.material,this._techniques=e.techniques,this._output=e.output}dispose(){this._techniques.release(this._technique)}get technique(){return this._technique}get _stippleTextures(){return this._techniques.constructionContext.stippleTextures}get _markerTextures(){return this._techniques.constructionContext.markerTextures}ensureTechnique(e,t){return this._technique=this._techniques.releaseAndAcquire(e,this._material.getConfiguration(this._output,t),this._technique),this._technique}ensureResources(e){return a.Am.LOADED}}class l extends s{constructor(e){super(e),this._numLoading=0,this._disposed=!1,this._textures=e.textures,this._textureId=e.textureId,this._acquire(e.textureId,(e=>this._texture=e)),this._acquire(e.normalTextureId,(e=>this._textureNormal=e)),this._acquire(e.emissiveTextureId,(e=>this._textureEmissive=e)),this._acquire(e.occlusionTextureId,(e=>this._textureOcclusion=e)),this._acquire(e.metallicRoughnessTextureId,(e=>this._textureMetallicRoughness=e))}dispose(){this._texture=(0,i.Gz)(this._texture),this._textureNormal=(0,i.Gz)(this._textureNormal),this._textureEmissive=(0,i.Gz)(this._textureEmissive),this._textureOcclusion=(0,i.Gz)(this._textureOcclusion),this._textureMetallicRoughness=(0,i.Gz)(this._textureMetallicRoughness),this._disposed=!0}ensureResources(e){return 0===this._numLoading?a.Am.LOADED:a.Am.LOADING}get textureBindParameters(){return new d(null!=this._texture?this._texture.glTexture:null,null!=this._textureNormal?this._textureNormal.glTexture:null,null!=this._textureEmissive?this._textureEmissive.glTexture:null,null!=this._textureOcclusion?this._textureOcclusion.glTexture:null,null!=this._textureMetallicRoughness?this._textureMetallicRoughness.glTexture:null)}updateTexture(e){null!=this._texture&&e===this._texture.id||(this._texture=(0,i.Gz)(this._texture),this._textureId=e,this._acquire(this._textureId,(e=>this._texture=e)))}_acquire(e,t){if(null==e)return void t(null);const r=this._textures.acquire(e);if((0,n.$X)(r))return++this._numLoading,void r.then((e=>{if(this._disposed)return(0,i.Gz)(e),void t(null);t(e)})).finally((()=>--this._numLoading));t(r)}}class c extends o.Y{constructor(e=null){super(),this.textureEmissive=e}}class d extends c{constructor(e=null,t=null,r=null,i=null,n=null,o,a){super(r),this.texture=e,this.textureNormal=t,this.textureOcclusion=i,this.textureMetallicRoughness=n,this.scale=o,this.normalTextureTransformMatrix=a}}},14903:(e,t,r)=>{r.d(t,{im:()=>h,m$:()=>i});var i,n,o=r(51850),a=r(2597),s=r(89192),l=r(69720),c=r(96672),d=r(39341),u=r(13752);class h extends l.J{constructor(e,t){super(),this.type=c.X.Material,this.supportsEdges=!1,this._renderPriority=0,this._vertexAttributeLocations=d.D,this._pp0=(0,o.fA)(0,0,1),this._pp1=(0,o.fA)(0,0,0),this._parameters=new t,(0,u.MB)(this._parameters,e),this.validateParameters(this._parameters)}get parameters(){return this._parameters}update(e){return!1}setParameters(e,t=!0){(0,u.MB)(this._parameters,e)&&(this.validateParameters(this._parameters),t&&this.parametersChanged())}validateParameters(e){}shouldRender(e){return this.visible&&this.isVisibleForOutput(e.output)&&(!this.parameters.isDecoration||e.bindParameters.decorations===s.ID.ON)&&!!(this.parameters.renderOccluded&e.renderOccludedMask)}isVisibleForOutput(e){return!0}get renderPriority(){return this._renderPriority}set renderPriority(e){e!==this._renderPriority&&(this._renderPriority=e,this.parametersChanged())}get vertexAttributeLocations(){return this._vertexAttributeLocations}parametersChanged(){this.repository?.materialChanged(this)}queryRenderOccludedState(e){return this.visible&&this.parameters.renderOccluded===e}get hasEmissions(){return!1}intersectDraped(e,t,r,i,n,o){return this._pp0[0]=this._pp1[0]=i[0],this._pp0[1]=this._pp1[1]=i[1],this.intersect(e,t,r,this._pp0,this._pp1,n)}}(n=i||(i={}))[n.None=0]="None",n[n.Occlude=1]="Occlude",n[n.Transparent=2]="Transparent",n[n.OccludeAndTransparent=4]="OccludeAndTransparent",n[n.OccludeAndTransparentStencil=8]="OccludeAndTransparentStencil",n[n.Opaque=16]="Opaque",a.Y},34886:(e,t,r)=>{r.d(t,{B:()=>o});var i=r(3694),n=r(94656);class o{constructor(e,t,r){this._context=e,this._locations=r,this._textures=new Map,this._freeTextureUnits=new i.A({deallocator:null}),this._glProgram=e.programCache.acquire(t.generate("vertex"),t.generate("fragment"),r),this._glProgram.stop=()=>{throw new Error("Wrapped _glProgram used directly")},this.bindPass=t.generateBindPass(this),this.bindDraw=t.generateBindDraw(this),this._fragmentUniforms=(0,n.en)()?t.fragmentUniforms:null}dispose(){this._glProgram.dispose()}get glName(){return this._glProgram.glName}get hasTransformFeedbackVaryings(){return this._glProgram.hasTransformFeedbackVaryings}get compiled(){return this._glProgram.compiled}setUniform1b(e,t){this._glProgram.setUniform1i(e,t?1:0)}setUniform1i(e,t){this._glProgram.setUniform1i(e,t)}setUniform1f(e,t){this._glProgram.setUniform1f(e,t)}setUniform2fv(e,t){this._glProgram.setUniform2fv(e,t)}setUniform3fv(e,t){this._glProgram.setUniform3fv(e,t)}setUniform4fv(e,t){this._glProgram.setUniform4fv(e,t)}setUniformMatrix3fv(e,t){this._glProgram.setUniformMatrix3fv(e,t)}setUniformMatrix4fv(e,t){this._glProgram.setUniformMatrix4fv(e,t)}setUniform1fv(e,t){this._glProgram.setUniform1fv(e,t)}setUniform1iv(e,t){this._glProgram.setUniform1iv(e,t)}setUniform2iv(e,t){this._glProgram.setUniform2iv(e,t)}setUniform3iv(e,t){this._glProgram.setUniform3iv(e,t)}setUniform4iv(e,t){this._glProgram.setUniform4iv(e,t)}assertCompatibleVertexAttributeLocations(e){e.locations!==this._locations&&console.error("VertexAttributeLocations are incompatible")}stop(){this._textures.clear(),this._freeTextureUnits.clear()}bindTexture(e,t){if(null==t?.glName){const t=this._textures.get(e);return t&&(this._context.bindTexture(null,t.unit),this._freeTextureUnit(t),this._textures.delete(e)),null}let r=this._textures.get(e);return null==r?(r=this._allocTextureUnit(t),this._textures.set(e,r)):r.texture=t,this._context.useProgram(this),this.setUniform1i(e,r.unit),this._context.bindTexture(t,r.unit),r.unit}rebindTextures(){this._context.useProgram(this),this._textures.forEach(((e,t)=>{this._context.bindTexture(e.texture,e.unit),this.setUniform1i(t,e.unit)})),this._fragmentUniforms?.forEach((e=>{"sampler2D"!==e.type&&"samplerCube"!==e.type||this._textures.has(e.name)||console.error(`Texture sampler ${e.name} has no bound texture`)}))}_allocTextureUnit(e){return{texture:e,unit:0===this._freeTextureUnits.length?this._textures.size:this._freeTextureUnits.pop()}}_freeTextureUnit(e){this._freeTextureUnits.push(e.unit)}}},14327:(e,t,r)=>{var i;r.d(t,{y:()=>i}),function(e){e[e.ColorAlpha=0]="ColorAlpha",e[e.FrontFace=1]="FrontFace",e[e.NONE=2]="NONE",e[e.COUNT=3]="COUNT"}(i||(i={}))},89192:(e,t,r)=>{var i,n,o,a,s,l,c,d,u;r.d(t,{Am:()=>a,C7:()=>o,ID:()=>d,JS:()=>u,Mg:()=>l,dd:()=>s,it:()=>n,s2:()=>i,sf:()=>c}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(i||(i={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(n||(n={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(o||(o={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(a||(a={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(s||(s={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee",e[e.COUNT=2]="COUNT"}(l||(l={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(c||(c={})),function(e){e[e.OFF=0]="OFF",e[e.ON=1]="ON"}(d||(d={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(u||(u={}))},61765:(e,t,r)=>{r.d(t,{T:()=>i});const i=2.1},13752:(e,t,r)=>{r.d(t,{Um:()=>Y,MB:()=>X,kE:()=>$});var i=r(4576),n=r(34727),o=(r(44208),r(53966)),a=r(4341),s=r(58083),l=r(9093),c=r(38954),d=r(51850),u=r(19419),h=r(88582),f=r(11964),m=r(240),p=r(71351),v=r(44280),g=r(32114);const _=()=>o.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function x(e=B){return{plane:(0,m.vt)(e.plane),origin:(0,d.o8)(e.origin),basis1:(0,d.o8)(e.basis1),basis2:(0,d.o8)(e.basis2)}}function T(e,t=x()){return b(e.origin,e.basis1,e.basis2,t)}function b(e,t,r,i=x()){return(0,c.c)(i.origin,e),(0,c.c)(i.basis1,t),(0,c.c)(i.basis2,r),A(i),function(e,t){Math.abs((0,c.m)(e.basis1,e.basis2)/((0,c.l)(e.basis1)*(0,c.l)(e.basis2)))>1e-6&&_().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,c.m)(e.basis1,N(e)))>1e-6&&_().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,c.m)(N(e),e.origin)-e.plane[3])>1e-6&&_().warn(t,"Plane offset is not consistent with plane origin")}(i,"fromValues()"),i}function A(e){(0,m.mR)(e.basis2,e.basis1,e.origin,e.plane)}function y(e,t,r){e!==r&&T(e,r);const i=(0,c.j)(g.rq.get(),N(e),t);return(0,c.g)(r.origin,r.origin,i),r.plane[3]-=t,r}function E(e,t=x()){const r=(e[2]-e[0])/2,i=(e[3]-e[1])/2;return(0,c.s)(t.origin,e[0]+r,e[1]+i,0),(0,c.s)(t.basis1,r,0,0),(0,c.s)(t.basis2,0,i,0),(0,m.fA)(0,0,1,0,t.plane),t}function S(e,t,r){return!!(0,m.Ui)(e.plane,t,r)&&P(e,r)}function w(e,t,r){const i=F.get();D(e,t,i,F.get());let o=Number.POSITIVE_INFINITY;for(const a of U){const s=H(e,a,z.get()),l=g.rq.get();if((0,m.T7)(i,s,l)){const e=(0,c.E)(g.rq.get(),t.origin,l),i=Math.abs((0,n.XM)((0,c.m)(t.direction,e)));i<o&&(o=i,(0,c.c)(r,l))}}return o===Number.POSITIVE_INFINITY?M(e,t,r):r}function M(e,t,r){if(S(e,t,r))return r;const i=F.get(),n=F.get();D(e,t,i,n);let o=Number.POSITIVE_INFINITY;for(const a of U){const s=H(e,a,z.get()),l=g.rq.get();if((0,m.gv)(i,s,l)){const e=(0,p.kb)(t,l);if(!(0,m.Tj)(n,l))continue;e<o&&(o=e,(0,c.c)(r,l))}}return I(e,t.origin)<o&&C(e,t.origin,r),r}function C(e,t,r){const i=(0,m._I)(e.plane,t,g.rq.get()),n=(0,f.H6)(L(e,e.basis1),i,-1,1,g.rq.get()),o=(0,f.H6)(L(e,e.basis2),i,-1,1,g.rq.get());return(0,c.f)(r,(0,c.g)(g.rq.get(),n,o),e.origin),r}function O(e,t,r){const{origin:i,basis1:n,basis2:o}=e,a=(0,c.f)(g.rq.get(),t,i),s=(0,v.gr)(n,a),l=(0,v.gr)(o,a),d=(0,v.gr)(N(e),a);return(0,c.s)(r,s,l,d)}function I(e,t){const r=O(e,t,g.rq.get()),{basis1:i,basis2:n}=e,o=(0,c.l)(i),a=(0,c.l)(n),s=Math.max(Math.abs(r[0])-o,0),l=Math.max(Math.abs(r[1])-a,0),d=r[2];return s*s+l*l+d*d}function R(e,t){const r=-e.plane[3];return(0,v.gr)(N(e),t)-r}function N(e){return(0,m.Qj)(e.plane)}function P(e,t){const r=(0,c.f)(g.rq.get(),t,e.origin),i=(0,c.q)(e.basis1),n=(0,c.q)(e.basis2),o=(0,c.m)(e.basis1,r),a=(0,c.m)(e.basis2,r);return-o-i<0&&o-i<0&&-a-n<0&&a-n<0}function L(e,t){const r=z.get();return(0,c.c)(r.origin,e.origin),(0,c.c)(r.vector,t),r}function H(e,t,r){const{basis1:i,basis2:n,origin:o}=e,a=(0,c.j)(g.rq.get(),i,t.origin[0]),s=(0,c.j)(g.rq.get(),n,t.origin[1]);(0,c.g)(r.origin,a,s),(0,c.g)(r.origin,r.origin,o);const l=(0,c.j)(g.rq.get(),i,t.direction[0]),d=(0,c.j)(g.rq.get(),n,t.direction[1]);return(0,c.j)(r.vector,(0,c.g)(l,l,d),2),r}function D(e,t,r,i){const n=N(e);(0,m.mR)(n,t.direction,t.origin,r),(0,m.mR)((0,m.Qj)(r),n,t.origin,i)}const B={plane:(0,m.vt)(),origin:(0,d.fA)(0,0,0),basis1:(0,d.fA)(1,0,0),basis2:(0,d.fA)(0,1,0)},F=new a.I(m.vt),z=new a.I(f.vt),V=(0,d.vt)(),G=new a.I((()=>x())),U=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],W=(0,l.vt)(),j=(0,l.vt)();Object.freeze(Object.defineProperty({__proto__:null,BoundedPlaneClass:class{constructor(){this.plane=(0,m.vt)(),this.origin=(0,d.vt)(),this.basis1=(0,d.vt)(),this.basis2=(0,d.vt)()}},altitudeAt:R,axisAt:function(e,t,r,i){return function(e,t,r){switch(t){case h._.X:(0,c.c)(r,e.basis1),(0,c.n)(r,r);break;case h._.Y:(0,c.c)(r,e.basis2),(0,c.n)(r,r);break;case h._.Z:(0,c.c)(r,N(e))}return r}(e,r,i)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:M,closestPointOnSilhouette:w,copy:T,copyWithoutVerify:function(e,t){(0,c.c)(t.origin,e.origin),(0,c.c)(t.basis1,e.basis1),(0,c.c)(t.basis2,e.basis2),(0,m.C)(t.plane,e.plane)},create:x,distance:function(e,t){return Math.sqrt(I(e,t))},distance2:I,distanceToSilhouette:function(e,t){let r=Number.NEGATIVE_INFINITY;for(const i of U){const n=H(e,i,z.get()),o=(0,f.kb)(n,t);o>r&&(r=o)}return Math.sqrt(r)},elevate:y,equals:function(e,t){return(0,c.e)(e.basis1,t.basis1)&&(0,c.e)(e.basis2,t.basis2)&&(0,c.e)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,m.Tj)(e.plane,t)&&P(e,t)},fromAABoundingRect:E,fromValues:b,getExtent:function(e,t){const r=e.basis1[0],i=e.basis2[1],[n,o]=e.origin;return(0,u.fA)(n-r,o-i,n+i,o+i,t)},intersectRay:S,intersectRayClosestSilhouette:function(e,t,r){if(S(e,t,r))return r;const i=w(e,t,g.rq.get());return(0,c.g)(r,t.origin,(0,c.j)(g.rq.get(),t.direction,(0,c.p)(t.origin,i)/(0,c.l)(t.direction))),r},normal:N,projectPoint:C,projectPointLocal:O,rotate:function(e,t,r,i){return e!==i&&T(e,i),(0,s.$0)(j,t,r),(0,c.h)(i.basis1,e.basis1,j),(0,c.h)(i.basis2,e.basis2,j),A(i),i},setAltitudeAt:function(e,t,r,i){const n=R(e,t),o=(0,c.j)(V,N(e),r-n);return(0,c.g)(i,t,o),i},setExtent:function(e,t,r){return E(t,r),y(r,R(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&T(e,r),(0,s.B8)(W,t),(0,s.mg)(W,W),(0,c.h)(r.basis1,e.basis1,W),(0,c.h)(r.basis2,e.basis2,W),(0,c.h)((0,m.Qj)(r.plane),(0,m.Qj)(e.plane),W),(0,c.h)(r.origin,e.origin,t),(0,m.mP)(r.plane,r.plane,r.origin),r},up:B,updateUnboundedPlane:A,wrap:function(e,t,r){const i=G.get();return i.origin=e,i.basis1=t,i.basis2=r,i.plane=(0,m.LV)(0,0,0,0),A(i),i}},Symbol.toStringTag,{value:"Module"}));var q=r(76412);r(24151),(0,n.kU)(10),(0,n.kU)(12),(0,n.kU)(70),(0,n.kU)(40);const k={scale:0,factor:0,minScaleFactor:0};function $(e,t,r,i,o){let a=(r.screenLength||0)*e.pixelRatio;null!=o&&(a=function(e,t,r,i){return function(e,t){return(0,n.Cc)(e*Math.max(t.scale,t.minScaleFactor),e,t.factor)}(e,function(e,t,r){const i=r.parameters;return k.scale=Math.min(i.divisor/(t-i.offset),1),k.factor=function(e){return Math.abs(e*e*e)}(e),k}(t,r,i))}(a,i,t,o));const s=a*Math.tan(.5*e.fovY)/(.5*e.fullHeight);return(0,n.qE)(s*t,r.minWorldLength||0,null!=r.maxWorldLength?r.maxWorldLength:1/0)}function X(e,t){let r=!1;for(const n in t){const o=t[n];void 0!==o&&(Array.isArray(o)?Array.isArray(e[n])&&(0,i.aI)(o,e[n])||(e[n]=o.slice(),r=!0):e[n]!==o&&(r=!0,e[n]=o))}return r}(0,q.c)();const Y={multiply:1,ignore:2,replace:3,tint:4}},60517:(e,t,r)=>{r.d(t,{z:()=>d});var i=r(49255),n=r(22911),o=r(76662),a=r(35093),s=r(63365),l=r(2597),c=r(14327);function d(e,t){e.include(o.Q,t),e.include(n.NL,t),e.fragment.include(s.a);const r=t.output===i.V.ObjectAndLayerIdColor,d=t.output===i.V.ColorEmission,u=(t.output===i.V.Color||d)&&t.transparencyPassType===c.y.ColorAlpha,h=(t.output===i.V.Color||d)&&t.transparencyPassType!==c.y.ColorAlpha,f=t.discardInvisibleFragments;let m=0;(h||d||u)&&e.outputs.add("fragColor","vec4",m++),d&&e.outputs.add("fragEmission","vec4",m++),u&&e.outputs.add("fragAlpha","float",m++),e.fragment.code.add(l.H`
|
|
1014
|
+
}`)}},26835:(e,t,r)=>{r(2597)},20693:(e,t,r)=>{r.d(t,{yu:()=>f,NB:()=>m,S7:()=>g});var i=r(58083),n=r(9093),o=r(38954),a=r(51850),s=r(40710),l=r(33079),c=(r(20304),r(39589)),d=r(46263);class u extends c.n{constructor(e,t){super(e,"mat4",d.c.Draw,((r,i,n)=>r.setUniformMatrix4fv(e,t(i,n))))}}var h=r(40095);function f(e,t){t.instancedDoublePrecision?e.constants.add("cameraPosition","vec3",a.uY):e.uniforms.add(new s.W("cameraPosition",((e,t)=>(0,o.s)(v,t.camera.viewInverseTransposeMatrix[3]-e.origin[0],t.camera.viewInverseTransposeMatrix[7]-e.origin[1],t.camera.viewInverseTransposeMatrix[11]-e.origin[2]))))}function m(e,t){if(!t.instancedDoublePrecision)return void e.uniforms.add(new h.X("proj",((e,t)=>t.camera.projectionMatrix)),new u("view",((e,t)=>(0,i.Tl)(p,t.camera.viewMatrix,e.origin))),new s.W("localOrigin",(e=>e.origin)));const r=e=>(0,o.s)(v,e.camera.viewInverseTransposeMatrix[3],e.camera.viewInverseTransposeMatrix[7],e.camera.viewInverseTransposeMatrix[11]);e.uniforms.add(new h.X("proj",((e,t)=>t.camera.projectionMatrix)),new h.X("view",((e,t)=>(0,i.Tl)(p,t.camera.viewMatrix,r(t)))),new l.t("localOrigin",((e,t)=>r(t))))}const p=(0,n.vt)(),v=(0,a.vt)();function g(e){e.uniforms.add(new h.X("viewNormal",((e,t)=>t.camera.viewInverseTransposeMatrix)))}},68259:(e,t,r)=>{r.d(t,{t:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec2",n.c.Draw,((r,i,n,o)=>r.setUniform2fv(e,t(i,n,o))))}}},47286:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec2",n.c.Pass,((r,i,n)=>r.setUniform2fv(e,t(i,n))))}}},40710:(e,t,r)=>{r.d(t,{W:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec3",n.c.Draw,((r,i,n,o)=>r.setUniform3fv(e,t(i,n,o))))}}},33079:(e,t,r)=>{r.d(t,{t:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec3",n.c.Pass,((r,i,n)=>r.setUniform3fv(e,t(i,n))))}}},71988:(e,t,r)=>{r.d(t,{E:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"vec4",n.c.Pass,((r,i,n)=>r.setUniform4fv(e,t(i,n))))}}},20304:(e,t,r)=>{r.d(t,{m:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"float",n.c.Pass,((r,i,n)=>r.setUniform1f(e,t(i,n))))}}},93588:(e,t,r)=>{r.d(t,{c:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"int",n.c.Pass,((r,i,n)=>r.setUniform1i(e,t(i,n))))}}},98353:(e,t,r)=>{r.d(t,{h:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"mat3",n.c.Draw,((r,i,n)=>r.setUniformMatrix3fv(e,t(i,n))))}}},35644:(e,t,r)=>{r.d(t,{k:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"mat3",n.c.Pass,((r,i,n)=>r.setUniformMatrix3fv(e,t(i,n))))}}},40095:(e,t,r)=>{r.d(t,{X:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"mat4",n.c.Pass,((r,i,n)=>r.setUniformMatrix4fv(e,t(i,n))))}}},85977:(e,t,r)=>{r.d(t,{N5:()=>l});var i=r(49186),n=(r(44208),r(53966)),o=r(46263),a=r(620);class s{constructor(){this._includedModules=new Map}include(e,t){this._includedModules.has(e)?this._includedModules.get(e):(this._includedModules.set(e,t),e(this.builder,t))}}class l extends s{constructor(){super(...arguments),this.vertex=new h,this.fragment=new h,this.attributes=new f,this.varyings=new m,this.extensions=new p,this.outputs=new v}get fragmentUniforms(){return this.fragment.uniforms.entries}get builder(){return this}generate(e){const t=this.extensions.generateSource(e),r=this.attributes.generateSource(e),i=this.varyings.generateSource(e),n="vertex"===e?this.vertex:this.fragment,o=n.uniforms.generateSource(),a=n.code.generateSource(),s=n.main.generateSource(),l="vertex"===e?x:_,c=n.constants.generateSource(),d=this.outputs.generateSource(e);return`#version 300 es\n${t.join("\n")}\n\n${l}\n\n${c.join("\n")}\n\n${o.join("\n")}\n\n${r.join("\n")}\n\n${i.join("\n")}\n\n${d.join("\n")}\n\n${a.join("\n")}\n\n${s.join("\n")}`}generateBindPass(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Pass];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Pass];r&&t.set(e.name,r)}));const r=Array.from(t.values()),i=r.length;return(t,n)=>{for(let o=0;o<i;++o)r[o](e,t,n)}}generateBindDraw(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Draw];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[o.c.Draw];r&&t.set(e.name,r)}));const r=Array.from(t.values()),i=r.length;return(t,n,o)=>{for(let a=0;a<i;++a)r[a](e,o,t,n)}}}class c{constructor(e){this._stage=e,this._entries=new Map}add(...e){for(const t of e)this._add(t);return this._stage}get(e){return this._entries.get(e)}_add(e){if(null!=e){if(this._entries.has(e.name)&&!this._entries.get(e.name).equals(e))throw new i.A(`Duplicate uniform name ${e.name} for different uniform type`);this._entries.set(e.name,e)}else n.A.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder").error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map((e=>null!=e.arraySize?`uniform ${e.type} ${e.name}[${e.arraySize}];`:`uniform ${e.type} ${e.name};`))}get entries(){return Array.from(this._entries.values())}}class d{constructor(e){this._stage=e,this._bodies=new Array}add(e){return this._bodies.push(e),this._stage}generateSource(){if(this._bodies.length>0)return[`void main() {\n ${this._bodies.join("\n")||""} \n}`];throw new i.A("Shader does not contain main function body.")}}class u{constructor(e){this._stage=e,this._entries=new Array}add(e){return this._entries.push(e),this._stage}generateSource(){return this._entries}}class h extends s{constructor(){super(...arguments),this.uniforms=new c(this),this.main=new d(this),this.code=new u(this),this.constants=new g(this)}get builder(){return this}}class f{constructor(){this._entries=new Array}add(e,t){this._entries.push([e,t])}generateSource(e){return"fragment"===e?[]:this._entries.map((e=>`in ${e[1]} ${e[0]};`))}}class m{constructor(){this._entries=new Map}add(e,t){this._entries.has(e)&&(0,a.vA)(this._entries.get(e)===t),this._entries.set(e,t)}generateSource(e){const t=new Array;return this._entries.forEach(((r,i)=>t.push("vertex"===e?`out ${r} ${i};`:`in ${r} ${i};`))),t}}class p{constructor(){this._entries=new Set}add(e){this._entries.add(e)}generateSource(e){const t="vertex"===e?p.ALLOWLIST_VERTEX:p.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter((e=>t.includes(e))).map((e=>`#extension ${e} : enable`))}}p.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"],p.ALLOWLIST_VERTEX=[];class v{constructor(){this._entries=new Map}add(e,t,r=0){const i=this._entries.get(r);i?(0,a.vA)(i.name===e&&i.type===t,`Fragment shader output location ${r} occupied`):this._entries.set(r,{name:e,type:t})}generateSource(e){if("vertex"===e)return[];0===this._entries.size&&this._entries.set(0,{name:v.DEFAULT_NAME,type:v.DEFAULT_TYPE});const t=new Array;return this._entries.forEach(((e,r)=>t.push(`layout(location = ${r}) out ${e.type} ${e.name};`))),t}}v.DEFAULT_TYPE="vec4",v.DEFAULT_NAME="fragColor";class g{constructor(e){this._stage=e,this._entries=new Set}add(e,t,r){let i="ERROR_CONSTRUCTOR_STRING";switch(t){case"float":i=g._numberToFloatStr(r);break;case"int":i=g._numberToIntStr(r);break;case"bool":i=r.toString();break;case"vec2":i=`vec2(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])})`;break;case"vec3":i=`vec3(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])}, ${g._numberToFloatStr(r[2])})`;break;case"vec4":i=`vec4(${g._numberToFloatStr(r[0])}, ${g._numberToFloatStr(r[1])}, ${g._numberToFloatStr(r[2])}, ${g._numberToFloatStr(r[3])})`;break;case"ivec2":i=`ivec2(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])})`;break;case"ivec3":i=`ivec3(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])})`;break;case"ivec4":i=`ivec4(${g._numberToIntStr(r[0])}, ${g._numberToIntStr(r[1])}, ${g._numberToIntStr(r[2])}, ${g._numberToIntStr(r[3])})`;break;case"mat2":case"mat3":case"mat4":i=`${t}(${Array.prototype.map.call(r,(e=>g._numberToFloatStr(e))).join(", ")})`}return this._entries.add(`const ${t} ${e} = ${i};`),this._stage}static _numberToIntStr(e){return e.toFixed(0)}static _numberToFloatStr(e){return Number.isInteger(e)?e.toFixed(1):e.toString()}generateSource(){return Array.from(this._entries)}}const _="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp sampler2D;\n#else\n precision mediump float;\n precision mediump sampler2D;\n#endif",x="precision highp float;\nprecision highp sampler2D;"},15976:(e,t,r)=>{r.d(t,{o:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"sampler2D",n.c.Draw,((r,i,n)=>r.bindTexture(e,t(i,n))))}}},63761:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(39589),n=r(46263);class o extends i.n{constructor(e,t){super(e,"sampler2D",n.c.Pass,((r,i,n)=>r.bindTexture(e,t(i,n))))}}},39589:(e,t,r)=>{r.d(t,{n:()=>n});var i=r(46263);class n{constructor(e,t,r,n,o=null){if(this.name=e,this.type=t,this.arraySize=o,this.bind={[i.c.Pass]:null,[i.c.Draw]:null},n)switch(r){case i.c.Pass:this.bind[i.c.Pass]=n;break;case i.c.Draw:this.bind[i.c.Draw]=n}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},2597:(e,t,r)=>{r.d(t,{H:()=>n,If:()=>o,Y:()=>i});const i=class{};function n(e,...t){let r="";for(let i=0;i<t.length;i++)r+=e[i]+t[i];return r+=e[e.length-1],r}function o(e,t,r=""){return e?t:r}var a;(a=n||(n={})).int=function(e){return Math.round(e).toString()},a.float=function(e){return e.toPrecision(8)}},97220:(e,t,r)=>{r.d(t,{$:()=>i});class i{constructor(e,t){this._module=e,this._loadModule=t}get(){return this._module}async reload(){return this._module=await this._loadModule(),this._module}}},84867:(e,t,r)=>{r.d(t,{w:()=>o});var i=r(97768),n=r(63907);class o{constructor(e,t,r){this.release=r,this.initializeConfiguration(e,t),this._configuration=t.snapshot(),this._program=this.initializeProgram(e),this._pipeline=this.initializePipeline(e)}destroy(){this._program=(0,i.WD)(this._program),this._pipeline=this._configuration=null}reload(e){(0,i.WD)(this._program),this._program=this.initializeProgram(e),this._pipeline=this.initializePipeline(e)}get program(){return this._program}get compiled(){return this.program.compiled}get key(){return this._configuration.key}get configuration(){return this._configuration}ensureAttributeLocations(e){this.program.assertCompatibleVertexAttributeLocations(e)}get primitiveType(){return n.WR.TRIANGLES}getPipeline(e,t=null){return this._pipeline}initializeConfiguration(e,t){}}},99769:(e,t,r)=>{r.d(t,{K:()=>o,W:()=>a});var i=r(49186),n=r(2597);class o extends n.Y{constructor(){super(),this._key="",this._keyDirty=!1,this._parameterBits=this._parameterBits?this._parameterBits.map((()=>0)):[],this._parameterNames||(this._parameterNames=[])}get key(){return this._keyDirty&&(this._keyDirty=!1,this._key=String.fromCharCode.apply(String,this._parameterBits)),this._key}snapshot(){const e=this._parameterNames,t={key:this.key};for(const r of e)t[r]=this[r];return t}}function a(e={}){return(t,r)=>{if(t._parameterNames=t._parameterNames??[],t._parameterNames.push(r),null!=e.constValue)Object.defineProperty(t,r,{get:()=>e.constValue});else{const n=t._parameterNames.length-1,o=e.count||2,a=Math.ceil(Math.log2(o)),s=t._parameterBits??[0];let l=0;for(;s[l]+a>16;)l++,l>=s.length&&s.push(0);t._parameterBits=s;const c=s[l],d=(1<<a)-1<<c;s[l]+=a,Object.defineProperty(t,r,{get(){return this[n]},set(t){if(this[n]!==t)if(this[n]=t,this._keyDirty=!0,this._parameterBits[l]=this._parameterBits[l]&~d|+t<<c&d,"number"==typeof t){if(null==e.count)throw new i.A(`Configuration value for ${r} must provide a count option`)}else if("boolean"!=typeof t)throw new i.A(`Configuration value for ${r} must be boolean or number, got ${typeof t}`)}})}}}},69720:(e,t,r)=>{r.d(t,{J:()=>n});var i=r(24326);class n{constructor(){this.id=(0,i.c)()}}},96672:(e,t,r)=>{var i;r.d(t,{X:()=>i}),function(e){e[e.Layer=0]="Layer",e[e.Object=1]="Object",e[e.Mesh=2]="Mesh",e[e.Line=3]="Line",e[e.Point=4]="Point",e[e.Material=5]="Material",e[e.Texture=6]="Texture",e[e.COUNT=7]="COUNT"}(i||(i={}))},39341:(e,t,r)=>{r.d(t,{D:()=>n});var i=r(46540);const n=new Map([[i.r.POSITION,0],[i.r.NORMAL,1],[i.r.NORMALCOMPRESSED,1],[i.r.UV0,2],[i.r.COLOR,3],[i.r.COLORFEATUREATTRIBUTE,3],[i.r.SIZE,4],[i.r.TANGENT,4],[i.r.CENTEROFFSETANDDISTANCE,5],[i.r.SYMBOLCOLOR,5],[i.r.FEATUREATTRIBUTE,6],[i.r.INSTANCEFEATUREATTRIBUTE,6],[i.r.INSTANCECOLOR,7],[i.r.OBJECTANDLAYERIDCOLOR,7],[i.r.INSTANCEOBJECTANDLAYERIDCOLOR,7],[i.r.ROTATION,8],[i.r.INSTANCEMODEL,8],[i.r.INSTANCEMODELNORMAL,12],[i.r.INSTANCEMODELORIGINHI,11],[i.r.INSTANCEMODELORIGINLO,15]])},25634:(e,t,r)=>{r.d(t,{m8:()=>l});var i=r(97768),n=r(74887),o=r(2597),a=r(89192);class s{constructor(e){this._material=e.material,this._techniques=e.techniques,this._output=e.output}dispose(){this._techniques.release(this._technique)}get technique(){return this._technique}get _stippleTextures(){return this._techniques.constructionContext.stippleTextures}get _markerTextures(){return this._techniques.constructionContext.markerTextures}ensureTechnique(e,t){return this._technique=this._techniques.releaseAndAcquire(e,this._material.getConfiguration(this._output,t),this._technique),this._technique}ensureResources(e){return a.Am.LOADED}}class l extends s{constructor(e){super(e),this._numLoading=0,this._disposed=!1,this._textures=e.textures,this._textureId=e.textureId,this._acquire(e.textureId,(e=>this._texture=e)),this._acquire(e.normalTextureId,(e=>this._textureNormal=e)),this._acquire(e.emissiveTextureId,(e=>this._textureEmissive=e)),this._acquire(e.occlusionTextureId,(e=>this._textureOcclusion=e)),this._acquire(e.metallicRoughnessTextureId,(e=>this._textureMetallicRoughness=e))}dispose(){this._texture=(0,i.Gz)(this._texture),this._textureNormal=(0,i.Gz)(this._textureNormal),this._textureEmissive=(0,i.Gz)(this._textureEmissive),this._textureOcclusion=(0,i.Gz)(this._textureOcclusion),this._textureMetallicRoughness=(0,i.Gz)(this._textureMetallicRoughness),this._disposed=!0}ensureResources(e){return 0===this._numLoading?a.Am.LOADED:a.Am.LOADING}get textureBindParameters(){return new d(null!=this._texture?this._texture.glTexture:null,null!=this._textureNormal?this._textureNormal.glTexture:null,null!=this._textureEmissive?this._textureEmissive.glTexture:null,null!=this._textureOcclusion?this._textureOcclusion.glTexture:null,null!=this._textureMetallicRoughness?this._textureMetallicRoughness.glTexture:null)}updateTexture(e){null!=this._texture&&e===this._texture.id||(this._texture=(0,i.Gz)(this._texture),this._textureId=e,this._acquire(this._textureId,(e=>this._texture=e)))}_acquire(e,t){if(null==e)return void t(null);const r=this._textures.acquire(e);if((0,n.$X)(r))return++this._numLoading,void r.then((e=>{if(this._disposed)return(0,i.Gz)(e),void t(null);t(e)})).finally((()=>--this._numLoading));t(r)}}class c extends o.Y{constructor(e=null){super(),this.textureEmissive=e}}class d extends c{constructor(e=null,t=null,r=null,i=null,n=null,o,a){super(r),this.texture=e,this.textureNormal=t,this.textureOcclusion=i,this.textureMetallicRoughness=n,this.scale=o,this.normalTextureTransformMatrix=a}}},14903:(e,t,r)=>{r.d(t,{im:()=>h,m$:()=>i});var i,n,o=r(51850),a=r(2597),s=r(89192),l=r(69720),c=r(96672),d=r(39341),u=r(13752);class h extends l.J{constructor(e,t){super(),this.type=c.X.Material,this.supportsEdges=!1,this._renderPriority=0,this._vertexAttributeLocations=d.D,this._pp0=(0,o.fA)(0,0,1),this._pp1=(0,o.fA)(0,0,0),this._parameters=new t,(0,u.MB)(this._parameters,e),this.validateParameters(this._parameters)}get parameters(){return this._parameters}update(e){return!1}setParameters(e,t=!0){(0,u.MB)(this._parameters,e)&&(this.validateParameters(this._parameters),t&&this.parametersChanged())}validateParameters(e){}shouldRender(e){return this.visible&&this.isVisibleForOutput(e.output)&&(!this.parameters.isDecoration||e.bindParameters.decorations===s.ID.ON)&&!!(this.parameters.renderOccluded&e.renderOccludedMask)}isVisibleForOutput(e){return!0}get renderPriority(){return this._renderPriority}set renderPriority(e){e!==this._renderPriority&&(this._renderPriority=e,this.parametersChanged())}get vertexAttributeLocations(){return this._vertexAttributeLocations}parametersChanged(){this.repository?.materialChanged(this)}queryRenderOccludedState(e){return this.visible&&this.parameters.renderOccluded===e}get hasEmissions(){return!1}intersectDraped(e,t,r,i,n,o){return this._pp0[0]=this._pp1[0]=i[0],this._pp0[1]=this._pp1[1]=i[1],this.intersect(e,t,r,this._pp0,this._pp1,n)}}(n=i||(i={}))[n.None=0]="None",n[n.Occlude=1]="Occlude",n[n.Transparent=2]="Transparent",n[n.OccludeAndTransparent=4]="OccludeAndTransparent",n[n.OccludeAndTransparentStencil=8]="OccludeAndTransparentStencil",n[n.Opaque=16]="Opaque",a.Y},34886:(e,t,r)=>{r.d(t,{B:()=>o});var i=r(3694),n=r(94656);class o{constructor(e,t,r){this._context=e,this._locations=r,this._textures=new Map,this._freeTextureUnits=new i.A({deallocator:null}),this._glProgram=e.programCache.acquire(t.generate("vertex"),t.generate("fragment"),r),this._glProgram.stop=()=>{throw new Error("Wrapped _glProgram used directly")},this.bindPass=t.generateBindPass(this),this.bindDraw=t.generateBindDraw(this),this._fragmentUniforms=(0,n.en)()?t.fragmentUniforms:null}dispose(){this._glProgram.dispose()}get glName(){return this._glProgram.glName}get hasTransformFeedbackVaryings(){return this._glProgram.hasTransformFeedbackVaryings}get compiled(){return this._glProgram.compiled}setUniform1b(e,t){this._glProgram.setUniform1i(e,t?1:0)}setUniform1i(e,t){this._glProgram.setUniform1i(e,t)}setUniform1f(e,t){this._glProgram.setUniform1f(e,t)}setUniform2fv(e,t){this._glProgram.setUniform2fv(e,t)}setUniform3fv(e,t){this._glProgram.setUniform3fv(e,t)}setUniform4fv(e,t){this._glProgram.setUniform4fv(e,t)}setUniformMatrix3fv(e,t){this._glProgram.setUniformMatrix3fv(e,t)}setUniformMatrix4fv(e,t){this._glProgram.setUniformMatrix4fv(e,t)}setUniform1fv(e,t){this._glProgram.setUniform1fv(e,t)}setUniform1iv(e,t){this._glProgram.setUniform1iv(e,t)}setUniform2iv(e,t){this._glProgram.setUniform2iv(e,t)}setUniform3iv(e,t){this._glProgram.setUniform3iv(e,t)}setUniform4iv(e,t){this._glProgram.setUniform4iv(e,t)}assertCompatibleVertexAttributeLocations(e){e.locations!==this._locations&&console.error("VertexAttributeLocations are incompatible")}stop(){this._textures.clear(),this._freeTextureUnits.clear()}bindTexture(e,t){if(null==t?.glName){const t=this._textures.get(e);return t&&(this._context.bindTexture(null,t.unit),this._freeTextureUnit(t),this._textures.delete(e)),null}let r=this._textures.get(e);return null==r?(r=this._allocTextureUnit(t),this._textures.set(e,r)):r.texture=t,this._context.useProgram(this),this.setUniform1i(e,r.unit),this._context.bindTexture(t,r.unit),r.unit}rebindTextures(){this._context.useProgram(this),this._textures.forEach(((e,t)=>{this._context.bindTexture(e.texture,e.unit),this.setUniform1i(t,e.unit)})),this._fragmentUniforms?.forEach((e=>{"sampler2D"!==e.type&&"samplerCube"!==e.type||this._textures.has(e.name)||console.error(`Texture sampler ${e.name} has no bound texture`)}))}_allocTextureUnit(e){return{texture:e,unit:0===this._freeTextureUnits.length?this._textures.size:this._freeTextureUnits.pop()}}_freeTextureUnit(e){this._freeTextureUnits.push(e.unit)}}},14327:(e,t,r)=>{var i;r.d(t,{y:()=>i}),function(e){e[e.ColorAlpha=0]="ColorAlpha",e[e.FrontFace=1]="FrontFace",e[e.NONE=2]="NONE",e[e.COUNT=3]="COUNT"}(i||(i={}))},89192:(e,t,r)=>{var i,n,o,a,s,l,c,d,u;r.d(t,{Am:()=>a,C7:()=>o,ID:()=>d,JS:()=>u,Mg:()=>l,dd:()=>s,it:()=>n,s2:()=>i,sf:()=>c}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(i||(i={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(n||(n={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(o||(o={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(a||(a={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(s||(s={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee",e[e.COUNT=2]="COUNT"}(l||(l={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(c||(c={})),function(e){e[e.OFF=0]="OFF",e[e.ON=1]="ON"}(d||(d={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(u||(u={}))},61765:(e,t,r)=>{r.d(t,{T:()=>i});const i=2.1},13752:(e,t,r)=>{r.d(t,{Um:()=>Y,MB:()=>X,kE:()=>$});var i=r(4576),n=r(34727),o=(r(44208),r(53966)),a=r(4341),s=r(58083),l=r(9093),c=r(38954),d=r(51850),u=r(19419),h=r(88582),f=r(11964),m=r(240),p=r(71351),v=r(44280),g=r(32114);const _=()=>o.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function x(e=B){return{plane:(0,m.vt)(e.plane),origin:(0,d.o8)(e.origin),basis1:(0,d.o8)(e.basis1),basis2:(0,d.o8)(e.basis2)}}function T(e,t=x()){return b(e.origin,e.basis1,e.basis2,t)}function b(e,t,r,i=x()){return(0,c.c)(i.origin,e),(0,c.c)(i.basis1,t),(0,c.c)(i.basis2,r),A(i),function(e,t){Math.abs((0,c.m)(e.basis1,e.basis2)/((0,c.l)(e.basis1)*(0,c.l)(e.basis2)))>1e-6&&_().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,c.m)(e.basis1,N(e)))>1e-6&&_().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,c.m)(N(e),e.origin)-e.plane[3])>1e-6&&_().warn(t,"Plane offset is not consistent with plane origin")}(i,"fromValues()"),i}function A(e){(0,m.mR)(e.basis2,e.basis1,e.origin,e.plane)}function y(e,t,r){e!==r&&T(e,r);const i=(0,c.j)(g.rq.get(),N(e),t);return(0,c.g)(r.origin,r.origin,i),r.plane[3]-=t,r}function E(e,t=x()){const r=(e[2]-e[0])/2,i=(e[3]-e[1])/2;return(0,c.s)(t.origin,e[0]+r,e[1]+i,0),(0,c.s)(t.basis1,r,0,0),(0,c.s)(t.basis2,0,i,0),(0,m.fA)(0,0,1,0,t.plane),t}function S(e,t,r){return!!(0,m.Ui)(e.plane,t,r)&&P(e,r)}function w(e,t,r){const i=F.get();D(e,t,i,F.get());let o=Number.POSITIVE_INFINITY;for(const a of U){const s=H(e,a,z.get()),l=g.rq.get();if((0,m.T7)(i,s,l)){const e=(0,c.E)(g.rq.get(),t.origin,l),i=Math.abs((0,n.XM)((0,c.m)(t.direction,e)));i<o&&(o=i,(0,c.c)(r,l))}}return o===Number.POSITIVE_INFINITY?M(e,t,r):r}function M(e,t,r){if(S(e,t,r))return r;const i=F.get(),n=F.get();D(e,t,i,n);let o=Number.POSITIVE_INFINITY;for(const a of U){const s=H(e,a,z.get()),l=g.rq.get();if((0,m.gv)(i,s,l)){const e=(0,p.kb)(t,l);if(!(0,m.Tj)(n,l))continue;e<o&&(o=e,(0,c.c)(r,l))}}return I(e,t.origin)<o&&C(e,t.origin,r),r}function C(e,t,r){const i=(0,m._I)(e.plane,t,g.rq.get()),n=(0,f.H6)(L(e,e.basis1),i,-1,1,g.rq.get()),o=(0,f.H6)(L(e,e.basis2),i,-1,1,g.rq.get());return(0,c.f)(r,(0,c.g)(g.rq.get(),n,o),e.origin),r}function O(e,t,r){const{origin:i,basis1:n,basis2:o}=e,a=(0,c.f)(g.rq.get(),t,i),s=(0,v.gr)(n,a),l=(0,v.gr)(o,a),d=(0,v.gr)(N(e),a);return(0,c.s)(r,s,l,d)}function I(e,t){const r=O(e,t,g.rq.get()),{basis1:i,basis2:n}=e,o=(0,c.l)(i),a=(0,c.l)(n),s=Math.max(Math.abs(r[0])-o,0),l=Math.max(Math.abs(r[1])-a,0),d=r[2];return s*s+l*l+d*d}function R(e,t){const r=-e.plane[3];return(0,v.gr)(N(e),t)-r}function N(e){return(0,m.Qj)(e.plane)}function P(e,t){const r=(0,c.f)(g.rq.get(),t,e.origin),i=(0,c.q)(e.basis1),n=(0,c.q)(e.basis2),o=(0,c.m)(e.basis1,r),a=(0,c.m)(e.basis2,r);return-o-i<0&&o-i<0&&-a-n<0&&a-n<0}function L(e,t){const r=z.get();return(0,c.c)(r.origin,e.origin),(0,c.c)(r.vector,t),r}function H(e,t,r){const{basis1:i,basis2:n,origin:o}=e,a=(0,c.j)(g.rq.get(),i,t.origin[0]),s=(0,c.j)(g.rq.get(),n,t.origin[1]);(0,c.g)(r.origin,a,s),(0,c.g)(r.origin,r.origin,o);const l=(0,c.j)(g.rq.get(),i,t.direction[0]),d=(0,c.j)(g.rq.get(),n,t.direction[1]);return(0,c.j)(r.vector,(0,c.g)(l,l,d),2),r}function D(e,t,r,i){const n=N(e);(0,m.mR)(n,t.direction,t.origin,r),(0,m.mR)((0,m.Qj)(r),n,t.origin,i)}const B={plane:(0,m.vt)(),origin:(0,d.fA)(0,0,0),basis1:(0,d.fA)(1,0,0),basis2:(0,d.fA)(0,1,0)},F=new a.I(m.vt),z=new a.I(f.vt),V=(0,d.vt)(),G=new a.I((()=>x())),U=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],W=(0,l.vt)(),j=(0,l.vt)();Object.freeze(Object.defineProperty({__proto__:null,BoundedPlaneClass:class{constructor(){this.plane=(0,m.vt)(),this.origin=(0,d.vt)(),this.basis1=(0,d.vt)(),this.basis2=(0,d.vt)()}},altitudeAt:R,axisAt:function(e,t,r,i){return function(e,t,r){switch(t){case h._.X:(0,c.c)(r,e.basis1),(0,c.n)(r,r);break;case h._.Y:(0,c.c)(r,e.basis2),(0,c.n)(r,r);break;case h._.Z:(0,c.c)(r,N(e))}return r}(e,r,i)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:M,closestPointOnSilhouette:w,copy:T,copyWithoutVerify:function(e,t){(0,c.c)(t.origin,e.origin),(0,c.c)(t.basis1,e.basis1),(0,c.c)(t.basis2,e.basis2),(0,m.C)(t.plane,e.plane)},create:x,distance:function(e,t){return Math.sqrt(I(e,t))},distance2:I,distanceToSilhouette:function(e,t){let r=Number.NEGATIVE_INFINITY;for(const i of U){const n=H(e,i,z.get()),o=(0,f.kb)(n,t);o>r&&(r=o)}return Math.sqrt(r)},elevate:y,equals:function(e,t){return(0,c.e)(e.basis1,t.basis1)&&(0,c.e)(e.basis2,t.basis2)&&(0,c.e)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,m.Tj)(e.plane,t)&&P(e,t)},fromAABoundingRect:E,fromValues:b,getExtent:function(e,t){const r=e.basis1[0],i=e.basis2[1],[n,o]=e.origin;return(0,u.fA)(n-r,o-i,n+i,o+i,t)},intersectRay:S,intersectRayClosestSilhouette:function(e,t,r){if(S(e,t,r))return r;const i=w(e,t,g.rq.get());return(0,c.g)(r,t.origin,(0,c.j)(g.rq.get(),t.direction,(0,c.p)(t.origin,i)/(0,c.l)(t.direction))),r},normal:N,projectPoint:C,projectPointLocal:O,rotate:function(e,t,r,i){return e!==i&&T(e,i),(0,s.$0)(j,t,r),(0,c.h)(i.basis1,e.basis1,j),(0,c.h)(i.basis2,e.basis2,j),A(i),i},setAltitudeAt:function(e,t,r,i){const n=R(e,t),o=(0,c.j)(V,N(e),r-n);return(0,c.g)(i,t,o),i},setExtent:function(e,t,r){return E(t,r),y(r,R(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&T(e,r),(0,s.B8)(W,t),(0,s.mg)(W,W),(0,c.h)(r.basis1,e.basis1,W),(0,c.h)(r.basis2,e.basis2,W),(0,c.h)((0,m.Qj)(r.plane),(0,m.Qj)(e.plane),W),(0,c.h)(r.origin,e.origin,t),(0,m.mP)(r.plane,r.plane,r.origin),r},up:B,updateUnboundedPlane:A,wrap:function(e,t,r){const i=G.get();return i.origin=e,i.basis1=t,i.basis2=r,i.plane=(0,m.LV)(0,0,0,0),A(i),i}},Symbol.toStringTag,{value:"Module"}));var q=r(76412);r(24151),(0,n.kU)(10),(0,n.kU)(12),(0,n.kU)(70),(0,n.kU)(40);const k={scale:0,factor:0,minScaleFactor:0};function $(e,t,r,i,o){let a=(r.screenLength||0)*e.pixelRatio;null!=o&&(a=function(e,t,r,i){return function(e,t){return(0,n.Cc)(e*Math.max(t.scale,t.minScaleFactor),e,t.factor)}(e,function(e,t,r){const i=r.parameters;return k.scale=Math.min(i.divisor/(t-i.offset),1),k.factor=function(e){return Math.abs(e*e*e)}(e),k}(t,r,i))}(a,i,t,o));const s=a*Math.tan(.5*e.fovY)/(.5*e.fullHeight);return(0,n.qE)(s*t,r.minWorldLength||0,null!=r.maxWorldLength?r.maxWorldLength:1/0)}function X(e,t){let r=!1;for(const n in t){const o=t[n];void 0!==o&&(Array.isArray(o)?Array.isArray(e[n])&&(0,i.aI)(o,e[n])||(e[n]=o.slice(),r=!0):e[n]!==o&&(r=!0,e[n]=o))}return r}(0,q.c)();const Y={multiply:1,ignore:2,replace:3,tint:4}},60517:(e,t,r)=>{r.d(t,{z:()=>d});var i=r(49255),n=r(22911),o=r(76662),a=r(35093),s=r(63365),l=r(2597),c=r(14327);function d(e,t){e.include(o.Q,t),e.include(n.NL,t),e.fragment.include(s.a);const r=t.output===i.V.ObjectAndLayerIdColor,d=t.output===i.V.ColorEmission,u=(t.output===i.V.Color||d)&&t.transparencyPassType===c.y.ColorAlpha,h=(t.output===i.V.Color||d)&&t.transparencyPassType!==c.y.ColorAlpha,f=t.discardInvisibleFragments;let m=0;(h||d||u)&&e.outputs.add("fragColor","vec4",m++),d&&e.outputs.add("fragEmission","vec4",m++),u&&e.outputs.add("fragAlpha","float",m++),e.fragment.code.add(l.H`
|
|
1015
1015
|
void outputColorHighlightOID(vec4 finalColor, const in vec3 vWorldPosition) {
|
|
1016
1016
|
${(0,l.If)(r,l.H`finalColor.a = 1.0;`)}
|
|
1017
1017
|
|