@arcgis/core 5.2.0-next.82 → 5.2.0-next.83

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 (126) hide show
  1. package/assets/components/assets/icon/deleteAndReplaceFeatures16.json +1 -0
  2. package/assets/components/assets/icon/deleteAndReplaceFeatures24.json +1 -0
  3. package/assets/components/assets/icon/deleteAndReplaceFeatures32.json +1 -0
  4. package/assets/components/assets/icon/moveAndRotate16.json +1 -0
  5. package/assets/components/assets/icon/moveAndRotate24.json +1 -0
  6. package/assets/components/assets/icon/moveAndRotate32.json +1 -0
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/028bee58f7bc19e5e39e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{a2fd945659ce052f99d2.js → 03895d49fbd34ccb3ead.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +1 -0
  11. package/assets/esri/core/workers/chunks/{95ff342e5c29bf91a765.js → 13a43c87d7952facbed4.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{e59101f1d060d0a30a65.js → 14def8f47ae7265dd71b.js} +1 -1
  13. package/assets/esri/core/workers/chunks/1b00789511c9b27da4a7.js +1 -0
  14. package/assets/esri/core/workers/chunks/1b277311a4beb4243bf8.js +2 -0
  15. package/assets/esri/core/workers/chunks/1d03db4df18524cf391c.js +1 -0
  16. package/assets/esri/core/workers/chunks/24bfe759c8848143361e.js +1 -0
  17. package/assets/esri/core/workers/chunks/30dade7bf6032be32599.js +2 -0
  18. package/assets/esri/core/workers/chunks/{865f9adc591056458b6b.js → 33dc93d82407052fafe1.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{0d982abff7c9496f7890.js → 3a6990058f1003bd2812.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{0fd7590e545864f5fff4.js → 3ca0d503ce733088a6c2.js} +1 -1
  21. package/assets/esri/core/workers/chunks/46b3d6814ba4c0a71111.js +1 -0
  22. package/assets/esri/core/workers/chunks/49784f8e8e5fac0cc5a9.js +1 -0
  23. package/assets/esri/core/workers/chunks/{563a4d6788ad66b676e4.js → 5156d94f01b4fbbf8cde.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{cdd4aeaa3f30bc4ea93a.js → 5568448e7f51508ffdf5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/58e4aecabca047f1d229.js +1 -0
  26. package/assets/esri/core/workers/chunks/{218ddad849745d652a28.js → 5a3c1fe24814a345ab39.js} +1 -1
  27. package/assets/esri/core/workers/chunks/5b292831127bf981c1c5.js +1 -0
  28. package/assets/esri/core/workers/chunks/{bd1c870694edd25bf8aa.js → 5f13ade03500b39c1720.js} +1 -1
  29. package/assets/esri/core/workers/chunks/6154f4d39f9e53fe56cc.js +1 -0
  30. package/assets/esri/core/workers/chunks/62b116307483d5f0e37d.js +2 -0
  31. package/assets/esri/core/workers/chunks/6433a623af765b7e53ab.js +1 -0
  32. package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +1 -0
  33. package/assets/esri/core/workers/chunks/6d11b922898a8039dbe7.js +1 -0
  34. package/assets/esri/core/workers/chunks/7188559a685e0ba30c4f.js +1 -0
  35. package/assets/esri/core/workers/chunks/{faf14281a74a06fa1f30.js → 724b2631c9ced80a1661.js} +1 -1
  36. package/assets/esri/core/workers/chunks/7493ce5d02224c07a6d5.js +1 -0
  37. package/assets/esri/core/workers/chunks/7ad70c8a56f2481adc82.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ca188f824956a5cac35.js +2 -0
  39. package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +1 -0
  40. package/assets/esri/core/workers/chunks/{ab10388dcc17a665ac3b.js → 8e1b913067b8e88ff365.js} +2 -2
  41. package/assets/esri/core/workers/chunks/{e3eab61815ef1c521a6c.js → 9568932bafe689c38f63.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{c8d83f71326222b98608.js → 996ac351e2322298a17d.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{34f6093d2c00e3584037.js → 9be05d32528b395a7d34.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{552d6aecc7d88d16227b.js → 9d41c02601d0bb75b525.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{64a1ffc221e5b63b43fb.js → a4bb0951e1389e7b803c.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{b09e9ac5fd928e69b053.js → aabffe53508730e504ec.js} +1 -1
  47. package/assets/esri/core/workers/chunks/b61c30cdf698b4d1573a.js +1 -0
  48. package/assets/esri/core/workers/chunks/bbb97c38d8670329d07e.js +2 -0
  49. package/assets/esri/core/workers/chunks/bd8b483e70acf0fc601e.js +1 -0
  50. package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +1 -0
  51. package/assets/esri/core/workers/chunks/c90dfdf2302b7db1f6f7.js +1 -0
  52. package/assets/esri/core/workers/chunks/{8a36b999cbd65dd2f16c.js → d8c3bdc3c6be8ba7c5e6.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{40b842d055b87e442156.js → f20b88f5a6d3b988a055.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{f248131df4eaa5291623.js → f6ae0c483579e227a2f2.js} +1 -1
  55. package/config.js +1 -1
  56. package/geometry/support/spatialReferenceUtils.js +1 -1
  57. package/kernel.js +1 -1
  58. package/package.json +2 -2
  59. package/renderers/UniqueValueRenderer.js +1 -1
  60. package/support/revision.js +1 -1
  61. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  62. package/views/2d/engine/vectorTiles/style/GeoJSONLabelUtils.js +2 -0
  63. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  64. package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  66. package/views/3d/GroundView3D.js +1 -1
  67. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  68. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  69. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  70. package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +1 -1
  71. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  72. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  73. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  74. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  75. package/views/3d/input/SceneInputManager.js +1 -1
  76. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  77. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  78. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  79. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  80. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  81. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  82. package/views/3d/state/utils/navigationUtils.js +1 -1
  83. package/views/3d/support/GroundAndIMSurface.js +2 -0
  84. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  85. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  86. package/views/3d/support/pointsOfInterest/PointOfInterest.js +1 -1
  87. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  88. package/views/3d/terrain/OverlayManager.js +1 -1
  89. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  90. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  91. package/views/SceneView.js +1 -1
  92. package/views/draw/support/PluginContext.js +1 -1
  93. package/views/draw/support/types.d.ts +6 -0
  94. package/views/interactive/interactiveToolUtils.js +1 -1
  95. package/widgets/Widget.js +1 -1
  96. package/widgets/support/jsxWidgetSupport.js +1 -1
  97. package/assets/esri/core/workers/chunks/0dcfd82a2669df6eb5a0.js +0 -1
  98. package/assets/esri/core/workers/chunks/1352b5c6767e5421bc02.js +0 -1
  99. package/assets/esri/core/workers/chunks/14469f664fd5ede469fc.js +0 -1
  100. package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +0 -1
  101. package/assets/esri/core/workers/chunks/21f763694a41968ac21a.js +0 -1
  102. package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +0 -1
  103. package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +0 -1
  104. package/assets/esri/core/workers/chunks/469e72ab6cd44272f474.js +0 -1
  105. package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +0 -1
  106. package/assets/esri/core/workers/chunks/53d80202b5f43542d45b.js +0 -1
  107. package/assets/esri/core/workers/chunks/6c389e9646a48c26da20.js +0 -2
  108. package/assets/esri/core/workers/chunks/6f08c8a1e8e3ffd0a96a.js +0 -1
  109. package/assets/esri/core/workers/chunks/71ee7c51d2c60a180f1e.js +0 -1
  110. package/assets/esri/core/workers/chunks/927582ec15bff2acbb49.js +0 -1
  111. package/assets/esri/core/workers/chunks/98739b6e7904045edbab.js +0 -1
  112. package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +0 -1
  113. package/assets/esri/core/workers/chunks/ac9a3dfd02160e43fc8a.js +0 -2
  114. package/assets/esri/core/workers/chunks/c456abf5ee2a1ad5cc5b.js +0 -1
  115. package/assets/esri/core/workers/chunks/c61e94806b37ca3dd549.js +0 -2
  116. package/assets/esri/core/workers/chunks/c899457f19b749516275.js +0 -1
  117. package/assets/esri/core/workers/chunks/d0c8630177d3a4e316f1.js +0 -2
  118. package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +0 -1
  119. package/assets/esri/core/workers/chunks/ead4143d811aab610e00.js +0 -2
  120. package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +0 -1
  121. /package/assets/esri/core/workers/chunks/{d0c8630177d3a4e316f1.js.LICENSE.txt → 1b277311a4beb4243bf8.js.LICENSE.txt} +0 -0
  122. /package/assets/esri/core/workers/chunks/{ead4143d811aab610e00.js.LICENSE.txt → 30dade7bf6032be32599.js.LICENSE.txt} +0 -0
  123. /package/assets/esri/core/workers/chunks/{ac9a3dfd02160e43fc8a.js.LICENSE.txt → 62b116307483d5f0e37d.js.LICENSE.txt} +0 -0
  124. /package/assets/esri/core/workers/chunks/{6c389e9646a48c26da20.js.LICENSE.txt → 7ca188f824956a5cac35.js.LICENSE.txt} +0 -0
  125. /package/assets/esri/core/workers/chunks/{ab10388dcc17a665ac3b.js.LICENSE.txt → 8e1b913067b8e88ff365.js.LICENSE.txt} +0 -0
  126. /package/assets/esri/core/workers/chunks/{c61e94806b37ca3dd549.js.LICENSE.txt → bbb97c38d8670329d07e.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7539],{68197(t,e,s){s.d(e,{A:()=>l});var i=s(40876),r=s(4576),n=s(34727),o=s(56507);function a(t){return(0,n.qE)((0,o.Vr)(t),0,255)}function h(t,e){const s=t.toString(16).padStart(2,"0");return e?s.slice(0,1):s}class l{static blendColors(t,e,s,i=new l){return i.r=Math.round(t.r+(e.r-t.r)*s),i.g=Math.round(t.g+(e.g-t.g)*s),i.b=Math.round(t.b+(e.b-t.b)*s),i.a=t.a+(e.a-t.a)*s,i._sanitize()}static fromRgb(t,e){const s=(0,i.lT)(t);return s?l.fromArray(s,e):null}static fromHex(t,e=new l){const s=(0,i.oW)(t);return s?l.fromArray(s,e):null}static fromArray(t,e=new l){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const s=(0,i.Eq)(t);return s?l.fromArray(s,e):null}static fromJSON(t){return null!=t?new l([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)l.fromString(t,this);else if((0,r.yc)(t))l.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof l||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,s=t?.digits??6,i=3===s||4===s,r=4===s||8===s,n=`#${h(this.r,i)}${h(this.g,i)}${h(this.b,i)}${r?h(Math.round(255*this.a),i):""}`;return e?n.toUpperCase():n}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=a(this.r),s=a(this.g),i=a(this.b);return 0===t||1!==this.a?[e,s,i,a(255*this.a)]:[e,s,i]}clone(){return new l(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,s,i){this.r=t,this.g=e,this.b=s,this.a=i}}l.prototype.declaredClass="esri.Color"},40876(t,e,s){s.d(e,{Eq:()=>d,G1:()=>y,TS:()=>n,V6:()=>r,Vm:()=>g,ay:()=>h,c1:()=>f,c4:()=>o,j5:()=>l,lT:()=>u,oW:()=>c,xV:()=>w});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(t){return!!i[t]||!!i[t.toLowerCase()]}function n(t){return i[t]??i[t.toLowerCase()]}function o(t){return[...n(t)]}function a(t,e,s){s<0&&++s,s>1&&--s;const i=6*s;return i<1?t+(e-t)*i:2*s<1?e:3*s<2?t+(e-t)*(2/3-s)*6:t}function h(t,e,s,i=1){const r=(t%360+360)%360/360,n=s<=.5?s*(e+1):s+e-s*e,o=2*s-n;return[Math.round(255*a(o,n,r+1/3)),Math.round(255*a(o,n,r)),Math.round(255*a(o,n,r-1/3)),i]}function l(t){const e=t.length>5,s=e?8:4,i=(1<<s)-1,r=e?1:17,n=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let h;return n&&(h=o&i,o>>=s,a[3]=r*h/255),h=o&i,o>>=s,a[2]=r*h,h=o&i,o>>=s,a[1]=r*h,h=o&i,o>>=s,a[0]=r*h,a}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),s=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),r=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,s+16*s,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function u(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),s=e[1];if("rgb"===s&&3===t.length||"rgba"===s&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),p(e)}return p(t.map(t=>parseFloat(t)))}if("hsl"===s&&3===t.length||"hsla"===s&&4===t.length)return h(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function p(t){return t[0]=f(t[0]),t[1]=f(t[1]),t[2]=f(t[2]),t[3]=4===t.length?y(t[3]):1,t}function d(t){let e=r(t)?n(t):null;return e??=u(t),e??=c(t),e}function g(t){const e=d(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function y(t){return m(t,0,1)}function f(t){return Math.round(m(t,0,255))}function m(t,e,s){return t=Number(t),isNaN(t)?s:t<e?e:t>s?s:t}const _=1/2.2;function w(t){return t**_}s.d(e,["iw",0,_])},563(t,e,s){s.d(e,{QueueProcessor:()=>l,SharedConcurrency:()=>u});var i=s(97768),r=s(17676),n=s(9775),o=s(32587),a=s(76030),h=s(44794);class l{constructor(t){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,h.v)(!1),this.process=t.process,this.concurrency=t.concurrency,this.sharedConcurrency=t.sharedConcurrency??p,this._queue=new n.A(t.peeker)}destroy(){this.clear(),this._schedule=(0,i.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(t){const e=this._controllers.get(t);e?.abort()}clear(){this._queue.clear();const t=Array.from(this._controllers.values());this._controllers.clear(),t.forEach(t=>t.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,s)=>t(s))}_get(t){const e=this._deferreds.get(t);return e?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){const s=this._get(t);if(s)return s;const i=new AbortController,n=Promise.withResolvers(),o=e?(0,r.u7)(e,()=>i.abort()):null,a=(0,r.NY)(i.signal,()=>{const e=this._processingItems.get(t);e&&e.controller.abort(),h(),n.reject((0,r.NK)())}),h=()=>{a.remove(),o?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()};return this._deferreds.set(t,n),this._controllers.set(t,i),n.promise.then(h,h),this._queue.push(t),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){const t=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.has(t)&&(this._processingItems.delete(t),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!!this._deferreds.get(t.item)&&this._processingItems.get(t.item)===t}_process(t){if(null==t)return;let e;const s=new AbortController,i=new c(t,s);this._processingItems.set(t,i),this.sharedConcurrency.current.value+=1;try{e=this.process(t,s.signal)}catch(t){this._processError(i,t)}(0,r.$X)(e)?(i.promise=e,e.then(t=>this._processResult(i,t),t=>this._processError(i,t))):this._processResult(i,e)}}class c{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class u{constructor(t){this.limit=t,this.current=(0,h.v)(0)}get full(){return this.current.value>=this.limit}}const p=new u(1/0)},32587(t,e,s){s.d(e,{A:()=>n});var i=s(62788),r=s(95488);class n{constructor(t){this._observable=new r.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(t)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(t){try{this._batchDepth++,t()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(t){const e=this._map.delete(t);return e&&this._notify(),e}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(t,e){(0,i.gc)(this._observable),this._map.forEach((s,i)=>t.call(e,s,i,this),e)}get(t){return(0,i.gc)(this._observable),this._map.get(t)}has(t){return(0,i.gc)(this._observable),this._map.has(t)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._notify(),this}transformValues(t,e=this._map.keys()){this.batch(()=>{for(const s of e){if(!this._map.has(s))continue;const e=this._map.get(s),i=t(e,s);i!==e&&this.set(s,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},95488(t,e,s){s.d(e,{I:()=>r});var i=s(11406);class r extends i.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},21287(t,e,s){s.d(e,{M5:()=>u,eV:()=>c});var i=s(11254),r=s(49186),n=s(17676),o=s(84952),a=s(26306);let h=null,l=!0;function c(t,e,s,i){if(!e||!s)throw new Error("Cannot construct image data without dimensions");if(l)try{return new ImageData(t,e,s)}catch(t){l=!1}const r=function(t,e,s){return s||(h||(h=document.createElement("canvas"),h.width=1,h.height=1),s=h),s.getContext("2d").createImageData(t,e)}(e,s,i);return r.data.set(t,0),r}async function u(t,e){const{arrayBuffer:h,mediaType:l}=await async function(t,e){const s=(0,o.r$)(t);if(s?.isBase64)return{arrayBuffer:(0,a.M)(s.data),mediaType:s.mediaType};const r=await(0,i.A)(t,{responseType:"array-buffer",...e});return{arrayBuffer:r.data,mediaType:r.getHeader?.("Content-Type")??""}}(t,e),c="image/png"===l;if("image/gif"===l){const{isAnimatedGIF:t,parseGif:i}=await s.e(820).then(s.bind(s,10820));if(t(h))return i(h,e)}if(c){const{isAnimatedPNG:t,parseApng:i}=await s.e(2390).then(s.bind(s,22390));if(t(h))return i(h,e)}return async function(t,e){const s=window.URL.createObjectURL(t);try{const{data:t}=await(0,i.A)(s,{...e,responseType:"image"});return t}catch(t){if(!(0,n.zf)(t))throw new r.A("invalid-image",`Could not fetch requested image at ${s}`);throw t}finally{window.URL.revokeObjectURL(s)}}(new Blob([h],{type:l}),e)}},51624(t,e,s){s.d(e,{A:()=>l});var i=s(44208),r=s(69397),n=s(93687);const o=4294967296,a=new TextDecoder("utf-8"),h=(0,i.A)("safari")||(0,i.A)("ios")?6:(0,i.A)("ff")?12:32;class l{constructor(t,e,s=0,i=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,s,i)}[Symbol.dispose](){this.release()}_init(t,e,s,i){this._data=t,this._dataView=e,this._pos=s,this._end=i}get usedMemory(){return 64+(0,r.Qf)(this._data)}asUnsafe(){return this}clone(){return new l(this._data,this._dataView,this._pos,this._end)}clonePooled(){return l.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,s=0,i=t?.byteLength??0){const r=l.pool.acquire();return r._init(t,e,s,i),r}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,s=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),s}getSFixed64(){const t=this._dataView,e=this._pos,s=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),s}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,s=this._toString(this._data,e,e+t);return this._skip(t),s}getBytes(){const t=this._getLength(),e=this._pos,s=this._toBytes(this._data,e,e+t);return this._skip(t),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,s,i){const r=this.getMessage(),n=t(r,e,s,i);return r.release(),n}processMessage(t){const e=this.getMessage(),s=t(e);return e.release(),s}getMessage(){const t=this._getLength(),e=l.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,s=0,i=0;if(this._end-e>=10)do{if(i=t[e++],s|=127&i,!(128&i))break;if(i=t[e++],s|=(127&i)<<7,!(128&i))break;if(i=t[e++],s|=(127&i)<<14,!(128&i))break;if(i=t[e++],s|=(127&i)<<21,!(128&i))break;if(i=t[e++],s+=268435456*(127&i),!(128&i))break;if(i=t[e++],s+=34359738368*(127&i),!(128&i))break;if(i=t[e++],s+=4398046511104*(127&i),!(128&i))break;if(i=t[e++],s+=562949953421312*(127&i),!(128&i))break;if(i=t[e++],s+=72057594037927940*(127&i),!(128&i))break;if(i=t[e++],s+=0x8000000000000000*(127&i),!(128&i))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;e!==this._end&&(i=t[e],128&i);)++e,s+=(127&i)*r,r*=128;if(e===this._end)throw new Error("Varint overrun!");++e,s+=i*r}return this._pos=e,s}_decodeSVarint(){const t=this._data;let e,s=0,i=0;const r=1&t[this._pos];if(i=t[this._pos++],s|=127&i,!(128&i))return r?-(s+1)/2:s/2;if(i=t[this._pos++],s|=(127&i)<<7,!(128&i))return r?-(s+1)/2:s/2;if(i=t[this._pos++],s|=(127&i)<<14,!(128&i))return r?-(s+1)/2:s/2;if(i=t[this._pos++],s|=(127&i)<<21,!(128&i))return r?-(s+1)/2:s/2;if(i=t[this._pos++],s+=268435456*(127&i),!(128&i))return r?-(s+1)/2:s/2;if(i=t[this._pos++],s+=34359738368*(127&i),!(128&i))return r?-(s+1)/2:s/2;if(i=t[this._pos++],s+=4398046511104*(127&i),!(128&i))return r?-(s+1)/2:s/2;if(e=BigInt(s),i=t[this._pos++],e+=0x2000000000000n*BigInt(127&i),!(128&i))return Number(r?-(e+1n)/2n:e/2n);if(i=t[this._pos++],e+=0x100000000000000n*BigInt(127&i),!(128&i))return Number(r?-(e+1n)/2n:e/2n);if(i=t[this._pos++],e+=0x8000000000000000n*BigInt(127&i),!(128&i))return Number(r?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,s){if((s=Math.min(this._end,s))-e>h){const i=t.subarray(e,s);return a.decode(i)}let i="",r="";for(let n=e;n<s;++n){const e=t[n];128&e?r+="%"+e.toString(16):(i+=decodeURIComponent(r)+String.fromCharCode(e),r="")}return r.length&&(i+=decodeURIComponent(r)),i}_toBytes(t,e,s){return s=Math.min(this._end,s),new Uint8Array(t.buffer,e,s-e)}static{this.pool=new n.A(()=>new l(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},90629(t,e,s){s.d(e,{Lz:()=>r,PN:()=>n,cr:()=>o,gs:()=>h,r_:()=>l,tc:()=>a}),s(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(t){return t?t/72*96:0}function n(t){return t?72*t/96:0}function o(t){if("string"==typeof t){const e=t.match(i);if(e){const s=Number(e[1]),i=e[3]&&e[3].toLowerCase(),r=t.startsWith("-"),o="px"===i?n(s):s;return r?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function a(t=0,e=0){return{x:t,y:e}}function h(t=0,e=0){return[t,e]}function l(t=0,e=0,s=0){return[t,e,s]}},44794(t,e,s){s.d(e,{v:()=>a});var i=s(4718),r=s(62788),n=s(95488);class o{constructor(t,e){this._observable=new n.I,this._value=t,this._equalityFunction=e}get value(){return(0,r.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function a(t,e=i.gh){return new o(t,e)}},83027(t,e,s){const i=s(29953).ho;s.d(e,["h",0,i])},48526(t,e,s){s.d(e,{A:()=>f});var i,r=s(5482),n=s(4576),o=s(4718),a=s(91429),h=s(5443),l=s(91075),c=s(86738),u=s(16930),p=s(90634),d=s(47610),g=s(56993),y=s(43937);let f=i=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:s,hasZ:i,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return r??=u.A.WGS84,{...t,hasM:s,hasZ:i,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:s,hasZ:r}=this;return new i({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:s,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,s=t.spatialReference;return null!=e==(null!=s)&&!(null!=e&&null!=s&&!e.equals(s))&&(0,n.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,g.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],s={x:e[0],y:e[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(s.z=e[2],i=3),this.hasM&&(s.m=e[i]),new c.A(s)}removePoint(t){if(!this._validateInputs(t))return null;const e=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,g.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0),(0,r.Cg)([(0,y.K)("points")],f.prototype,"writePoints",null),f=i=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],f),f.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,s){s.d(e,{A:()=>g});var i,r=s(5482),n=s(4718),o=s(91429),a=s(5443),h=s(91075),l=s(86738),c=s(16930),u=s(90634),p=s(56993),d=s(43937);let g=i=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:s,hasZ:i,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return r??=c.A.WGS84,{...t,hasM:s,hasZ:i,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,n.o8)(t)}get extent(){const t=(0,u.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,n.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,s=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let e=0,s=t.length;e<s;e++)i[e]=t[e].toArray();e[s]=i}else e[s]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,n.o8)(this.paths),t.curvePaths=(0,n.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const s=this.paths[t][e],i=this.hasZ,r=this.hasM;return i&&!r?new l.A(s[0],s[1],s[2],void 0,this.spatialReference):r&&!i?new l.A(s[0],s[1],void 0,s[2],this.spatialReference):i&&r?new l.A(s[0],s[1],s[2],s[3],this.spatialReference):new l.A(s[0],s[1],this.spatialReference)}insertPoint(t,e,s){return this._validateInputs(t,e,!0)?((0,p.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[t].splice(e,0,s),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],s=this.spatialReference,i=e.map(t=>new l.A(t,s));return this.notifyChange("paths"),i}removePoint(t,e){if(!this._validateInputs(t,e))return null;const s=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),s}setPoint(t,e,s){return this._validateInputs(t,e)?((0,p.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[t][e]=s,this.notifyChange("paths"),this):this}_validateInputs(t,e,s=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const i=this.paths[t];if(s&&(e<0||e>i.length))return!1;if(!s&&(e<0||e>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,r.Cg)([(0,d.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,r.Cg)([(0,d.K)("paths")],g.prototype,"writePaths",null),g=i=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},60408(t,e,s){function i(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function n(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?n(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":i(t)?"esriGeometryEnvelope":r(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function u(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}s.d(e,{$B:()=>l,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>r,W0:()=>u,ZC:()=>i,fT:()=>n,uW:()=>h})},65864(t,e,s){s.d(e,{rS:()=>c,xD:()=>p});var i=s(5443),r=s(91075),n=s(48526),o=s(86738),a=s(39829),h=s(82799),l=s(60408);function c(t){return null==t?null:t instanceof r.A?t:(0,l.fT)(t)?o.A.fromJSON(t):(0,l.Rg)(t)?h.A.fromJSON(t):(0,l.Bi)(t)?a.A.fromJSON(t):(0,l.U9)(t)?n.A.fromJSON(t):(0,l.ZC)(t)?i.A.fromJSON(t):null}const u={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:a.A};function p(t){return t&&u[t]||null}},97770(t,e,s){s.d(e,{Ey:()=>N,F8:()=>R,J2:()=>k,Yq:()=>P,_m:()=>L,iS:()=>I,wj:()=>z});var i=s(66552),r=s(73444),n=s(98623),o=s(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},p={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},g={hour:"numeric",minute:"numeric"},y={...g,second:"numeric"},f={hourCycle:"h23"},m={...g,...f},_={...y,...f},w={"short-date":c,"short-date-short-time":{...c,...g},"short-date-short-time-24":{...c,...m},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,..._},"short-date-le":c,"short-date-le-short-time":{...c,...g},"short-date-le-short-time-24":{...c,...m},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,..._},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...g},"long-month-day-year-short-time-24":{...u,...m},"long-month-day-year-long-time":{...u,...y},"long-month-day-year-long-time-24":{...u,..._},"day-short-month-year":p,"day-short-month-year-short-time":{...p,...g},"day-short-month-year-short-time-24":{...p,...m},"day-short-month-year-long-time":{...p,...y},"day-short-month-year-long-time-24":{...p,..._},"long-date":d,"long-date-short-time":{...d,...g},"long-date-short-time-24":{...d,...m},"long-date-long-time":{...d,...y},"long-date-long-time-24":{...d,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":g,"long-time":y},b=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},v=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),C=v.find(({type:t})=>"month"===t)?.value.toLowerCase();function A(){const t=(0,r.lR)();return(t&&S[t])??(0,r.QC)()}"mart"!==C&&(S.bs="sr-Latn-CS");let x=new WeakMap;const M=w["short-date-short-time"];function k(t){return w[t]}function L(t){const{dateStyle:e,timeStyle:s,hour12:i,year:r,month:n}=t,o={};return e?o.dateStyle=e:r&&(o.year=r,o.month=n||void 0),s&&!o.year&&(o.timeStyle=s,o.hour12="auto"===i?void 0:"always"===i),o}function P(t,e=M){return function(t){let e=x.get(t);if(!e){const s=A(),i=z(t.timeZone??"system"),r={...t,timeZone:i};e=new Intl.DateTimeFormat(s,r),x.set(t,e)}return e}(e).format(t)}function I(t,e=M){return P(new Date(t),{...e,...l,...h})}function R(t,e=M){return P(new Date(`1970-01-01T${t}Z`),{...e,...l,...a})}function N(t,e=M){const s=o.c9.fromISO(t,{setZone:!0});if(!s.isValid)return t;if(e.timeZone)return P(s.toJSDate(),e);const i=0===s.offset?"UTC":e.timeZone,r={...e,timeZone:i};return s.toLocaleString(r,{locale:A()})}function z(t){switch(t){case"system":return n.N;case n.L:return"UTC";default:return t}}(0,r.Ml)(()=>{x=new WeakMap}),s.d(e,["_v",0,b])},73444(t,e,s){s.d(e,{JK:()=>h,Ml:()=>f,QC:()=>u,lR:()=>c,oQ:()=>g});var i=s(36563);let r;s(44208);const n=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return n??t??e??"en"}function h(){return void 0===r&&(r=a()),r}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=h()){return p(t)?.language}function u(t=h()){const e=p(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function p(t=h()){return l.exec(t)?.groups}const d=[];function g(t){return d.push(t),(0,i.hA)(()=>{d.splice(d.indexOf(t),1)})}new Map;const y=[];function f(t){return y.push(t),(0,i.hA)(()=>y.splice(y.indexOf(t),1))}function m(){const t=a();r!==t&&([...y].forEach(e=>e(t)),r=t,[...d].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",m),o&&new MutationObserver(()=>{m()}).observe(o,{attributeFilter:["lang"]})},65851(t,e,s){s.d(e,{A:()=>a});var i=s(5482),r=s(91429),n=s(31593),o=s(20378);let a=class extends o.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,i.Cg)([(0,r.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":n.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,i.Cg)([(0,r.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,r.$K)("esri.symbols.FillSymbol")],a)},11831(t,e,s){s.d(e,{A:()=>l});var i,r=s(5482),n=s(25482),o=s(90629),a=s(91429),h=s(5760);let l=i=class extends n.o{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return(0,o.cr)(t)}clone(){return new i({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,r.Cg)([(0,a.MZ)({type:h.h9,json:{default:"none",write:!0}})],l.prototype,"decoration",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],l.prototype,"family",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(t,e,s)=>({enabled:!s||!s.textSymbol3D})}}})],l.prototype,"size",null),(0,r.Cg)([(0,a.wg)("size")],l.prototype,"castSize",null),(0,r.Cg)([(0,a.MZ)({type:h._R,json:{default:"normal",write:!0}})],l.prototype,"style",void 0),(0,r.Cg)([(0,a.MZ)({type:h.NM,json:{default:"normal",write:!0}})],l.prototype,"weight",void 0),l=i=(0,r.Cg)([(0,a.$K)("esri.symbols.Font")],l)},89420(t,e,s){s.d(e,{A:()=>h});var i=s(5482),r=s(90629),n=s(91429),o=s(56507),a=s(20378);let h=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get size(){return this._get("size")??9}set size(t){this._set("size",t)}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],h.prototype,"angle",void 0),(0,i.Cg)([(0,n.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,cast:r.cr,json:{write:!0}})],h.prototype,"xoffset",null),(0,i.Cg)([(0,n.MZ)({type:Number,cast:r.cr,json:{write:!0}})],h.prototype,"yoffset",null),(0,i.Cg)([(0,n.MZ)({cast:t=>"auto"===t?t:(0,o.GB)((0,r.cr)(t)),json:{write:!0}})],h.prototype,"size",null),h=(0,i.Cg)([(0,n.$K)("esri.symbols.MarkerSymbol")],h)},94985(t,e,s){s.d(e,{A:()=>d});var i,r=s(5482),n=s(68197),o=s(66552),a=s(4718),h=s(91429),l=s(65851),c=s(31593),u=s(93223);const p=new o.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let d=i=class extends l.A{constructor(...t){super(...t),this.color=new n.A([0,0,0,.25]),this.outline=new c.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,s){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),e&&(i.outline=e),s&&(i.color=s),i}clone(){return new i({color:(0,a.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,r.Cg)([(0,h.MZ)({type:n.A})],d.prototype,"color",void 0),(0,r.Cg)([(0,h.MZ)()],d.prototype,"outline",void 0),(0,r.Cg)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],d.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)({type:p.apiValues,json:{read:p.read,write:p.write}})],d.prototype,"style",void 0),d=i=(0,r.Cg)([(0,h.$K)("esri.symbols.SimpleFillSymbol")],d)},31593(t,e,s){s.d(e,{A:()=>S});var i=s(5482),r=s(66552),n=s(4718),o=s(90629),a=s(91429),h=s(20378),l=s(93223);let c=class extends h.A{constructor(t){super(t),this.type="simple-line"}get width(){return this._get("width")??.75}set width(t){this._set("width",t)}hash(){return`${this.type}.${this.width}`}};(0,i.Cg)([(0,l.e)({esriSLS:"simple-line"},{readOnly:!0})],c.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:o.cr,json:{write:!0}})],c.prototype,"width",null),c=(0,i.Cg)([(0,a.$K)("esri.symbols.LineSymbol")],c);var u,p=s(68197),d=s(25482),g=s(83213),y=s(43937),f=s(36005);let m=u=class extends d.o{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,s,i){e[s]="web-map"===i?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,s,i){"web-map"===i?.origin||(e[s]=t)}clone(){return new u({color:(0,n.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,i.Cg)([(0,a.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],m.prototype,"placement",void 0),(0,i.Cg)([(0,l.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,a.MZ)({json:{origins:{"web-map":{write:!1}}}})],m.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:g.z})],m.prototype,"style",void 0),(0,i.Cg)([(0,y.K)("style")],m.prototype,"writeStyle",null),(0,i.Cg)([(0,a.MZ)({type:p.A,value:null,json:{write:{allowNull:!0}}})],m.prototype,"color",null),(0,i.Cg)([(0,f.w)("color")],m.prototype,"readColor",null),(0,i.Cg)([(0,y.K)("color")],m.prototype,"writeColor",null),m=u=(0,i.Cg)([(0,a.$K)("esri.symbols.LineSymbolMarker")],m);const _=m;var w;const b=new r.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let S=w=class extends c{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,s,i,r,n){if(t&&"string"!=typeof t)return t;const a={};return null!=t&&(a.style=t),null!=e&&(a.color=e),null!=s&&(a.width=(0,o.cr)(s)),null!=i&&(a.cap=i),null!=r&&(a.join=r),null!=n&&(a.miterLimit=(0,o.cr)(n)),a}clone(){return new w({color:(0,n.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,i.Cg)([(0,l.e)({esriSLS:"simple-line"},{readOnly:!0})],S.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:b.apiValues,json:{read:b.read,write:b.write}})],S.prototype,"style",void 0),(0,i.Cg)([(0,a.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,s)=>({enabled:"round"!==t&&null==s?.origin})}}})],S.prototype,"cap",void 0),(0,i.Cg)([(0,a.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,s)=>({enabled:"round"!==t&&null==s?.origin})}}})],S.prototype,"join",void 0),(0,i.Cg)([(0,a.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":_}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],S.prototype,"marker",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:!1,write:!1}})],S.prototype,"miterLimit",void 0),S=w=(0,i.Cg)([(0,a.$K)("esri.symbols.SimpleLineSymbol")],S)},53930(t,e,s){s.d(e,{A:()=>y});var i,r=s(5482),n=s(68197),o=s(66552),a=s(4718),h=s(90629),l=s(91429),c=s(89420),u=s(31593),p=s(43937),d=s(93223);const g=new o.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let y=i=class extends c.A{constructor(...t){super(...t),this.color=new n.A([255,255,255,.25]),this.type="simple-marker",this.style="circle",this.outline=new u.A}normalizeCtorArgs(t,e,s,i){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.style=t),null!=e&&(r.size=(0,h.cr)(e)),s&&(r.outline=s),i&&(r.color=i),r}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}get size(){return this._get("size")??12}set size(t){this._set("size",t)}set path(t){this.style="path",this._set("path",t)}clone(){return new i({angle:this.angle,color:(0,a.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,r.Cg)([(0,l.MZ)({type:n.A})],y.prototype,"color",void 0),(0,r.Cg)([(0,p.K)("color")],y.prototype,"writeColor",null),(0,r.Cg)([(0,d.e)({esriSMS:"simple-marker"},{readOnly:!0})],y.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)()],y.prototype,"size",null),(0,r.Cg)([(0,l.MZ)({type:g.apiValues,json:{read:g.read,write:g.write}})],y.prototype,"style",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"path",null),(0,r.Cg)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":u.A}},json:{default:null,write:!0}})],y.prototype,"outline",void 0),y=i=(0,r.Cg)([(0,l.$K)("esri.symbols.SimpleMarkerSymbol")],y)},20378(t,e,s){s.d(e,{A:()=>u});var i=s(5482),r=s(68197),n=s(66552),o=s(25482),a=s(91429),h=s(36005);const l=new n.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,u=class extends o.o{constructor(t){super(t),this.id="sym"+c++,this.type=null,this.color=new r.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i.Cg)([(0,a.MZ)({type:l.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:l.write,isRequired:!0}}})],u.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:r.A,json:{write:{allowNull:!0}}})],u.prototype,"color",void 0),(0,i.Cg)([(0,h.w)("color")],u.prototype,"readColor",null),u=(0,i.Cg)([(0,a.$K)("esri.symbols.Symbol")],u)},68249(t,e,s){s.d(e,{A:()=>g});var i,r=s(5482),n=s(68197),o=s(4718),a=s(90629),h=s(91429),l=s(11831),c=s(20378),u=s(5760),p=s(93223),d=s(43937);let g=i=class extends c.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new l.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(t,e,s){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.text=t),e&&(i.font=e),s&&(i.color=s),i}get haloSize(){return this._get("haloSize")??null}set haloSize(t){this._set("haloSize",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(t){this._set("lineWidth",t)}writeLineWidth(t,e,s,i){i&&"string"!=typeof i?i.origin:e[s]=t}castLineWidth(t){return(0,a.cr)(t)}writeLineHeight(t,e,s,i){i&&"string"!=typeof i?i.origin:e[s]=t}clone(){return new i({angle:this.angle,backgroundColor:(0,o.o8)(this.backgroundColor),borderLineColor:(0,o.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,o.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,o.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,r.Cg)([(0,h.MZ)({type:n.A,json:{write:!0}})],g.prototype,"backgroundColor",void 0),(0,r.Cg)([(0,h.MZ)({type:n.A,json:{write:!0}})],g.prototype,"borderLineColor",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{write:!0},cast:a.cr})],g.prototype,"borderLineSize",void 0),(0,r.Cg)([(0,h.MZ)({type:l.A,json:{write:!0}})],g.prototype,"font",void 0),(0,r.Cg)([(0,h.MZ)({...u.rM,json:{write:!0}})],g.prototype,"horizontalAlignment",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"kerning",void 0),(0,r.Cg)([(0,h.MZ)({type:n.A,json:{write:!0}})],g.prototype,"haloColor",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,cast:a.cr,json:{write:!0}})],g.prototype,"haloSize",null),(0,r.Cg)([(0,h.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rightToLeft",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rotated",void 0),(0,r.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],g.prototype,"text",void 0),(0,r.Cg)([(0,p.e)({esriTS:"text"},{readOnly:!0})],g.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)({...u.x0,json:{write:!0}})],g.prototype,"verticalAlignment",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,cast:a.cr,json:{write:!0}})],g.prototype,"xoffset",null),(0,r.Cg)([(0,h.MZ)({type:Number,cast:a.cr,json:{write:!0}})],g.prototype,"yoffset",null),(0,r.Cg)([(0,h.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],g.prototype,"angle",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],g.prototype,"width",void 0),(0,r.Cg)([(0,h.MZ)({type:Number})],g.prototype,"lineWidth",null),(0,r.Cg)([(0,d.K)("lineWidth")],g.prototype,"writeLineWidth",null),(0,r.Cg)([(0,h.wg)("lineWidth")],g.prototype,"castLineWidth",null),(0,r.Cg)([(0,h.MZ)(u.Tb)],g.prototype,"lineHeight",void 0),(0,r.Cg)([(0,d.K)("lineHeight")],g.prototype,"writeLineHeight",null),g=i=(0,r.Cg)([(0,h.$K)("esri.symbols.TextSymbol")],g)},59868(t,e,s){var i=s(94985),r=s(31593),n=s(53930),o=s(68249),a=s(93470);const h=n.A.fromJSON(a.Cb),l=r.A.fromJSON(a.yM),c=i.A.fromJSON(a.WR),u=o.A.fromJSON(a.JZ);n.A.fromJSON(a.nC),r.A.fromJSON(a.HW),i.A.fromJSON(a.b6),s.d(e,["A7",0,l,"Cx",0,c,"Hk",0,u,"UK",0,h])},93470(t,e,s){const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};s.d(e,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])},83213(t,e,s){s.d(e,["x",0,["begin","end","begin-end"],"z",0,["arrow","circle","square","diamond","cross","x"]])},5760(t,e,s){var i=s(34727),r=s(56507);const n={type:Number,cast:t=>{const e=(0,r.GB)(t);return 0===e?1:(0,i.qE)(e,.1,4)},nonNullable:!0};s.d(e,["NM",0,["normal","lighter","bold","bolder"],"Tb",0,n,"_R",0,["normal","italic","oblique"],"h9",0,["none","underline","line-through"],"rM",0,{type:["left","right","center"],nonNullable:!0},"x0",0,{type:["baseline","top","middle","bottom"],nonNullable:!0}])},98623(t,e,s){const i=Intl.DateTimeFormat().resolvedOptions().timeZone;s.d(e,["L",0,"unknown","N",0,i])},93602(t,e,s){s.r(e),s.d(e,{default:()=>k});var i=s(11254),r=s(6371),n=s(57582),o=s(44208),a=s(53966),h=s(17676),l=s(2741);let c=null;var u=s(69754),p=(s(83027),s(18989));s(25530),s(67171);const d={width:5,height:2,left:0,top:0};new p.A(0,0,11,8),new p.A(11,0,11,8);const g=1e20;class y{constructor(t){this.pxDensity=4,this.sdfSizePx=t.sdfSizePx,this.sdfBufferPx=t.sdfBufferPx,this.rasterSizePx=this.pxDensity*this.sdfSizePx,this.rasterBufferPx=this.pxDensity*this.sdfBufferPx,this.radius=t.radius,this.cutoff=t.cutoff;const e=this.pxDensity*t.sdfSizePx*3;this.canvasSize=e;const s=new OffscreenCanvas(e,e);this.context=s.getContext("2d",{willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.gridOuter=new Float64Array(e*e),this.gridInner=new Float64Array(e*e),this.gridValues=new Float64Array(e),this.parabolaBoundaries=new Float64Array(e+1),this.parabolaIndices=new Uint16Array(e)}draw(t,e){const{context:s,gridInner:i,gridOuter:r,rasterSizePx:n,rasterBufferPx:o,canvasSize:a,radius:h,cutoff:l}=this,c=n/t.units_per_em();this.context.fillStyle="black",this.context.strokeStyle="black",this.context.resetTransform(),this.context.clearRect(0,0,a,a),this.context.translate(n,n),this.context.scale(c,c);const u=t.paintCurves(e,s);if(!u)return null;const p=u.xMin*c,d=u.xMax*c,y=u.yMin*c,f=u.yMax*c;u.free();const m=Math.ceil(d-p),_=Math.ceil(f-y),w=Math.floor(n+p-o),b=Math.floor(n+y-o),S=m+2*o,v=_+2*o,C=new Float32Array(Math.max(S*v,0)),A=s.getImageData(w,b,S,v);r.fill(g,0,C.length),i.fill(0,0,C.length);for(let t=0;t<v;t++)for(let e=0;e<S;e++){const s=v-1-t,n=A.data[4*(s*S+e)+3]/255;if(0===n)continue;const o=t*S+e;if(1===n)r[o]=0,i[o]=g;else{const t=.5-n;r[o]=t>0?t*t:0,i[o]=t<0?t*t:0}}this._edt(r,0,0,S,v,S),this._edt(i,0,0,S,v,S);for(let t=0;t<C.length;t++)C[t]=Math.sqrt(r[t])-Math.sqrt(i[t]);const x=Math.ceil(S/this.pxDensity),M=Math.ceil(v/this.pxDensity),k=this.pxDensity*this.pxDensity,L=new Uint8ClampedArray(Math.max(x*M,0));for(let t=0;t<M;t++)for(let e=0;e<x;e++){let s=0;for(let i=0;i<this.pxDensity;i++)for(let r=0;r<this.pxDensity;r++)e+r>S||t+i>v||(s+=C[(this.pxDensity*t+i)*S+(this.pxDensity*e+r)]);const i=s/this.pxDensity/k/h+l;L[t*x+e]=Math.round(255-255*i)}const P=c*t.face_height(),I=Math.round(f-P+2*o),R=Math.round(p-o);return{buffer:L,rect:{width:Math.ceil(m/this.pxDensity),height:Math.ceil(_/this.pxDensity),top:Math.round(I/this.pxDensity),left:Math.round(R/this.pxDensity)}}}_edt(t,e,s,i,r,n){for(let o=e;o<e+i;o++)this._edt1d(t,s*n+o,n,r);for(let o=s;o<s+r;o++)this._edt1d(t,o*n+e,1,i)}_edt1d(t,e,s,i){const r=this.parabolaIndices,n=this.parabolaBoundaries,o=this.gridValues;r[0]=0,n[0]=-g,n[1]=g,o[0]=t[e];let a=0;for(let h=1;h<i;h++){o[h]=t[e+h*s];const i=h*h;let l;do{const t=r[a];l=(o[h]-o[t]+i-t*t)/(h-t)/2}while(l<=n[a]&&--a>-1);a++,r[a]=h,n[a]=l,n[a+1]=g}for(let a=0,h=0;a<i;a++){for(;n[h+1]<a;)h++;const i=r[h],l=a-i;t[e+a*s]=o[i]+l*l}}}var f=s(92602),m=s(51624);class _{constructor(t){this._rects=[],this._shapings=[],this._bitmaps=[];const e=new Map;let s=0;for(;t.next();)switch(t.tag()){case 1:{const i=t.getMessage();for(;i.next();)switch(i.tag()){case 3:{const t=i.getMessage();let r,n,o,a,h,l,c;for(;t.next();)switch(t.tag()){case 1:r=t.getUInt32();break;case 2:n=t.getBytes();break;case 3:o=t.getUInt32();break;case 4:a=t.getUInt32();break;case 5:h=t.getSInt32();break;case 6:l=t.getSInt32();break;case 7:c=t.getUInt32();break;default:t.skip()}if(t.release(),r){const t={width:o,height:a,left:h,top:l};this._rects[r]=t;const i={xOffset:0,yOffset:0,xAdvance:c,yAdvance:0};if(this._shapings[r]=i,n){const t=n.length;e.set(r,n),this._bitmaps[r]={start:s,length:t},s+=t}}break}default:i.skip()}i.release();break}default:t.skip()}this._buffer=new Uint8Array(s);for(const[t,s]of e)this._buffer.set(s,this._bitmaps[t].start)}getRect(t){return this._rects.at(t)}getShaping(t){return this._shapings.at(t)}getBitmap(t){const e=this._bitmaps.at(t);if(void 0!==e&&0!==e.length)return this._buffer.subarray(e.start,e.start+e.length)}}class w{constructor(){this._ranges=[]}getRange(t){return this._ranges.at(t)}addRange(t,e){this._ranges[t]=e}}class b{constructor(t){this._glyphInfo=new Map,this._baseURL=t,this._woff2URL=`${f.A.fontsUrl}/woff2/{fontstack}.woff2`}async fetchRange(t,e,s){const r=this._getFontStack(t);if(r.getRange(e))return;const n=256*e,o=n+255,a=this._baseURL.replace("{fontstack}",t).replace("{range}",n+"-"+o);return(0,i.A)(a,{responseType:"array-buffer",signal:s?.signal}).then(t=>{r.addRange(e,new _(new m.A(new Uint8Array(t.data),new DataView(t.data))))})}async preloadASCIIRange(t){const e=this._getFontStack(t),s=this._baseURL.replace("{fontstack}",t).replace("{range}","0-255"),r=await(0,i.A)(s,{responseType:"array-buffer"}),n=new _(new m.A(new Uint8Array(r.data),new DataView(r.data)));for(let t=0;t<=255;t++)e.getRange(t)||e.addRange(t,n)}getRange(t,e){const s=this._glyphInfo.get(t);return s?.getRange(Math.floor(e/256))}woffURL(t){return this._woff2URL.replace("{fontstack}",t)}_getFontStack(t){return this._glyphInfo.get(t)||this._glyphInfo.set(t,new w),this._glyphInfo.get(t)}}class S{constructor(t,e){this._width=0,this._height=0,this._free=[],this._width=t,this._height=e,this._free.push(new p.A(0,0,t,e))}get width(){return this._width}get height(){return this._height}allocate(t,e){if(t>this._width||e>this._height)return new p.A;let s=null,i=-1;for(let r=0;r<this._free.length;++r){const n=this._free[r];t<=n.width&&e<=n.height&&(null===s||n.y<=s.y&&n.x<=s.x)&&(s=n,i=r)}return null===s?new p.A:(this._free.splice(i,1),s.width<s.height?(s.width>t&&this._free.push(new p.A(s.x+t,s.y,s.width-t,e)),s.height>e&&this._free.push(new p.A(s.x,s.y+e,s.width,s.height-e))):(s.width>t&&this._free.push(new p.A(s.x+t,s.y,s.width-t,s.height)),s.height>e&&this._free.push(new p.A(s.x,s.y+e,t,s.height-e))),new p.A(s.x,s.y,t,e))}release(t){for(let e=0;e<this._free.length;++e){const s=this._free[e];if(s.y===t.y&&s.height===t.height&&s.x+s.width===t.x)s.width+=t.width;else if(s.x===t.x&&s.width===t.width&&s.y+s.height===t.y)s.height+=t.height;else if(t.y===s.y&&t.height===s.height&&t.x+t.width===s.x)s.x=t.x,s.width+=t.width;else{if(t.x!==s.x||t.width!==s.width||t.y+t.height!==s.y)continue;s.y=t.y,s.height+=t.height}this._free.splice(e,1),this.release(t)}this._free.push(t)}}s(49186),s(563),s(90629),s(799),s(21287),s(5427),s(44589),s(40804),s(93397),Math.PI,Math.LN2;var v=s(27071);function C(t,e,s,i){return 1|t<<1|(s?1:0)<<2|("Nearest"===i?1:0)<<3|e<<4}s(46858),s(63907),s(42553);const A="arial-unicode-ms-regular",x=/[\u0695\u0698\u06a9\u06af\u06b5\u06be\u06c6\u06cc\u06ce\u06d5\u06ca]|\p{Script=Thai}|\p{Script=Lao}|\p{Script=Tamil}|\p{Script=Khmer}/u,M=new Set(["Noto Sans Khmer","Noto Sans Lao","Noto Sans Myanmar","Noto Sans Thai"]);class k{constructor(){this._glyphSources=new Map,this._snapCoords=!0,this._currentPage=0,this._faces=new Map,this._facePromises=new Map,this._pbfRangePromises=new Map,this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._invalidFonts=new Set,this._preloadCache={},this._glyphSDFCreator=new y({sdfSizePx:24,sdfBufferPx:3,radius:8,cutoff:.25})}set remoteClient(t){this._client=t.createInvokeProxy();const e=this._client.getOptions();this._inited=this._init(e)}async rasterizeText(t,e,s){await this._inited;const i=e.symbol?(0,u.Z)(e):null;return i?{type:"rich-glyphs",runs:(await Promise.all(i.map(async e=>({fontSize:e.fontSize,characterSpacing:e.characterSpacing,color:e.color,glyphs:await this._rasterizeTextRun(t,e.font,e.text,s)})))).filter(t=>null!=t.glyphs)}:this._rasterizeTextRun(t,e.font,e.textString,s)}async _rasterizeTextRun(t,e,s,i){const r=(0,n.rK)(e),h=this._invalidFonts.has(r),l=!!(0,o.A)("esri-2d-force-complex-shaping"),c=!!(0,o.A)("esri-2d-complex-shaping")&&x.test(s),u=M.has(e.family),p=l||c||u,d=h?A:r;let g=await this.getGlyphItems(s,p,t,d,!1,i);return g||(((t,e="")=>{a.A.getLogger("esri.views.MapView").warnOnce(t,e)})(`Font ${r} is not available on the web, using "Arial Unicode MS Regular"`),this._invalidFonts.add(r),g=await this.getGlyphItems(s,p,t,A,!1,i)),g}async getGlyphItems(t,e,s,i,n,a){await this._inited;const h=this._getSource(s);let l,c,u;if((0,o.A)("esri-2d-stabilize-glyphs")&&await this.preloadASCIIGlyphCache(h,i).catch(()=>{}),e){const e=await this._getFace(h,i);if(!e)return null;let s=this._glyphCache.get(i);s||(s=new Map,this._glyphCache.set(i,s));const{shaping:r,isRTL:n}=this._shape(e,t);u=n,l=r.map(t=>this._getShapedGlyph(e,s,t)),c={baseline:e.baseline()/24,midline:e.midline()/24}}else{let e=this._pbfGlyphCache.get(i);e||(e=new Map,this._pbfGlyphCache.set(i,e));const[s,o,c]=(0,r.y)(t),p=(0,v.bX)(s);try{await this._fetchRanges(h,i,p,a)}catch{return null}u=o,l=p.map(t=>this._getPBFGlyph(e,h,i,t,n)).filter(t=>!!t)}const p=l.filter(t=>t.needsRecord);return p.length>0&&await this._client.recordGlyphs(p),{type:"glyphs",glyphs:l,faceInfo:c,isRightToLeft:u,sdfSize:24,sdfRadius:8,sdfPadding:3}}async _init(t){const{width:e,height:s,snapCoords:i}=await t;this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._binPack=new S(e,s),this._snapCoords=i,this._currentPage=0,this._initDecorationGlyphs()}_getShapedGlyph(t,e,s){let i,r,n=e.get(s.glyphId);if(!n){i=this._glyphSDFCreator.draw(t,s.glyphId);const o=this._glyphSDFCreator.sdfBufferPx;n={mosaicItem:{rect:this._recordGlyph(i?.rect,o),page:this._currentPage,sdf:!0,textureBinding:C(1,this._currentPage,!0)},glyphRect:i?.rect??{width:0,height:0,top:0,left:0}},e.set(s.glyphId,n),r=!0}return{mosaicItem:n.mosaicItem,rect:n.glyphRect,shaping:{xAdvance:s.xAdvance,yAdvance:s.yAdvance,xOffset:s.xOffset,yOffset:s.yOffset},code:s.isNewline?10:s.isWhitespace?32:NaN,sdf:i,needsRecord:r}}_getPBFGlyph(t,e,s,i,r=!1){let n,o,a=t.get(i);if(!a){const h=e.getRange(s,i),l=h?.getRect(i),c=h?.getShaping(i),u=h?.getBitmap(i);if(r&&(!l||!c))return;if(!l||!c)return P(i);n=u&&{buffer:u,rect:l},a={mosaicItem:{rect:u?this._recordGlyph(l,3):new p.A(0,0,0,0),sdf:!0,page:this._currentPage,textureBinding:C(1,this._currentPage,!0)},rect:l,shaping:c,code:i},o=!0,t.set(i,a)}const{mosaicItem:h,rect:l,shaping:c}=a;return{mosaicItem:h,rect:l,shaping:c,code:i,sdf:n,needsRecord:o}}_shape(t,e){const s=this._glyphSDFCreator.sdfSizePx,[i,n,o]=(0,r.y)(e,!1),a=new Uint32Array(Array.from(i).map((t,e)=>o.levels[o.targetToSource[e]]));return{shaping:t.shape(i,a,s),isRTL:n}}async _getFace(t,e,r){if(this._faces.has(e))return this._faces.get(e);const n=t.woffURL(e);return await L(this._facePromises,e,async()=>{const t=await(0,i.A)(n,{responseType:"array-buffer",...r}),o=(await async function(){return c||(c=async function(){const t=await s.e(1687).then(s.bind(s,31687));return await t.default({module_or_path:(0,l.s)("esri/libs/text/pkg/bundle_bg.wasm")}),t}()),c}()).Face.parseWoff2(new Uint8Array(t.data));this._faces.set(e,o)}),this._faces.get(e)}_getSource(t){return this._glyphSources.has(t)||this._glyphSources.set(t,new b(t)),this._glyphSources.get(t)}async _fetchRanges(t,e,s,i){const r=function(t){const e=new Set;for(const s of t)e.add(Math.floor(s/256));return e}(s),n=[];r.forEach(s=>{n.push(this._fetchRange(t,e,s,i))}),await Promise.all(n)}async _fetchRange(t,e,s,i){if(s>256)return;const r=e+s;return L(this._pbfRangePromises,r,()=>t.fetchRange(e,s,i))}_allocNewPage(){this._currentPage++,this._binPack=new S(this._binPack.width,this._binPack.height),this._initDecorationGlyphs()}_recordGlyph(t,e){const s=this._binPack;if(!t||0===t.width)return new p.A;const i=t.width+2*e,r=t.height+2*e;let n=i,o=r;this._snapCoords&&(n+=i%4?4-i%4:4,o+=r%4?4-r%4:4);const a=s.allocate(n,o);return a.isEmpty?(this._allocNewPage(),s.allocate(n,o)):a}_initDecorationGlyphs(){this._recordGlyph(d,3),this._recordGlyph(d,3)}preloadASCIIGlyphCache(t,e){const s=this._preloadCache[e];if(null!=s)return s;const i=t.preloadASCIIRange(e).then(async()=>{let s=this._pbfGlyphCache.get(e);s||(s=new Map,this._pbfGlyphCache.set(e,s));for(let i=0;i<256;i++)this._getPBFGlyph(s,t,e,i);const i=Array.from(this._pbfGlyphCache.get(e).values());await this._client.recordGlyphs(i)},t=>{throw delete this._preloadCache[e],t});return this._preloadCache[e]=i,i}}function L(t,e,s){return t.has(e)||t.set(e,s().finally(()=>{t.delete(e)}).catch(t=>{(0,h.jH)(t)})),t.get(e)}const P=t=>({mosaicItem:{rect:new p.A(0,0,0,0),sdf:!0,page:0},rect:{left:0,width:0,height:0,top:0},shaping:{xAdvance:0,yAdvance:0,xOffset:0,yOffset:0},code:t})},27071(t,e,s){s.d(e,{bX:()=>a,Qz:()=>o});var i=s(49186),r=s(53966),n=s(63907);function o(t){switch(t){case n.ld.UNSIGNED_BYTE:return Uint8Array;case n.ld.UNSIGNED_SHORT_4_4_4_4:return Uint16Array;case n.ld.FLOAT:return Float32Array;default:return void r.A.getLogger("esri.views.2d.engine.webgl.Utils").error(new i.A("webgl-utils",`Unable to handle type ${t}`))}}function a(t){const e=[];for(let s=0;s<t.length;s++)e.push(t.charCodeAt(s));return e}new Map},46858(t,e,s){s.d(e,{A:()=>n,J:()=>r});var i=s(799);function r(t,e){let s;if("string"==typeof t)s=(0,i.Wm)(t+`-seed(${e})`);else{let i=12;s=t^e;do{s=107*(s>>8^s)+i|0}while(0!==--i)}return(1+s/(1<<31))/2}function n(t){return Math.floor(r(t,o)*a)}const o=53290320,a=10}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9829],{29242(t,n,r){function e(){return[1,0,0,0,1,0,0,0,1]}function i(t,n,r,e,i,s,a,o,u){return[t,n,r,e,i,s,a,o,u]}r.d(n,{fA:()=>i,vt:()=>e});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:i},Symbol.toStringTag,{value:"Module"})),r.d(n,["zK",0,s])},34304(t,n,r){r.d(n,{DF:()=>u,FD:()=>i,ct:()=>c});let e=1e-6;function i(){return e}const s=Math.random,a=Math.PI/180,o=180/Math.PI;function u(t){return t*a}function c(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:i,setEpsilon:function(t){e=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"})),r.d(n,["Ov",0,s])},77690(t,n,r){r.d(n,{B8:()=>o,Ge:()=>m,I0:()=>f,KC:()=>u,a4:()=>c,hZ:()=>s,hs:()=>l,lw:()=>h,mg:()=>a,z0:()=>i});var e=r(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function s(t,n,r,e,i,s,a,o,u,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=i,t[4]=s,t[5]=a,t[6]=o,t[7]=u,t[8]=c,t}function a(t,n){if(t===n){const r=n[1],e=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function o(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=h*a-o*c,f=-h*s+o*u,m=c*s-a*u;let M=r*l+e*f+i*m;return M?(M=1/M,t[0]=l*M,t[1]=(-h*e+i*c)*M,t[2]=(o*e-i*a)*M,t[3]=f*M,t[4]=(h*r-i*u)*M,t[5]=(-o*r+i*s)*M,t[6]=m*M,t[7]=(-c*r+e*u)*M,t[8]=(a*r-e*s)*M,t):null}function u(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8];return t[0]=a*h-o*c,t[1]=i*c-e*h,t[2]=e*o-i*a,t[3]=o*u-s*h,t[4]=r*h-i*u,t[5]=i*s-r*o,t[6]=s*c-a*u,t[7]=e*u-r*c,t[8]=r*a-e*s,t}function c(t){const n=t[0],r=t[1],e=t[2],i=t[3],s=t[4],a=t[5],o=t[6],u=t[7],c=t[8];return n*(c*s-a*u)+r*(-c*i+a*o)+e*(u*i-s*o)}function h(t,n,r){const e=n[0],i=n[1],s=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=r[0],m=r[1],M=r[2],g=r[3],x=r[4],d=r[5],p=r[6],y=r[7],b=r[8];return t[0]=f*e+m*a+M*c,t[1]=f*i+m*o+M*h,t[2]=f*s+m*u+M*l,t[3]=g*e+x*a+d*c,t[4]=g*i+x*o+d*h,t[5]=g*s+x*u+d*l,t[6]=p*e+y*a+b*c,t[7]=p*i+y*o+b*h,t[8]=p*s+y*u+b*l,t}function l(t,n,r){const e=r[0],i=r[1],s=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=s*n[6],t[7]=s*n[7],t[8]=s*n[8],t}function f(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],a=r+r,o=e+e,u=i+i,c=r*a,h=e*a,l=e*o,f=i*a,m=i*o,M=i*u,g=s*a,x=s*o,d=s*u;return t[0]=1-l-M,t[3]=h-d,t[6]=f+x,t[1]=h+d,t[4]=1-c-M,t[7]=m-g,t[2]=f-x,t[5]=m+g,t[8]=1-c-l,t}function m(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],m=n[11],M=n[12],g=n[13],x=n[14],d=n[15],p=r*o-e*a,y=r*u-i*a,b=r*c-s*a,v=e*u-i*o,I=e*c-s*o,P=i*c-s*u,R=h*g-l*M,N=h*x-f*M,S=h*d-m*M,z=l*x-f*g,q=l*d-m*g,A=f*d-m*x;let _=p*A-y*q+b*z+v*S-I*N+P*R;return _?(_=1/_,t[0]=(o*A-u*q+c*z)*_,t[1]=(u*S-a*A-c*N)*_,t[2]=(a*q-o*S+c*R)*_,t[3]=(i*q-e*A-s*z)*_,t[4]=(r*A-i*S+s*N)*_,t[5]=(e*S-r*q-s*R)*_,t[6]=(g*P-x*I+d*v)*_,t[7]=(x*b-M*P-d*y)*_,t[8]=(M*I-g*b+d*p)*_,t):null}function M(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const g=h,x=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const r=t[0],i=t[1],s=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=n[0],m=n[1],M=n[2],g=n[3],x=n[4],d=n[5],p=n[6],y=n[7],b=n[8],v=(0,e.FD)();return Math.abs(r-f)<=v*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(s-M)<=v*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(a-g)<=v*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(o-x)<=v*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(u-d)<=v*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(c-p)<=v*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-y)<=v*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(l-b)<=v*Math.max(1,Math.abs(l),Math.abs(b))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:i,fromQuat:f,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],i=t[1],s=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8];return Math.abs(1-(r*r+a*a+c*c))<=n&&Math.abs(1-(i*i+o*o+h*h))<=n&&Math.abs(1-(s*s+u*u+l*l))<=n},mul:g,multiply:h,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:m,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],i=n[2],s=n[4],a=n[5],o=n[6],u=n[8],c=n[9],h=n[10],l=h*a-o*c,f=-h*s+o*u,m=c*s-a*u,M=r*l+e*f+i*m;if(!M)return null;const g=1/M;return t[0]=l*g,t[1]=(-h*e+i*c)*g,t[2]=(o*e-i*a)*g,t[3]=f*g,t[4]=(h*r-i*u)*g,t[5]=(-o*r+i*s)*g,t[6]=m*g,t[7]=(-c*r+e*u)*g,t[8]=(a*r-e*s)*g,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],i=n[1],s=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=Math.sin(r),m=Math.cos(r);return t[0]=m*e+f*a,t[1]=m*i+f*o,t[2]=m*s+f*u,t[3]=m*a-f*e,t[4]=m*o-f*i,t[5]=m*u-f*s,t[6]=c,t[7]=h,t[8]=l,t},scale:l,scaleByVec2:function(t,n,r){const e=r[0],i=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:x,subtract:M,translate:function(t,n,r){const e=n[0],i=n[1],s=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=r[0],m=r[1];return t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=u,t[6]=f*e+m*a+c,t[7]=f*i+m*o+h,t[8]=f*s+m*u+l,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},37585(t,n,r){r.d(n,{C:()=>s,Cc:()=>I,Io:()=>x,LI:()=>m,Ln:()=>g,Om:()=>v,Re:()=>u,S8:()=>b,T9:()=>l,WQ:()=>o,aI:()=>S,e$:()=>R,hG:()=>d,hZ:()=>a,hs:()=>M,l0:()=>P,qE:()=>f,t2:()=>N});var e=r(34727),i=r(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t}function a(t,n,r){return t[0]=n,t[1]=r,t}function o(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t}function u(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t}function c(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t}function l(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t}function f(t,n,r,i){return t[0]=(0,e.qE)(n[0],r[0],i[0]),t[1]=(0,e.qE)(n[1],r[1],i[1]),t}function m(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function M(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t}function g(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t}function x(t,n){const r=n[0]-t[0],e=n[1]-t[1];return Math.sqrt(r*r+e*e)}function d(t,n){const r=n[0]-t[0],e=n[1]-t[1];return r*r+e*e}function p(t){const n=t[0],r=t[1];return Math.sqrt(n*n+r*r)}function y(t){const n=t[0],r=t[1];return n*n+r*r}function b(t,n){const r=n[0],e=n[1];let i=r*r+e*e;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i),t}function v(t,n){return t[0]*n[0]+t[1]*n[1]}function I(t,n,r,e){const i=n[0],s=n[1];return t[0]=i+e*(r[0]-i),t[1]=s+e*(r[1]-s),t}function P(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[2]*i+r[4],t[1]=r[1]*e+r[3]*i+r[5],t}function R(t,n,r,e){const i=n[0]-r[0],s=n[1]-r[1],a=Math.sin(e),o=Math.cos(e);return t[0]=i*o-s*a+r[0],t[1]=i*a+s*o+r[1],t}function N(t,n){return t[0]===n[0]&&t[1]===n[1]}function S(t,n){const r=t[0],e=t[1],s=n[0],a=n[1],o=(0,i.FD)();return Math.abs(r-s)<=o*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(e-a)<=o*Math.max(1,Math.abs(e),Math.abs(a))}const z=p,q=u,A=c,_=h,E=x,w=d,T=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,n){const r=t[0],e=t[1],i=n[0],s=n[1];let a=r*r+e*e;a>0&&(a=1/Math.sqrt(a));let o=i*i+s*s;o>0&&(o=1/Math.sqrt(o));const u=(r*i+e*s)*a*o;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:f,copy:s,cross:function(t,n,r){const e=n[0]*r[1]-n[1]*r[0];return t[0]=t[1]=0,t[2]=e,t},dist:E,distance:x,div:_,divide:h,dot:v,equals:S,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:z,length:p,lerp:I,max:l,min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t},mul:A,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:b,projectAndScale:function(t,n,r,e,i){let s=n[0]-r[0],a=n[1]-r[1];const o=(e[0]*s+e[1]*a)*(i-1);return s=e[0]*o,a=e[1]*o,t[0]=n[0]+s,t[1]=n[1]+a,t},random:function(t,n=1){const r=2*(0,i.Ov)()*Math.PI;return t[0]=Math.cos(r)*n,t[1]=Math.sin(r)*n,t},rotate:R,round:m,scale:M,scaleAndAdd:g,set:a,sqrDist:w,sqrLen:T,squaredDistance:d,squaredLength:y,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:q,subtract:u,transformMat2:function(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[2]*i,t[1]=r[1]*e+r[3]*i,t},transformMat2d:P,transformMat3:function(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[3]*i+r[6],t[1]=r[1]*e+r[4]*i+r[7],t},transformMat4:function(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[4]*i+r[12],t[1]=r[1]*e+r[5]*i+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(n,["Il",0,z,"jb",0,q,"xg",0,E])},39829(t,n,r){r.d(n,{A:()=>P});var e,i=r(5482),s=r(4576),a=r(51447),o=r(4718),u=r(53966),c=r(91429),h=r(5443),l=r(91075),f=r(86738),m=r(16930),M=r(12359),g=r(94078),x=r(95108),d=r(90634),p=r(47610),y=r(28735),b=r(56993),v=r(43937);function I(t){return!Array.isArray(t[0])}let P=e=class extends l.A{static fromExtent(t){const n=t.clone().normalize(),{spatialReference:r}=t;let i=!1,s=!1;for(const t of n)t.hasZ&&(i=!0),t.hasM&&(s=!0);const a={rings:n.map(t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(i&&t.hasZ){const r=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(r)}if(s&&t.hasM){const r=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(r)}return n}),spatialReference:r};return i&&(a.hasZ=!0),s&&(a.hasM=!0),new e(a)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:r,hasZ:e,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:e??=!0,r??=!0;break;case 3:e??=!0!==r,r??=!e;break;default:e??=!1,r??=!1}return i??=m.A.WGS84,{...t,hasM:r,hasZ:e,rings:n,spatialReference:i}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,a.Lx)(u.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const t=(0,M.Ve)(this);return t?f.A.fromJSON(t):null}writeCurveRings(t,n){n.curveRings=(0,o.o8)(t)}get extent(){const t=(0,d.v)(this),{spatialReference:n}=this;return t?new h.A({...t,spatialReference:n}):null}writeRings(t,n){n.rings=(0,o.o8)(this.rings)}addRing(t){if(!t)return;const n=this.rings,r=n.length;if(I(t)){const e=[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n].toArray();n[r]=e}else n[r]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new e;return t.spatialReference=this.spatialReference,t.rings=(0,o.o8)(this.rings),t.curveRings=(0,o.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,r=t.spatialReference;if(null!=n!=(null!=r))return!1;if(null!=n&&null!=r&&!n.equals(r))return!1;if(this.rings.length!==t.rings.length)return!1;for(let n=0;n<this.rings.length;n++){const r=this.rings[n],e=t.rings[n];if(!(0,s.aI)(r,e,p.v6))return!1}return!0}contains(t){if(!t)return!1;const n=(0,y.Cv)(t,this.spatialReference);return(0,g.m3)(this,null!=n?n:t)}isClockwise(t){const n=I(t)?t.map(t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y]):t;return(0,x.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const r=this.rings[t][n],e=this.hasZ,i=this.hasM;return e&&!i?new f.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!e?new f.A(r[0],r[1],void 0,r[2],this.spatialReference):e&&i?new f.A(r[0],r[1],r[2],r[3],this.spatialReference):new f.A(r[0],r[1],this.spatialReference)}insertPoint(t,n,r){return this._validateInputs(t,n,!0)?((0,b.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[t].splice(n,0,r),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const r=new f.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),r}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],r=this.spatialReference,e=n.map(t=>new f.A(t,r));return this.notifyChange("rings"),e}setPoint(t,n,r){return this._validateInputs(t,n)?((0,b.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[t][n]=r,this.notifyChange("rings"),this):this}_validateInputs(t,n,r=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const e=this.rings[t];if(r&&(n<0||n>e.length))return!1;if(!r&&(n<0||n>=e.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"cache",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"centroid",null),(0,i.Cg)([(0,c.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],P.prototype,"curveRings",void 0),(0,i.Cg)([(0,v.K)("curveRings")],P.prototype,"writeCurveRings",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"extent",null),(0,i.Cg)([(0,c.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],P.prototype,"rings",void 0),(0,i.Cg)([(0,v.K)("rings")],P.prototype,"writeRings",null),P=e=(0,i.Cg)([(0,c.$K)("esri.geometry.Polygon")],P),P.prototype.toJSON.isDefaultToJSON=!0},51118(t,n,r){function e(t){const n=[];for(t.reset();t.nextPath();){const r=[];for(;t.nextPoint();){const n=[t.x,t.y];t.hasZ&&n.push(t.z),t.hasM&&n.push(t.m),r.push(n)}n.push(r)}return t.reset(),n}function i(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}r.d(n,{A:()=>i,x:()=>e})},537(t,n,r){r.d(n,{B$:()=>x,LJ:()=>d,Pj:()=>b,Rg:()=>M,Yz:()=>p,z8:()=>g});var e=r(19419),i=r(79567),s=r(52006);function a(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function u(t){return void 0!==t.x&&void 0!==t.y}function c(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function l(t){return function(n,r){return null==n?r:null==r?n:t(n,r)}}const f=l(Math.min),m=l(Math.max);function M(t,n){return c(n)?p(t,n.curvePaths??n.paths,!1,!1)??t:h(n)?p(t,n.curveRings??n.rings,!1,!1)??t:o(n)?b(t,n.points,!1,!1,!1,!1):a(n)?y(t,n):(u(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function g(t){let n,r,i,s;for(t.reset(),n=i=1/0,r=s=-1/0;t.nextPath();){const e=x(t);n=Math.min(e[0],n),i=Math.min(e[1],i),r=Math.max(e[2],r),s=Math.max(e[3],s)}return(0,e.vt)([n,i,r,s])}function x(t){let n,r,i,s;for(n=i=1/0,r=s=-1/0;t.nextPoint();)n=Math.min(t.x,n),i=Math.min(t.y,i),r=Math.max(t.x,r),s=Math.max(t.y,s);return(0,e.vt)([n,i,r,s])}function d(t,n){return c(n)?p(t,n.curvePaths??n.paths,!0,!1)??t:h(n)?p(t,n.curveRings??n.rings,!0,!1)??t:o(n)?b(t,n.points,!0,!1,!0,!1):a(n)?y(t,n,0,0,!0,!1):(u(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function p(t,n,r,a){const o=r?3:2;if(!n.length||!n[0].length)return null;let u,c,h,l,[M,g]=(0,s.yP)(n[0][0]),x=M,d=g;for(let t=0;t<n.length;t++){const p=n[t];for(let t=0;t<p.length;t++){const n=(0,s.yP)(p[t]),[y,b]=n;if(M=f(M,y),g=f(g,b),x=m(x,y),d=m(d,b),r&&n.length>2){const t=n[2];u=f(u,t),c=m(c,t)}if(a&&n.length>o){const t=n[o];h=f(h,t),l=m(l,t)}const v=p[t];if((0,s.Xq)(v)||t<1)continue;const I=(0,s.yP)(p[t-1]),P=(0,e.fA)(M,g,x,d);[M,g,x,d]=(0,i.e)(P,I,v)}}return r?a?(t[0]=M,t[1]=g,t[2]=u,t[3]=h,t[4]=x,t[5]=d,t[6]=c,t[7]=l,t.length=8,t):(t[0]=M,t[1]=g,t[2]=u,t[3]=x,t[4]=d,t[5]=c,t.length=6,t):a?(t[0]=M,t[1]=g,t[2]=h,t[3]=x,t[4]=d,t[5]=l,t.length=6,t):(t[0]=M,t[1]=g,t[2]=x,t[3]=d,t.length=4,t)}function y(t,n,r,e,i,s){const a=n.xmin,o=n.xmax,u=n.ymin,c=n.ymax;let h=n.zmin,l=n.zmax,f=n.mmin,m=n.mmax;return i?(h=h||0,l=l||0,s?(f=f||0,m=m||0,t[0]=a,t[1]=u,t[2]=h,t[3]=f,t[4]=o,t[5]=c,t[6]=l,t[7]=m,t):(t[0]=a,t[1]=u,t[2]=h,t[3]=o,t[4]=c,t[5]=l,t)):s?(f=f||0,m=m||0,t[0]=a,t[1]=u,t[2]=f,t[3]=o,t[4]=c,t[5]=m,t):(t[0]=a,t[1]=u,t[2]=o,t[3]=c,t)}function b(t,n,r,e,i,s){const a=r?3:2,o=e&&s,u=r&&i;if(!n.length||!n[0].length)return null;let c,h,l,M,[g,x]=n[0],[d,p]=n[0];for(let t=0;t<n.length;t++){const r=n[t],[e,i]=r;if(g=f(g,e),x=f(x,i),d=m(d,e),p=m(p,i),u&&r.length>2){const t=r[2];c=f(c,t),h=m(h,t)}if(o&&r.length>a){const t=r[a];l=f(c,t),M=m(h,t)}}return i?(c=c||0,h=h||0,s?(l=l||0,M=M||0,t[0]=g,t[1]=x,t[2]=c,t[3]=l,t[4]=d,t[5]=p,t[6]=h,t[7]=M,t):(t[0]=g,t[1]=x,t[2]=c,t[3]=d,t[4]=p,t[5]=h,t)):s?(l=l||0,M=M||0,t[0]=g,t[1]=x,t[2]=l,t[3]=d,t[4]=p,t[5]=M,t):(t[0]=g,t[1]=x,t[2]=d,t[3]=p,t)}},12359(t,n,r){r.d(n,{IK:()=>h,TP:()=>l,Ve:()=>o,Z4:()=>s,l8:()=>a,w2:()=>c});var e=r(51118),i=r(95108);function s({xmin:t,xmax:n,ymin:r,ymax:e,zmin:i,zmax:s,hasZ:a}){const o=[(t+n)/2,(r+e)/2];return a&&o.push((i+s)/2),o}function a(t){return function(t,n){if(!t?.length)return null;const r=[],e=[],s=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let r=0,i=t.length;r<i;r++){const i=u(t[r],n,s);i&&e.push(i)}if(e.sort((t,r)=>{let e=t[2]-r[2];return 0===e&&n&&(e=t[4]-r[4]),e}),e.length&&(r[0]=e[0][0],r[1]=e[0][1],n&&(r[2]=e[0][3]),(r[0]<s[0]||r[0]>s[1]||r[1]<s[2]||r[1]>s[3]||n&&(r[2]<s[4]||r[2]>s[5]))&&(r.length=0)),!r.length){const e=t[0]&&t[0].length?function(t,n){const r=n?[0,0,0]:[0,0],e=n?[0,0,0]:[0,0];let s=0,a=0,o=0,u=0;for(let c=0,h=t.length;c<h-1;c++){const h=t[c],l=t[c+1];if(h&&l){r[0]=h[0],r[1]=h[1],e[0]=l[0],e[1]=l[1],n&&h.length>2&&l.length>2&&(r[2]=h[2],e[2]=l[2]);const t=(0,i.R3)(r,e);if(t){s+=t;const r=(0,i.t9)(h,l);a+=t*r[0],o+=t*r[1],n&&r.length>2&&(u+=t*r[2])}}}return s>0?n?[a/s,o/s,u/s]:[a/s,o/s]:t.length?t[0]:null}(t[0],n):null;if(!e)return null;r[0]=e[0],r[1]=e[1],n&&e.length>2&&(r[2]=e[2])}return r}(t.rings,t.hasZ??!1)}function o(t){const n=a(t);if(!n)return null;const{hasZ:r,spatialReference:e}=t,[i,s,o]=n;return isNaN(i)||isNaN(s)||r&&isNaN(o)?null:{x:i,y:s,z:r?o:void 0,spatialReference:e}}function u(t,n,r){let e=0,i=0,s=0,a=0,o=0;const u=t.length?t[0][0]:0,c=t.length?t[0][1]:0,h=t.length&&n?t[0][2]:0;for(let l=0;l<t.length;l++){const f=t[l],m=t[(l+1)%t.length],[M,g,x]=f,d=M-u,p=g-c,[y,b,v]=m,I=y-u,P=b-c,R=d*P-I*p;if(a+=R,e+=(d+I)*R,i+=(p+P)*R,n&&f.length>2&&m.length>2){const t=x-h,n=v-h,r=d*n-I*t;s+=(t+n)*r,o+=r}M<r[0]&&(r[0]=M),M>r[1]&&(r[1]=M),g<r[2]&&(r[2]=g),g>r[3]&&(r[3]=g),n&&(x<r[4]&&(r[4]=x),x>r[5]&&(r[5]=x))}if(a>0&&(a*=-1),o>0&&(o*=-1),!a)return null;a*=.5,o*=.5;const l=[e/(6*a)+u,i/(6*a)+c,a];return n&&(r[4]===r[5]||0===o?(l[3]=(r[4]+r[5])/2,l[4]=0):(l[3]=s/(6*o)+h,l[4]=o)),l}function c(t,n){let r=0,e=0,i=0;t.nextPoint();const s=t.pathSize?t.x:0,a=t.pathSize?t.y:0;for(let o=0;o<t.pathSize;o++){t.seekInPath(o);const u=[t.x,t.y];t.seekInPath((o+1)%t.pathSize);const c=[t.x,t.y],[h,l]=u,f=h-s,m=l-a,[M,g]=c,x=M-s,d=g-a,p=f*d-x*m;i+=p,r+=(f+x)*p,e+=(m+d)*p,h<n[0]&&(n[0]=h),h>n[1]&&(n[1]=h),l<n[2]&&(n[2]=l),l>n[3]&&(n[3]=l)}return i>0&&(i*=-1),i?(i*=.5,[r/(6*i)+s,e/(6*i)+a,i]):null}function h(t){const{hasZ:n,totalSize:r}=t;if(0===r)return null;const s=[],a=[],o=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=u((0,e.A)(t),t.hasZ,o);n&&a.push(n)}if(a.sort((t,r)=>{let e=t[2]-r[2];return 0===e&&n&&(e=t[4]-r[4]),e}),a.length&&(s[0]=a[0][0],s[1]=a[0][1],n&&(s[2]=a[0][3]),(s[0]<o[0]||s[0]>o[1]||s[1]<o[2]||s[1]>o[3]||n&&(s[2]<o[4]||s[2]>o[5]))&&(s.length=0)),!s.length){t.reset(),t.nextPath();const r=t.pathSize?function(t){const{hasZ:n}=t,r=n?[0,0,0]:[0,0],e=n?[0,0,0]:[0,0];let s=0,a=0,o=0,u=0;if(t.nextPoint()){let c=t.x,h=t.y,l=t.z;for(;t.nextPoint();){const f=t.x,m=t.y,M=t.z;r[0]=c,r[1]=h,e[0]=f,e[1]=m,n&&(r[2]=l,e[2]=M);const g=(0,i.R3)(r,e);if(g){s+=g;const t=(0,i.t9)(r,e);a+=g*t[0],o+=g*t[1],n&&t.length>2&&(u+=g*t[2])}c=f,h=m,l=M}}return s>0?n?[a/s,o/s,u/s]:[a/s,o/s]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!r)return null;s[0]=r[0],s[1]=r[1],n&&r.length>2&&(s[2]=r[2])}return s}function l(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<1e-6){const n=h(t);return n?[n[0],n[1]]:null}const r=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const e=[t.x,t.y];for(t.reset();t.nextPath();)m(r,e,t);return r[0]*=1/n,r[1]*=1/n,r[0]+=e[0],r[1]+=e[1],r}const f=1/3;function m(t,n,r){if(!t||!r||r.pathSize<3)return null;r.nextPoint();const e=r.x,i=r.y;r.nextPoint();let s,a=r.x-e,o=r.y-i,u=0,c=0;for(;r.nextPoint();)u=r.x-e,c=r.y-i,s=.5*f*(u*o-c*a),t[0]+=s*(a+u),t[1]+=s*(o+c),a=u,o=c;const h=r.getCurrentRingArea(),l=[e,i];return l[0]-=n[0],l[1]-=n[1],l[0]*=h,l[1]*=h,t[0]+=l[0],t[1]+=l[1],t}},95108(t,n,r){r.d(n,{$3:()=>c,Ng:()=>a,R3:()=>i,Yl:()=>u,gR:()=>s,m3:()=>l,t9:()=>o});var e=r(4576);function i(t,n){const r=n[0]-t[0],e=n[1]-t[1];if(t.length>2&&n.length>2){const i=t[2]-n[2];return Math.sqrt(r*r+e*e+i*i)}return Math.sqrt(r*r+e*e)}function s(t,n,r,e){const[i,s]=n,[a,o]=r,[u,c]=e,h=u-a,l=c-o,f=h*h+l*l,m=(i-a)*h+(s-o)*l,M=Math.min(1,Math.max(0,m/f));return t[0]=a+h*M,t[1]=o+l*M,t}function a(t,n,r,e,i,s){let a=r,o=e,u=i-a,c=s-o;if(0!==u||0!==c){const r=((t-a)*u+(n-o)*c)/(u*u+c*c);r>1?(a=i,o=s):r>0&&(a+=u*r,o+=c*r)}return u=t-a,c=n-o,u*u+c*c}function o(t,n){return function(t,n,r){const e=t[0]+r*(n[0]-t[0]),i=t[1]+r*(n[1]-t[1]);return t.length>2&&n.length>2?[e,i,t[2]+r*(n[2]-t[2])]:[e,i]}(t,n,.5)}function u(t){const n=t.length;let r=0;for(let e=0;e<n-1;++e)r+=i(t[e],t[e+1]);return r}function c(t,n=0,r=1){let e=0;const i=t.length;let s=t[0];for(let a=1;a<i;a++){const i=t[a];e+=(i[n]-s[n])*(i[r]+s[r]),s=i}if(h(t)){const i=t[0];e+=(i[n]-s[n])*(i[r]+s[r])}return e>=0}function h(t){const n=t.length;return n>0&&!(0,e.aI)(t[0],t[n-1])}function l(t){if("rings"in t)for(const n of t.rings)h(n)&&n.push(n[0].slice())}r(52006)},4305(t,n,r){r.d(n,{B4:()=>u,jK:()=>h,lM:()=>f,m_:()=>l,ty:()=>M});var e=r(34727),i=(r(37585),r(19419)),s=r(15507);const a=[0,0];function o(t){const n=1-t,r=n*n,e=t*t;return[r*n,3*t*r,3*e*n,e*t]}function u(t,n,r,e,i){const[s,a,u,c]=o(i);return[t[0]*s+n[0]*a+r[0]*u+e[0]*c,t[1]*s+n[1]*a+r[1]*u+e[1]*c]}function c(t,n,r,e,i){const[s,a,u,c]=o(i);return t*s+n*a+r*u+e*c}function h(t,n,r){const e=t,[i,o,u]=n.b,c=(0,s.RS)([0,0],e,o,r),h=(0,s.RS)(a,o,u,r),l=(0,s.RS)([0,0],u,i,r),f=(0,s.RS)([0,0],c,h,r),m=(0,s.RS)([0,0],h,l,r);return[{b:[(0,s.RS)([],f,m,r),c,f]},{b:[[...i],m,l]}]}function l(t,n,r){const i=t,[a,o,c]=n.b,h=(0,s.R)(r,[.1,.5,.9],t=>{const n=1-t,[r,e]=u(i,o,c,a,t);return[r,e,3*n*n*(o[0]-i[0])+6*n*t*(c[0]-o[0])+3*t*t*(a[0]-c[0]),3*n*n*(o[1]-i[1])+6*n*t*(c[1]-o[1])+3*t*t*(a[1]-c[1]),6*n*(c[0]-2*o[0]+i[0])+6*t*(a[0]-2*c[0]+o[0]),6*n*(c[1]-2*o[1]+i[1])+6*t*(a[1]-2*c[1]+o[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let l=1/0;const f=h.map(t=>{const n=u(i,o,c,a,t),[e,s]=n,h=r[0]-e,f=r[1]-s,m=Math.sqrt(h*h+f*f);return l=Math.min(m,l),{t,curvePoint:n,distance:m}}),m=[];for(const t of f){const{t:n,distance:r}=t;(0,e.b6)(r,l)&&!m.some(({t})=>(0,e.Sp)(t,n))&&m.push(t)}return m}function f(t,n,r){const e=n,[s,a,o]=r.b;if((0,i.tK)(t,e),(0,i.tK)(t,s),(0,i.Rj)(t,a[0],a[1])&&(0,i.Rj)(t,o[0],o[1]))return t;for(const n of m(e[0],a[0],o[0],s[0]))n>0&&n<1&&(0,i.nw)(t,c(e[0],a[0],o[0],s[0],n));for(const n of m(e[1],a[1],o[1],s[1]))n>0&&n<1&&(0,i.IO)(t,c(e[1],a[1],o[1],s[1],n));return t}function m(t,n,r,e){const i=3*(3*(n-r)-t+e),s=6*(t-2*n+r),a=3*(n-t);if(0===i)return 0!==s?[-a/s]:[];const o=Math.sqrt(s*s-4*i*a);return[(-s+o)/(2*i),(-s-o)/(2*i)]}function M(t,n,r){let e=0,i=[n];for(let n=0;n<16;n++){let n=t;const a=[];for(const t of i)a.push(...h(n,t,.5)),n=t.b[0];i=a,n=t,e=0;let o=0;for(const t of i){const[r,i,a]=t.b,u=Math.sqrt((0,s.kb)(n,r));e+=(u+(Math.sqrt((0,s.kb)(n,i))+Math.sqrt((0,s.kb)(i,a))+Math.sqrt((0,s.kb)(a,r))))/2,o+=u,n=r}if(e-o<r)return e}return e}},513(t,n,r){r.d(n,{KP:()=>a,X0:()=>h,fM:()=>c,mq:()=>u,zW:()=>l});var e=r(19419),i=r(59803),s=r(15507);class a{constructor(t,n,r,e,i,s){this.cx=t,this.cy=n,this.radius=r,this.thetaStart=e,this.thetaEnd=i,this.isInvalid=s}get startPoint(){const{cx:t,cy:n,radius:r,thetaStart:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}get endPoint(){const{cx:t,cy:n,radius:r,thetaEnd:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}}function o(t,n){const{cx:r,cy:e,radius:i}=t;return[r+i*Math.cos(n),e+i*Math.sin(n)]}function u(t,n){if(t.isInvalid)return(0,s.RS)([0,0],t.startPoint,t.endPoint,n);const{thetaStart:r,thetaEnd:e}=t;return o(t,r*(1-n)+e*n)}function c(t,n){if(t.isInvalid)return(0,i.T)(t.startPoint,t.endPoint,n);const{cx:r,cy:e,thetaStart:a,thetaEnd:u}=t,[c,h]=n,l=(0,s.Pf)((0,s.yN)(a,u),Math.atan2(h-e,c-r)),f=o(t,l);return{t:(l-a)/(u-a),curvePoint:f,distance:Math.sqrt((0,s.kb)(n,f))}}function h(t,n){if(n.isInvalid)return(0,e.tK)(t,n.startPoint),(0,e.tK)(t,n.endPoint),t;const{cx:r,cy:i,radius:a,thetaStart:u,thetaEnd:c}=n;(0,e.tK)(t,o(n,u)),(0,e.tK)(t,o(n,c));const h=(0,s.yN)(u,c),l=Math.PI/2;let f=0;for(const n of[[r+a,i],[r,i+a],[r-a,i],[r,i-a]])f=(0,s.Cp)(h,f),f>h.min&&f<h.max&&(0,e.tK)(t,n),f+=l;return t}function l(t){if(t.isInvalid)return 2*t.radius;const{radius:n,thetaStart:r,thetaEnd:e}=t;return n*Math.abs(e-r)}},50954(t,n,r){r.d(n,{GX:()=>h,pM:()=>c});var e=r(77690),i=r(29242),s=(r(37585),r(513)),a=r(15507);const o=(0,i.vt)();function u(t,n,r){const[i,s]=t,[u,c]=n,[h,l]=r;(0,e.hZ)(o,i,u,h,s,c,l,1,1,1);const f=(0,e.a4)(o),m=4*f/((0,a.kb)(t,n)+(0,a.kb)(n,r)+(0,a.kb)(r,t));if(!isFinite(m)||Math.abs(m)<1e-8)return null;const M=i**2+s**2,g=u**2+c**2,x=h**2+l**2;(0,e.hZ)(o,M,g,x,s,c,l,1,1,1);const d=(0,e.a4)(o);return(0,e.hZ)(o,M,g,x,i,u,h,1,1,1),[d/f*.5,(0,e.a4)(o)/f*-.5]}function c(t,n){const[r,e]=n.c,i=u(t,e,r),o=null==i,c=i??(0,a.RS)([],t,r,.5),[h,l]=t,[f,m]=e,[M,g]=r,[x,d]=c,p=h-x,y=l-d,b=Math.sqrt(p*p+y*y),v=(0,a.t7)(l-d,h-x),I=(0,a.t7)(m-d,f-x);let P=(0,a.t7)(g-d,M-x);return(I-v)*(P-I)<0&&(P+=2*Math.sign(v-P)*Math.PI),new s.KP(x,d,b,v,P,o)}function h(t,n,r){const e=(0,s.mq)(t,r/2),i=(0,s.mq)(t,r),a=(0,s.mq)(t,(r+1)/2);return[{c:[i,e]},{c:[[...n.c[0]],a]}]}},79567(t,n,r){r.d(n,{e:()=>h});var e=r(19419),i=r(4305),s=r(513),a=r(50954),o=r(52006),u=r(49663),c=r(46068);function h(t,n,r){if((0,o.Xq)(r))return(0,e.tK)(t,n),(0,e.tK)(t,r),t;if((0,o.n1)(r))return(0,i.lM)(t,n,r);if((0,o.aO)(r)){const e=(0,a.pM)(n,r);return(0,s.X0)(t,e)}if((0,o.DA)(r)){const e=(0,u.io)(n,r);return(0,s.X0)(t,e)}return(0,c.DL)(t,n,r)}},52006(t,n,r){function e(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function s(t){return"b"in t}function a(t){return"c"in t}function o(t){return Array.isArray(t)}function u(t){return"a"in t}function c(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function l(t,n){return i(t).flat().some(t=>function(t,n){return!(o(t)||(s(t)?n.has("cubic-bezier"):a(t)?n.has("circular-arc"):!c(t)&&!h(t)||n.has("elliptic-arc")))}(t,n))}function f(t){return o(t)?t:s(t)?t.b[0]:a(t)?t.c[0]:t.a[0]}function m(t){if(s(t)){const[n,r,e]=t.b;return{b:[[...n],[...r],[...e]]}}if(a(t)){const[n,r]=t.c;return{c:[[...n],[...r]]}}if(o(t))return[...t];if(c(t)){const[n,r,e,i]=t.a;return{a:[[...n],[...r],e,i]}}if(h(t)){const[n,r,e,i,s,a,o]=t.a;return{a:[[...n],[...r],e,i,s,a,o]}}return t}r.d(n,{DA:()=>c,Ed:()=>e,FD:()=>i,FG:()=>u,V8:()=>l,Xq:()=>o,aO:()=>a,n1:()=>s,tk:()=>m,wY:()=>h,yP:()=>f}),r(4576)},49663(t,n,r){r.d(n,{io:()=>a,xG:()=>o});var e=r(34727),i=(r(37585),r(513)),s=r(15507);function a(t,n){const[r,a,o,u]=n.a,[c,h]=t,[l,f]=r,[m,M]=a,g=c-m,x=h-M,d=Math.sqrt(g*g+x*x),p=l-m,y=f-M,b=Math.sqrt(p*p+y*y),v=0===d||0===b||!(0,e.b6)(d,b),I=d,[P,R]=(0,s.Gz)((0,s.t7)(h-M,c-m),Math.atan2(f-M,l-m),o,u);return new i.KP(m,M,I,P,R,v)}function o(t,n,r){const{cx:e,cy:s,thetaStart:a,thetaEnd:o}=t,[u,c,h,l]=n.a,f=a*(1-r)+o*r;return[{a:[(0,i.mq)(t,r),[e,s],Math.abs(f-a)<Math.PI?1:0,l]},{a:[[...u],[e,s],Math.abs(o-f)<Math.PI?1:0,l]}]}},46068(t,n,r){r.d(n,{DL:()=>m,ED:()=>l,SW:()=>u,Uk:()=>h,pb:()=>f,xm:()=>M}),r(77690);var e=r(29242),i=(r(37585),r(19419)),s=r(52006),a=r(15507);class o{constructor(t,n,r,e,i,s,a,o,u){this.cx=t,this.cy=n,this.a=r,this.b=e,this.cosR=i,this.sinR=s,this.u1=a,this.u2=o,this.isInvalid=u}}function u(t,n){const[r,e,i,s,u,c,h]=n.a,[l,f]=t,[m,M]=r,[g,x]=e,d=c*h,p=Math.cos(u),y=Math.sin(u),[b,v]=(0,a.Gz)((0,a.t7)(1/d*(f-x)*p-1/d*(l-g)*y,1/c*(f-x)*y+1/c*(l-g)*p),Math.atan2(1/d*(M-x)*p-1/d*(m-g)*y,1/c*(M-x)*y+1/c*(m-g)*p),i,s);return new o(g,x,c,d,p,y,b,v,0===c||0===d)}function c(t,n){const{a:r,b:e,cosR:i,sinR:s,cx:a,cy:o}=t,u=Math.cos(n),c=Math.sin(n);return[r*u*i-e*c*s+a,r*u*s+e*c*i+o]}function h(t,n){const{u1:r,u2:e}=t;return c(t,r*(1-n)+e*n)}function l(t,n,r){if(r<0||r>1)return[];if(0===r||1===r)return[(0,s.tk)(n)];const[e,[i,a],o,u,c,l,f]=n.a,{u1:m,u2:M}=t,g=m*(1-r)+M*r;return[{a:[[...h(t,r)],[i,a],Math.abs(g-m)<Math.PI?1:0,u,c,l,f]},{a:[[...e],[i,a],Math.abs(M-g)<Math.PI?1:0,u,c,l,f]}]}function f(t,n){const{a:r,b:e,cosR:i,sinR:s,u1:o,u2:u}=t,h=Math.PI/6,l=(0,a.R)(n,[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],n=>{const a=Math.cos(n),o=Math.sin(n),[u,h]=c(t,n);return[u,h,-r*i*o-e*s*a,-r*s*o+e*i*a,-r*i*a+e*s*o,-r*s*a-e*i*o]}),f=(0,a.yN)(o,u),m=new Set(l.map(t=>(0,a.Cp)(f,t)).filter(t=>t>f.min&&t<f.max));m.add(o),m.add(u);let M,g,x=1/0;for(const r of m){const e=c(t,r),[i,s]=e,a=n[0]-i,h=n[1]-s,l=a*a+h*h;l<x&&(M=(r-o)/(u-o),g=e,x=l)}return{t:M,curvePoint:g,distance:Math.sqrt(x)}}function m(t,n,r){const e=u(n,r),{a:s,b:o,u1:h,u2:l,cosR:f,sinR:m,isInvalid:M}=e,g=r.a[0];if((0,i.tK)(t,n),(0,i.tK)(t,g),M)return t;const x=Math.atan2(-o*m,s*f),d=x+Math.PI,p=Math.atan2(o*f,s*m),y=p+Math.PI,b=(0,a.yN)(h,l);for(const n of[x,d,p,y].map(t=>(0,a.Cp)(b,t)))n>b.min&&n<b.max&&(0,i.tK)(t,c(e,n));return t}function M(t,n,r){const[e,i,s,o,l,f,m]=n.a,M=u(t,n),{u1:g,u2:x,isInvalid:d}=M,p=x-g;if(d)return Math.sqrt((0,a.kb)(t,e));const y=[0,0];let b=0,v=[h(M,0),h(M,.25),h(M,.5),h(M,.75),h(M,1)];for(let t=0;t<14;t++){const t=v.length-1,n=p/(2*t),e=[];for(let r=0;r<t;r++)e.push(v[r]),e.push(c(M,g+(2*r+1)*n));e.push(v[v.length-1]),v=e,b=0;let s=0;for(let t=1;t<v.length;t++){const n=v[t-1],r=v[t];if(b+=Math.sqrt((0,a.kb)(n,r)),t>1){const e=v[t-2],o=(0,a.M_)(y,e,n,i,r);s+=o?Math.sqrt((0,a.kb)(n,o)):Math.abs(r[0]-n[0])+Math.abs(r[1]-n[1])}else s+=b}if(s-b<r)return b}return b}(0,e.vt)(),(0,e.vt)(),(0,e.vt)(),(0,e.vt)()},59803(t,n,r){r.d(n,{T:()=>s});var e=r(34727),i=r(15507);function s(t,n,r){const[s,a]=t,[o,u]=n,[c,h]=r,[l,f]=[o-s,u-a];let m=l*(c-s)+f*(h-a);m/=l**2+f**2,m=isNaN(m)?0:(0,e.qE)(m,0,1);const M=(0,i.RS)([0,0],t,n,m);return{t:m,curvePoint:M,distance:Math.sqrt((0,i.kb)(M,r))}}},15507(t,n,r){r.d(n,{Cp:()=>g,Gz:()=>M,M_:()=>u,Pf:()=>x,R:()=>d,RS:()=>s,kb:()=>a,t7:()=>h,yE:()=>o,yN:()=>m});var e=r(34727),i=r(37585);function s(t,n,r,e){return t[0]=n[0]*(1-e)+r[0]*e,t[1]=n[1]*(1-e)+r[1]*e,t}function a(t,n){return(0,i.hG)(t,n)}function o(t,n,r){const e=a(n,r);if(0===e)return a(n,t);const i=(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0]);return i*i/e}function u(t,n,r,e,i){const[s,a]=n,[o,u]=r,[c,h]=e,[l,f]=i,m=(s-o)*(h-f)-(a-u)*(c-l);if(0===m)return null;const M=(s*u-a*o)*(c-l)-(s-o)*(c*f-h*l),g=(s*u-a*o)*(h-f)-(a-u)*(c*f-h*l);return t[0]=M/m,t[1]=g/m,t}const c=2*Math.PI;function h(t,n){const r=Math.atan2(t,n);return r<0?r+c:r}function l(t){return Math.abs(t)%c}function f(t){const n=l(t);return n<Math.PI?n:c-n}function m(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function M(t,n,r,i){if((0,e.Sp)(l(t-n),0))return r?[t,t]:[t,i?t-c:t+c];const[s,a]=i?[t-c,t]:[t,t+c];return[t,g({min:s,max:a},n)]}function g({min:t,max:n},r){let e;return e=n-r,e>=c?(e-=e%c,r+e):(e=r-t,e>=c?(e-=e%c,r-e):r)}function x(t,n){const r=g(t,n);return r>t.min&&r<t.max?r:f(r-t.min)<f(r-t.max)?t.min:t.max}function d(t,n,r,e=10){return n.map(n=>{let i=n;for(let n=0;n<e;n++){const[n,e,s,a,o,u]=r(i),c=t[0]-n,h=t[1]-e,l=-s,f=-a;i+=-(2*c*l+2*h*f)/(2*l*l+2*c*-o+2*f*f+2*h*-u||1e-6)}return i})}},90634(t,n,r){r.d(n,{HA:()=>h,JM:()=>l,Z3:()=>M,ge:()=>f,v:()=>m});var e=r(537);const i=[];function s(t,n,r,e){return{xmin:t,ymin:n,xmax:r,ymax:e}}function a(t,n,r,e,i,s){return{xmin:t,ymin:n,zmin:r,xmax:e,ymax:i,zmax:s}}function o(t,n,r,e,i,s){return{xmin:t,ymin:n,mmin:r,xmax:e,ymax:i,mmax:s}}function u(t,n,r,e,i,s,a,o){return{xmin:t,ymin:n,zmin:r,mmin:e,xmax:i,ymax:s,zmax:a,mmax:o}}function c(t,n=!1,r=!1){return n?r?u(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):r?o(t[0],t[1],t[2],t[3],t[4],t[5]):s(t[0],t[1],t[2],t[3])}function h(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:r,z:e,m:i}=t,c=null!=i;return null!=e?c?u(n,r,e,i,n,r,e,i):a(n,r,e,n,r,e):c?o(n,r,i,n,r,i):s(n,r,n,r)}(t):function(t){return void 0!==t.rings}(t)?m(t):function(t){return void 0!==t.paths}(t)?M(t):function(t){return void 0!==t.points}(t)?f(t):null:null}function l(t,{xmin:n,ymin:r,zmin:e,mmin:i,xmax:s,ymax:a,zmax:o,mmax:u}){t.xmin=Math.min(t.xmin,n),t.xmax=Math.max(t.xmax,s),t.ymin=Math.min(t.ymin,r),t.ymax=Math.max(t.ymax,a),null!=t.zmin&&(t.zmin=Math.min(t.zmin,e),t.zmax=Math.max(t.zmax,o)),null!=t.mmin&&(t.mmin=Math.min(t.mmin,i),t.mmax=Math.max(t.mmax,u))}function f(t){const{hasZ:n,hasM:r,points:s}=t,a=(0,e.Pj)(i,s,n??!1,r??!1,n??!1,r??!1);return a?c(a,n,r):null}function m(t){const{hasZ:n,hasM:r,rings:s,curveRings:a}=t,o=(0,e.Yz)(i,a??s,n??!1,r??!1);return o?c(o,n,r):null}function M(t){const{hasZ:n,hasM:r,paths:s,curvePaths:a}=t,o=(0,e.Yz)(i,a??s,n??!1,r??!1);return o?c(o,n,r):null}},47610(t,n,r){function e([t,n,r,e],[i,s,a,o]){return t===i&&n===s&&(null==r&&null==a||r===a)&&(null==e&&null==o||e===o)}r.d(n,{v6:()=>e}),r(5443),r(83960)},83960(t,n,r){r.d(n,{X_:()=>s,oW:()=>o,zx:()=>a});var e=r(34727),i=r(86211);function s(t,n){const r=n||t.extent,e=t.width,s=(0,i.GA)(r?.spatialReference);return r&&e?r.width/e*s*39.37*96:0}function a(t,n,r){return function(t,n){return 0===n||(0,e.Sp)(t,n)||t<n}(t,n)&&function(t,n){return 0===n||(0,e.Sp)(t,n)||t>n}(t,r)}function o(t,n){return(0,e.Sp)(t,n)?0:(t||Number.POSITIVE_INFINITY)>(n||Number.POSITIVE_INFINITY)?1:-1}},56993(t,n,r){function e(t,n,r=!1){let{hasM:e,hasZ:i}=t;Array.isArray(n)?4!==n.length||e||i?3===n.length&&r&&!e?(i=!0,e=!1):3===n.length&&e&&i&&(e=!1,i=!1):(e=!0,i=!0):(i=!i&&n.hasZ&&(!e||n.hasM),e=!e&&n.hasM&&(!i||n.hasZ)),t.hasZ=i,t.hasM=e}r.d(n,{h:()=>e})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4520],{5482(t,n,e){function r(t,n,e,r){var o,i=arguments.length,a=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>a,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function a(t){function n(n){t.error=t.hasError?new i(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,n,e){function r(t,n,e,r,i){o(t,n,e||0,r||t.length-1,i||a)}function o(t,n,e,r,a){for(;r>e;){if(r-e>600){var s=r-e+1,u=n-e+1,c=Math.log(s),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1);o(t,n,Math.max(e,Math.floor(n-u*l/s+h)),Math.min(r,Math.floor(n+(s-u)*l/s+h)),a)}var f=t[n],p=e,m=r;for(i(t,e,n),a(t[r],f)>0&&i(t,e,r);p<m;){for(i(t,p,m),p++,m--;a(t[p],f)<0;)p++;for(;a(t[m],f)>0;)m--}0===a(t[e],f)?i(t,e,m):i(t,++m,r),m<=n&&(e=m+1),n<=m&&(r=m-1)}}function i(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function a(t,n){return t<n?-1:t>n?1:0}e.d(n,{q:()=>r})},73354(t,n,e){e.d(n,{a:()=>h,b:()=>s,c:()=>o,d:()=>a,e:()=>f,f:()=>l,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const a=(0,r.k)(t.length,o,3),s=(0,r.k)(n.length,i,3),u=Math.min(a,s),c=e[0],l=e[1],h=e[2],f=e[4],p=e[5],m=e[6],d=e[8],M=e[9],g=e[10],y=e[12],x=e[13],b=e[14];let v=0,_=0;for(let e=0;e<u;e++){const e=n[v],r=n[v+1],a=n[v+2];t[_]=c*e+f*r+d*a+y,t[_+1]=l*e+p*r+M*a+x,t[_+2]=h*e+m*r+g*a+b,v+=i,_+=o}return t}function a(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,o=3,i=o){const a=(0,r.k)(t.length,o,3),s=(0,r.k)(n.length,i,3),u=Math.min(a,s),c=e[0],l=e[1],h=e[2],f=e[3],p=e[4],m=e[5],d=e[6],M=e[7],g=e[8];let y=0,x=0;for(let e=0;e<u;e++){const e=n[y],r=n[y+1],a=n[y+2];t[x]=c*e+f*r+d*a,t[x+1]=l*e+p*r+M*a,t[x+2]=h*e+m*r+g*a,y+=i,x+=o}}function u(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,s=0;for(let u=0;u<i;u++)t[s]=e*n[a],t[s+1]=e*n[a+1],t[s+2]=e*n[a+2],a+=o,s+=r;return t}function c(t,n,e,r){l(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,r,o=3,i=o){const a=Math.min(t.length/o,n.length/i);let s=0,u=0;const c=1/2.2;for(let l=0;l<a;l++)t[u]=r*(e*n[s])**c,t[u+1]=r*(e*n[s+1])**c,t[u+2]=r*(e*n[s+2])**c,s+=i,u+=o}function h(t,n,e,o=3,i=o){const a=(0,r.k)(t.length,o,3),s=(0,r.k)(n.length,i,3),u=Math.min(a,s);let c=0,l=0;for(let r=0;r<u;r++)t[l]=n[c]+e[0],t[l+1]=n[c+1]+e[1],t[l+2]=n[c+2]+e[2],c+=i,l+=o;return t}function f(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let s=0;s<o;s++){const o=n[i],s=n[i+1],u=n[i+2],c=o*o+s*s+u*u;if(c>0){const n=1/Math.sqrt(c);t[a]=n*o,t[a+1]=n*s,t[a+2]=n*u}i+=r,a+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:p,normalizeView:f,scale:u,scaleView:function(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,s=n.typedBufferStride;let u=0,c=0;for(let t=0;t<r;t++)o[c]=a[u]>>e,o[c+1]=a[u+1]>>e,o[c+2]=a[u+2]>>e,u+=s,c+=i},transformMat3:s,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:h},Symbol.toStringTag,{value:"Module"}))},69540(t,n,e){var r=e(5482),o=e(69622),i=(e(44208),e(4718)),a=(e(53966),e(97768)),s=e(88620),u=e(64108);const c=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let o=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=c}clone(t){const n=(0,s.oY)(this);(0,a.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},u=new Map;for(const n in e){const a=e[n],s=r?.originOf(n),c=a.clonable;if(a.readOnly||!1===c||7!==s&&0!==s&&5!==s&&4!==s)continue;const l=this[n];let h=null;if("function"==typeof c)h=c(l,t);else if("reference"===c)h=l;else if(h=(0,i.TU)(l,t),null!=l&&null==h)continue;0===s?u.set(n,h):o[n]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(u.size){const t=(0,s.oY)(c)?.store;if(t)for(const[n,e]of u)t.set(n,e,0)}return c}};return o=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],o),o},h=l(o.A);e.d(n,["OU",0,l,"Pw",0,h])},95488(t,n,e){e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r,o,i,a,s,u,c,l,h,f,p,m,d){return[t,n,e,r,o,i,a,s,u,c,l,h,f,p,m,d]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function s(){return i(-1,-1)}function u(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const l=a(),h=s(),f=u(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:l,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:s,ones:a,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,h,"Un",0,l])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function u(){return i(1,1,1)}function c(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,ci:()=>s,fA:()=>i,o8:()=>o,vt:()=>r});const f=[0,0,0],p=u(),m=c(),d=l(),M=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:d,UNIT_Z:M,ZEROS:f,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:u,unitX:c,unitY:l,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,M,"Cw",0,m,"JP",0,d,"Un",0,p,"uY",0,f])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function u(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const l=[0,0,0,0],h=i(),f=a(),p=s(),m=u(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:d,UNIT_X:f,UNIT_Y:p,UNIT_Z:m,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:a,unitY:s,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,h,"uY",0,l])},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>R,B8:()=>l,C:()=>i,D_:()=>s,N9:()=>x,O7:()=>B,Qw:()=>c,Tl:()=>f,X_:()=>w,e$:()=>m,eL:()=>d,hM:()=>y,hZ:()=>a,hs:()=>p,kN:()=>M,l:()=>A,lw:()=>h,mg:()=>u,o1:()=>S,sC:()=>_,t2:()=>T,t5:()=>P,tZ:()=>C,ut:()=>X});var r=e(51850),o=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function a(t,n,e,r,o,i,a,s,u,c,l,h,f,p,m,d,M){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t[9]=l,t[10]=h,t[11]=f,t[12]=p,t[13]=m,t[14]=d,t[15]=M,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[3],i=n[6],a=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=i,t[11]=n[14],t[12]=o,t[13]=a,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return l(t,n)||s(t),t}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],s=n[5],u=n[6],c=n[7],l=n[8],h=n[9],f=n[10],p=n[11],m=n[12],d=n[13],M=n[14],g=n[15],y=e*s-r*a,x=e*u-o*a,b=e*c-i*a,v=r*u-o*s,_=r*c-i*s,w=o*c-i*u,A=l*d-h*m,S=l*M-f*m,B=l*g-p*m,R=h*M-f*d,P=h*g-p*d,O=f*g-p*M;let T=y*O-x*P+b*R+v*B-_*S+w*A;return T?(T=1/T,t[0]=(s*O-u*P+c*R)*T,t[1]=(o*P-r*O-i*R)*T,t[2]=(d*w-M*_+g*v)*T,t[3]=(f*_-h*w-p*v)*T,t[4]=(u*B-a*O-c*S)*T,t[5]=(e*O-o*B+i*S)*T,t[6]=(M*b-m*w-g*x)*T,t[7]=(l*w-f*b+p*x)*T,t[8]=(a*P-s*B+c*A)*T,t[9]=(r*B-e*P-i*A)*T,t[10]=(m*_-d*b+g*y)*T,t[11]=(h*b-l*_-p*y)*T,t[12]=(s*S-a*R-u*A)*T,t[13]=(e*R-r*S+o*A)*T,t[14]=(d*x-m*v-M*y)*T,t[15]=(l*v-h*x+f*y)*T,t):null}function h(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],c=n[6],l=n[7],h=n[8],f=n[9],p=n[10],m=n[11],d=n[12],M=n[13],g=n[14],y=n[15];let x=e[0],b=e[1],v=e[2],_=e[3];return t[0]=x*r+b*s+v*h+_*d,t[1]=x*o+b*u+v*f+_*M,t[2]=x*i+b*c+v*p+_*g,t[3]=x*a+b*l+v*m+_*y,x=e[4],b=e[5],v=e[6],_=e[7],t[4]=x*r+b*s+v*h+_*d,t[5]=x*o+b*u+v*f+_*M,t[6]=x*i+b*c+v*p+_*g,t[7]=x*a+b*l+v*m+_*y,x=e[8],b=e[9],v=e[10],_=e[11],t[8]=x*r+b*s+v*h+_*d,t[9]=x*o+b*u+v*f+_*M,t[10]=x*i+b*c+v*p+_*g,t[11]=x*a+b*l+v*m+_*y,x=e[12],b=e[13],v=e[14],_=e[15],t[12]=x*r+b*s+v*h+_*d,t[13]=x*o+b*u+v*f+_*M,t[14]=x*i+b*c+v*p+_*g,t[15]=x*a+b*l+v*m+_*y,t}function f(t,n,e){const r=e[0],o=e[1],i=e[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*i+n[12],t[13]=n[1]*r+n[5]*o+n[9]*i+n[13],t[14]=n[2]*r+n[6]*o+n[10]*i+n[14],t[15]=n[3]*r+n[7]*o+n[11]*i+n[15];else{const e=n[0],a=n[1],s=n[2],u=n[3],c=n[4],l=n[5],h=n[6],f=n[7],p=n[8],m=n[9],d=n[10],M=n[11];t[0]=e,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=l,t[6]=h,t[7]=f,t[8]=p,t[9]=m,t[10]=d,t[11]=M,t[12]=e*r+c*o+p*i+n[12],t[13]=a*r+l*o+m*i+n[13],t[14]=s*r+h*o+d*i+n[14],t[15]=u*r+f*o+M*i+n[15]}return t}function p(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*i,t[9]=n[9]*i,t[10]=n[10]*i,t[11]=n[11]*i,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function m(t,n,e,r){let a=r[0],s=r[1],u=r[2],c=Math.sqrt(a*a+s*s+u*u);if(c<=(0,o.FD)())return void i(t,n);c=1/c,a*=c,s*=c,u*=c;const l=Math.sin(e),h=Math.cos(e),f=1-h,p=n[0],m=n[1],d=n[2],M=n[3],g=n[4],y=n[5],x=n[6],b=n[7],v=n[8],_=n[9],w=n[10],A=n[11],S=a*a*f+h,B=s*a*f+u*l,R=u*a*f-s*l,P=a*s*f-u*l,O=s*s*f+h,T=u*s*f+a*l,X=a*u*f+s*l,C=s*u*f-a*l,Y=u*u*f+h;t[0]=p*S+g*B+v*R,t[1]=m*S+y*B+_*R,t[2]=d*S+x*B+w*R,t[3]=M*S+b*B+A*R,t[4]=p*P+g*O+v*T,t[5]=m*P+y*O+_*T,t[6]=d*P+x*O+w*T,t[7]=M*P+b*O+A*T,t[8]=p*X+g*C+v*Y,t[9]=m*X+y*C+_*Y,t[10]=d*X+x*C+w*Y,t[11]=M*X+b*C+A*Y,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function d(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[4],a=n[5],s=n[6],u=n[7],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=i*o+c*r,t[5]=a*o+l*r,t[6]=s*o+h*r,t[7]=u*o+f*r,t[8]=c*o-i*r,t[9]=l*o-a*r,t[10]=h*o-s*r,t[11]=f*o-u*r,t}function M(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function g(t,n,e){if(0===n)return s(t);let r=e[0],i=e[1],a=e[2],u=Math.sqrt(r*r+i*i+a*a);if(u<=(0,o.FD)())return null;u=1/u,r*=u,i*=u,a*=u;const c=Math.sin(n),l=Math.cos(n),h=1-l;return t[0]=r*r*h+l,t[1]=i*r*h+a*c,t[2]=a*r*h-i*c,t[3]=0,t[4]=r*i*h-a*c,t[5]=i*i*h+l,t[6]=a*i*h+r*c,t[7]=0,t[8]=r*a*h+i*c,t[9]=i*a*h-r*c,t[10]=a*a*h+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],s=r+r,u=o+o,c=i+i,l=r*s,h=r*u,f=r*c,p=o*u,m=o*c,d=i*c,M=a*s,g=a*u,y=a*c;return t[0]=1-(p+d),t[1]=h+y,t[2]=f-g,t[3]=0,t[4]=h-y,t[5]=1-(l+d),t[6]=m+M,t[7]=0,t[8]=f+g,t[9]=m-M,t[10]=1-(l+p),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const v=(0,r.vt)();function _(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function w(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],s=n[6],u=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+o*o),t[1]=Math.sqrt(i*i+a*a+s*s),t[2]=Math.sqrt(u*u+c*c+l*l),t}function A(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function S(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3],u=o+o,c=i+i,l=a+a,h=o*u,f=o*c,p=o*l,m=i*c,d=i*l,M=a*l,g=s*u,y=s*c,x=s*l,b=r[0],v=r[1],_=r[2];return t[0]=(1-(m+M))*b,t[1]=(f+x)*b,t[2]=(p-y)*b,t[3]=0,t[4]=(f-x)*v,t[5]=(1-(h+M))*v,t[6]=(d+g)*v,t[7]=0,t[8]=(p+y)*_,t[9]=(d-g)*_,t[10]=(1-(h+m))*_,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function B(t,n,e,r,o){const i=n[0],a=n[1],s=n[2],u=n[3],c=i+i,l=a+a,h=s+s,f=i*c,p=i*l,m=i*h,d=a*l,M=a*h,g=s*h,y=u*c,x=u*l,b=u*h,v=r[0],_=r[1],w=r[2],A=o[0],S=o[1],B=o[2],R=(1-(d+g))*v,P=(p+b)*v,O=(m-x)*v,T=(p-b)*_,X=(1-(f+g))*_,C=(M+y)*_,Y=(m+x)*w,q=(M-y)*w,N=(1-(f+d))*w;return t[0]=R,t[1]=P,t[2]=O,t[3]=0,t[4]=T,t[5]=X,t[6]=C,t[7]=0,t[8]=Y,t[9]=q,t[10]=N,t[11]=0,t[12]=e[0]+A-(R*A+T*S+Y*B),t[13]=e[1]+S-(P*A+X*S+q*B),t[14]=e[2]+B-(O*A+C*S+N*B),t[15]=1,t}function R(t,n,e,r,o,i,a){const s=1/(e-n),u=1/(o-r),c=1/(i-a);return t[0]=2*i*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*u,t[6]=0,t[7]=0,t[8]=(e+n)*s,t[9]=(o+r)*u,t[10]=(a+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*i*2*c,t[15]=0,t}function P(t,n,e,r){const i=n[0],a=n[1],u=n[2];let c=i-e[0],l=a-e[1],h=u-e[2];const f=(0,o.FD)();if(Math.abs(c)<f&&Math.abs(l)<f&&Math.abs(h)<f)return void s(t);let p=1/Math.sqrt(c*c+l*l+h*h);c*=p,l*=p,h*=p;const m=r[0],d=r[1],M=r[2];let g=d*h-M*l,y=M*c-m*h,x=m*l-d*c;p=Math.sqrt(g*g+y*y+x*x),p?(p=1/p,g*=p,y*=p,x*=p):(g=0,y=0,x=0);let b=l*x-h*y,v=h*g-c*x,_=c*y-l*g;p=Math.sqrt(b*b+v*v+_*_),p?(p=1/p,b*=p,v*=p,_*=p):(b=0,v=0,_=0),t[0]=g,t[1]=b,t[2]=c,t[3]=0,t[4]=y,t[5]=v,t[6]=l,t[7]=0,t[8]=x,t[9]=_,t[10]=h,t[11]=0,t[12]=-(g*i+y*a+x*u),t[13]=-(b*i+v*a+_*u),t[14]=-(c*i+l*a+h*u),t[15]=1}function O(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function X(t){const n=(0,o.FD)(),e=t[0],r=t[1],i=t[2],a=t[4],s=t[5],u=t[6],c=t[8],l=t[9],h=t[10];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(r*r+s*s+l*l))<=n&&Math.abs(1-(i*i+u*u+h*h))<=n}function C(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const Y=h,q=O;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],s=n[5],u=n[6],c=n[7],l=n[8],h=n[9],f=n[10],p=n[11],m=n[12],d=n[13],M=n[14],g=n[15];return t[0]=s*(f*g-p*M)-h*(u*g-c*M)+d*(u*p-c*f),t[1]=-(r*(f*g-p*M)-h*(o*g-i*M)+d*(o*p-i*f)),t[2]=r*(u*g-c*M)-s*(o*g-i*M)+d*(o*c-i*u),t[3]=-(r*(u*p-c*f)-s*(o*p-i*f)+h*(o*c-i*u)),t[4]=-(a*(f*g-p*M)-l*(u*g-c*M)+m*(u*p-c*f)),t[5]=e*(f*g-p*M)-l*(o*g-i*M)+m*(o*p-i*f),t[6]=-(e*(u*g-c*M)-a*(o*g-i*M)+m*(o*c-i*u)),t[7]=e*(u*p-c*f)-a*(o*p-i*f)+l*(o*c-i*u),t[8]=a*(h*g-p*d)-l*(s*g-c*d)+m*(s*p-c*h),t[9]=-(e*(h*g-p*d)-l*(r*g-i*d)+m*(r*p-i*h)),t[10]=e*(s*g-c*d)-a*(r*g-i*d)+m*(r*c-i*s),t[11]=-(e*(s*p-c*h)-a*(r*p-i*h)+l*(r*c-i*s)),t[12]=-(a*(h*M-f*d)-l*(s*M-u*d)+m*(s*f-u*h)),t[13]=e*(h*M-f*d)-l*(r*M-o*d)+m*(r*f-o*h),t[14]=-(e*(s*M-u*d)-a*(r*M-o*d)+m*(r*u-o*s)),t[15]=e*(s*f-u*h)-a*(r*f-o*h)+l*(r*u-o*s),t},copy:i,determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],h=t[10],f=t[11],p=t[12],m=t[13],d=t[14],M=t[15];return(n*a-e*i)*(h*M-f*d)-(n*s-r*i)*(l*M-f*m)+(n*u-o*i)*(l*d-h*m)+(e*s-r*a)*(c*M-f*p)-(e*u-o*a)*(c*d-h*p)+(r*u-o*s)*(c*m-l*p)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=t[9],p=t[10],m=t[11],d=t[12],M=t[13],g=t[14],y=t[15],x=n[0],b=n[1],v=n[2],_=n[3],w=n[4],A=n[5],S=n[6],B=n[7],R=n[8],P=n[9],O=n[10],T=n[11],X=n[12],C=n[13],Y=n[14],q=n[15],N=(0,o.FD)();return Math.abs(e-x)<=N*Math.max(1,Math.abs(e),Math.abs(x))&&Math.abs(r-b)<=N*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-v)<=N*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(a-_)<=N*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(s-w)<=N*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(u-A)<=N*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-S)<=N*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-B)<=N*Math.max(1,Math.abs(l),Math.abs(B))&&Math.abs(h-R)<=N*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(f-P)<=N*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(p-O)<=N*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(m-T)<=N*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(d-X)<=N*Math.max(1,Math.abs(d),Math.abs(X))&&Math.abs(M-C)<=N*Math.max(1,Math.abs(M),Math.abs(C))&&Math.abs(g-Y)<=N*Math.max(1,Math.abs(g),Math.abs(Y))&&Math.abs(y-q)<=N*Math.max(1,Math.abs(y),Math.abs(q))},exactEquals:T,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,s=r+r,u=o+o,c=e*a,l=r*a,h=r*s,f=o*a,p=o*s,m=o*u,d=i*a,M=i*s,g=i*u;return t[0]=1-h-m,t[1]=l+g,t[2]=f-M,t[3]=0,t[4]=l-g,t[5]=1-c-m,t[6]=p+d,t[7]=0,t[8]=f+M,t[9]=p-d,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=v,r=-n[0],o=-n[1],i=-n[2],a=n[3],s=n[4],u=n[5],c=n[6],l=n[7],h=r*r+o*o+i*i+a*a;return h>0?(e[0]=2*(s*a+l*r+u*i-c*o)/h,e[1]=2*(u*a+l*o+c*r-s*i)/h,e[2]=2*(c*a+l*i+s*o-u*r)/h):(e[0]=2*(s*a+l*r+u*i-c*o),e[1]=2*(u*a+l*o+c*r-s*i),e[2]=2*(c*a+l*i+s*o-u*r)),b(t,n,e),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:B,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:M,fromXRotation:y,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:x,frustum:R,getRotation:A,getScale:w,getTranslation:_,hasIdentityRotation:C,identity:s,invert:l,invertOrIdentity:c,isOrthoNormal:X,lookAt:P,mul:Y,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,o,i,a){const s=1/(n-e),u=1/(r-o),c=1/(i-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*s,t[13]=(o+r)*u,t[14]=(a+i)*c,t[15]=1,t},perspective:function(t,n,e,r,o){const i=1/Math.tan(n/2);let a;return t[0]=i/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const o=Math.tan(n.upDegrees*Math.PI/180),i=Math.tan(n.downDegrees*Math.PI/180),a=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),u=2/(a+s),c=2/(o+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(o-i)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:m,rotateX:d,rotateY:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],s=n[2],u=n[3],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o-c*r,t[1]=a*o-l*r,t[2]=s*o-h*r,t[3]=u*o-f*r,t[8]=i*r+c*o,t[9]=a*r+l*o,t[10]=s*r+h*o,t[11]=u*r+f*o,t},rotateZ:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],s=n[2],u=n[3],c=n[4],l=n[5],h=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o+c*r,t[1]=a*o+l*r,t[2]=s*o+h*r,t[3]=u*o+f*r,t[4]=c*o-i*r,t[5]=l*o-a*r,t[6]=h*o-s*r,t[7]=f*o-u*r,t},scale:p,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:O,targetTo:function(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=r[0],u=r[1],c=r[2];let l=o-e[0],h=i-e[1],f=a-e[2],p=l*l+h*h+f*f;p>0&&(p=1/Math.sqrt(p),l*=p,h*=p,f*=p);let m=u*f-c*h,d=c*l-s*f,M=s*h-u*l;return p=m*m+d*d+M*M,p>0&&(p=1/Math.sqrt(p),m*=p,d*=p,M*=p),t[0]=m,t[1]=d,t[2]=M,t[3]=0,t[4]=h*M-f*d,t[5]=f*m-l*M,t[6]=l*d-h*m,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=o,t[13]=i,t[14]=a,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>i,C:()=>a,Cc:()=>B,DI:()=>_,Io:()=>y,Ln:()=>g,Om:()=>A,Qr:()=>h,Re:()=>c,S8:()=>w,T9:()=>d,WQ:()=>u,Z0:()=>R,_S:()=>p,aI:()=>q,ei:()=>P,fw:()=>T,gL:()=>O,hG:()=>x,hZ:()=>s,hs:()=>M,jk:()=>m,lw:()=>l,m3:()=>b,oW:()=>N,t2:()=>Y,tn:()=>f,ze:()=>v});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function d(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function x(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function b(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function _(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function w(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function A(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t}function B(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function R(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function P(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function O(t,n,e){return T(t,n,e[0],e[1],e[2],e[3])}function T(t,n,e,r,o,i){const a=n[0],s=n[1],u=n[2],c=r*u-o*s,l=o*a-e*u,h=e*s-r*a,f=r*h-o*l,p=o*c-e*h,m=e*l-r*c,d=2*i;return t[0]=a+c*d+2*f,t[1]=s+l*d+2*p,t[2]=u+h*d+2*m,t}const X=(0,r.vt)(),C=(0,r.vt)();function Y(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function q(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],u=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function N(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const I=c,j=l,E=h,Z=y,z=x,k=i,F=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){w(X,t),w(C,n);const e=A(X,C);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,u=i*i,c=s*a,l=3*i*s,h=3*u*a,f=u*i;return t[0]=n[0]*c+e[0]*l+r[0]*h+o[0]*f,t[1]=n[1]*c+e[1]*l+r[1]*h+o[1]*f,t[2]=n[2]*c+e[2]*l+r[2]*h+o[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=o*u-i*s,l=i*a-r*u,h=r*s-o*a,f=Math.sqrt(c*c+l*l+h*h);return t[0]=c/f,t[1]=l/f,t[2]=h/f,t},direction:N,dist:Z,distance:y,div:E,divide:h,dot:A,equals:q,exactEquals:Y,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),l=a*(3-2*i);return t[0]=n[0]*s+e[0]*u+r[0]*c+o[0]*l,t[1]=n[1]*s+e[1]*u+r[1]*c+o[1]*l,t[2]=n[2]*s+e[2]*u+r[2]*c+o[2]*l,t},inverse:_,len:k,length:i,lerp:B,max:d,min:m,mul:j,multiply:l,negate:v,normalize:w,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:M,scaleAndAdd:g,set:s,sign:p,sqrDist:z,sqrLen:F,squaredDistance:x,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:I,subtract:c,transformMat3:P,transformMat4:R,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:O,transformQuatValues:T},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,k,"jb",0,I,"lo",0,z,"uE",0,F,"xg",0,Z])},78955(t,n,e){e.d(n,{Bw:()=>M,C:()=>o,Cc:()=>b,LI:()=>f,Om:()=>x,S8:()=>y,T9:()=>h,WQ:()=>a,Z0:()=>v,aI:()=>w,hG:()=>d,hZ:()=>i,hs:()=>p,jk:()=>l,m3:()=>g,t2:()=>_});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function l(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function h(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function M(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function y(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function b(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=s+r*(e[3]-s),t}function v(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function _(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function w(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=n[0],u=n[1],c=n[2],l=n[3],h=(0,r.FD)();return Math.abs(e-s)<=h*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-u)<=h*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-c)<=h*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-l)<=h*Math.max(1,Math.abs(a),Math.abs(l))}const A=s,S=u,B=c,R=m,P=d,O=M,T=g;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:R,distance:m,div:B,divide:c,dot:x,equals:w,exactEquals:_,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:O,length:M,lerp:b,max:h,min:l,mul:S,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const e=r.Ov;let o,i,a,s,u,c;do{o=2*e()-1,i=2*e()-1,u=o*o+i*i}while(u>=1);do{a=2*e()-1,s=2*e()-1,c=a*a+s*s}while(c>=1);const l=Math.sqrt((1-u)/c);return t[0]=n*o,t[1]=n*i,t[2]=n*a*l,t[3]=n*s*l,t},round:f,scale:p,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:i,sqrDist:P,sqrLen:T,squaredDistance:d,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:s,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=e[3],l=c*r+s*i-u*o,h=c*o+u*r-a*i,f=c*i+a*o-s*r,p=-a*r-s*o-u*i;return t[0]=l*c+p*-a+h*-u-f*-s,t[1]=h*c+p*-s+f*-a-l*-u,t[2]=f*c+p*-u+l*-s-h*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,n,e){e.d(n,{wq:()=>s});var r=e(4576),o=e(21818),i=(e(44208),e(15142)),a=e(11006);class s{constructor(t=9,n){this._compareMinX=f,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),v.prune(),_.prune(),w.prune(),A.prune()}all(t){u(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(x(t,e))for(v.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],a=e.leaf?r(i):i;x(t,a)&&(e.leaf?n(i):y(t,a)?u(i,n):v.push(i))}e=v.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!x(t,n))return!1;for(v.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(x(t,i)){if(n.leaf||y(t,i))return!0;v.push(o)}}n=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let n,e=this._data,i=null,a=0,s=!1;const u=this._toBBox(t);for(w.clear(),A.clear();e||w.length>0;){if(e||(e=w.pop(),i=w.data[w.length-1],a=A.pop()??0,s=!0),e.leaf&&(n=(0,r.qh)(e.children,(0,o.z)(t),e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),w.push(e),this._condense(w),this;s||e.leaf||!y(e,u)?i?(a++,e=i.children[a],s=!1):e=null:(w.push(e),A.push(a),a=0,i=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new R(t.slice(n,e+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new P([]);a.height=r;const s=Math.ceil(o/i),u=s*Math.ceil(Math.sqrt(i));b(t,n,e,u,this._compareMinX);for(let o=n;o<=e;o+=u){const n=Math.min(o+u-1,e);b(t,o,n,s,this._compareMinY);for(let e=o;e<=n;e+=s){const o=Math.min(e+s-1,n);a.children.push(this._build(t,e,o,r-1))}}return c(a,this._toBBox),a}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);w.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,a=n.children.length;i<a;i++){const a=n.children[i],s=m(a),u=M(t,a)-s;u<o?(o=u,r=s<r?s:r,e=a):u===o&&s<r&&(r=s,e=a)}n=e||n.children[0]}return n}(o,this._data,n,w);for(i.children.push(t),h(i,o);n>=0&&w.data[n].children.length>this._maxEntries;)this._split(w,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)h(n.data[r],t)}(o,w,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const a=e.children.splice(i,e.children.length-i),s=e.leaf?new R(a):new P(a);s.height=e.height,c(e,this._toBBox),c(s,this._toBBox),n?t.data[n-1].children.push(s):this._splitRoot(e,s)}_splitRoot(t,n){this._data=new P([t,n]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let a=n;a<=e-n;a++){const n=l(t,0,a,this._toBBox),s=l(t,a,e,this._toBBox),u=g(n,s),c=m(n)+m(s);u<r?(r=u,i=a,o=c<o?c:o):u===r&&c<o&&(o=c,i=a)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:f,o=t.leaf?this._compareMinY:p;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=l(t,0,n,o),a=l(t,e-n,e,o);let s=d(i)+d(a);for(let r=n;r<e-n;r++){const n=t.children[r];h(i,t.leaf?o(n):n),s+=d(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];h(a,t.leaf?o(n):n),s+=d(a)}return s}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else c(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function u(t,n){let e=t;for(_.clear();e;){if(!0===e.leaf)for(const t of e.children)n((0,o.z)(t));else _.pushArray(e.children);e=_.pop()??null}}function c(t,n){l(t,0,t.children.length,n,t)}function l(t,n,e,r,o){o||(o=new R([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=n;a<e;a++)i=t.children[a],h(o,t.leaf?r(i):i);return o}function h(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function f(t,n){return t.minX-n.minX}function p(t,n){return t.minY-n.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function M(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function g(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function y(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function x(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function b(t,n,e,r,o){const i=[n,e];for(;i.length;){const n=i.pop(),e=i.pop();if(n-e<=r)continue;const s=e+Math.ceil((n-e)/r/2)*r;(0,a.q)(t,s,e,n,o),i.push(e,s,s,n)}}const v=new i.A,_=new i.A,w=new i.A,A=new i.A({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class R extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class P extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,n,e){e.d(n,{A:()=>M});var r,o=e(5482),i=e(4576),a=e(4718),s=e(91429),u=e(5443),c=e(91075),l=e(86738),h=e(16930),f=e(90634),p=e(47610),m=e(56993),d=e(43937);let M=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:o}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return o??=h.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:o}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:o}=this;return new r({points:(0,a.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return null!=n==(null!=e)&&!(null!=n&&null!=e&&!n.equals(e))&&(0,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new l.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,m.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,s.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,o.Cg)([(0,s.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],M.prototype,"points",void 0),(0,o.Cg)([(0,d.K)("points")],M.prototype,"writePoints",null),M=r=(0,o.Cg)([(0,s.$K)("esri.geometry.Multipoint")],M),M.prototype.toJSON.isDefaultToJSON=!0},82799(t,n,e){e.d(n,{A:()=>m});var r,o=e(5482),i=e(4718),a=e(91429),s=e(5443),u=e(91075),c=e(86738),l=e(16930),h=e(90634),f=e(56993),p=e(43937);let m=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:o}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return o??=l.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:o}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,h.Z3)(this),{spatialReference:n}=this;return t?new s.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,o=this.hasM;return r&&!o?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):o&&!r?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&o?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new c.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,o.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,o.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),s=e;return s[0]=-r,s[4]=-i*o,s[8]=a*o,s[12]=0,s[1]=o,s[5]=-i*r,s[9]=a*r,s[13]=0,s[2]=0,s[6]=a,s[10]=i,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(49208),u=e(21325);function c(t,n,e,r){const i=(0,s.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,m=i.dest.spatialReferenceId;if(c===m&&!l(m)&&(0!==c||(0,u.aI)(t,r)))return(0,o.kN)(e,n),!0;if(l(m)){const t=s.w5[c][10],r=s.w5[10][m];return null!=t&&null!=r&&(t(n,0,f,0),r(f,0,p,0),a(h*f[0],h*f[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=l(c);if((3===m||11===m||2===m||5===m)&&(2===c||d||3===c||5===c)){const t=s.w5[c][10],r=s.w5[10][m];return null!=t&&null!=r&&(t(n,0,f,0),r(f,0,p,0),d?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(h*f[0],h*f[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const h=(0,r.kU)(1),f=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>a});var r=e(51850),o=e(99917),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return s[0]=t.x,s[1]=t.y,s[2]=t.z??0,(0,i.projectBuffer)(s,t.spatialReference,0,n,e,0);const a=(0,o.tryProject)(t,e,r);return!!a&&(n[0]=a.x,n[1]=a.y,n[2]=a.z??0,!0)}const s=(0,r.vt)()},95696(t,n,e){e.d(n,{A:()=>c});var r,o=e(5482),i=e(69540),a=e(25482),s=e(91429),u=e(93223);let c=class extends((0,i.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,n,e){e.d(n,{A:()=>c});var r=e(5482),o=e(69540),i=e(25482),a=e(91429),s=e(51850),u=e(93223);let c=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},60408(t,n,e){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function i(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function s(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?i(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":s(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function l(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function h(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(n,{$B:()=>c,Bi:()=>s,Pv:()=>l,Rg:()=>a,U9:()=>o,W0:()=>h,ZC:()=>r,fT:()=>i,uW:()=>u})},38419(t,n,e){e.r(n),e.d(n,{default:()=>s});var r=e(44208),o=e(75503),i=e(95696),a=e(72258);class s{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.wq;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,s=(0,a.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some(t=>!t.faces)?{position:s.buffer}:{position:s.buffer,components:t.components.map(t=>t.faces)}:null}(t),s=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return u().fromJSON(s)}createIndexThread(t){const n=u();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=c(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map(t=>new Uint32Array(t))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=c(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function u(){return new o.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141(t,n,e){e.d(n,{$5:()=>_,CN:()=>y,KM:()=>A,Mv:()=>B,X4:()=>x,gr:()=>v,qs:()=>w,si:()=>b,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),s=e(9093),u=e(35522),c=e(51850),l=e(73941),h=e(48353),f=e(9762),p=(e(79258),e(21325)),m=e(28735),d=e(13030),M=e(73354),g=e(50867);function y(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function x(t,n,e,r,o,i){return P(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function b(t,n,e,r,o,i){return P(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function _(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function w(t,n,e){return(0,o.Ge)(C,e),(0,M.b)(n,t,C),(0,r.or)(C)&&(0,M.n)(n,n),n}function A(t,n,e){return(0,o.z0)(C,e),(0,g.t)(n,t,C),(0,r.or)(C)&&(0,M.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!P(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function B(t,n,e,r,o,i){if(!P(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function R(t,n,e,r,i){switch((0,h.l)(r,e,X,r),1===t&&(0,a.B8)(X,X),n){case 0:return(0,o.Ge)(i,X);case 1:return(0,o.z0)(i,X)}}function P(t,n,e,r,o,i,a,s){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,O),n.getVec(r,T),(0,u.ei)(T,T,R(t,e,O,a,C)),s.setVec(r,T);else for(let o=0;o<c;o++){i.getVec(o,O),n.getVec(o,T);const c=(0,m.jg)(r.get(o,1));let l=Math.cos(c);1===e!=(0===t)&&(l=1/l),R(t,e,O,a,C),0===t?(C[0]*=l,C[1]*=l,C[2]*=l,C[3]*=l,C[4]*=l,C[5]*=l):(C[0]*=l,C[3]*=l,C[6]*=l,C[1]*=l,C[4]*=l,C[7]*=l),(0,u.ei)(T,T,C),(0,u.S8)(T,T),s.setVec(o,T)}return s}const O=(0,c.vt)(),T=(0,c.vt)(),X=(0,s.vt)(),C=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>v,p5:()=>b,xK:()=>R});var r=e(53966),o=e(34727),i=e(86211),a=e(77690),s=e(29242),u=e(58083),c=e(9093),l=e(35522),h=e(51850),f=e(73941),p=e(98764),m=e(48353),d=e(65806),M=e(27615),g=e(73354),y=e(22141);const x=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function b(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,l.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,s=C;if(!(0,m.l)(r,a,s,o))return!1;const c=(0,u.B8)(C,s);return null!=c&&((0,l.Z0)(t,i,c),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,s=(0,M.Hq)(r)?o:null,h=S(t.spatialReference,e,3);if((0,M.yJ)(r,n)&&(!s||(0,u.t2)(s.localMatrix,c.zK))&&B(h)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=_(n,i);if(!(0,m.l)(n,r,P,a))return(0,y.CN)(x(),n,a),null;if(e&&(0,u.lw)(P,P,e.localMatrix),!(0,m.l)(n,o,O,a))return(0,y.CN)(x(),a,n),null;(0,u.B8)(O,O);const s=(0,u.lw)(P,O,P);return A(s,n,i,3),w(t,s)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=_(t,i);if(!(0,m.l)(t,r,P,a))return(0,y.CN)(x(),t,a),null;e&&(0,u.lw)(P,P,e.localMatrix),A(P,t,i,1);const s=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,g.t)(r,t,n);const i=new Float64Array(t.length);return(0,y.$5)(r,o,i,e)?i:((0,y.CN)(x(),o,e),null)}(n.position,P,t,s,a);if(!c)return null;const h=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,y.qs)(o,a,i),(0,y.si)(a,t,n,e,r,a)?a:((0,y.CN)(x(),r,n),null)}(c,t,s,a,n.normal,P);if(n.normal&&!h)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,y.KM)(o,a,i),(0,y.Mv)(a,t,n,e,r,a)?a:((0,y.CN)(x(),r,n),null)}(c,t,s,a,n.tangent,P);if(n.tangent&&!f)return null;if(o){const t=(0,l.ze)(X,o);(0,g.a)(c,c,t)}return{position:c,normal:h,tangent:f}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const s=_(n,i);if(!(0,m.l)(n,o,P,s))return(0,y.CN)(x(),n,s),null;const c=1/S(n,i,2);(0,u.hs)(P,P,[c,c,c]);const l=(0,u.B8)(O,P),{position:h,normal:f,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,g.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=w(t,e.localMatrix);return(0,g.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(h.length),M=function(t,n,e,r,o){const i=(0,y.gr)(t,n,r,o);if(!i)return(0,y.CN)(x(),n,o),null;const a=new Float64Array(i.length);return(0,g.t)(a,i,e),a}(h,n,l,d,s);if(!M)return null;const b=(0,a.Ge)(T,l),v=function(t,n,e,r,o,i,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,y.X4)(t,n,e,r,o,s)?((0,g.b)(s,s,i),s):((0,y.CN)(x(),e,o),null)}(f,h,n,d,s,b,f!==t.normal?f:void 0);if(!v&&f)return null;const A=function(t,n,e,r,o,i,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,y.xA)(t,n,e,r,o,s)?((0,g.b)(s,s,i,4),s):((0,y.CN)(x(),e,o),null)}(p,h,n,d,s,b,p!==t.tangent?p:void 0);return!A&&p?null:{position:M,normal:v,tangent:A}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=S(e,i,3),s=r||!B(a)?(0,u.C)(P,n?.localMatrix??c.zK):null;s&&A(s,e,i,3);const{position:h,normal:f,tangent:p}=s?w(t,s):t,m=i?.allowBufferReuse,d=m?h:new Float64Array(h.length);let M=h;if(r&&(M=(0,g.a)(d,M,r)),o){const t=(0,l.ze)(X,o);M=(0,g.a)(d,M,t)}return{position:M!==t.position||m?M:M.slice(),normal:f!==t.normal||m?f:f?.slice(),tangent:p!==t.tangent||m?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function _(t,n){return n?.useEllipsoid&&(0,f.B3)(t)?p.Y0:(0,p.lO)(t)}function w(t,n){const e=new Float64Array(t.position.length);(0,g.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,y.qs)(t.normal,r,n),o&&t.tangent&&(0,y.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function A(t,n,e,r){const o=S(n,e,r);B(o)||(0,u.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let s=R(i,t);r||!i||B(s)||(x().warn("source unit conversion not supported"),s=1);let u=1/R(a,t);return o||!a||B(u)||(x().warn("target unit conversion not supported"),u=1),s*u}function B(t){return(0,o.Io)(t,1)}function R(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const P=(0,c.vt)(),O=(0,c.vt)(),T=(0,s.vt)(),X=(0,h.vt)(),C=(0,c.vt)()},27615(t,n,e){e.d(n,{CK:()=>u,Hq:()=>s,MW:()=>c,TE:()=>l,yJ:()=>h});var r=e(35522),o=e(86738),i=e(95696),a=e(18251);function s(t){return null!=t.origin}function u(t){return s(t.vertexSpace)}function c(t,n){if(!s(t))return null;const[e,r,i]=t.origin;return new o.A({x:e,y:r,z:i,spatialReference:n})}function l(t,n){const{x:e,y:r,z:o,spatialReference:s}=t,u=[e,r,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(s))?new a.A({origin:u}):new i.A({origin:u})}function h(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,r.t2)(t.origin,n.origin))}}}]);