@arcgis/core 4.31.0-next.20240921 → 4.31.0-next.20240923

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.
Files changed (55) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/1810cb638ca1d52de7b2.js +1 -0
  3. package/assets/esri/core/workers/chunks/{69f6f35b04c722aba8cf.js → 238897e72fedd6754af7.js} +1 -1
  4. package/assets/esri/core/workers/chunks/2807eb7bfe4868fe840f.js +1 -0
  5. package/assets/esri/core/workers/chunks/{6c07116c8f7361780803.js → 2b04d2f8466d16a24a80.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{83649583139b818d4dfa.js → 356f6cc122287412b888.js} +1 -1
  7. package/assets/esri/core/workers/chunks/36a1de3752ff13d77b4d.js +1 -0
  8. package/assets/esri/core/workers/chunks/{bf406a46515d5dfebe06.js → 3d207d1c6effda13b448.js} +1 -1
  9. package/assets/esri/core/workers/chunks/460ae228640fd5e545ad.js +1 -0
  10. package/assets/esri/core/workers/chunks/{f14cefc311a21116d21b.js → 4c0d37b799edae391ab2.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{16eda85f728423c4ed02.js → 4ea08495271f6d291b05.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{cf147f34032a8d07f322.js → 53becb5fe10f7f38311f.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{24d45530fe47b3114daf.js → 5652ff08dcc5afd3d739.js} +1 -1
  14. package/assets/esri/core/workers/chunks/5fe1f8881959df0e61ce.js +1 -0
  15. package/assets/esri/core/workers/chunks/62f4eda8a9f4de481dcb.js +1 -0
  16. package/assets/esri/core/workers/chunks/{3fa3e1e6595668ca0e18.js → 686613864dd54d1cae3c.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{5d0d36230a5b8309c9e4.js → 75bf6dff29056a5a1242.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{a7bd5bb21a7f3030ee13.js → 783d66397f16899dd0e9.js} +1 -1
  19. package/assets/esri/core/workers/chunks/7bc57e2a3836ddc8f121.js +1 -0
  20. package/assets/esri/core/workers/chunks/{2658205b1ab2502c0bc7.js → 856c82a20027435fd306.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{99944b05d3142903511c.js → 93fb720bbfb3628f9c71.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{14f77efbfba0ca9efb6c.js → 9dce33a9bcfb852a74d3.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{de7e197223471c7b66a7.js → afb35deb035c9c9225c9.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{5f9beed2a9599b9ce649.js → bc37c0dc14ea54f1b9e8.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{35f92652df2561845d47.js → c9aa8df2f62e6d40b771.js} +1 -1
  26. package/assets/esri/core/workers/chunks/d8435cc010bd2260feec.js +1 -0
  27. package/assets/esri/core/workers/chunks/e5a8ab8d02a616469f1d.js +1 -0
  28. package/assets/esri/core/workers/chunks/f1446e56c35e59b904e1.js +1 -0
  29. package/assets/esri/core/workers/chunks/{6508ff21b0a5725629eb.js → fa3f9691a9bd1bbb25d3.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{008f290833724454160d.js → fab59ee41f96b2378768.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{67ea066a903f5ad31155.js → fe709db8238127f91e59.js} +1 -1
  32. package/layers/FeatureLayer.js +1 -1
  33. package/layers/SubtypeGroupLayer.js +1 -1
  34. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  35. package/layers/orientedImagery/core/utils.js +1 -1
  36. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  37. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  38. package/layers/orientedImagery/transformations/utils.js +1 -1
  39. package/layers/support/SubtypeSublayer.js +1 -1
  40. package/layers/support/featureLayerUtils.js +1 -1
  41. package/package.json +1 -1
  42. package/support/revision.js +1 -1
  43. package/views/interactive/sketch/constraintUtils.js +1 -1
  44. package/views/interactive/sketch/constraints.js +1 -1
  45. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  46. package/assets/esri/core/workers/chunks/0eb789af3c26fecdf3be.js +0 -1
  47. package/assets/esri/core/workers/chunks/41a3c7d286a050002d20.js +0 -1
  48. package/assets/esri/core/workers/chunks/59e4731d246203e94a96.js +0 -1
  49. package/assets/esri/core/workers/chunks/69c09478c899cd5e5013.js +0 -1
  50. package/assets/esri/core/workers/chunks/7088f771163fda53d196.js +0 -1
  51. package/assets/esri/core/workers/chunks/79ed119c70ce6ea02f71.js +0 -1
  52. package/assets/esri/core/workers/chunks/b5c02dbf540ededb863c.js +0 -1
  53. package/assets/esri/core/workers/chunks/eeacd5fa9fb9b1dee5f7.js +0 -1
  54. package/assets/esri/core/workers/chunks/f7c96d34c70ed36da7c2.js +0 -1
  55. package/assets/esri/core/workers/chunks/f9e90a2fda559ca68848.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7679,9377,3069],{39516:(e,t,i)=>{async function n(e,t){const{WhereClause:n}=await Promise.all([i.e(835),i.e(4800)]).then(i.bind(i,50835));return n.create(e,{fieldsIndex:t})}function r(e,t){return"1=1"===e?t??e:"1=1"===t?e??t:null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}i.d(t,{G:()=>n,m:()=>r})},3330:(e,t,i)=>{i.d(t,{GB:()=>r,Qo:()=>s,Y4:()=>o});var n=i(96285);class r{}function o(e){return e instanceof n.bo?e===r.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return o(e)?r.instance:e}r.instance=new n.oh("Etc/UTC")},13069:(e,t,i)=>{i.d(t,{lk:()=>r,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function r(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${r().toUpperCase()}}`}function s(){return`{${r()}}`}},70328:(e,t,i)=>{i.d(t,{BI:()=>M,Ej:()=>f,Hq:()=>p,Ie:()=>_,Jt:()=>w,Ne:()=>h,RF:()=>a,_F:()=>y,aI:()=>N,fA:()=>o,gX:()=>m,hZ:()=>v,iT:()=>l,is:()=>x,qv:()=>b,vI:()=>g,v_:()=>j,vt:()=>r,w1:()=>s});var n=i(5443);function r(e=j){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,o,s,a=r()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=o,a[5]=s,a}function s(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t,i=0,n=t.length/3){let r=e[0],o=e[1],s=e[2],a=e[3],l=e[4],p=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),o=Math.min(o,t[i+3*e+1]),s=Math.min(s,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),p=Math.max(p,t[i+3*e+2]);e[0]=r,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=p}function u(e){return e[0]>=e[3]?0:e[3]-e[0]}function d(e){return e[1]>=e[4]?0:e[4]-e[1]}function c(e){return e[2]>=e[5]?0:e[5]-e[2]}function y(e){const t=u(e),i=c(e),n=d(e);return Math.sqrt(t*t+i*i+n*n)}function m(e,t=[0,0,0]){return t[0]=e[0]+u(e)/2,t[1]=e[1]+d(e)/2,t[2]=e[2]+c(e)/2,t}function f(e,t=[0,0,0]){return t[0]=u(e),t[1]=d(e),t[2]=c(e),t}function h(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function g(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function _(e){return e?v(e,b):r(b)}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function x(e){return 6===e.length}function N(e,t,i){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}i(19419);const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],j=[0,0,0,0,0,0];r()},11987:(e,t,i)=>{i.r(t),i.d(t,{default:()=>K});var n=i(90237),r=i(51447),o=i(53966),s=i(79677);(0,r.uW)(o.A.getLogger("esri.TimeExtent"),"esri.TimeExtent",{replacement:"esri.time.TimeExtent",version:"4.31",warnOnce:!0});var a=i(49186),l=i(66552),p=i(4718),u=i(93637),d=i(10107),c=(i(44208),i(40608)),y=i(13600),m=i(82935),f=i(69540),h=i(25482),g=(i(87811),i(69622)),v=i(21325);let _=class extends g.A{set horizontalWKID(e){e?(0,v.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,v.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}};(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"horizontalWKID",null),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"verticalWKID",null),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"x",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"y",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"z",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"type",void 0),_=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientation")],_);const w=_;let M=class extends((0,f.O)((0,h.Te)(w))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),d?.forEach((e=>m.push(e))),c?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,n._)([(0,d.M)({json:{write:!0}})],M.prototype,"type",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"heading",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"pitch",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"roll",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"x",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"z",void 0),M=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],M);const x=M;let N=class extends((0,f.O)((0,h.Te)(w))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),d?.forEach((e=>m.push(e))),c?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>isNaN(e)?"":e)).join("|")}};(0,n._)([(0,d.M)({json:{write:!0}})],N.prototype,"type",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"omega",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"phi",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"kappa",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"x",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"y",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"z",void 0),N=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],N);const b=N;let j=class extends((0,f.O)((0,h.Te)(w))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),d?.forEach((e=>m.push(e))),d?.forEach((e=>m.push(e))),c?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,n._)([(0,d.M)({json:{write:!0}})],j.prototype,"type",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"yaw",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"pitch",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"roll",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"x",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"y",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"z",void 0),j=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],j);const T=j;i(24183);let S=class extends((0,f.O)(h.oY)){constructor(){super(...arguments),this.url=null}};(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],S.prototype,"lod",void 0),(0,n._)([(0,d.M)({type:String,json:{write:!0}})],S.prototype,"rasterFunction",void 0),(0,n._)([(0,d.M)({type:String,json:{write:!0}})],S.prototype,"url",void 0),S=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],S);let F=class extends((0,f.O)(h.oY)){constructor(){super(...arguments),this.constantElevation=null}};var P;(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],F.prototype,"constantElevation",void 0),F=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],F),function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(P||(P={}));const I=new l.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),D=new l.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),O=new Map;O.set(`${P.OPK}`,{desc:"Using Omega Phi Kappa",constructor:b}),O.set(`${P.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:x}),O.set(`${P.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:T});const R=new Map;R.set(`${P.HPR}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,d,c,y,m,f,h,g,v,_,w,M,x]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,...E([p,u,d,c,y,m],[h,g],[v,_,w],[M,x],f)}})),R.set(`${P.YPR}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,d,c,y,m,f,h,g,v,_,w,M,x]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,...E([p,u,d,c,y,m],[h,g],[v,_,w],[M,x],f)}})),R.set(`${P.OPK}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,d,c,y,m,f,h,g,v,_,w,M,x]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,...E([p,u,d,c,y,m],[h,g],[v,_,w],[M,x],f)}})),R.set(`${P.LTP}`,(function(e){const[t,i,n,r,o,...s]=e.slice(1),a=R.get(o);return a?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:a([o,"",...s])}:null}));const z=e=>{const t=e.map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(t.length===e.length)return t};function E(e,t,i,n,r){const o=z(e),s=z(t),a=z(i),l=z(n);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?void 0:s,radialDistortionCoefficients:3!==a?.length?void 0:a,tangentialDistortionCoefficients:2!==l?.length?void 0:l}}const A=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),$=(e,t)=>!A.has(t)&&e;function V(e,t,i,n){const{name:r,write:o,read:s}=((e,t,i)=>{const n=`orientedImageryProperties.${e}`;return{name:n,write:t?{ignoreOrigin:!0,target:n,writer:t}:{ignoreOrigin:!0},read:i?{ignoreOrigin:!0,source:n,reader:i}:{ignoreOrigin:!0}}})(e,t,i),a={name:r,write:o,read:s,origins:{service:{name:`orientedImageryInfo.${r}`,write:t,read:i},"web-scene":{name:r,write:$(o,e),read:$(s,e)},"web-map":{name:r,write:o,read:s}}};return n&&a.origins?(a.type=n,a.origins["web-map"].type=n,a.origins["web-scene"].type=n,a):a}let C=class extends y.default{constructor(){super(...arguments),this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:i}=this;return function(e,t,i){return e?(e=>null!=e&&"number"==typeof e.constantElevation)(e)?new F(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new S({...e,url:n})):null}(e,t,i):e}(e,t,i)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new a.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var L;(0,n._)([(0,d.M)({type:Number,json:V("cameraHeading")})],C.prototype,"cameraHeading",void 0),(0,n._)([(0,d.M)({type:Number,json:V("cameraHeight")})],C.prototype,"cameraHeight",void 0),(0,n._)([(0,d.M)({type:Number,json:V("cameraPitch")})],C.prototype,"cameraPitch",void 0),(0,n._)([(0,d.M)({type:Number,json:V("cameraRoll")})],C.prototype,"cameraRoll",void 0),(0,n._)([(0,d.M)({type:Number,json:V("coveragePercent")})],C.prototype,"coveragePercent",void 0),(0,n._)([(0,d.M)({type:String,json:V("demPathPrefix")})],C.prototype,"demPathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:V("demPathSuffix")})],C.prototype,"demPathSuffix",void 0),(0,n._)([(0,d.M)({type:String,json:V("depthImagePathPrefix")})],C.prototype,"depthImagePathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:V("depthImagePathSuffix")})],C.prototype,"depthImagePathSuffix",void 0),(0,n._)([(0,d.M)({type:Object,json:V("elevationSource")})],C.prototype,"elevationSource",void 0),(0,n._)([(0,d.M)()],C.prototype,"effectiveElevationSource",null),(0,n._)([(0,d.M)({type:Number,json:V("farDistance")})],C.prototype,"farDistance",void 0),(0,n._)([(0,d.M)()],C.prototype,"geometryType",void 0),(0,n._)([(0,d.M)({type:Number,json:V("horizontalFieldOfView")})],C.prototype,"horizontalFieldOfView",void 0),(0,n._)([(0,d.M)({type:String,json:V("horizontalMeasurementUnit")})],C.prototype,"horizontalMeasurementUnit",void 0),(0,n._)([(0,d.M)({type:String,json:V("imagePathPrefix")})],C.prototype,"imagePathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:V("imagePathSuffix")})],C.prototype,"imagePathSuffix",void 0),(0,n._)([(0,d.M)({type:Number,json:V("imageRotation")})],C.prototype,"imageRotation",void 0),(0,n._)([(0,d.M)({type:Number,json:V("maximumDistance")})],C.prototype,"maximumDistance",void 0),(0,n._)([(0,d.M)({type:Number,json:V("nearDistance")})],C.prototype,"nearDistance",void 0),(0,n._)([(0,d.M)({type:["OrientedImageryLayer"]})],C.prototype,"operationalLayerType",void 0),(0,n._)([(0,d.M)({json:{...V("orientationAccuracy",((e,t,i)=>{(0,u.sM)(i,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],C.prototype,"orientationAccuracy",void 0),(0,n._)([(0,d.M)({json:{...V("orientedImageryType",D.write,D.read,D.jsonValues.slice(1))}})],C.prototype,"orientedImageryType",void 0),(0,n._)([(0,d.M)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],C.prototype,"type",void 0),(0,n._)([(0,d.M)({json:{...V("timeIntervalUnit",I.write,I.read,I.jsonValues),type:I.apiValues}})],C.prototype,"timeIntervalUnit",void 0),(0,n._)([(0,d.M)((L=(0,p.o8)(m.B),L.json?(L.json.origins=L.json.origins??{},L.json.origins["web-scene"]={write:!1,read:!1},L):L))],C.prototype,"useViewTime",void 0),(0,n._)([(0,d.M)({type:Number,json:V("verticalFieldOfView")})],C.prototype,"verticalFieldOfView",void 0),(0,n._)([(0,d.M)({json:{...V("verticalMeasurementUnit"),type:new l.J({Feet:"feet",Meter:"meter"}).apiValues}})],C.prototype,"verticalMeasurementUnit",void 0),(0,n._)([(0,d.M)({type:String,json:V("videoPathPrefix")})],C.prototype,"videoPathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:V("videoPathSuffix")})],C.prototype,"videoPathSuffix",void 0),(0,n._)([(0,d.M)({type:s.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],C.prototype,"visibilityTimeExtent",void 0),C=(0,n._)([(0,c.$)("esri.layers.OrientedImageryLayer")],C);const K=C},39357:(e,t,i)=>{i.d(t,{H:()=>l});var n,r=i(90237),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let l=n=class extends o.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r._)([(0,s.M)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r._)([(0,s.M)({type:[String,Number],json:{write:!0}})],l.prototype,"code",void 0),l=n=(0,r._)([(0,a.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,i)=>{i.d(t,{A:()=>c});var n,r=i(90237),o=i(4718),s=i(10107),a=(i(44208),i(53966),i(93223)),l=i(40608),p=i(39357),u=i(76357);let d=n=class extends u.A{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new n({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r._)([(0,s.M)({type:[p.H],json:{write:!0}})],d.prototype,"codedValues",void 0),(0,r._)([(0,a.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=n=(0,r._)([(0,l.$)("esri.layers.support.CodedValueDomain")],d);const c=d},76357:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(90237),r=i(66552),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),l=i(40608);const p=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends o.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.M)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,a.e)(p)],u.prototype,"type",void 0),u=(0,n._)([(0,l.$)("esri.layers.support.Domain")],u);const d=u},33143:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(90237),r=i(69540),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),p=i(43937),u=i(80451),d=i(29005);let c=class extends((0,r.O)(o.oY)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,u.rS)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,n._)([(0,s.M)({json:{write:!0}})],c.prototype,"id",void 0),(0,n._)([(0,s.M)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,s.M)({json:{write:!0}})],c.prototype,"domains",void 0),(0,n._)([(0,a.w)("domains")],c.prototype,"readDomains",null),(0,n._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,n._)([(0,s.M)({type:[d.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,n._)([(0,l.$)("esri.layers.support.FeatureType")],c);const y=c},20437:(e,t,i)=>{i.d(t,{A:()=>h});var n,r=i(90237),o=i(66552),s=i(25482),a=i(10107),l=i(56507),p=(i(87811),i(44208),i(93223)),u=i(36005),d=i(40608),c=i(80451),y=i(98453);const m=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=n=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?m.fromJSON(i.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r._)([(0,a.M)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,r._)([(0,a.M)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,r._)([(0,a.M)()],f.prototype,"description",void 0),(0,r._)([(0,u.w)("description")],f.prototype,"readDescription",null),(0,r._)([(0,a.M)({types:c.gK,json:{read:{reader:c.rS},write:!0}})],f.prototype,"domain",void 0),(0,r._)([(0,a.M)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,r._)([(0,a.M)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,r._)([(0,a.M)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,r._)([(0,a.M)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,r._)([(0,p.e)(y.m)],f.prototype,"type",void 0),(0,r._)([(0,a.M)()],f.prototype,"valueType",void 0),(0,r._)([(0,u.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,r._)([(0,a.M)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=n=(0,r._)([(0,d.$)("esri.layers.support.Field")],f);const h=f},95466:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(49186),r=i(25482),o=i(53966),s=i(91869),a=i(3330),l=i(30524),p=i(56400),u=i(96285);const d=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],h(e))}static fromLayerJSON(e){return new c(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,n=m(t);if(t&&n){const r=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(o.A.getLogger("esri.layers.support.FieldsIndex").error(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),p.n$):f.has(t.type)?p.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===p.L5?a.GB.instance:t===p.n$?u.mQ.utcInstance:(0,s.tE)(d,t,(()=>u.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,r.Wj)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,l.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,l=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.dateFieldsTimeReference?(0,p.ZS)(r.dateFieldsTimeReference):a??p.n$:null,u=n?function(e){return"timeZone"in e}(n)?n.timeZone??a:n.timeReference?(0,p.ZS)(n.timeReference):a:null,d=new Map([[y(r?.creationDateField??""),l],[y(r?.editDateField??""),l],[y(o),u],[y(s),u]]);for(const{name:n,type:r}of e.fields)if(f.has(r))t.set(n,p.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,p.L5);else{const e=d.get(y(n??""))??a;t.set(n,e)}return t}},80451:(e,t,i)=>{i.d(t,{rS:()=>h,gK:()=>f}),i(44208);var n,r=i(53177),o=i(76357),s=i(90237),a=(i(53966),i(87811),i(49186),i(93223)),l=i(40608);let p=n=class extends o.A{constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s._)([(0,a.e)({inherited:"inherited"})],p.prototype,"type",void 0),p=n=(0,s._)([(0,l.$)("esri.layers.support.InheritedDomain")],p);const u=p;var d,c=i(10107);let y=d=class extends o.A{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new d({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,c.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],y.prototype,"maxValue",void 0),(0,s._)([(0,c.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],y.prototype,"minValue",void 0),(0,s._)([(0,a.e)({range:"range"})],y.prototype,"type",void 0),y=d=(0,s._)([(0,l.$)("esri.layers.support.RangeDomain")],y);const m=y,f={key:"type",base:o.A,typeMap:{range:m,"coded-value":r.A,inherited:u}};function h(e){if(!e?.type)return null;switch(e.type){case"range":return m.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453:(e,t,i)=>{i.d(t,{m:()=>n});const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},32730:(e,t,i)=>{i.d(t,{BI:()=>h,D3:()=>m,XJ:()=>f,lc:()=>y,mX:()=>v,rU:()=>g,tH:()=>N});var n=i(799);const r="__begin__",o="__end__",s=new RegExp(r,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+r,"i"),p=new RegExp(o+"$","i"),u='"',d=u+" + ",c=" + "+u;function y(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=y(e.labelExpression),t.type="conventional"),t}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(_);return t?.[1].trim()||null}(t.expression);case"arcade":return N(t.expression)}return null}function v(e){let t;return e?(t=(0,n.HC)(e,(e=>r+'$feature["'+e+'"]'+o)),t=l.test(t)?t.replace(l,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,d).replaceAll(a,c)):t='""',t}const _=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,x=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function N(e){if(!e)return null;let t=w.exec(e)||M.exec(e);return t?t[1]||t[3]:(t=x.exec(e),t?t[2]:null)}},58501:(e,t,i)=>{i.d(t,{q:()=>r});var n=i(62815);function r(e,t,i){if(!i?.features||!i.hasZ)return;const r=(0,n.N)(i.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of i.features)r(e.geometry)}},22671:(e,t,i)=>{i.d(t,{A:()=>_});var n,r=i(90237),o=i(59456),s=i(52106),a=i(66552),l=i(25482),p=i(4718),u=i(10107),d=(i(44208),i(53966),i(36005)),c=i(40608),y=i(43937),m=i(16930),f=i(65864),h=i(20437);const g=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=n=class extends l.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const i=m.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const r=e[t],o=s.A.fromJSON(r),a=r.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=r.aggregateGeometries,p=o.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],n=l[e],r=n?.spatialReference;null==t||r||(t.spatialReference=i)}n.push(o)}return n}writeGeometryType(e,t,i,n){if(e)return void g.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,f.rS)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=m.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const n=t.features[i];if(n.geometry){const t=e?.[i];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((r-e)/i)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[n,r],scale:[o,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const p=this._getHydrationFunction(e,(e=>e*o+n),(e=>r-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,i){let n,r;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===n&&s===r||(o.push([e-n,s-r]),n=e,r=s)}else n=t(a[0]),r=i(a[1]),o.push([n,r])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,i);s&&r.push(s)}return r.length>0?((0,f.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,u.M)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r._)([(0,u.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,u.M)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r._)([(0,d.w)("features")],v.prototype,"readFeatures",null),(0,r._)([(0,u.M)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r._)([(0,u.M)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,r._)([(0,y.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r._)([(0,u.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r._)([(0,u.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r._)([(0,u.M)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r._)([(0,d.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r._)([(0,u.M)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r._)([(0,y.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r._)([(0,u.M)({json:{write:!0}})],v.prototype,"transform",void 0),v=n=(0,r._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4322],{67482:(e,t,n)=>{function r(e){return null!=a(e)||null!=s(e)}function o(e){return l.test(e)}function i(e){return a(e)??s(e)}function s(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,r=0;for(;!t&&r<=e.length;)t=!u.test(e[r]),r++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,r=+n.year,o=+n.month-1,i=+n.day,s=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(s>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",p=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(r,o,i,s,a,u,p);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,o,i,s,a,u,p)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>o,Cq:()=>r,_U:()=>i});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},43334:(e,t,n)=>{n.d(t,{N3:()=>i,Om:()=>o});var r=n(92722);class o{constructor(e=null,t={},n,r){this.geometry=e,this.attributes=t,this.centroid=n,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const n=e.geometry?r.A.fromJSON(e.geometry):null,i=e.centroid?r.A.fromJSON(e.centroid):null,s=e.attributes[t];return new o(n,e.attributes,i,s)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},92722:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new r(e.lengths,e.coords)}static fromRect(e){const[t,n,o,i]=e,s=o-t,a=i-n;return new r([5],[t,n,s,0,0,a,-s,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)e(this.coords[2*(n+t)],this.coords[2*(n+t)+1]);t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;for(const e of n){for(let n=1;n<e;n++)t[2*(r+n)]+=t[2*(r+n)-2],t[2*(r+n)+1]+=t[2*(r+n)-1];r+=e}return e}clone(e){if(0===this.lengths.length)return new r([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),n=this.coords.slice(0,t);return e?(e.set(n),new r(this.lengths,e)):new r(Array.from(this.lengths),Array.from(n))}}},85113:(e,t,n)=>{n.d(t,{BM:()=>A,bd:()=>x,sO:()=>v,xD:()=>c});var r=n(67482),o=n(49186),i=n(21325),s=n(43334),a=n(92722),l=n(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return u[e]}function*p(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function y(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n],o=e[(n+1)%e.length];t+=r[0]*o[1]-o[0]*r[1]}return t<=0}function m(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function h(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const r of t.coordinates)b(e,r,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const r of t.coordinates){g(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return T(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const r=t.coordinates;g(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n);return e}(e,t,n)}}function g(e,t,n){const r=m(t);!function(e){return!f(e)}(r)?b(e,r,n):S(e,r,n)}function w(e,t,n){const r=m(t);!function(e){return f(e)}(r)?b(e,r,n):S(e,r,n)}function b(e,t,n){for(const r of t)T(e,r,n);e.lengths.push(t.length)}function S(e,t,n){for(let r=t.length-1;r>=0;r--)T(e,t[r],n);e.lengths.push(t.length)}function T(e,t,n){const[r,o,i]=t;e.coords.push(r,o),n.hasZ&&e.coords.push(i||0)}function F(e){switch(typeof e){case"string":return(0,r.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function v(e,t=4326){if(!e)throw new o.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new o.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,s=(0,i.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!r||!s.test(r))throw new o.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function A(e,t={}){const n=[],r=new Set,o=new Set;let i,s=!1,a=null,u=!1,{geometryType:f=null}=t;for(const t of p(e)){const{geometry:e,properties:p,id:m}=t;if((!e||(f||(f=c(e.type)),c(e.type)===f))&&(s||(s=y(d(e))),u||(u=null!=m,u&&(i=typeof m,p&&(a=Object.keys(p).filter((e=>p[e]===m))))),p&&a&&u&&null!=m&&(a.length>1?a=a.filter((e=>p[e]===m)):1===a.length&&(a=p[a[0]]===m?a:[])),p))for(const e in p){if(r.has(e))continue;const t=F(p[e]);if("unknown"===t){o.add(e);continue}o.delete(e),r.add(e);const i=(0,l.rS)(e);i&&n.push({name:i,alias:e,type:t})}}const m=(0,l.rS)(1===a?.length&&a[0]||null)??void 0;if(m)for(const e of n)if(e.name===m&&(0,l.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:f,hasZ:s,objectIdFieldName:m,objectIdFieldType:i,unknownFields:Array.from(o)}}function x(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:r}=t;for(const o of e){const{geometry:e,properties:i,id:l}=o;if(e&&c(e.type)!==n)continue;const u=i||{};let p;r&&(p=u[r],null==l||p||(u[r]=p=l));const d=new s.Om(e?h(new a.A,e,t):null,u,null,p??void 0);yield d}}(p(e),t))}},34322:(e,t,n)=>{n.d(t,{E:()=>J,Fu:()=>M,O8:()=>_,UH:()=>W,YW:()=>G,i5:()=>b,mG:()=>O,x$:()=>U}),n(59456);var r=n(78888),o=n(49186),i=n(5479),s=n(84952),a=n(57251),l=n(21325),u=n(50498),c=n(85113),p=n(13043),d=n(60694),y=n(20437),f=n(30524),m=n(5443),h=n(16930);const g="xlink:href",w="2.0.0",b="__esri_wfs_id__",S="wfs-layer:getWFSLayerTypeInfo-error",T="wfs-layer:empty-service",F="wfs-layer:feature-type-not-found",v="wfs-layer:geojson-not-supported",A="wfs-layer:kvp-encoding-not-supported",x="wfs-layer:malformed-json",N="wfs-layer:unknown-geometry-type",P="wfs-layer:unknown-field-type",C="wfs-layer:unsupported-spatial-reference",k="wfs-layer:unsupported-wfs-version";async function M(e,t){const n=function(e){const t=Y(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new o.A(k,`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),z(t);const n=t.firstElementChild,r=(0,i.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,p.p)(e,{Name:e=>{const{name:n,prefix:r}=X(e.textContent);t.typeName=`${r}:${n}`,t.name=n,t.namespacePrefix=r,t.namespaceUri=e.lookupNamespaceURI(r)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=m.A.fromJSON(function(e){let t,n,r,o;for(const i of e.children)switch(i.localName){case"LowerCorner":[t,n]=i.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[r,o]=i.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:n,xmax:r,ymax:o,spatialReference:l.KK}}(e))},DefaultCRS:e=>{const r=V(e);r&&(t.defaultSpatialReference=r,n.add(r))},OtherCRS:e=>{const t=V(e);t&&n.add(t)}}),t.title||(t.title=t.name),n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:E(n),get featureTypes(){return Array.from(r())},readFeatureTypes:r}}((await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,s.m3)(e)&&((0,s.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,s.lM)(t.operations.DescribeFeatureType.url)),(0,s.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,s.lM)(t.operations.GetFeature.url)))}(e,n),n}const R=["json","application/json","geojson","application/json; subtype=geojson","application/geo+json"];function j(e){for(const t of R){const n=e.findIndex((e=>e.toLowerCase()===t));if(n>=0)return e[n]}return null}function E(e){let t=!1;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},r=[],i=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:({textContent:e})=>{e&&r.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=j(i)??j(r),!t)throw new o.A(A,"WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new o.A(v,"WFS service doesn't support GeoJSON output format");return n}function V(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function O(e,t,n){return(0,i.I6)(e,(e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t))}async function _(e,t,n,r={}){const{featureType:i,extent:s}=await async function(e,t,n,r={}){const i=e.readFeatureTypes(),s=t?O(i,t,n):i.next().value,{spatialReference:u=new h.A({wkid:s?.defaultSpatialReference})}=r;if(null==s)throw t?new o.A(F,`The type '${t}' could not be found in the service`):new o.A(T,"The service is empty");let c=s.extent;if(c&&!(0,l.aI)(c.spatialReference,u))try{await(0,a.initializeProjection)(c.spatialReference,u,void 0,r),c=(0,a.project)(c,u)}catch{throw new o.A(C,"Projection not supported")}return{extent:c,spatialReference:u,featureType:s}}(e,t,n,r),{spatialReference:u}=W(e.operations.GetFeature.url,i,r.spatialReference),{fields:c,geometryType:p,swapXY:d,objectIdField:y,geometryField:f}=await async function(e,t,n,r={}){const{typeName:i}=t,[s,a]=await Promise.allSettled([D(e.operations.DescribeFeatureType.url,i,r),I(e,i,n,r)]),l=e=>new o.A(S,`An error occurred while getting info about the feature type '${i}'`,{error:e});if("rejected"===s.status)throw l(s.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:c}=s.value??{},p=s.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==p)throw new o.A(N,`The geometry type could not be determined for type '${i}`,{typeName:i,geometryType:p,fields:u,errors:c});return{...G(u??[]),geometryType:p,swapXY:d}}(e,i,u,r);return{url:e.operations.GetCapabilities.url,name:i.name,namespaceUri:i.namespaceUri,fields:c,geometryField:f,geometryType:p,objectIdField:y,spatialReference:r.spatialReference??new h.A({wkid:i.defaultSpatialReference}),extent:s,swapXY:d,wfsCapabilities:e,customParameters:r.customParameters}}function G(e){const t=e.find((e=>"geometry"===e.type));let n=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),n||(n=new y.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function I(e,t,n,o={}){let i,s=!1;const[a,l]=await Promise.all([U(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...o,count:1}),(0,r.A)(e.operations.GetFeature.url,{responseType:"text",query:L(t,n,void 0,{...o,count:1}),signal:o?.signal})]),p="FeatureCollection"===a.type&&a.features[0]?.geometry;if(p){let e;switch(i=u.g.fromJSON((0,c.xD)(p.type)),p.type){case"Point":e=p.coordinates;break;case"LineString":case"MultiPoint":e=p.coordinates[0];break;case"MultiLineString":case"Polygon":e=p.coordinates[0][0];break;case"MultiPolygon":e=p.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),r=e[1].toFixed(3),o=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&r===o&&(s=!0)}}return{geometryType:i,swapXY:s}}async function D(e,t,n){return function(e,t){const{name:n}=X(e),r=Y(t);z(r);const s=(0,i.I6)((0,p.i)(r.firstElementChild,{element:e=>e}),(e=>e.getAttribute("name")===n));if(null!=s){const e=s.getAttribute("type"),t=e?(0,i.I6)((0,p.i)(r.firstElementChild,{complexType:e=>e}),(t=>t.getAttribute("name")===X(e).name)):(0,i.I6)((0,p.i)(s,{complexType:e=>e}),(()=>!0));if(t)return function(e){const t=[],n=[];let r;const i=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const s of i){const i=s.getAttribute("name");if(!i)continue;let a,l;if(s.hasAttribute("type")?a=X(s.getAttribute("type")).name:(0,p.p)(s,{simpleType:{restriction:e=>(a=X(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===s.getAttribute("nillable");let c=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new y.A({name:i,alias:i,type:"integer",nullable:u,length:(0,f._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new y.A({name:i,alias:i,type:"double",nullable:u,length:(0,f._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new y.A({name:i,alias:i,type:"string",nullable:u,length:l??(0,f._b)("string")}));break;case"datetime":case"date":n.push(new y.A({name:i,alias:i,type:"date",nullable:u,length:l??(0,f._b)("date")}));break;case"pointpropertytype":r="point",c=!0;break;case"multipointpropertytype":r="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":r="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":r="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new o.A(N,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new o.A(P,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&n.push(new y.A({name:i,alias:i,type:"geometry",nullable:u}))}for(const e of n)if("integer"===e.type&&!e.nullable&&$.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:r,fields:n,errors:t}}(t)}throw new o.A(F,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(r)})}(t,(await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const $=new Set(["objectid","fid"]);async function U(e,t,n,i,s){let{data:a}=await(0,r.A)(e,{responseType:"text",query:L(t,n,i,s),signal:s?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new o.A(x,"Error while parsing the response",{response:a,error:e})}}function L(e,t,n,r){const o="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+o,STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}async function J(e,t,n){const o=await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),i=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(o.data);if(i?.groups)return+i.groups.numberMatched}function Y(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function X(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function z(e){let t="",n="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new o.A(`wfs-layer:${t}`,n)}function W(e,t,n){const r={wkid:t.defaultSpatialReference},o=null!=n?.wkid?{wkid:n.wkid}:r;return{spatialReference:o,getFeatureSpatialReference:(0,d.Fi)(e)||o.wkid&&t.supportedSpatialReferences.includes(o.wkid)?{wkid:o.wkid}:{wkid:t.defaultSpatialReference}}}},13043:(e,t,n)=>{function r(e,t){if(e&&t)for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&r(n,t)}else r(n,e)}}function*o(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*o(n,e)}}n.d(t,{i:()=>o,p:()=>r})},20437:(e,t,n)=>{n.d(t,{A:()=>h});var r,o=n(90237),i=n(66552),s=n(25482),a=n(10107),l=n(56507),u=(n(87811),n(44208),n(93223)),c=n(36005),p=n(40608),d=n(72088),y=n(98453);const f=new i.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=r=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?f.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.M)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,a.M)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,a.M)()],m.prototype,"description",void 0),(0,o._)([(0,c.w)("description")],m.prototype,"readDescription",null),(0,o._)([(0,a.M)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,a.M)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,a.M)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,o._)([(0,a.M)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,a.M)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.e)(y.m)],m.prototype,"type",void 0),(0,o._)([(0,a.M)()],m.prototype,"valueType",void 0),(0,o._)([(0,c.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,o._)([(0,a.M)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=r=(0,o._)([(0,p.$)("esri.layers.support.Field")],m);const h=m},72088:(e,t,n)=>{n.d(t,{rS:()=>A,gK:()=>v}),n(44208);var r,o=n(90237),i=n(4718),s=n(10107),a=(n(53966),n(93223)),l=n(40608),u=n(25482);n(87811);let c=r=class extends u.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,o._)([(0,s.M)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o._)([(0,s.M)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,o._)([(0,l.$)("esri.layers.support.CodedValue")],c);const p=new(n(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.M)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,a.e)(p)],d.prototype,"type",void 0),d=(0,o._)([(0,l.$)("esri.layers.support.Domain")],d);const y=d;var f;let m=f=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new f({codedValues:(0,i.o8)(this.codedValues),name:this.name})}};(0,o._)([(0,s.M)({type:[c],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,o._)([(0,a.e)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=f=(0,o._)([(0,l.$)("esri.layers.support.CodedValueDomain")],m);const h=m;var g;n(49186);let w=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,o._)([(0,a.e)({inherited:"inherited"})],w.prototype,"type",void 0),w=g=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],w);const b=w;var S;let T=S=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,o._)([(0,s.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,o._)([(0,a.e)({range:"range"})],T.prototype,"type",void 0),T=S=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],T);const F=T,v={key:"type",base:y,typeMap:{range:T,"coded-value":h,inherited:b}};function A(e){if(!e?.type)return null;switch(e.type){case"range":return F.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4322],{67482:(e,t,n)=>{function r(e){return null!=a(e)||null!=s(e)}function o(e){return l.test(e)}function i(e){return a(e)??s(e)}function s(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,r=0;for(;!t&&r<=e.length;)t=!u.test(e[r]),r++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,r=+n.year,o=+n.month-1,i=+n.day,s=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(s>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",p=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(r,o,i,s,a,u,p);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,o,i,s,a,u,p)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>o,Cq:()=>r,_U:()=>i});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},43334:(e,t,n)=>{n.d(t,{N3:()=>i,Om:()=>o});var r=n(92722);class o{constructor(e=null,t={},n,r){this.geometry=e,this.attributes=t,this.centroid=n,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const n=e.geometry?r.A.fromJSON(e.geometry):null,i=e.centroid?r.A.fromJSON(e.centroid):null,s=e.attributes[t];return new o(n,e.attributes,i,s)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},92722:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new r(e.lengths,e.coords)}static fromRect(e){const[t,n,o,i]=e,s=o-t,a=i-n;return new r([5],[t,n,s,0,0,a,-s,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)e(this.coords[2*(n+t)],this.coords[2*(n+t)+1]);t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;for(const e of n){for(let n=1;n<e;n++)t[2*(r+n)]+=t[2*(r+n)-2],t[2*(r+n)+1]+=t[2*(r+n)-1];r+=e}return e}clone(e){if(0===this.lengths.length)return new r([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),n=this.coords.slice(0,t);return e?(e.set(n),new r(this.lengths,e)):new r(Array.from(this.lengths),Array.from(n))}}},85113:(e,t,n)=>{n.d(t,{BM:()=>v,bd:()=>x,sO:()=>F,xD:()=>c});var r=n(67482),o=n(49186),i=n(21325),s=n(43334),a=n(92722),l=n(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return u[e]}function*p(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function y(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n],o=e[(n+1)%e.length];t+=r[0]*o[1]-o[0]*r[1]}return t<=0}function m(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function h(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const r of t.coordinates)b(e,r,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const r of t.coordinates){g(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return T(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const r=t.coordinates;g(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n);return e}(e,t,n)}}function g(e,t,n){const r=m(t);!function(e){return!f(e)}(r)?b(e,r,n):S(e,r,n)}function w(e,t,n){const r=m(t);!function(e){return f(e)}(r)?b(e,r,n):S(e,r,n)}function b(e,t,n){for(const r of t)T(e,r,n);e.lengths.push(t.length)}function S(e,t,n){for(let r=t.length-1;r>=0;r--)T(e,t[r],n);e.lengths.push(t.length)}function T(e,t,n){const[r,o,i]=t;e.coords.push(r,o),n.hasZ&&e.coords.push(i||0)}function A(e){switch(typeof e){case"string":return(0,r.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e,t=4326){if(!e)throw new o.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new o.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,s=(0,i.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!r||!s.test(r))throw new o.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function v(e,t={}){const n=[],r=new Set,o=new Set;let i,s=!1,a=null,u=!1,{geometryType:f=null}=t;for(const t of p(e)){const{geometry:e,properties:p,id:m}=t;if((!e||(f||(f=c(e.type)),c(e.type)===f))&&(s||(s=y(d(e))),u||(u=null!=m,u&&(i=typeof m,p&&(a=Object.keys(p).filter((e=>p[e]===m))))),p&&a&&u&&null!=m&&(a.length>1?a=a.filter((e=>p[e]===m)):1===a.length&&(a=p[a[0]]===m?a:[])),p))for(const e in p){if(r.has(e))continue;const t=A(p[e]);if("unknown"===t){o.add(e);continue}o.delete(e),r.add(e);const i=(0,l.rS)(e);i&&n.push({name:i,alias:e,type:t})}}const m=(0,l.rS)(1===a?.length&&a[0]||null)??void 0;if(m)for(const e of n)if(e.name===m&&(0,l.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:f,hasZ:s,objectIdFieldName:m,objectIdFieldType:i,unknownFields:Array.from(o)}}function x(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:r}=t;for(const o of e){const{geometry:e,properties:i,id:l}=o;if(e&&c(e.type)!==n)continue;const u=i||{};let p;r&&(p=u[r],null==l||p||(u[r]=p=l));const d=new s.Om(e?h(new a.A,e,t):null,u,null,p??void 0);yield d}}(p(e),t))}},34322:(e,t,n)=>{n.d(t,{E:()=>J,Fu:()=>M,O8:()=>_,UH:()=>W,YW:()=>G,i5:()=>b,mG:()=>O,x$:()=>U}),n(59456);var r=n(78888),o=n(49186),i=n(5479),s=n(84952),a=n(57251),l=n(21325),u=n(50498),c=n(85113),p=n(13043),d=n(60694),y=n(20437),f=n(30524),m=n(5443),h=n(16930);const g="xlink:href",w="2.0.0",b="__esri_wfs_id__",S="wfs-layer:getWFSLayerTypeInfo-error",T="wfs-layer:empty-service",A="wfs-layer:feature-type-not-found",F="wfs-layer:geojson-not-supported",v="wfs-layer:kvp-encoding-not-supported",x="wfs-layer:malformed-json",N="wfs-layer:unknown-geometry-type",P="wfs-layer:unknown-field-type",C="wfs-layer:unsupported-spatial-reference",k="wfs-layer:unsupported-wfs-version";async function M(e,t){const n=function(e){const t=Y(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new o.A(k,`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),z(t);const n=t.firstElementChild,r=(0,i.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,p.p)(e,{Name:e=>{const{name:n,prefix:r}=X(e.textContent);t.typeName=`${r}:${n}`,t.name=n,t.namespacePrefix=r,t.namespaceUri=e.lookupNamespaceURI(r)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=m.A.fromJSON(function(e){let t,n,r,o;for(const i of e.children)switch(i.localName){case"LowerCorner":[t,n]=i.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[r,o]=i.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:n,xmax:r,ymax:o,spatialReference:l.KK}}(e))},DefaultCRS:e=>{const r=V(e);r&&(t.defaultSpatialReference=r,n.add(r))},OtherCRS:e=>{const t=V(e);t&&n.add(t)}}),t.title||(t.title=t.name),n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:E(n),get featureTypes(){return Array.from(r())},readFeatureTypes:r}}((await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,s.m3)(e)&&((0,s.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,s.lM)(t.operations.DescribeFeatureType.url)),(0,s.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,s.lM)(t.operations.GetFeature.url)))}(e,n),n}const R=["json","application/json","geojson","application/json; subtype=geojson","application/geo+json"];function j(e){for(const t of R){const n=e.findIndex((e=>e.toLowerCase()===t));if(n>=0)return e[n]}return null}function E(e){let t=!1;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},r=[],i=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:({textContent:e})=>{e&&r.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=j(i)??j(r),!t)throw new o.A(v,"WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new o.A(F,"WFS service doesn't support GeoJSON output format");return n}function V(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function O(e,t,n){return(0,i.I6)(e,(e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t))}async function _(e,t,n,r={}){const{featureType:i,extent:s}=await async function(e,t,n,r={}){const i=e.readFeatureTypes(),s=t?O(i,t,n):i.next().value,{spatialReference:u=new h.A({wkid:s?.defaultSpatialReference})}=r;if(null==s)throw t?new o.A(A,`The type '${t}' could not be found in the service`):new o.A(T,"The service is empty");let c=s.extent;if(c&&!(0,l.aI)(c.spatialReference,u))try{await(0,a.initializeProjection)(c.spatialReference,u,void 0,r),c=(0,a.project)(c,u)}catch{throw new o.A(C,"Projection not supported")}return{extent:c,spatialReference:u,featureType:s}}(e,t,n,r),{spatialReference:u}=W(e.operations.GetFeature.url,i,r.spatialReference),{fields:c,geometryType:p,swapXY:d,objectIdField:y,geometryField:f}=await async function(e,t,n,r={}){const{typeName:i}=t,[s,a]=await Promise.allSettled([D(e.operations.DescribeFeatureType.url,i,r),I(e,i,n,r)]),l=e=>new o.A(S,`An error occurred while getting info about the feature type '${i}'`,{error:e});if("rejected"===s.status)throw l(s.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:c}=s.value??{},p=s.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==p)throw new o.A(N,`The geometry type could not be determined for type '${i}`,{typeName:i,geometryType:p,fields:u,errors:c});return{...G(u??[]),geometryType:p,swapXY:d}}(e,i,u,r);return{url:e.operations.GetCapabilities.url,name:i.name,namespaceUri:i.namespaceUri,fields:c,geometryField:f,geometryType:p,objectIdField:y,spatialReference:r.spatialReference??new h.A({wkid:i.defaultSpatialReference}),extent:s,swapXY:d,wfsCapabilities:e,customParameters:r.customParameters}}function G(e){const t=e.find((e=>"geometry"===e.type));let n=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),n||(n=new y.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function I(e,t,n,o={}){let i,s=!1;const[a,l]=await Promise.all([U(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...o,count:1}),(0,r.A)(e.operations.GetFeature.url,{responseType:"text",query:L(t,n,void 0,{...o,count:1}),signal:o?.signal})]),p="FeatureCollection"===a.type&&a.features[0]?.geometry;if(p){let e;switch(i=u.g.fromJSON((0,c.xD)(p.type)),p.type){case"Point":e=p.coordinates;break;case"LineString":case"MultiPoint":e=p.coordinates[0];break;case"MultiLineString":case"Polygon":e=p.coordinates[0][0];break;case"MultiPolygon":e=p.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),r=e[1].toFixed(3),o=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&r===o&&(s=!0)}}return{geometryType:i,swapXY:s}}async function D(e,t,n){return function(e,t){const{name:n}=X(e),r=Y(t);z(r);const s=(0,i.I6)((0,p.i)(r.firstElementChild,{element:e=>e}),(e=>e.getAttribute("name")===n));if(null!=s){const e=s.getAttribute("type"),t=e?(0,i.I6)((0,p.i)(r.firstElementChild,{complexType:e=>e}),(t=>t.getAttribute("name")===X(e).name)):(0,i.I6)((0,p.i)(s,{complexType:e=>e}),(()=>!0));if(t)return function(e){const t=[],n=[];let r;const i=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const s of i){const i=s.getAttribute("name");if(!i)continue;let a,l;if(s.hasAttribute("type")?a=X(s.getAttribute("type")).name:(0,p.p)(s,{simpleType:{restriction:e=>(a=X(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===s.getAttribute("nillable");let c=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new y.A({name:i,alias:i,type:"integer",nullable:u,length:(0,f._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new y.A({name:i,alias:i,type:"double",nullable:u,length:(0,f._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new y.A({name:i,alias:i,type:"string",nullable:u,length:l??(0,f._b)("string")}));break;case"datetime":case"date":n.push(new y.A({name:i,alias:i,type:"date",nullable:u,length:l??(0,f._b)("date")}));break;case"pointpropertytype":r="point",c=!0;break;case"multipointpropertytype":r="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":r="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":r="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new o.A(N,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new o.A(P,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&n.push(new y.A({name:i,alias:i,type:"geometry",nullable:u}))}for(const e of n)if("integer"===e.type&&!e.nullable&&$.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:r,fields:n,errors:t}}(t)}throw new o.A(A,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(r)})}(t,(await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const $=new Set(["objectid","fid"]);async function U(e,t,n,i,s){let{data:a}=await(0,r.A)(e,{responseType:"text",query:L(t,n,i,s),signal:s?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new o.A(x,"Error while parsing the response",{response:a,error:e})}}function L(e,t,n,r){const o="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+o,STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}async function J(e,t,n){const o=await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),i=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(o.data);if(i?.groups)return+i.groups.numberMatched}function Y(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function X(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function z(e){let t="",n="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new o.A(`wfs-layer:${t}`,n)}function W(e,t,n){const r={wkid:t.defaultSpatialReference},o=null!=n?.wkid?{wkid:n.wkid}:r;return{spatialReference:o,getFeatureSpatialReference:(0,d.Fi)(e)||o.wkid&&t.supportedSpatialReferences.includes(o.wkid)?{wkid:o.wkid}:{wkid:t.defaultSpatialReference}}}},13043:(e,t,n)=>{function r(e,t){if(e&&t)for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&r(n,t)}else r(n,e)}}function*o(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*o(n,e)}}n.d(t,{i:()=>o,p:()=>r})},39357:(e,t,n)=>{n.d(t,{H:()=>l});var r,o=n(90237),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let l=r=class extends i.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,o._)([(0,s.M)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,o._)([(0,s.M)({type:[String,Number],json:{write:!0}})],l.prototype,"code",void 0),l=r=(0,o._)([(0,a.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(90237),i=n(4718),s=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(39357),c=n(76357);let p=r=class extends c.A{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new r({codedValues:(0,i.o8)(this.codedValues),name:this.name})}};(0,o._)([(0,s.M)({type:[u.H],json:{write:!0}})],p.prototype,"codedValues",void 0),(0,o._)([(0,a.e)({codedValue:"coded-value"})],p.prototype,"type",void 0),p=r=(0,o._)([(0,l.$)("esri.layers.support.CodedValueDomain")],p);const d=p},76357:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(90237),o=n(66552),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608);const u=new o.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends i.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.M)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,a.e)(u)],c.prototype,"type",void 0),c=(0,r._)([(0,l.$)("esri.layers.support.Domain")],c);const p=c},20437:(e,t,n)=>{n.d(t,{A:()=>h});var r,o=n(90237),i=n(66552),s=n(25482),a=n(10107),l=n(56507),u=(n(87811),n(44208),n(93223)),c=n(36005),p=n(40608),d=n(80451),y=n(98453);const f=new i.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=r=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?f.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.M)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,a.M)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,a.M)()],m.prototype,"description",void 0),(0,o._)([(0,c.w)("description")],m.prototype,"readDescription",null),(0,o._)([(0,a.M)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,a.M)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,a.M)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,o._)([(0,a.M)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,a.M)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.e)(y.m)],m.prototype,"type",void 0),(0,o._)([(0,a.M)()],m.prototype,"valueType",void 0),(0,o._)([(0,c.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,o._)([(0,a.M)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=r=(0,o._)([(0,p.$)("esri.layers.support.Field")],m);const h=m},80451:(e,t,n)=>{n.d(t,{rS:()=>h,gK:()=>m}),n(44208);var r,o=n(53177),i=n(76357),s=n(90237),a=(n(53966),n(87811),n(49186),n(93223)),l=n(40608);let u=r=class extends i.A{constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,s._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,s._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);const c=u;var p,d=n(10107);let y=p=class extends i.A{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new p({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,d.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],y.prototype,"maxValue",void 0),(0,s._)([(0,d.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],y.prototype,"minValue",void 0),(0,s._)([(0,a.e)({range:"range"})],y.prototype,"type",void 0),y=p=(0,s._)([(0,l.$)("esri.layers.support.RangeDomain")],y);const f=y,m={key:"type",base:i.A,typeMap:{range:f,"coded-value":o.A,inherited:c}};function h(e){if(!e?.type)return null;switch(e.type){case"range":return f.fromJSON(e);case"codedValue":return o.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}}}]);