@arcgis/core 5.2.0-next.162 → 5.2.0-next.163

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 (112) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/092e311cb7aea92a6a26.js +1 -0
  3. package/assets/esri/core/workers/chunks/1e1c45f75020d5e05dc3.js +1 -0
  4. package/assets/esri/core/workers/chunks/{8e4a7027d171fb60e51e.js → 1f7f4f821d422b46cae7.js} +1 -1
  5. package/assets/esri/core/workers/chunks/1fe24ffcd88280d84fbe.js +1 -0
  6. package/assets/esri/core/workers/chunks/25a3bd8bede2d07d3a54.js +1 -0
  7. package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +1 -0
  8. package/assets/esri/core/workers/chunks/3f46acfda693c70abbdd.js +1 -0
  9. package/assets/esri/core/workers/chunks/434a8ba841a59e0deab9.js +1 -0
  10. package/assets/esri/core/workers/chunks/45fd2b456a6997584ca1.js +1 -0
  11. package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +1 -0
  12. package/assets/esri/core/workers/chunks/542e5640ea1b80ef801a.js +1 -0
  13. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +1 -0
  14. package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +1 -0
  15. package/assets/esri/core/workers/chunks/5dc604e3691f36f03959.js +1 -0
  16. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +1 -0
  17. package/assets/esri/core/workers/chunks/{5f4feca26102088ea565.js → 60737732ce495bbdd0fc.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{9ce8b9b80da146a5bbf5.js → 60c79934799927114074.js} +1 -1
  19. package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +1 -0
  20. package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +29 -0
  21. package/assets/esri/core/workers/chunks/771dd92cb3e6a3427f66.js +1 -0
  22. package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +1 -0
  23. package/assets/esri/core/workers/chunks/89c8b0f684c1f27d149e.js +1 -0
  24. package/assets/esri/core/workers/chunks/8ab57cb1bfd3dc8d3c2a.js +1 -0
  25. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +1 -0
  26. package/assets/esri/core/workers/chunks/97b5f4302fb867c829f4.js +1 -0
  27. package/assets/esri/core/workers/chunks/9de5ad77bc37ec142218.js +1 -0
  28. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +1 -0
  29. package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +1 -0
  30. package/assets/esri/core/workers/chunks/b1d989b72203113a06fe.js +1 -0
  31. package/assets/esri/core/workers/chunks/{fc73737b41e086f0ce0b.js → b59aaf30c7fe2c8d1aaa.js} +1 -1
  32. package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +1 -0
  33. package/assets/esri/core/workers/chunks/b704f489d0f072a0bfcd.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d6cd0039d6e9c40961e3.js → d1f98c5249c487eb96f1.js} +1 -1
  35. package/assets/esri/core/workers/chunks/e077e321a3109c2fbbe2.js +1 -0
  36. package/assets/esri/core/workers/chunks/e251921bc5367258c4d2.js +1 -0
  37. package/assets/esri/core/workers/chunks/ee08ae5b73439a1ff666.js +1 -0
  38. package/assets/esri/core/workers/chunks/fcaf9450642fcef83286.js +1 -0
  39. package/assets/esri/core/workers/chunks/feb41abc03d677df6f73.js +1 -0
  40. package/config.d.ts +11 -30
  41. package/config.js +1 -1
  42. package/core/workers/workerFactory.js +1 -1
  43. package/core/workers.d.ts +17 -0
  44. package/kernel.js +1 -1
  45. package/layers/FeatureLayer.d.ts +32 -14
  46. package/layers/MapImageLayer.d.ts +2 -1
  47. package/layers/SubtypeGroupLayer.d.ts +63 -0
  48. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  49. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  50. package/layers/graphics/sources/support/QueryTask.js +1 -1
  51. package/layers/support/LabelClass.d.ts +20 -2
  52. package/layers/support/Sublayer.d.ts +32 -2
  53. package/layers/support/TimeInformation.js +2 -0
  54. package/package.json +2 -2
  55. package/rest/layerSources/DynamicWorkspaceLayer.d.ts +10 -6
  56. package/rest/query/operations/queryUtils.js +1 -1
  57. package/rest/support/timeUtils.js +2 -0
  58. package/symbols/TextSymbol.d.ts +27 -2
  59. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  60. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  61. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  62. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  63. package/views/3d/GroundView3D.js +1 -1
  64. package/views/3d/environment/SunLighting.d.ts +17 -1
  65. package/views/3d/environment/SunLighting.js +1 -1
  66. package/views/3d/environment/VirtualLighting.d.ts +17 -1
  67. package/views/3d/environment/VirtualLighting.js +1 -1
  68. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  69. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  70. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  71. package/views/BasemapView.js +1 -1
  72. package/views/GroundView.d.ts +1 -1
  73. package/views/GroundView.js +1 -1
  74. package/views/SceneView.js +1 -1
  75. package/views/support/ScheduledQueueProcessor.js +1 -1
  76. package/widgets/Daylight/DaylightViewModel.js +1 -1
  77. package/widgets/OrientedImageryViewer.js +1 -1
  78. package/widgets/Sketch/SketchViewModel.d.ts +61 -2
  79. package/widgets/Sketch/SketchViewModel.js +1 -1
  80. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +3 -2
  81. package/widgets/TimeSlider.d.ts +5 -4
  82. package/assets/esri/core/workers/chunks/0bd5012da287469b17d5.js +0 -1
  83. package/assets/esri/core/workers/chunks/112befb3b5b406f29298.js +0 -1
  84. package/assets/esri/core/workers/chunks/167b057ad50e6aef54de.js +0 -1
  85. package/assets/esri/core/workers/chunks/2d13a22f7b2427927fdc.js +0 -1
  86. package/assets/esri/core/workers/chunks/42fd2a7b22b03dacc6a7.js +0 -1
  87. package/assets/esri/core/workers/chunks/43cf862577bf37344ff4.js +0 -1
  88. package/assets/esri/core/workers/chunks/4be559c53fe5ac0d0d2e.js +0 -1
  89. package/assets/esri/core/workers/chunks/4e350d6c76957f5beb70.js +0 -1
  90. package/assets/esri/core/workers/chunks/4fe34da1c5d63e66ce98.js +0 -1
  91. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +0 -1
  92. package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +0 -1
  93. package/assets/esri/core/workers/chunks/6da7229433105a69eb3f.js +0 -1
  94. package/assets/esri/core/workers/chunks/74c866e0b66e61751861.js +0 -1
  95. package/assets/esri/core/workers/chunks/830ab9b8d000169da675.js +0 -1
  96. package/assets/esri/core/workers/chunks/849879c8aed16315194c.js +0 -1
  97. package/assets/esri/core/workers/chunks/8ff23ac0abeea0073b47.js +0 -1
  98. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +0 -1
  99. package/assets/esri/core/workers/chunks/95dbbddac6581b9d671f.js +0 -1
  100. package/assets/esri/core/workers/chunks/a40b6d8b5c73e06e14d4.js +0 -1
  101. package/assets/esri/core/workers/chunks/aa1ac7954e4f0fefe15b.js +0 -1
  102. package/assets/esri/core/workers/chunks/b5df193c93e9c19f9700.js +0 -1
  103. package/assets/esri/core/workers/chunks/befa32b9e7b3fbdd431e.js +0 -1
  104. package/assets/esri/core/workers/chunks/c2c1f51a4668055c2838.js +0 -1
  105. package/assets/esri/core/workers/chunks/d0f5bee9db1ad51ae687.js +0 -1
  106. package/assets/esri/core/workers/chunks/d7429b58c90e015263ad.js +0 -1
  107. package/assets/esri/core/workers/chunks/d95d63e8d51244d71afb.js +0 -1
  108. package/assets/esri/core/workers/chunks/dfc81e66196c402f39b4.js +0 -29
  109. package/assets/esri/core/workers/chunks/dfd2dc5cdc97ffba8926.js +0 -1
  110. package/assets/esri/core/workers/chunks/e1b7806ab3e1967b15f0.js +0 -1
  111. package/assets/esri/core/workers/chunks/e1f5d00878f27e1d413e.js +0 -1
  112. package/assets/esri/core/workers/chunks/ffbcb816b611049a6276.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9575],{65529(e,t,a){var n=a(69622),i=a(36563);const r=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let a=this._listenersMap?.get(e);if(!a)return!1;let n=!1;for(let e of a.slice()){let a="deref"in e?e.deref():e;a?a?.call(this,t):n=!0}return n&&(a=a.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,a)),a.length>0}on(e,t){if(Array.isArray(e)){let a=e.map(e=>this.on(e,t));return(0,i.vE)(a)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let a=this._listenersMap.get(e)||[];return a.push(t),this._listenersMap.set(e,a),(0,i.hA)(()=>{let a=this._listenersMap?.get(e),n=a?.indexOf(t)??-1;n>=0&&a.splice(n,1)})}once(e,t){let a=this.on(e,e=>{a.remove(),("deref"in t?t.deref():t)?.call(null,e)});return a}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},l=r(class{}),s=l,o=r(n.A);a.d(t,["Zt",0,r,"a$",0,l,"bk",0,s,"nJ",0,o])},3483(e,t,a){function n(e,t){for(let a of e.values())if(t(a))return!0;return!1}function i(e,t){if(t)for(let a of t)null!=a&&e.add(a)}function r(e,t){null!=t&&e.add(t)}function l(e,t){let a=new Set;return i(a,e),i(a,t),a}function s(e,t){let a=new Set;for(let n of t)e.has(n)&&a.add(n);return a}function o(e,t){if(!e||!t)return!1;if(e===t)return!0;for(let a of e)if(!t.has(a))return!1;return!0}function u(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function d(e,t){let a=new Set(e);for(let e of t)a.delete(e);return a}a.d(t,{E$:()=>s,FB:()=>i,KC:()=>l,Yy:()=>o,aI:()=>u,bw:()=>n,iv:()=>d,kb:()=>r})},95488(e,t,a){a.d(t,{I:()=>i});var n=a(11406);class i extends n.T{notify(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onInvalidated(),e.onCommitted()}}}},39516(e,t,a){a.d(t,{GP:()=>o,IW:()=>d,YG:()=>E,iA:()=>M,mA:()=>u});var n=a(3330),i=a(54218),r=a(56400),l=a(34747);let s;async function o(e,t){let n=await async function(){return s??=Promise.all([a.e(9696),a.e(5248)]).then(()=>a(44123)).then(e=>new e.WhereClauseCache(500,500)),s}(),i=n.get(e,t);if(null==i)throw n.getError(e,t);return i}function u(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function d(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}function c(e,t){return null==e?"NULL":`${t??""}'${e.replaceAll("'","''")}'`}function m(e){return Number.isFinite(e)?String(e):"NULL"}function f(e){let[t,a]=e.split("T");return`${t} ${a.replace("Z","+00:00").replace(/[+-]/,e=>` ${e}`)}`}function T(e,t){let a=null==t?l.mQ.utcInstance:(0,r.S3)(t),n=l.c9.fromMillis(e,{zone:a});return n.isValid?n:null}function p(e,t){return T(e,t)?.toSQL({includeOffset:!1})}function g(e,t){return T(e,t)?.toSQL({includeOffset:!0})?.replace("Z","+00:00")}function y(e,t){return T(e,t)?.toSQLDate()}function S(e,t){return T(e,t)?.toSQLTime({includeOffset:!1})}function A(e){return"string"==typeof e?e:e?.type}function h(e,t){if(null==e)return"NULL";let a=A(t);switch(typeof e){case"string":switch(a){case"string":case"esriFieldTypeString":case void 0:return m(Number(e));default:throw Error(`Cannot convert ${a} to sql numeric literal.`)}case"boolean":return e?"1":"0";case"number":switch(a){case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":case void 0:return m(e);default:throw Error(`Cannot convert ${a} to sql numeric literal.`)}}throw Error("Cannot convert value to sql numeric literal.")}function F(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e));case"date-only":case"esriFieldTypeDateOnly":case"time-only":case"esriFieldTypeTimeOnly":case"string":case"esriFieldTypeString":case"global-id":case"esriFieldTypeGlobalID":case"guid":case"esriFieldTypeGUID":case"xml":case"esriFieldTypeXML":case void 0:return c(e);default:throw Error(`Cannot convert ${n} to sql string literal.`)}case"boolean":return e?"'true'":"'false'";case"number":switch(n){case"date":case"esriFieldTypeDate":return c(p(e,a));case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":case void 0:return Number.isFinite(e)?`'${e}'`:"NULL";default:throw Error(`Cannot convert ${n} to sql string literal.`)}case"object":if((0,i.$P)(e))return c(p(e.valueOf(),a))}throw Error("Cannot convert value to sql string literal.")}function b(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e),"TIMESTAMP");case"date-only":case"esriFieldTypeDateOnly":return c(`${e} 00:00:00`,"TIMESTAMP");case"string":case"esriFieldTypeString":case void 0:return c(e,"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(p(e,a),"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp literal.`)}case"object":if((0,i.$P)(e))return c(p(e.valueOf(),a),"TIMESTAMP")}throw Error("Cannot convert value to sql timestamp literal.")}function E(e,t,a){if(null==e)return"NULL";if(null==t&&null==a){switch(typeof e){case"string":return F(e);case"number":return h(e);case"boolean":return function(e){return null==e?"NULL":e?"TRUE":"FALSE"}(e);case"object":if((0,i.$P)(e))return b(e)}throw Error("Cannot convert value to sql literal.")}let r=function(e,t){return null==e?t:null==t||(0,n.Y4)(e)||(0,n.Y4)(t)?e:t}(t?.timeZone,a?.timeZone),l=A(t?.type);switch(A(a?.type)??l){case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":return h(e,l);case"global-id":case"esriFieldTypeGlobalID":case"guid":case"esriFieldTypeGUID":case"xml":case"esriFieldTypeXML":case"string":case"esriFieldTypeString":return F(e,l,r);case"date":case"esriFieldTypeDate":return b(e,l,r);case"timestamp-offset":case"esriFieldTypeTimestampOffset":return function(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e),"TIMESTAMP");case"string":case"esriFieldTypeString":case void 0:return c(e,"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp offset literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(g(e,a),"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp offset literal.`)}case"object":if((0,i.$P)(e))return c(g(e.valueOf(),a),"TIMESTAMP")}throw Error("Cannot convert value to sql timestamp offset literal.")}(e,l,r);case"date-only":case"esriFieldTypeDateOnly":return function(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(function(e){return e.split("T")[0]}(e),"DATE");case"date-only":case"esriFieldTypeDateOnly":case"string":case"esriFieldTypeString":case void 0:return c(e,"DATE");default:throw Error(`Cannot convert ${n} to sql date literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(y(e,a),"DATE");default:throw Error(`Cannot convert ${n} to sql date literal.`)}case"object":if((0,i.$P)(e))return c(y(e.valueOf(),a),"DATE")}throw Error("Cannot convert value to sql date literal.")}(e,l,r);case"time-only":case"esriFieldTypeTimeOnly":return function(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(function(e){let t=e.indexOf("T")+1,a=Math.max(e.indexOf("-",t),e.indexOf("+",t),e.indexOf("Z",t));return e.slice(t,a>0?a:void 0)}(e),"TIME");case"time-only":case"esriFieldTypeTimeOnly":case"string":case"esriFieldTypeString":case void 0:return c(e,"TIME");default:throw Error(`Cannot convert ${n} to sql time literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(S(e,a),"TIME");default:throw Error(`Cannot convert ${n} to sql time literal.`)}case"object":if((0,i.$P)(e))return c(S(e.valueOf(),a),"TIME")}throw Error("Cannot convert value to sql time literal.")}(e,l,r);default:throw Error("Unsupported sql target type: "+l)}}function M(e){return/^[a-zA-Z_][a-zA-Z_0-9]*$/.test(e)?e:`"${e.replaceAll('"','""')}"`}},3330(e,t,a){a.d(t,{GB:()=>i,Qo:()=>l,Y4:()=>r});var n=a(34747);class i{static{this.instance=n.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof n.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function l(e){return r(e)?i.instance:e}},68463(e,t,a){a.d(t,{Mh:()=>c,A5:()=>y});var n=a(3483),i=a(97768),r=a(54218),l=a(34747);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function o(e){if(!e||!(0,r.Kg)(e))return null;let t=l.c9.fromFormat(e,"yyyy-MM-dd");return t.isValid?t:null}function u(e){return e&&(0,r.Kg)(e)?(0,i.Pb)(s,t=>{let a=l.c9.fromFormat(e,t);return a.isValid?a:null})??null:null}function d(e){if(!e||!(0,r.Kg)(e))return null;let t=l.c9.fromISO(e);return t.isValid?t:null}const c={VALUE_OUT_OF_RANGE:"domain-validation-error::value-out-of-range",INVALID_CODED_VALUE:"domain-validation-error::invalid-coded-value"},m=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function T(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const g=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function y(e,t){let a=t??e?.domain;if(!a||"range"!==a.type)return;let n="range"in a?a.range[0]:a.minValue,i="range"in a?a.range[1]:a.maxValue,r=function(e){return null!=e&&m.has(e.type)}(e);return f(e)||p(e)||T(e)?{...S(e,i,n),isInteger:r}:{min:null!=n&&"number"==typeof n?n:null,max:null!=i&&"number"==typeof i?i:null,rawMin:n,rawMax:i,isInteger:r}}function S(e,t,a){return f(e)?{min:o(a)?.toMillis(),max:o(t)?.toMillis(),rawMin:a,rawMax:t}:p(e)?{min:u(a)?.toMillis(),max:u(t)?.toMillis(),rawMin:a,rawMax:t}:T(e)?{min:d(a)?.toMillis(),max:d(t)?.toMillis(),rawMin:a,rawMax:t}:{max:null,min:null}}(0,n.KC)(m,g)},30524(e,t,a){a.d(t,{Ah:()=>H,Bz:()=>k,CJ:()=>ie,DB:()=>S,Dx:()=>b,GZ:()=>Fe,JL:()=>ge,Jl:()=>$,Kl:()=>pe,NF:()=>he,OG:()=>X,OH:()=>Q,R$:()=>U,R3:()=>z,Vb:()=>Ae,WA:()=>K,WX:()=>ae,XT:()=>ne,Xz:()=>Y,_b:()=>N,_w:()=>A,e7:()=>Se,eX:()=>w,hL:()=>F,lD:()=>D,mB:()=>E,nw:()=>ye,rS:()=>c,rq:()=>h,sv:()=>g,te:()=>J,uo:()=>Te,vE:()=>j,yM:()=>R,yp:()=>T,zD:()=>W}),a(49186);var n=a(93637),i=a(3483),r=(a(39516),a(68463)),l=a(69309),s=a(54218),o=a(43668);const u=/^([0-9_])/,d=/[^a-z0-9_\u0080-\uffff]+/gi;function c(e){return null==e?null:e.trim().replaceAll(d,"_").replace(u,"F$1")||null}const m=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],f=["field","normalizationField"];function T(e,t){if(null!=e&&null!=t)for(let a of Array.isArray(e)?e:[e])if(p(m,a,t),"visualVariables"in a&&a.visualVariables)for(let e of a.visualVariables)p(f,e,t)}function p(e,t,a){if(e)for(let i of e){let e=(0,n.wc)(i,t),r=e&&"function"!=typeof e&&a.get(e);r&&(0,n.sM)(i,r.name,t)}}function g(e,t){if(null!=e&&t?.fields?.length){if("startField"in e){let a=t.get(e.startField),n=t.get(e.endField);e.startField=a?.name??null,e.endField=n?.name??null}else{let a=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=a?.name??null,e.endTimeField=n?.name??null}e.trackIdField=t.get(e.trackIdField)?.name??null}}const y=new Set;function S(e,t){return e&&t?(y.clear(),A(y,e,t),Array.from(y).sort()):[]}function A(e,t,a){if(a){if(!t?.fields?.length){if(a.includes("*"))return e.clear(),void e.add("*");for(let t of a)null!=t&&e.add(t);return}if(a.includes("*")){for(let{name:a}of t.fields)e.add(a);return}for(let n of a)h(e,t,n)}}function h(e,t,a){if("string"==typeof a)if(t){let n=t.get(a);n&&e.add(n.name)}else e.add(a)}function F(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map(e=>e.name):t}async function b(e,t,a,n){if(!n)return;let i=(0,l.o)(n);if(i)h(e,t,i);else{let{arcadeUtils:i}=await(0,o.l)(),r=i.extractFieldNames(n,a?.partitions??t?.fields?.map(e=>e.name));for(let n of r)h(e,a?.index??t,n)}}function E({displayField:e,fields:t}){return e||(t?.length?function(e){return M(e,"name-or-title")||M(e,"unique-identifier")||M(e,"type-or-category")||function(e){for(let t of e){if(!t?.name)continue;let e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(e)}(t):null)}function M(e,t){for(let a of e)if(a?.valueType&&a.valueType===t)return a.name;return null}function w(e){return e?S(e.fieldsIndex,L(e)):[]}const v=new Set(["oid","global-id","guid"]),C=new Set(["oid","global-id"]),I=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function L(e){if(!e)return[];let t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];let{creationDateField:a,creatorField:n,editDateField:i,editorField:r}=t;return[a,n,i,r].filter(Boolean)}function _(e){return L(e).map(e=>e.toLowerCase())}function $(e){return!!e.type}function U(e,t){return!!e.editable&&$(e)&&!v.has(e.type)&&!_(t).includes(e.name?.toLowerCase()??"")}function k(e,t){let a=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&a===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&a===t.globalIdField.toLowerCase()||function(e){let t=new Set;_(e).forEach(e=>t.add(e)),function(e){if(!e)return[];let t=e.geometryFieldsInfo;return t?S(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach(e=>t.add(e.toLowerCase()));let a=e&&"infoFor3D"in e?e.infoFor3D:void 0;return a&&(Object.values(a.assetMapFieldRoles).forEach(e=>t.add(e.toLowerCase())),Object.values(a.transformFieldRoles).forEach(e=>t.add(e.toLowerCase()))),Array.from(t)}(t).includes(a)||C.has(e.type)||I.some(e=>e.test(a)))}function D(e){let t=e.defaultValue;return void 0!==t&&B(e,t)?t:e.nullable?null:void 0}function N(e){let t="string"==typeof e?{type:e}:e;return R(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function O(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function x(e){return null===e||O(e)}function P(e){return null===e||Number.isInteger(e)}function G(){return!0}function B(e,t){let a;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":a=e.nullable?P:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":a=e.nullable?x:O;break;case"string":case"esriFieldTypeString":a=e.nullable?s.CO:s.Kg;break;default:a=G}return 1===arguments.length?a:a(t)}const V=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),Z=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),q=(0,i.KC)(V,Z);function z(e){return null!=e&&V.has(e.type)}function K(e){return null!=e&&q.has(e.type)}function R(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function j(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function W(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function H(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function Q(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function J(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Y(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function X(e,t){return null===ie(e,t)}const ee="numeric-range-validation-error::out-of-range",te="type-validation-error::invalid-type";function ae(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ne(e){return parseFloat(e.replaceAll("_",""))}function ie(e,t){return null==e||e.nullable&&null===t?null:B(e,t)?K(e)&&!function(e,t){let a="string"==typeof e?re(e):e;if(!a)return!1;let n=a.min,i=a.max;return a.isInteger?Number.isInteger(t)&&t>=n&&t<=i:t>=n&&t<=i}(e.type,Number(t))?ee:null:te}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return le;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ue;case"esriFieldTypeBigInteger":case"big-integer":return de;case"esriFieldTypeSingle":case"single":return me;case"esriFieldTypeDouble":case"double":return fe}}const le={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},se=-2147483648,oe=2**31-1,ue={min:se,max:oe,isInteger:!0,rawMin:se,rawMax:oe},de={min:-(2**53-1),max:2**53-1,isInteger:!0,rawMin:-(2**53-1),rawMax:2**53-1},ce=(2-2**-23)*2**127,me={min:-ce,max:ce,isInteger:!1,rawMin:-ce,rawMax:ce},fe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function Te(e,t,a){switch(e){case r.Mh.INVALID_CODED_VALUE:return`Value ${a} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.Mh.VALUE_OUT_OF_RANGE:return`Value ${a} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case te:return`Value ${a} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case ee:{let{min:e,max:n}=re(t.type);return`Value ${a} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}function pe(e,t){return!function(e,t){if(!e?.attributes||!t)return!0;let a=new Set(Object.keys(e.attributes)),n=!1;for(let e of t)if(!a.has(e)){n=!0;break}return n}(e,t)}function ge(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}function ye(e){let t=e?.match(/{[^}]+}/g);return t?t.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function Se(e,t){let{statisticType:a,onStatisticField:n,onStatisticExpression:i}=e,r=t.get(n),l=K(r),s=i?.returnType;switch(a){case"avg":case"avg_angle":return r?l||j(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?l||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?l?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function Ae(e){let{fieldName:t,fieldsMap:a,normalizedFieldsMap:n}=e;if(!t)return;let i=a.get(t);return i||(i=a.get(he(t))??n.get(Fe(t)),i&&a.set(t,i),i)}function he(e){return e.trim().toLowerCase()}function Fe(e){return c(e)?.toLowerCase()??""}},69309(e,t,a){function n(e){if(!e)return;let t=e.match(i);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}a.d(t,{D:()=>r,o:()=>n});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(l)?.[1]?.replaceAll("\\'","'")??null}const l=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,t,a){function n(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function l(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||l(e)}function o(e){return Array.isArray(e)}function u(e){return e instanceof Date}a.d(t,{$P:()=>u,CO:()=>s,Et:()=>n,Fq:()=>i,Kg:()=>l,Lm:()=>r,cy:()=>o})},43668(e,t,a){let n;function i(){return n||=Promise.all([a.e(6854),a.e(9696),a.e(5879),a.e(5606)]).then(()=>a(55606)).then(e=>({arcade:e.arcade,arcadeUtils:e,batchExec:e.batchExec,aiServices:e.aiServices,languageUtils:e.languageUtils,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel})),n}a.d(t,{l:()=>i})},98623(e,t,a){const n=Intl.DateTimeFormat().resolvedOptions().timeZone;a.d(t,["L",0,"unknown","N",0,n])},84741(e,t,a){a.d(t,{p:()=>s});var n=a(44208),i=a(34747);class r extends i.oh{constructor(e){super(e),this._start=[],this._end=[],this._offset=[]}get type(){return"temporal"}equals(e){return"temporal"===e.type&&e.name===this.name}_findIndexOfLatestStartIncluding(e){let t=0,a=this._start.length;for(;t<a;){let n=t+a>>>1;this._start[n]>e?a=n:t=n+1}return t-1}offset(e){if(e<-864e13||864e13<e)return NaN;let t=this._findIndexOfLatestStartIncluding(e);if(t>=0&&e<this._end[t])return this._offset[t];let a=Temporal.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(this.name),n=a.offsetNanoseconds/6e10,i=a.add({nanoseconds:1}).getTimeZoneTransition("previous")?.epochMilliseconds??-1/0,r=a.getTimeZoneTransition("next")?.epochMilliseconds??1/0;return this._start.splice(t+1,0,i),this._end.splice(t+1,0,r),this._offset.splice(t+1,0,n),n}}const l=new Map;function s(e){if((0,n.A)("esri-temporal")){let t=l.get(e);return void 0===t&&(t=new r(e),l.set(e,t)),t}return i.oh.create(e)}},56400(e,t,a){a.d(t,{ZS:()=>u,S3:()=>m,hv:()=>d,wr:()=>c,P6:()=>o});var n=a(3330),i=a(98623),r=a(84741);const l=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=a(34747);function o(e,t=!1,a=!0){let n=!!t&&{allowNull:a,writer(t,a){a[e]=t?function(e){return{timeZoneIANA:e}}(t):null},target:{[`${e}.timeZoneIANA`]:{type:String}}};return{json:{read:{source:e,reader:(t,a)=>a[e]?u(a[e]):null},write:n}}}function u(e,t="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t="system"){if(!e||!l.has(e.timeZone))return t;let a=l.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?a:function(e){let t=s.c9.local().setZone(e),a=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===a?"Etc/UTC":`Etc/GMT${s.mQ.instance(-a).formatOffset(0,"narrow")}`}(a)}(e,t):t}function d(e,t,a,n,r){if(t&&"date"===r)return{timeZone:"UTC",timeZoneName:void 0};let l=n.hour,s="timestamp-offset"===r?void 0:e??"UTC",o=a===i.L;return{timeZone:o?s:a,timeZoneName:o&&l?"shortOffset":void 0}}function c(e){let t=new Set(["etc/utc","etc/gmt","gmt"]),a=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===i.L||t.has(e.toLowerCase())||a.has(e.toLowerCase())}function m(e){return e===i.L?n.GB.instance:"UTC"===e||"Etc/UTC"===e?s.mQ.utcInstance:(0,r.p)(e)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{10382(e,t,r){r.d(t,{A:()=>u});var s=r(36563),n=(r(44208),r(17676)),o=r(9775),i=r(72457),a=r(52268),l=r(50343);class u{constructor(){this._clients=[],this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(let e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(let t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){let r=await e;if((0,n.G4)(t)||this._isClosed)throw(0,n.NK)();let s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(let e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(let e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){let e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,n.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){let e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;let t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>T,N1:()=>z});var s=r(51447),n=r(49186),o=r(36563),i=r(44208),a=r(53966),l=r(91869),u=r(17676),c=r(10382),d=r(72457),h=r(17333),f=r(50343),p=r(97768),g=r(56507),m=r(84952);const y={async request(e,t){let r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,m.sC)(e.url)?.after?s:"array-buffer";let n=await(0,g.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var w=r(8341),b=r(2741),_=r(92602),k=r(79783),v=r(70333);r(87811);const A={};var C=r(26390);class P{constructor(){let e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class E{constructor(){this._dispatcher=new P,this._workerPostMessage({type:w.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,C.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,C.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){let t=(0,w.VI)(e);if(t&&t.type===w.Go.OPEN){let{modulePath:e,jobId:r}=t,s=await f.default.loadWorker(e);s||=await(import(e));let n=f.default.connect(s);this._workerPostMessage({type:w.Go.OPENED,jobId:r,data:n})}}}const x=()=>a.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:N}=w.Go;let S,M;const O="Failed to create Worker. Fallback to execute module in main thread";async function L(){if(!(0,i.A)("esri-workers"))return j(new E);if(!S&&!M)try{let e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerVersionChecked=!1;function checkWorkerVersion(e){if(!workerVersionChecked&&e.kernelInfo){workerVersionChecked=!0;const{fullVersion:o}=configuration.kernelInfo,{fullVersion:r,version:t}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==r&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\\nModules version: ${o}\\nAssets version: ${r??t}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||o.isESM&&import(o.modulePath)||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerVersion(t),t.loadWorker(o.modulePath))).then(e=>e||o.isESM&&import(o.modulePath)||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=_.A.default){let t={..._.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(_.A));e.assetsPath=(0,m.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,m.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,k.JK)(),e.has={"esri-csp-restrictions":(0,i.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,i.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,i.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,i.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,i.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,i.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,i.A)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,i.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,i.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,i.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,i.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,i.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,i.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,i.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,i.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,i.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,i.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,i.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,i.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,i.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,i.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,i.A)("esri-atomics"),"esri-shared-array-buffer":(0,i.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,i.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,i.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,i.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.s2)(e.workers.workerPath):e.workers.workerPath=(0,m.s2)((0,b.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,i.A)("esri-esbuild-build");let t=_.A.workers.loaderConfig,r=function(e){let t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...A.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=A.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,k.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]});return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:{fullVersion:v.ol}})}());S=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){M=e||{}}let e;if(S)try{e=new Worker(S,{name:"esri-worker-"+I++})}catch{x().warn(O,M),e=new E}else x().warn(O,M),e=new E;return j(e)}async function j(e){return new Promise(t=>{function r(n){let o=(0,w.VI)(n);o&&o.type===N&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),x().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new E).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let I=0;const{ABORT:J,INVOKE:U,OPEN:q,OPENED:R,RESPONSE:H}=w.Go;class ${static async create(e){let t=await L();return new $(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),a.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t,r={}){let{signal:s}=r,n=(0,w.Jc)();return new Promise((r,o)=>{let i={resolve:r,reject:o,abortHandle:(0,u.NY)(s,()=>{this._outJobs.delete(n),this._post({type:J,jobId:n})})};this._outJobs.set(n,i),this._post({type:q,jobId:n,isESM:t,modulePath:e})})}_onMessage(e){let t=(0,w.VI)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case H:this._onResponseMessage(t);break;case J:this._onAbortMessage(t);break;case U:this._onInvokeMessage(t)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){let t,{methodName:r,jobId:s,data:n,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,l=y[r];try{if("function"!=typeof l)throw TypeError(`${r} is not a function`);t=l.call(null,n,{signal:i?i.signal:null})}catch(e){return void this._post({type:H,jobId:s,error:(0,w.mF)(e)})}(0,u.$X)(t)?(a.set(s,{controller:i,promise:t}),t.then(e=>{a.has(s)&&(a.delete(s),this._post({type:H,jobId:s},e))},e=>{a.has(s)&&(a.delete(s),e||={message:"Error encountered at method"+r},(0,u.zf)(e)||this._post({type:H,jobId:s,error:(0,w.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:H,jobId:s},t)}_onOpenedMessage(e){let{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,p.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){let{jobId:t,error:r,data:s}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,p.xt)(o.abortHandle),r?o.reject(n.A.fromJSON(JSON.parse(r))):o.resolve(s))}_post(e,t,r){return(0,w.u1)(this.worker,e,t,r)}}const W=[],D=new Map;let V=function(){let e=(0,i.A)("min-workers-pool-size")??2,t=(0,i.A)("max-workers-pool-size")??8,r=(0,i.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),F=0;async function z(e,t={},r){let s=new c.A,{registryTarget:n,...o}=t;return await s.open(e,o,r),n&&(0,d.k)(n,s),s}async function T(e,t={}){if("string"!=typeof e)throw new n.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,i.A)("host-webworker")&&!(0,i.A)("esri-workers")&&(r="local");let c=t.isESM??!1;!c&&!Object.hasOwn(h.u,e)&&(0,s.ck)(a.A.getLogger("esri.core.workers"),"isESM","false",{replacement:"Call `open` using the `isESM` option value `true`, and author the worker as an ES module.",see:"https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open",version:"5.2",warnOnce:!0});let d=(0,l.tE)(D,e,()=>new Q(e,c));return"local"===r?async function({modulePath:e},t){let r=await f.default.loadWorker(e);r||=await(import(e)),(0,u.Te)(t.signal);let s=t.client||r;return await z([f.default.connect(r,t.schedule)],{...t,client:s})}(d,t):async function(e,t){await async function(){if(B)return B;K=new AbortController;let e=[];for(let t=0;t<V;t++){let r=$.create(t).then(e=>(W[t]=e,e));e.push(r)}return B=Promise.all(e),B}(),(0,u.Te)(t.signal);let r=[];return z(function*(e,t,r,s){let n=new Set;for(let o=0;o<t;o++){let t=e.getNextProxyId(e=>!n.has(e));if(null==t)break;n.add(t),s.push(e.useProxy(t)),yield W[t].open(e.modulePath,e.isESM,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,V):V,t.signal,r),t,()=>(0,o.vE)(r).remove())}(d,t)}let K,B=null;class Q{constructor(e,t){this.modulePath=e,this.isESM=t,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){let t,r=Array.from(this._proxyUseCount.keys()),s=F;F=(F+1)%V;for(let n=0;n<r.length;n++){let o=r[(s+n)%r.length];if(e(o)&&(r.length===V&&(t??=o),0===this._getProxyUseCount(o)))return o}if(null!=t)return t;for(let t=0;t<V;t++){let r=(t+s)%V;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),u=r(93637),c=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),p(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var g=r(56507),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function w(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);let t=await(0,g.A)(e,{responseType:"text"});return JSON.parse(t.data)}class b{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){let n=y[r]??r,o=t.exec(n);if(!o)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let a=o[1]?`${o[1]}/`:"",l=o[2],u=(0,i.xO)(s),c=n.startsWith("esri/"),d=`${a}${l}.json`,h=u?`${a}${l}_${u}.json`:d,f=c?`${a}messages.en.json`:d,p=c?`${a}messages.${u??"en"}.json`:h,g=[...new Set(c?[p,h,f,d]:[p,f])];for(let[t,s]of g.entries())try{return await w(e(s))}catch(e){if(t===g.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=o.JK,A=o.oQ,C=i.ao,P=function(e,t,r={}){let{format:s={}}=r;return(0,c.HC)(e,e=>function(e,t,r){let s,n,o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";let i=(0,u.wc)(s,t);if(null==i)return"";let a=(n?r?.[n]:null)??r?.[s];return a?h(i,a):n?f(i,n):p(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new b(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),n=r(36563),o=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){let t=i[e];return!0===t?e:t}return null}const l=[],u=new Map;function c(e){for(let t of u.keys())p(e.pattern,t)&&u.delete(t)}function d(e){return l.includes(e)||(c(e),l.unshift(e)),(0,n.hA)(()=>{let t=l.indexOf(e);t>-1&&(l.splice(t,1),c(e))})}async function h(e){let t=(0,o.JK)();u.has(e)||u.set(e,async function(e,t){let r=[];for(let s of l)if(p(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}throw r.length?new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));let r=u.get(e);return r&&await g.add(r),r}function f(e){let t=(0,o.lR)(e);return t?a(e)??a(t):null}function p(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{u.clear()});const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||=Promise.withResolvers()}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>u,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){let t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){let{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function u(e,t){return Object.is(e,-0)&&(e=0),function(e){let t=e||i;if(!o.has(t)){let r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{10382(e,t,r){r.d(t,{A:()=>u});var s=r(36563),o=(r(44208),r(17676)),n=r(9775),i=r(72457),a=r(52268),l=r(50343);class u{constructor(){this._clients=[],this._ongoingJobsQueue=new n.A,this._ongoingLowPriorityJobsQueue=new n.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,o.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,o.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(let e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(let t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){let r=await e;if((0,o.G4)(t)||this._isClosed)throw(0,o.NK)();let s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(let e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(let e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){let e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,o.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){let e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;let t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>n,k:()=>o});const s=new FinalizationRegistry(e=>{e.close()});function o(e,t){s.register(e,t,t)}function n(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>K,N1:()=>T});var s=r(51447),o=r(49186),n=r(36563),i=r(44208),a=r(53966),l=r(91869),u=r(17676),c=r(10382),d=r(72457),h=r(17333),f=r(50343),p=r(97768),g=r(56507),m=r(84952);const y={async request(e,t){let r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,m.sC)(e.url)?.after?s:"array-buffer";let o=await(0,g.A)(e.url,r),n={data:o.data,httpStatus:o.httpStatus,ssl:o.ssl};switch(o.requestOptions?.responseType){case"native-request-init":return delete n.data.signal,n;case"blob":n.data=await n.data.arrayBuffer();break;case"json":n.data=(new TextEncoder).encode(JSON.stringify(n.data)).buffer;break;case"text":n.data=(new TextEncoder).encode(n.data).buffer}return{result:n,transferList:[n.data]}}};var w=r(8341),b=r(2741),_=r(92602),k=r(79783),v=r(70333),A=r(93637);r(87811);const C={};var P=r(26390);class E{constructor(){let e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class x{constructor(){this._dispatcher=new E,this._workerPostMessage({type:w.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,P.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,P.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){let t=(0,w.VI)(e);if(t&&t.type===w.Go.OPEN){let{modulePath:e,jobId:r}=t,s=await f.default.loadWorker(e);s||=await(import(e));let o=f.default.connect(s);this._workerPostMessage({type:w.Go.OPENED,jobId:r,data:o})}}}const N=()=>a.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:S}=w.Go;let M,L;const O="Failed to create Worker. Fallback to execute module in main thread";async function j(){if(!(0,i.A)("esri-workers"))return I(new x);if(!M&&!L)try{let e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerVersionChecked=!1;function checkWorkerVersion(e){if(!workerVersionChecked&&e.kernelInfo){workerVersionChecked=!0;const{fullVersion:o}=configuration.kernelInfo,{fullVersion:r,version:t}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==r&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\\nModules version: ${o}\\nAssets version: ${r??t}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||o.isESM&&import(o.modulePath)||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerVersion(t),t.loadWorker(o.modulePath))).then(e=>e||o.isESM&&import(o.modulePath)||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if((0,A.i8)(_.A.workers,{loaderConfig:{has:{},paths:{},map:{},packages:[]}})&&(0,s.Lx)(a.A.getLogger("esri.config"),"workers",{see:"https://developers.arcgis.com/javascript/latest/references/core/config/#Config-workers",version:"5.2",warnOnce:!0}),null!=_.A.default){let t={..._.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(_.A));e.assetsPath=(0,m.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,m.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,k.JK)(),e.has={"esri-csp-restrictions":(0,i.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,i.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,i.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,i.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,i.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,i.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,i.A)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,i.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,i.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,i.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,i.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,i.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,i.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,i.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,i.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,i.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,i.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,i.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,i.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,i.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,i.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,i.A)("esri-atomics"),"esri-shared-array-buffer":(0,i.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,i.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,i.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,i.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.s2)(e.workers.workerPath):e.workers.workerPath=(0,m.s2)((0,b.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,i.A)("esri-esbuild-build");let t=_.A.workers.loaderConfig,r=function(e){let t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...C.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=C.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,k.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]});return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:{fullVersion:v.ol}})}());M=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){L=e||{}}let e;if(M)try{e=new Worker(M,{name:"esri-worker-"+J++})}catch{N().warn(O,L),e=new x}else N().warn(O,L),e=new x;return I(e)}async function I(e){return new Promise(t=>{function r(o){let n=(0,w.VI)(o);n&&n.type===S&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),N().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new x).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let J=0;const{ABORT:U,INVOKE:q,OPEN:R,OPENED:H,RESPONSE:$}=w.Go;class W{static async create(e){let t=await j();return new W(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),a.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t,r={}){let{signal:s}=r,o=(0,w.Jc)();return new Promise((r,n)=>{let i={resolve:r,reject:n,abortHandle:(0,u.NY)(s,()=>{this._outJobs.delete(o),this._post({type:U,jobId:o})})};this._outJobs.set(o,i),this._post({type:R,jobId:o,isESM:t,modulePath:e})})}_onMessage(e){let t=(0,w.VI)(e);if(t)switch(t.type){case H:this._onOpenedMessage(t);break;case $:this._onResponseMessage(t);break;case U:this._onAbortMessage(t);break;case q:this._onInvokeMessage(t)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){let t,{methodName:r,jobId:s,data:o,abortable:n}=e,i=n?new AbortController:null,a=this._inJobs,l=y[r];try{if("function"!=typeof l)throw TypeError(`${r} is not a function`);t=l.call(null,o,{signal:i?i.signal:null})}catch(e){return void this._post({type:$,jobId:s,error:(0,w.mF)(e)})}(0,u.$X)(t)?(a.set(s,{controller:i,promise:t}),t.then(e=>{a.has(s)&&(a.delete(s),this._post({type:$,jobId:s},e))},e=>{a.has(s)&&(a.delete(s),e||={message:"Error encountered at method"+r},(0,u.zf)(e)||this._post({type:$,jobId:s,error:(0,w.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:$,jobId:s},t)}_onOpenedMessage(e){let{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,p.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){let{jobId:t,error:r,data:s}=e,n=this._outJobs.get(t);n&&(this._outJobs.delete(t),(0,p.xt)(n.abortHandle),r?n.reject(o.A.fromJSON(JSON.parse(r))):n.resolve(s))}_post(e,t,r){return(0,w.u1)(this.worker,e,t,r)}}const D=[],V=new Map;let F=function(){let e=(0,i.A)("min-workers-pool-size")??2,t=(0,i.A)("max-workers-pool-size")??8,r=(0,i.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),z=0;async function T(e,t={},r){let s=new c.A,{registryTarget:o,...n}=t;return await s.open(e,n,r),o&&(0,d.k)(o,s),s}async function K(e,t={}){if("string"!=typeof e)throw new o.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,i.A)("host-webworker")&&!(0,i.A)("esri-workers")&&(r="local");let c=t.isESM??!1;!c&&!Object.hasOwn(h.u,e)&&(0,s.ck)(a.A.getLogger("esri.core.workers"),"isESM","false",{replacement:"Call `open` using the `isESM` option value `true`, and author the worker as an ES module.",see:"https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open",version:"5.2",warnOnce:!0});let d=(0,l.tE)(V,e,()=>new G(e,c));return"local"===r?async function({modulePath:e},t){let r=await f.default.loadWorker(e);r||=await(import(e)),(0,u.Te)(t.signal);let s=t.client||r;return await T([f.default.connect(r,t.schedule)],{...t,client:s})}(d,t):async function(e,t){await async function(){if(Q)return Q;B=new AbortController;let e=[];for(let t=0;t<F;t++){let r=W.create(t).then(e=>(D[t]=e,e));e.push(r)}return Q=Promise.all(e),Q}(),(0,u.Te)(t.signal);let r=[];return T(function*(e,t,r,s){let o=new Set;for(let n=0;n<t;n++){let t=e.getNextProxyId(e=>!o.has(e));if(null==t)break;o.add(t),s.push(e.useProxy(t)),yield D[t].open(e.modulePath,e.isESM,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,F):F,t.signal,r),t,()=>(0,n.vE)(r).remove())}(d,t)}let B,Q=null;class G{constructor(e,t){this.modulePath=e,this.isESM=t,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){let t,r=Array.from(this._proxyUseCount.keys()),s=z;z=(z+1)%F;for(let o=0;o<r.length;o++){let n=r[(s+o)%r.length];if(e(n)&&(r.length===F&&(t??=n),0===this._getProxyUseCount(n)))return n}if(null!=t)return t;for(let t=0;t<F;t++){let r=(t+s)%F;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),o=r(97770),n=r(73444),i=r(10838),a=r(18047),l=r(53966),u=r(93637),c=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,o.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),p(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.Yq)(e):""}}var g=r(56507),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function w(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);let t=await(0,g.A)(e,{responseType:"text"});return JSON.parse(t.data)}class b{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){let o=y[r]??r,n=t.exec(o);if(!n)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let a=n[1]?`${n[1]}/`:"",l=n[2],u=(0,i.xO)(s),c=o.startsWith("esri/"),d=`${a}${l}.json`,h=u?`${a}${l}_${u}.json`:d,f=c?`${a}messages.en.json`:d,p=c?`${a}messages.${u??"en"}.json`:h,g=[...new Set(c?[p,h,f,d]:[p,f])];for(let[t,s]of g.entries())try{return await w(e(s))}catch(e){if(t===g.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=n.JK,A=n.oQ,C=i.ao,P=function(e,t,r={}){let{format:s={}}=r;return(0,c.HC)(e,e=>function(e,t,r){let s,o,n=e.indexOf(":");if(-1===n?s=e.trim():(s=e.slice(0,n).trim(),o=e.slice(n+1).trim()),!s)return"";let i=(0,u.wc)(s,t);if(null==i)return"";let a=(o?r?.[o]:null)??r?.[s];return a?h(i,a):o?f(i,o):p(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new b(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),o=r(36563),n=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){let t=i[e];return!0===t?e:t}return null}const l=[],u=new Map;function c(e){for(let t of u.keys())p(e.pattern,t)&&u.delete(t)}function d(e){return l.includes(e)||(c(e),l.unshift(e)),(0,o.hA)(()=>{let t=l.indexOf(e);t>-1&&(l.splice(t,1),c(e))})}async function h(e){let t=(0,n.JK)();u.has(e)||u.set(e,async function(e,t){let r=[];for(let s of l)if(p(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}throw r.length?new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));let r=u.get(e);return r&&await g.add(r),r}function f(e){let t=(0,n.lR)(e);return t?a(e)??a(t):null}function p(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,n.Ml)(()=>{u.clear()});const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||=Promise.withResolvers()}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>u,yx:()=>a});var s=r(73444);const o={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let n=new WeakMap,i={};function a(e={}){let t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){let{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function u(e,t){return Object.is(e,-0)&&(e=0),function(e){let t=e||i;if(!n.has(t)){let r=(0,s.lR)(),i=r&&o[r]||(0,s.QC)();n.set(t,new Intl.NumberFormat(i,e))}return n.get(t)}(t).format(e)}(0,s.Ml)(()=>{n=new WeakMap,i={}}),new Map}}]);