@arcgis/core 4.34.0-next.21 → 4.34.0-next.23
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/applications/Components/arcadeFeatureUtils.d.ts +5 -0
- package/applications/Components/arcadeFeatureUtils.js +5 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{bcaf6edf887e4afbbdd2.js → 02dc6e31b1244e5bb785.js} +1 -1
- package/assets/esri/core/workers/chunks/{871fae52d2fddc9e7794.js → 04c17957c15234ca0321.js} +1 -1
- package/assets/esri/core/workers/chunks/084236ca316aad980192.js +1 -0
- package/assets/esri/core/workers/chunks/0b484224a92b52c34330.js +1 -0
- package/assets/esri/core/workers/chunks/{822b32aaeec05a347c84.js → 0ba6177ba118a0f032e2.js} +1 -1
- package/assets/esri/core/workers/chunks/0f6203ae32663b2b52db.js +1 -0
- package/assets/esri/core/workers/chunks/12723e79b996969e304e.js +1 -0
- package/assets/esri/core/workers/chunks/{bd7b985f7962b1cc7b8a.js → 146520d263b910b5bdc7.js} +1 -1
- package/assets/esri/core/workers/chunks/{445ddf57d2f503a0b98b.js → 15064c3b21b325d5c2f6.js} +1 -1
- package/assets/esri/core/workers/chunks/19ae76283a0cb0fe4dee.js +346 -0
- package/assets/esri/core/workers/chunks/{82a5000296134834d1ac.js → 1d75cb1747ffb7b8b050.js} +1 -1
- package/assets/esri/core/workers/chunks/20bcd2e6cf02e057ad7d.js +1 -0
- package/assets/esri/core/workers/chunks/{55ce214a10fb6fc2e901.js → 24fe862b607ec927e07f.js} +1 -1
- package/assets/esri/core/workers/chunks/30fae1f066dc3cd781f1.js +1 -0
- package/assets/esri/core/workers/chunks/{7ec73f63929b1623de72.js → 3793f282ddaccd3465f2.js} +1 -1
- package/assets/esri/core/workers/chunks/3fcd73ba832cb53d3a07.js +1 -0
- package/assets/esri/core/workers/chunks/{5e7f35bf1aab93cb1c52.js → 4cea5170939c8d363ef7.js} +1 -1
- package/assets/esri/core/workers/chunks/5253cca467fe9bc0a210.js +1 -0
- package/assets/esri/core/workers/chunks/{735d96d2b951cc1df3a3.js → 576e408fb0834f3948e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{27c9d3f6cebca087a123.js → 6136bf09950adc46bc33.js} +1 -1
- package/assets/esri/core/workers/chunks/{dfd9ac2e28c96900c53e.js → 6c33ecffbc783cb8f944.js} +1 -1
- package/assets/esri/core/workers/chunks/6ca764b4baadef5c1515.js +1 -0
- package/assets/esri/core/workers/chunks/{fcdf714339060731fe1c.js → 7051bcc178eb512819f6.js} +1 -1
- package/assets/esri/core/workers/chunks/7cfba5cec425221962e8.js +1 -0
- package/assets/esri/core/workers/chunks/{3a753ce4de2e6ad40f7b.js → 86d6007c45f2aa643ac8.js} +1 -1
- package/assets/esri/core/workers/chunks/92ad9098006568358550.js +1 -0
- package/assets/esri/core/workers/chunks/{2ed698579befe73caafd.js → 94d75f3b215e3bd1b4d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{15d1ab71aaf6bcf3145b.js → a7a5b89c2bb69f3af59c.js} +1 -1
- package/assets/esri/core/workers/chunks/{1d9e44bdd129cc682ae5.js → ac93b3f1ff15a95d926c.js} +1 -1
- package/assets/esri/core/workers/chunks/b4512d62b6cb26fc6b25.js +1 -0
- package/assets/esri/core/workers/chunks/{63e984a65ee670449a4a.js → b4bb461955a4c2bce072.js} +1 -1
- package/assets/esri/core/workers/chunks/{abc75c945f3cfb1629b0.js → ba5b24beebeb703b5919.js} +1 -1
- package/assets/esri/core/workers/chunks/{51afd0e71df1825d7593.js → c64fa94cba71ba2794e2.js} +1 -1
- package/assets/esri/core/workers/chunks/c94cc026c4ed330408fb.js +1 -0
- package/assets/esri/core/workers/chunks/cab1a1067f44ce374673.js +1 -0
- package/assets/esri/core/workers/chunks/{3f4a8c874c022dace9be.js → d1b363c418a67b087306.js} +1 -1
- package/assets/esri/core/workers/chunks/d45383d76ba99718b6d9.js +1 -0
- package/assets/esri/core/workers/chunks/{8b19fe829a9dc26fb3fe.js → d915d0a30d9beb24bd3a.js} +1 -1
- package/assets/esri/core/workers/chunks/{bbca1b85656d9ba71e4c.js → def8a854a05f17d3538e.js} +1 -1
- package/assets/esri/core/workers/chunks/{273ff53a68714e4daad5.js → e49a135a2933306a6105.js} +1 -1
- package/assets/esri/core/workers/chunks/{d31fa648497b0af97dc1.js → e9a9174c4d1a0a9effb6.js} +1 -1
- package/assets/esri/core/workers/chunks/f3d5d92e0aefc2593208.js +1 -0
- package/assets/esri/core/workers/chunks/{fc8bbc571216edd9ef5a.js → f3e3c2340452c1d60c95.js} +1 -1
- package/assets/esri/core/workers/chunks/{85b0e2a898251d048dda.js → f42155b7a4e6c5e80757.js} +1 -1
- package/assets/esri/core/workers/chunks/f43110391f124b8a179c.js +1009 -0
- package/assets/esri/core/workers/chunks/f90573c9dc36e51cd588.js +1 -0
- package/assets/esri/core/workers/chunks/{080a8a1c6fe2d215142d.js → fb5e2b1ced03eef28e96.js} +1 -1
- package/assets/esri/core/workers/chunks/fe73e74e3e4278aedcc3.js +1 -0
- package/config.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/lang.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/support/MeshComponent.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/MeshTexture.js +1 -1
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/MeshVertexAttributes.js +1 -1
- package/geometry/support/meshUtils/convertMeshVertexSpace.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/meshCloneUtils.js +5 -0
- package/interfaces.d.ts +183 -41
- package/kernel.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/support/SceneModification.js +1 -1
- package/layers/support/SceneModifications.js +1 -1
- package/layers/support/rasterDatasets/MRFRaster.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/networks/support/utils.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraph/GraphAddFieldIndexResult.js +1 -1
- package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
- package/rest/knowledgeGraph/GraphAddPropertyResult.js +1 -1
- package/rest/knowledgeGraph/GraphDataModelOperationResult.d.ts +1 -1
- package/rest/knowledgeGraph/GraphDataModelOperationResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeleteFieldIndexResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeletePropertyResult.js +1 -1
- package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +1 -1
- package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +1 -1
- package/rest/knowledgeGraph/GraphUpdateSearchIndexResult.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/VideoLayerView2D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/state/GoToOperation.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/viewingModeUtils.js +5 -0
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderTargets.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl/ManagedFBOResource.js +1 -1
- package/views/3d/webgl.d.ts +2 -0
- package/views/3d/webgl.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/draw/DrawScreenTool.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/support/TextureCompressionWorkerHandle.js +1 -1
- package/views/support/layerViewUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/06c3725d6cc21e7e4bcf.js +0 -1
- package/assets/esri/core/workers/chunks/0f5643d5437f48c63225.js +0 -1
- package/assets/esri/core/workers/chunks/1c7393bcd6e85ba25e1b.js +0 -1
- package/assets/esri/core/workers/chunks/2a784da5fa3f502d1803.js +0 -1
- package/assets/esri/core/workers/chunks/2e3f620c79ec04033a6e.js +0 -1
- package/assets/esri/core/workers/chunks/48953ddf0bbcf3d77e04.js +0 -1
- package/assets/esri/core/workers/chunks/5b7464137aacf1c5fd78.js +0 -1
- package/assets/esri/core/workers/chunks/7925e8ffa8027b59410e.js +0 -1
- package/assets/esri/core/workers/chunks/8235a997acb45ab43173.js +0 -1
- package/assets/esri/core/workers/chunks/8fa6c938e8dc7bbfaeb7.js +0 -1
- package/assets/esri/core/workers/chunks/9d2cb559dd9af4e1727c.js +0 -1
- package/assets/esri/core/workers/chunks/9eb1a171f5ef1fef42ed.js +0 -346
- package/assets/esri/core/workers/chunks/bac5e1d50b69f0d94694.js +0 -1
- package/assets/esri/core/workers/chunks/bcefb413d03d59506b5a.js +0 -1009
- package/assets/esri/core/workers/chunks/c317819ab0544c50c078.js +0 -1
- package/assets/esri/core/workers/chunks/c96fed4889712f5a9135.js +0 -1
- package/assets/esri/core/workers/chunks/cb4c49d5b70f9563bc46.js +0 -1
- package/assets/esri/core/workers/chunks/e9aa1d9ded8a52a40c57.js +0 -1
- package/assets/esri/core/workers/chunks/f65ad6a41c0c69bf1b21.js +0 -1
- package/assets/esri/core/workers/chunks/f806e9221dff7fcfc2f9.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9695],{13069:(t,e,n)=>{n.d(e,{AG:()=>a,lk:()=>o,vD:()=>i,yS:()=>s});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function s(){return`{${o().toUpperCase()}}`}function i(){return`{${o()}}`}function a(t){const e=t.toUpperCase();return"{"!==t[0]?`{${e}}`:e}},24212:(t,e,n)=>{function r(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?l:u}(t).mode}(null==t||(t.hasZ??!1),e)}function o(t,e,n){return n&&n.mode!==e?`${t} only support ${e} elevation mode`:null}function s(t,e,n){return n?.mode===e?`${t} do not support ${e} elevation mode`:null}function i(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function a(t,e){e&&t.warn(".elevationInfo=",e)}n.d(e,{$7:()=>s,B:()=>o,XF:()=>a,tW:()=>i,w7:()=>r}),n(83047),n(16271);const l={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},49695:(t,e,n)=>{n.r(e),n.d(e,{default:()=>C});var r=n(90237),o=n(79608),s=n(59693),i=n(69622),a=n(69540),l=n(25482),u=n(97768),p=n(10107),c=(n(44208),n(53966),n(87811),n(40608)),d=n(87024),f=n(86738),y=n(88625);let h=class extends(l.A.JSONSupportMixin(a.A.ClonableMixin(i.A))){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,u.CM)(this.position,t.position)&&(0,u.CM)(this.elevationInfo,t.elevationInfo)&&(0,s.xH)(this.feature,t.feature)}};(0,r._)([(0,p.MZ)({type:f.A,json:{write:{isRequired:!0}}})],h.prototype,"position",void 0),(0,r._)([(0,p.MZ)({type:y.A}),(0,d.P)()],h.prototype,"elevationInfo",void 0),(0,r._)([(0,p.MZ)(s.N1)],h.prototype,"feature",void 0),h=(0,r._)([(0,c.$)("esri.analysis.LineOfSightAnalysisObserver")],h);const g=h;let v=class extends(l.A.JSONSupportMixin(a.A)){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,u.CM)(this.position,t.position)&&(0,u.CM)(this.elevationInfo,t.elevationInfo)&&(0,s.xH)(this.feature,t.feature)}};(0,r._)([(0,p.MZ)({type:f.A,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,d.P)()],v.prototype,"position",void 0),(0,r._)([(0,p.MZ)({type:y.A}),(0,d.P)()],v.prototype,"elevationInfo",void 0),(0,r._)([(0,p.MZ)(s.N1)],v.prototype,"feature",void 0),v=(0,r._)([(0,c.$)("esri.analysis.LineOfSightAnalysisTarget")],v);var m=n(4576),w=n(5503),x=n(62885),b=n(36708),A=n(98988),j=n(70328),M=n(24212);const _=w.A.ofType(v);let I=class extends o.A{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,b.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},b.pc))}get targets(){return this._get("targets")||new _}set targets(t){this._set("targets",(0,x.V)(t,this.targets,_))}get spatialReference(){return null!=this.observer?.position?this.observer.position.spatialReference:null}get valid(){return null!=this.observer?.position}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==this.observer?.position||null==t)return null;const e=t=>"absolute-height"===(0,M.w7)(t.position,t.elevationInfo),n=this.observer.position,r=(0,j.fA)(n.x,n.y,n.z,n.x,n.y,n.z);for(const e of this.targets)if(null!=e.position){const n=(0,A.projectOrLoad)(e.position,t);if(null!=n.pending)return{pending:n.pending,extent:null};if(null!=n.geometry){const{x:t,y:e,z:o}=n.geometry;(0,j.iT)(r,[t,e,o])}}const o=(0,j.w1)(r,t);return e(this.observer)&&this.targets.every(e)||(o.zmin=void 0,o.zmax=void 0),{pending:null,extent:o}}clear(){this.observer=null,this.targets.removeAll()}equals(t){return this===t||super.equals(t)&&(0,u.CM)(this.observer,t.observer)&&(0,m.aI)(this.targets.toArray(),t.targets.toArray(),(t,e)=>t.equals(e))}};(0,r._)([(0,p.MZ)({type:["line-of-sight"]})],I.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:g,json:{read:!0,write:!0}})],I.prototype,"observer",void 0),(0,r._)([(0,p.MZ)({cast:x.H,type:_,nonNullable:!0,json:{read:!0,write:!0}})],I.prototype,"targets",null),(0,r._)([(0,p.MZ)({value:null,readOnly:!0})],I.prototype,"extent",void 0),(0,r._)([(0,p.MZ)()],I.prototype,"spatialReference",null),(0,r._)([(0,p.MZ)({readOnly:!0})],I.prototype,"valid",null),I=(0,r._)([(0,c.$)("esri.analysis.LineOfSightAnalysis")],I);var O=n(92071),R=n(4146),Z=n(16131);const S=w.A.ofType(v);let U=class extends((0,Z.q)((0,O.P)(R.A))){constructor(t){super(t),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new I,this.opacity=1}initialize(){this.addHandles((0,b.wB)(()=>this.analysis,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},b.pc))}async load(){return null!=this.analysis&&this.addResolvingPromise(this.analysis.waitComputeExtent()),this}get observer(){return this.analysis?.observer}set observer(t){const{analysis:e}=this;e&&(e.observer=t)}get targets(){return null!=this.analysis?this.analysis.targets:new w.A}set targets(t){(0,x.V)(t,this.analysis?.targets)}get fullExtent(){return null!=this.analysis?this.analysis.extent:null}get spatialReference(){return null!=this.analysis?this.analysis.spatialReference:null}releaseAnalysis(t){this.analysis===t&&(this.analysis=new I)}};(0,r._)([(0,p.MZ)({json:{read:!1},readOnly:!0})],U.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:["LineOfSightLayer"]})],U.prototype,"operationalLayerType",void 0),(0,r._)([(0,p.MZ)({type:g,json:{read:!0,write:{isRequired:!0,ignoreOrigin:!0}}})],U.prototype,"observer",null),(0,r._)([(0,p.MZ)({type:S,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],U.prototype,"targets",null),(0,r._)([(0,p.MZ)({type:I,nonNullable:!0,json:{read:!1,write:!1}})],U.prototype,"analysis",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],U.prototype,"fullExtent",null),(0,r._)([(0,p.MZ)({readOnly:!0})],U.prototype,"spatialReference",null),(0,r._)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],U.prototype,"opacity",void 0),(0,r._)([(0,p.MZ)({type:["show","hide"]})],U.prototype,"listMode",void 0),U=(0,r._)([(0,c.$)("esri.layers.LineOfSightLayer")],U);const C=U},76553:(t,e,n)=>{function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>r})},80200:(t,e,n)=>{n.d(e,{T:()=>r,d:()=>h});const r={Base64:0,Hex:1,String:2,Raw:3},o=8,s=(1<<o)-1;function i(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function a(t){const e=[];for(let n=0,r=t.length*o;n<r;n+=o)e[n>>5]|=(t.charCodeAt(n/o)&s)<<n%32;return e}function l(t){const e=[];for(let n=0,r=32*t.length;n<r;n+=o)e.push(String.fromCharCode(t[n>>5]>>>n%32&s));return e.join("")}function u(t,e,n,r,o,s){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(r,s)),o),n)}function p(t,e,n,r,o,s,i){return u(e&n|~e&r,t,e,o,s,i)}function c(t,e,n,r,o,s,i){return u(e&r|n&~r,t,e,o,s,i)}function d(t,e,n,r,o,s,i){return u(e^n^r,t,e,o,s,i)}function f(t,e,n,r,o,s,i){return u(n^(e|~r),t,e,o,s,i)}function y(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,r=-271733879,o=-1732584194,s=271733878;for(let e=0;e<t.length;e+=16){const a=n,l=r,u=o,y=s;n=p(n,r,o,s,t[e],7,-680876936),s=p(s,n,r,o,t[e+1],12,-389564586),o=p(o,s,n,r,t[e+2],17,606105819),r=p(r,o,s,n,t[e+3],22,-1044525330),n=p(n,r,o,s,t[e+4],7,-176418897),s=p(s,n,r,o,t[e+5],12,1200080426),o=p(o,s,n,r,t[e+6],17,-1473231341),r=p(r,o,s,n,t[e+7],22,-45705983),n=p(n,r,o,s,t[e+8],7,1770035416),s=p(s,n,r,o,t[e+9],12,-1958414417),o=p(o,s,n,r,t[e+10],17,-42063),r=p(r,o,s,n,t[e+11],22,-1990404162),n=p(n,r,o,s,t[e+12],7,1804603682),s=p(s,n,r,o,t[e+13],12,-40341101),o=p(o,s,n,r,t[e+14],17,-1502002290),r=p(r,o,s,n,t[e+15],22,1236535329),n=c(n,r,o,s,t[e+1],5,-165796510),s=c(s,n,r,o,t[e+6],9,-1069501632),o=c(o,s,n,r,t[e+11],14,643717713),r=c(r,o,s,n,t[e],20,-373897302),n=c(n,r,o,s,t[e+5],5,-701558691),s=c(s,n,r,o,t[e+10],9,38016083),o=c(o,s,n,r,t[e+15],14,-660478335),r=c(r,o,s,n,t[e+4],20,-405537848),n=c(n,r,o,s,t[e+9],5,568446438),s=c(s,n,r,o,t[e+14],9,-1019803690),o=c(o,s,n,r,t[e+3],14,-187363961),r=c(r,o,s,n,t[e+8],20,1163531501),n=c(n,r,o,s,t[e+13],5,-1444681467),s=c(s,n,r,o,t[e+2],9,-51403784),o=c(o,s,n,r,t[e+7],14,1735328473),r=c(r,o,s,n,t[e+12],20,-1926607734),n=d(n,r,o,s,t[e+5],4,-378558),s=d(s,n,r,o,t[e+8],11,-2022574463),o=d(o,s,n,r,t[e+11],16,1839030562),r=d(r,o,s,n,t[e+14],23,-35309556),n=d(n,r,o,s,t[e+1],4,-1530992060),s=d(s,n,r,o,t[e+4],11,1272893353),o=d(o,s,n,r,t[e+7],16,-155497632),r=d(r,o,s,n,t[e+10],23,-1094730640),n=d(n,r,o,s,t[e+13],4,681279174),s=d(s,n,r,o,t[e],11,-358537222),o=d(o,s,n,r,t[e+3],16,-722521979),r=d(r,o,s,n,t[e+6],23,76029189),n=d(n,r,o,s,t[e+9],4,-640364487),s=d(s,n,r,o,t[e+12],11,-421815835),o=d(o,s,n,r,t[e+15],16,530742520),r=d(r,o,s,n,t[e+2],23,-995338651),n=f(n,r,o,s,t[e],6,-198630844),s=f(s,n,r,o,t[e+7],10,1126891415),o=f(o,s,n,r,t[e+14],15,-1416354905),r=f(r,o,s,n,t[e+5],21,-57434055),n=f(n,r,o,s,t[e+12],6,1700485571),s=f(s,n,r,o,t[e+3],10,-1894986606),o=f(o,s,n,r,t[e+10],15,-1051523),r=f(r,o,s,n,t[e+1],21,-2054922799),n=f(n,r,o,s,t[e+8],6,1873313359),s=f(s,n,r,o,t[e+15],10,-30611744),o=f(o,s,n,r,t[e+6],15,-1560198380),r=f(r,o,s,n,t[e+13],21,1309151649),n=f(n,r,o,s,t[e+4],6,-145523070),s=f(s,n,r,o,t[e+11],10,-1120210379),o=f(o,s,n,r,t[e+2],15,718787259),r=f(r,o,s,n,t[e+9],21,-343485551),n=i(n,a),r=i(r,l),o=i(o,u),s=i(s,y)}return[n,r,o,s]}function h(t,e=r.Hex){const n=e||r.Base64,s=y(a(t),t.length*o);switch(n){case r.Raw:return s;case r.Hex:return function(t){const e="0123456789abcdef",n=[];for(let r=0,o=4*t.length;r<o;r++)n.push(e.charAt(t[r>>2]>>r%4*8+4&15)+e.charAt(t[r>>2]>>r%4*8&15));return n.join("")}(s);case r.String:return l(s);case r.Base64:return function(t){const e=[];for(let n=0,r=4*t.length;n<r;n+=3){const r=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let o=0;o<4;o++)8*n+6*o>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-o)&63))}return e.join("")}(s)}}},85648:(t,e,n)=>{n.d(e,{n:()=>o});var r=n(84952);function o(t){return s[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,r.Zo)(t);return l[e]||i}(t.url)}(t)]||a}const s={},i="text/plain",a=s[i],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 t in l)s[l[t]]=t},87024:(t,e,n)=>{n.d(e,{P:()=>f});var r=n(49186),o=n(80200),s=n(76553),i=n(84952),a=n(13069),l=n(96156),u=n(35666),p=n(10107),c=n(85648),d=n(97159);function f(t){const e=t?.origins??[void 0];return(n,r)=>{const o=function(t,e,n){if("resource"===t?.type)return function(t,e,n){const r=(0,l.z4)(e,n);return{type:String,read:(t,e,n)=>{const o=(0,d.r)(t,e,n);return r.type===String?o:"function"==typeof r.type?new r.type({url:o}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(e,o,a,l){if(!l?.resources)return"string"==typeof e?void(o[a]=(0,d.t)(e,l)):void(o[a]=e.write({},l));const p=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),f=(0,d.t)(p,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),v=r.type!==String&&(!(0,s.H)(this)||l?.origin&&this.originIdOf(n)>(0,u.aB)(l.origin)),m={object:this,propertyName:n,value:e,targetUrl:f,dest:o,targetPropertyName:a,context:l,params:t};l?.portalItem&&f&&!(0,i.oP)(f)?v&&t?.contentAddressed?y(m):v?function(t){const{context:e,targetUrl:n,params:r,value:o,dest:s,targetPropertyName:a}=t;if(!e.portalItem)return;const l=e.portalItem.resourceFromPath(n),u=g(o,n,e),p=(0,c.n)(u),d=(0,i.Zo)(l.path),f=r?.compress??!1;p===d?(e.resources&&h({...t,resource:l,content:u,compress:f,updates:e.resources.toUpdate}),s[a]=n):y(t)}(m):function({context:t,targetUrl:e,dest:n,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[r]=e)}(m):l?.portalItem&&(null==f||null!=(0,d.i)(f)||(0,i.w8)(f)||v)?y(m):o[a]=f}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=d.b;return{read:t,write:e}}}}(t,n,r);for(const t of e){const e=(0,p.rM)(n,t,r);for(const t in o)e[t]=o[t]}}}function y(t){const{targetUrl:e,params:n,value:s,context:l,dest:u,targetPropertyName:p}=t;if(!l.portalItem)return;const f=(0,d.p)(e),y=g(s,e,l);if(n?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${p}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const v=n?.contentAddressed&&"json"===y.type?(0,o.d)(y.jsonString):f?.filename??(0,a.lk)(),m=(0,i.fj)(n?.prefix??f?.prefix,v),w=`${m}.${(0,c.n)(y)}`;if(n?.contentAddressed&&l.resources&&"json"===y.type){const t=l.resources.toKeep.find(({resource:t})=>t.path===w)??l.resources.toAdd.find(({resource:t})=>t.path===w);if(t)return void(u[p]=t.resource.itemRelativeUrl)}const x=l.portalItem.resourceFromPath(w);(0,i.w8)(e)&&l.resources&&l.resources.pendingOperations.push((0,i.tk)(e).then(t=>{x.path=`${m}.${(0,c.n)({type:"blob",blob:t})}`,u[p]=x.itemRelativeUrl}).catch(()=>{}));const b=n?.compress??!1;l.resources&&h({...t,resource:x,content:y,compress:b,updates:l.resources.toAdd}),u[p]=x.itemRelativeUrl}function h({object:t,propertyName:e,updates:n,resource:r,content:o,compress:s}){n.push({resource:r,content:o,compress:s,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function g(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9695],{13069:(t,e,n)=>{n.d(e,{AG:()=>a,lk:()=>o,vD:()=>i,yS:()=>s});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function s(){return`{${o().toUpperCase()}}`}function i(){return`{${o()}}`}function a(t){const e=t.toUpperCase();return"{"!==t[0]?`{${e}}`:e}},24212:(t,e,n)=>{function r(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?l:u}(t).mode}(null==t||(t.hasZ??!1),e)}function o(t,e,n){return n&&n.mode!==e?`${t} only support ${e} elevation mode`:null}function s(t,e,n){return n?.mode===e?`${t} do not support ${e} elevation mode`:null}function i(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function a(t,e){e&&t.warn(".elevationInfo=",e)}n.d(e,{$7:()=>s,B:()=>o,XF:()=>a,tW:()=>i,w7:()=>r}),n(83047),n(16271);const l={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},49695:(t,e,n)=>{n.r(e),n.d(e,{default:()=>C});var r=n(90237),o=n(79608),s=n(29133),i=n(69622),a=n(69540),l=n(25482),u=n(97768),p=n(10107),c=(n(44208),n(53966),n(87811),n(40608)),d=n(87024),f=n(86738),y=n(88625);let h=class extends(l.A.JSONSupportMixin(a.A.ClonableMixin(i.A))){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,u.CM)(this.position,t.position)&&(0,u.CM)(this.elevationInfo,t.elevationInfo)&&(0,s.xH)(this.feature,t.feature)}};(0,r._)([(0,p.MZ)({type:f.A,json:{write:{isRequired:!0}}})],h.prototype,"position",void 0),(0,r._)([(0,p.MZ)({type:y.A}),(0,d.P)()],h.prototype,"elevationInfo",void 0),(0,r._)([(0,p.MZ)(s.N1)],h.prototype,"feature",void 0),h=(0,r._)([(0,c.$)("esri.analysis.LineOfSightAnalysisObserver")],h);const g=h;let v=class extends(l.A.JSONSupportMixin(a.A)){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,u.CM)(this.position,t.position)&&(0,u.CM)(this.elevationInfo,t.elevationInfo)&&(0,s.xH)(this.feature,t.feature)}};(0,r._)([(0,p.MZ)({type:f.A,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,d.P)()],v.prototype,"position",void 0),(0,r._)([(0,p.MZ)({type:y.A}),(0,d.P)()],v.prototype,"elevationInfo",void 0),(0,r._)([(0,p.MZ)(s.N1)],v.prototype,"feature",void 0),v=(0,r._)([(0,c.$)("esri.analysis.LineOfSightAnalysisTarget")],v);var m=n(4576),w=n(5503),x=n(62885),b=n(36708),A=n(98988),j=n(70328),M=n(24212);const _=w.A.ofType(v);let I=class extends o.A{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,b.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},b.pc))}get targets(){return this._get("targets")||new _}set targets(t){this._set("targets",(0,x.V)(t,this.targets,_))}get spatialReference(){return null!=this.observer?.position?this.observer.position.spatialReference:null}get valid(){return null!=this.observer?.position}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==this.observer?.position||null==t)return null;const e=t=>"absolute-height"===(0,M.w7)(t.position,t.elevationInfo),n=this.observer.position,r=(0,j.fA)(n.x,n.y,n.z,n.x,n.y,n.z);for(const e of this.targets)if(null!=e.position){const n=(0,A.projectOrLoad)(e.position,t);if(null!=n.pending)return{pending:n.pending,extent:null};if(null!=n.geometry){const{x:t,y:e,z:o}=n.geometry;(0,j.iT)(r,[t,e,o])}}const o=(0,j.w1)(r,t);return e(this.observer)&&this.targets.every(e)||(o.zmin=void 0,o.zmax=void 0),{pending:null,extent:o}}clear(){this.observer=null,this.targets.removeAll()}equals(t){return this===t||super.equals(t)&&(0,u.CM)(this.observer,t.observer)&&(0,m.aI)(this.targets.toArray(),t.targets.toArray(),(t,e)=>t.equals(e))}};(0,r._)([(0,p.MZ)({type:["line-of-sight"]})],I.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:g,json:{read:!0,write:!0}})],I.prototype,"observer",void 0),(0,r._)([(0,p.MZ)({cast:x.H,type:_,nonNullable:!0,json:{read:!0,write:!0}})],I.prototype,"targets",null),(0,r._)([(0,p.MZ)({value:null,readOnly:!0})],I.prototype,"extent",void 0),(0,r._)([(0,p.MZ)()],I.prototype,"spatialReference",null),(0,r._)([(0,p.MZ)({readOnly:!0})],I.prototype,"valid",null),I=(0,r._)([(0,c.$)("esri.analysis.LineOfSightAnalysis")],I);var O=n(92071),R=n(4146),Z=n(16131);const S=w.A.ofType(v);let U=class extends((0,Z.q)((0,O.P)(R.A))){constructor(t){super(t),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new I,this.opacity=1}initialize(){this.addHandles((0,b.wB)(()=>this.analysis,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},b.pc))}async load(){return null!=this.analysis&&this.addResolvingPromise(this.analysis.waitComputeExtent()),this}get observer(){return this.analysis?.observer}set observer(t){const{analysis:e}=this;e&&(e.observer=t)}get targets(){return null!=this.analysis?this.analysis.targets:new w.A}set targets(t){(0,x.V)(t,this.analysis?.targets)}get fullExtent(){return null!=this.analysis?this.analysis.extent:null}get spatialReference(){return null!=this.analysis?this.analysis.spatialReference:null}releaseAnalysis(t){this.analysis===t&&(this.analysis=new I)}};(0,r._)([(0,p.MZ)({json:{read:!1},readOnly:!0})],U.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:["LineOfSightLayer"]})],U.prototype,"operationalLayerType",void 0),(0,r._)([(0,p.MZ)({type:g,json:{read:!0,write:{isRequired:!0,ignoreOrigin:!0}}})],U.prototype,"observer",null),(0,r._)([(0,p.MZ)({type:S,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],U.prototype,"targets",null),(0,r._)([(0,p.MZ)({type:I,nonNullable:!0,json:{read:!1,write:!1}})],U.prototype,"analysis",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],U.prototype,"fullExtent",null),(0,r._)([(0,p.MZ)({readOnly:!0})],U.prototype,"spatialReference",null),(0,r._)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],U.prototype,"opacity",void 0),(0,r._)([(0,p.MZ)({type:["show","hide"]})],U.prototype,"listMode",void 0),U=(0,r._)([(0,c.$)("esri.layers.LineOfSightLayer")],U);const C=U},76553:(t,e,n)=>{function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>r})},80200:(t,e,n)=>{n.d(e,{T:()=>r,d:()=>h});const r={Base64:0,Hex:1,String:2,Raw:3},o=8,s=(1<<o)-1;function i(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function a(t){const e=[];for(let n=0,r=t.length*o;n<r;n+=o)e[n>>5]|=(t.charCodeAt(n/o)&s)<<n%32;return e}function l(t){const e=[];for(let n=0,r=32*t.length;n<r;n+=o)e.push(String.fromCharCode(t[n>>5]>>>n%32&s));return e.join("")}function u(t,e,n,r,o,s){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(r,s)),o),n)}function p(t,e,n,r,o,s,i){return u(e&n|~e&r,t,e,o,s,i)}function c(t,e,n,r,o,s,i){return u(e&r|n&~r,t,e,o,s,i)}function d(t,e,n,r,o,s,i){return u(e^n^r,t,e,o,s,i)}function f(t,e,n,r,o,s,i){return u(n^(e|~r),t,e,o,s,i)}function y(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,r=-271733879,o=-1732584194,s=271733878;for(let e=0;e<t.length;e+=16){const a=n,l=r,u=o,y=s;n=p(n,r,o,s,t[e],7,-680876936),s=p(s,n,r,o,t[e+1],12,-389564586),o=p(o,s,n,r,t[e+2],17,606105819),r=p(r,o,s,n,t[e+3],22,-1044525330),n=p(n,r,o,s,t[e+4],7,-176418897),s=p(s,n,r,o,t[e+5],12,1200080426),o=p(o,s,n,r,t[e+6],17,-1473231341),r=p(r,o,s,n,t[e+7],22,-45705983),n=p(n,r,o,s,t[e+8],7,1770035416),s=p(s,n,r,o,t[e+9],12,-1958414417),o=p(o,s,n,r,t[e+10],17,-42063),r=p(r,o,s,n,t[e+11],22,-1990404162),n=p(n,r,o,s,t[e+12],7,1804603682),s=p(s,n,r,o,t[e+13],12,-40341101),o=p(o,s,n,r,t[e+14],17,-1502002290),r=p(r,o,s,n,t[e+15],22,1236535329),n=c(n,r,o,s,t[e+1],5,-165796510),s=c(s,n,r,o,t[e+6],9,-1069501632),o=c(o,s,n,r,t[e+11],14,643717713),r=c(r,o,s,n,t[e],20,-373897302),n=c(n,r,o,s,t[e+5],5,-701558691),s=c(s,n,r,o,t[e+10],9,38016083),o=c(o,s,n,r,t[e+15],14,-660478335),r=c(r,o,s,n,t[e+4],20,-405537848),n=c(n,r,o,s,t[e+9],5,568446438),s=c(s,n,r,o,t[e+14],9,-1019803690),o=c(o,s,n,r,t[e+3],14,-187363961),r=c(r,o,s,n,t[e+8],20,1163531501),n=c(n,r,o,s,t[e+13],5,-1444681467),s=c(s,n,r,o,t[e+2],9,-51403784),o=c(o,s,n,r,t[e+7],14,1735328473),r=c(r,o,s,n,t[e+12],20,-1926607734),n=d(n,r,o,s,t[e+5],4,-378558),s=d(s,n,r,o,t[e+8],11,-2022574463),o=d(o,s,n,r,t[e+11],16,1839030562),r=d(r,o,s,n,t[e+14],23,-35309556),n=d(n,r,o,s,t[e+1],4,-1530992060),s=d(s,n,r,o,t[e+4],11,1272893353),o=d(o,s,n,r,t[e+7],16,-155497632),r=d(r,o,s,n,t[e+10],23,-1094730640),n=d(n,r,o,s,t[e+13],4,681279174),s=d(s,n,r,o,t[e],11,-358537222),o=d(o,s,n,r,t[e+3],16,-722521979),r=d(r,o,s,n,t[e+6],23,76029189),n=d(n,r,o,s,t[e+9],4,-640364487),s=d(s,n,r,o,t[e+12],11,-421815835),o=d(o,s,n,r,t[e+15],16,530742520),r=d(r,o,s,n,t[e+2],23,-995338651),n=f(n,r,o,s,t[e],6,-198630844),s=f(s,n,r,o,t[e+7],10,1126891415),o=f(o,s,n,r,t[e+14],15,-1416354905),r=f(r,o,s,n,t[e+5],21,-57434055),n=f(n,r,o,s,t[e+12],6,1700485571),s=f(s,n,r,o,t[e+3],10,-1894986606),o=f(o,s,n,r,t[e+10],15,-1051523),r=f(r,o,s,n,t[e+1],21,-2054922799),n=f(n,r,o,s,t[e+8],6,1873313359),s=f(s,n,r,o,t[e+15],10,-30611744),o=f(o,s,n,r,t[e+6],15,-1560198380),r=f(r,o,s,n,t[e+13],21,1309151649),n=f(n,r,o,s,t[e+4],6,-145523070),s=f(s,n,r,o,t[e+11],10,-1120210379),o=f(o,s,n,r,t[e+2],15,718787259),r=f(r,o,s,n,t[e+9],21,-343485551),n=i(n,a),r=i(r,l),o=i(o,u),s=i(s,y)}return[n,r,o,s]}function h(t,e=r.Hex){const n=e||r.Base64,s=y(a(t),t.length*o);switch(n){case r.Raw:return s;case r.Hex:return function(t){const e="0123456789abcdef",n=[];for(let r=0,o=4*t.length;r<o;r++)n.push(e.charAt(t[r>>2]>>r%4*8+4&15)+e.charAt(t[r>>2]>>r%4*8&15));return n.join("")}(s);case r.String:return l(s);case r.Base64:return function(t){const e=[];for(let n=0,r=4*t.length;n<r;n+=3){const r=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let o=0;o<4;o++)8*n+6*o>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-o)&63))}return e.join("")}(s)}}},85648:(t,e,n)=>{n.d(e,{n:()=>o});var r=n(84952);function o(t){return s[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,r.Zo)(t);return l[e]||i}(t.url)}(t)]||a}const s={},i="text/plain",a=s[i],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 t in l)s[l[t]]=t},87024:(t,e,n)=>{n.d(e,{P:()=>f});var r=n(49186),o=n(80200),s=n(76553),i=n(84952),a=n(13069),l=n(96156),u=n(35666),p=n(10107),c=n(85648),d=n(97159);function f(t){const e=t?.origins??[void 0];return(n,r)=>{const o=function(t,e,n){if("resource"===t?.type)return function(t,e,n){const r=(0,l.z4)(e,n);return{type:String,read:(t,e,n)=>{const o=(0,d.r)(t,e,n);return r.type===String?o:"function"==typeof r.type?new r.type({url:o}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(e,o,a,l){if(!l?.resources)return"string"==typeof e?void(o[a]=(0,d.t)(e,l)):void(o[a]=e.write({},l));const p=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),f=(0,d.t)(p,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),v=r.type!==String&&(!(0,s.H)(this)||l?.origin&&this.originIdOf(n)>(0,u.aB)(l.origin)),m={object:this,propertyName:n,value:e,targetUrl:f,dest:o,targetPropertyName:a,context:l,params:t};l?.portalItem&&f&&!(0,i.oP)(f)?v&&t?.contentAddressed?y(m):v?function(t){const{context:e,targetUrl:n,params:r,value:o,dest:s,targetPropertyName:a}=t;if(!e.portalItem)return;const l=e.portalItem.resourceFromPath(n),u=g(o,n,e),p=(0,c.n)(u),d=(0,i.Zo)(l.path),f=r?.compress??!1;p===d?(e.resources&&h({...t,resource:l,content:u,compress:f,updates:e.resources.toUpdate}),s[a]=n):y(t)}(m):function({context:t,targetUrl:e,dest:n,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[r]=e)}(m):l?.portalItem&&(null==f||null!=(0,d.i)(f)||(0,i.w8)(f)||v)?y(m):o[a]=f}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=d.b;return{read:t,write:e}}}}(t,n,r);for(const t of e){const e=(0,p.rM)(n,t,r);for(const t in o)e[t]=o[t]}}}function y(t){const{targetUrl:e,params:n,value:s,context:l,dest:u,targetPropertyName:p}=t;if(!l.portalItem)return;const f=(0,d.p)(e),y=g(s,e,l);if(n?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${p}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const v=n?.contentAddressed&&"json"===y.type?(0,o.d)(y.jsonString):f?.filename??(0,a.lk)(),m=(0,i.fj)(n?.prefix??f?.prefix,v),w=`${m}.${(0,c.n)(y)}`;if(n?.contentAddressed&&l.resources&&"json"===y.type){const t=l.resources.toKeep.find(({resource:t})=>t.path===w)??l.resources.toAdd.find(({resource:t})=>t.path===w);if(t)return void(u[p]=t.resource.itemRelativeUrl)}const x=l.portalItem.resourceFromPath(w);(0,i.w8)(e)&&l.resources&&l.resources.pendingOperations.push((0,i.tk)(e).then(t=>{x.path=`${m}.${(0,c.n)({type:"blob",blob:t})}`,u[p]=x.itemRelativeUrl}).catch(()=>{}));const b=n?.compress??!1;l.resources&&h({...t,resource:x,content:y,compress:b,updates:l.resources.toAdd}),u[p]=x.itemRelativeUrl}function h({object:t,propertyName:e,updates:n,resource:r,content:o,compress:s}){n.push({resource:r,content:o,compress:s,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function g(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5902],{63907:(_,E,R)=>{var A,T,N,S,I,C,e,O,t,G,n,D,L,B,P,M,U,r,F,a,i,c,s,u,o,l,f;R.d(E,{Ab:()=>M,Ac:()=>O,Ap:()=>B,CQ:()=>Y,Cj:()=>D,Fq:()=>V,H0:()=>U,H3:()=>P,Hr:()=>f,MT:()=>G,NV:()=>A,SB:()=>a,Tb:()=>I,WR:()=>N,Xo:()=>i,Y7:()=>e,bh:()=>x,dn:()=>S,eA:()=>n,iE:()=>F,j7:()=>r,ld:()=>c,nI:()=>d,pF:()=>L,pe:()=>t,r6:()=>H,vt:()=>l,yI:()=>X}),function(_){_[_.DEPTH=256]="DEPTH",_[_.STENCIL=1024]="STENCIL",_[_.COLOR=16384]="COLOR"}(A||(A={})),function(_){_[_.COLOR=6144]="COLOR",_[_.DEPTH=6145]="DEPTH",_[_.STENCIL=6146]="STENCIL",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(T||(T={})),function(_){_[_.POINTS=0]="POINTS",_[_.LINES=1]="LINES",_[_.LINE_LOOP=2]="LINE_LOOP",_[_.LINE_STRIP=3]="LINE_STRIP",_[_.TRIANGLES=4]="TRIANGLES",_[_.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",_[_.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(N||(N={})),function(_){_[_.ZERO=0]="ZERO",_[_.ONE=1]="ONE",_[_.SRC_COLOR=768]="SRC_COLOR",_[_.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",_[_.SRC_ALPHA=770]="SRC_ALPHA",_[_.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",_[_.DST_ALPHA=772]="DST_ALPHA",_[_.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",_[_.DST_COLOR=774]="DST_COLOR",_[_.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",_[_.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",_[_.CONSTANT_COLOR=32769]="CONSTANT_COLOR",_[_.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",_[_.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",_[_.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(S||(S={})),function(_){_[_.ADD=32774]="ADD",_[_.MIN=32775]="MIN",_[_.MAX=32776]="MAX",_[_.SUBTRACT=32778]="SUBTRACT",_[_.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(I||(I={})),function(_){_[_.ARRAY_BUFFER=34962]="ARRAY_BUFFER",_[_.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",_[_.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",_[_.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",_[_.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",_[_.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",_[_.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",_[_.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(C||(C={})),function(_){_[_.FRONT=1028]="FRONT",_[_.BACK=1029]="BACK",_[_.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(e||(e={})),function(_){_[_.CW=2304]="CW",_[_.CCW=2305]="CCW"}(O||(O={})),function(_){_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.INT=5124]="INT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.FLOAT=5126]="FLOAT",_[_.HALF_FLOAT=5131]="HALF_FLOAT"}(t||(t={})),function(_){_[_.NEVER=512]="NEVER",_[_.LESS=513]="LESS",_[_.EQUAL=514]="EQUAL",_[_.LEQUAL=515]="LEQUAL",_[_.GREATER=516]="GREATER",_[_.NOTEQUAL=517]="NOTEQUAL",_[_.GEQUAL=518]="GEQUAL",_[_.ALWAYS=519]="ALWAYS"}(G||(G={})),function(_){_[_.ZERO=0]="ZERO",_[_.KEEP=7680]="KEEP",_[_.REPLACE=7681]="REPLACE",_[_.INCR=7682]="INCR",_[_.DECR=7683]="DECR",_[_.INVERT=5386]="INVERT",_[_.INCR_WRAP=34055]="INCR_WRAP",_[_.DECR_WRAP=34056]="DECR_WRAP"}(n||(n={})),function(_){_[_.NEAREST=9728]="NEAREST",_[_.LINEAR=9729]="LINEAR",_[_.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",_[_.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",_[_.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",_[_.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(D||(D={})),function(_){_[_.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",_[_.REPEAT=10497]="REPEAT",_[_.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(L||(L={})),function(_){_[_.TEXTURE_2D=3553]="TEXTURE_2D",_[_.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",_[_.TEXTURE_3D=32879]="TEXTURE_3D",_[_.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",_[_.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",_[_.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",_[_.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",_[_.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(B||(B={})),function(_){_[_.MIN_LOD=33082]="MIN_LOD",_[_.MAX_LOD=33083]="MAX_LOD",_[_.BASE_LEVEL=33084]="BASE_LEVEL",_[_.MAX_LEVEL=33085]="MAX_LEVEL",_[_.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE"}(P||(P={})),function(_){_[_.ALPHA=6406]="ALPHA",_[_.RGB=6407]="RGB",_[_.RGBA=6408]="RGBA",_[_.LUMINANCE=6409]="LUMINANCE",_[_.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",_[_.RED=6403]="RED",_[_.RG=33319]="RG",_[_.RED_INTEGER=36244]="RED_INTEGER",_[_.RG_INTEGER=33320]="RG_INTEGER",_[_.RGB_INTEGER=36248]="RGB_INTEGER",_[_.RGBA_INTEGER=36249]="RGBA_INTEGER"}(M||(M={})),function(_){_[_.RGBA4=32854]="RGBA4",_[_.R16F=33325]="R16F",_[_.RG16F=33327]="RG16F",_[_.RGB32F=34837]="RGB32F",_[_.RGBA16F=34842]="RGBA16F",_[_.R32F=33326]="R32F",_[_.RG32F=33328]="RG32F",_[_.RGBA32F=34836]="RGBA32F",_[_.R11F_G11F_B10F=35898]="R11F_G11F_B10F",_[_.RGB8=32849]="RGB8",_[_.RGBA8=32856]="RGBA8",_[_.RGB5_A1=32855]="RGB5_A1",_[_.R8=33321]="R8",_[_.RG8=33323]="RG8",_[_.R8I=33329]="R8I",_[_.R8UI=33330]="R8UI",_[_.R16I=33331]="R16I",_[_.R16UI=33332]="R16UI",_[_.R32I=33333]="R32I",_[_.R32UI=33334]="R32UI",_[_.RG8I=33335]="RG8I",_[_.RG8UI=33336]="RG8UI",_[_.RG16I=33337]="RG16I",_[_.RG16UI=33338]="RG16UI",_[_.RG32I=33339]="RG32I",_[_.RG32UI=33340]="RG32UI",_[_.RGB16F=34843]="RGB16F",_[_.RGB9_E5=35901]="RGB9_E5",_[_.SRGB8=35905]="SRGB8",_[_.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",_[_.RGB565=36194]="RGB565",_[_.RGBA32UI=36208]="RGBA32UI",_[_.RGB32UI=36209]="RGB32UI",_[_.RGBA16UI=36214]="RGBA16UI",_[_.RGB16UI=36215]="RGB16UI",_[_.RGBA8UI=36220]="RGBA8UI",_[_.RGB8UI=36221]="RGB8UI",_[_.RGBA32I=36226]="RGBA32I",_[_.RGB32I=36227]="RGB32I",_[_.RGBA16I=36232]="RGBA16I",_[_.RGB16I=36233]="RGB16I",_[_.RGBA8I=36238]="RGBA8I",_[_.RGB8I=36239]="RGB8I",_[_.R8_SNORM=36756]="R8_SNORM",_[_.RG8_SNORM=36757]="RG8_SNORM",_[_.RGB8_SNORM=36758]="RGB8_SNORM",_[_.RGBA8_SNORM=36759]="RGBA8_SNORM",_[_.RGB10_A2=32857]="RGB10_A2",_[_.RGB10_A2UI=36975]="RGB10_A2UI"}(U||(U={})),function(_){_[_.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(r||(r={})),function(_){_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(F||(F={})),function(_){_[_.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",_[_.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",_[_.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F"}(a||(a={})),function(_){_[_.STENCIL_INDEX8=36168]="STENCIL_INDEX8"}(i||(i={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",_[_.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",_[_.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",_[_.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.INT=5124]="INT",_[_.HALF_FLOAT=5131]="HALF_FLOAT",_[_.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",_[_.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",_[_.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",_[_.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(c||(c={})),function(_){_[_.STATIC_DRAW=35044]="STATIC_DRAW",_[_.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",_[_.STREAM_DRAW=35040]="STREAM_DRAW",_[_.STATIC_READ=35045]="STATIC_READ",_[_.DYNAMIC_READ=35049]="DYNAMIC_READ",_[_.STREAM_READ=35041]="STREAM_READ",_[_.STATIC_COPY=35046]="STATIC_COPY",_[_.DYNAMIC_COPY=35050]="DYNAMIC_COPY",_[_.STREAM_COPY=35042]="STREAM_COPY"}(s||(s={})),function(_){_[_.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",_[_.VERTEX_SHADER=35633]="VERTEX_SHADER"}(u||(u={})),function(_){_[_.FRAMEBUFFER=36160]="FRAMEBUFFER",_[_.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",_[_.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(o||(o={})),function(_){_[_.Texture=0]="Texture",_[_.TileTexture=1]="TileTexture",_[_.BufferObject=2]="BufferObject",_[_.VertexArrayObject=3]="VertexArrayObject",_[_.Shader=4]="Shader",_[_.Program=5]="Program",_[_.FramebufferObject=6]="FramebufferObject",_[_.Renderbuffer=7]="Renderbuffer",_[_.TransformFeedback=8]="TransformFeedback",_[_.Sync=9]="Sync",_[_.UNCOUNTED=10]="UNCOUNTED",_[_.LinesOfCode=10]="LinesOfCode",_[_.Uniform=11]="Uniform",_[_.COUNT=12]="COUNT"}(l||(l={})),function(_){_[_.NONE=0]="NONE",_[_.BACK=1029]="BACK"}(f||(f={}));const H=36064,X=36065,V=36066,d=33306;var Y,h,p,w,m,y,b,x,W;!function(_){_[_.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",_[_.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",_[_.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",_[_.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",_[_.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",_[_.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",_[_.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",_[_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",_[_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(Y||(Y={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.FLOAT_VEC2=35664]="FLOAT_VEC2",_[_.FLOAT_VEC3=35665]="FLOAT_VEC3",_[_.FLOAT_VEC4=35666]="FLOAT_VEC4",_[_.INT=5124]="INT",_[_.INT_VEC2=35667]="INT_VEC2",_[_.INT_VEC3=35668]="INT_VEC3",_[_.INT_VEC4=35669]="INT_VEC4",_[_.BOOL=35670]="BOOL",_[_.BOOL_VEC2=35671]="BOOL_VEC2",_[_.BOOL_VEC3=35672]="BOOL_VEC3",_[_.BOOL_VEC4=35673]="BOOL_VEC4",_[_.FLOAT_MAT2=35674]="FLOAT_MAT2",_[_.FLOAT_MAT3=35675]="FLOAT_MAT3",_[_.FLOAT_MAT4=35676]="FLOAT_MAT4",_[_.SAMPLER_2D=35678]="SAMPLER_2D",_[_.SAMPLER_CUBE=35680]="SAMPLER_CUBE",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",_[_.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",_[_.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",_[_.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",_[_.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",_[_.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",_[_.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",_[_.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",_[_.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",_[_.SAMPLER_3D=35679]="SAMPLER_3D",_[_.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",_[_.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",_[_.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",_[_.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",_[_.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",_[_.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",_[_.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",_[_.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",_[_.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",_[_.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",_[_.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",_[_.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(h||(h={})),function(_){_[_.OBJECT_TYPE=37138]="OBJECT_TYPE",_[_.SYNC_CONDITION=37139]="SYNC_CONDITION",_[_.SYNC_STATUS=37140]="SYNC_STATUS",_[_.SYNC_FLAGS=37141]="SYNC_FLAGS"}(p||(p={})),function(_){_[_.UNSIGNALED=37144]="UNSIGNALED",_[_.SIGNALED=37145]="SIGNALED"}(w||(w={})),function(_){_[_.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",_[_.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",_[_.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",_[_.WAIT_FAILED=37149]="WAIT_FAILED"}(m||(m={})),function(_){_[_.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(y||(y={})),function(_){_[_.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(b||(b={})),function(_){_[_.INVALID_ENUM=1280]="INVALID_ENUM",_[_.INVALID_VALUE=1281]="INVALID_VALUE",_[_.INVALID_OPERATION=1282]="INVALID_OPERATION",_[_.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",_[_.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",_[_.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL"}(x||(x={})),function(_){_[_.COMPLETION_STATUS_KHR=37297]="COMPLETION_STATUS_KHR"}(W||(W={}))},92993:(_,E,R)=>{var A;R.d(E,{n:()=>A}),function(_){_[_.ETC1_RGB=0]="ETC1_RGB",_[_.ETC2_RGBA=1]="ETC2_RGBA",_[_.BC1_RGB=2]="BC1_RGB",_[_.BC3_RGBA=3]="BC3_RGBA",_[_.BC4_R=4]="BC4_R",_[_.BC5_RG=5]="BC5_RG",_[_.BC7_M6_RGB=6]="BC7_M6_RGB",_[_.BC7_M5_RGBA=7]="BC7_M5_RGBA",_[_.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",_[_.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",_[_.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",_[_.ATC_RGB=11]="ATC_RGB",_[_.ATC_RGBA=12]="ATC_RGBA",_[_.FXT1_RGB=17]="FXT1_RGB",_[_.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",_[_.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",_[_.ETC2_EAC_R11=20]="ETC2_EAC_R11",_[_.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",_[_.RGBA32=13]="RGBA32",_[_.RGB565=14]="RGB565",_[_.BGR565=15]="BGR565",_[_.RGBA4444=16]="RGBA4444"}(A||(A={}))},95902:(_,E,R)=>{R.r(E),R.d(E,{TextureCompressionWorkerOutput:()=>G,compress:()=>n,compressRGBADataToKTX2:()=>B,createTextureDataKTX2:()=>P,initializeBasisEncoder:()=>D,initializeDXTEncoder:()=>L});var A=R(2741);let T;var N=R(92993);let S;var I=R(63907);let C,e,O=null,t=null;class G{constructor(_,E){this.internalFormat=_,this.compressedTexture=E}}async function n(_){let E;if(E=_.data instanceof ImageBitmap?function(_){const E=new OffscreenCanvas(_.width,_.height),R=E.getContext("2d");return R.drawImage(_,0,0),R.getImageData(0,0,E.width,E.height).data}(_.data):function(_,E,R,A,T){const N=new Uint8ClampedArray(_).subarray(0,E*R*A);if(!T)return N;const S=new Uint8ClampedArray(N.length),I=E*A;for(let _=0;_<R;_++){const E=_*I,A=(R-_-1)*I;S.set(N.subarray(E,E+I),A)}return S}(_.data,_.width,_.height,_.components,_.needsFlip),_.hasS3TC){t||await L();const R=new Uint8Array(E.length);if(t?.encode(E,_.width,_.height,_.preMultiplyAlpha,R)){const _=function(_){const E=new Int32Array(_.buffer,_.byteOffset,M);let R,A;switch(E[c]){case o:R=8,A=I.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case l:R=16,A=I.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case f:R=16,A=I.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let T=1,N=E[a],S=E[F];(3&N||3&S)&&(N=N+3&-4,S=S+3&-4);const C=N,e=S;let O,t;E[r]&s&&(T=Math.max(1,E[i]));let G=_.byteOffset+E[U]+4;const n=[];for(let E=0;E<T;++E)t=(N+3>>2)*(S+3>>2)*R,O=new Uint8Array(_.buffer,G,t),n.push(O),G+=t,N=Math.max(1,N>>1),S=Math.max(1,S>>1);return{textureData:{type:"compressed",levels:n},internalFormat:A,width:C,height:e}}(R),E=[R.buffer];return{result:new G(_?.internalFormat??null,_?.textureData??null),transferList:E}}return{result:new G(null,null)}}if(_.hasETC){if(O||await D(),_.preMultiplyAlpha&&!t&&await L(),_.preMultiplyAlpha){const R=new Uint8ClampedArray(E.length);t?.premultiply(new Uint8Array(E),_.width,_.height,R),E=R}const R=await B(E,_.width,_.height,_.hasMipmap),A=R?await P(R):null,T=A?.compressedTexture?.levels.map(_=>_.buffer)||[];return{result:new G(A?.internalFormat??null,A?.compressedTexture??null),transferList:T}}return{result:new G(null,null)}}async function D(){O||(O=await(C??=(T??=(async()=>{const _=await R.e(2372).then(R.bind(R,62372)),E=await _.default({locateFile:_=>(0,A.s)(`esri/libs/basisu/${_}`)});return E.initializeBasis(),E})(),T)))}async function L(){t||(t=await(e??=(S??=(async()=>{const _=await R.e(8714).then(R.bind(R,98714));return await _.default({locateFile:_=>(0,A.s)(`esri/libs/dxtEncoder/${_}`)})})(),S)))}async function B(_,E,R,A,T=255,N=0,S=!1,I=!1){if(!O)return null;const C=new O.BasisEncoder;C.setPerceptual(!I),C.setCheckForAlpha(!0),C.setForceAlpha(!1),C.setRenormalize(I),C.setMipGen(A),C.setMipSRGB(!I),C.setCreateKTX2File(!0),C.setKTX2SRGBTransferFunc(!I),C.setQualityLevel(T),C.setCompressionLevel(N);const e=new Uint8Array(_.byteLength);C.setSliceSourceImage(0,new Uint8Array(_),E,R,S);const t=C.encode(e),G=new Uint8Array(e.buffer,0,t),n=new O.KTX2File(new Uint8Array(G));return n.isValid()?(C.delete(),G):(n.close(),n.delete(),C.delete(),null)}async function P(_){if(!O)return new G(null,null);const E=new O.KTX2File(new Uint8Array(_));E.startTranscoding();const[R,A]=E.getHasAlpha()?[N.n.ETC2_RGBA,I.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[N.n.ETC1_RGB,I.CQ.COMPRESSED_RGB8_ETC2],T=E.getLevels(),S=[];for(let _=0;_<T;_++)S.push(new Uint8Array(E.getImageTranscodedSizeInBytes(_,0,0,R))),E.transcodeImage(S[_],_,0,0,R,0,-1,-1);return E.close(),E.delete(),{internalFormat:A,compressedTexture:{type:"compressed",levels:S}}}const M=31,U=1,r=2,F=3,a=4,i=7,c=21,s=131072;function u(_){return _.charCodeAt(0)+(_.charCodeAt(1)<<8)+(_.charCodeAt(2)<<16)+(_.charCodeAt(3)<<24)}const o=u("DXT1"),l=u("DXT3"),f=u("DXT5")}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5902],{63907:(_,E,R)=>{var A,T,N,S,I,C,e,O,n,t,G,D,L,B,P,M,U,r,F,a,i,u,l,c,o,s,f;R.d(E,{Ab:()=>M,Ac:()=>O,Ap:()=>B,CQ:()=>Y,Cj:()=>D,Fq:()=>V,H0:()=>U,H3:()=>P,Hr:()=>f,MT:()=>t,NV:()=>A,SB:()=>a,Tb:()=>I,WR:()=>N,Xo:()=>i,Y7:()=>e,bh:()=>x,dn:()=>S,eA:()=>G,iE:()=>F,j7:()=>r,ld:()=>u,nI:()=>d,pF:()=>L,pe:()=>n,r6:()=>H,vt:()=>s,yI:()=>X}),function(_){_[_.DEPTH=256]="DEPTH",_[_.STENCIL=1024]="STENCIL",_[_.COLOR=16384]="COLOR"}(A||(A={})),function(_){_[_.COLOR=6144]="COLOR",_[_.DEPTH=6145]="DEPTH",_[_.STENCIL=6146]="STENCIL",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(T||(T={})),function(_){_[_.POINTS=0]="POINTS",_[_.LINES=1]="LINES",_[_.LINE_LOOP=2]="LINE_LOOP",_[_.LINE_STRIP=3]="LINE_STRIP",_[_.TRIANGLES=4]="TRIANGLES",_[_.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",_[_.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(N||(N={})),function(_){_[_.ZERO=0]="ZERO",_[_.ONE=1]="ONE",_[_.SRC_COLOR=768]="SRC_COLOR",_[_.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",_[_.SRC_ALPHA=770]="SRC_ALPHA",_[_.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",_[_.DST_ALPHA=772]="DST_ALPHA",_[_.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",_[_.DST_COLOR=774]="DST_COLOR",_[_.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",_[_.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",_[_.CONSTANT_COLOR=32769]="CONSTANT_COLOR",_[_.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",_[_.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",_[_.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(S||(S={})),function(_){_[_.ADD=32774]="ADD",_[_.MIN=32775]="MIN",_[_.MAX=32776]="MAX",_[_.SUBTRACT=32778]="SUBTRACT",_[_.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(I||(I={})),function(_){_[_.ARRAY_BUFFER=34962]="ARRAY_BUFFER",_[_.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",_[_.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",_[_.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",_[_.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",_[_.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",_[_.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",_[_.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(C||(C={})),function(_){_[_.FRONT=1028]="FRONT",_[_.BACK=1029]="BACK",_[_.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(e||(e={})),function(_){_[_.CW=2304]="CW",_[_.CCW=2305]="CCW"}(O||(O={})),function(_){_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.INT=5124]="INT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.FLOAT=5126]="FLOAT",_[_.HALF_FLOAT=5131]="HALF_FLOAT"}(n||(n={})),function(_){_[_.NEVER=512]="NEVER",_[_.LESS=513]="LESS",_[_.EQUAL=514]="EQUAL",_[_.LEQUAL=515]="LEQUAL",_[_.GREATER=516]="GREATER",_[_.NOTEQUAL=517]="NOTEQUAL",_[_.GEQUAL=518]="GEQUAL",_[_.ALWAYS=519]="ALWAYS"}(t||(t={})),function(_){_[_.ZERO=0]="ZERO",_[_.KEEP=7680]="KEEP",_[_.REPLACE=7681]="REPLACE",_[_.INCR=7682]="INCR",_[_.DECR=7683]="DECR",_[_.INVERT=5386]="INVERT",_[_.INCR_WRAP=34055]="INCR_WRAP",_[_.DECR_WRAP=34056]="DECR_WRAP"}(G||(G={})),function(_){_[_.NEAREST=9728]="NEAREST",_[_.LINEAR=9729]="LINEAR",_[_.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",_[_.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",_[_.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",_[_.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(D||(D={})),function(_){_[_.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",_[_.REPEAT=10497]="REPEAT",_[_.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(L||(L={})),function(_){_[_.TEXTURE_2D=3553]="TEXTURE_2D",_[_.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",_[_.TEXTURE_3D=32879]="TEXTURE_3D",_[_.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",_[_.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",_[_.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",_[_.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",_[_.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(B||(B={})),function(_){_[_.MIN_LOD=33082]="MIN_LOD",_[_.MAX_LOD=33083]="MAX_LOD",_[_.BASE_LEVEL=33084]="BASE_LEVEL",_[_.MAX_LEVEL=33085]="MAX_LEVEL",_[_.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE"}(P||(P={})),function(_){_[_.ALPHA=6406]="ALPHA",_[_.RGB=6407]="RGB",_[_.RGBA=6408]="RGBA",_[_.LUMINANCE=6409]="LUMINANCE",_[_.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",_[_.RED=6403]="RED",_[_.RG=33319]="RG",_[_.RED_INTEGER=36244]="RED_INTEGER",_[_.RG_INTEGER=33320]="RG_INTEGER",_[_.RGB_INTEGER=36248]="RGB_INTEGER",_[_.RGBA_INTEGER=36249]="RGBA_INTEGER"}(M||(M={})),function(_){_[_.RGBA4=32854]="RGBA4",_[_.R16F=33325]="R16F",_[_.RG16F=33327]="RG16F",_[_.RGB32F=34837]="RGB32F",_[_.RGBA16F=34842]="RGBA16F",_[_.R32F=33326]="R32F",_[_.RG32F=33328]="RG32F",_[_.RGBA32F=34836]="RGBA32F",_[_.R11F_G11F_B10F=35898]="R11F_G11F_B10F",_[_.RGB8=32849]="RGB8",_[_.RGBA8=32856]="RGBA8",_[_.RGB5_A1=32855]="RGB5_A1",_[_.R8=33321]="R8",_[_.RG8=33323]="RG8",_[_.R8I=33329]="R8I",_[_.R8UI=33330]="R8UI",_[_.R16I=33331]="R16I",_[_.R16UI=33332]="R16UI",_[_.R32I=33333]="R32I",_[_.R32UI=33334]="R32UI",_[_.RG8I=33335]="RG8I",_[_.RG8UI=33336]="RG8UI",_[_.RG16I=33337]="RG16I",_[_.RG16UI=33338]="RG16UI",_[_.RG32I=33339]="RG32I",_[_.RG32UI=33340]="RG32UI",_[_.RGB16F=34843]="RGB16F",_[_.RGB9_E5=35901]="RGB9_E5",_[_.SRGB8=35905]="SRGB8",_[_.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",_[_.RGB565=36194]="RGB565",_[_.RGBA32UI=36208]="RGBA32UI",_[_.RGB32UI=36209]="RGB32UI",_[_.RGBA16UI=36214]="RGBA16UI",_[_.RGB16UI=36215]="RGB16UI",_[_.RGBA8UI=36220]="RGBA8UI",_[_.RGB8UI=36221]="RGB8UI",_[_.RGBA32I=36226]="RGBA32I",_[_.RGB32I=36227]="RGB32I",_[_.RGBA16I=36232]="RGBA16I",_[_.RGB16I=36233]="RGB16I",_[_.RGBA8I=36238]="RGBA8I",_[_.RGB8I=36239]="RGB8I",_[_.R8_SNORM=36756]="R8_SNORM",_[_.RG8_SNORM=36757]="RG8_SNORM",_[_.RGB8_SNORM=36758]="RGB8_SNORM",_[_.RGBA8_SNORM=36759]="RGBA8_SNORM",_[_.RGB10_A2=32857]="RGB10_A2",_[_.RGB10_A2UI=36975]="RGB10_A2UI"}(U||(U={})),function(_){_[_.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(r||(r={})),function(_){_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(F||(F={})),function(_){_[_.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",_[_.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",_[_.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F"}(a||(a={})),function(_){_[_.STENCIL_INDEX8=36168]="STENCIL_INDEX8"}(i||(i={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",_[_.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",_[_.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",_[_.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.INT=5124]="INT",_[_.HALF_FLOAT=5131]="HALF_FLOAT",_[_.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",_[_.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",_[_.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",_[_.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(u||(u={})),function(_){_[_.STATIC_DRAW=35044]="STATIC_DRAW",_[_.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",_[_.STREAM_DRAW=35040]="STREAM_DRAW",_[_.STATIC_READ=35045]="STATIC_READ",_[_.DYNAMIC_READ=35049]="DYNAMIC_READ",_[_.STREAM_READ=35041]="STREAM_READ",_[_.STATIC_COPY=35046]="STATIC_COPY",_[_.DYNAMIC_COPY=35050]="DYNAMIC_COPY",_[_.STREAM_COPY=35042]="STREAM_COPY"}(l||(l={})),function(_){_[_.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",_[_.VERTEX_SHADER=35633]="VERTEX_SHADER"}(c||(c={})),function(_){_[_.FRAMEBUFFER=36160]="FRAMEBUFFER",_[_.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",_[_.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(o||(o={})),function(_){_[_.Texture=0]="Texture",_[_.TileTexture=1]="TileTexture",_[_.BufferObject=2]="BufferObject",_[_.VertexArrayObject=3]="VertexArrayObject",_[_.Shader=4]="Shader",_[_.Program=5]="Program",_[_.FramebufferObject=6]="FramebufferObject",_[_.Renderbuffer=7]="Renderbuffer",_[_.TransformFeedback=8]="TransformFeedback",_[_.Sync=9]="Sync",_[_.UNCOUNTED=10]="UNCOUNTED",_[_.LinesOfCode=10]="LinesOfCode",_[_.Uniform=11]="Uniform",_[_.COUNT=12]="COUNT"}(s||(s={})),function(_){_[_.NONE=0]="NONE",_[_.BACK=1029]="BACK"}(f||(f={}));const H=36064,X=36065,V=36066,d=33306;var Y,h,p,w,m,y,b,x,W;!function(_){_[_.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",_[_.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",_[_.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",_[_.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",_[_.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",_[_.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",_[_.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",_[_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",_[_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(Y||(Y={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.FLOAT_VEC2=35664]="FLOAT_VEC2",_[_.FLOAT_VEC3=35665]="FLOAT_VEC3",_[_.FLOAT_VEC4=35666]="FLOAT_VEC4",_[_.INT=5124]="INT",_[_.INT_VEC2=35667]="INT_VEC2",_[_.INT_VEC3=35668]="INT_VEC3",_[_.INT_VEC4=35669]="INT_VEC4",_[_.BOOL=35670]="BOOL",_[_.BOOL_VEC2=35671]="BOOL_VEC2",_[_.BOOL_VEC3=35672]="BOOL_VEC3",_[_.BOOL_VEC4=35673]="BOOL_VEC4",_[_.FLOAT_MAT2=35674]="FLOAT_MAT2",_[_.FLOAT_MAT3=35675]="FLOAT_MAT3",_[_.FLOAT_MAT4=35676]="FLOAT_MAT4",_[_.SAMPLER_2D=35678]="SAMPLER_2D",_[_.SAMPLER_CUBE=35680]="SAMPLER_CUBE",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",_[_.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",_[_.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",_[_.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",_[_.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",_[_.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",_[_.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",_[_.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",_[_.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",_[_.SAMPLER_3D=35679]="SAMPLER_3D",_[_.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",_[_.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",_[_.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",_[_.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",_[_.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",_[_.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",_[_.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",_[_.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",_[_.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",_[_.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",_[_.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",_[_.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(h||(h={})),function(_){_[_.OBJECT_TYPE=37138]="OBJECT_TYPE",_[_.SYNC_CONDITION=37139]="SYNC_CONDITION",_[_.SYNC_STATUS=37140]="SYNC_STATUS",_[_.SYNC_FLAGS=37141]="SYNC_FLAGS"}(p||(p={})),function(_){_[_.UNSIGNALED=37144]="UNSIGNALED",_[_.SIGNALED=37145]="SIGNALED"}(w||(w={})),function(_){_[_.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",_[_.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",_[_.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",_[_.WAIT_FAILED=37149]="WAIT_FAILED"}(m||(m={})),function(_){_[_.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(y||(y={})),function(_){_[_.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(b||(b={})),function(_){_[_.INVALID_ENUM=1280]="INVALID_ENUM",_[_.INVALID_VALUE=1281]="INVALID_VALUE",_[_.INVALID_OPERATION=1282]="INVALID_OPERATION",_[_.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",_[_.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",_[_.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL"}(x||(x={})),function(_){_[_.COMPLETION_STATUS_KHR=37297]="COMPLETION_STATUS_KHR"}(W||(W={}))},92993:(_,E,R)=>{var A;R.d(E,{n:()=>A}),function(_){_[_.ETC1_RGB=0]="ETC1_RGB",_[_.ETC2_RGBA=1]="ETC2_RGBA",_[_.BC1_RGB=2]="BC1_RGB",_[_.BC3_RGBA=3]="BC3_RGBA",_[_.BC4_R=4]="BC4_R",_[_.BC5_RG=5]="BC5_RG",_[_.BC7_M6_RGB=6]="BC7_M6_RGB",_[_.BC7_M5_RGBA=7]="BC7_M5_RGBA",_[_.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",_[_.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",_[_.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",_[_.ATC_RGB=11]="ATC_RGB",_[_.ATC_RGBA=12]="ATC_RGBA",_[_.FXT1_RGB=17]="FXT1_RGB",_[_.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",_[_.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",_[_.ETC2_EAC_R11=20]="ETC2_EAC_R11",_[_.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",_[_.RGBA32=13]="RGBA32",_[_.RGB565=14]="RGB565",_[_.BGR565=15]="BGR565",_[_.RGBA4444=16]="RGBA4444"}(A||(A={}))},95902:(_,E,R)=>{R.r(E),R.d(E,{TextureCompressionWorkerOutput:()=>t,compress:()=>D,compressRGBADataToKTX2:()=>P,createTextureDataKTX2:()=>M,destroy:()=>G,initializeBasisEncoder:()=>L,initializeDXTEncoder:()=>B});var A=R(2741);let T;var N=R(92993);let S;var I=R(63907);let C,e,O=null,n=null;class t{constructor(_,E){this.internalFormat=_,this.compressedTexture=E}}function G(){O=null,C=null,n=null,e=null,T=null,S=null}async function D(_){let E;if(E=_.data instanceof ImageBitmap?function(_){const E=new OffscreenCanvas(_.width,_.height),R=E.getContext("2d");return R.drawImage(_,0,0),R.getImageData(0,0,E.width,E.height).data}(_.data):function(_,E,R,A,T){const N=new Uint8ClampedArray(_).subarray(0,E*R*A);if(!T)return N;const S=new Uint8ClampedArray(N.length),I=E*A;for(let _=0;_<R;_++){const E=_*I,A=(R-_-1)*I;S.set(N.subarray(E,E+I),A)}return S}(_.data,_.width,_.height,_.components,_.needsFlip),_.hasS3TC){n||await B();const R=new Uint8Array(E.length);if(n?.encode(E,_.width,_.height,_.preMultiplyAlpha,R)){const _=function(_){const E=new Int32Array(_.buffer,_.byteOffset,U);let R,A;switch(E[l]){case s:R=8,A=I.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case f:R=16,A=I.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case H:R=16,A=I.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let T=1,N=E[i],S=E[a];(3&N||3&S)&&(N=N+3&-4,S=S+3&-4);const C=N,e=S;let O,n;E[F]&c&&(T=Math.max(1,E[u]));let t=_.byteOffset+E[r]+4;const G=[];for(let E=0;E<T;++E)n=(N+3>>2)*(S+3>>2)*R,O=new Uint8Array(_.buffer,t,n),G.push(O),t+=n,N=Math.max(1,N>>1),S=Math.max(1,S>>1);return{textureData:{type:"compressed",levels:G},internalFormat:A,width:C,height:e}}(R),E=[R.buffer];return{result:new t(_?.internalFormat??null,_?.textureData??null),transferList:E}}return{result:new t(null,null)}}if(_.hasETC){if(O||await L(),_.preMultiplyAlpha&&!n&&await B(),_.preMultiplyAlpha){const R=new Uint8ClampedArray(E.length);n?.premultiply(new Uint8Array(E),_.width,_.height,R),E=R}const R=await P(E,_.width,_.height,_.hasMipmap),A=R?await M(R):null,T=A?.compressedTexture?.levels.map(_=>_.buffer)||[];return{result:new t(A?.internalFormat??null,A?.compressedTexture??null),transferList:T}}return{result:new t(null,null)}}async function L(){O||(O=await(C??=(T??=(async()=>{const _=await R.e(2372).then(R.bind(R,62372)),E=await _.default({locateFile:_=>(0,A.s)(`esri/libs/basisu/${_}`)});return E.initializeBasis(),E})(),T)),C=null)}async function B(){n||(n=await(e??=(S??=(async()=>{const _=await R.e(8714).then(R.bind(R,98714));return await _.default({locateFile:_=>(0,A.s)(`esri/libs/dxtEncoder/${_}`)})})(),S)),e=null)}async function P(_,E,R,A,T=255,N=0,S=!1,I=!1){if(!O)return null;const C=new O.BasisEncoder;C.setPerceptual(!I),C.setCheckForAlpha(!0),C.setForceAlpha(!1),C.setRenormalize(I),C.setMipGen(A),C.setMipSRGB(!I),C.setCreateKTX2File(!0),C.setKTX2SRGBTransferFunc(!I),C.setQualityLevel(T),C.setCompressionLevel(N);const e=new Uint8Array(_.byteLength);C.setSliceSourceImage(0,new Uint8Array(_),E,R,S);const n=C.encode(e),t=new Uint8Array(e.buffer,0,n),G=new O.KTX2File(new Uint8Array(t));return G.isValid()?(C.delete(),t):(G.close(),G.delete(),C.delete(),null)}async function M(_){if(!O)return new t(null,null);const E=new O.KTX2File(new Uint8Array(_));E.startTranscoding();const[R,A]=E.getHasAlpha()?[N.n.ETC2_RGBA,I.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[N.n.ETC1_RGB,I.CQ.COMPRESSED_RGB8_ETC2],T=E.getLevels(),S=[];for(let _=0;_<T;_++)S.push(new Uint8Array(E.getImageTranscodedSizeInBytes(_,0,0,R))),E.transcodeImage(S[_],_,0,0,R,0,-1,-1);return E.close(),E.delete(),{internalFormat:A,compressedTexture:{type:"compressed",levels:S}}}const U=31,r=1,F=2,a=3,i=4,u=7,l=21,c=131072;function o(_){return _.charCodeAt(0)+(_.charCodeAt(1)<<8)+(_.charCodeAt(2)<<16)+(_.charCodeAt(3)<<24)}const s=o("DXT1"),f=o("DXT3"),H=o("DXT5")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2603],{34304:(t,n,a)=>{a.d(n,{DF:()=>c,FD:()=>o,Ov:()=>e,ct:()=>i});let r=1e-6;function o(){return r}const e=Math.random,u=Math.PI/180,s=180/Math.PI;function c(t){return t*u}function i(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:e,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:i,toRadian:c},Symbol.toStringTag,{value:"Module"}))},51850:(t,n,a)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function e(t,n,a){return[t,n,a]}function u(t,n,a){return[t,n,a]}function s(t,n=[0,0,0]){const a=Math.min(3,t.length);for(let r=0;r<a;++r)n[r]=t[r];return n}function c(){return e(1,1,1)}function i(){return e(1,0,0)}function h(){return e(0,1,0)}function M(){return e(0,0,1)}a.d(n,{CN:()=>u,Cb:()=>d,Cw:()=>b,JP:()=>m,Un:()=>l,ci:()=>s,fA:()=>e,o8:()=>o,uY:()=>f,vt:()=>r});const f=[0,0,0],l=c(),b=i(),m=h(),d=M();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:b,UNIT_Y:m,UNIT_Z:d,ZEROS:f,clone:o,create:r,freeze:u,fromArray:s,fromValues:e,ones:c,unitX:i,unitY:h,unitZ:M,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},58083:(t,n,a)=>{a.d(n,{$0:()=>d,$h:()=>T,B8:()=>i,C:()=>e,D_:()=>s,N9:()=>p,O7:()=>S,Tl:()=>M,X_:()=>v,aI:()=>R,e$:()=>l,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>f,kN:()=>m,l:()=>y,lw:()=>h,mg:()=>c,o1:()=>O,sC:()=>x,t2:()=>N,t5:()=>D,tZ:()=>P,ut:()=>j});var r=a(51850),o=a(34304);function e(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,a,r,o,e,u,s,c,i,h,M,f,l,b,m,d){return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=e,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t[9]=h,t[10]=M,t[11]=f,t[12]=l,t[13]=b,t[14]=m,t[15]=d,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,n){if(t===n){const a=n[1],r=n[2],o=n[3],e=n[6],u=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=a,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=e,t[11]=n[14],t[12]=o,t[13]=u,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function i(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=n[4],s=n[5],c=n[6],i=n[7],h=n[8],M=n[9],f=n[10],l=n[11],b=n[12],m=n[13],d=n[14],g=n[15],p=a*s-r*u,_=a*c-o*u,q=a*i-e*u,x=r*c-o*s,v=r*i-e*s,y=o*i-e*c,O=h*m-M*b,S=h*d-f*b,T=h*g-l*b,D=M*d-f*m,I=M*g-l*m,N=f*g-l*d;let R=p*N-_*I+q*D+x*T-v*S+y*O;return R?(R=1/R,t[0]=(s*N-c*I+i*D)*R,t[1]=(o*I-r*N-e*D)*R,t[2]=(m*y-d*v+g*x)*R,t[3]=(f*v-M*y-l*x)*R,t[4]=(c*T-u*N-i*S)*R,t[5]=(a*N-o*T+e*S)*R,t[6]=(d*q-b*y-g*_)*R,t[7]=(h*y-f*q+l*_)*R,t[8]=(u*I-s*T+i*O)*R,t[9]=(r*T-a*I-e*O)*R,t[10]=(b*v-m*q+g*p)*R,t[11]=(M*q-h*v-l*p)*R,t[12]=(s*S-u*D-c*O)*R,t[13]=(a*D-r*S+o*O)*R,t[14]=(m*_-b*x-d*p)*R,t[15]=(h*x-M*_+f*p)*R,t):null}function h(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3],s=n[4],c=n[5],i=n[6],h=n[7],M=n[8],f=n[9],l=n[10],b=n[11],m=n[12],d=n[13],g=n[14],p=n[15];let _=a[0],q=a[1],x=a[2],v=a[3];return t[0]=_*r+q*s+x*M+v*m,t[1]=_*o+q*c+x*f+v*d,t[2]=_*e+q*i+x*l+v*g,t[3]=_*u+q*h+x*b+v*p,_=a[4],q=a[5],x=a[6],v=a[7],t[4]=_*r+q*s+x*M+v*m,t[5]=_*o+q*c+x*f+v*d,t[6]=_*e+q*i+x*l+v*g,t[7]=_*u+q*h+x*b+v*p,_=a[8],q=a[9],x=a[10],v=a[11],t[8]=_*r+q*s+x*M+v*m,t[9]=_*o+q*c+x*f+v*d,t[10]=_*e+q*i+x*l+v*g,t[11]=_*u+q*h+x*b+v*p,_=a[12],q=a[13],x=a[14],v=a[15],t[12]=_*r+q*s+x*M+v*m,t[13]=_*o+q*c+x*f+v*d,t[14]=_*e+q*i+x*l+v*g,t[15]=_*u+q*h+x*b+v*p,t}function M(t,n,a){const r=a[0],o=a[1],e=a[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*e+n[12],t[13]=n[1]*r+n[5]*o+n[9]*e+n[13],t[14]=n[2]*r+n[6]*o+n[10]*e+n[14],t[15]=n[3]*r+n[7]*o+n[11]*e+n[15];else{const a=n[0],u=n[1],s=n[2],c=n[3],i=n[4],h=n[5],M=n[6],f=n[7],l=n[8],b=n[9],m=n[10],d=n[11];t[0]=a,t[1]=u,t[2]=s,t[3]=c,t[4]=i,t[5]=h,t[6]=M,t[7]=f,t[8]=l,t[9]=b,t[10]=m,t[11]=d,t[12]=a*r+i*o+l*e+n[12],t[13]=u*r+h*o+b*e+n[13],t[14]=s*r+M*o+m*e+n[14],t[15]=c*r+f*o+d*e+n[15]}return t}function f(t,n,a){const r=a[0],o=a[1],e=a[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function l(t,n,a,r){let u=r[0],s=r[1],c=r[2],i=Math.sqrt(u*u+s*s+c*c);if(i<=(0,o.FD)())return void e(t,n);i=1/i,u*=i,s*=i,c*=i;const h=Math.sin(a),M=Math.cos(a),f=1-M,l=n[0],b=n[1],m=n[2],d=n[3],g=n[4],p=n[5],_=n[6],q=n[7],x=n[8],v=n[9],y=n[10],O=n[11],S=u*u*f+M,T=s*u*f+c*h,D=c*u*f-s*h,I=u*s*f-c*h,N=s*s*f+M,R=c*s*f+u*h,j=u*c*f+s*h,P=s*c*f-u*h,z=c*c*f+M;t[0]=l*S+g*T+x*D,t[1]=b*S+p*T+v*D,t[2]=m*S+_*T+y*D,t[3]=d*S+q*T+O*D,t[4]=l*I+g*N+x*R,t[5]=b*I+p*N+v*R,t[6]=m*I+_*N+y*R,t[7]=d*I+q*N+O*R,t[8]=l*j+g*P+x*z,t[9]=b*j+p*P+v*z,t[10]=m*j+_*P+y*z,t[11]=d*j+q*P+O*z,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[4],u=n[5],s=n[6],c=n[7],i=n[8],h=n[9],M=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=e*o+i*r,t[5]=u*o+h*r,t[6]=s*o+M*r,t[7]=c*o+f*r,t[8]=i*o-e*r,t[9]=h*o-u*r,t[10]=M*o-s*r,t[11]=f*o-c*r,t}function m(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function d(t,n,a){if(0===n)return s(t);let r=a[0],e=a[1],u=a[2],c=Math.sqrt(r*r+e*e+u*u);if(c<=(0,o.FD)())return null;c=1/c,r*=c,e*=c,u*=c;const i=Math.sin(n),h=Math.cos(n),M=1-h;return t[0]=r*r*M+h,t[1]=e*r*M+u*i,t[2]=u*r*M-e*i,t[3]=0,t[4]=r*e*M-u*i,t[5]=e*e*M+h,t[6]=u*e*M+r*i,t[7]=0,t[8]=r*u*M+e*i,t[9]=e*u*M-r*i,t[10]=u*u*M+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=a,t[7]=0,t[8]=0,t[9]=-a,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=0,t[3]=0,t[4]=-a,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3],s=r+r,c=o+o,i=e+e,h=r*s,M=r*c,f=r*i,l=o*c,b=o*i,m=e*i,d=u*s,g=u*c,p=u*i;return t[0]=1-(l+m),t[1]=M+p,t[2]=f-g,t[3]=0,t[4]=M-p,t[5]=1-(h+m),t[6]=b+d,t[7]=0,t[8]=f+g,t[9]=b-d,t[10]=1-(h+l),t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}const q=(0,r.vt)();function x(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function v(t,n){const a=n[0],r=n[1],o=n[2],e=n[4],u=n[5],s=n[6],c=n[8],i=n[9],h=n[10];return t[0]=Math.sqrt(a*a+r*r+o*o),t[1]=Math.sqrt(e*e+u*u+s*s),t[2]=Math.sqrt(c*c+i*i+h*h),t}function y(t,n){const a=n[0]+n[5]+n[10];let r=0;return a>0?(r=2*Math.sqrt(a+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function O(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=n[3],c=o+o,i=e+e,h=u+u,M=o*c,f=o*i,l=o*h,b=e*i,m=e*h,d=u*h,g=s*c,p=s*i,_=s*h,q=r[0],x=r[1],v=r[2];return t[0]=(1-(b+d))*q,t[1]=(f+_)*q,t[2]=(l-p)*q,t[3]=0,t[4]=(f-_)*x,t[5]=(1-(M+d))*x,t[6]=(m+g)*x,t[7]=0,t[8]=(l+p)*v,t[9]=(m-g)*v,t[10]=(1-(M+b))*v,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}function S(t,n,a,r,o){const e=n[0],u=n[1],s=n[2],c=n[3],i=e+e,h=u+u,M=s+s,f=e*i,l=e*h,b=e*M,m=u*h,d=u*M,g=s*M,p=c*i,_=c*h,q=c*M,x=r[0],v=r[1],y=r[2],O=o[0],S=o[1],T=o[2],D=(1-(m+g))*x,I=(l+q)*x,N=(b-_)*x,R=(l-q)*v,j=(1-(f+g))*v,P=(d+p)*v,z=(b+_)*y,A=(d-p)*y,C=(1-(f+m))*y;return t[0]=D,t[1]=I,t[2]=N,t[3]=0,t[4]=R,t[5]=j,t[6]=P,t[7]=0,t[8]=z,t[9]=A,t[10]=C,t[11]=0,t[12]=a[0]+O-(D*O+R*S+z*T),t[13]=a[1]+S-(I*O+j*S+A*T),t[14]=a[2]+T-(N*O+P*S+C*T),t[15]=1,t}function T(t,n,a,r,o,e,u){const s=1/(a-n),c=1/(o-r),i=1/(e-u);return t[0]=2*e*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*e*c,t[6]=0,t[7]=0,t[8]=(a+n)*s,t[9]=(o+r)*c,t[10]=(u+e)*i,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*e*2*i,t[15]=0,t}function D(t,n,a,r){const e=n[0],u=n[1],c=n[2];let i=e-a[0],h=u-a[1],M=c-a[2];const f=(0,o.FD)();if(Math.abs(i)<f&&Math.abs(h)<f&&Math.abs(M)<f)return void s(t);let l=1/Math.sqrt(i*i+h*h+M*M);i*=l,h*=l,M*=l;const b=r[0],m=r[1],d=r[2];let g=m*M-d*h,p=d*i-b*M,_=b*h-m*i;l=Math.sqrt(g*g+p*p+_*_),l?(l=1/l,g*=l,p*=l,_*=l):(g=0,p=0,_=0);let q=h*_-M*p,x=M*g-i*_,v=i*p-h*g;l=Math.sqrt(q*q+x*x+v*v),l?(l=1/l,q*=l,x*=l,v*=l):(q=0,x=0,v=0),t[0]=g,t[1]=q,t[2]=i,t[3]=0,t[4]=p,t[5]=x,t[6]=h,t[7]=0,t[8]=_,t[9]=v,t[10]=M,t[11]=0,t[12]=-(g*e+p*u+_*c),t[13]=-(q*e+x*u+v*c),t[14]=-(i*e+h*u+M*c),t[15]=1}function I(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t[6]=n[6]-a[6],t[7]=n[7]-a[7],t[8]=n[8]-a[8],t[9]=n[9]-a[9],t[10]=n[10]-a[10],t[11]=n[11]-a[11],t[12]=n[12]-a[12],t[13]=n[13]-a[13],t[14]=n[14]-a[14],t[15]=n[15]-a[15],t}function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function R(t,n){if(t===n)return!0;const a=t[0],r=t[1],e=t[2],u=t[3],s=t[4],c=t[5],i=t[6],h=t[7],M=t[8],f=t[9],l=t[10],b=t[11],m=t[12],d=t[13],g=t[14],p=t[15],_=n[0],q=n[1],x=n[2],v=n[3],y=n[4],O=n[5],S=n[6],T=n[7],D=n[8],I=n[9],N=n[10],R=n[11],j=n[12],P=n[13],z=n[14],A=n[15],C=(0,o.FD)();return Math.abs(a-_)<=C*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(r-q)<=C*Math.max(1,Math.abs(r),Math.abs(q))&&Math.abs(e-x)<=C*Math.max(1,Math.abs(e),Math.abs(x))&&Math.abs(u-v)<=C*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(s-y)<=C*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-O)<=C*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(i-S)<=C*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(h-T)<=C*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(M-D)<=C*Math.max(1,Math.abs(M),Math.abs(D))&&Math.abs(f-I)<=C*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(l-N)<=C*Math.max(1,Math.abs(l),Math.abs(N))&&Math.abs(b-R)<=C*Math.max(1,Math.abs(b),Math.abs(R))&&Math.abs(m-j)<=C*Math.max(1,Math.abs(m),Math.abs(j))&&Math.abs(d-P)<=C*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(g-z)<=C*Math.max(1,Math.abs(g),Math.abs(z))&&Math.abs(p-A)<=C*Math.max(1,Math.abs(p),Math.abs(A))}function j(t){const n=(0,o.FD)(),a=t[0],r=t[1],e=t[2],u=t[4],s=t[5],c=t[6],i=t[8],h=t[9],M=t[10];return Math.abs(1-(a*a+u*u+i*i))<=n&&Math.abs(1-(r*r+s*s+h*h))<=n&&Math.abs(1-(e*e+c*c+M*M))<=n}function P(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const z=h,A=I;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t[6]=n[6]+a[6],t[7]=n[7]+a[7],t[8]=n[8]+a[8],t[9]=n[9]+a[9],t[10]=n[10]+a[10],t[11]=n[11]+a[11],t[12]=n[12]+a[12],t[13]=n[13]+a[13],t[14]=n[14]+a[14],t[15]=n[15]+a[15],t},adjoint:function(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=n[4],s=n[5],c=n[6],i=n[7],h=n[8],M=n[9],f=n[10],l=n[11],b=n[12],m=n[13],d=n[14],g=n[15];return t[0]=s*(f*g-l*d)-M*(c*g-i*d)+m*(c*l-i*f),t[1]=-(r*(f*g-l*d)-M*(o*g-e*d)+m*(o*l-e*f)),t[2]=r*(c*g-i*d)-s*(o*g-e*d)+m*(o*i-e*c),t[3]=-(r*(c*l-i*f)-s*(o*l-e*f)+M*(o*i-e*c)),t[4]=-(u*(f*g-l*d)-h*(c*g-i*d)+b*(c*l-i*f)),t[5]=a*(f*g-l*d)-h*(o*g-e*d)+b*(o*l-e*f),t[6]=-(a*(c*g-i*d)-u*(o*g-e*d)+b*(o*i-e*c)),t[7]=a*(c*l-i*f)-u*(o*l-e*f)+h*(o*i-e*c),t[8]=u*(M*g-l*m)-h*(s*g-i*m)+b*(s*l-i*M),t[9]=-(a*(M*g-l*m)-h*(r*g-e*m)+b*(r*l-e*M)),t[10]=a*(s*g-i*m)-u*(r*g-e*m)+b*(r*i-e*s),t[11]=-(a*(s*l-i*M)-u*(r*l-e*M)+h*(r*i-e*s)),t[12]=-(u*(M*d-f*m)-h*(s*d-c*m)+b*(s*f-c*M)),t[13]=a*(M*d-f*m)-h*(r*d-o*m)+b*(r*f-o*M),t[14]=-(a*(s*d-c*m)-u*(r*d-o*m)+b*(r*c-o*s)),t[15]=a*(s*f-c*M)-u*(r*f-o*M)+h*(r*c-o*s),t},copy:e,determinant:function(t){const n=t[0],a=t[1],r=t[2],o=t[3],e=t[4],u=t[5],s=t[6],c=t[7],i=t[8],h=t[9],M=t[10],f=t[11],l=t[12],b=t[13],m=t[14],d=t[15];return(n*u-a*e)*(M*d-f*m)-(n*s-r*e)*(h*d-f*b)+(n*c-o*e)*(h*m-M*b)+(a*s-r*u)*(i*d-f*l)-(a*c-o*u)*(i*m-M*l)+(r*c-o*s)*(i*b-h*l)},equals:R,exactEquals:N,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=a+a,s=r+r,c=o+o,i=a*u,h=r*u,M=r*s,f=o*u,l=o*s,b=o*c,m=e*u,d=e*s,g=e*c;return t[0]=1-M-b,t[1]=h+g,t[2]=f-d,t[3]=0,t[4]=h-g,t[5]=1-i-b,t[6]=l+m,t[7]=0,t[8]=f+d,t[9]=l-m,t[10]=1-i-M,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const a=q,r=-n[0],o=-n[1],e=-n[2],u=n[3],s=n[4],c=n[5],i=n[6],h=n[7],M=r*r+o*o+e*e+u*u;return M>0?(a[0]=2*(s*u+h*r+c*e-i*o)/M,a[1]=2*(c*u+h*o+i*r-s*e)/M,a[2]=2*(i*u+h*e+s*o-c*r)/M):(a[0]=2*(s*u+h*r+c*e-i*o),a[1]=2*(c*u+h*o+i*r-s*e),a[2]=2*(i*u+h*e+s*o-c*r)),_(t,n,a),t},fromRotation:d,fromRotationTranslation:_,fromRotationTranslationScale:O,fromRotationTranslationScaleOrigin:S,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-a,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=a,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:p,frustum:T,getRotation:y,getScale:v,getTranslation:x,hasIdentityRotation:P,identity:s,invert:i,invertOrIdentity:function(t,n){return i(t,n)||s(t),t},isOrthoNormal:j,lookAt:D,mul:z,multiply:h,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12]*a,t[13]=n[13]*a,t[14]=n[14]*a,t[15]=n[15]*a,t},multiplyScalarAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t[6]=n[6]+a[6]*r,t[7]=n[7]+a[7]*r,t[8]=n[8]+a[8]*r,t[9]=n[9]+a[9]*r,t[10]=n[10]+a[10]*r,t[11]=n[11]+a[11]*r,t[12]=n[12]+a[12]*r,t[13]=n[13]+a[13]*r,t[14]=n[14]+a[14]*r,t[15]=n[15]+a[15]*r,t},ortho:function(t,n,a,r,o,e,u){const s=1/(n-a),c=1/(r-o),i=1/(e-u);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*i,t[11]=0,t[12]=(n+a)*s,t[13]=(o+r)*c,t[14]=(u+e)*i,t[15]=1,t},perspective:function(t,n,a,r,o){const e=1/Math.tan(n/2);let u;return t[0]=e/a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(u=1/(r-o),t[10]=(o+r)*u,t[14]=2*o*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,a,r){const o=Math.tan(n.upDegrees*Math.PI/180),e=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),c=2/(u+s),i=2/(o+e);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=-(u-s)*c*.5,t[9]=(o-e)*i*.5,t[10]=r/(a-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*a/(a-r),t[15]=0,t},rotate:l,rotateX:b,rotateY:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[0],u=n[1],s=n[2],c=n[3],i=n[8],h=n[9],M=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=e*o-i*r,t[1]=u*o-h*r,t[2]=s*o-M*r,t[3]=c*o-f*r,t[8]=e*r+i*o,t[9]=u*r+h*o,t[10]=s*r+M*o,t[11]=c*r+f*o,t},rotateZ:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[0],u=n[1],s=n[2],c=n[3],i=n[4],h=n[5],M=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=e*o+i*r,t[1]=u*o+h*r,t[2]=s*o+M*r,t[3]=c*o+f*r,t[4]=i*o-e*r,t[5]=h*o-u*r,t[6]=M*o-s*r,t[7]=f*o-c*r,t},scale:f,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:A,subtract:I,targetTo:function(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=r[0],c=r[1],i=r[2];let h=o-a[0],M=e-a[1],f=u-a[2],l=h*h+M*M+f*f;l>0&&(l=1/Math.sqrt(l),h*=l,M*=l,f*=l);let b=c*f-i*M,m=i*h-s*f,d=s*M-c*h;return l=b*b+m*m+d*d,l>0&&(l=1/Math.sqrt(l),b*=l,m*=l,d*=l),t[0]=b,t[1]=m,t[2]=d,t[3]=0,t[4]=M*d-f*m,t[5]=f*b-h*d,t[6]=h*m-M*b,t[7]=0,t[8]=h,t[9]=M,t[10]=f,t[11]=0,t[12]=o,t[13]=e,t[14]=u,t[15]=1,t},translate:M,transpose:c},Symbol.toStringTag,{value:"Module"}))},87317:(t,n,a)=>{a.d(n,{a:()=>_,b:()=>b,c:()=>o,d:()=>h,e:()=>q,f:()=>f,g:()=>u,h:()=>d,j:()=>l,l:()=>g,n:()=>m,s:()=>e,t:()=>p});var r=a(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function e(t,n,a,r,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t}function u(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t}function s(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t}function c(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t[3]=n[3]*a[3],t}function i(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t[3]=n[3]/a[3],t}function h(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t}function M(t,n){const a=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],e=n[3]-t[3];return Math.sqrt(a*a+r*r+o*o+e*e)}function f(t,n){const a=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],e=n[3]-t[3];return a*a+r*r+o*o+e*e}function l(t){const n=t[0],a=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+a*a+r*r+o*o)}function b(t){const n=t[0],a=t[1],r=t[2],o=t[3];return n*n+a*a+r*r+o*o}function m(t,n){const a=n[0],r=n[1],o=n[2],e=n[3];let u=a*a+r*r+o*o+e*e;return u>0&&(u=1/Math.sqrt(u),t[0]=a*u,t[1]=r*u,t[2]=o*u,t[3]=e*u),t}function d(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function g(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=n[3];return t[0]=o+r*(a[0]-o),t[1]=e+r*(a[1]-e),t[2]=u+r*(a[2]-u),t[3]=s+r*(a[3]-s),t}function p(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3];return t[0]=a[0]*r+a[4]*o+a[8]*e+a[12]*u,t[1]=a[1]*r+a[5]*o+a[9]*e+a[13]*u,t[2]=a[2]*r+a[6]*o+a[10]*e+a[14]*u,t[3]=a[3]*r+a[7]*o+a[11]*e+a[15]*u,t}function _(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function q(t,n){const a=t[0],o=t[1],e=t[2],u=t[3],s=n[0],c=n[1],i=n[2],h=n[3],M=(0,r.FD)();return Math.abs(a-s)<=M*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(o-c)<=M*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(e-i)<=M*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(u-h)<=M*Math.max(1,Math.abs(u),Math.abs(h))}const x=s,v=c,y=i,O=M,S=f,T=l,D=b;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:O,distance:M,div:y,divide:i,dot:d,equals:q,exactEquals:_,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:T,length:l,lerp:g,max:function(t,n,a){return t[0]=Math.max(n[0],a[0]),t[1]=Math.max(n[1],a[1]),t[2]=Math.max(n[2],a[2]),t[3]=Math.max(n[3],a[3]),t},min:function(t,n,a){return t[0]=Math.min(n[0],a[0]),t[1]=Math.min(n[1],a[1]),t[2]=Math.min(n[2],a[2]),t[3]=Math.min(n[3],a[3]),t},mul:v,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:m,random:function(t,n=1){const a=r.Ov;let o,e,u,s,c,i;do{o=2*a()-1,e=2*a()-1,c=o*o+e*e}while(c>=1);do{u=2*a()-1,s=2*a()-1,i=u*u+s*s}while(i>=1);const h=Math.sqrt((1-c)/i);return t[0]=n*o,t[1]=n*e,t[2]=n*u*h,t[3]=n*s*h,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:h,scaleAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t},set:e,sqrDist:S,sqrLen:D,squaredDistance:f,squaredLength:b,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:s,transformMat4:p,transformQuat:function(t,n,a){const r=n[0],o=n[1],e=n[2],u=a[0],s=a[1],c=a[2],i=a[3],h=i*r+s*e-c*o,M=i*o+c*r-u*e,f=i*e+u*o-s*r,l=-u*r-s*o-c*e;return t[0]=h*i+l*-u+M*-c-f*-s,t[1]=M*i+l*-s+f*-u-h*-c,t[2]=f*i+l*-c+h*-s-M*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},91829:(t,n,a)=>{function r(){return[0,0,0,0]}function o(t){return[t[0],t[1],t[2],t[3]]}function e(t,n,a,r){return[t,n,a,r]}function u(t,n,a,r){return[t,n,a,r]}function s(t,n=[0,0,0,0]){const a=Math.min(4,t.length);for(let r=0;r<a;++r)n[r]=t[r];return n}function c(){return e(1,1,1,1)}function i(){return e(1,0,0,0)}function h(){return e(0,1,0,0)}function M(){return e(0,0,1,0)}function f(){return e(0,0,0,1)}a.d(n,{CN:()=>u,Un:()=>b,ci:()=>s,fA:()=>e,o8:()=>o,uY:()=>l,vt:()=>r});const l=[0,0,0,0],b=c(),m=i(),d=h(),g=M(),p=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:b,UNIT_W:p,UNIT_X:m,UNIT_Y:d,UNIT_Z:g,ZEROS:l,clone:o,create:r,freeze:u,fromArray:s,fromValues:e,ones:c,unitW:f,unitX:i,unitY:h,unitZ:M,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3610],{4902:(t,e,r)=>{r.d(e,{A:()=>u});var s=r(90237),i=r(40608);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,s._)([(0,i.$)("esri.core.Identifiable")],e),e};let l=class extends(n(class{})){};var a;l=(0,s._)([(0,i.$)("esri.core.Identifiable")],l),(a=l||(l={})).IdentifiableMixin=n,a.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,s._)([(0,i.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=l},8303:(t,e,r)=>{r.d(e,{A:()=>v});var s=r(90237),i=r(92602),o=r(70333),n=r(78888),l=r(60999),a=r(49186),u=r(53966),h=r(97768),c=r(74887),p=r(84952),d=r(10107),y=(r(44208),r(87811),r(36005)),m=r(40608),g=r(43937),f=r(77548),S=r(20655),w=r(80812),b=r(41318),_=r(10407);const v=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new w.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:s}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,c.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,c.QP)(t),!0)))}async setUserPrivileges(t,e){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,c.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!o.id?.findCredential(this.url),i=t===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,s);let n,l;if(i)n=r.portal.url;else try{n=await(0,f.wI)(this.url,e)}catch(t){(0,c.QP)(t)}if(!n||!(0,p.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;l=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,c.QP)(t)}const a=!0,u=!1,h=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(i?await r.reload():(r=new w.default({id:t,portal:{url:n}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,s)}catch(t){(0,c.QP)(t)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,_.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,c.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const r=M.credential===e?M.user:await this._fetchEditingUser(t);return M.credential=e,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,i=S.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(s))return i.user;const a=`${s}/community/self`,u=null!=t?t.signal:null,h=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?b.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||S.A.getDefault());return r&&s&&!(0,p.ut)(s.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.A("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(t,{...e,layer:this})}};return(0,s._)([(0,d.MZ)({type:w.default})],e.prototype,"portalItem",null),(0,s._)([(0,y.w)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,s._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,s._)([(0,d.MZ)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,s._)([(0,m.$)("esri.layers.mixins.PortalLayer")],e),e},M={credential:null,user:null}},20378:(t,e,r)=>{r.d(e,{A:()=>p});var s=r(90237),i=r(68197),o=r(66552),n=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608);const h=new o.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,p=class extends n.A{constructor(t){super(t),this.id="sym"+c++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,s._)([(0,l.MZ)({type:h.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:h.write,isRequired:!0}}})],p.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:i.A,json:{write:{allowNull:!0}}})],p.prototype,"color",void 0),(0,s._)([(0,a.w)("color")],p.prototype,"readColor",null),p=(0,s._)([(0,u.$)("esri.symbols.Symbol")],p)},27865:(t,e,r)=>{r.d(e,{O9:()=>o,dw:()=>n,mj:()=>i});var s=r(59247);function i(t,e){const r=t.length>e.length?t:e;return(t.length>e.length?e:t).every((t,e)=>t.type===r[e].type)}function o(t,e){const r=t.length>e.length?t:e,i=t.length>e.length?e:t;for(let t=i.length;t<r.length;t++)i.push((0,s.sK)(r[t]))}function n(t){const e=t[0];return!!e&&"type"in e}},31593:(t,e,r)=>{r.d(e,{A:()=>v});var s=r(90237),i=r(66552),o=r(4718),n=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(40608),h=(r(87811),r(20378));let c=class extends h.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,s._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],c.prototype,"width",void 0),c=(0,s._)([(0,u.$)("esri.symbols.LineSymbol")],c);var p,d=r(68197),y=r(25482),m=r(36005),g=r(43937),f=r(83213);let S=p=class extends y.A{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,r,s){e[r]="web-map"===s?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,r,s){"web-map"===s?.origin||(e[r]=t)}clone(){return new p({color:(0,o.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,s._)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],S.prototype,"placement",void 0),(0,s._)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],S.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:f.z})],S.prototype,"style",void 0),(0,s._)([(0,g.K)("style")],S.prototype,"writeStyle",null),(0,s._)([(0,l.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],S.prototype,"color",null),(0,s._)([(0,m.w)("color")],S.prototype,"readColor",null),(0,s._)([(0,g.K)("color")],S.prototype,"writeColor",null),S=p=(0,s._)([(0,u.$)("esri.symbols.LineSymbolMarker")],S);const w=S;var b;const _=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let v=b=class extends c{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,r,s,i,o){if(t&&"string"!=typeof t)return t;const l={};return null!=t&&(l.style=t),null!=e&&(l.color=e),null!=r&&(l.width=(0,n.cr)(r)),null!=s&&(l.cap=s),null!=i&&(l.join=i),null!=o&&(l.miterLimit=(0,n.cr)(o)),l}clone(){return new b({color:(0,o.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,s._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],v.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:_.apiValues,json:{read:_.read,write:_.write}})],v.prototype,"style",void 0),(0,s._)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],v.prototype,"cap",void 0),(0,s._)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],v.prototype,"join",void 0),(0,s._)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],v.prototype,"marker",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],v.prototype,"miterLimit",void 0),v=b=(0,s._)([(0,u.$)("esri.symbols.SimpleLineSymbol")],v)},53930:(t,e,r)=>{r.d(e,{A:()=>g});var s,i=r(90237),o=r(68197),n=r(66552),l=r(4718),a=r(90629),u=r(10107),h=(r(44208),r(53966),r(93223)),c=r(40608),p=r(43937),d=r(89420),y=r(31593);const m=new n.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=s=class extends d.A{constructor(...t){super(...t),this.color=new o.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new y.A}normalizeCtorArgs(t,e,r,s){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),null!=e&&(i.size=(0,a.cr)(e)),r&&(i.outline=r),s&&(i.color=s),i}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new s({angle:this.angle,color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i._)([(0,u.MZ)()],g.prototype,"color",void 0),(0,i._)([(0,p.K)("color")],g.prototype,"writeColor",null),(0,i._)([(0,h.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,i._)([(0,u.MZ)()],g.prototype,"size",void 0),(0,i._)([(0,u.MZ)({type:m.apiValues,json:{read:m.read,write:m.write}})],g.prototype,"style",void 0),(0,i._)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,i._)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":y.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=s=(0,i._)([(0,c.$)("esri.symbols.SimpleMarkerSymbol")],g)},58592:(t,e,r)=>{r.d(e,{A:()=>d});var s,i=r(90237),o=r(4718),n=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),h=r(40608),c=r(89420),p=r(77040);let d=s=class extends c.A{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const s={};return t&&(s.url=t),null!=e&&(s.width=(0,n.cr)(e)),null!=r&&(s.height=(0,n.cr)(r)),s}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new s({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,o.o8)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,i._)([(0,l.MZ)({json:{write:!1}})],d.prototype,"color",void 0),(0,i._)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,i._)([(0,l.MZ)(p.ku)],d.prototype,"url",void 0),(0,i._)([(0,l.MZ)(p.k7)],d.prototype,"source",void 0),(0,i._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],d.prototype,"height",void 0),(0,i._)([(0,u.w)("height",["height","size"])],d.prototype,"readHeight",null),(0,i._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],d.prototype,"width",void 0),(0,i._)([(0,l.MZ)({json:{write:!1}})],d.prototype,"size",void 0),d=s=(0,i._)([(0,h.$)("esri.symbols.PictureMarkerSymbol")],d)},59247:(t,e,r)=>{r.d(e,{bv:()=>a,Fk:()=>u,yG:()=>h,$b:()=>c,Nd:()=>p,jm:()=>d,sK:()=>g});var s=r(40876),i=r(90629);function o(){const t=new Float32Array(16);return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}const n=o();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(t){const e=new Float32Array(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},create:o,fromValues:function(t,e,r,s,i,o,n,l,a,u,h,c,p,d,y,m){const g=new Float32Array(16);return g[0]=t,g[1]=e,g[2]=r,g[3]=s,g[4]=i,g[5]=o,g[6]=n,g[7]=l,g[8]=a,g[9]=u,g[10]=h,g[11]=c,g[12]=p,g[13]=d,g[14]=y,g[15]=m,g}},Symbol.toStringTag,{value:"Module"}));var l=r(58083);class a{constructor(t,e,r){this.strength=t,this.radius=e,this.threshold=r,this.type="bloom"}interpolate(t,e,r){this.strength=y(t.strength,e.strength,r),this.radius=y(t.radius,e.radius,r),this.threshold=y(t.threshold,e.threshold,r)}clone(){return new a(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(t){this.radius=t,this.type="blur"}interpolate(t,e,r){this.radius=Math.round(y(t.radius,e.radius,r))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class h{constructor(t,e){this.type=t,this.amount=e,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,e,r){this.amount=y(t.amount,e.amount,r),this._updateMatrix()}clone(){return new h(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const t=this._colorMatrix||o();switch(this.type){case"brightness":this._colorMatrix=((t,e)=>{const r=(0,l.hZ)(t,e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1);return(0,l.mg)(r,r)})(t,this.amount);break;case"contrast":this._colorMatrix=((t,e)=>{const r=(0,l.hZ)(t,e,0,0,.5-.5*e,0,e,0,.5-.5*e,0,0,e,.5-.5*e,0,0,0,1);return(0,l.mg)(r,r)})(t,this.amount);break;case"grayscale":this._colorMatrix=(t=>{const e=1-this.amount,r=(0,l.hZ)(t,.2126+.7874*e,.7152-.7152*e,.0722-.0722*e,0,.2126-.2126*e,.7152+.2848*e,.0722-.0722*e,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,1);return(0,l.mg)(r,r)})(t);break;case"invert":this._colorMatrix=((t,e)=>{const r=1-2*e,s=(0,l.hZ)(t,r,0,0,e,0,r,0,e,0,0,r,e,0,0,0,1);return(0,l.mg)(s,s)})(t,this.amount);break;case"saturate":this._colorMatrix=((t,e)=>{const r=(0,l.hZ)(t,.213+.787*e,.715-.715*e,.072-.072*e,0,.213-.213*e,.715+.285*e,.072-.072*e,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,1);return(0,l.mg)(r,r)})(t,this.amount);break;case"sepia":this._colorMatrix=(t=>{const e=1-this.amount,r=(0,l.hZ)(t,.393+.607*e,.769-.769*e,.189-.189*e,0,.349-.349*e,.686+.314*e,.168-.168*e,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,1);return(0,l.mg)(r,r)})(t)}}}class c{constructor(t,e,r,s){this.offsetX=t,this.offsetY=e,this.blurRadius=r,this.color=s,this.type="drop-shadow"}interpolate(t,e,r){this.offsetX=y(t.offsetX,e.offsetX,r),this.offsetY=y(t.offsetY,e.offsetY,r),this.blurRadius=y(t.blurRadius,e.blurRadius,r),this.color[0]=Math.round(y(t.color[0],e.color[0],r)),this.color[1]=Math.round(y(t.color[1],e.color[1],r)),this.color[2]=Math.round(y(t.color[2],e.color[2],r)),this.color[3]=y(t.color[3],e.color[3],r)}clone(){return new c(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const t=[...this.color];return t[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:t}}}class p{constructor(t){this.angle=t,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,e,r){this.angle=y(t.angle,e.angle,r),this._updateMatrix()}clone(){return new p(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const t=this._colorMatrix||o();this._colorMatrix=((t,e)=>{const r=Math.sin(e*Math.PI/180),s=Math.cos(e*Math.PI/180),i=(0,l.hZ)(t,.213+.787*s-.213*r,.715-.715*s-.715*r,.072-.072*s+.928*r,0,.213-.213*s+.143*r,.715+.285*s+.14*r,.072-.072*s-.283*r,0,.213-.213*s-.787*r,.715-.715*s+.715*r,.072+.928*s+.072*r,0,0,0,0,1);return(0,l.mg)(i,i)})(t,this.angle)}}class d{constructor(t){this.amount=t,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(t,e,r){this.amount=y(t.amount,e.amount,r)}clone(){return new d(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function y(t,e,r){return t+(e-t)*r}function m(t){return Math.round(1e3*(0,i.PN)(t))/1e3}function g(t){switch(t.type){case"grayscale":case"sepia":case"invert":return new h(t.type,0);case"saturate":case"brightness":case"contrast":return new h(t.type,1);case"opacity":return new d(1);case"hue-rotate":return new p(0);case"blur":return new u(0);case"drop-shadow":return new c(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new a(0,0,1)}}},63201:(t,e,r)=>{r.r(e),r.d(e,{default:()=>L});var s=r(90237),i=r(92602),o=r(78888),n=r(92071),l=r(74887),a=r(84952),u=r(10107),h=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),p=r(5443),d=r(21325),y=r(4146),m=r(63074),g=r(16131),f=r(8303),S=r(54310),w=r(25036),b=r(10873),_=r(58592),v=r(94985),M=r(31593),A=r(53930),x=r(20378);const P=["atom","xml"],$={base:x.A,key:"type",typeMap:{"simple-line":M.A},errorContext:"symbol"},Z={base:x.A,key:"type",typeMap:{"picture-marker":_.A,"simple-marker":A.A},errorContext:"symbol"},D={base:x.A,key:"type",typeMap:{"simple-fill":v.A},errorContext:"symbol"};let T=class extends((0,m.dM)((0,S.J)((0,g.q)((0,f.A)((0,w.j)((0,n.P)(y.A))))))){constructor(...t){super(...t),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}readFeatureCollections(t,e){return e.featureCollection.layers.forEach(t=>{const e=t.layerDefinition.drawingInfo.renderer.symbol;e&&"esriSFS"===e.type&&e.outline?.style.includes("esriSFS")&&(e.outline.style="esriSLSSolid")}),e.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const t=this._get("title");return t&&"defaults"!==this.originOf("title")?t:this.url?(0,a.e7)(this.url,P)||"GeoRSS":t}set title(t){this._set("title",t)}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},t).catch(l.QP).then(()=>this._fetchService(e)).then(t=>{this.read(t,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const t=await this._fetchService();return this.read(t,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(t){const e=this.spatialReference,{data:r}=await(0,o.A)(i.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,d.oT)(e)?void 0:e.wkid??JSON.stringify(e)},signal:t});return r}_hasGeometry(t){return this.featureCollections?.some(e=>e.featureSet?.geometryType===t&&e.featureSet.features?.length>0)??!1}};(0,s._)([(0,u.MZ)()],T.prototype,"description",void 0),(0,s._)([(0,u.MZ)()],T.prototype,"featureCollections",void 0),(0,s._)([(0,h.w)("service","featureCollections",["featureCollection.layers"])],T.prototype,"readFeatureCollections",null),(0,s._)([(0,u.MZ)({type:p.A,json:{name:"lookAtExtent"}})],T.prototype,"fullExtent",void 0),(0,s._)([(0,u.MZ)(b.id)],T.prototype,"id",void 0),(0,s._)([(0,u.MZ)(b.fV)],T.prototype,"legendEnabled",void 0),(0,s._)([(0,u.MZ)({types:$,json:{write:!0}})],T.prototype,"lineSymbol",void 0),(0,s._)([(0,u.MZ)({type:["show","hide"]})],T.prototype,"listMode",void 0),(0,s._)([(0,u.MZ)({types:Z,json:{write:!0}})],T.prototype,"pointSymbol",void 0),(0,s._)([(0,u.MZ)({types:D,json:{write:!0}})],T.prototype,"polygonSymbol",void 0),(0,s._)([(0,u.MZ)({type:["GeoRSS"]})],T.prototype,"operationalLayerType",void 0),(0,s._)([(0,u.MZ)(b.OZ)],T.prototype,"url",void 0),(0,s._)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:t=>t||void 0}}}}})],T.prototype,"title",null),(0,s._)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],T.prototype,"type",void 0),T=(0,s._)([(0,c.$)("esri.layers.GeoRSSLayer")],T);const L=T},64272:(t,e,r)=>{r.d(e,{T:()=>p});var s,i=r(90237),o=r(25482),n=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),h=r(43937),c=r(98623);let p=class extends o.A{static{s=this}static get allTime(){return d}static get empty(){return y}static fromArray(t){return new s({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,s=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===s&&r===i}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,n.lL)(r,t,e));let i=this.end;if(i){const r=(0,n.lL)(i,t,e);i=i.getTime()===r.getTime()?r:(0,n.S1)(r,1,t,e)}return new s({start:r,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return s.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let n,l;return i>=e&&i<=r?n=i:e>=i&&e<=o&&(n=e),r>=i&&r<=o?l=r:o>=e&&o<=r&&(l=o),null==n||null==l||isNaN(n)||isNaN(l)?s.empty:new s({start:n===-1/0?null:new Date(n),end:l===1/0?null:new Date(l)})}offset(t,e,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new s,{start:o,end:l}=this;return null!=o&&(i.start=(0,n.S1)(o,t,e,r)),null!=l&&(i.end=(0,n.S1)(l,t,e,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new s({start:e,end:r})}};(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,a.w)("end")],p.prototype,"readEnd",null),(0,i._)([(0,h.K)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,a.w)("start")],p.prototype,"readStart",null),(0,i._)([(0,h.K)("start")],p.prototype,"writeStart",null),p=s=(0,i._)([(0,u.$)("esri.time.TimeExtent")],p);const d=new p,y=new p({start:void 0,end:void 0})},65851:(t,e,r)=>{r.d(e,{A:()=>a});var s=r(90237),i=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),n=r(31593),l=r(20378);let a=class extends l.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,s._)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":n.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,s._)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,s._)([(0,o.$)("esri.symbols.FillSymbol")],a)},68197:(t,e,r)=>{r.d(e,{A:()=>c});var s,i,o=r(40876),n=r(34727),l=r(56507);function a(t){return(0,n.qE)((0,l.Vr)(t),0,255)}function u(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class h{static blendColors(t,e,r,s=new h){return s.r=Math.round(t.r+(e.r-t.r)*r),s.g=Math.round(t.g+(e.g-t.g)*r),s.b=Math.round(t.b+(e.b-t.b)*r),s.a=t.a+(e.a-t.a)*r,s._sanitize()}static fromRgb(t,e){const r=(0,o.lT)(t);return r?h.fromArray(r,e):null}static fromHex(t,e=new h){const r=(0,o.oW)(t);return r?h.fromArray(r,e):null}static fromArray(t,e=new h){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,o.Eq)(t);return r?h.fromArray(r,e):null}static fromJSON(t){return null!=t?new h([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?h.fromString(t,this):Array.isArray(t)?h.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof h||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,s=3===r||4===r,i=4===r||8===r,o=`#${u(this.r,s)}${u(this.g,s)}${u(this.b,s)}${i?u(Math.round(255*this.a),s):""}`;return e?o.toUpperCase():o}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=h.AlphaMode.ALWAYS){const e=a(this.r),r=a(this.g),s=a(this.b);return t===h.AlphaMode.ALWAYS||1!==this.a?[e,r,s,a(255*this.a)]:[e,r,s]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,o.c1)(this.r),this.g=(0,o.c1)(this.g),this.b=(0,o.c1)(this.b),this.a=(0,o.G1)(this.a),this}_set(t,e,r,s){this.r=t,this.g=e,this.b=r,this.a=s}}h.prototype.declaredClass="esri.Color",(i=(s=h||(h={})).AlphaMode||(s.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=h},69540:(t,e,r)=>{r.d(e,{A:()=>p});var s=r(90237),i=r(69622),o=(r(44208),r(4718)),n=(r(53966),r(97768)),l=r(35666),a=r(88620),u=r(40608);const h=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,n.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,s={},i=new Map;for(const t in e){const n=e[t],a=r?.originOf(t),u=n.clonable;if(n.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const h=this[t];let c=null;c="function"==typeof u?u(h):"reference"===u?h:(0,o.TU)(h),null!=h&&null==c||(a===l.Gr.DEFAULTS?i.set(t,c):s[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(i.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,r]of i)t.set(e,r,l.Gr.DEFAULTS)}return u}};return e=(0,s._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(h(i.A)){};c=(0,s._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=h;const p=c},77040:(t,e,r)=>{r.d(e,{k7:()=>l,ku:()=>n});var s=r(84952),i=r(97159);function o(t,e){if(!(0,s.oP)(t)){const r=function(t){if(!t)return null;const{origin:e,layer:r}=t;if("service"!==e&&"portal-item"!==e)return null;const s=r?.type;return"feature"===s||"stream"===s?r.parsedUrl?.path:"map-image"===s||"tile"===s?t.url?.path:null}(e);if(r)return(0,s.fj)(r,"images",t)}return(0,i.f)(t,e)}const n={json:{read:{source:["imageData","url"],reader:function(t,e,r){return e.imageData?(0,s.Hg)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):o(e.url,r)}},write:{writer(t,e,r,o){!function(t,e,r,o){if((0,s.DB)(t)){const n=(0,s.r$)(t);if(!n)return;e.contentType=n.mediaType,e.imageData=n.data,r&&r.imageData===e.imageData&&r.url&&(0,i.w)(r.url,e,"url",o)}else(0,i.w)(t,e,"url",o)}(t,e,this.source,o)}}}},l={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,r){const s={};return e.imageData&&(s.imageData=e.imageData),e.contentType&&(s.contentType=e.contentType),e.url&&(s.url=o(e.url,r)),s}}}}},78553:(t,e,r)=>{r.d(e,{D:()=>o,p:()=>i});var s=r(56507);function i(t){const e=(0,s.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83213:(t,e,r)=>{r.d(e,{x:()=>s,z:()=>i});const s=["begin","end","begin-end"],i=["arrow","circle","square","diamond","cross","x"]},89420:(t,e,r)=>{r.d(e,{A:()=>u});var s=r(90237),i=r(90629),o=r(10107),n=r(56507),l=(r(44208),r(87811),r(40608)),a=r(20378);let u=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,s._)([(0,o.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],u.prototype,"angle",void 0),(0,s._)([(0,o.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,s._)([(0,o.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,s._)([(0,o.MZ)({cast:t=>"auto"===t?t:(0,n.GB)((0,i.cr)(t)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,s._)([(0,l.$)("esri.symbols.MarkerSymbol")],u)},90629:(t,e,r)=>{r.d(e,{Lz:()=>n,PN:()=>l,cr:()=>a,tc:()=>u});const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",o=96;function n(t){return t?t/72*o:0}function l(t){return t?72*t/o:0}function a(t){if("string"==typeof t){const e=t.match(s);if(e){const r=Number(e[1]),s=e[3]&&e[3].toLowerCase(),i="-"===t.charAt(0),o="px"===s?l(r):r;return i?-o:o}return console.warn(i),null}return t}function u(t=0,e=0){return{x:t,y:e}}},94985:(t,e,r)=>{r.d(e,{A:()=>y});var s,i=r(90237),o=r(68197),n=r(66552),l=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),h=r(40608),c=r(65851),p=r(31593);const d=new n.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let y=s=class extends c.A{constructor(...t){super(...t),this.color=new o.A([0,0,0,.25]),this.outline=new p.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),e&&(s.outline=e),r&&(s.color=r),s}clone(){return new s({color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i._)([(0,a.MZ)()],y.prototype,"color",void 0),(0,i._)([(0,a.MZ)()],y.prototype,"outline",void 0),(0,i._)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],y.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:d.apiValues,json:{read:d.read,write:d.write}})],y.prototype,"style",void 0),y=s=(0,i._)([(0,h.$)("esri.symbols.SimpleFillSymbol")],y)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3610],{4902:(t,e,r)=>{r.d(e,{A:()=>u});var s=r(90237),i=r(40608);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,s._)([(0,i.$)("esri.core.Identifiable")],e),e};let l=class extends(n(class{})){};var a;l=(0,s._)([(0,i.$)("esri.core.Identifiable")],l),(a=l||(l={})).IdentifiableMixin=n,a.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,s._)([(0,i.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=l},8303:(t,e,r)=>{r.d(e,{A:()=>v});var s=r(90237),i=r(92602),o=r(70333),n=r(78888),l=r(60999),a=r(49186),u=r(53966),h=r(97768),c=r(74887),p=r(84952),d=r(10107),y=(r(44208),r(87811),r(36005)),m=r(40608),g=r(43937),f=r(77548),S=r(20655),w=r(80812),b=r(41318),_=r(10407);const v=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new w.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:s}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,c.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,c.QP)(t),!0)))}async setUserPrivileges(t,e){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,c.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!o.id?.findCredential(this.url),i=t===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,s);let n,l;if(i)n=r.portal.url;else try{n=await(0,f.wI)(this.url,e)}catch(t){(0,c.QP)(t)}if(!n||!(0,p.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;l=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,c.QP)(t)}const a=!0,u=!1,h=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(i?await r.reload():(r=new w.default({id:t,portal:{url:n}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,s)}catch(t){(0,c.QP)(t)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,_.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,c.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const r=M.credential===e?M.user:await this._fetchEditingUser(t);return M.credential=e,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,i=S.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(s))return i.user;const a=`${s}/community/self`,u=null!=t?t.signal:null,h=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?b.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||S.A.getDefault());return r&&s&&!(0,p.ut)(s.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.A("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(t,{...e,layer:this})}};return(0,s._)([(0,d.MZ)({type:w.default})],e.prototype,"portalItem",null),(0,s._)([(0,y.w)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,s._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,s._)([(0,d.MZ)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,s._)([(0,m.$)("esri.layers.mixins.PortalLayer")],e),e},M={credential:null,user:null}},20378:(t,e,r)=>{r.d(e,{A:()=>p});var s=r(90237),i=r(68197),o=r(66552),n=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608);const h=new o.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,p=class extends n.A{constructor(t){super(t),this.id="sym"+c++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,s._)([(0,l.MZ)({type:h.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:h.write,isRequired:!0}}})],p.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:i.A,json:{write:{allowNull:!0}}})],p.prototype,"color",void 0),(0,s._)([(0,a.w)("color")],p.prototype,"readColor",null),p=(0,s._)([(0,u.$)("esri.symbols.Symbol")],p)},27865:(t,e,r)=>{r.d(e,{O9:()=>o,dw:()=>n,mj:()=>i});var s=r(59247);function i(t,e){const r=t.length>e.length?t:e;return(t.length>e.length?e:t).every((t,e)=>t.type===r[e].type)}function o(t,e){const r=t.length>e.length?t:e,i=t.length>e.length?e:t;for(let t=i.length;t<r.length;t++)i.push((0,s.sK)(r[t]))}function n(t){const e=t[0];return!!e&&"type"in e}},31593:(t,e,r)=>{r.d(e,{A:()=>v});var s=r(90237),i=r(66552),o=r(4718),n=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(40608),h=(r(87811),r(20378));let c=class extends h.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,s._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],c.prototype,"width",void 0),c=(0,s._)([(0,u.$)("esri.symbols.LineSymbol")],c);var p,d=r(68197),y=r(25482),m=r(36005),g=r(43937),f=r(83213);let S=p=class extends y.A{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,r,s){e[r]="web-map"===s?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,r,s){"web-map"===s?.origin||(e[r]=t)}clone(){return new p({color:(0,o.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,s._)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],S.prototype,"placement",void 0),(0,s._)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],S.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:f.z})],S.prototype,"style",void 0),(0,s._)([(0,g.K)("style")],S.prototype,"writeStyle",null),(0,s._)([(0,l.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],S.prototype,"color",null),(0,s._)([(0,m.w)("color")],S.prototype,"readColor",null),(0,s._)([(0,g.K)("color")],S.prototype,"writeColor",null),S=p=(0,s._)([(0,u.$)("esri.symbols.LineSymbolMarker")],S);const w=S;var b;const _=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let v=b=class extends c{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,r,s,i,o){if(t&&"string"!=typeof t)return t;const l={};return null!=t&&(l.style=t),null!=e&&(l.color=e),null!=r&&(l.width=(0,n.cr)(r)),null!=s&&(l.cap=s),null!=i&&(l.join=i),null!=o&&(l.miterLimit=(0,n.cr)(o)),l}clone(){return new b({color:(0,o.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,s._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],v.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:_.apiValues,json:{read:_.read,write:_.write}})],v.prototype,"style",void 0),(0,s._)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],v.prototype,"cap",void 0),(0,s._)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],v.prototype,"join",void 0),(0,s._)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],v.prototype,"marker",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],v.prototype,"miterLimit",void 0),v=b=(0,s._)([(0,u.$)("esri.symbols.SimpleLineSymbol")],v)},53930:(t,e,r)=>{r.d(e,{A:()=>g});var s,i=r(90237),o=r(68197),n=r(66552),l=r(4718),a=r(90629),u=r(10107),h=(r(44208),r(53966),r(93223)),c=r(40608),p=r(43937),d=r(89420),y=r(31593);const m=new n.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=s=class extends d.A{constructor(...t){super(...t),this.color=new o.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new y.A}normalizeCtorArgs(t,e,r,s){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),null!=e&&(i.size=(0,a.cr)(e)),r&&(i.outline=r),s&&(i.color=s),i}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new s({angle:this.angle,color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i._)([(0,u.MZ)()],g.prototype,"color",void 0),(0,i._)([(0,p.K)("color")],g.prototype,"writeColor",null),(0,i._)([(0,h.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,i._)([(0,u.MZ)()],g.prototype,"size",void 0),(0,i._)([(0,u.MZ)({type:m.apiValues,json:{read:m.read,write:m.write}})],g.prototype,"style",void 0),(0,i._)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,i._)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":y.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=s=(0,i._)([(0,c.$)("esri.symbols.SimpleMarkerSymbol")],g)},58592:(t,e,r)=>{r.d(e,{A:()=>d});var s,i=r(90237),o=r(4718),n=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),h=r(40608),c=r(89420),p=r(77040);let d=s=class extends c.A{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const s={};return t&&(s.url=t),null!=e&&(s.width=(0,n.cr)(e)),null!=r&&(s.height=(0,n.cr)(r)),s}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new s({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,o.o8)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,i._)([(0,l.MZ)({json:{write:!1}})],d.prototype,"color",void 0),(0,i._)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,i._)([(0,l.MZ)(p.ku)],d.prototype,"url",void 0),(0,i._)([(0,l.MZ)(p.k7)],d.prototype,"source",void 0),(0,i._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],d.prototype,"height",void 0),(0,i._)([(0,u.w)("height",["height","size"])],d.prototype,"readHeight",null),(0,i._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],d.prototype,"width",void 0),(0,i._)([(0,l.MZ)({json:{write:!1}})],d.prototype,"size",void 0),d=s=(0,i._)([(0,h.$)("esri.symbols.PictureMarkerSymbol")],d)},59247:(t,e,r)=>{r.d(e,{bv:()=>a,Fk:()=>u,yG:()=>h,$b:()=>c,Nd:()=>p,jm:()=>d,sK:()=>g});var s=r(40876),i=r(90629);function o(){const t=new Float32Array(16);return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}const n=o();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(t){const e=new Float32Array(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},create:o,fromValues:function(t,e,r,s,i,o,n,l,a,u,h,c,p,d,y,m){const g=new Float32Array(16);return g[0]=t,g[1]=e,g[2]=r,g[3]=s,g[4]=i,g[5]=o,g[6]=n,g[7]=l,g[8]=a,g[9]=u,g[10]=h,g[11]=c,g[12]=p,g[13]=d,g[14]=y,g[15]=m,g}},Symbol.toStringTag,{value:"Module"}));var l=r(58083);class a{constructor(t,e,r){this.strength=t,this.radius=e,this.threshold=r,this.type="bloom"}interpolate(t,e,r){this.strength=y(t.strength,e.strength,r),this.radius=y(t.radius,e.radius,r),this.threshold=y(t.threshold,e.threshold,r)}clone(){return new a(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(t){this.radius=t,this.type="blur"}interpolate(t,e,r){this.radius=Math.round(y(t.radius,e.radius,r))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class h{constructor(t,e){this.type=t,this.amount=e,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,e,r){this.amount=y(t.amount,e.amount,r),this._updateMatrix()}clone(){return new h(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const t=this._colorMatrix||o();switch(this.type){case"brightness":this._colorMatrix=((t,e)=>{const r=(0,l.hZ)(t,e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1);return(0,l.mg)(r,r)})(t,this.amount);break;case"contrast":this._colorMatrix=((t,e)=>{const r=(0,l.hZ)(t,e,0,0,.5-.5*e,0,e,0,.5-.5*e,0,0,e,.5-.5*e,0,0,0,1);return(0,l.mg)(r,r)})(t,this.amount);break;case"grayscale":this._colorMatrix=(t=>{const e=1-this.amount,r=(0,l.hZ)(t,.2126+.7874*e,.7152-.7152*e,.0722-.0722*e,0,.2126-.2126*e,.7152+.2848*e,.0722-.0722*e,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,1);return(0,l.mg)(r,r)})(t);break;case"invert":this._colorMatrix=((t,e)=>{const r=1-2*e,s=(0,l.hZ)(t,r,0,0,e,0,r,0,e,0,0,r,e,0,0,0,1);return(0,l.mg)(s,s)})(t,this.amount);break;case"saturate":this._colorMatrix=((t,e)=>{const r=(0,l.hZ)(t,.213+.787*e,.715-.715*e,.072-.072*e,0,.213-.213*e,.715+.285*e,.072-.072*e,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,1);return(0,l.mg)(r,r)})(t,this.amount);break;case"sepia":this._colorMatrix=(t=>{const e=1-this.amount,r=(0,l.hZ)(t,.393+.607*e,.769-.769*e,.189-.189*e,0,.349-.349*e,.686+.314*e,.168-.168*e,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,1);return(0,l.mg)(r,r)})(t)}}}class c{constructor(t,e,r,s){this.offsetX=t,this.offsetY=e,this.blurRadius=r,this.color=s,this.type="drop-shadow"}interpolate(t,e,r){this.offsetX=y(t.offsetX,e.offsetX,r),this.offsetY=y(t.offsetY,e.offsetY,r),this.blurRadius=y(t.blurRadius,e.blurRadius,r),this.color[0]=Math.round(y(t.color[0],e.color[0],r)),this.color[1]=Math.round(y(t.color[1],e.color[1],r)),this.color[2]=Math.round(y(t.color[2],e.color[2],r)),this.color[3]=y(t.color[3],e.color[3],r)}clone(){return new c(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const t=[...this.color];return t[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:t}}}class p{constructor(t){this.angle=t,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,e,r){this.angle=y(t.angle,e.angle,r),this._updateMatrix()}clone(){return new p(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const t=this._colorMatrix||o();this._colorMatrix=((t,e)=>{const r=Math.sin(e*Math.PI/180),s=Math.cos(e*Math.PI/180),i=(0,l.hZ)(t,.213+.787*s-.213*r,.715-.715*s-.715*r,.072-.072*s+.928*r,0,.213-.213*s+.143*r,.715+.285*s+.14*r,.072-.072*s-.283*r,0,.213-.213*s-.787*r,.715-.715*s+.715*r,.072+.928*s+.072*r,0,0,0,0,1);return(0,l.mg)(i,i)})(t,this.angle)}}class d{constructor(t){this.amount=t,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(t,e,r){this.amount=y(t.amount,e.amount,r)}clone(){return new d(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function y(t,e,r){return t+(e-t)*r}function m(t){return Math.round(1e3*(0,i.PN)(t))/1e3}function g(t){switch(t.type){case"grayscale":case"sepia":case"invert":return new h(t.type,0);case"saturate":case"brightness":case"contrast":return new h(t.type,1);case"opacity":return new d(1);case"hue-rotate":return new p(0);case"blur":return new u(0);case"drop-shadow":return new c(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new a(0,0,1)}}},63201:(t,e,r)=>{r.r(e),r.d(e,{default:()=>L});var s=r(90237),i=r(92602),o=r(78888),n=r(92071),l=r(74887),a=r(84952),u=r(10107),h=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),p=r(5443),d=r(21325),y=r(4146),m=r(63074),g=r(16131),f=r(8303),S=r(54310),w=r(25036),b=r(10873),_=r(58592),v=r(94985),M=r(31593),A=r(53930),x=r(20378);const P=["atom","xml"],$={base:x.A,key:"type",typeMap:{"simple-line":M.A},errorContext:"symbol"},Z={base:x.A,key:"type",typeMap:{"picture-marker":_.A,"simple-marker":A.A},errorContext:"symbol"},D={base:x.A,key:"type",typeMap:{"simple-fill":v.A},errorContext:"symbol"};let T=class extends((0,m.dM)((0,S.J)((0,g.q)((0,f.A)((0,w.j)((0,n.P)(y.A))))))){constructor(...t){super(...t),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}readFeatureCollections(t,e){return e.featureCollection.layers.forEach(t=>{const e=t.layerDefinition.drawingInfo.renderer.symbol;e&&"esriSFS"===e.type&&e.outline?.style.includes("esriSFS")&&(e.outline.style="esriSLSSolid")}),e.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const t=this._get("title");return t&&"defaults"!==this.originOf("title")?t:this.url?(0,a.e7)(this.url,P)||"GeoRSS":t}set title(t){this._set("title",t)}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},t).catch(l.QP).then(()=>this._fetchService(e)).then(t=>{this.read(t,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const t=await this._fetchService();return this.read(t,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(t){const e=this.spatialReference,{data:r}=await(0,o.A)(i.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,d.oT)(e)?void 0:e.wkid??JSON.stringify(e)},signal:t});return r}_hasGeometry(t){return this.featureCollections?.some(e=>e.featureSet?.geometryType===t&&e.featureSet.features?.length>0)??!1}};(0,s._)([(0,u.MZ)()],T.prototype,"description",void 0),(0,s._)([(0,u.MZ)()],T.prototype,"featureCollections",void 0),(0,s._)([(0,h.w)("service","featureCollections",["featureCollection.layers"])],T.prototype,"readFeatureCollections",null),(0,s._)([(0,u.MZ)({type:p.A,json:{name:"lookAtExtent"}})],T.prototype,"fullExtent",void 0),(0,s._)([(0,u.MZ)(b.id)],T.prototype,"id",void 0),(0,s._)([(0,u.MZ)(b.fV)],T.prototype,"legendEnabled",void 0),(0,s._)([(0,u.MZ)({types:$,json:{write:!0}})],T.prototype,"lineSymbol",void 0),(0,s._)([(0,u.MZ)({type:["show","hide"]})],T.prototype,"listMode",void 0),(0,s._)([(0,u.MZ)({types:Z,json:{write:!0}})],T.prototype,"pointSymbol",void 0),(0,s._)([(0,u.MZ)({types:D,json:{write:!0}})],T.prototype,"polygonSymbol",void 0),(0,s._)([(0,u.MZ)({type:["GeoRSS"]})],T.prototype,"operationalLayerType",void 0),(0,s._)([(0,u.MZ)(b.OZ)],T.prototype,"url",void 0),(0,s._)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:t=>t||void 0}}}}})],T.prototype,"title",null),(0,s._)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],T.prototype,"type",void 0),T=(0,s._)([(0,c.$)("esri.layers.GeoRSSLayer")],T);const L=T},64272:(t,e,r)=>{r.d(e,{T:()=>p});var s,i=r(90237),o=r(25482),n=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),h=r(43937),c=r(98623);let p=class extends o.A{static{s=this}static get allTime(){return d}static get empty(){return y}static fromArray(t){return new s({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,s=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===s&&r===i}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,n.lL)(r,t,e));let i=this.end;if(i){const r=(0,n.lL)(i,t,e);i=i.getTime()===r.getTime()?r:(0,n.S1)(r,1,t,e)}return new s({start:r,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return s.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let n,l;return i>=e&&i<=r?n=i:e>=i&&e<=o&&(n=e),r>=i&&r<=o?l=r:o>=e&&o<=r&&(l=o),null==n||null==l||isNaN(n)||isNaN(l)?s.empty:new s({start:n===-1/0?null:new Date(n),end:l===1/0?null:new Date(l)})}offset(t,e,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new s,{start:o,end:l}=this;return null!=o&&(i.start=(0,n.S1)(o,t,e,r)),null!=l&&(i.end=(0,n.S1)(l,t,e,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new s({start:e,end:r})}};(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,a.w)("end")],p.prototype,"readEnd",null),(0,i._)([(0,h.K)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,a.w)("start")],p.prototype,"readStart",null),(0,i._)([(0,h.K)("start")],p.prototype,"writeStart",null),p=s=(0,i._)([(0,u.$)("esri.time.TimeExtent")],p);const d=new p,y=new p({start:void 0,end:void 0})},65851:(t,e,r)=>{r.d(e,{A:()=>a});var s=r(90237),i=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),n=r(31593),l=r(20378);let a=class extends l.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,s._)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":n.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,s._)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,s._)([(0,o.$)("esri.symbols.FillSymbol")],a)},68197:(t,e,r)=>{r.d(e,{A:()=>c});var s,i,o=r(40876),n=r(34727),l=r(56507);function a(t){return(0,n.qE)((0,l.Vr)(t),0,255)}function u(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class h{static blendColors(t,e,r,s=new h){return s.r=Math.round(t.r+(e.r-t.r)*r),s.g=Math.round(t.g+(e.g-t.g)*r),s.b=Math.round(t.b+(e.b-t.b)*r),s.a=t.a+(e.a-t.a)*r,s._sanitize()}static fromRgb(t,e){const r=(0,o.lT)(t);return r?h.fromArray(r,e):null}static fromHex(t,e=new h){const r=(0,o.oW)(t);return r?h.fromArray(r,e):null}static fromArray(t,e=new h){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,o.Eq)(t);return r?h.fromArray(r,e):null}static fromJSON(t){return null!=t?new h([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?h.fromString(t,this):Array.isArray(t)?h.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof h||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,s=3===r||4===r,i=4===r||8===r,o=`#${u(this.r,s)}${u(this.g,s)}${u(this.b,s)}${i?u(Math.round(255*this.a),s):""}`;return e?o.toUpperCase():o}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=h.AlphaMode.ALWAYS){const e=a(this.r),r=a(this.g),s=a(this.b);return t===h.AlphaMode.ALWAYS||1!==this.a?[e,r,s,a(255*this.a)]:[e,r,s]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,o.c1)(this.r),this.g=(0,o.c1)(this.g),this.b=(0,o.c1)(this.b),this.a=(0,o.G1)(this.a),this}_set(t,e,r,s){this.r=t,this.g=e,this.b=r,this.a=s}}h.prototype.declaredClass="esri.Color",(i=(s=h||(h={})).AlphaMode||(s.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=h},69540:(t,e,r)=>{r.d(e,{A:()=>p});var s=r(90237),i=r(69622),o=(r(44208),r(4718)),n=(r(53966),r(97768)),l=r(35666),a=r(88620),u=r(40608);const h=t=>{let e=class extends t{clone(t){const e=(0,a.oY)(this);(0,n.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,s=e.store,i={},u=new Map;for(const e in r){const n=r[e],a=s?.originOf(e),h=n.clonable;if(n.readOnly||!1===h||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const c=this[e];let p=null;p="function"==typeof h?h(c,t):"reference"===h?c:(0,o.TU)(c,t),null!=c&&null==p||(a===l.Gr.DEFAULTS?u.set(e,p):i[e]=p)}const h=new(0,Object.getPrototypeOf(this).constructor)(i);if(u.size){const t=(0,a.oY)(h)?.store;if(t)for(const[e,r]of u)t.set(e,r,l.Gr.DEFAULTS)}return h}};return e=(0,s._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(h(i.A)){};c=(0,s._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=h;const p=c},77040:(t,e,r)=>{r.d(e,{k7:()=>l,ku:()=>n});var s=r(84952),i=r(97159);function o(t,e){if(!(0,s.oP)(t)){const r=function(t){if(!t)return null;const{origin:e,layer:r}=t;if("service"!==e&&"portal-item"!==e)return null;const s=r?.type;return"feature"===s||"stream"===s?r.parsedUrl?.path:"map-image"===s||"tile"===s?t.url?.path:null}(e);if(r)return(0,s.fj)(r,"images",t)}return(0,i.f)(t,e)}const n={json:{read:{source:["imageData","url"],reader:function(t,e,r){return e.imageData?(0,s.Hg)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):o(e.url,r)}},write:{writer(t,e,r,o){!function(t,e,r,o){if((0,s.DB)(t)){const n=(0,s.r$)(t);if(!n)return;e.contentType=n.mediaType,e.imageData=n.data,r&&r.imageData===e.imageData&&r.url&&(0,i.w)(r.url,e,"url",o)}else(0,i.w)(t,e,"url",o)}(t,e,this.source,o)}}}},l={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,r){const s={};return e.imageData&&(s.imageData=e.imageData),e.contentType&&(s.contentType=e.contentType),e.url&&(s.url=o(e.url,r)),s}}}}},78553:(t,e,r)=>{r.d(e,{D:()=>o,p:()=>i});var s=r(56507);function i(t){const e=(0,s.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83213:(t,e,r)=>{r.d(e,{x:()=>s,z:()=>i});const s=["begin","end","begin-end"],i=["arrow","circle","square","diamond","cross","x"]},89420:(t,e,r)=>{r.d(e,{A:()=>u});var s=r(90237),i=r(90629),o=r(10107),n=r(56507),l=(r(44208),r(87811),r(40608)),a=r(20378);let u=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,s._)([(0,o.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],u.prototype,"angle",void 0),(0,s._)([(0,o.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,s._)([(0,o.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,s._)([(0,o.MZ)({cast:t=>"auto"===t?t:(0,n.GB)((0,i.cr)(t)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,s._)([(0,l.$)("esri.symbols.MarkerSymbol")],u)},90629:(t,e,r)=>{r.d(e,{Lz:()=>n,PN:()=>l,cr:()=>a,gs:()=>h,r_:()=>c,tc:()=>u});const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",o=96;function n(t){return t?t/72*o:0}function l(t){return t?72*t/o:0}function a(t){if("string"==typeof t){const e=t.match(s);if(e){const r=Number(e[1]),s=e[3]&&e[3].toLowerCase(),i="-"===t.charAt(0),o="px"===s?l(r):r;return i?-o:o}return console.warn(i),null}return t}function u(t=0,e=0){return{x:t,y:e}}function h(t=0,e=0){return[t,e]}function c(t=0,e=0,r=0){return[t,e,r]}},94985:(t,e,r)=>{r.d(e,{A:()=>y});var s,i=r(90237),o=r(68197),n=r(66552),l=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),h=r(40608),c=r(65851),p=r(31593);const d=new n.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let y=s=class extends c.A{constructor(...t){super(...t),this.color=new o.A([0,0,0,.25]),this.outline=new p.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),e&&(s.outline=e),r&&(s.color=r),s}clone(){return new s({color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i._)([(0,a.MZ)()],y.prototype,"color",void 0),(0,i._)([(0,a.MZ)()],y.prototype,"outline",void 0),(0,i._)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],y.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:d.apiValues,json:{read:d.read,write:d.write}})],y.prototype,"style",void 0),y=s=(0,i._)([(0,h.$)("esri.symbols.SimpleFillSymbol")],y)}}]);
|