@arcgis/core 4.29.0-next.20240221 → 4.29.0
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0bc21d2a0b65bd4e9d76.js +1 -0
- package/assets/esri/core/workers/chunks/{6e50220f8e2d392e2855.js → 5b275309d78453a9319e.js} +1 -1
- package/assets/esri/core/workers/chunks/{6fd8047741a0df006ddd.js → 69f6558b538d1b2d3086.js} +1 -1
- package/assets/esri/core/workers/chunks/{63c2ca47e8df5e9b5574.js → 87fb028c66de06bf6d75.js} +1 -1
- package/assets/esri/core/workers/chunks/9307d485a9e5f9fa77d1.js +1 -0
- package/assets/esri/core/workers/chunks/{958402a4f6dd0d23546d.js → a4c3da057ec2a07bbbe8.js} +1 -1
- package/assets/esri/core/workers/chunks/{48c6a9ed53cf4f9255b0.js → b454c6b992bcdbab36a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{e7b26c7e9e24dc6255be.js → cacf97b0a7a1057b9f79.js} +1 -1
- package/config.js +1 -1
- package/copyright.txt +56 -28
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/interfaces.d.ts +8 -8
- package/kernel.js +1 -1
- package/layers/orientedImagery/core/CameraOrientation.js +1 -1
- package/layers/orientedImagery/core/ElevationSourceDefinitions.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +5 -0
- package/layers/orientedImagery/transformations/updateElevation.js +5 -0
- package/layers/orientedImagery/transformations/updateElevationUtils.js +5 -0
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/orientedImagery/transformations/worldToImage.js +5 -0
- package/layers/support/EditingCapabilities.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/editableLayers.js +1 -1
- package/package.json +1 -1
- package/rest/print.js +1 -1
- package/smartMapping/renderers/pieChart.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/layers/support/editableLayerViews.js +5 -0
- package/views/webgl/testDoublePrecisionArithmetic.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/support/EditorEditingCapabilities.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/assets/esri/core/workers/chunks/25f73748df0ee82d06cb.js +0 -1
- package/assets/esri/core/workers/chunks/2d7a18f8c540269ecee9.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7024],{25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,o=r(41948),n=r(40504),s=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),p=r(12552),c=r(18996),u=r(28484);let d=i=class extends n.am{static get allTime(){return y}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,o=e.end?.getTime()??e.end;return t===i&&r===o}expandTo(e,t=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.aU)(r,e,t));let o=this.end;if(o){const r=(0,s.aU)(o,e,t);o=o.getTime()===r.getTime()?r:(0,s.g1)(r,1,e,t)}return new i({start:r,end:o})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let s,a;if(o>=t&&o<=r?s=o:t>=o&&t<=n&&(s=t),r>=o&&r<=n?a=r:n>=t&&n<=r&&(a=n),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const e=new i;return e.start=s===-1/0?null:new Date(s),e.end=a===1/0?null:new Date(a),e}return i.empty}offset(e,t,r=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();const o=new i,{start:n,end:a}=this;return null!=n&&(o.start=(0,s.g1)(n,e,t,r)),null!=a&&(o.end=(0,s.g1)(a,e,t,r)),o}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,o._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,o._)([(0,l.E)("end")],d.prototype,"readEnd",null),(0,o._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,o._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,o._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,o._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,o._)([(0,l.E)("start")],d.prototype,"readStart",null),(0,o._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=i=(0,o._)([(0,p.c)("esri.TimeExtent")],d);const y=new d,h=new d({start:void 0,end:void 0}),m=d},22156:(e,t,r)=>{r.d(t,{MR:()=>s,qm:()=>a});var i=r(41948),o=r(12552);let n=0;const s=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,o.c)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,o.c)("esri.core.NumericIdentifiable")],t),t};let l=class extends(s(class{})){};l=(0,i._)([(0,o.c)("esri.core.Identifiable")],l)},77380:(e,t,r)=>{r.d(t,{I:()=>m,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},o=8,n=(1<<o)-1;function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*o;r<i;r+=o)t[r>>5]|=(e.charCodeAt(r/o)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=o)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function p(e,t,r,i,o,n){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,n)),o),r)}function c(e,t,r,i,o,n,s){return p(t&r|~t&i,e,t,o,n,s)}function u(e,t,r,i,o,n,s){return p(t&i|r&~i,e,t,o,n,s)}function d(e,t,r,i,o,n,s){return p(t^r^i,e,t,o,n,s)}function y(e,t,r,i,o,n,s){return p(r^(t|~i),e,t,o,n,s)}function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,o=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,p=o,h=n;r=c(r,i,o,n,e[t],7,-680876936),n=c(n,r,i,o,e[t+1],12,-389564586),o=c(o,n,r,i,e[t+2],17,606105819),i=c(i,o,n,r,e[t+3],22,-1044525330),r=c(r,i,o,n,e[t+4],7,-176418897),n=c(n,r,i,o,e[t+5],12,1200080426),o=c(o,n,r,i,e[t+6],17,-1473231341),i=c(i,o,n,r,e[t+7],22,-45705983),r=c(r,i,o,n,e[t+8],7,1770035416),n=c(n,r,i,o,e[t+9],12,-1958414417),o=c(o,n,r,i,e[t+10],17,-42063),i=c(i,o,n,r,e[t+11],22,-1990404162),r=c(r,i,o,n,e[t+12],7,1804603682),n=c(n,r,i,o,e[t+13],12,-40341101),o=c(o,n,r,i,e[t+14],17,-1502002290),i=c(i,o,n,r,e[t+15],22,1236535329),r=u(r,i,o,n,e[t+1],5,-165796510),n=u(n,r,i,o,e[t+6],9,-1069501632),o=u(o,n,r,i,e[t+11],14,643717713),i=u(i,o,n,r,e[t],20,-373897302),r=u(r,i,o,n,e[t+5],5,-701558691),n=u(n,r,i,o,e[t+10],9,38016083),o=u(o,n,r,i,e[t+15],14,-660478335),i=u(i,o,n,r,e[t+4],20,-405537848),r=u(r,i,o,n,e[t+9],5,568446438),n=u(n,r,i,o,e[t+14],9,-1019803690),o=u(o,n,r,i,e[t+3],14,-187363961),i=u(i,o,n,r,e[t+8],20,1163531501),r=u(r,i,o,n,e[t+13],5,-1444681467),n=u(n,r,i,o,e[t+2],9,-51403784),o=u(o,n,r,i,e[t+7],14,1735328473),i=u(i,o,n,r,e[t+12],20,-1926607734),r=d(r,i,o,n,e[t+5],4,-378558),n=d(n,r,i,o,e[t+8],11,-2022574463),o=d(o,n,r,i,e[t+11],16,1839030562),i=d(i,o,n,r,e[t+14],23,-35309556),r=d(r,i,o,n,e[t+1],4,-1530992060),n=d(n,r,i,o,e[t+4],11,1272893353),o=d(o,n,r,i,e[t+7],16,-155497632),i=d(i,o,n,r,e[t+10],23,-1094730640),r=d(r,i,o,n,e[t+13],4,681279174),n=d(n,r,i,o,e[t],11,-358537222),o=d(o,n,r,i,e[t+3],16,-722521979),i=d(i,o,n,r,e[t+6],23,76029189),r=d(r,i,o,n,e[t+9],4,-640364487),n=d(n,r,i,o,e[t+12],11,-421815835),o=d(o,n,r,i,e[t+15],16,530742520),i=d(i,o,n,r,e[t+2],23,-995338651),r=y(r,i,o,n,e[t],6,-198630844),n=y(n,r,i,o,e[t+7],10,1126891415),o=y(o,n,r,i,e[t+14],15,-1416354905),i=y(i,o,n,r,e[t+5],21,-57434055),r=y(r,i,o,n,e[t+12],6,1700485571),n=y(n,r,i,o,e[t+3],10,-1894986606),o=y(o,n,r,i,e[t+10],15,-1051523),i=y(i,o,n,r,e[t+1],21,-2054922799),r=y(r,i,o,n,e[t+8],6,1873313359),n=y(n,r,i,o,e[t+15],10,-30611744),o=y(o,n,r,i,e[t+6],15,-1560198380),i=y(i,o,n,r,e[t+13],21,1309151649),r=y(r,i,o,n,e[t+4],6,-145523070),n=y(n,r,i,o,e[t+11],10,-1120210379),o=y(o,n,r,i,e[t+2],15,718787259),i=y(i,o,n,r,e[t+9],21,-343485551),r=s(r,a),i=s(i,l),o=s(o,p),n=s(n,h)}return[r,i,o,n]}function m(e,t=i.Hex){const r=t||i.Base64,n=h(a(e),e.length*o);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,o=4*e.length;i<o;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let o=0;o<4;o++)8*r+6*o>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-o)&63))}return t.join("")}(n)}}},90636:(e,t,r)=>{r.d(t,{O:()=>y});var i=r(20744),o=r(77380),n=r(4644),s=r(28176),a=r(63564),l=r(44296),p=r(71448),c=r(1580),u=r(73960),d=r(91952);function y(e){const t=e?.origins??[void 0];return(r,i)=>{const o=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.EF)(t,r);return{type:String,read:(e,t,r)=>{const o=(0,d.r)(e,t,r);return i.type===String?o:"function"==typeof i.type?new i.type({url:o}):void 0},write:{writer(t,o,a,l){if(!l?.resources)return"string"==typeof t?void(o[a]=(0,d.t)(t,l)):void(o[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),y=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=i.type!==String&&(!(0,n.w)(this)||l?.origin&&this.originIdOf(r)>(0,p.CQ)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:y,dest:o,targetPropertyName:a,context:l,params:e};l?.portalItem&&y&&!(0,s.ic)(y)?g&&e?.contentAddressed?h(v):g?function(e){const{context:t,targetUrl:r,params:i,value:o,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),p=f(o,r,t),c=(0,u.e)(p),d=(0,s.wt)(l.path),y=i?.compress??!1;c===d?(t.resources&&m({...e,resource:l,content:p,compress:y,updates:t.resources.toUpdate}),n[a]=r):h(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==y||null!=(0,d.i)(y)||(0,s.ue)(y)||g)?h(v):o[a]=y}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,c.aq)(r,e,i);for(const e in o)t[e]=o[e]}}}function h(e){const{targetUrl:t,params:r,value:n,context:l,dest:p,targetPropertyName:c}=e;if(!l.portalItem)return;const y=(0,d.p)(t),h=f(n,t,l);if(r?.contentAddressed&&"json"!==h.type)return void l.messages?.push(new i.c("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${h.type} with content addressing. Content addressing is only supported for json resources.`,{content:h}));const g=r?.contentAddressed&&"json"===h.type?(0,o.I)(h.jsonString):y?.filename??(0,a.g1)(),v=(0,s.kn)(r?.prefix??y?.prefix,g),q=`${v}.${(0,u.e)(h)}`;if(r?.contentAddressed&&l.resources&&"json"===h.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===q))??l.resources.toAdd.find((({resource:e})=>e.path===q));if(e)return void(p[c]=e.resource.itemRelativeUrl)}const _=l.portalItem.resourceFromPath(q);(0,s.ue)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.SW)(t).then((e=>{_.path=`${v}.${(0,u.e)({type:"blob",blob:e})}`,p[c]=_.itemRelativeUrl})).catch((()=>{})));const w=r?.compress??!1;l.resources&&m({...e,resource:_,content:h,compress:w,updates:l.resources.toAdd}),p[c]=_.itemRelativeUrl}function m({object:e,propertyName:t,updates:r,resource:i,content:o,compress:n}){r.push({resource:i,content:o,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function f(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},57896:(e,t,r)=>{r.d(t,{Eq:()=>d,KG:()=>g,_8:()=>f,_I:()=>p,aE:()=>l,du:()=>m,on:()=>u}),r(40196),r(2952);var i=r(60976),o=r(38912),n=r(70680),s=r(10860),a=r(37176);function l(e,t,r={}){return c(e,t,r,y)}function p(e,t,r={}){return c(e,t,r,h)}function c(e,t,r={},i){let o=null;const s=r.once?(e,r)=>{i(e)&&((0,n.oR)(o),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(o=(0,a.M9)(e,s,r.sync,r.equals),r.initial){const t=e();s(t,t)}return o}function u(e,t,r,s={}){let a=null,p=null,c=null;function u(){a&&p&&(p.remove(),s.onListenerRemove?.(a),a=null,p=null)}function d(e){s.once&&s.once&&(0,n.oR)(c),r(e)}const y=l(e,((e,r)=>{u(),(0,i.sh)(e)&&(a=e,p=(0,i.on)(e,t,d),s.onListenerAdd?.(e))}),{sync:s.sync,initial:!0});return c=(0,o.uU)((()=>{y.remove(),u()})),c}function d(e,t){return function(e,t,r){if((0,s.wv)(r))return Promise.reject((0,s.Uh)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,n.oR)(a)}return new Promise(((i,n)=>{a=(0,o.Ip)([(0,s.wD)(r,(()=>{l(),n((0,s.Uh)())})),c(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??y)])}))}(e,h,t)}function y(e){return!0}function h(e){return!!e}r(41168);const m={sync:!0},f={initial:!0},g={sync:!0,initial:!0}},63564:(e,t,r)=>{r.d(t,{Mr:()=>s,cf:()=>n,g1:()=>o});const i="randomUUID"in crypto;function o(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>q});var i,o=r(41948),n=r(92400),s=r(14628),a=r(40504),l=r(24296),p=r(69504),c=r(1580),u=(r(9456),r(66360),r(33600)),d=r(12552),y=r(18996);const h=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.sH)(m,"orthometric");const f=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new p.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.oG)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new p.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,c.qq)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,o._)([(0,y.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,o._)([(0,u.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,o._)([(0,c.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,o._)([(0,u.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,o._)([(0,u.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,o._)([(0,c.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,o._)([(0,u.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,o._)([(0,d.c)("esri.geometry.HeightModelInfo")],g);const q=g},96584:(e,t,r)=>{r.r(t),r.d(t,{default:()=>G});var i,o=r(41948),n=r(20744),s=r(66360),a=r(26496),l=r(10860),p=r(57896),c=r(1580),u=(r(9456),r(72052),r(33600)),d=r(12552),y=r(90636),h=r(81436),m=r(38724),f=r(16660),g=r(28584),v=r(66576),q=r(98768),_=r(3116),w=r(87072),b=r(21488),S=r(44104),I=r(2600),x=r(2952),U=r(40504),T=r(28176),E=(r(60708),r(62088)),P=r(69504),R=r(18996),M=r(60074),j=r(7488);let N=i=class extends U.am{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,i){if(i.layer?.spatialReference&&!i.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,M.canProjectWithoutEngine)(e.spatialReference,i.layer.spatialReference))return void(i?.messages&&i.messages.push(new P.c("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:i.layer.spatialReference,context:i})));const o=new j.c;(0,M.projectPolygon)(e,o,i.layer.spatialReference),t[r]=o.toJSON(i)}else t[r]=e.toJSON(i);delete t[r].spatialReference}clone(){return new i({geometry:(0,E.ct)(this.geometry),type:this.type})}};(0,o._)([(0,c.qq)({type:j.c}),(0,y.O)()],N.prototype,"geometry",void 0),(0,o._)([(0,R.G)(["web-scene","portal-item"],"geometry")],N.prototype,"writeGeometry",null),(0,o._)([(0,c.qq)({type:["clip","mask","replace"],nonNullable:!0}),(0,y.O)()],N.prototype,"type",void 0),N=i=(0,o._)([(0,d.c)("esri.layers.support.SceneModification")],N);const O=N;var C;let A=C=class extends((0,U.Ib)(x.c.ofType(O))){constructor(e){super(e),this.url=null}clone(){return new C({url:this.url,items:this.items.map((e=>e.clone()))})}toJSON(e){return this.toArray().map((t=>t.toJSON(e))).filter((e=>!!e.geometry))}static fromJSON(e,t){const r=new C;for(const i of e)r.add(O.fromJSON(i,t));return r}static async fromUrl(e,t,r){const i={url:(0,T.as)(e),origin:"service"},o=await(0,I.c)(e,{responseType:"json",signal:r?.signal}),n=t.toJSON(),s=[];for(const e of o.data)s.push(O.fromJSON({...e,geometry:{...e.geometry,spatialReference:n}},i));return new C({url:e,items:s})}};(0,o._)([(0,c.qq)({type:String})],A.prototype,"url",void 0),A=C=(0,o._)([(0,d.c)("esri.layers.support.SceneModifications")],A);const D=A;var k=r(69204),L=r(91952);let F=class extends((0,w.G6)((0,f.u)((0,v.Y)((0,q.K)((0,_.I)((0,a.U)((0,g.G)((0,m.C)(h.c))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null}initialize(){this.addHandles((0,p.on)((()=>this.modifications),"after-changes",(()=>this.modifications=this.modifications),p.du))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,L.f)(e,r),context:r}}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,l.CE)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await D.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then((()=>{}),(()=>{}))}async saveAs(e,t){return this._debouncedSaveOperations(w.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(w.UJ.SAVE,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new n.c("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new n.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new n.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(){const e=this.elevationInfo,t="Integrated mesh layers";(0,k.A$)(s.c.getLogger(this),(0,k.Ez)(t,"absolute-height",e)),(0,k.A$)(s.c.getLogger(this),(0,k.W8)(t,e))}};(0,o._)([(0,c.qq)({type:String,readOnly:!0})],F.prototype,"geometryType",void 0),(0,o._)([(0,c.qq)({type:["show","hide"]})],F.prototype,"listMode",void 0),(0,o._)([(0,c.qq)({type:["IntegratedMeshLayer"]})],F.prototype,"operationalLayerType",void 0),(0,o._)([(0,c.qq)({json:{read:!1},readOnly:!0})],F.prototype,"type",void 0),(0,o._)([(0,c.qq)({type:S.yq,readOnly:!0})],F.prototype,"nodePages",void 0),(0,o._)([(0,c.qq)({type:[S.a],readOnly:!0})],F.prototype,"materialDefinitions",void 0),(0,o._)([(0,c.qq)({type:[S.G4],readOnly:!0})],F.prototype,"textureSetDefinitions",void 0),(0,o._)([(0,c.qq)({type:[S.iK],readOnly:!0})],F.prototype,"geometryDefinitions",void 0),(0,o._)([(0,c.qq)({readOnly:!0})],F.prototype,"serviceUpdateTimeStamp",void 0),(0,o._)([(0,c.qq)({type:D}),(0,y.O)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],F.prototype,"modifications",void 0),(0,o._)([(0,u.E)(["web-scene","portal-item"],"modifications")],F.prototype,"readModifications",null),(0,o._)([(0,c.qq)(b.Kg)],F.prototype,"elevationInfo",null),(0,o._)([(0,c.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],F.prototype,"path",void 0),F=(0,o._)([(0,d.c)("esri.layers.IntegratedMeshLayer")],F);const G=F},81436:(e,t,r)=>{r.d(t,{c:()=>q});var i=r(41948),o=(r(60708),r(2600)),n=r(20744),s=r(77860),a=r(22156),l=r(95800),p=r(66360),c=r(10860),u=r(28176),d=r(1580),y=(r(9456),r(72052),r(12552)),h=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(s.c.EventedMixin((0,a.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",o=r&&r.portal&&r.portal.url||h.default.portalUrl;throw p.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.mA)(e)||p.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,u.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.qq)()],v.prototype,"url",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.c)("esri.layers.Layer")],v);const q=v},28584:(e,t,r)=>{r.d(t,{G:()=>s});var i=r(41948),o=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,o.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>b});var i=r(41948),o=r(6220),n=r(47620),s=r(2600),a=r(40196),l=r(20744),p=r(66360),c=r(70680),u=r(10860),d=r(28176),y=r(1580),h=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),q=r(9764),_=r(53039),w=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new q.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,u.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,u.mA)(e)||p.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.CE)(e),!0))))}async setUserPrivileges(e,t){if(!o.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,u.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,w.CI)(r);let o,s;if(i)o=r.portal.url;else try{o=await(0,g.mK)(this.url,t)}catch(e){(0,u.CE)(e)}if(!o||!(0,d.Cs)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,u.CE)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new q.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return(0,w.CI)(r)}catch(e){(0,u.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,u.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,o=v.c.getDefault();if(o&&o.loaded&&(0,d.k7)(o.restUrl)===(0,d.k7)(i))return o.user;const l=`${i}/community/self`,p=null!=e?e.signal:null,c=await(0,a.aG)((0,s.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:p}));return c.ok?_.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,d.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.qq)({type:q.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>s});var i=r(41948),o=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,o.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},44104:(e,t,r)=>{r.d(t,{G4:()=>y,a:()=>u,iK:()=>g,yq:()=>l});var i=r(41948),o=r(40504),n=r(1580),s=(r(9456),r(66360),r(72052),r(9968)),a=r(12552);let l=class extends o.am{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,i._)([(0,n.qq)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,i._)([(0,n.qq)({type:Number})],l.prototype,"rootIndex",void 0),(0,i._)([(0,n.qq)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,i._)([(0,a.c)("esri.layer.support.I3SNodePageDefinition")],l);let p=class extends o.am{constructor(){super(...arguments),this.factor=1}};(0,i._)([(0,n.qq)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],p.prototype,"id",void 0),(0,i._)([(0,n.qq)({type:Number})],p.prototype,"factor",void 0),p=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialTexture")],p);let c=class extends o.am{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,i._)([(0,n.qq)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,i._)([(0,n.qq)({type:p})],c.prototype,"baseColorTexture",void 0),(0,i._)([(0,n.qq)({type:p})],c.prototype,"metallicRoughnessTexture",void 0),(0,i._)([(0,n.qq)({type:Number})],c.prototype,"metallicFactor",void 0),(0,i._)([(0,n.qq)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let u=class extends o.am{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,i._)([(0,s.G)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,i._)([(0,n.qq)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,i._)([(0,n.qq)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,i._)([(0,s.G)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"normalTexture",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"occlusionTexture",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"emissiveTexture",void 0),(0,i._)([(0,n.qq)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,i._)([(0,n.qq)({type:c})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialDefinition")],u);let d=class extends o.am{};(0,i._)([(0,n.qq)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,i._)([(0,s.G)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,i._)([(0,a.c)("esri.layer.support.I3STextureFormat")],d);let y=class extends o.am{constructor(){super(...arguments),this.atlas=!1}};(0,i._)([(0,n.qq)({type:[d]})],y.prototype,"formats",void 0),(0,i._)([(0,n.qq)({type:Boolean})],y.prototype,"atlas",void 0),y=(0,i._)([(0,a.c)("esri.layer.support.I3STextureSetDefinition")],y);let h=class extends o.am{};(0,i._)([(0,s.G)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,i._)([(0,n.qq)({type:Number})],h.prototype,"component",void 0),h=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryAttribute")],h);let m=class extends o.am{};(0,i._)([(0,s.G)({draco:"draco"})],m.prototype,"encoding",void 0),(0,i._)([(0,n.qq)({type:[String]})],m.prototype,"attributes",void 0),m=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryCompressedAttributes")],m);let f=class extends o.am{constructor(){super(...arguments),this.offset=0}};(0,i._)([(0,n.qq)({type:Number})],f.prototype,"offset",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"position",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"normal",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"uv0",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"color",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"uvRegion",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"featureId",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"faceRange",void 0),(0,i._)([(0,n.qq)({type:m})],f.prototype,"compressedAttributes",void 0),f=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryBuffer")],f);let g=class extends o.am{};(0,i._)([(0,s.G)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,i._)([(0,n.qq)()],g.prototype,"geometryBuffers",void 0),g=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryDefinition")],g)},73960:(e,t,r)=>{r.d(t,{e:()=>o});var i=r(28176);function o(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.wt)(e);return l[t]||s}(e.url)}(e)]||a}const n={},s="text/plain",a=n[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},69204:(e,t,r)=>{function i(e,t){return t?.mode?t.mode:function(e){return e?p:c}(e).mode}function o(e,t){return i(null!=e&&e.hasZ,t)}function n(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function s(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function a(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>l,Ez:()=>n,W8:()=>a,ay:()=>s,m6:()=>o}),r(35764);const p={mode:"absolute-height",offset:0},c={mode:"on-the-ground",offset:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7024],{25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,o=r(41948),n=r(40504),s=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),p=r(12552),c=r(18996),u=r(28484);let d=i=class extends n.am{static get allTime(){return y}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,o=e.end?.getTime()??e.end;return t===i&&r===o}expandTo(e,t=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.aU)(r,e,t));let o=this.end;if(o){const r=(0,s.aU)(o,e,t);o=o.getTime()===r.getTime()?r:(0,s.g1)(r,1,e,t)}return new i({start:r,end:o})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let s,a;if(o>=t&&o<=r?s=o:t>=o&&t<=n&&(s=t),r>=o&&r<=n?a=r:n>=t&&n<=r&&(a=n),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const e=new i;return e.start=s===-1/0?null:new Date(s),e.end=a===1/0?null:new Date(a),e}return i.empty}offset(e,t,r=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();const o=new i,{start:n,end:a}=this;return null!=n&&(o.start=(0,s.g1)(n,e,t,r)),null!=a&&(o.end=(0,s.g1)(a,e,t,r)),o}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,o._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,o._)([(0,l.E)("end")],d.prototype,"readEnd",null),(0,o._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,o._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,o._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,o._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,o._)([(0,l.E)("start")],d.prototype,"readStart",null),(0,o._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=i=(0,o._)([(0,p.c)("esri.TimeExtent")],d);const y=new d,h=new d({start:void 0,end:void 0}),m=d},22156:(e,t,r)=>{r.d(t,{MR:()=>s,qm:()=>a});var i=r(41948),o=r(12552);let n=0;const s=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,o.c)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,o.c)("esri.core.NumericIdentifiable")],t),t};let l=class extends(s(class{})){};l=(0,i._)([(0,o.c)("esri.core.Identifiable")],l)},77380:(e,t,r)=>{r.d(t,{I:()=>m,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},o=8,n=(1<<o)-1;function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*o;r<i;r+=o)t[r>>5]|=(e.charCodeAt(r/o)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=o)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function p(e,t,r,i,o,n){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,n)),o),r)}function c(e,t,r,i,o,n,s){return p(t&r|~t&i,e,t,o,n,s)}function u(e,t,r,i,o,n,s){return p(t&i|r&~i,e,t,o,n,s)}function d(e,t,r,i,o,n,s){return p(t^r^i,e,t,o,n,s)}function y(e,t,r,i,o,n,s){return p(r^(t|~i),e,t,o,n,s)}function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,o=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,p=o,h=n;r=c(r,i,o,n,e[t],7,-680876936),n=c(n,r,i,o,e[t+1],12,-389564586),o=c(o,n,r,i,e[t+2],17,606105819),i=c(i,o,n,r,e[t+3],22,-1044525330),r=c(r,i,o,n,e[t+4],7,-176418897),n=c(n,r,i,o,e[t+5],12,1200080426),o=c(o,n,r,i,e[t+6],17,-1473231341),i=c(i,o,n,r,e[t+7],22,-45705983),r=c(r,i,o,n,e[t+8],7,1770035416),n=c(n,r,i,o,e[t+9],12,-1958414417),o=c(o,n,r,i,e[t+10],17,-42063),i=c(i,o,n,r,e[t+11],22,-1990404162),r=c(r,i,o,n,e[t+12],7,1804603682),n=c(n,r,i,o,e[t+13],12,-40341101),o=c(o,n,r,i,e[t+14],17,-1502002290),i=c(i,o,n,r,e[t+15],22,1236535329),r=u(r,i,o,n,e[t+1],5,-165796510),n=u(n,r,i,o,e[t+6],9,-1069501632),o=u(o,n,r,i,e[t+11],14,643717713),i=u(i,o,n,r,e[t],20,-373897302),r=u(r,i,o,n,e[t+5],5,-701558691),n=u(n,r,i,o,e[t+10],9,38016083),o=u(o,n,r,i,e[t+15],14,-660478335),i=u(i,o,n,r,e[t+4],20,-405537848),r=u(r,i,o,n,e[t+9],5,568446438),n=u(n,r,i,o,e[t+14],9,-1019803690),o=u(o,n,r,i,e[t+3],14,-187363961),i=u(i,o,n,r,e[t+8],20,1163531501),r=u(r,i,o,n,e[t+13],5,-1444681467),n=u(n,r,i,o,e[t+2],9,-51403784),o=u(o,n,r,i,e[t+7],14,1735328473),i=u(i,o,n,r,e[t+12],20,-1926607734),r=d(r,i,o,n,e[t+5],4,-378558),n=d(n,r,i,o,e[t+8],11,-2022574463),o=d(o,n,r,i,e[t+11],16,1839030562),i=d(i,o,n,r,e[t+14],23,-35309556),r=d(r,i,o,n,e[t+1],4,-1530992060),n=d(n,r,i,o,e[t+4],11,1272893353),o=d(o,n,r,i,e[t+7],16,-155497632),i=d(i,o,n,r,e[t+10],23,-1094730640),r=d(r,i,o,n,e[t+13],4,681279174),n=d(n,r,i,o,e[t],11,-358537222),o=d(o,n,r,i,e[t+3],16,-722521979),i=d(i,o,n,r,e[t+6],23,76029189),r=d(r,i,o,n,e[t+9],4,-640364487),n=d(n,r,i,o,e[t+12],11,-421815835),o=d(o,n,r,i,e[t+15],16,530742520),i=d(i,o,n,r,e[t+2],23,-995338651),r=y(r,i,o,n,e[t],6,-198630844),n=y(n,r,i,o,e[t+7],10,1126891415),o=y(o,n,r,i,e[t+14],15,-1416354905),i=y(i,o,n,r,e[t+5],21,-57434055),r=y(r,i,o,n,e[t+12],6,1700485571),n=y(n,r,i,o,e[t+3],10,-1894986606),o=y(o,n,r,i,e[t+10],15,-1051523),i=y(i,o,n,r,e[t+1],21,-2054922799),r=y(r,i,o,n,e[t+8],6,1873313359),n=y(n,r,i,o,e[t+15],10,-30611744),o=y(o,n,r,i,e[t+6],15,-1560198380),i=y(i,o,n,r,e[t+13],21,1309151649),r=y(r,i,o,n,e[t+4],6,-145523070),n=y(n,r,i,o,e[t+11],10,-1120210379),o=y(o,n,r,i,e[t+2],15,718787259),i=y(i,o,n,r,e[t+9],21,-343485551),r=s(r,a),i=s(i,l),o=s(o,p),n=s(n,h)}return[r,i,o,n]}function m(e,t=i.Hex){const r=t||i.Base64,n=h(a(e),e.length*o);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,o=4*e.length;i<o;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let o=0;o<4;o++)8*r+6*o>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-o)&63))}return t.join("")}(n)}}},90636:(e,t,r)=>{r.d(t,{O:()=>y});var i=r(20744),o=r(77380),n=r(4644),s=r(28176),a=r(63564),l=r(44296),p=r(71448),c=r(1580),u=r(73960),d=r(91952);function y(e){const t=e?.origins??[void 0];return(r,i)=>{const o=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.EF)(t,r);return{type:String,read:(e,t,r)=>{const o=(0,d.r)(e,t,r);return i.type===String?o:"function"==typeof i.type?new i.type({url:o}):void 0},write:{writer(t,o,a,l){if(!l?.resources)return"string"==typeof t?void(o[a]=(0,d.t)(t,l)):void(o[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),y=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=i.type!==String&&(!(0,n.w)(this)||l?.origin&&this.originIdOf(r)>(0,p.CQ)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:y,dest:o,targetPropertyName:a,context:l,params:e};l?.portalItem&&y&&!(0,s.ic)(y)?g&&e?.contentAddressed?h(v):g?function(e){const{context:t,targetUrl:r,params:i,value:o,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),p=f(o,r,t),c=(0,u.e)(p),d=(0,s.wt)(l.path),y=i?.compress??!1;c===d?(t.resources&&m({...e,resource:l,content:p,compress:y,updates:t.resources.toUpdate}),n[a]=r):h(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==y||null!=(0,d.i)(y)||(0,s.ue)(y)||g)?h(v):o[a]=y}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,c.aq)(r,e,i);for(const e in o)t[e]=o[e]}}}function h(e){const{targetUrl:t,params:r,value:n,context:l,dest:p,targetPropertyName:c}=e;if(!l.portalItem)return;const y=(0,d.p)(t),h=f(n,t,l);if(r?.contentAddressed&&"json"!==h.type)return void l.messages?.push(new i.c("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${h.type} with content addressing. Content addressing is only supported for json resources.`,{content:h}));const g=r?.contentAddressed&&"json"===h.type?(0,o.I)(h.jsonString):y?.filename??(0,a.g1)(),v=(0,s.kn)(r?.prefix??y?.prefix,g),q=`${v}.${(0,u.e)(h)}`;if(r?.contentAddressed&&l.resources&&"json"===h.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===q))??l.resources.toAdd.find((({resource:e})=>e.path===q));if(e)return void(p[c]=e.resource.itemRelativeUrl)}const _=l.portalItem.resourceFromPath(q);(0,s.ue)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.SW)(t).then((e=>{_.path=`${v}.${(0,u.e)({type:"blob",blob:e})}`,p[c]=_.itemRelativeUrl})).catch((()=>{})));const w=r?.compress??!1;l.resources&&m({...e,resource:_,content:h,compress:w,updates:l.resources.toAdd}),p[c]=_.itemRelativeUrl}function m({object:e,propertyName:t,updates:r,resource:i,content:o,compress:n}){r.push({resource:i,content:o,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function f(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},57896:(e,t,r)=>{r.d(t,{Eq:()=>d,KG:()=>g,_8:()=>f,_I:()=>p,aE:()=>l,du:()=>m,on:()=>u}),r(40196),r(2952);var i=r(60976),o=r(38912),n=r(70680),s=r(10860),a=r(37176);function l(e,t,r={}){return c(e,t,r,y)}function p(e,t,r={}){return c(e,t,r,h)}function c(e,t,r={},i){let o=null;const s=r.once?(e,r)=>{i(e)&&((0,n.oR)(o),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(o=(0,a.M9)(e,s,r.sync,r.equals),r.initial){const t=e();s(t,t)}return o}function u(e,t,r,s={}){let a=null,p=null,c=null;function u(){a&&p&&(p.remove(),s.onListenerRemove?.(a),a=null,p=null)}function d(e){s.once&&s.once&&(0,n.oR)(c),r(e)}const y=l(e,((e,r)=>{u(),(0,i.sh)(e)&&(a=e,p=(0,i.on)(e,t,d),s.onListenerAdd?.(e))}),{sync:s.sync,initial:!0});return c=(0,o.uU)((()=>{y.remove(),u()})),c}function d(e,t){return function(e,t,r){if((0,s.wv)(r))return Promise.reject((0,s.Uh)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,n.oR)(a)}return new Promise(((i,n)=>{a=(0,o.Ip)([(0,s.wD)(r,(()=>{l(),n((0,s.Uh)())})),c(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??y)])}))}(e,h,t)}function y(e){return!0}function h(e){return!!e}r(41168);const m={sync:!0},f={initial:!0},g={sync:!0,initial:!0}},63564:(e,t,r)=>{r.d(t,{Mr:()=>s,cf:()=>n,g1:()=>o});const i="randomUUID"in crypto;function o(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>q});var i,o=r(41948),n=r(92400),s=r(14628),a=r(40504),l=r(24296),p=r(69504),c=r(1580),u=(r(9456),r(66360),r(33600)),d=r(12552),y=r(18996);const h=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.sH)(m,"orthometric");const f=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new p.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.oG)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new p.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,c.qq)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,o._)([(0,y.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,o._)([(0,u.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,o._)([(0,c.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,o._)([(0,u.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,o._)([(0,u.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,o._)([(0,c.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,o._)([(0,u.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,o._)([(0,d.c)("esri.geometry.HeightModelInfo")],g);const q=g},96584:(e,t,r)=>{r.r(t),r.d(t,{default:()=>G});var i,o=r(41948),n=r(20744),s=r(66360),a=r(26496),l=r(10860),p=r(57896),c=r(1580),u=(r(9456),r(72052),r(33600)),d=r(12552),y=r(90636),h=r(81436),m=r(38724),f=r(16660),g=r(28584),v=r(66576),q=r(98768),_=r(3116),w=r(87072),b=r(21488),S=r(44104),I=r(2600),x=r(2952),U=r(40504),T=r(28176),E=(r(60708),r(62088)),P=r(69504),R=r(18996),M=r(60074),j=r(7488);let N=i=class extends U.am{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,i){if(i.layer?.spatialReference&&!i.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,M.canProjectWithoutEngine)(e.spatialReference,i.layer.spatialReference))return void(i?.messages&&i.messages.push(new P.c("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:i.layer.spatialReference,context:i})));const o=new j.c;(0,M.projectPolygon)(e,o,i.layer.spatialReference),t[r]=o.toJSON(i)}else t[r]=e.toJSON(i);delete t[r].spatialReference}clone(){return new i({geometry:(0,E.ct)(this.geometry),type:this.type})}};(0,o._)([(0,c.qq)({type:j.c}),(0,y.O)()],N.prototype,"geometry",void 0),(0,o._)([(0,R.G)(["web-scene","portal-item"],"geometry")],N.prototype,"writeGeometry",null),(0,o._)([(0,c.qq)({type:["clip","mask","replace"],nonNullable:!0}),(0,y.O)()],N.prototype,"type",void 0),N=i=(0,o._)([(0,d.c)("esri.layers.support.SceneModification")],N);const O=N;var C;let A=C=class extends((0,U.Ib)(x.c.ofType(O))){constructor(e){super(e),this.url=null}clone(){return new C({url:this.url,items:this.items.map((e=>e.clone()))})}toJSON(e){return this.toArray().map((t=>t.toJSON(e))).filter((e=>!!e.geometry))}static fromJSON(e,t){const r=new C;for(const i of e)r.add(O.fromJSON(i,t));return r}static async fromUrl(e,t,r){const i={url:(0,T.as)(e),origin:"service"},o=await(0,I.c)(e,{responseType:"json",signal:r?.signal}),n=t.toJSON(),s=[];for(const e of o.data)s.push(O.fromJSON({...e,geometry:{...e.geometry,spatialReference:n}},i));return new C({url:e,items:s})}};(0,o._)([(0,c.qq)({type:String})],A.prototype,"url",void 0),A=C=(0,o._)([(0,d.c)("esri.layers.support.SceneModifications")],A);const D=A;var k=r(69204),L=r(91952);let F=class extends((0,w.G6)((0,f.u)((0,v.Y)((0,q.K)((0,_.I)((0,a.U)((0,g.G)((0,m.C)(h.c))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null}initialize(){this.addHandles((0,p.on)((()=>this.modifications),"after-changes",(()=>this.modifications=this.modifications),p.du))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,L.f)(e,r),context:r}}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,l.CE)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await D.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then((()=>{}),(()=>{}))}async saveAs(e,t){return this._debouncedSaveOperations(w.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(w.UJ.SAVE,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new n.c("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new n.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new n.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(){const e=this.elevationInfo,t="Integrated mesh layers";(0,k.A$)(s.c.getLogger(this),(0,k.Ez)(t,"absolute-height",e)),(0,k.A$)(s.c.getLogger(this),(0,k.W8)(t,e))}};(0,o._)([(0,c.qq)({type:String,readOnly:!0})],F.prototype,"geometryType",void 0),(0,o._)([(0,c.qq)({type:["show","hide"]})],F.prototype,"listMode",void 0),(0,o._)([(0,c.qq)({type:["IntegratedMeshLayer"]})],F.prototype,"operationalLayerType",void 0),(0,o._)([(0,c.qq)({json:{read:!1},readOnly:!0})],F.prototype,"type",void 0),(0,o._)([(0,c.qq)({type:S.yq,readOnly:!0})],F.prototype,"nodePages",void 0),(0,o._)([(0,c.qq)({type:[S.a],readOnly:!0})],F.prototype,"materialDefinitions",void 0),(0,o._)([(0,c.qq)({type:[S.G4],readOnly:!0})],F.prototype,"textureSetDefinitions",void 0),(0,o._)([(0,c.qq)({type:[S.iK],readOnly:!0})],F.prototype,"geometryDefinitions",void 0),(0,o._)([(0,c.qq)({readOnly:!0})],F.prototype,"serviceUpdateTimeStamp",void 0),(0,o._)([(0,c.qq)({type:D}),(0,y.O)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],F.prototype,"modifications",void 0),(0,o._)([(0,u.E)(["web-scene","portal-item"],"modifications")],F.prototype,"readModifications",null),(0,o._)([(0,c.qq)(b.Kg)],F.prototype,"elevationInfo",null),(0,o._)([(0,c.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],F.prototype,"path",void 0),F=(0,o._)([(0,d.c)("esri.layers.IntegratedMeshLayer")],F);const G=F},81436:(e,t,r)=>{r.d(t,{c:()=>q});var i=r(41948),o=(r(60708),r(2600)),n=r(20744),s=r(77860),a=r(22156),l=r(95800),p=r(66360),c=r(10860),u=r(28176),d=r(1580),y=(r(9456),r(72052),r(12552)),h=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(s.c.EventedMixin((0,a.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",o=r&&r.portal&&r.portal.url||h.default.portalUrl;throw p.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.mA)(e)||p.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,u.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.qq)()],v.prototype,"url",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.c)("esri.layers.Layer")],v);const q=v},28584:(e,t,r)=>{r.d(t,{G:()=>s});var i=r(41948),o=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,o.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>b});var i=r(41948),o=r(6220),n=r(47620),s=r(2600),a=r(40196),l=r(20744),p=r(66360),c=r(70680),u=r(10860),d=r(28176),y=r(1580),h=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),q=r(9764),_=r(53039),w=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new q.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,u.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,u.mA)(e)||p.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.CE)(e),!0))))}async setUserPrivileges(e,t){if(!o.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,u.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,w.CI)(r);let o,s;if(i)o=r.portal.url;else try{o=await(0,g.mK)(this.url,t)}catch(e){(0,u.CE)(e)}if(!o||!(0,d.Cs)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,u.CE)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new q.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return(0,w.CI)(r)}catch(e){(0,u.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,u.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,o=v.c.getDefault();if(o&&o.loaded&&(0,d.k7)(o.restUrl)===(0,d.k7)(i))return o.user;const l=`${i}/community/self`,p=null!=e?e.signal:null,c=await(0,a.aG)((0,s.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:p}));return c.ok?_.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,d.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.qq)({type:q.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>s});var i=r(41948),o=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,o.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},44104:(e,t,r)=>{r.d(t,{G4:()=>y,a:()=>u,iK:()=>g,yq:()=>l});var i=r(41948),o=r(40504),n=r(1580),s=(r(9456),r(66360),r(72052),r(9968)),a=r(12552);let l=class extends o.am{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,i._)([(0,n.qq)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,i._)([(0,n.qq)({type:Number})],l.prototype,"rootIndex",void 0),(0,i._)([(0,n.qq)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,i._)([(0,a.c)("esri.layer.support.I3SNodePageDefinition")],l);let p=class extends o.am{constructor(){super(...arguments),this.factor=1}};(0,i._)([(0,n.qq)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],p.prototype,"id",void 0),(0,i._)([(0,n.qq)({type:Number})],p.prototype,"factor",void 0),p=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialTexture")],p);let c=class extends o.am{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,i._)([(0,n.qq)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,i._)([(0,n.qq)({type:p})],c.prototype,"baseColorTexture",void 0),(0,i._)([(0,n.qq)({type:p})],c.prototype,"metallicRoughnessTexture",void 0),(0,i._)([(0,n.qq)({type:Number})],c.prototype,"metallicFactor",void 0),(0,i._)([(0,n.qq)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let u=class extends o.am{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,i._)([(0,s.G)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,i._)([(0,n.qq)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,i._)([(0,n.qq)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,i._)([(0,s.G)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"normalTexture",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"occlusionTexture",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"emissiveTexture",void 0),(0,i._)([(0,n.qq)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,i._)([(0,n.qq)({type:c})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialDefinition")],u);let d=class extends o.am{};(0,i._)([(0,n.qq)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,i._)([(0,s.G)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,i._)([(0,a.c)("esri.layer.support.I3STextureFormat")],d);let y=class extends o.am{constructor(){super(...arguments),this.atlas=!1}};(0,i._)([(0,n.qq)({type:[d]})],y.prototype,"formats",void 0),(0,i._)([(0,n.qq)({type:Boolean})],y.prototype,"atlas",void 0),y=(0,i._)([(0,a.c)("esri.layer.support.I3STextureSetDefinition")],y);let h=class extends o.am{};(0,i._)([(0,s.G)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,i._)([(0,n.qq)({type:Number})],h.prototype,"component",void 0),h=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryAttribute")],h);let m=class extends o.am{};(0,i._)([(0,s.G)({draco:"draco"})],m.prototype,"encoding",void 0),(0,i._)([(0,n.qq)({type:[String]})],m.prototype,"attributes",void 0),m=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryCompressedAttributes")],m);let f=class extends o.am{constructor(){super(...arguments),this.offset=0}};(0,i._)([(0,n.qq)({type:Number})],f.prototype,"offset",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"position",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"normal",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"uv0",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"color",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"uvRegion",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"featureId",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"faceRange",void 0),(0,i._)([(0,n.qq)({type:m})],f.prototype,"compressedAttributes",void 0),f=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryBuffer")],f);let g=class extends o.am{};(0,i._)([(0,s.G)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,i._)([(0,n.qq)()],g.prototype,"geometryBuffers",void 0),g=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryDefinition")],g)},73960:(e,t,r)=>{r.d(t,{e:()=>o});var i=r(28176);function o(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.wt)(e);return l[t]||s}(e.url)}(e)]||a}const n={},s="text/plain",a=n[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},69204:(e,t,r)=>{function i(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?l:p}(e).mode}(null!=e&&e.hasZ,t)}function o(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function n(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function s(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function a(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>a,Ez:()=>o,W8:()=>s,ay:()=>n,m6:()=>i}),r(24296),r(35764);const l={mode:"absolute-height",offset:0},p={mode:"on-the-ground",offset:null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8644],{44247:(e,t,r)=>{async function n(e,t){const{WhereClause:n}=await Promise.all([r.e(3220),r.e(988)]).then(r.bind(r,63220));return n.create(e,t)}function s(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{_:()=>s,u:()=>n})},75824:(e,t,r)=>{r.d(t,{Md:()=>o,m0:()=>i,qG:()=>s});var n=r(39452);class s{}function o(e){return e instanceof n.C?e===s.instance:"unknown"===e?.toString().toLowerCase()}function i(e){return o(e)?s.instance:e}s.instance=new n._C("Etc/UTC")},77048:(e,t,r)=>{r.d(t,{C6:()=>c,FZ:()=>y,K:()=>g,K8:()=>a,MZ:()=>l,Qv:()=>f,Su:()=>s,UN:()=>x,WK:()=>o,WO:()=>m,WU:()=>i,eC:()=>p,is:()=>S,mK:()=>d,qe:()=>u,qy:()=>h,yK:()=>v});var n=r(95247);function s(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,i,l=s()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=o,l[5]=i,l}function i(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.c(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,n=t.length/3){let s=e[0],o=e[1],i=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),i=Math.min(i,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=l,e[4]=a,e[5]=u}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function d(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?m(e,g):s(g)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function h(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function S(e){return 6===e.length}function v(e,t,r){if(null==e||null==t)return e===t;if(!S(e)||!S(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const g=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},6828:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(41948),s=r(25228),o=r(13452),i=r(1580),l=(r(9456),r(66360),r(72052),r(12552)),a=r(564),u=r(99336);const p=e=>{let t=class extends e{get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return e;const t=e.clone();return(0,a.Wc)(t,this.fieldsIndex),t}set timeInfo(e){(0,a.Wc)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}};return(0,n._)([(0,i.qq)({type:u.c})],t.prototype,"timeInfo",null),(0,n._)([(0,i.qq)({type:s.c})],t.prototype,"timeExtent",null),(0,n._)([(0,i.qq)({type:o.c})],t.prototype,"timeOffset",null),(0,n._)([(0,i.qq)({type:Boolean,nonNullable:!0})],t.prototype,"useViewTime",null),(0,n._)([(0,i.qq)({type:Boolean,nonNullable:!0})],t.prototype,"datesInUnknownTimezone",null),t=(0,n._)([(0,l.c)("esri.layers.mixins.TemporalSceneLayer")],t),t}},16424:(e,t,r)=>{r.d(t,{c:()=>d});var n=r(20744),s=r(40504),o=r(66360),i=r(86916),l=r(75824),a=r(564),u=r(28484),p=r(39452);const c=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],h(e))}static fromLayerJSON(e){return new d(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const s=m(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(n,e),r.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(m(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(o.c.getLogger("esri.layers.support.FieldsIndex").error(new n.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.Gw):f.has(t.type)?u.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.OI?l.qG.instance:t===u.Gw?p.Kq.utcInstance:(0,i.wJ)(c,t,(()=>p._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,s.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function m(e){return e.trim().toLowerCase()}function y(e){return(0,a.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:s}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",i=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.Mt)(e.dateFieldsTimeReference):null,a=s?function(e){return"timeZone"in e}(s)?s.timeZone??l:s.dateFieldsTimeReference?(0,u.Mt)(s.dateFieldsTimeReference):l??u.Gw:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,u.Mt)(n.timeReference):l:null,c=new Map([[m(s?.creationDateField??""),a],[m(s?.editDateField??""),a],[m(o),p],[m(i),p]]);for(const{name:n,type:s}of e.fields)if(f.has(s))t.set(n,u.OI);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(n,null);else if(r)t.set(n,u.OI);else{const e=c.get(m(n??""))??l;t.set(n,e)}return t}},44104:(e,t,r)=>{r.d(t,{G4:()=>m,a:()=>c,iK:()=>S,yq:()=>a});var n=r(41948),s=r(40504),o=r(1580),i=(r(9456),r(66360),r(72052),r(9968)),l=r(12552);let a=class extends s.am{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,n._)([(0,o.qq)({type:Number})],a.prototype,"nodesPerPage",void 0),(0,n._)([(0,o.qq)({type:Number})],a.prototype,"rootIndex",void 0),(0,n._)([(0,o.qq)({type:String})],a.prototype,"lodSelectionMetricType",void 0),a=(0,n._)([(0,l.c)("esri.layer.support.I3SNodePageDefinition")],a);let u=class extends s.am{constructor(){super(...arguments),this.factor=1}};(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,n._)([(0,o.qq)({type:Number})],u.prototype,"factor",void 0),u=(0,n._)([(0,l.c)("esri.layer.support.I3SMaterialTexture")],u);let p=class extends s.am{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,n._)([(0,o.qq)({type:[Number]})],p.prototype,"baseColorFactor",void 0),(0,n._)([(0,o.qq)({type:u})],p.prototype,"baseColorTexture",void 0),(0,n._)([(0,o.qq)({type:u})],p.prototype,"metallicRoughnessTexture",void 0),(0,n._)([(0,o.qq)({type:Number})],p.prototype,"metallicFactor",void 0),(0,n._)([(0,o.qq)({type:Number})],p.prototype,"roughnessFactor",void 0),p=(0,n._)([(0,l.c)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],p);let c=class extends s.am{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,n._)([(0,i.G)({opaque:"opaque",mask:"mask",blend:"blend"})],c.prototype,"alphaMode",void 0),(0,n._)([(0,o.qq)({type:Number})],c.prototype,"alphaCutoff",void 0),(0,n._)([(0,o.qq)({type:Boolean})],c.prototype,"doubleSided",void 0),(0,n._)([(0,i.G)({none:"none",back:"back",front:"front"})],c.prototype,"cullFace",void 0),(0,n._)([(0,o.qq)({type:u})],c.prototype,"normalTexture",void 0),(0,n._)([(0,o.qq)({type:u})],c.prototype,"occlusionTexture",void 0),(0,n._)([(0,o.qq)({type:u})],c.prototype,"emissiveTexture",void 0),(0,n._)([(0,o.qq)({type:[Number]})],c.prototype,"emissiveFactor",void 0),(0,n._)([(0,o.qq)({type:p})],c.prototype,"pbrMetallicRoughness",void 0),c=(0,n._)([(0,l.c)("esri.layer.support.I3SMaterialDefinition")],c);let d=class extends s.am{};(0,n._)([(0,o.qq)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,n._)([(0,i.G)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,n._)([(0,l.c)("esri.layer.support.I3STextureFormat")],d);let m=class extends s.am{constructor(){super(...arguments),this.atlas=!1}};(0,n._)([(0,o.qq)({type:[d]})],m.prototype,"formats",void 0),(0,n._)([(0,o.qq)({type:Boolean})],m.prototype,"atlas",void 0),m=(0,n._)([(0,l.c)("esri.layer.support.I3STextureSetDefinition")],m);let y=class extends s.am{};(0,n._)([(0,i.G)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],y.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:Number})],y.prototype,"component",void 0),y=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryAttribute")],y);let f=class extends s.am{};(0,n._)([(0,i.G)({draco:"draco"})],f.prototype,"encoding",void 0),(0,n._)([(0,o.qq)({type:[String]})],f.prototype,"attributes",void 0),f=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryCompressedAttributes")],f);let h=class extends s.am{constructor(){super(...arguments),this.offset=0}};(0,n._)([(0,o.qq)({type:Number})],h.prototype,"offset",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"position",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"normal",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"uv0",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"color",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"uvRegion",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"featureId",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"faceRange",void 0),(0,n._)([(0,o.qq)({type:f})],h.prototype,"compressedAttributes",void 0),h=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryBuffer")],h);let S=class extends s.am{};(0,n._)([(0,i.G)({triangle:"triangle"})],S.prototype,"topology",void 0),(0,n._)([(0,o.qq)()],S.prototype,"geometryBuffers",void 0),S=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryDefinition")],S)},24144:(e,t,r)=>{r.d(t,{c:()=>p});var n,s=r(41948),o=r(2952),i=r(40504),l=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let u=n=class extends i.am{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.c}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,l.qq)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,s._)([(0,l.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,s._)([(0,l.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=n=(0,s._)([(0,a.c)("esri.layers.support.LayerFloorInfo")],u);const p=u},50420:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(47620),s=r(2600),o=r(20744),i=r(10860),l=r(48212),a=r(54872),u=r(9764);async function p(e,t){const r=(0,l.K0)(e);if(!r)throw new o.c("invalid-url","Invalid scene service url");const p={...t,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(p.sceneLayerItem??=await async function(e){const t=(await c(e)).serviceItemId;if(!t)return null;const r=new u.default({id:t,apiKey:e.apiKey}),o=await async function(e){const t=n.id?.findServerInfo(e.sceneServerUrl);if(t?.owningSystemUrl)return t.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const t=(await(0,s.c)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(t)return t}catch(e){(0,i.CE)(e)}return null}(e);null!=o&&(r.portal=new a.c({url:o}));try{return r.load({signal:e.signal})}catch(e){return(0,i.CE)(e),null}}(p),null==p.sceneLayerItem)return d(p.sceneServerUrl.replace("/SceneServer","/FeatureServer"),p);const m=await async function({sceneLayerItem:e,signal:t}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:t})).find((e=>"Feature Service"===e.type))||null;if(!r)return null;const n=new u.default({portal:r.portal,id:r.id});return await n.load(),n}catch(e){return(0,i.CE)(e),null}}(p);if(!m?.url)throw new o.c("related-service-not-found","Could not find feature service through portal item relationship");p.featureServiceItem=m;const y=await d(m.url,p);return y.portalItem=m,y}async function c(e){if(e.rootDocument)return e.rootDocument;const t={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,s.c)(e.sceneServerUrl,t);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,t){const r=(0,l.K0)(e);if(!r)throw new o.c("invalid-feature-service-url","Invalid feature service url");const n=r.url.path,i=t.layerId;if(null==i)return{serverUrl:n};const a=c(t),u=t.featureServiceItem?await t.featureServiceItem.fetchData("json"):null,p=(u?.layers?.[0]||u?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...p},responseType:"json",authMode:e,signal:t.signal};return(0,s.c)(n,r)},m=d("anonymous").catch((()=>d("no-prompt"))),[y,f]=await Promise.all([m,a]),h=f?.layers,S=y.data&&y.data.layers;if(!Array.isArray(S))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,S.length);e++)if(h[e].id===i)return{serverUrl:n,layerId:S[e].id}}else if(null!=i&&i<S.length)return{serverUrl:n,layerId:S[i].id};throw new Error("could not find matching associated sublayer")}},36088:(e,t,r)=>{r.d(t,{u:()=>n});const n={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},4144:(e,t,r)=>{r.d(t,{GC:()=>w,I5:()=>f,Wi:()=>S,Y$:()=>y,cF:()=>h,wf:()=>v,y6:()=>m});var n=r(88264);const s="__begin__",o="__end__",i=new RegExp(s,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+s,"i"),u=new RegExp(o+"$","i"),p='"',c=p+" + ",d=" + "+p;function m(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=m(e.labelExpression),t.type="conventional"),t}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function S(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(g);return t?.[1].trim()||null}(t.expression);case"arcade":return w(t.expression)}return null}function v(e){let t;return e?(t=(0,n.qq)(e,(e=>s+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(i,c).replaceAll(l,d)):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,q=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function w(e){if(!e)return null;let t=x.exec(e)||q.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},69204:(e,t,r)=>{function n(e,t){return t?.mode?t.mode:function(e){return e?u:p}(e).mode}function s(e,t){return n(null!=e&&e.hasZ,t)}function o(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function i(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function a(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>a,Ez:()=>o,W8:()=>l,ay:()=>i,m6:()=>s}),r(35764);const u={mode:"absolute-height",offset:0},p={mode:"on-the-ground",offset:null}},45704:(e,t,r)=>{r.d(t,{Sg:()=>p,Uj:()=>u,Uz:()=>a,YP:()=>c}),r(9456);var n=r(47472),s=r(7432),o=r(49736),i=r(28652),l=r(9504);const a=o.c.fromJSON(l.qe),u=s.c.fromJSON(l.MZ),p=n.c.fromJSON(l.yq),c=i.c.fromJSON(l.gF);o.c.fromJSON(l.gP),s.c.fromJSON(l.aV),n.c.fromJSON(l.wp)},9504:(e,t,r)=>{r.d(t,{MZ:()=>o,aV:()=>u,gF:()=>l,gP:()=>a,qe:()=>s,wp:()=>p,yq:()=>i});const n=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},i={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},63680:(e,t,r)=>{r.d(t,{M$:()=>o,W_:()=>s});var n=r(564);async function s(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:s}=t,{objectIdField:o,typeIdField:i,globalIdField:l,relationships:a}=e;if(r.includes("*"))return["*"];const u=s?(0,n.tm)(e):[],p=(0,n.OO)(e.fieldsIndex,[...r,...u]);return i&&p.push(i),p&&o&&e.fieldsIndex?.has(o)&&!p.includes(o)&&p.push(o),p&&l&&e.fieldsIndex?.has(l)&&!p.includes(l)&&p.push(l),a&&a.forEach((t=>{const{keyField:r}=t;p&&r&&e.fieldsIndex?.has(r)&&!p.includes(r)&&p.push(r)})),p}function o(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8644],{44247:(e,t,r)=>{async function n(e,t){const{WhereClause:n}=await Promise.all([r.e(3220),r.e(988)]).then(r.bind(r,63220));return n.create(e,t)}function s(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{_:()=>s,u:()=>n})},75824:(e,t,r)=>{r.d(t,{Md:()=>o,m0:()=>i,qG:()=>s});var n=r(39452);class s{}function o(e){return e instanceof n.C?e===s.instance:"unknown"===e?.toString().toLowerCase()}function i(e){return o(e)?s.instance:e}s.instance=new n._C("Etc/UTC")},77048:(e,t,r)=>{r.d(t,{C6:()=>c,FZ:()=>y,K:()=>g,K8:()=>a,MZ:()=>l,Qv:()=>f,Su:()=>s,UN:()=>x,WK:()=>o,WO:()=>m,WU:()=>i,eC:()=>p,is:()=>S,mK:()=>d,qe:()=>u,qy:()=>h,yK:()=>v});var n=r(95247);function s(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,i,l=s()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=o,l[5]=i,l}function i(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.c(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,n=t.length/3){let s=e[0],o=e[1],i=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),i=Math.min(i,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=l,e[4]=a,e[5]=u}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function d(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?m(e,g):s(g)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function h(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function S(e){return 6===e.length}function v(e,t,r){if(null==e||null==t)return e===t;if(!S(e)||!S(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const g=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},6828:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(41948),s=r(25228),o=r(13452),i=r(1580),l=(r(9456),r(66360),r(72052),r(12552)),a=r(564),u=r(99336);const p=e=>{let t=class extends e{get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return e;const t=e.clone();return(0,a.Wc)(t,this.fieldsIndex),t}set timeInfo(e){(0,a.Wc)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}};return(0,n._)([(0,i.qq)({type:u.c})],t.prototype,"timeInfo",null),(0,n._)([(0,i.qq)({type:s.c})],t.prototype,"timeExtent",null),(0,n._)([(0,i.qq)({type:o.c})],t.prototype,"timeOffset",null),(0,n._)([(0,i.qq)({type:Boolean,nonNullable:!0})],t.prototype,"useViewTime",null),(0,n._)([(0,i.qq)({type:Boolean,nonNullable:!0})],t.prototype,"datesInUnknownTimezone",null),t=(0,n._)([(0,l.c)("esri.layers.mixins.TemporalSceneLayer")],t),t}},16424:(e,t,r)=>{r.d(t,{c:()=>d});var n=r(20744),s=r(40504),o=r(66360),i=r(86916),l=r(75824),a=r(564),u=r(28484),p=r(39452);const c=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],h(e))}static fromLayerJSON(e){return new d(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const s=m(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(n,e),r.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(m(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(o.c.getLogger("esri.layers.support.FieldsIndex").error(new n.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.Gw):f.has(t.type)?u.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.OI?l.qG.instance:t===u.Gw?p.Kq.utcInstance:(0,i.wJ)(c,t,(()=>p._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,s.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function m(e){return e.trim().toLowerCase()}function y(e){return(0,a.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:s}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",i=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.Mt)(e.dateFieldsTimeReference):null,a=s?function(e){return"timeZone"in e}(s)?s.timeZone??l:s.dateFieldsTimeReference?(0,u.Mt)(s.dateFieldsTimeReference):l??u.Gw:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,u.Mt)(n.timeReference):l:null,c=new Map([[m(s?.creationDateField??""),a],[m(s?.editDateField??""),a],[m(o),p],[m(i),p]]);for(const{name:n,type:s}of e.fields)if(f.has(s))t.set(n,u.OI);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(n,null);else if(r)t.set(n,u.OI);else{const e=c.get(m(n??""))??l;t.set(n,e)}return t}},44104:(e,t,r)=>{r.d(t,{G4:()=>m,a:()=>c,iK:()=>S,yq:()=>a});var n=r(41948),s=r(40504),o=r(1580),i=(r(9456),r(66360),r(72052),r(9968)),l=r(12552);let a=class extends s.am{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,n._)([(0,o.qq)({type:Number})],a.prototype,"nodesPerPage",void 0),(0,n._)([(0,o.qq)({type:Number})],a.prototype,"rootIndex",void 0),(0,n._)([(0,o.qq)({type:String})],a.prototype,"lodSelectionMetricType",void 0),a=(0,n._)([(0,l.c)("esri.layer.support.I3SNodePageDefinition")],a);let u=class extends s.am{constructor(){super(...arguments),this.factor=1}};(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,n._)([(0,o.qq)({type:Number})],u.prototype,"factor",void 0),u=(0,n._)([(0,l.c)("esri.layer.support.I3SMaterialTexture")],u);let p=class extends s.am{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,n._)([(0,o.qq)({type:[Number]})],p.prototype,"baseColorFactor",void 0),(0,n._)([(0,o.qq)({type:u})],p.prototype,"baseColorTexture",void 0),(0,n._)([(0,o.qq)({type:u})],p.prototype,"metallicRoughnessTexture",void 0),(0,n._)([(0,o.qq)({type:Number})],p.prototype,"metallicFactor",void 0),(0,n._)([(0,o.qq)({type:Number})],p.prototype,"roughnessFactor",void 0),p=(0,n._)([(0,l.c)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],p);let c=class extends s.am{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,n._)([(0,i.G)({opaque:"opaque",mask:"mask",blend:"blend"})],c.prototype,"alphaMode",void 0),(0,n._)([(0,o.qq)({type:Number})],c.prototype,"alphaCutoff",void 0),(0,n._)([(0,o.qq)({type:Boolean})],c.prototype,"doubleSided",void 0),(0,n._)([(0,i.G)({none:"none",back:"back",front:"front"})],c.prototype,"cullFace",void 0),(0,n._)([(0,o.qq)({type:u})],c.prototype,"normalTexture",void 0),(0,n._)([(0,o.qq)({type:u})],c.prototype,"occlusionTexture",void 0),(0,n._)([(0,o.qq)({type:u})],c.prototype,"emissiveTexture",void 0),(0,n._)([(0,o.qq)({type:[Number]})],c.prototype,"emissiveFactor",void 0),(0,n._)([(0,o.qq)({type:p})],c.prototype,"pbrMetallicRoughness",void 0),c=(0,n._)([(0,l.c)("esri.layer.support.I3SMaterialDefinition")],c);let d=class extends s.am{};(0,n._)([(0,o.qq)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,n._)([(0,i.G)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,n._)([(0,l.c)("esri.layer.support.I3STextureFormat")],d);let m=class extends s.am{constructor(){super(...arguments),this.atlas=!1}};(0,n._)([(0,o.qq)({type:[d]})],m.prototype,"formats",void 0),(0,n._)([(0,o.qq)({type:Boolean})],m.prototype,"atlas",void 0),m=(0,n._)([(0,l.c)("esri.layer.support.I3STextureSetDefinition")],m);let y=class extends s.am{};(0,n._)([(0,i.G)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],y.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:Number})],y.prototype,"component",void 0),y=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryAttribute")],y);let f=class extends s.am{};(0,n._)([(0,i.G)({draco:"draco"})],f.prototype,"encoding",void 0),(0,n._)([(0,o.qq)({type:[String]})],f.prototype,"attributes",void 0),f=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryCompressedAttributes")],f);let h=class extends s.am{constructor(){super(...arguments),this.offset=0}};(0,n._)([(0,o.qq)({type:Number})],h.prototype,"offset",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"position",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"normal",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"uv0",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"color",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"uvRegion",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"featureId",void 0),(0,n._)([(0,o.qq)({type:y})],h.prototype,"faceRange",void 0),(0,n._)([(0,o.qq)({type:f})],h.prototype,"compressedAttributes",void 0),h=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryBuffer")],h);let S=class extends s.am{};(0,n._)([(0,i.G)({triangle:"triangle"})],S.prototype,"topology",void 0),(0,n._)([(0,o.qq)()],S.prototype,"geometryBuffers",void 0),S=(0,n._)([(0,l.c)("esri.layer.support.I3SGeometryDefinition")],S)},24144:(e,t,r)=>{r.d(t,{c:()=>p});var n,s=r(41948),o=r(2952),i=r(40504),l=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let u=n=class extends i.am{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.c}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,l.qq)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,s._)([(0,l.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,s._)([(0,l.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=n=(0,s._)([(0,a.c)("esri.layers.support.LayerFloorInfo")],u);const p=u},50420:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(47620),s=r(2600),o=r(20744),i=r(10860),l=r(48212),a=r(54872),u=r(9764);async function p(e,t){const r=(0,l.K0)(e);if(!r)throw new o.c("invalid-url","Invalid scene service url");const p={...t,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(p.sceneLayerItem??=await async function(e){const t=(await c(e)).serviceItemId;if(!t)return null;const r=new u.default({id:t,apiKey:e.apiKey}),o=await async function(e){const t=n.id?.findServerInfo(e.sceneServerUrl);if(t?.owningSystemUrl)return t.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const t=(await(0,s.c)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(t)return t}catch(e){(0,i.CE)(e)}return null}(e);null!=o&&(r.portal=new a.c({url:o}));try{return r.load({signal:e.signal})}catch(e){return(0,i.CE)(e),null}}(p),null==p.sceneLayerItem)return d(p.sceneServerUrl.replace("/SceneServer","/FeatureServer"),p);const m=await async function({sceneLayerItem:e,signal:t}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:t})).find((e=>"Feature Service"===e.type))||null;if(!r)return null;const n=new u.default({portal:r.portal,id:r.id});return await n.load(),n}catch(e){return(0,i.CE)(e),null}}(p);if(!m?.url)throw new o.c("related-service-not-found","Could not find feature service through portal item relationship");p.featureServiceItem=m;const y=await d(m.url,p);return y.portalItem=m,y}async function c(e){if(e.rootDocument)return e.rootDocument;const t={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,s.c)(e.sceneServerUrl,t);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,t){const r=(0,l.K0)(e);if(!r)throw new o.c("invalid-feature-service-url","Invalid feature service url");const n=r.url.path,i=t.layerId;if(null==i)return{serverUrl:n};const a=c(t),u=t.featureServiceItem?await t.featureServiceItem.fetchData("json"):null,p=(u?.layers?.[0]||u?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...p},responseType:"json",authMode:e,signal:t.signal};return(0,s.c)(n,r)},m=d("anonymous").catch((()=>d("no-prompt"))),[y,f]=await Promise.all([m,a]),h=f?.layers,S=y.data&&y.data.layers;if(!Array.isArray(S))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,S.length);e++)if(h[e].id===i)return{serverUrl:n,layerId:S[e].id}}else if(null!=i&&i<S.length)return{serverUrl:n,layerId:S[i].id};throw new Error("could not find matching associated sublayer")}},36088:(e,t,r)=>{r.d(t,{u:()=>n});const n={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},4144:(e,t,r)=>{r.d(t,{GC:()=>w,I5:()=>f,Wi:()=>S,Y$:()=>y,cF:()=>h,wf:()=>v,y6:()=>m});var n=r(88264);const s="__begin__",o="__end__",i=new RegExp(s,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+s,"i"),u=new RegExp(o+"$","i"),p='"',c=p+" + ",d=" + "+p;function m(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=m(e.labelExpression),t.type="conventional"),t}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function S(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(g);return t?.[1].trim()||null}(t.expression);case"arcade":return w(t.expression)}return null}function v(e){let t;return e?(t=(0,n.qq)(e,(e=>s+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(i,c).replaceAll(l,d)):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,q=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function w(e){if(!e)return null;let t=x.exec(e)||q.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},69204:(e,t,r)=>{function n(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?a:u}(e).mode}(null!=e&&e.hasZ,t)}function s(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function i(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>l,Ez:()=>s,W8:()=>i,ay:()=>o,m6:()=>n}),r(24296),r(35764);const a={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},45704:(e,t,r)=>{r.d(t,{Sg:()=>p,Uj:()=>u,Uz:()=>a,YP:()=>c}),r(9456);var n=r(47472),s=r(7432),o=r(49736),i=r(28652),l=r(9504);const a=o.c.fromJSON(l.qe),u=s.c.fromJSON(l.MZ),p=n.c.fromJSON(l.yq),c=i.c.fromJSON(l.gF);o.c.fromJSON(l.gP),s.c.fromJSON(l.aV),n.c.fromJSON(l.wp)},9504:(e,t,r)=>{r.d(t,{MZ:()=>o,aV:()=>u,gF:()=>l,gP:()=>a,qe:()=>s,wp:()=>p,yq:()=>i});const n=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},i={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},63680:(e,t,r)=>{r.d(t,{M$:()=>o,W_:()=>s});var n=r(564);async function s(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:s}=t,{objectIdField:o,typeIdField:i,globalIdField:l,relationships:a}=e;if(r.includes("*"))return["*"];const u=s?(0,n.tm)(e):[],p=(0,n.OO)(e.fieldsIndex,[...r,...u]);return i&&p.push(i),p&&o&&e.fieldsIndex?.has(o)&&!p.includes(o)&&p.push(o),p&&l&&e.fieldsIndex?.has(l)&&!p.includes(l)&&p.push(l),a&&a.forEach((t=>{const{keyField:r}=t;p&&r&&e.fieldsIndex?.has(r)&&!p.includes(r)&&p.push(r)})),p}function o(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4716,4828],{17012:(e,t,r)=>{r.d(t,{e:()=>l});var n,o,i,a=r(8528),s={exports:{}};n=s,o=function(){function e(e,r,o){o=o||2;var i,a,s,c,u,p,f,h=r&&r.length,g=h?r[0]*o:e.length,m=t(e,0,g,o,!0),y=[];if(!m||m.next===m.prev)return y;if(h&&(m=l(e,r,m,o)),e.length>80*o){i=s=e[0],a=c=e[1];for(var d=o;d<g;d+=o)(u=e[d])<i&&(i=u),(p=e[d+1])<a&&(a=p),u>s&&(s=u),p>c&&(c=p);f=0!==(f=Math.max(s-i,c-a))?1/f:0}return n(m,y,o,i,a,f),y}function t(e,t,r,n,o){var i,a;if(o===F(e,t,r,n)>0)for(i=t;i<r;i+=n)a=S(i,e[i],e[i+1],a);else for(i=r-n;i>=t;i-=n)a=S(i,e[i],e[i+1],a);if(a&&v(a,a.next)){var s=a.next;q(a),a=s}return a}function r(e,t){if(!e)return e;t||(t=e);var r,n=e;do{if(r=!1,n.steiner||!v(n,n.next)&&0!==x(n.prev,n,n.next))n=n.next;else{var o=n.prev;if(q(n),(n=t=o)===n.next)break;r=!0}}while(r||n!==t);return t}function n(e,t,l,c,u,p,f){if(e){!f&&p&&h(e,c,u,p);for(var g,m,y=e;e.prev!==e.next;)if(g=e.prev,m=e.next,p?i(e,c,u,p):o(e))t.push(g.i/l),t.push(e.i/l),t.push(m.i/l),q(e),e=m.next,y=m.next;else if((e=m)===y){f?1===f?n(e=a(r(e),t,l),t,l,c,u,p,2):2===f&&s(e,t,l,c,u,p):n(r(e),t,l,c,u,p,1);break}}}function o(e){var t=e.prev,r=e,n=e.next;if(x(t,r,n)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(y(t.x,t.y,r.x,r.y,n.x,n.y,o.x,o.y)&&x(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(e,t,r,n){var o=e.prev,i=e,a=e.next;if(x(o,i,a)>=0)return!1;for(var s=o.x<i.x?o.x<a.x?o.x:a.x:i.x<a.x?i.x:a.x,l=o.y<i.y?o.y<a.y?o.y:a.y:i.y<a.y?i.y:a.y,c=o.x>i.x?o.x>a.x?o.x:a.x:i.x>a.x?i.x:a.x,u=o.y>i.y?o.y>a.y?o.y:a.y:i.y>a.y?i.y:a.y,p=g(s,l,t,r,n),f=g(c,u,t,r,n),h=e.prevZ,m=e.nextZ;h&&h.z>=p&&m&&m.z<=f;){if(h!==e.prev&&h!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,h.x,h.y)&&x(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,m!==e.prev&&m!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,m.x,m.y)&&x(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;h&&h.z>=p;){if(h!==e.prev&&h!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,h.x,h.y)&&x(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;m&&m.z<=f;){if(m!==e.prev&&m!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,m.x,m.y)&&x(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function a(e,t,n){var o=e;do{var i=o.prev,a=o.next.next;!v(i,a)&&w(i,o,o.next,a)&&_(i,a)&&_(a,i)&&(t.push(i.i/n),t.push(o.i/n),t.push(a.i/n),q(o),q(o.next),o=e=a),o=o.next}while(o!==e);return r(o)}function s(e,t,o,i,a,s){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&d(l,c)){var u=T(l,c);return l=r(l,l.next),u=r(u,u.next),n(l,t,o,i,a,s),void n(u,t,o,i,a,s)}c=c.next}l=l.next}while(l!==e)}function l(e,n,o,i){var a,s,l,u=[];for(a=0,s=n.length;a<s;a++)(l=t(e,n[a]*i,a<s-1?n[a+1]*i:e.length,i,!1))===l.next&&(l.steiner=!0),u.push(m(l));for(u.sort(c),a=0;a<u.length;a++)o=r(o=p(u[a],o),o.next);return o}function c(e,t){return e.x-t.x}function u(e){if(e.next.prev===e)return e;let t=e;for(;;){const r=t.next;if(r.prev===t||r===t||r===e)break;t=r}return t}function p(e,t){var n=function(e,t){var r,n=t,o=e.x,i=e.y,a=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){var s=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=o&&s>a){if(a=s,s===o){if(i===n.y)return n;if(i===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==t);if(!r)return null;if(o===a)return r;var l,c=r,u=r.x,p=r.y,h=1/0;n=r;do{o>=n.x&&n.x>=u&&o!==n.x&&y(i<p?o:a,i,u,p,i<p?a:o,i,n.x,n.y)&&(l=Math.abs(i-n.y)/(o-n.x),_(n,e)&&(l<h||l===h&&(n.x>r.x||n.x===r.x&&f(r,n)))&&(r=n,h=l)),n=n.next}while(n!==c);return r}(e,t);if(!n)return t;var o=T(n,e),i=r(n,n.next);let a=u(o);return r(a,a.next),i=u(i),u(t===n?i:t)}function f(e,t){return x(e.prev,e,t.prev)<0&&x(t.next,e,e.next)<0}function h(e,t,r,n){var o=e;do{null===o.z&&(o.z=g(o.x,o.y,t,r,n)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,r,n,o,i,a,s,l,c=1;do{for(r=e,e=null,i=null,a=0;r;){for(a++,n=r,s=0,t=0;t<c&&(s++,n=n.nextZ);t++);for(l=c;s>0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(o=r,r=r.nextZ,s--):(o=n,n=n.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;r=n}i.nextZ=null,c*=2}while(a>1)}(o)}function g(e,t,r,n,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function m(e){var t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function y(e,t,r,n,o,i,a,s){return(o-a)*(t-s)-(e-a)*(i-s)>=0&&(e-a)*(n-s)-(r-a)*(t-s)>=0&&(r-a)*(i-s)-(o-a)*(n-s)>=0}function d(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&w(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}(e,t)&&(_(e,t)&&_(t,e)&&function(e,t){var r=e,n=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{r.y>i!=r.next.y>i&&r.next.y!==r.y&&o<(r.next.x-r.x)*(i-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==e);return n}(e,t)&&(x(e.prev,e,t.prev)||x(e,t.prev,t))||v(e,t)&&x(e.prev,e,e.next)>0&&x(t.prev,t,t.next)>0)}function x(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function w(e,t,r,n){var o=b(x(e,t,r)),i=b(x(e,t,n)),a=b(x(r,n,e)),s=b(x(r,n,t));return o!==i&&a!==s||!(0!==o||!A(e,r,t))||!(0!==i||!A(e,n,t))||!(0!==a||!A(r,e,n))||!(0!==s||!A(r,t,n))}function A(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function b(e){return e>0?1:e<0?-1:0}function _(e,t){return x(e.prev,e,e.next)<0?x(e,t,e.next)>=0&&x(e,e.prev,t)>=0:x(e,t,e.prev)<0||x(e,e.next,t)<0}function T(e,t){var r=new M(e.i,e.x,e.y),n=new M(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,r.next=o,o.prev=r,n.next=r,r.prev=n,i.next=n,n.prev=i,n}function S(e,t,r,n){var o=new M(e,t,r);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function q(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function M(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(e,t,r,n){for(var o=0,i=t,a=r-n;i<r;i+=n)o+=(e[a]-e[i])*(e[i+1]+e[a+1]),a=i;return o}return e.deviation=function(e,t,r,n){var o=t&&t.length,i=o?t[0]*r:e.length,a=Math.abs(F(e,0,i,r));if(o)for(var s=0,l=t.length;s<l;s++){var c=t[s]*r,u=s<l-1?t[s+1]*r:e.length;a-=Math.abs(F(e,c,u,r))}var p=0;for(s=0;s<n.length;s+=3){var f=n[s]*r,h=n[s+1]*r,g=n[s+2]*r;p+=Math.abs((e[f]-e[g])*(e[h+1]-e[f+1])-(e[f]-e[h])*(e[g+1]-e[f+1]))}return 0===a&&0===p?0:Math.abs((p-a)/a)},e.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var a=0;a<t;a++)r.vertices.push(e[o][i][a]);o>0&&(n+=e[o-1].length,r.holes.push(n))}return r},e},void 0!==(i=o())&&(n.exports=i);const l=(0,a.g)(s.exports)},63316:(e,t,r)=>{r.d(t,{AD:()=>p,wV:()=>u});var n=r(2600),o=r(20744),i=r(10860),a=r(28176),s=r(49416);let l=null,c=!0;function u(e,t,r,n){if(!t||!r)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(e,t,r)}catch(e){c=!1}const o=function(e,t,r){return r||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),r=l),r.getContext("2d").createImageData(e,t)}(t,r,n);return o.data.set(e,0),o}async function p(e,t){const{arrayBuffer:l,mediaType:c}=await async function(e,t){const r=(0,a.nV)(e);if(r?.isBase64)return{arrayBuffer:(0,s.K)(r.data),mediaType:r.mediaType};const o=await(0,n.c)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:e,parseGif:n}=await r.e(8560).then(r.bind(r,68560));if(e(l))return n(l,t)}if(u){const{isAnimatedPNG:e,parseApng:n}=await r.e(4464).then(r.bind(r,84464));if(e(l))return n(l,t)}return async function(e,t){const r=window.URL.createObjectURL(e);try{const{data:e}=await(0,n.c)(r,{...t,responseType:"image"});return e}catch(e){if(!(0,i.mA)(e))throw new o.c("invalid-image",`Could not fetch requested image at ${r}`);throw e}finally{window.URL.revokeObjectURL(r)}}(new Blob([l],{type:c}),t)}},94716:(e,t,r)=>{r.d(t,{c:()=>Be});var n=r(41948),o=r(26832),i=r(20744),a=r(95800),s=r(66360),l=r(94804),c=r(10860),u=r(57896),p=r(1580),f=(r(9456),r(72052),r(12552)),h=r(62484),g=r(95247),m=r(50853),y=r(67776),d=r(7488),x=r(66952),v=r(43912);const w="Expected location to be a Point instance";class A extends i.c{constructor(){super("invalid-input:location",w)}}var b=r(51232),_=r(13708),T=r(41104),S=r(60003),q=r(21136),M=r(17012),F=r(82315),R=r(47452),C=r(15688),L=r(97143),j=r(77080),I=(r(60708),r(53648)),P=r(24296),k=r(98472),N=r(58632);r(89560),r(74376),r(71520),r(4636);const O=(0,N.Su)();function U(e,t,r,n,o,i,a){o*=3;for(let s=0;s<i;++s){const i=e[t];n[o++]=i[0],n[o++]=i[1],n[o++]=a?i[2]:0,t+=r}return o/3}function E(e,t,r){if(t){const t=function(e,t,r){const n=function(e,t,r,n){const o=(e=>!Array.isArray(e[0]))(t)?(e,r)=>t[3*e+r]:(e,r)=>t[e][r],i=n?(0,P.k8)(n)/(0,P.gl)(n):1;return(0,N.XX)(e,((e,t)=>(0,k.s)(e,o(t,0)*i,o(t,1)*i,o(t,2))),r)}(O,e,t,r)?(0,N.Oq)(O):[0,0,1];return Math.abs(n[2])>Math.cos((0,I.EF)(80))?F.k.Z:Math.abs(n[1])>Math.abs(n[0])?F.k.Y:F.k.X}(e,e.length-1,r);if(t===F.k.X)return!(0,R.K_)(e,F.k.Y,F.k.Z);if(t===F.k.Y)return!(0,R.K_)(e,F.k.X,F.k.Z)}return!(0,R.K_)(e,F.k.X,F.k.Y)}var W,D;(D=W||(W={}))[D.NONE=0]="NONE",D[D.CCW_IS_HOLE=1]="CCW_IS_HOLE";var $=r(77048),z=r(54828);let G=null;function Z(e){if(0===e.length)return $.UN;const t=(0,$.Su)([Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY]);return(0,$.qe)(t,e),t}function B(e,t){const[r,n,o,i,a,s]=Z(e);return new g.c({xmin:r,ymin:n,zmin:o,xmax:i,ymax:a,zmax:s,spatialReference:t})}var Y=r(93184),H=r(71488);const V="esri.geometry.support.meshUtils.centerAt";const K=(0,h.Su)(),X=(0,h.Su)(),Q=(0,h.Su)();var J=r(28176);function ee(e){const t=(0,J.iu)(e.url);return r=>{const n=(0,J.SU)(r,t,t),o=n?n.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??r}}function te(e){return se.fromBlob(e,le(e.name,e.type))}const re=/^model\/gltf\+json$/,ne=/^model\/gltf-binary$/,oe=/\.gltf$/i,ie=/\.glb$/i;function ae(e){const t=new Map;let r,n=null;for(const{name:o,mimeType:i,source:a}of e)null===n&&(re.test(i)||oe.test(o)?(n=a.url,r="gltf"):(ne.test(i)||ie.test(o))&&(n=a.url,r="glb")),t.set(o,a.url),a.files.forEach(((e,r)=>t.set(r,e)));if(null==n)throw new i.c("mesh-load-external:missing-files","Missing files to load external mesh source");return new se(n,(()=>e.forEach((({source:e})=>e.dispose()))),t,r)}class se{constructor(e,t=(()=>{}),r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){const r=URL.createObjectURL(e);return new se(r,(()=>URL.revokeObjectURL(r)),void 0,t)}}function le(e,t){return re.test(t)||oe.test(e)?"gltf":ne.test(t)||oe.test(e)?"glb":void 0}var ce=r(3856),ue=r(2952),pe=r(54264);let fe=class extends ce.m{constructor(){super(),this.externalSources=new ue.c,this._explicitDisplaySource=null,this.addHandles((0,u.on)((()=>this.externalSources),"after-remove",(({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)}),{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,pe.Ud)(e))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every((t=>!(0,pe._o)(t,e)))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter((t=>(0,pe.v_)(t,e)))}get _implicitDisplaySource(){return this.externalSources.find(pe.Ud)}};(0,n._)([(0,p.qq)()],fe.prototype,"externalSources",void 0),(0,n._)([(0,p.qq)()],fe.prototype,"displaySource",null),(0,n._)([(0,p.qq)()],fe.prototype,"_implicitDisplaySource",null),(0,n._)([(0,p.qq)()],fe.prototype,"_explicitDisplaySource",void 0),fe=(0,n._)([(0,f.c)("esri.geometry.support.meshUtils.Metadata")],fe);var he=r(68612);const ge={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function me(e,t,r){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null!=t){ve[0]=t[0],ve[4]=t[1],ve[8]=t[2];for(let t=0;t<e.position.length;t+=3){for(let r=0;r<3;r++)xe[r]=e.position[t+r];(0,k.t)(xe,xe,ve);for(let r=0;r<3;r++)e.position[t+r]=xe[r]}if(t[0]!==t[1]||t[1]!==t[2]){ve[0]=1/t[0],ve[4]=1/t[1],ve[8]=1/t[2];for(let t=0;t<e.normal.length;t+=3){for(let r=0;r<3;r++)xe[r]=e.normal[t+r];(0,k.t)(xe,xe,ve),(0,k.n)(xe,xe);for(let r=0;r<3;r++)e.normal[t+r]=xe[r]}}}}(e,function(e,t,r){const n=(0,z._0)(t,r);if(null==e&&1===n)return null;if(null==e)return[n,n,n];if("number"==typeof e){const t=e*n;return[t,t,t]}return[null!=e.width?e.width*n:n,null!=e.depth?e.depth*n:n,null!=e.height?e.height*n:n]}(r?.size,r?.unit,t.spatialReference));const{vertexAttributes:n,vertexSpace:o,transform:i}=(0,z.EX)(e,t,{vertexSpace:r?.vertexSpace,geographic:r?.geographic});return{vertexAttributes:new S.s({...n,uv:e.uv}),vertexSpace:o,transform:i,components:[new v.c({faces:e.faces,material:r?.material||null})],spatialReference:t.spatialReference}}const ye={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},de={south:0,east:1,north:2,west:3,up:4,down:5},xe=(0,h.Su)(),ve=(0,he.Su)();var we=r(77556),Ae=r(15008),be=r(87104),_e=r(82448),Te=r(51120),Se=r(38496);const qe="esri.geometry.support.meshUtils.rotate";function Me(e,t,r,n=h.cX){if(null!=e){(0,Ae.IT)(je,(0,x.kX)(t),(0,x.Yz)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)Fe[r]=e[t+r]-n[r];(0,k.e)(Fe,Fe,je);for(let r=0;r<3;r++)e[t+r]=Fe[r]+n[r]}}}const Fe=(0,h.Su)(),Re=(0,h.Su)(),Ce=(0,h.Su)(),Le=(0,x.Su)(),je=(0,be.Su)(),Ie=(0,he.Su)(),Pe=(0,h.Su)(),ke="esri.geometry.support.meshUtils.scale";function Ne(e,t,r=h.cX){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)Oe[t]=e[n+t]-r[t];(0,k.h)(Oe,Oe,t);for(let t=0;t<3;t++)e[n+t]=Oe[t]+r[t]}}const Oe=(0,h.Su)(),Ue=(0,h.Su)(),Ee=(0,h.Su)();var We;const De="esri.geometry.Mesh";function $e(){return s.c.getLogger(De)}const ze={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:b.c,local:_.c}};let Ge=We=class extends(a.c.LoadableMixin((0,l.g)(m.c))){constructor(e){super(e),this.components=null,this.vertexSpace=new b.c,this.transform=null,this.metadata=new fe,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new S.s,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.addHandles((0,u.aE)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone()))})),(()=>this._clearSources()),{once:!0,sync:!0}))}))}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{components:e,spatialReference:t,vertexAttributes:r,vertexSpace:n}=this,o=r.position;if(0===o.length||e&&0===e.length)return new g.c({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t});if((0,q.k$)(n)){const{_untransformedBounds:e,transform:r}=this;return function([e,t,r,n,o,i],a,s,l){G??=new Float64Array(24);const c=G;return c[0]=e,c[1]=t,c[2]=r,c[3]=e,c[4]=o,c[5]=r,c[6]=n,c[7]=o,c[8]=r,c[9]=n,c[10]=t,c[11]=r,c[12]=e,c[13]=t,c[14]=i,c[15]=e,c[16]=o,c[17]=i,c[18]=n,c[19]=o,c[20]=i,c[21]=n,c[22]=t,c[23]=i,(0,z.project)({positions:c,transform:a,vertexSpace:s,inSpatialReference:l,outSpatialReference:l,outPositions:c}),B(c,l)}(e,r,n,t)}return B(o,t)}get _untransformedBounds(){return Z(this.vertexAttributes.position)}get anchor(){const e=(0,q.mA)(this.vertexSpace,this.spatialReference);if(null!=e)return e;const{center:t,zmin:r}=this._transformedExtent;return new y.c({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get origin(){const e=(0,q.mA)(this.vertexSpace,this.spatialReference);return null!=e?e:this._transformedExtent.center}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||(this.components=[]),this.components.push(v.c.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}$e().error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,x.GA)(e,t,r,Ze),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;const{spatialReference:n,vertexSpace:o}=e,i=r?.origin??e.anchor,a=r?.geographic;(0,q.k$)(o)?function(e,t,r){e.transform??=new T.c;const{vertexSpace:n,transform:o}=e,i=n.origin,a=Fe;if(!(0,Y.M)(r,a,e.spatialReference))return void s.c.getLogger(qe).error(`Failed to project specified origin (wkid:${r.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`);const l=(0,k.f)(Fe,a,i),c=o.applyLocalInverse(l,Re);o.rotation=(0,x.Jn)(o.rotation,t,(0,x.Su)());const u=o.applyLocalInverse(l,Ce),p=(0,k.f)(Fe,u,c),f=o.applyLocal(p,Fe);o.translation=(0,k.g)((0,h.Su)(),o.translation,f)}(e,t,i):(0,H.QL)(qe,o,n,a)?function(e,t,r){const n=e.spatialReference,o=(0,_e._s)(n),i=Pe;(0,Y.M)(r,i,o)||(0,Y.M)(e.origin,i,o);const a=e.vertexAttributes.position,s=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,c=new Float64Array(a.length),u=null!=s?new Float32Array(s.length):null,p=null!=l?new Float32Array(l.length):null;(0,Te.y)(o,i,je,o),(0,we.kr)(Ie,je);const f=Le;(0,k.t)((0,x.Yz)(Le),(0,x.Yz)(t),Ie),f[3]=t[3],(0,Se.K_)(a,n,c),null!=s&&null!=u&&(0,Se.cH)(s,a,c,n,u),null!=l&&null!=p&&(0,Se.GW)(l,a,c,n,p),Me(c,f,3,i),(0,Se.o$)(c,a,n),null!=s&&null!=u&&(Me(u,f,3),(0,Se.QP)(u,a,c,n,s)),null!=l&&null!=p&&(Me(p,f,4),(0,Se.Cr)(p,a,c,n,l)),e.vertexAttributesChanged()}(e,t,i):function(e,t,r){const n=Pe;if(!(0,Y.M)(r,n,e.spatialReference)){const t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,s.c.getLogger(qe).error(`Failed to project specified origin (wkid:${r.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}Me(e.vertexAttributes.position,t,3,n),Me(e.vertexAttributes.normal,t,3),Me(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,i)}(this,Ze,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;const{vertexSpace:n,vertexAttributes:o}=this,i=o?.position;if(!i)return this;if((0,q.k$)(n)){const[o,i,a]=n.origin;n.origin=(0,h.WK)(o+e,i+t,a+r)}else{for(let n=0;n<i.length;n+=3)i[n]+=e,i[n+1]+=t,i[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")?(function(e,t,r){if(!e.vertexAttributes?.position)return;const{vertexSpace:n,spatialReference:o}=e,i=r?.origin??e.anchor,a=r?.geographic,l=(0,H.QL)(ke,n,o,a);(0,q.k$)(n)?(e.transform??=new T.c,function(e,t,r,n){const o=(0,k.s)(Oe,n.x,n.y,n.z),i=(0,k.f)(Oe,o,t);e.applyLocalInverse(i,Ue);const a=(0,k.h)((0,h.Su)(),e.scale,r);e.scale=a,e.applyLocalInverse(i,i),(0,k.f)(i,i,Ue),e.translation=(0,k.g)((0,h.Su)(),e.translation,i)}(e.transform,n.origin,t,i)):l?function(e,t,r){const n=e.spatialReference,o=(0,_e._s)(n),i=Ee;(0,Y.M)(r,i,o)||(0,Y.M)(e.origin,i,o);const a=e.vertexAttributes.position,s=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,c=new Float64Array(a.length),u=null!=s?new Float32Array(s.length):null,p=null!=l?new Float32Array(l.length):null;(0,Se.K_)(a,n,c),null!=s&&null!=u&&(0,Se.cH)(s,a,c,n,u),null!=l&&null!=p&&(0,Se.GW)(l,a,c,n,p),Ne(c,t,i),(0,Se.o$)(c,a,n),null!=s&&null!=u&&(0,Se.QP)(u,a,c,n,s),null!=l&&null!=p&&(0,Se.Cr)(p,a,c,n,l),e.vertexAttributesChanged()}(e,t,i):function(e,t,r){const n=Ee;if(!(0,Y.M)(r,n,e.spatialReference)){const t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,s.c.getLogger(ke).error(`Failed to project specified origin (wkid:${r.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}Ne(e.vertexAttributes.position,t,n),e.vertexAttributesChanged()}(e,t,i)}(this,e,t),this):this}centerAt(e,t){return this._checkIfLoaded("centerAt()")?(function(e,t,r){if(!e.vertexAttributes?.position)return;const{vertexSpace:n}=e,o=r?.origin??e.anchor,i=r?.geographic,a=(0,H.QL)(V,n,o.spatialReference,i);(0,q.k$)(n)?function(e,t,r){const{vertexSpace:n}=e;if(!(0,q.k$)(n))return;const o=X,i=K;if(!(0,Y.M)(t,i,e.spatialReference))return void s.c.getLogger(V).error(`Failed to project centerAt location (wkid:${t.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`);if(!(0,Y.M)(r,o,e.spatialReference)){const t=e.origin;o[0]=t.x,o[1]=t.y,o[2]=t.z,s.c.getLogger(V).error(`Failed to project specified origin (wkid:${r.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}const a=(0,k.f)(Q,i,o);n.origin=(0,k.g)((0,h.Su)(),n.origin,a)}(e,t,o):a?function(e,t,r){const n=(0,z.qu)(e.vertexAttributes,r),{position:o,normal:i,tangent:a}=(0,z.mC)(n,t,!1);e.vertexAttributes.position=o,e.vertexAttributes.normal=i,e.vertexAttributes.tangent=a,e.vertexAttributesChanged()}(e,t,o):function(e,t,r){const n=X,o=K;if((0,Y.M)(t,o,e.spatialReference)){if(!(0,Y.M)(r,n,e.spatialReference)){const t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,s.c.getLogger(V).error(`Failed to project specified origin (wkid:${r.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let o=0;o<3;o++)e[n+o]+=t[o]-r[o]})(e.vertexAttributes.position,o,n),e.vertexAttributesChanged()}else s.c.getLogger(V).error(`Failed to project centerAt location (wkid:${t.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}(e,t,o)}(this,e,t),this):this}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){const{source:o}=t,{loadGLTFMesh:a}=await(0,c.Yv)(Promise.all([r.e(8108),r.e(2818)]).then(r.bind(r,42818)),n),s=await async function(e,t){if(Array.isArray(e)){if(!e.length)throw new i.c("mesh-load-external:missing-assets","There must be at least one file to load");return e[0]instanceof File?function(e){return ae(e.map((e=>({name:e.name,mimeType:e.type,source:te(e)}))))}(e):async function(e,t){const r=await(0,c.Y3)(e.map((async e=>{const r=await async function(e,t){const{parts:r,assetMimeType:n,assetName:o}=e;if(1===r.length)return new se(r[0].partUrl);const i=await e.toBlob(t);return(0,c.wp)(t),se.fromBlob(i,le(o,n))}(e);return(0,c.wp)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}})));if((0,c.wv)(t))throw r.forEach((e=>e.source.dispose())),(0,c.Uh)();return ae(r)}(e,t)}return te(e)}(o,n);(0,c.wp)(n);const l=a(new y.c({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:ee(s),signal:n?.signal,expectedType:s.type});l.then((()=>s.dispose()),(()=>s.dispose()));const{vertexAttributes:u,components:p}=await l;e.vertexAttributes=u,e.components=p}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(){return this.cloneWithVertexSpace(this.vertexSpace.clone())}cloneWithVertexSpace(e){let t=null;if(this.components){const e=new Map,r=new Map;t=this.components.map((t=>t.cloneWithDeduplication(e,r)))}const r={components:t,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),vertexSpace:e,transform:this.transform?.clone()??null,metadata:this.metadata.clone()};return new We(r)}cloneShallow(){return new We({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const t=r.e(4232).then(r.bind(r,4232)),n=this.load(),o=await Promise.all([t,n]),{toBinaryGLTF:i}=o[0];return i(this,e)}get memoryUsage(){let e=0;if(e+=this.vertexAttributes.memoryUsage,null!=this.components)for(const t of this.components)e+=t.memoryUsage;return e}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||($e().error(e,"Mesh must be loaded before applying operations"),!1)}static createBox(e,t){if(!(e instanceof y.c))return $e().error(".createBox()",w),null;const r=new We(me(function(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:r}=ye,n=4*e.length,o=new Float64Array(3*n),i=new Float32Array(3*n),a=new Float32Array(2*n),s=new Uint32Array(2*e.length*3);let l=0,c=0,u=0,p=0;for(let n=0;n<e.length;n++){const f=e[n],h=l/3;for(const e of t)s[p++]=h+e;const g=f.corners;for(let e=0;e<4;e++){const t=g[e];let n=0;a[u++]=.25*r[e][0]+f.uvOrigin[0],a[u++]=f.uvOrigin[1]-.25*r[e][1];for(let e=0;e<3;e++)0!==f.axis[e]?(o[l++]=.5*f.axis[e],i[c++]=f.axis[e]):(o[l++]=.5*t[n++],i[c++]=0)}}return{position:o,normal:i,uv:a,faces:s}}(),e,t));return t?.imageFace&&"all"!==t.imageFace?function(e,t){const r=e.components[0],n=r.faces,o=de[t],i=6*o,a=new Array(6),s=new Array(n.length-6);let l=0,c=0;for(let e=0;e<n.length;e++)e>=i&&e<i+6?a[l++]=n[e]:s[c++]=n[e];if(null!=e.vertexAttributes.uv){const t=new Float32Array(e.vertexAttributes.uv),r=4*o*2,n=[0,1,1,1,1,0,0,0];for(let e=0;e<n.length;e++)t[r+e]=n[e];e.vertexAttributes.uv=t}return e.components=[new v.c({faces:a,material:r.material}),new v.c({faces:s})],e}(r,t.imageFace):r}static createSphere(e,t){return e instanceof y.c?new We(me(function(e=0){const t=Math.round(8*2**e),r=2*t,n=(t-1)*(r+1)+2*r,o=new Float64Array(3*n),i=new Float32Array(3*n),a=new Float32Array(2*n),s=new Uint32Array((t-1)*r*2*3);let l=0,c=0,u=0,p=0;for(let e=0;e<=t;e++){const n=e/t*Math.PI+.5*Math.PI,f=Math.cos(n),h=Math.sin(n);xe[2]=h;const g=0===e||e===t,m=g?r-1:r;for(let n=0;n<=m;n++){const h=n/m*2*Math.PI;xe[0]=-Math.sin(h)*f,xe[1]=Math.cos(h)*f;for(let e=0;e<3;e++)o[l]=.5*xe[e],i[l]=xe[e],++l;a[c++]=(n+(g?.5:0))/r,a[c++]=e/t,0!==e&&n!==r&&(e!==t&&(s[u++]=p,s[u++]=p+1,s[u++]=p-r),1!==e&&(s[u++]=p,s[u++]=p-r,s[u++]=p-r-1)),p++}}return{position:o,normal:i,uv:a,faces:s}}(t?.densificationFactor||0),e,t)):($e().error(".createSphere()",w),null)}static createCylinder(e,t){return e instanceof y.c?new We(me(function(e=0){const t=Math.round(16*2**e),r=4*(t+1)+2*t,n=new Float64Array(3*r),o=new Float32Array(3*r),i=new Float32Array(2*r),a=new Uint32Array(4*t*3);let s=0,l=0,c=0,u=0,p=0;for(let e=0;e<=5;e++){const r=0===e||5===e,f=e<=1||e>=4,h=2===e||4===e,g=r?t-1:t;for(let m=0;m<=g;m++){const y=m/g*2*Math.PI,d=r?0:.5;xe[0]=d*Math.sin(y),xe[1]=d*-Math.cos(y),xe[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)n[s++]=xe[t],o[l++]=f?2===t?e<=1?1:-1:0:2===t?0:xe[t]/d;i[c++]=(m+(r?.5:0))/t,i[c++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,h||0===e||m===t||(5!==e&&(a[u++]=p,a[u++]=p+1,a[u++]=p-t),1!==e&&(a[u++]=p,a[u++]=p-t,a[u++]=p-t-1)),p++}}return{position:n,normal:o,uv:i,faces:a}}(t?.densificationFactor||0),e,t)):($e().error(".createCylinder()",w),null)}static createPlane(e,t){if(!(e instanceof y.c))return $e().error(".createPlane()",w),null;const r=t?.facing??"up",n=function(e,t){const r="number"==typeof t?t:null!=t?t.width:1,n="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:r,depth:n};case"north":case"south":return{width:r,height:n};case"east":case"west":return{depth:r,height:n}}}(r,t?.size);return new We(me(function(e){const t=ge.facingAxisOrderSwap[e],r=ge.position,n=ge.normal,o=new Float64Array(r.length),i=new Float32Array(n.length);let a=0;for(let e=0;e<4;e++){const e=a;for(let s=0;s<3;s++){const l=t[s],c=Math.abs(l)-1,u=l>=0?1:-1;o[a]=r[e+c]*u,i[a]=n[e+c]*u,a++}}return{position:o,normal:i,uv:new Float32Array(ge.uv),faces:new Uint32Array(ge.faces),isPlane:!0}}(r),e,{...t,size:n}))}static createFromPolygon(e,t){if(!(e instanceof d.c))return $e().error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;const r=function(e){const t=function(e,t,r,n){const o=e.length,i=new Array(o),a=new Array(o),s=new Array(o);let l=0,c=0,u=0,p=0;for(let t=0;t<o;++t)p+=e[t].length;const f=(0,C.Gg)(3*p);let h=0;for(let p=o-1;p>=0;p--){const g=e[p],m=r===W.CCW_IS_HOLE&&E(g,t,n);if(m&&1!==o)i[l++]=g;else{let e=g.length;for(let t=0;t<l;++t)e+=i[t].length;const r={index:h,pathLengths:new Array(l+1),count:e,holeIndices:new Array(l)};r.pathLengths[0]=g.length,g.length>0&&(s[u++]={index:h,count:g.length}),h=m?U(g,g.length-1,-1,f,h,g.length,t):U(g,0,1,f,h,g.length,t);for(let e=0;e<l;++e){const n=i[e];r.holeIndices[e]=h,r.pathLengths[e+1]=n.length,n.length>0&&(s[u++]={index:h,count:n.length}),h=U(n,0,1,f,h,n.length,t)}l=0,r.count>0&&(a[c++]=r)}}for(let e=0;e<l;++e){const r=i[e];r.length>0&&(s[u++]={index:h,count:r.length}),h=U(r,0,1,f,h,r.length,t)}return a.length=c,s.length=u,{position:f,polygons:a,outlines:s}}(e.rings,e.hasZ,W.CCW_IS_HOLE,e.spatialReference),r=new Array;let n=0,o=0;for(const e of t.polygons){const i=e.count,a=e.index,s=(0,C.lL)(t.position,3*a,3*i),l=e.holeIndices.map((e=>e-a)),c=(0,L.Uv)((0,M.e)(s,l,3));r.push({position:s,faces:c}),n+=s.length,o+=c.length}const i=function(e,t,r){if(1===e.length)return e[0];const n=(0,C.Gg)(t),o=new Array(r);let i=0,a=0,s=0;for(const t of e){for(let e=0;e<t.position.length;e++)n[i++]=t.position[e];for(const e of t.faces)o[a++]=e+s;s=i/3}return{position:n,faces:(0,L.Uv)(o)}}(r,n,o),a=Array.isArray(i.position)?(0,j.g)(i.position,3,{originalIndices:i.faces}):(0,j.g)(i.position.buffer,6,{originalIndices:i.faces});return i.position=(0,C.cp)(new Float64Array(a.buffer)),i.faces=a.indices,i}(e);return new We({vertexAttributes:new S.s({position:r.position}),components:[new v.c({faces:r.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new b.c})}static async createFromGLTF(e,t,n){if(!(e instanceof y.c)){const e=new A;throw $e().error(".createfromGLTF()",e.message),e}const{loadGLTFMesh:o}=await(0,c.Yv)(Promise.all([r.e(8108),r.e(2818)]).then(r.bind(r,42818)),n);return new We(await o(e,t,n))}static async createFromFiles(e,t,r){if((0,o.gx)($e(),"`Mesh.createFromFiles` is deprecated in favor of 'SceneLayer.convertMesh'",{replacement:"SceneLayer.convertMesh",version:"4.29"}),!(e instanceof y.c)){const e=new A;throw(e=>{$e().error(".createFromFiles()",e.message)})(e),e}if(!r?.layer)throw new i.c("invalid:no-layer","SceneLayer required for file to mesh conversion.");return r.layer.convertMesh(t,{location:e,...r})}static createWithExternalSource(e,t,r){const n=r?.extent??null,{x:o,y:i,z:a,spatialReference:s}=e,l=r?.transform?.clone()??new T.c,c=(0,h.WK)(o,i,a??0),u=(0,q.mm)(r?.vertexSpace??(0,q.GF)(s),c),p={source:t,extent:n},f=new fe;return f.externalSources.push(p),new We({metadata:f,transform:l,vertexSpace:u,spatialReference:s})}static createIncomplete(e,t){const{x:r,y:n,z:o,spatialReference:a}=e,s=t?.transform?.clone()??new T.c,l=(0,h.WK)(r,n,o??0),c=(0,q.mm)(t?.vertexSpace??(0,q.GF)(a),l),u=new We({transform:s,vertexSpace:c,spatialReference:a});return u.addResolvingPromise(Promise.reject(new i.c("mesh-incomplete","Mesh resources are not complete"))),u}};(0,n._)([(0,p.qq)({type:[v.c],json:{write:!0}})],Ge.prototype,"components",void 0),(0,n._)([(0,p.qq)({nonNullable:!0,types:ze,constructOnly:!0,json:{write:!0}})],Ge.prototype,"vertexSpace",void 0),(0,n._)([(0,p.qq)({type:T.c,json:{write:!0}})],Ge.prototype,"transform",void 0),(0,n._)([(0,p.qq)({constructOnly:!0})],Ge.prototype,"metadata",void 0),(0,n._)([(0,p.qq)()],Ge.prototype,"hasExtent",null),(0,n._)([(0,p.qq)()],Ge.prototype,"_transformedExtent",null),(0,n._)([(0,p.qq)()],Ge.prototype,"_untransformedBounds",null),(0,n._)([(0,p.qq)()],Ge.prototype,"anchor",null),(0,n._)([(0,p.qq)()],Ge.prototype,"origin",null),(0,n._)([(0,p.qq)({readOnly:!0,json:{read:!1}})],Ge.prototype,"extent",null),(0,n._)([(0,p.qq)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Ge.prototype,"hasZ",void 0),(0,n._)([(0,p.qq)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Ge.prototype,"hasM",void 0),(0,n._)([(0,p.qq)({type:S.s,nonNullable:!0,json:{write:!0}})],Ge.prototype,"vertexAttributes",void 0),Ge=We=(0,n._)([(0,f.c)(De)],Ge);const Ze=(0,x.Su)(),Be=Ge},15688:(e,t,r)=>{r.d(t,{Gg:()=>o,cp:()=>i,lL:()=>a,mw:()=>s,qW:()=>l});var n=r(72008);function o(e,t=!1){return e<=n._?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function i(e){return((0,n.c7)(e)?e.length:e.byteLength/8)<=n._?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function s(e,t){for(let r=0;r<t.length;++r)e[r]=t[r];return e}function l(e){return Array.isArray(e)?new Float64Array(e):e}},43912:(e,t,r)=>{r.d(t,{c:()=>y});var n,o=r(41948),i=r(40504),a=r(62088),s=r(66360),l=r(1580),c=r(33392),u=r(12552),p=r(53368),f=r(96344),h=r(70492),g=r(60003);let m=n=class extends i.am{static from(e){return(0,p.uY)(n,e)}constructor(e){super(e),this.faces=null,this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}castFaces(e){return(0,g.c)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},s.c.getLogger(this))}castMaterial(e){return(0,p.uY)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?h.c:f.c,e)}clone(){return new n({faces:(0,a.ct)(this.faces),shading:this.shading,material:(0,a.ct)(this.material),trustSourceNormals:this.trustSourceNormals,name:this.name})}cloneWithDeduplication(e,t){const r={faces:(0,a.ct)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(e,t):null,trustSourceNormals:this.trustSourceNormals,name:this.name};return new n(r)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,o._)([(0,l.qq)({json:{write:!0}})],m.prototype,"faces",void 0),(0,o._)([(0,c.W)("faces")],m.prototype,"castFaces",null),(0,o._)([(0,l.qq)({type:f.c,json:{write:!0}})],m.prototype,"material",void 0),(0,o._)([(0,c.W)("material")],m.prototype,"castMaterial",null),(0,o._)([(0,l.qq)()],m.prototype,"name",void 0),(0,o._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"shading",void 0),(0,o._)([(0,l.qq)({type:Boolean})],m.prototype,"trustSourceNormals",void 0),m=n=(0,o._)([(0,u.c)("esri.geometry.support.MeshComponent")],m);const y=m},51232:(e,t,r)=>{r.d(t,{c:()=>u});var n=r(41948),o=r(3856),i=r(40504),a=r(1580),s=(r(9456),r(66360),r(72052),r(9968)),l=r(12552);let c=class extends((0,o.q)(i.am)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};(0,n._)([(0,s.G)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,l.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},13708:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(41948),o=r(3856),i=r(40504),a=r(1580),s=(r(9456),r(66360),r(72052),r(9968)),l=r(12552),c=r(62484);let u=class extends((0,o.q)(i.am)){constructor(e){super(e),this.type="local",this.origin=(0,c.Su)()}};(0,n._)([(0,s.G)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n._)([(0,l.c)("esri.geometry.support.MeshLocalVertexSpace")],u);const p=u},96344:(e,t,r)=>{r.d(t,{c:()=>f});var n,o=r(41948),i=r(44728),a=r(40504),s=r(1580),l=(r(9456),r(66360),r(72052),r(12552)),c=r(7192),u=r(56160);let p=n=class extends a.am{constructor(e){super(e),this.color=null,this.colorTexture=null,this.colorTextureTransform=null,this.normalTexture=void 0,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const r=null!=e?e.get(this):null;if(r)return r;const o=new n(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{color:null!=this.color?this.color.clone():null,colorTexture:this.colorTexture?.cloneWithDeduplication(e),normalTexture:this.normalTexture?.cloneWithDeduplication(e),alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:this.colorTextureTransform?.clone(),normalTextureTransform:this.normalTextureTransform?.clone()}}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null!=this.color?16:0,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null!=this.normalTextureTransform?20:0,e}};(0,o._)([(0,s.qq)({type:i.c,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,s.qq)({type:c.c,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,s.qq)({type:u.c,json:{write:!0}})],p.prototype,"colorTextureTransform",void 0),(0,o._)([(0,s.qq)({type:c.c,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,s.qq)({type:u.c,json:{write:!0}})],p.prototype,"normalTextureTransform",void 0),(0,o._)([(0,s.qq)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,s.qq)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,s.qq)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),p=n=(0,o._)([(0,l.c)("esri.geometry.support.MeshMaterial")],p);const f=p},70492:(e,t,r)=>{r.d(t,{c:()=>f});var n,o=r(41948),i=r(44728),a=r(1580),s=(r(9456),r(66360),r(72052),r(12552)),l=r(96344),c=r(7192),u=r(56160);let p=n=class extends l.c{constructor(e){super(e),this.emissiveColor=null,this.emissiveTexture=null,this.emissiveTextureTransform=void 0,this.occlusionTexture=null,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null,this.metallicRoughnessTextureTransform=void 0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const r=null!=e?e.get(this):null;if(r)return r;const o=new n(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null!=this.metallicRoughnessTextureTransform?20:0,e}clonePropertiesWithDeduplication(e){return{...super.clonePropertiesWithDeduplication(e),emissiveColor:this.emissiveColor?.clone(),emissiveTexture:this.emissiveTexture?.cloneWithDeduplication(e),emissiveTextureTransform:this.emissiveTextureTransform?.clone(),occlusionTexture:this.occlusionTexture?.cloneWithDeduplication(e),occlusionTextureTransform:this.occlusionTextureTransform?.clone(),metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:this.metallicRoughnessTexture?.cloneWithDeduplication(e),metallicRoughnessTextureTransform:this.metallicRoughnessTextureTransform?.clone()}}};(0,o._)([(0,a.qq)({type:i.c,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.qq)({type:c.c,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.qq)({type:u.c,json:{write:!0}})],p.prototype,"emissiveTextureTransform",void 0),(0,o._)([(0,a.qq)({type:c.c,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.qq)({type:u.c,json:{write:!0}})],p.prototype,"occlusionTextureTransform",void 0),(0,o._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.qq)({type:c.c,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,a.qq)({type:u.c,json:{write:!0}})],p.prototype,"metallicRoughnessTextureTransform",void 0),p=n=(0,o._)([(0,s.c)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const f=p},7192:(e,t,r)=>{r.d(t,{c:()=>y});var n,o=r(41948),i=(r(9456),r(63316)),a=r(40504),s=r(1580),l=r(53368),c=(r(72052),r(33600)),u=r(12552),p=r(18996),f=r(91952);const h=new WeakMap;let g=0,m=n=class extends a.am{constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,f.t)(e.src,n),crossOrigin:e.crossOrigin};t[r]=o}else if(e instanceof HTMLCanvasElement){const n=e.getContext("2d").getImageData(0,0,e.width,e.height),o={type:"canvas-element",imageData:this._encodeImageData(n)};t[r]=o}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,f.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[r]=o}else if(e instanceof ImageData){const n={type:"image-data",imageData:this._encodeImageData(e)};t[r]=n}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=this._decodeImageData(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return this._decodeImageData(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const e=this.data,t=this.url;if(e instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(e.getContext("2d").getImageData(0,0,e.width,e.height));if(e instanceof ImageData)return this._imageDataContainsTransparent(e);if(t){const e=t.substr(t.length-4,4).toLowerCase(),r=t.substr(0,15).toLocaleLowerCase();if(".png"===e||"data:image/png;"===r)return!0}return!1}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(h.has(this.data)||h.set(this.data,++g),t(h.get(this.data))):t()}get memoryUsage(){let e=0;if(e+=null!=this.url?this.url.length:0,null!=this.data){const t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(){const e={url:this.url,data:this.data,wrap:this._cloneWrap()};return new n(e)}cloneWithDeduplication(e){const t=e.get(this);if(t)return t;const r=this.clone();return e.set(this,r),r}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}_decodeImageData(e){const t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,i.wV)(r,e.width,e.height)}_imageDataContainsTransparent(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,l.uY)(n,e)}};(0,o._)([(0,s.qq)({type:String,json:{write:f.w}})],m.prototype,"url",null),(0,o._)([(0,s.qq)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,s.qq)()],m.prototype,"data",null),(0,o._)([(0,p.G)("data")],m.prototype,"writeData",null),(0,o._)([(0,c.E)("data")],m.prototype,"readData",null),(0,o._)([(0,s.qq)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,o._)([(0,s.qq)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,o._)([(0,s.qq)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,o._)([(0,u.c)("esri.geometry.support.MeshTexture")],m);const y=m},56160:(e,t,r)=>{r.d(t,{c:()=>c});var n=r(41948),o=r(3856),i=r(40504),a=r(1580),s=(r(9456),r(66360),r(72052),r(12552));let l=class extends((0,o.q)(i.am)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n._)([(0,s.c)("esri.geometry.support.MeshTextureTransform")],l);const c=l},41104:(e,t,r)=>{r.d(t,{c:()=>d});var n,o=r(41948),i=r(40504),a=r(1580),s=(r(9456),r(66360),r(72052),r(12552)),l=r(15008),c=r(87104),u=r(41512),p=r(2620),f=r(98472),h=r(62484),g=r(66952);let m=n=class extends i.am{constructor(e){super(e),this.translation=(0,h.Su)(),this.rotationAxis=(0,h.eu)(g.up),this.rotationAngle=0,this.scale=(0,h.WK)(1,1,1)}get rotation(){return(0,g.eE)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,h.ct)((0,g.Yz)(e)),this.rotationAngle=(0,g.i4)(e)}get localMatrix(){const e=(0,c.Su)();return(0,u.yG)(y,(0,g.Yz)(this.rotation),(0,g.kX)(this.rotation)),(0,l.um)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,l.S_)((0,c.Su)(),this.localMatrix)}applyLocal(e,t){return(0,f.e)(t,e,this.localMatrix)}applyLocalInverse(e,t){return(0,f.e)(t,e,this.localMatrixInverse)}equals(e){return this===e||null!=e&&(0,l.sF)(this.localMatrix,e.localMatrix)}clone(){const e={translation:(0,h.ct)(this.translation),rotationAxis:(0,h.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,h.ct)(this.scale)};return new n(e)}};(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"translation",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAxis",void 0),(0,o._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAngle",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"scale",void 0),(0,o._)([(0,a.qq)()],m.prototype,"rotation",null),(0,o._)([(0,a.qq)()],m.prototype,"localMatrix",null),(0,o._)([(0,a.qq)()],m.prototype,"localMatrixInverse",null),m=n=(0,o._)([(0,s.c)("esri.geometry.support.MeshTransform")],m);const y=(0,p.Su)(),d=m},60003:(e,t,r)=>{r.d(t,{c:()=>h,s:()=>p});var n,o=r(41948),i=r(40504),a=r(62088),s=r(66360),l=r(1580),c=r(33392),u=r(12552);let p=n=class extends i.am{constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return h(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},s.c.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&s.c.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),h(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},s.c.getLogger(this))}castUv(e){return h(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},s.c.getLogger(this))}castNormal(e){return h(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},s.c.getLogger(this))}castTangent(e){return h(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},s.c.getLogger(this))}clone(){const e={position:(0,a.ct)(this.position),uv:(0,a.ct)(this.uv),normal:(0,a.ct)(this.normal),tangent:(0,a.ct)(this.tangent),color:(0,a.ct)(this.color)};return new n(e)}clonePositional(){const e={position:(0,a.ct)(this.position),normal:(0,a.ct)(this.normal),tangent:(0,a.ct)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get memoryUsage(){let e=0;return e+=this.position.byteLength,null!=this.uv&&(e+=this.uv.byteLength),null!=this.normal&&(e+=this.normal.byteLength),null!=this.tangent&&(e+=this.tangent.byteLength),null!=this.color&&(e+=this.color.byteLength),e}};function f(e,t,r,n){const{loggerTag:o,stride:i}=t;return e.length%i!=0?(n.error(o,`Invalid array length, expected a multiple of ${i}`),new r([])):e}function h(e,t,r,n,o){if(!e)return e;if(e instanceof t)return f(e,n,t,o);for(const i of r)if(e instanceof i)return f(new t(e),n,t,o);if(Array.isArray(e))return f(new t(e),n,t,o);{const n=r.map((e=>`'${e.name}'`));return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function g(e,t,r){t[r]=function(e){const t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}(0,o._)([(0,l.qq)({json:{write:g}})],p.prototype,"color",void 0),(0,o._)([(0,c.W)("color")],p.prototype,"castColor",null),(0,o._)([(0,l.qq)({nonNullable:!0,json:{write:g}})],p.prototype,"position",void 0),(0,o._)([(0,c.W)("position")],p.prototype,"castPosition",null),(0,o._)([(0,l.qq)({json:{write:g}})],p.prototype,"uv",void 0),(0,o._)([(0,c.W)("uv")],p.prototype,"castUv",null),(0,o._)([(0,l.qq)({json:{write:g}})],p.prototype,"normal",void 0),(0,o._)([(0,c.W)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,l.qq)({json:{write:g}})],p.prototype,"tangent",void 0),(0,o._)([(0,c.W)("tangent")],p.prototype,"castTangent",null),p=n=(0,o._)([(0,u.c)("esri.geometry.support.MeshVertexAttributes")],p)},66952:(e,t,r)=>{r.d(t,{GA:()=>p,Jn:()=>u,Su:()=>l,Yz:()=>f,eE:()=>c,i4:()=>h,kX:()=>g,up:()=>m});var n=r(53648),o=r(41512),i=r(2620),a=r(98472),s=r(62484);function l(e=m){return[e[0],e[1],e[2],e[3]]}function c(e,t,r=l()){return(0,a.c)(r,e),r[3]=t,r}function u(e,t,r=l()){return(0,o.yG)(y,e,g(e)),(0,o.yG)(d,t,g(t)),(0,o.iW)(y,d,y),function(e,t){return e[3]=t,e}(r,(0,n.UB)((0,o.C0)(r,y)))}function p(e,t,r,n=l()){return c(s.UV,e,x),c(s.IR,t,v),c(s.wx,r,w),u(x,v,x),u(x,w,n),n}function f(e){return e}function h(e){return e[3]}function g(e){return(0,n.EF)(e[3])}r(37008);const m=[0,0,1,0],y=(0,i.Su)(),d=(0,i.Su)(),x=(l(),l()),v=l(),w=l()},54264:(e,t,r)=>{r.d(t,{CT:()=>x,Ki:()=>d,Si:()=>s,Ud:()=>c,_o:()=>m,ai:()=>l,mK:()=>v,v_:()=>g});var n=r(2600),o=r(92400),i=r(10860),a=r(4048);class s{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,o.yK)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const r=await Promise.all(t.map((t=>t.toBlob(e))));return(0,i.wp)(e),new Blob(r)}}class l{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,n.c)(this.partUrl,{responseType:"blob"});return(0,i.wp)(e),t}}function c(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function u(e){return!!Array.isArray(e)&&e.every((e=>e instanceof s))}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:r}=e;return p.test(t)||f.test(r)}return p.test(e.assetMimeType)||f.test(e.assetName)}function g(e,t){if(!e)return!1;const{source:r}=e;return function(e,t){if(Array.isArray(e)){const r=e;return r.length>0&&r.every((e=>y(e,t)))}return y(e,t)}(r,t)}function m(e,t){if(e===t)return!0;const{source:r}=e,{source:n}=t;if(r===n)return!0;if(u(r)&&u(n)){if(r.length!==n.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...r].sort(e),o=[...n].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(o[e]))return!1;return!0}return!1}function y(e,t){return e instanceof s&&e.isOnService(t)}function d(e,t){return e instanceof File?(0,a.K0)(e,t):(0,a.me)(e.assetMimeType,t)??(0,a.If)(e.assetName,t)}function x(e){return Array.isArray(e)?e:[e]}function v(e){return!!e.original}},77080:(e,t,r)=>{r.d(t,{g:()=>i});var n=r(53648),o=r(97143);function i(e,t,r){const i=Array.isArray(e),u=i?e.length/t:e.byteLength/(4*t),p=i?e:new Uint32Array(e,0,u*t),f=r?.minReduction??0,h=r?.originalIndices||null,g=h?h.length:0,m=r?.componentOffsets||null;let y=0;if(m)for(let e=0;e<m.length-1;e++){const t=m[e+1]-m[e];t>y&&(y=t)}else y=u;const d=Math.floor(1.1*y)+1;(null==c||c.length<2*d)&&(c=new Uint32Array((0,n.w7)(2*d)));for(let e=0;e<2*d;e++)c[e]=0;let x=0;const v=!!m&&!!h,w=v?g:u;let A=(0,o.aw)(u);const b=new Uint32Array(g),_=1.96;let T=0!==f?Math.ceil(4*_*_/(f*f)*f*(1-f)):w,S=1,q=m?m[1]:w;for(let e=0;e<w;e++){if(e===T){const t=1-x/e;if(t+_*Math.sqrt(t*(1-t)/e)<f)return null;T*=2}if(e===q){for(let e=0;e<2*d;e++)c[e]=0;if(h)for(let e=m[S-1];e<m[S];e++)b[e]=A[h[e]];q=m[++S]}const r=v?h[e]:e,n=r*t,o=l(p,n,t);let i=o%d,s=x;for(;0!==c[2*i+1];){if(c[2*i]===o){const e=c[2*i+1]-1;if(a(p,n,e*t,t)){s=A[e];break}}i++,i>=d&&(i-=d)}s===x&&(c[2*i]=o,c[2*i+1]=r+1,x++),A[r]=s}if(0!==f&&1-x/u<f)return null;if(v){for(let e=m[S-1];e<b.length;e++)b[e]=A[h[e]];A=(0,o.Uv)(b)}const M=i?new Array(x):new Uint32Array(x*t);x=0;for(let e=0;e<w;e++)A[e]===x&&(s(p,(v?h[e]:e)*t,M,x*t,t),x++);if(h&&!v){const e=new Uint32Array(g);for(let t=0;t<e.length;t++)e[t]=A[h[t]];A=(0,o.Uv)(e)}return{buffer:Array.isArray(M)?M:M.buffer,indices:A,uniqueCount:x}}function a(e,t,r,n){for(let o=0;o<n;o++)if(e[t+o]!==e[r+o])return!1;return!0}function s(e,t,r,n,o){for(let i=0;i<o;i++)r[n+i]=e[t+i]}function l(e,t,r){let n=0;for(let o=0;o<r;o++)n=e[t+o]+n|0,n=n+(n<<11)+(n>>>2)|0;return n>>>0}let c=null},71488:(e,t,r)=>{r.d(t,{Kk:()=>s,QL:()=>l,yO:()=>a});var n=r(26832),o=r(66360),i=r(21136);function a(e,t){return e.isGeographic||e.isWebMercator&&(t??!0)}function s(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}function l(e,t,r,a){if(void 0!==a){(0,n.O2)(o.c.getLogger(e),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const s="local"===t.type;if(!(0,i.k$)(t)||a===s)return r.isGeographic||r.isWebMercator&&a;o.c.getLogger(e).warnOnce(`Specifying the 'geographic' parameter (${a}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}return s(t,r)}},54828:(e,t,r)=>{r.d(t,{CE:()=>A,EX:()=>_,_0:()=>I,_S:()=>b,iS:()=>S,mC:()=>M,project:()=>q,qu:()=>R});var n=r(24296),o=r(68612),i=r(15008),a=r(87104),s=r(98472),l=r(62484),c=r(77556),u=r(60074),p=r(82448),f=r(51120),h=r(62880),g=r(15688),m=r(41104),y=r(21136),d=r(48952),x=r(71488),v=r(38496);function w(e,t,r){return(0,x.yO)(t.spatialReference,r?.geographic)?M(e,t,!1,r):function(e,t,r){const n=new Float64Array(e.position.length),o=e.position,i=t.x,a=t.y,s=t.z??0,l=I(r?r.unit:null,t.spatialReference);for(let e=0;e<o.length;e+=3)n[e]=o[e]*l+i,n[e+1]=o[e+1]*l+a,n[e+2]=o[e+2]*l+s;return{position:n,normal:e.normal,tangent:e.tangent}}(e,t,r)}function A(e,t=a.IJ){const{position:r,normal:n,tangent:o}=e;return{position:(0,d.a)(new Float64Array(r.length),r,t),normal:null!=n?(0,v.W4)(n,new Float32Array(n.length),t):null,tangent:null!=o?(0,v.AT)(o,new Float32Array(o.length),t):null}}function b(e,t,r,n){const{position:o,normal:i,tangent:a}=e;if(!(0,y.k$)(t))return{position:o,normal:i,tangent:a};const s=(0,y.mA)(t,n);return w(A(e,r?.localMatrix),s,{geographic:"local"===t.type})}function _(e,t,r){const n=(0,y.Al)(t,r),o=t.spatialReference,i=(0,y.k$)(n);if(!i)return{vertexAttributes:w(e,t,r),vertexSpace:n,transform:null};const{position:a,normal:s,tangent:l}=e,c=(0,x.Kk)(n,o);switch(n.type){case"georeferenced":return c?{vertexAttributes:M(e,t,i,r),vertexSpace:n,transform:null}:{vertexAttributes:{position:a,normal:s,tangent:l},vertexSpace:n,transform:new m.c};case"local":return{vertexAttributes:{position:a,normal:s,tangent:l},vertexSpace:n,transform:new m.c}}}function T(e,t,r){return(0,x.yO)(t.spatialReference,r?.geographic)?R(e,t,r):F(e,t,r)}function S(e,t,r,n,o){if(!(0,y.k$)(t))return T(e,n,o);const{spatialReference:i}=n,a=b(e,t,r,i);return n.equals((0,y.mA)(t,i))?F(a,n,o):T(a,n,o)}function q({positions:e,transform:t,vertexSpace:r,inSpatialReference:n,outSpatialReference:o,outPositions:c,localMode:m}){const y=r.origin??l.cX,x=null!=r.origin?t?.localMatrix??a.IJ:a.IJ;if("georeferenced"===r.type){const t=c??(0,g.Gg)(e.length);if((0,i.yK)(x,a.IJ)?(0,g.mw)(t,e):(0,d.a)(t,e,x),!(0,s.i)(y,l.cX)){const[e,r,n]=y;for(let o=0;o<t.length;o+=3)t[o]+=e,t[o+1]+=r,t[o+2]+=n}return(0,h.projectBuffer)(t,n,0,t,o,0,t.length/3),t}let v=n;const w=(0,p._s)(n);v=o.isWebMercator&&m||!(0,u.canProjectWithoutEngine)(n,w)?v:w,(0,f.y)(n,y,P,v),(0,i.iW)(P,P,x);const A=c??(0,g.Gg)(e.length);return(0,d.a)(A,e,P),(0,h.projectBuffer)(A,v,0,A,o,0,A.length/3),A}function M(e,t,r,n){const o=t.spatialReference,i=C(t,n,P),a=new Float64Array(e.position.length),s=function(e,t,r,n){(0,d.a)(n,e,t);const o=new Float64Array(e.length);return(0,v.o$)(n,o,r)}(e.position,i,o,a),l=(0,c.yy)(N,i),u=function(e,t,r,n,o){if(null==r)return null;const i=new Float32Array(r.length);return(0,d.b)(i,r,n),(0,v.QP)(i,e,t,o,i),i}(s,a,e.normal,l,o),p=function(e,t,r,n,o){if(null==r)return null;const i=new Float32Array(r.length);(0,d.b)(i,r,n,4);for(let e=3;e<i.length;e+=4)i[e]=r[e];return(0,v.Cr)(i,e,t,o,i),i}(s,a,e.tangent,l,o);if(r){const{x:e,y:r,z:n}=t;(0,d.t)(s,s,[-e,-r,-(n??0)])}return{position:s,normal:u,tangent:p}}function F(e,t,r){const n=new Float64Array(e.position.length),o=e.position,i=t.x,a=t.y,s=t.z??0,l=I(r?r.unit:null,t.spatialReference);for(let e=0;e<o.length;e+=3)n[e]=(o[e]-i)/l,n[e+1]=(o[e+1]-a)/l,n[e+2]=(o[e+2]-s)/l;return{position:n,normal:e.normal,tangent:e.tangent}}function R(e,t,r){const n=t.spatialReference;C(t,r,P);const o=(0,i.S_)(k,P),a=new Float64Array(e.position.length),s=function(e,t,r,n){const o=(0,v.K_)(e,t,n),i=new Float64Array(o.length);return(0,d.a)(i,o,r),i}(e.position,n,o,a),l=(0,c.yy)(N,o);return{position:s,normal:L(e.normal,e.position,a,n,l),tangent:j(e.tangent,e.position,a,n,l)}}function C(e,t,r){(0,f.y)(e.spatialReference,[e.x,e.y,e.z??0],r,(0,p._s)(e.spatialReference));const n=I(t?t.unit:null,e.spatialReference);return(0,i.aU)(r,r,[n,n,n]),r}function L(e,t,r,n,o){if(null==e)return null;const i=(0,v.cH)(e,t,r,n,new Float32Array(e.length));return(0,d.b)(i,i,o),i}function j(e,t,r,n,o){if(null==e)return null;const i=(0,v.GW)(e,t,r,n,new Float32Array(e.length));return(0,d.b)(i,i,o,4),i}function I(e,t){if(null==e)return 1;const r=(0,n.eg)(t);return 1/(0,n.ck)(r,"meters",e)}const P=(0,a.Su)(),k=(0,a.Su)(),N=(0,o.Su)()},38496:(e,t,r)=>{r.d(t,{AT:()=>b,Cr:()=>T,GW:()=>_,K_:()=>v,QP:()=>x,W4:()=>A,cH:()=>d,o$:()=>w});var n=r(66360),o=r(77556),i=r(68612),a=r(87104),s=r(98472),l=r(62484),c=r(82448),u=r(51120),p=r(62880),f=r(60544),h=r(29120),g=r(71004),m=r(48952);const y=()=>n.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function d(e,t,r,n,o){return q(n)?(S(F.TO_PCPF,g.Yj.fromTypedArray(e),g.Ax.fromTypedArray(t),g.Ax.fromTypedArray(r),n,g.Yj.fromTypedArray(o)),o):(y().error("Cannot convert spatial reference to PCPF"),o)}function x(e,t,r,n,o){return q(n)?(S(F.FROM_PCPF,g.Yj.fromTypedArray(e),g.Ax.fromTypedArray(t),g.Ax.fromTypedArray(r),n,g.Yj.fromTypedArray(o)),o):(y().error("Cannot convert to spatial reference from PCPF"),o)}function v(e,t,r){return(0,p.projectBuffer)(e,t,0,r,(0,c._s)(t),0,e.length/3),r}function w(e,t,r){return(0,p.projectBuffer)(e,(0,c._s)(r),0,t,r,0,e.length/3),t}function A(e,t,r){return(0,o.yy)(I,r),(0,m.b)(t,e,I),(0,o.QT)(I)||(0,m.n)(t,t),t}function b(e,t,r){if((0,o.yy)(I,r),(0,m.b)(t,e,I,4),(0,o.QT)(I)||(0,m.n)(t,t,4),e!==t)for(let r=3;r<e.length;r+=4)t[r]=e[r];return t}function _(e,t,r,n,o){if(!q(n))return y().error("Cannot convert spatial reference to PCPF"),o;S(F.TO_PCPF,g.Yj.fromTypedArray(e,4*Float32Array.BYTES_PER_ELEMENT),g.Ax.fromTypedArray(t),g.Ax.fromTypedArray(r),n,g.Yj.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}function T(e,t,r,n,o){if(!q(n))return y().error("Cannot convert to spatial reference from PCPF"),o;S(F.FROM_PCPF,g.Yj.fromTypedArray(e,16),g.Ax.fromTypedArray(t),g.Ax.fromTypedArray(r),n,g.Yj.fromTypedArray(o,16));for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}function S(e,t,r,n,i,a){if(!t)return;const l=r.count,p=(0,c._s)(i);if(M(i))for(let r=0;r<l;r++)n.getVec(r,C),t.getVec(r,L),(0,u.y)(p,C,j,p),(0,o.kr)(I,j),e===F.FROM_PCPF&&(0,o.oL)(I,I),(0,s.t)(L,L,I),a.setVec(r,L);else for(let i=0;i<l;i++){n.getVec(i,C),t.getVec(i,L),(0,u.y)(p,C,j,p),(0,o.kr)(I,j);const l=(0,h.MB)(r.get(i,1));let c=Math.cos(l);e===F.TO_PCPF&&(c=1/c),I[0]*=c,I[1]*=c,I[2]*=c,I[3]*=c,I[4]*=c,I[5]*=c,e===F.FROM_PCPF&&(0,o.oL)(I,I),(0,s.t)(L,L,I),(0,s.n)(L,L),a.setVec(i,L)}return a}function q(e){return M(e)||function(e){return e.isWebMercator}(e)}function M(e){return e.isWGS84||(0,f.Ub)(e)||(0,f.qg)(e)||(0,f.UB)(e)}var F,R;(R=F||(F={}))[R.TO_PCPF=0]="TO_PCPF",R[R.FROM_PCPF=1]="FROM_PCPF";const C=(0,l.Su)(),L=(0,l.Su)(),j=(0,a.Su)(),I=(0,i.Su)()},21136:(e,t,r)=>{r.d(t,{Al:()=>h,GF:()=>g,k$:()=>p,mA:()=>f,mm:()=>m,wX:()=>u});var n=r(26832),o=r(66360),i=r(67776),a=r(51232),s=r(13708),l=r(48952);function c(){return o.c.getLogger("esri.geometry.Mesh")}function u(e){const{vertexSpace:t}=e;if(null!=t.origin)return e.clone();const{anchor:r}=e,n=r.clone(),o=new a.c({origin:[n.x,n.y,n.z]}),i=e.cloneWithVertexSpace(o),{position:s}=i.vertexAttributes;return i.vertexAttributes.position=(0,l.t)(new Float64Array(s.length),s,[-n.x,-n.y,-(n.z??0)]),i.vertexAttributesChanged(),i}function p(e){return null!=e.origin}function f(e,t){if(!p(e))return null;const[r,n,o]=e.origin;return new i.c({x:r,y:n,z:o,spatialReference:t})}function h(e,t){const{x:r,y:o,z:i,spatialReference:l}=e,u=[r,o,i??0];if(void 0!==t?.geographic){if((0,n.O2)(c(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!t?.vertexSpace)return t?.geographic?new s.c({origin:u}):new a.c({origin:u});c().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!t?.vertexSpace)return l.isGeographic||l.isWebMercator?new s.c({origin:u}):new a.c({origin:u});switch(t.vertexSpace){case"local":return new s.c({origin:u});case"georeferenced":return new a.c({origin:u});case"georeferenced-absolute":return new a.c}}function g(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}function m(e,t){return"local"===e?new s.c({origin:t}):new a.c({origin:t})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7752],{25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),a=r(94360),l=r(1580),o=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),c=r(18996),p=r(28484);let d=i=class extends s.am{static get allTime(){return y}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,a.aU)(r,e,t));let n=this.end;if(n){const r=(0,a.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,a.g1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,l;if(n>=t&&n<=r?a=n:t>=n&&t<=s&&(a=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),null!=a&&null!=l&&!isNaN(a)&&!isNaN(l)){const e=new i;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,a.g1)(s,e,t,r)),null!=l&&(n.end=(0,a.g1)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,o.E)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,o.E)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=i=(0,n._)([(0,u.c)("esri.TimeExtent")],d);const y=new d,h=new d({start:void 0,end:void 0}),m=d},22156:(e,t,r)=>{r.d(t,{MR:()=>a,qm:()=>l});var i=r(41948),n=r(12552);let s=0;const a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,n.c)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,i._)([(0,n.c)("esri.core.NumericIdentifiable")],t),t};let o=class extends(a(class{})){};o=(0,i._)([(0,n.c)("esri.core.Identifiable")],o)},71316:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var i=r(41948),n=r(2600),s=r(20744),a=r(66360),l=r(53648),o=r(26496),u=r(10860),c=r(1580),p=(r(9456),r(72052),r(12552)),d=r(98472),y=r(62484),h=r(22080),m=r(95247),f=r(56156),g=r(62880),v=r(81436),_=r(38724),q=r(16660),w=r(28584),b=r(66576),x=r(98768),I=r(3116),S=r(21488),E=r(69204);let T=class extends((0,q.u)((0,b.Y)((0,x.K)((0,I.I)((0,o.U)((0,w.G)((0,_.C)(v.c)))))))){constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.spatialReference=new f.c({wkid:4326,vcsWkid:115700}),this.fullExtent=new m.c(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}_verifyArray(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const t of e)if("number"!=typeof t)return!1;return!0}_initFullExtent(e){const t=e.root?.boundingVolume;if(!t)return;if(t.box){const e=t?.box;if(e[3]>7972671&&e[7]>7972671&&e[11]>7945940)return}const r=e.root?.transform,i=(0,y.Su)();if(t.region&&this._verifyArray(t.region,6)){const e=t.region,r=(0,l.UB)(e[0]),i=(0,l.UB)(e[1]),n=e[4],s=(0,l.UB)(e[2]),a=(0,l.UB)(e[3]),o=e[5];this.fullExtent=new m.c({xmin:r,ymin:i,zmin:n,xmax:s,ymax:a,zmax:o,spatialReference:this.spatialReference})}else if(t.sphere&&this._verifyArray(t.sphere,4)){const e=t.sphere,n=(0,y.WK)(e[0],e[1],e[2]),s=e[3]/Math.sqrt(3),a=(0,y.Su)();(0,d.f)(a,n,(0,y.WK)(-s,-s,-s));const l=(0,y.Su)();if((0,d.g)(l,n,(0,y.WK)(s,s,s)),r&&this._verifyArray(r,16)){const e=r;(0,d.e)(i,a,e),(0,d.c)(a,i),(0,d.e)(i,l,e),(0,d.c)(l,i)}(0,g.projectBuffer)(a,h.MJ,0,a,f.c.WGS84,0,1),(0,g.projectBuffer)(l,h.MJ,0,l,f.c.WGS84,0,1);const o=(0,y.Su)(),u=(0,y.Su)();(0,d.x)(o,a,l),(0,d.B)(u,a,l),this.fullExtent=new m.c({xmin:o[0],ymin:o[1],zmin:o[2],xmax:u[0],ymax:u[1],zmax:u[2],spatialReference:this.spatialReference})}else if(t.box&&this._verifyArray(t.box,12)){const e=t.box,i=(0,y.WK)(e[0],e[1],e[2]),n=(0,y.WK)(e[3],e[4],e[5]),s=(0,y.WK)(e[6],e[7],e[8]),a=(0,y.WK)(e[9],e[10],e[11]),l=[];for(let e=0;e<8;++e)l.push((0,y.Su)());if((0,d.g)(l[0],i,n),(0,d.g)(l[0],l[0],s),(0,d.g)(l[0],l[0],a),(0,d.y)(l[1],i,n),(0,d.g)(l[1],l[1],s),(0,d.g)(l[1],l[1],a),(0,d.g)(l[2],i,n),(0,d.y)(l[2],l[2],s),(0,d.g)(l[2],l[2],a),(0,d.y)(l[3],i,n),(0,d.y)(l[3],l[3],s),(0,d.g)(l[3],l[3],a),(0,d.g)(l[4],i,n),(0,d.g)(l[4],l[4],s),(0,d.y)(l[4],l[4],a),(0,d.y)(l[5],i,n),(0,d.g)(l[5],l[5],s),(0,d.y)(l[5],l[5],a),(0,d.g)(l[6],i,n),(0,d.y)(l[6],l[6],s),(0,d.y)(l[6],l[6],a),(0,d.y)(l[7],i,n),(0,d.y)(l[7],l[7],s),(0,d.y)(l[7],l[7],a),r&&this._verifyArray(r,16)){const e=r;for(let t=0;t<8;++t)(0,d.e)(l[t],l[t],e)}const o=(0,y.WK)(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE),u=(0,y.WK)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)(0,g.projectBuffer)(l[e],h.MJ,0,l[e],f.c.WGS84,0,1),(0,d.x)(u,u,l[e]),(0,d.B)(o,o,l[e]);this.fullExtent=new m.c({xmin:u[0],ymin:u[1],zmin:u[2],xmax:o[0],ymax:o[1],zmax:o[2],spatialReference:this.spatialReference})}}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new s.c("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(e){(0,u.CE)(e)}if(this.url){const e=(0,n.c)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then((e=>{this._initFullExtent(e.data)}),(e=>{(0,u.CE)(e)}));await e}}async fetchAttributionData(){return this.load().then((()=>({})))}_validateElevationInfo(){const e=this.elevationInfo,t="Integrated mesh 3d tiles layers";(0,E.A$)(a.c.getLogger(this),(0,E.Ez)(t,"absolute-height",e)),(0,E.A$)(a.c.getLogger(this),(0,E.W8)(t,e))}};(0,i._)([(0,c.qq)({type:["IntegratedMesh3DTilesLayer"]})],T.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.qq)({type:f.c})],T.prototype,"spatialReference",void 0),(0,i._)([(0,c.qq)({type:m.c})],T.prototype,"fullExtent",void 0),(0,i._)([(0,c.qq)(S.Kg)],T.prototype,"elevationInfo",null),(0,i._)([(0,c.qq)({type:["show","hide"]})],T.prototype,"listMode",void 0),(0,i._)([(0,c.qq)(S.qW)],T.prototype,"url",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],T.prototype,"type",void 0),(0,i._)([(0,c.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],T.prototype,"path",void 0),(0,i._)([(0,c.qq)({type:Number,json:{read:!1,origins:{"web-scene":{name:"layerDefinition.minScale",write:!0},"portal-item":{name:"layerDefinition.minScale",write:!0}}}})],T.prototype,"minScale",void 0),(0,i._)([(0,c.qq)({type:Number,json:{read:!1,origins:{"web-scene":{name:"layerDefinition.maxScale",write:!0},"portal-item":{name:"layerDefinition.maxScale",write:!0}}}})],T.prototype,"maxScale",void 0),T=(0,i._)([(0,p.c)("esri.layers.IntegratedMesh3DTilesLayer")],T);const P=T},81436:(e,t,r)=>{r.d(t,{c:()=>_});var i=r(41948),n=(r(60708),r(2600)),s=r(20744),a=r(77860),l=r(22156),o=r(95800),u=r(66360),c=r(10860),p=r(28176),d=r(1580),y=(r(9456),r(72052),r(12552)),h=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(a.c.EventedMixin((0,l.MR)(o.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",n=r&&r.portal&&r.portal.url||h.default.portalUrl;throw u.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.mA)(e)||u.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.qq)()],v.prototype,"url",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.c)("esri.layers.Layer")],v);const _=v},38724:(e,t,r)=>{r.d(t,{C:()=>a});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,n.qq)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.APIKeyMixin")],t),t}},16660:(e,t,r)=>{r.d(t,{u:()=>o});var i=r(41948),n=r(66360),s=r(1580),a=(r(9456),r(72052),r(12552)),l=r(48212);const o=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.K0)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.oR)(e,n.c.getLogger(this)))}};return(0,i._)([(0,s.qq)()],t.prototype,"title",null),(0,i._)([(0,s.qq)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,a.c)("esri.layers.mixins.ArcGISService")],t),t}},28584:(e,t,r)=>{r.d(t,{G:()=>a});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>b});var i=r(41948),n=r(6220),s=r(47620),a=r(2600),l=r(40196),o=r(20744),u=r(66360),c=r(70680),p=r(10860),d=r(28176),y=r(1580),h=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),_=r(9764),q=r(53039),w=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new _.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||u.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,w.CI)(r);let n,a;if(i)n=r.portal.url;else try{n=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!n||!(0,d.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new _.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,w.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.c.getDefault();if(n&&n.loaded&&(0,d.k7)(n.restUrl)===(0,d.k7)(i))return n.user;const o=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,l.aG)((0,a.c)(o,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?q.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,d.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new o.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.qq)({type:_.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>a});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},69204:(e,t,r)=>{function i(e,t){return t?.mode?t.mode:function(e){return e?u:c}(e).mode}function n(e,t){return i(null!=e&&e.hasZ,t)}function s(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function a(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function o(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>o,Ez:()=>s,W8:()=>l,ay:()=>a,m6:()=>n}),r(35764);const u={mode:"absolute-height",offset:0},c={mode:"on-the-ground",offset:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7752],{25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),a=r(94360),l=r(1580),o=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),c=r(18996),p=r(28484);let d=i=class extends s.am{static get allTime(){return y}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,a.aU)(r,e,t));let n=this.end;if(n){const r=(0,a.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,a.g1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,l;if(n>=t&&n<=r?a=n:t>=n&&t<=s&&(a=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),null!=a&&null!=l&&!isNaN(a)&&!isNaN(l)){const e=new i;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,a.g1)(s,e,t,r)),null!=l&&(n.end=(0,a.g1)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,o.E)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,o.E)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=i=(0,n._)([(0,u.c)("esri.TimeExtent")],d);const y=new d,h=new d({start:void 0,end:void 0}),m=d},22156:(e,t,r)=>{r.d(t,{MR:()=>a,qm:()=>l});var i=r(41948),n=r(12552);let s=0;const a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,n.c)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,i._)([(0,n.c)("esri.core.NumericIdentifiable")],t),t};let o=class extends(a(class{})){};o=(0,i._)([(0,n.c)("esri.core.Identifiable")],o)},71316:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var i=r(41948),n=r(2600),s=r(20744),a=r(66360),l=r(53648),o=r(26496),u=r(10860),c=r(1580),p=(r(9456),r(72052),r(12552)),d=r(98472),y=r(62484),h=r(22080),m=r(95247),f=r(56156),g=r(62880),v=r(81436),_=r(38724),q=r(16660),w=r(28584),b=r(66576),x=r(98768),I=r(3116),S=r(21488),E=r(69204);let T=class extends((0,q.u)((0,b.Y)((0,x.K)((0,I.I)((0,o.U)((0,w.G)((0,_.C)(v.c)))))))){constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.spatialReference=new f.c({wkid:4326,vcsWkid:115700}),this.fullExtent=new m.c(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}_verifyArray(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const t of e)if("number"!=typeof t)return!1;return!0}_initFullExtent(e){const t=e.root?.boundingVolume;if(!t)return;if(t.box){const e=t?.box;if(e[3]>7972671&&e[7]>7972671&&e[11]>7945940)return}const r=e.root?.transform,i=(0,y.Su)();if(t.region&&this._verifyArray(t.region,6)){const e=t.region,r=(0,l.UB)(e[0]),i=(0,l.UB)(e[1]),n=e[4],s=(0,l.UB)(e[2]),a=(0,l.UB)(e[3]),o=e[5];this.fullExtent=new m.c({xmin:r,ymin:i,zmin:n,xmax:s,ymax:a,zmax:o,spatialReference:this.spatialReference})}else if(t.sphere&&this._verifyArray(t.sphere,4)){const e=t.sphere,n=(0,y.WK)(e[0],e[1],e[2]),s=e[3]/Math.sqrt(3),a=(0,y.Su)();(0,d.f)(a,n,(0,y.WK)(-s,-s,-s));const l=(0,y.Su)();if((0,d.g)(l,n,(0,y.WK)(s,s,s)),r&&this._verifyArray(r,16)){const e=r;(0,d.e)(i,a,e),(0,d.c)(a,i),(0,d.e)(i,l,e),(0,d.c)(l,i)}(0,g.projectBuffer)(a,h.MJ,0,a,f.c.WGS84,0,1),(0,g.projectBuffer)(l,h.MJ,0,l,f.c.WGS84,0,1);const o=(0,y.Su)(),u=(0,y.Su)();(0,d.x)(o,a,l),(0,d.B)(u,a,l),this.fullExtent=new m.c({xmin:o[0],ymin:o[1],zmin:o[2],xmax:u[0],ymax:u[1],zmax:u[2],spatialReference:this.spatialReference})}else if(t.box&&this._verifyArray(t.box,12)){const e=t.box,i=(0,y.WK)(e[0],e[1],e[2]),n=(0,y.WK)(e[3],e[4],e[5]),s=(0,y.WK)(e[6],e[7],e[8]),a=(0,y.WK)(e[9],e[10],e[11]),l=[];for(let e=0;e<8;++e)l.push((0,y.Su)());if((0,d.g)(l[0],i,n),(0,d.g)(l[0],l[0],s),(0,d.g)(l[0],l[0],a),(0,d.y)(l[1],i,n),(0,d.g)(l[1],l[1],s),(0,d.g)(l[1],l[1],a),(0,d.g)(l[2],i,n),(0,d.y)(l[2],l[2],s),(0,d.g)(l[2],l[2],a),(0,d.y)(l[3],i,n),(0,d.y)(l[3],l[3],s),(0,d.g)(l[3],l[3],a),(0,d.g)(l[4],i,n),(0,d.g)(l[4],l[4],s),(0,d.y)(l[4],l[4],a),(0,d.y)(l[5],i,n),(0,d.g)(l[5],l[5],s),(0,d.y)(l[5],l[5],a),(0,d.g)(l[6],i,n),(0,d.y)(l[6],l[6],s),(0,d.y)(l[6],l[6],a),(0,d.y)(l[7],i,n),(0,d.y)(l[7],l[7],s),(0,d.y)(l[7],l[7],a),r&&this._verifyArray(r,16)){const e=r;for(let t=0;t<8;++t)(0,d.e)(l[t],l[t],e)}const o=(0,y.WK)(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE),u=(0,y.WK)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)(0,g.projectBuffer)(l[e],h.MJ,0,l[e],f.c.WGS84,0,1),(0,d.x)(u,u,l[e]),(0,d.B)(o,o,l[e]);this.fullExtent=new m.c({xmin:u[0],ymin:u[1],zmin:u[2],xmax:o[0],ymax:o[1],zmax:o[2],spatialReference:this.spatialReference})}}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new s.c("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(e){(0,u.CE)(e)}if(this.url){const e=(0,n.c)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then((e=>{this._initFullExtent(e.data)}),(e=>{(0,u.CE)(e)}));await e}}async fetchAttributionData(){return this.load().then((()=>({})))}_validateElevationInfo(){const e=this.elevationInfo,t="Integrated mesh 3d tiles layers";(0,E.A$)(a.c.getLogger(this),(0,E.Ez)(t,"absolute-height",e)),(0,E.A$)(a.c.getLogger(this),(0,E.W8)(t,e))}};(0,i._)([(0,c.qq)({type:["IntegratedMesh3DTilesLayer"]})],T.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.qq)({type:f.c})],T.prototype,"spatialReference",void 0),(0,i._)([(0,c.qq)({type:m.c})],T.prototype,"fullExtent",void 0),(0,i._)([(0,c.qq)(S.Kg)],T.prototype,"elevationInfo",null),(0,i._)([(0,c.qq)({type:["show","hide"]})],T.prototype,"listMode",void 0),(0,i._)([(0,c.qq)(S.qW)],T.prototype,"url",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],T.prototype,"type",void 0),(0,i._)([(0,c.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],T.prototype,"path",void 0),(0,i._)([(0,c.qq)({type:Number,json:{read:!1,origins:{"web-scene":{name:"layerDefinition.minScale",write:!0},"portal-item":{name:"layerDefinition.minScale",write:!0}}}})],T.prototype,"minScale",void 0),(0,i._)([(0,c.qq)({type:Number,json:{read:!1,origins:{"web-scene":{name:"layerDefinition.maxScale",write:!0},"portal-item":{name:"layerDefinition.maxScale",write:!0}}}})],T.prototype,"maxScale",void 0),T=(0,i._)([(0,p.c)("esri.layers.IntegratedMesh3DTilesLayer")],T);const P=T},81436:(e,t,r)=>{r.d(t,{c:()=>_});var i=r(41948),n=(r(60708),r(2600)),s=r(20744),a=r(77860),l=r(22156),o=r(95800),u=r(66360),c=r(10860),p=r(28176),d=r(1580),y=(r(9456),r(72052),r(12552)),h=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(a.c.EventedMixin((0,l.MR)(o.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",n=r&&r.portal&&r.portal.url||h.default.portalUrl;throw u.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.mA)(e)||u.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.qq)()],v.prototype,"url",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.c)("esri.layers.Layer")],v);const _=v},38724:(e,t,r)=>{r.d(t,{C:()=>a});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,n.qq)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.APIKeyMixin")],t),t}},16660:(e,t,r)=>{r.d(t,{u:()=>o});var i=r(41948),n=r(66360),s=r(1580),a=(r(9456),r(72052),r(12552)),l=r(48212);const o=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.K0)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.oR)(e,n.c.getLogger(this)))}};return(0,i._)([(0,s.qq)()],t.prototype,"title",null),(0,i._)([(0,s.qq)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,a.c)("esri.layers.mixins.ArcGISService")],t),t}},28584:(e,t,r)=>{r.d(t,{G:()=>a});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>b});var i=r(41948),n=r(6220),s=r(47620),a=r(2600),l=r(40196),o=r(20744),u=r(66360),c=r(70680),p=r(10860),d=r(28176),y=r(1580),h=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),_=r(9764),q=r(53039),w=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new _.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||u.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,w.CI)(r);let n,a;if(i)n=r.portal.url;else try{n=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!n||!(0,d.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new _.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,w.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.c.getDefault();if(n&&n.loaded&&(0,d.k7)(n.restUrl)===(0,d.k7)(i))return n.user;const o=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,l.aG)((0,a.c)(o,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?q.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,d.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new o.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.qq)({type:_.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>a});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},69204:(e,t,r)=>{function i(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?o:u}(e).mode}(null!=e&&e.hasZ,t)}function n(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function s(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function a(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>l,Ez:()=>n,W8:()=>a,ay:()=>s,m6:()=>i}),r(24296),r(35764);const o={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}}}]);
|