@arcgis/core 5.2.0-next.6 → 5.2.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WebLinkChart.d.ts +1 -1
- package/WebMap.d.ts +2 -2
- package/WebScene.d.ts +3 -3
- package/arcade.d.ts +9 -9
- package/arcgisGlobal.d.ts +8 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/07cc5743cb6a9fd68adb.js +1 -0
- package/assets/esri/core/workers/chunks/09d0e430c66788a2626f.js +640 -0
- package/assets/esri/core/workers/chunks/{829a0583b8a228c65379.js → 0b169bb1969f86232a1a.js} +1 -1
- package/assets/esri/core/workers/chunks/0cbd7f5fe24271942abd.js +1 -0
- package/assets/esri/core/workers/chunks/{20e2d11f6de438ee883e.js → 0ded58ccb83f624f1460.js} +1 -1
- package/assets/esri/core/workers/chunks/0ecc1bc1686844cdd60e.js +1 -0
- package/assets/esri/core/workers/chunks/{d1ac98f48bb6d43d97c8.js → 0f3654c8157ec8f22869.js} +3 -3
- package/assets/esri/core/workers/chunks/0f75c19d8e296a32e329.js +1 -0
- package/assets/esri/core/workers/chunks/174cc2e69e5b5a13d880.js +1 -0
- package/assets/esri/core/workers/chunks/18f980465db5a86153d1.js +1 -0
- package/assets/esri/core/workers/chunks/1996f0a930abdd97b855.js +1 -0
- package/assets/esri/core/workers/chunks/1c8436b27a3d3cde5cfc.js +1 -0
- package/assets/esri/core/workers/chunks/1cb1f125dccbf8c8cac9.js +1 -0
- package/assets/esri/core/workers/chunks/1dd06335bb2d35c66339.js +1 -0
- package/assets/esri/core/workers/chunks/1f289aa69dd6b6be534a.js +1 -0
- package/assets/esri/core/workers/chunks/2185e8a52c5e29d46680.js +1 -0
- package/assets/esri/core/workers/chunks/{bf706a5d065a357de51b.js → 2413b383b7f2bdcd4ced.js} +1 -1
- package/assets/esri/core/workers/chunks/{da29cf0e64065631a470.js → 24810c36ae09bb4e83dc.js} +1 -1
- package/assets/esri/core/workers/chunks/26583db2af1a1cc456e5.js +1 -0
- package/assets/esri/core/workers/chunks/274b82cb183ddd0042f3.js +1 -0
- package/assets/esri/core/workers/chunks/277718031c903da2b3b9.js +1 -0
- package/assets/esri/core/workers/chunks/27c6def22c2b0791ce9e.js +1 -0
- package/assets/esri/core/workers/chunks/{7ed5b669010db58845f8.js → 294f2803aac000c99693.js} +1 -1
- package/assets/esri/core/workers/chunks/{093f27e4e4781870b431.js → 297ae764445e6f73a5ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{be0eab592db0e651b023.js → 2b814bb51704a5b4fdc2.js} +6 -6
- package/assets/esri/core/workers/chunks/2c9ba638d1f31c82f9f5.js +1 -0
- package/assets/esri/core/workers/chunks/2d2895f1fdf44d212a4d.js +1 -0
- package/assets/esri/core/workers/chunks/2dbc2fd0f2dde505c465.js +1 -0
- package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +1 -0
- package/assets/esri/core/workers/chunks/2e6382d50bf012064eae.js +1 -0
- package/assets/esri/core/workers/chunks/30f1909c5ef1835b8507.js +1 -0
- package/assets/esri/core/workers/chunks/3172d7fc23787a287191.js +1 -0
- package/assets/esri/core/workers/chunks/31918a0d9886dedf385f.js +1 -0
- package/assets/esri/core/workers/chunks/{1c029b03ed836f393a50.js → 3248001d9dfb9153699e.js} +1 -1
- package/assets/esri/core/workers/chunks/3297658ccd8d4b9ce733.js +1 -0
- package/assets/esri/core/workers/chunks/{716a4d7e8b908b81870b.js → 32f26757e36704923286.js} +1 -1
- package/assets/esri/core/workers/chunks/3529afab0c2444275d91.js +1 -0
- package/assets/esri/core/workers/chunks/36dac6ab51d9dbdd091d.js +1 -0
- package/assets/esri/core/workers/chunks/{a2159df718a7f2f59271.js → 38a2f34661563c7c29c1.js} +1 -1
- package/assets/esri/core/workers/chunks/390fda094fa8695d98cf.js +1 -0
- package/assets/esri/core/workers/chunks/39596715e84d0da2f803.js +30 -0
- package/assets/esri/core/workers/chunks/398eb3100a282e4736bb.js +1 -0
- package/assets/esri/core/workers/chunks/{6af77529c977d034d287.js → 3b15933f65f59625a650.js} +1 -1
- package/assets/esri/core/workers/chunks/3b3f91a61e3f29af1fb2.js +1 -0
- package/assets/esri/core/workers/chunks/{f815106d439ff1f76e51.js → 3b837b512999e6ab24bc.js} +1 -1
- package/assets/esri/core/workers/chunks/3d20c86f1fe877bf884b.js +1 -0
- package/assets/esri/core/workers/chunks/{a96c7432ca97cbeef4b8.js → 3db898a38a7c5f0efb48.js} +1 -1
- package/assets/esri/core/workers/chunks/3dc5fbecc427df1fd827.js +1 -0
- package/assets/esri/core/workers/chunks/3e65b4b18760bde8ceee.js +1 -0
- package/assets/esri/core/workers/chunks/3ff7aa216cd794d951e8.js +1 -0
- package/assets/esri/core/workers/chunks/{8e1865392681d390ab2e.js → 401ee7fa500adad77db1.js} +1 -1
- package/assets/esri/core/workers/chunks/{60915a3708a34da1977e.js → 426156137f279d979ddd.js} +1 -1
- package/assets/esri/core/workers/chunks/4517630bf869205bab87.js +1 -0
- package/assets/esri/core/workers/chunks/{b002304a45856b024b46.js → 4714241189c13d0db897.js} +1 -1
- package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +1 -0
- package/assets/esri/core/workers/chunks/49308bdc36373555f1af.js +1 -0
- package/assets/esri/core/workers/chunks/5075e85e1eafd431a8c0.js +1 -0
- package/assets/esri/core/workers/chunks/5121768c70f1e03b685c.js +1 -0
- package/assets/esri/core/workers/chunks/5201105ca11a2d450460.js +1 -0
- package/assets/esri/core/workers/chunks/{0e774f14ba274832f390.js → 520e0e5307eef27becc6.js} +1 -1
- package/assets/esri/core/workers/chunks/528ed0bd8dc149ead023.js +1 -0
- package/assets/esri/core/workers/chunks/52f354bf80ee5ab0379a.js +1 -0
- package/assets/esri/core/workers/chunks/538537f9bc866d9caa75.js +1 -0
- package/assets/esri/core/workers/chunks/53d165b4f30fd64e5d8a.js +1 -0
- package/assets/esri/core/workers/chunks/58a7cdebc3d182c15ec6.js +1 -0
- package/assets/esri/core/workers/chunks/58ac245ff7fb57c1004f.js +1 -0
- package/assets/esri/core/workers/chunks/58acc18b92533166135d.js +1 -0
- package/assets/esri/core/workers/chunks/597aa39cdb5366ef9a74.js +1 -0
- package/assets/esri/core/workers/chunks/5bfae465872760e7af6d.js +1 -0
- package/assets/esri/core/workers/chunks/{cda99b543a0e1979346c.js → 5cb1b950249d651f3837.js} +1 -1
- package/assets/esri/core/workers/chunks/5cb274e5759f7ca0d4ed.js +1 -0
- package/assets/esri/core/workers/chunks/5d3ddbf94539cb4f493e.js +1 -0
- package/assets/esri/core/workers/chunks/{c83fea0d0ebd0d8e43fd.js → 5d62d1920e3e35fc0192.js} +1 -1
- package/assets/esri/core/workers/chunks/5dd441db1e74dc9b56e9.js +1 -0
- package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js → 62e77e3c5ca9b4887923.js} +2 -2
- package/assets/esri/core/workers/chunks/630ad47857de3cf726d1.js +1 -0
- package/assets/esri/core/workers/chunks/64114a7d2da162987958.js +1 -0
- package/assets/esri/core/workers/chunks/6821462e5c1e9c76010a.js +1 -0
- package/assets/esri/core/workers/chunks/684d3cb4fb233180b2d0.js +1 -0
- package/assets/esri/core/workers/chunks/686c51fd2144e132783e.js +1 -0
- package/assets/esri/core/workers/chunks/68f9b2da1fd08785320f.js +2 -0
- package/assets/esri/core/workers/chunks/69e98de578f467a35054.js +1 -0
- package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
- package/assets/esri/core/workers/chunks/6aabde21b0b376d95888.js +1 -0
- package/assets/esri/core/workers/chunks/6c6396bfcdab12e68deb.js +1 -0
- package/assets/esri/core/workers/chunks/6d616b66fb32904b55a1.js +1 -0
- package/assets/esri/core/workers/chunks/{bcb021a167580bb1619f.js → 6ef3b8d67b498d655a99.js} +1 -1
- package/assets/esri/core/workers/chunks/6f125b4ed06c0022dee6.js +1 -0
- package/assets/esri/core/workers/chunks/6f4825c3ef1fe202ab82.js +1 -0
- package/assets/esri/core/workers/chunks/6f5d61f734ec40dafabb.js +1 -0
- package/assets/esri/core/workers/chunks/{fce7995c26953bfd8d3d.js → 70229007d594536ba6a3.js} +1 -1
- package/assets/esri/core/workers/chunks/71e55381fdff3fc2542e.js +1 -0
- package/assets/esri/core/workers/chunks/{5abe34bb0110694f7b42.js → 72cfb186e50537bcdd19.js} +1 -1
- package/assets/esri/core/workers/chunks/72d67cc3a382e83bf1a2.js +1 -0
- package/assets/esri/core/workers/chunks/7748743d4be047094d67.js +1 -0
- package/assets/esri/core/workers/chunks/77a4f6f224d7ca4b69f4.js +1 -0
- package/assets/esri/core/workers/chunks/78c53aeb0a408ab3c80c.js +1 -0
- package/assets/esri/core/workers/chunks/7b5c1030a7cf0f382cc4.js +1 -0
- package/assets/esri/core/workers/chunks/7cee81c5aa1e6b7d2452.js +1 -0
- package/assets/esri/core/workers/chunks/7e89cb9ff615742e0894.js +1 -0
- package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
- package/assets/esri/core/workers/chunks/{8477b5fdd99c6ac5c27b.js → 851705cf276eae8d4d37.js} +1 -1
- package/assets/esri/core/workers/chunks/{c319c3b85cdec73a9f45.js → 877c848beaf9a939862c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae74f722fb385e45fcf1.js → 893c0d28a5bf3f9f29f1.js} +1 -1
- package/assets/esri/core/workers/chunks/89e09276086745aa21fa.js +1 -0
- package/assets/esri/core/workers/chunks/{16b90d8f628a412ba4ba.js → 8a8c5e5ce457ca004687.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f55d60d3adc31283296.js → 8b0a01ebc86ab226f01f.js} +1 -1
- package/assets/esri/core/workers/chunks/{452c01cecbbd1e370098.js → 8f93e6fc11a158d4f1ee.js} +1 -1
- package/assets/esri/core/workers/chunks/93bd56396b8cd020f965.js +1 -0
- package/assets/esri/core/workers/chunks/{359d3acb3953e64e5a78.js → 93ceb74ac88ef460fe5f.js} +1 -1
- package/assets/esri/core/workers/chunks/{4e676e888a935c507d90.js → 93d4bda22bde33fafa57.js} +1 -1
- package/assets/esri/core/workers/chunks/957f7b8de4aecb6f644e.js +1 -0
- package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js → 9629601de5e44ffe90ea.js} +2 -2
- package/assets/esri/core/workers/chunks/976ab2be6c244768c08a.js +1 -0
- package/assets/esri/core/workers/chunks/{e785f76c1a75cb1d1e1f.js → 99101789035f1787c630.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbb23db01f3cf629d32e.js → 992a90ecbab931198fd0.js} +1 -1
- package/assets/esri/core/workers/chunks/99e5296192ab98fd0d99.js +1 -0
- package/assets/esri/core/workers/chunks/9d5f7573bfe3b051daf1.js +1 -0
- package/assets/esri/core/workers/chunks/a0c00c6fe60db49b3ab9.js +1 -0
- package/assets/esri/core/workers/chunks/a2247f4c3116efb16c4f.js +1 -0
- package/assets/esri/core/workers/chunks/a4245bd4e67a428fd835.js +1 -0
- package/assets/esri/core/workers/chunks/a442534ac0956a68b769.js +1 -0
- package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +1 -0
- package/assets/esri/core/workers/chunks/a4e9a17dacbb52444d75.js +1 -0
- package/assets/esri/core/workers/chunks/{8bdca6f06c8b5fedd917.js → a5abba59e738c3240c22.js} +1 -1
- package/assets/esri/core/workers/chunks/a8ec5b85c2fa6fb4f391.js +1 -0
- package/assets/esri/core/workers/chunks/{f5a2c28dc26c065ea355.js → a9a1293b1d5302fb3b54.js} +28 -30
- package/assets/esri/core/workers/chunks/a9fc53ae040320e49834.js +1 -0
- package/assets/esri/core/workers/chunks/aa118c1bcd922b8ac328.js +1 -0
- package/assets/esri/core/workers/chunks/aae0049c2c3e15a813e8.js +1 -0
- package/assets/esri/core/workers/chunks/ac33b10fe65f9e9e824f.js +1 -0
- package/assets/esri/core/workers/chunks/adc32f6b45ea3026fc34.js +1 -0
- package/assets/esri/core/workers/chunks/af31e62499d45bdab3c3.js +1 -0
- package/assets/esri/core/workers/chunks/b22a1c98271c2e4d8808.js +1 -0
- package/assets/esri/core/workers/chunks/{9f4681713f03365a2a53.js → b666027b9022fa346a79.js} +1 -1
- package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
- package/assets/esri/core/workers/chunks/b9bdb1f05e904c3655e4.js +1 -0
- package/assets/esri/core/workers/chunks/c0cbc50e5afd68bd485c.js +1 -0
- package/assets/esri/core/workers/chunks/c2a65de34f6a6c89c652.js +1 -0
- package/assets/esri/core/workers/chunks/c357c0a08b99c1e7f290.js +1 -0
- package/assets/esri/core/workers/chunks/{4a23b27bfbcfa08fd9a7.js → c3cf9e6e91f71c9cc5f3.js} +1 -1
- package/assets/esri/core/workers/chunks/c3ff2ff0a86a9143d7a5.js +1 -0
- package/assets/esri/core/workers/chunks/{3e3134e4bc34d4e07179.js → c424a66f1546275e2bcb.js} +1 -1
- package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +1 -0
- package/assets/esri/core/workers/chunks/c60b4f2dd5fccdf362a7.js +1 -0
- package/assets/esri/core/workers/chunks/c6d0b4875b6b8d6bc25a.js +1 -0
- package/assets/esri/core/workers/chunks/c911f0b5bdd43b66b731.js +1 -0
- package/assets/esri/core/workers/chunks/c983e5ce0ff952b65d7f.js +1 -0
- package/assets/esri/core/workers/chunks/c9a4601073e1a3eee9d0.js +1 -0
- package/assets/esri/core/workers/chunks/ccffaba50674adba7a0f.js +1 -0
- package/assets/esri/core/workers/chunks/{24646a1176ce34039155.js → cdf6ad970dc1893dac58.js} +1 -1
- package/assets/esri/core/workers/chunks/d13e003c9293cb7e2852.js +1 -0
- package/assets/esri/core/workers/chunks/d24e027bb8b2c09f25c8.js +1 -0
- package/assets/esri/core/workers/chunks/d2df8c328054dc6cb7b7.js +1 -0
- package/assets/esri/core/workers/chunks/d5c35a75fd4c41def420.js +1 -0
- package/assets/esri/core/workers/chunks/{ace1899a8e5162b4018d.js → d6bb8db22ba85ad05fd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{7601278ebced0c0c31cf.js → d78b7cac322755e87eb8.js} +1 -1
- package/assets/esri/core/workers/chunks/d7be278aed1fb37ad5ec.js +1 -0
- package/assets/esri/core/workers/chunks/d9695794cfaa014a55b1.js +1 -0
- package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js → d9d4754062758789f186.js} +2 -2
- package/assets/esri/core/workers/chunks/da1e8b338ab9fe9e0a8e.js +1 -0
- package/assets/esri/core/workers/chunks/e1bf87077541da6853c6.js +1 -0
- package/assets/esri/core/workers/chunks/e279bcbe4f10e87bde6c.js +1 -0
- package/assets/esri/core/workers/chunks/e33d2ede6c9f1527d51b.js +1 -0
- package/assets/esri/core/workers/chunks/e4406baf206b9e4c7e4f.js +1 -0
- package/assets/esri/core/workers/chunks/e499252cb52f7aed49a0.js +1 -0
- package/assets/esri/core/workers/chunks/{e178cd0e9178d6716410.js → e5837e5ac6ef761f26a2.js} +1 -1
- package/assets/esri/core/workers/chunks/e6a7272b59a4c2e34dca.js +1 -0
- package/assets/esri/core/workers/chunks/e912b515704e20313e53.js +1 -0
- package/assets/esri/core/workers/chunks/eac683a37339aa558455.js +1 -0
- package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +1 -0
- package/assets/esri/core/workers/chunks/ed3d16a5b4084ef61f8a.js +1 -0
- package/assets/esri/core/workers/chunks/ee07f54bc77fe9f8575a.js +1 -0
- package/assets/esri/core/workers/chunks/{d35c475f004367e333eb.js → eeea5710275c967e8d51.js} +1 -1
- package/assets/esri/core/workers/chunks/ef46ef4f0ee9f2aeaa4a.js +1 -0
- package/assets/esri/core/workers/chunks/efb4aa5886730ea377bd.js +1 -0
- package/assets/esri/core/workers/chunks/f2a268c69f2a5566381b.js +1 -0
- package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js → f5731ad4cfbbf1cc569a.js} +2 -2
- package/assets/esri/core/workers/chunks/f590db684d88e72bd79b.js +1 -0
- package/assets/esri/core/workers/chunks/f69df22a5c64389ebe28.js +1 -0
- package/assets/esri/core/workers/chunks/{f60292d97bcdbf19165b.js → f6d047358d14328f3622.js} +1 -1
- package/assets/esri/core/workers/chunks/f7fca88d120d45bb782a.js +1 -0
- package/assets/esri/core/workers/chunks/f819854098d63fe4ccdb.js +1 -0
- package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +1 -0
- package/assets/esri/core/workers/chunks/f98118127469449ca145.js +1 -0
- package/assets/esri/core/workers/chunks/f9ed05d4ad1f44d033bb.js +1 -0
- package/assets/esri/core/workers/chunks/fb6605be0c5e36785543.js +1 -0
- package/assets/esri/core/workers/chunks/fbe7dae0b4bf2d172487.js +1 -0
- package/assets/esri/core/workers/chunks/fc4d9be62cf5e9758842.js +1 -0
- package/assets/esri/core/workers/chunks/fd70a25ffdf2cc6c5be2.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +38 -8
- package/assets/esri/themes/base/widgets/_DatePicker.scss +1 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/GlowComposition.glsl.js +2 -2
- package/chunks/RealisticTree.glsl.js +17 -15
- package/chunks/bundle2.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/config.d.ts +2 -2
- package/config.js +1 -1
- package/core/Collection.d.ts +25 -25
- package/core/Error.d.ts +1 -1
- package/core/JSONSupport.d.ts +1 -1
- package/core/promiseUtils.d.ts +3 -3
- package/core/reactiveUtils.d.ts +4 -4
- package/core/screenUtils.js +1 -1
- package/core/sql/WhereClause.d.ts +1 -1
- package/core/sql.d.ts +1 -1
- package/core/timeUtils.d.ts +1 -1
- package/core/workers/Connection.d.ts +9 -9
- package/core/workers.d.ts +1 -1
- package/editing/types.d.ts +3 -3
- package/geometry/Extent.d.ts +0 -13
- package/geometry/Geometry.d.ts +10 -8
- package/geometry/Mesh.d.ts +9 -2
- package/geometry/Mesh.js +1 -1
- package/geometry/Multipoint.d.ts +9 -0
- package/geometry/Multipoint.js +1 -1
- package/geometry/Point.d.ts +15 -71
- package/geometry/Polygon.js +1 -1
- package/geometry/support/MeshMaterial.d.ts +5 -5
- package/geometry/support/MeshTexture.d.ts +19 -19
- package/geometry/support/geometryUtils.js +1 -1
- package/geometry/support/jsonUtils.d.ts +1 -1
- package/geometry/support/meshUtils.d.ts +130 -2
- package/geometry/support/meshUtils.js +1 -1
- package/graphic/AnnotationGraphicOrigin.d.ts +34 -0
- package/graphic/AnnotationGraphicOrigin.js +2 -0
- package/graphic/DimensionFeatureGraphicOrigin.d.ts +34 -0
- package/graphic/DimensionFeatureGraphicOrigin.js +2 -0
- package/identity/Credential.d.ts +1 -1
- package/identity/IdentityManager.d.ts +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/identity/OAuthInfo.d.ts +1 -1
- package/identity/ServerInfo.d.ts +2 -2
- package/interfaces.d.ts +23 -0
- package/intl/number.d.ts +3 -3
- package/intl/substitute.d.ts +2 -2
- package/intl.d.ts +28 -28
- package/kernel.js +1 -1
- package/layers/AnnotationLayer.d.ts +263 -32
- package/layers/AnnotationLayer.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +5 -5
- package/layers/BaseTileLayer.d.ts +4 -4
- package/layers/BuildingSceneLayer.d.ts +1 -1
- package/layers/CSVLayer.d.ts +7 -1
- package/layers/CatalogLayer.d.ts +6 -0
- package/layers/DimensionFeatureLayer.d.ts +263 -32
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +45 -8
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +14 -8
- package/layers/LinkChartLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +5 -5
- package/layers/MediaLayer.d.ts +2 -2
- package/layers/OrientedImageryLayer.d.ts +29 -2
- package/layers/ParquetLayer.d.ts +7 -1
- package/layers/SceneLayer.d.ts +5 -3
- package/layers/SceneLayer.js +1 -1
- package/layers/StreamLayer.d.ts +1 -1
- package/layers/SubtypeGroupLayer.d.ts +7 -1
- package/layers/TileLayer.d.ts +2 -2
- package/layers/VideoLayer.d.ts +8 -2
- package/layers/VideoLayer.js +1 -1
- package/layers/VoxelLayer.d.ts +4 -4
- package/layers/WCSLayer.d.ts +2 -2
- package/layers/WFSLayer.d.ts +6 -0
- package/layers/WebTileLayer.d.ts +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +60 -11
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +1 -1
- package/layers/graphics/sources/parquet/ParquetFileInfo.js +2 -0
- package/layers/graphics/sources/parquet/ParquetFileStatistics.js +2 -0
- package/layers/graphics/sources/parquet/PortalParquetFileProvider.js +1 -1
- package/layers/graphics/sources/parquet/PortalParquetLayerFileProvider.js +1 -1
- package/layers/graphics/sources/parquet/UrlsFileProvider.js +1 -1
- package/layers/graphics/sources/parquet/createFileProvider.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +6 -0
- package/layers/mixins/ArcGISImageService.d.ts +7 -1
- package/layers/mixins/BlendLayer.d.ts +1 -1
- package/layers/mixins/DataSeriesLayer.d.ts +161 -0
- package/layers/mixins/DataSeriesLayer.js +2 -0
- package/layers/mixins/FeatureLayerBase.d.ts +43 -19
- package/layers/mixins/TemporalLayer.d.ts +4 -2
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/support/AnnotationSublayer.d.ts +44 -0
- package/layers/support/AnnotationSublayer.js +2 -0
- package/layers/support/DateTimeFieldFormat.d.ts +10 -10
- package/layers/support/FeatureEffect.d.ts +22 -22
- package/layers/support/FeatureReductionBinning.d.ts +12 -0
- package/layers/support/FeatureReductionCluster.d.ts +12 -0
- package/layers/support/Field.d.ts +2 -2
- package/layers/support/ImageElement.d.ts +1 -1
- package/layers/support/MosaicRule.d.ts +0 -2
- package/layers/support/NumberFieldFormat.d.ts +5 -5
- package/layers/support/StreamConnection.d.ts +1 -1
- package/layers/support/Sublayer.d.ts +2 -2
- package/layers/support/SubtypeSublayer.d.ts +14 -1
- package/layers/support/TimeSeriesFieldTimeMapping.d.ts +30 -0
- package/layers/support/TimeSeriesFieldTimeMapping.js +2 -0
- package/layers/support/TimeSeriesInfo.d.ts +149 -0
- package/layers/support/TimeSeriesInfo.js +2 -0
- package/layers/support/VideoElement.d.ts +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/dataSeriesUtils.d.ts +18 -0
- package/layers/support/dataSeriesUtils.js +2 -0
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/kmlUtils.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/support/timeSeriesUtils.d.ts +27 -0
- package/layers/support/timeSeriesUtils.js +2 -0
- package/layers/types.d.ts +1 -1
- package/layers/video/types.d.ts +61 -1
- package/libs/parquet/parquet.js +1 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
- package/networks/CircuitManager.d.ts +1 -1
- package/networks/Network.d.ts +1 -1
- package/networks/UnitIdentifierManager.d.ts +1 -1
- package/networks/support/NamedTraceConfiguration.d.ts +1 -1
- package/networks/support/TraceConfiguration.d.ts +2 -2
- package/networks/support/UNTraceConfiguration.d.ts +3 -3
- package/networks/support/jsonTypes.d.ts +7 -1
- package/networks/support/utils.js +1 -1
- package/package.json +3 -3
- package/popup/content/CustomContent.d.ts +1 -1
- package/portal/Portal.d.ts +2 -2
- package/portal/jsonTypes.d.ts +2 -2
- package/renderers/support/AuthoringInfo.d.ts +14 -1
- package/renderers/support/AuthoringInfo.js +1 -1
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +14 -1
- package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
- package/renderers/support/jsonUtils.d.ts +1 -1
- package/renderers/support/utils.d.ts +1 -1
- package/renderers/visualVariables/RotationVariable.d.ts +16 -1
- package/renderers/visualVariables/RotationVariable.js +1 -1
- package/request/types.d.ts +41 -43
- package/rest/geometryService.d.ts +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +1 -1
- package/rest/knowledgeGraph/GraphApplyEdits.d.ts +1 -1
- package/rest/knowledgeGraph/GraphProperty.d.ts +5 -1
- package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +2 -2
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
- package/rest/knowledgeGraphService.d.ts +13 -13
- package/rest/layerSources/DynamicDataLayer.d.ts +1 -1
- package/rest/print.d.ts +1 -1
- package/rest/support/AttributeBinsQuery.d.ts +16 -2
- package/rest/support/ClosestFacilityParameters.d.ts +6 -6
- package/rest/support/LastMileDeliveryParameters.d.ts +4 -4
- package/rest/support/LocationToAddressParameters.d.ts +1 -1
- package/rest/support/PrintTemplate.d.ts +5 -5
- package/rest/support/Query.d.ts +18 -4
- package/rest/support/RouteParameters.d.ts +5 -5
- package/rest/support/ServiceAreaParameters.d.ts +6 -6
- package/rest/support/TopFeaturesQuery.d.ts +16 -2
- package/rest/support/meshFeatureSet.js +1 -1
- package/smartMapping/renderers/color.d.ts +40 -0
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.d.ts +8 -0
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.d.ts +38 -0
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +2 -0
- package/smartMapping/renderers/type.d.ts +20 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.d.ts +19 -0
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/support/revision.js +1 -1
- package/support/tests/setupServiceMocksMesh.js +1 -1
- package/support/timeUtils.d.ts +3 -3
- package/symbols/Font.d.ts +7 -7
- package/symbols/WebStyleSymbol.d.ts +11 -11
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/symbols/support/Symbol3DEmissive.d.ts +8 -2
- package/symbols/support/jsonUtils.d.ts +1 -1
- package/time/TimeExtent.d.ts +2 -2
- package/versionManagement/VersionManagementService.d.ts +8 -8
- package/versionManagement/VersionManager.d.ts +13 -3
- package/versionManagement/VersioningState.d.ts +4 -4
- package/views/2d/MapViewConstraints.d.ts +29 -25
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +4 -20
- package/views/2d/layers/BaseLayerViewGL2D.d.ts +6 -22
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/KMLLayerView2D.js +1 -1
- package/views/2d/layers/MapNotesLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/2d/layers/graphics/GraphicStore.js +1 -1
- package/views/2d/support/hitTestUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightAggregateManipulatedObject3D.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +1 -1
- package/views/3d/glTF/internal/resourceUtils.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
- package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
- package/views/3d/interactive/editingTools/visualElementUtils.js +1 -1
- package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/webgl/RenderNode.d.ts +32 -11
- package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +6 -10
- package/views/BreakpointsOwner.d.ts +1 -1
- package/views/DOMContainer.d.ts +6 -6
- package/views/Magnifier.d.ts +1 -1
- package/views/MapView.d.ts +1 -1
- package/views/SceneView.d.ts +2 -2
- package/views/View2D.d.ts +62 -54
- package/views/Viewport2DMixin.d.ts +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileError.d.ts +1 -1
- package/views/draw/plugins/PolygonPlugin.js +1 -1
- package/views/input/gamepad/GamepadInputDevice.d.ts +1 -1
- package/views/input/types.d.ts +15 -15
- package/views/interactive/interactiveToolUtils.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/LineSnapper.js +1 -1
- package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
- package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/layers/FeatureLikeLayerView.d.ts +32 -5
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/layers/GraphicsLayerView.d.ts +6 -3
- package/views/layers/ImageryLayerView.d.ts +4 -0
- package/views/navigation/Navigation.d.ts +1 -1
- package/views/support/WebAssemblyRequirements.js +1 -1
- package/views/types.d.ts +5 -5
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/webscene/Glow.d.ts +0 -4
- package/widgets/BasemapGallery.d.ts +1 -1
- package/widgets/BasemapLayerList.d.ts +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +10 -2
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
- package/widgets/BatchAttributeForm/attachmentUtils.d.ts +14 -0
- package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +8 -6
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/attachmentValidationCriteriaState.d.ts +5 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/types.d.ts +8 -1
- package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
- package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm.d.ts +10 -2
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Bookmarks.d.ts +1 -1
- package/widgets/BuildingExplorer.d.ts +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -2
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion.d.ts +2 -2
- package/widgets/Daylight.d.ts +1 -1
- package/widgets/Directions.d.ts +1 -1
- package/widgets/Editor.d.ts +1 -1
- package/widgets/Feature.d.ts +1 -1
- package/widgets/FeatureForm.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.d.ts +1 -14
- package/widgets/FeatureTable/Grid/Column.d.ts +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/FeatureTemplates.d.ts +1 -1
- package/widgets/FloorFilter.d.ts +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -3
- package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
- package/widgets/Fullscreen.d.ts +3 -3
- package/widgets/LayerList/ListItemPanel.d.ts +5 -5
- package/widgets/Legend.d.ts +1 -1
- package/widgets/Locate/LocateViewModel.d.ts +2 -2
- package/widgets/Locate.d.ts +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/Popup.d.ts +1 -1
- package/widgets/Print/PrintViewModel.d.ts +2 -2
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Print/TemplateOptions.d.ts +4 -4
- package/widgets/Print.d.ts +6 -6
- package/widgets/Search/SearchViewModel.d.ts +5 -5
- package/widgets/Search.d.ts +4 -4
- package/widgets/ShadowCast.d.ts +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +1 -1
- package/widgets/Slice.d.ts +1 -1
- package/widgets/TableList/ListItemPanel.d.ts +5 -5
- package/widgets/Track/TrackViewModel.d.ts +3 -3
- package/widgets/Track.d.ts +3 -3
- package/widgets/UtilityNetworkTrace.d.ts +1 -1
- package/widgets/VersionManagement/VersionManagementViewModel.d.ts +2 -2
- package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +7 -1
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/widgets/Weather.d.ts +1 -1
- package/widgets/Widget.d.ts +1 -1
- package/widgets/support/ContingentValuesManager.js +1 -1
- package/widgets/support/forms/formUtils.js +1 -1
- package/widgets/support/types.d.ts +1 -1
- package/widgets/support/widget.d.ts +6 -6
- package/assets/esri/core/workers/chunks/02aaeaa988e9e7d65a7f.js +0 -1
- package/assets/esri/core/workers/chunks/07a242ea908aa8e2ba28.js +0 -1
- package/assets/esri/core/workers/chunks/0a780a883abfcdf0b900.js +0 -1
- package/assets/esri/core/workers/chunks/0fbf9bf52ecb4cd8293b.js +0 -1
- package/assets/esri/core/workers/chunks/119d352dd586f2bb61ec.js +0 -1
- package/assets/esri/core/workers/chunks/130784a27661de6b52a5.js +0 -1
- package/assets/esri/core/workers/chunks/145364aa20b4435294c2.js +0 -1
- package/assets/esri/core/workers/chunks/14c6419568d8a7a15cd6.js +0 -1
- package/assets/esri/core/workers/chunks/153dc2a0b08a0e44a881.js +0 -1
- package/assets/esri/core/workers/chunks/1595dc499a06b23b6a96.js +0 -1
- package/assets/esri/core/workers/chunks/16713986893adfbc9331.js +0 -1
- package/assets/esri/core/workers/chunks/1765042635084f75d2b3.js +0 -1
- package/assets/esri/core/workers/chunks/179c9fe4ac83b42e5976.js +0 -1
- package/assets/esri/core/workers/chunks/1c1515e020e32e177b54.js +0 -1
- package/assets/esri/core/workers/chunks/1c64e10f966e26af6fed.js +0 -1
- package/assets/esri/core/workers/chunks/1ddbf5f507ac153234be.js +0 -1
- package/assets/esri/core/workers/chunks/201007cf1a91e2b126fc.js +0 -1
- package/assets/esri/core/workers/chunks/20d0adc678f11981059c.js +0 -1
- package/assets/esri/core/workers/chunks/227eff8aa4a6f5f03bc2.js +0 -1
- package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +0 -1
- package/assets/esri/core/workers/chunks/24647e7424798dccdaf5.js +0 -1
- package/assets/esri/core/workers/chunks/249616ea2d90d40a8299.js +0 -1
- package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +0 -1
- package/assets/esri/core/workers/chunks/24eaf1349ffe10e616e6.js +0 -1
- package/assets/esri/core/workers/chunks/29615df388a0df022d8c.js +0 -1
- package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +0 -1
- package/assets/esri/core/workers/chunks/2bd334f9ab89334df713.js +0 -1
- package/assets/esri/core/workers/chunks/2c8584ec1c3c9fd5aba2.js +0 -1
- package/assets/esri/core/workers/chunks/2d374cc8c54a722a7afe.js +0 -1
- package/assets/esri/core/workers/chunks/2e11b4e9d66474a60064.js +0 -1
- package/assets/esri/core/workers/chunks/2fa080539d039c92ce08.js +0 -1
- package/assets/esri/core/workers/chunks/3109b05fe4fc40d4f25b.js +0 -1
- package/assets/esri/core/workers/chunks/31442f25d550ead58fc4.js +0 -1
- package/assets/esri/core/workers/chunks/319ff04282dc8ae38b56.js +0 -2
- package/assets/esri/core/workers/chunks/32323b0e0fcecd8f640e.js +0 -1
- package/assets/esri/core/workers/chunks/330da3828eefd8d72d3f.js +0 -1
- package/assets/esri/core/workers/chunks/3402fb9c596b582311c7.js +0 -1
- package/assets/esri/core/workers/chunks/388e71e8f2ec41bfa5a9.js +0 -1
- package/assets/esri/core/workers/chunks/3a6678ee9990d7e83e15.js +0 -1
- package/assets/esri/core/workers/chunks/3aacaa1be5efeac23a37.js +0 -1
- package/assets/esri/core/workers/chunks/3b3986276e70297d573b.js +0 -1
- package/assets/esri/core/workers/chunks/3b765a8cac9e92f644f2.js +0 -1
- package/assets/esri/core/workers/chunks/3bf6d55511cd7722eb93.js +0 -1
- package/assets/esri/core/workers/chunks/3e012cd3ca4451f89f59.js +0 -1
- package/assets/esri/core/workers/chunks/40910c69307e2d2d3f28.js +0 -1
- package/assets/esri/core/workers/chunks/423a9882abd4a6dadf86.js +0 -1
- package/assets/esri/core/workers/chunks/428561df7ba6f02e2d80.js +0 -1
- package/assets/esri/core/workers/chunks/45323491f9005629c602.js +0 -1
- package/assets/esri/core/workers/chunks/46d0a25d33b5b328cfce.js +0 -1
- package/assets/esri/core/workers/chunks/46fbd519cc1a37923bfc.js +0 -1
- package/assets/esri/core/workers/chunks/47dd2bfecc5c4b5f10f0.js +0 -1
- package/assets/esri/core/workers/chunks/4845df00f6ebcce6ea3e.js +0 -1
- package/assets/esri/core/workers/chunks/48fcc10768d93e95a04e.js +0 -1
- package/assets/esri/core/workers/chunks/49f6c9e9980b8c624fd7.js +0 -1
- package/assets/esri/core/workers/chunks/4a9dd9f8aa98882218f3.js +0 -1
- package/assets/esri/core/workers/chunks/4bfffdfbe6d467f143a4.js +0 -1
- package/assets/esri/core/workers/chunks/4ef53455c8bc6efee80e.js +0 -1
- package/assets/esri/core/workers/chunks/518046d2b95a7590a092.js +0 -1
- package/assets/esri/core/workers/chunks/51ee6102f5f4840a5b47.js +0 -1
- package/assets/esri/core/workers/chunks/54dad475dc806a38c287.js +0 -1
- package/assets/esri/core/workers/chunks/552945a73a95cd2a9f54.js +0 -1
- package/assets/esri/core/workers/chunks/58155f24f8ed6aca7a21.js +0 -1
- package/assets/esri/core/workers/chunks/5838f46d341d2fde42ee.js +0 -1
- package/assets/esri/core/workers/chunks/58994b6bfcda5f2ada80.js +0 -1
- package/assets/esri/core/workers/chunks/592a599f514de373dead.js +0 -1
- package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +0 -1
- package/assets/esri/core/workers/chunks/5f9bacee6fbf9ac1bca0.js +0 -1
- package/assets/esri/core/workers/chunks/62206d5d497b95fc4caf.js +0 -1
- package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +0 -1
- package/assets/esri/core/workers/chunks/64daa2a714e59d22bbd4.js +0 -1
- package/assets/esri/core/workers/chunks/65621650a53f69f7b05a.js +0 -1
- package/assets/esri/core/workers/chunks/6637f19b82555738a1d5.js +0 -1
- package/assets/esri/core/workers/chunks/6c9933f948efd7923aa1.js +0 -1
- package/assets/esri/core/workers/chunks/6cab67fc7044ee9b863b.js +0 -1
- package/assets/esri/core/workers/chunks/6db274f6767102a39021.js +0 -1
- package/assets/esri/core/workers/chunks/7014e73dfd3c8baa704c.js +0 -1
- package/assets/esri/core/workers/chunks/76589434d573111a8fb4.js +0 -1
- package/assets/esri/core/workers/chunks/767ea5b455b3823afd09.js +0 -1
- package/assets/esri/core/workers/chunks/77769663cd712822d33e.js +0 -1
- package/assets/esri/core/workers/chunks/77859a61d059738d057f.js +0 -1
- package/assets/esri/core/workers/chunks/7b564226def99fcf79d8.js +0 -1
- package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +0 -1
- package/assets/esri/core/workers/chunks/7cadfd7444a2a05cf2fb.js +0 -1
- package/assets/esri/core/workers/chunks/823789261ca3338f0fa8.js +0 -1
- package/assets/esri/core/workers/chunks/84b0b6e099d949e0fea5.js +0 -1
- package/assets/esri/core/workers/chunks/8c5a41ae68775bac3446.js +0 -1
- package/assets/esri/core/workers/chunks/8f94c90fdb0333da2d0f.js +0 -1
- package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +0 -1
- package/assets/esri/core/workers/chunks/9a6e62ef984e9c5babc4.js +0 -1
- package/assets/esri/core/workers/chunks/9d27cc631bab8aa7479e.js +0 -1
- package/assets/esri/core/workers/chunks/9dcfaca1f4fa8c8026ac.js +0 -1
- package/assets/esri/core/workers/chunks/9f23a61c60949459c14f.js +0 -30
- package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +0 -1
- package/assets/esri/core/workers/chunks/a0fa60a24e58f7a47e41.js +0 -1
- package/assets/esri/core/workers/chunks/a806ac351ef5da04c250.js +0 -1
- package/assets/esri/core/workers/chunks/ab94c9f62462d7a98f6a.js +0 -1
- package/assets/esri/core/workers/chunks/abdb05754c50776c3edd.js +0 -1
- package/assets/esri/core/workers/chunks/ad488985824fbb830ed6.js +0 -1
- package/assets/esri/core/workers/chunks/b08a1255dacf6cfcf139.js +0 -640
- package/assets/esri/core/workers/chunks/b098469e0010a6b44df9.js +0 -1
- package/assets/esri/core/workers/chunks/b0ac4b0b7aec70cfe6eb.js +0 -1
- package/assets/esri/core/workers/chunks/b1f1271434af302938e8.js +0 -1
- package/assets/esri/core/workers/chunks/bfbd1ca28ed2f263e58f.js +0 -1
- package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +0 -1
- package/assets/esri/core/workers/chunks/c27cb2a83a1d2e004501.js +0 -1
- package/assets/esri/core/workers/chunks/c44be4aaba829e6d149d.js +0 -1
- package/assets/esri/core/workers/chunks/ca1b0cb14ea9ae1bf2a3.js +0 -1
- package/assets/esri/core/workers/chunks/ca4245414d8ecd217f9d.js +0 -1
- package/assets/esri/core/workers/chunks/cc479daacd2cf715baa8.js +0 -1
- package/assets/esri/core/workers/chunks/ce0e627a5e1cb78adce8.js +0 -1
- package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
- package/assets/esri/core/workers/chunks/d3af51a6d9014ff46170.js +0 -1
- package/assets/esri/core/workers/chunks/d561dc933d8fe1672d85.js +0 -1
- package/assets/esri/core/workers/chunks/d81291dac1932350eccd.js +0 -1
- package/assets/esri/core/workers/chunks/da3c54e27a808f4fcc18.js +0 -1
- package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +0 -1
- package/assets/esri/core/workers/chunks/dd58286dde3b20356f84.js +0 -1
- package/assets/esri/core/workers/chunks/dfeddb7b17fa9eaae64c.js +0 -1
- package/assets/esri/core/workers/chunks/e38836bfcc7a15a2fd1f.js +0 -1
- package/assets/esri/core/workers/chunks/e4e0c5a45cf32973d5d5.js +0 -1
- package/assets/esri/core/workers/chunks/e638391801ad83fe4a68.js +0 -1
- package/assets/esri/core/workers/chunks/e645f992ec6f935ee3a5.js +0 -1
- package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +0 -1
- package/assets/esri/core/workers/chunks/e7712467db46e1385cf4.js +0 -1
- package/assets/esri/core/workers/chunks/e9dcc3e9dbafe9bbed84.js +0 -1
- package/assets/esri/core/workers/chunks/ea8f642b1db933d2c26f.js +0 -1
- package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +0 -1
- package/assets/esri/core/workers/chunks/ed2cb60e4f17f46fb78d.js +0 -1
- package/assets/esri/core/workers/chunks/edb55329305becdb204f.js +0 -1
- package/assets/esri/core/workers/chunks/eedee0af459e6b8a6116.js +0 -1
- package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +0 -1
- package/assets/esri/core/workers/chunks/f1fb2f12371f4c562079.js +0 -1
- package/assets/esri/core/workers/chunks/f3dfe1bd1146a6927407.js +0 -1
- package/assets/esri/core/workers/chunks/f79bd469b25099a31274.js +0 -1
- package/assets/esri/core/workers/chunks/ff48334528d2554db4fe.js +0 -1
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +0 -2
- /package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js.LICENSE.txt → 62e77e3c5ca9b4887923.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{319ff04282dc8ae38b56.js.LICENSE.txt → 68f9b2da1fd08785320f.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js.LICENSE.txt → 9629601de5e44ffe90ea.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js.LICENSE.txt → d9d4754062758789f186.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js.LICENSE.txt → f5731ad4cfbbf1cc569a.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2189],{68197(e,t,r){r.d(t,{A:()=>u});var i=r(40876),s=r(4576),n=r(34727),o=r(56507);function a(e){return(0,n.qE)((0,o.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,i=new u){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=(0,i.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,i.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,s.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,s=4===r||8===r,n=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${s?l(Math.round(255*this.a),i):""}`;return t?n.toUpperCase():n}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),i=a(this.b);return 0===e||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.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(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color"},52106(e,t,r){r.d(t,{A:()=>v});var i,s,n=r(5482),o=r(37838),a=r(69540),l=r(51447),u=r(25482),c=r(53966),p=r(36708),h=r(24326),d=r(91429),f=r(12195),m=r(65864),y=r(50498),g=r(55156),b=r(60950),M=r(54339),_=r(94128),C=r(33910);function S(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let v=class extends((0,a.OU)(u.o)){static{i=_.Z}static{s=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,m.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,d.MZ)({value:null})],v.prototype,"attributes",null),(0,n.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:m.rS}})],v.prototype,"geometry",null),(0,n.Cg)([(0,d.MZ)()],v.prototype,"distance",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"layer",void 0),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,n.Cg)([(0,d.MZ)({type:o.A,value:null})],v.prototype,"popupTemplate",null),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],v.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,d.MZ)({value:null,types:C.Es})],v.prototype,"symbol",null),(0,n.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=s=(0,n.Cg)([(0,d.$K)("esri.Graphic")],v)},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>m,TS:()=>n,Tf:()=>b,V6:()=>s,Vm:()=>f,ay:()=>l,c1:()=>y,c4:()=>o,j5:()=>u,lT:()=>p,oW:()=>c,xV:()=>_});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 s(e){return!!i[e]||!!i[e.toLowerCase()]}function n(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...n(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){const s=(e%360+360)%360/360,n=r<=.5?r*(t+1):r+t-r*t,o=2*r-n;return[Math.round(255*a(o,n,s+1/3)),Math.round(255*a(o,n,s)),Math.round(255*a(o,n,s-1/3)),i]}function u(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,s=t?1:17,n=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let l;return n&&(l=o&i,o>>=r,a[3]=s*l/255),l=o&i,o>>=r,a[2]=s*l,l=o&i,o>>=r,a[1]=s*l,l=o&i,o>>=r,a[0]=s*l,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(s+16*s)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),h(t)}return h(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function h(e){return e[0]=y(e[0]),e[1]=y(e[1]),e[2]=y(e[2]),e[3]=4===e.length?m(e[3]):1,e}function d(e){let t=s(e)?n(e):null;return t??=p(e),t??=c(e),t}function f(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function m(e){return g(e,0,1)}function y(e){return Math.round(g(e,0,255))}function g(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=2.2,M=1/b;function _(e){return e**M}},66344(e,t,r){r.d(t,{q:()=>a});const i=!!(0,r(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const r=this._db.get(e.id+t);return r?.size??0}put(e,t,r,s,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==r&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,r,s,0);if(void 0===r)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return i||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,r,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new n(r,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const r=this._db.get(t);if(!r)return;this._size-=r.size,e.size-=r.size;let i=r.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,r.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}r.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const r=this._db.get(t);if(r)return this._size-=r.size,e.size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(e,t){t=e.id+t;const r=this._db.get(t);if(void 0!==r)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}peek(e,t){const r=this._db.get(e.id+t);return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},r=new Array;this._db.forEach((e,i)=>{const s=e.lifetime;r[s]=(r[s]||0)+e.size,this._clients.forEach(r=>{const{id:s,name:n}=r;if(i.startsWith(s)){const r=t[n]||0;t[n]=r+e.size}})});const i={};this._clients.forEach(e=>{const r=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[r]||0;t[r]=s,i[r]=Math.round(100*e.hitRate)+"%"}else i[r]="0%"});const s=Object.keys(t);s.sort((e,r)=>t[r]-t[e]),s.forEach(r=>e[r]=Math.round(t[r]/2**20)+"MB / "+i[r]);for(let t=r.length-1;t>=0;--t){const i=r[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,r]of this._db)t.startsWith(e.id)&&(yield r.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,r,i){const s=this._clients.get(e.split(o)[0])?.removeFunc,n=s?.(t,i,r);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const r=t??this;if(r.size<=e)return;const i=t?.id;let s=!0;for(;s;){s=!1;for(const[n,a]of this._db)if(0===a.lifetime&&(!i||n.startsWith(i))){const i=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,a,i),r.size<=.9*e)return;s||=this._db.has(n)}}for(const[s,n]of this._db)if(!i||s.startsWith(i)){const i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,n,i),r.size<=.9*e)return}}_purgeItem(e,t,r){if(this._db.delete(e),t.lives<=1){this._size-=t.size,r&&(r.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,r&&(r.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class n{constructor(e,t,r){this.entry=e,this.size=t,this.lifetime=r,this.lives=r}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,r=1){this._storage.put(this,e,t,r,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},46140(e,t,r){r.d(t,{A:()=>s});var i=r(49186);class s{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new s(this.major,this.minor,this._context)}static parse(e,t=""){const[r,n]=e.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!n?.match||!o.test(n))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(n,10);return new s(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>h});var i=r(69622),s=r(7762),n=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof s.A?Object.keys(e.items):a(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),s=l(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const n=s.filter(e=>!i.includes(e)),h=i.filter(e=>!s.includes(e)),d=i.filter(r=>s.includes(r)&&u(e,r)!==u(t,r)).concat(n,h).sort(),f=c(e);if(f&&o.has(f)&&d.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const i of d){const s=u(e,i),n=u(t,i);let o;if((y||"function"!=typeof s&&"function"!=typeof n)&&s!==n&&(null!=s||null!=n)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(s,n);else if(s instanceof Date&&n instanceof Date){if(s.getTime()===n.getTime())continue;o={type:"complete",oldValue:s,newValue:n}}else o="object"==typeof s&&"object"==typeof n&&c(s)===c(n)?p(s,n):{type:"complete",oldValue:s,newValue:n};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>n,cr:()=>o,gs:()=>l,r_:()=>u,tc:()=>a}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function n(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(i);if(t){const r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),o="px"===i?n(r):r;return s?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function a(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>s,vD:()=>o,yS:()=>n});const i="randomUUID"in crypto;function s(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${s().toUpperCase()}}`}function o(){return`{${s()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},50498(e,t,r){r.d(t,{Ye:()=>p,gy:()=>c,iI:()=>d,yR:()=>h});var i=r(66552),s=r(5443),n=r(91075),o=r(48526),a=r(86738),l=r(39829),u=r(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),h={base:n.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},d=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,r){r.d(t,{I:()=>s,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&i in t?e[i]:void 0;var t}},52136(e,t,r){r.d(t,{p:()=>n});var i=r(5482),s=r(91429);const n=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},4071(e,t,r){r.d(t,{$:()=>i,P:()=>s});const i={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1,supportedStatistics:void 0,supportedNormalizationTypes:void 0},s={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsOrderByFields:!1,supportsResize:!1,supportsTypeWildcard:!1,supportsCountOnly:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i,query:{maxRecordCount:0,maxRecordCountFactor:0,maxUniqueIDCount:0,relativeTimeBinWindow:0,standardMaxRecordCount:0,standardMaxRecordCountNoGeometry:0,supportsStatisticsAggregatedIds:!1,supportsCacheHint:!1,supportsCentroid:!1,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsOutDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},32730(e,t,r){r.d(t,{BI:()=>d,D3:()=>p,XJ:()=>h,lc:()=>c,mX:()=>m,rU:()=>f,tH:()=>_,vK:()=>C,zA:()=>S});var i=r(799);const s="__begin__",n="__end__",o=new RegExp(s,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(n+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function p(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function h(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function d(e){const t=h(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function f(e){const t=h(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(y);return t?.[1].trim()||null}(t.expression);case"arcade":return _(t.expression)}return null}function m(e){let t;return e?(t=(0,i.HC)(e,e=>s+'$feature["'+e+'"]'+n),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(a,' + "')):t='""',t}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function _(e){if(!e)return null;let t=g.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}const C=Symbol("LabelClassInstance");function S(e){return null!=e&&"object"==typeof e&&C in e}},5757(e,t,r){r.d(t,{B:()=>s,P:()=>i});const i=Symbol("PopupTemplateInstance");function s(e){return null!=e&&"object"==typeof e&&i in e}},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),s=r(53966),n=r(46140),o=r(95466),a=r(55674);class l{static async from(e,t,r){const o=e.dictionary_version?n.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const h=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))h.delete(e);h.size&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:h});const d=await(0,a.xR)(e.expression,null,p);if(!d)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const f=!o||!o.greaterEqual(4,0);f&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(r,f);return new l(f,c,d,m)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>o,gf:()=>n,of:()=>s,uY:()=>i});const i=Symbol("SizeVariableInstance");function s(e){return null!=e&&"object"==typeof e&&i in e}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||o(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},41366(e,t,r){r.d(t,{K:()=>p,Q:()=>l});var i=r(5482),s=r(66552),n=r(53966),o=r(91429),a=r(93223);const l=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},55674(e,t,r){r.d(t,{Ad:()=>d,Gj:()=>y,QY:()=>h,lL:()=>g,xR:()=>f});var i=r(66131),s=r(49186),n=(r(44208),r(44729)),o=r(15032),a=r(65864),l=r(95466),u=r(43668),c=r(98623);const p=["geometry","scale","timeProperties"];function h(e,t){if(null!=t)for(const r of p)t.hasArcadeDependency(r)&&e.add(r);return e}function d(e,t){return m.create(e,t,null,["$feature","$view"])}function f(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,i){const{arcade:n,Dictionary:o}=await(0,u.l)();let a;try{a=n.parseScript(e)}catch(t){throw new s.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=n.scriptUsesGeometryEngine(a);l&&await n.enableGeometrySupport(),await n.loadDependentModules(new Set,a,null,!1,l);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=n.compileScript(a,c);let h=null;null!=r&&(h=new o(r),h.immutable=!0);const d=new o;return d.immutable=!1,d.setField("scale",0),new m(e,n,a,p,t,d,h,o)}constructor(e,t,r,i,s,n,o,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=s,this._viewDict=n,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:s,currentEnd:n}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=s?null!=r?i.lY.epochToArcadeDate(s,r):i.lY.unknownEpochToArcadeDate(s):void 0,currentEnd:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return n.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},28076(e,t,r){r.d(t,{D:()=>s});var i=r(13337);const s={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}}},13337(e,t,r){r.d(t,{h:()=>i});const i={Relative:0,Absolute:1}},93397(e,t,r){r.d(t,{$w:()=>m,Bu:()=>I,DW:()=>C,FH:()=>R,FM:()=>a,Kn:()=>M,MM:()=>p,Nl:()=>x,O2:()=>z,UE:()=>k,YC:()=>E,YF:()=>A,_1:()=>v,_d:()=>_,_h:()=>o,bs:()=>P,e6:()=>u,gQ:()=>n,jn:()=>d,lW:()=>c,ll:()=>D,mA:()=>h,oI:()=>B,pM:()=>S,pV:()=>b,pk:()=>L,rB:()=>G,xo:()=>w,yX:()=>V,z9:()=>g,zb:()=>T,zr:()=>f});var i=r(28076);function s(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function n(e,t){const r=[];let i=0,n=-1;do{if(n=e.indexOf("[",i),n>=i){if(n>i){const t=e.slice(i,n);r.push([t,null,s(t)])}if(i=n+1,n=e.indexOf("]",i),n>=i){if(n>i){const s=t[e.slice(i,n)];s&&r.push([null,s,!1])}i=n+1}}}while(-1!==n);if(i<e.length){const t=e.slice(i);r.push([t,null,s(t)])}return r}function o(e,t,r){let i="",s=null;for(const r of t){const[t,n,o]=r;if(null!=t&&""!==t)o?s=t:(null!=s&&(i+=s,s=null),i+=t);else{const t=e.readAttribute(n);null!=t&&""!==t&&(null!==s&&(i+=s,s=null),i+=t)}}return l(i,r)}function a(e,t,r,i){let s="",n=null;for(const i of t){const[t,o,a]=i;if(null!=t&&""!==t)a?n=t:(null!=n&&(s+=n,n=null),s+=t);else{let t=o;null!=r&&(t=F(o,r));const i=e.attributes[t];null!=i&&""!==i&&(null!=n&&(s+=n,n=null),s+=i)}}return l(s,i)}function l(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function u(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function c(e){return e.data?.symbol??null}function p(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function h(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function d(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function f(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const m=(e,t=0)=>null==e||isNaN(e)?t:e;class y{constructor(e){this._import=e}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(e=>this.module=e)),this._promise}}function g(e){return new y(e)}function b(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function M(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function _(e){let t="normal",r="normal";if(e){const i=e.toLowerCase();i.includes("italic")?t="italic":i.includes("oblique")&&(t="oblique"),i.includes("bold")?r="bold":i.includes("light")&&(r="lighter")}return{style:t,weight:r}}function C(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function S(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=S(t);if(null!=e)return e}break;case"CIMTextSymbol":return S(e.symbol);case"CIMSolidFill":return e.color}return null}function v(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const t=e.symbolLayers;if(t)for(const e of t){const t=v(e);if(null!=t)return t}break}case"CIMTextSymbol":return v(e.symbol);case"CIMSolidStroke":return e.color}}function w(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=w(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return w(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function I(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function x(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function z(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}const k=e=>e.includes("data:image/svg+xml");function A(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function T(e,t,r,i,s,n,o=!0){const{infos:a}=n;let l=1,u=0,c=0,p=0,h=1;for(const{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:i,size:s,frameHeight:n,rotateClockWise:d,scaleSymbolsProportionally:f}of a)h=e?1:l,c=$(t,r,u,h,c),p=N(t,r,u,h,p),n&&(f||o)&&(l*=s/n),u=j(i,d,u);const d=$(i,s,u,h,c),f=N(i,s,u,h,p);return{size:e*l,rotation:j(t,r,u),offsetX:d,offsetY:f}}function R(e){return e?.dashTemplate&&(e.dashTemplate=function(e){return"string"==typeof e?function(e){return e.split(" ").map(e=>Number(e))}(e):e}(e.dashTemplate)),e}function P(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const t=e.symbolLayers;if(!t)return"Normal";for(const e of t)if("CIMVectorMarker"===e.type)return P(e)}break;case"CIMVectorMarker":{const t=e.markerGraphics;if(!t)return"Normal";for(const e of t)if(e.symbol)return P(e.symbol)}}return"Normal"}function E(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const e=r.size??i.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&f(r.markerPlacement)){const e=r.size??i.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{const e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function F(e,t){if(null!==t){const r=t.get(e);return r?r.name:e}return e}function L(e){return e.map(e=>({...e,propertyName:A(e.propertyName)}))}function G(e){const t={};for(const r in e){const i=e[r];t[A(r)]=i}return t}function D(e){if(!e)return 0;let t=0;for(const r of e)t+=O(r);return t}function O(e){if(!e)return 0;if(function(e){return e.type.startsWith("PRI")}(e))return e.inflateSize??256;switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(m(e.offsetX)),Math.abs(m(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function N(e,t,r,i,s){const n=r*Math.PI/180;if(n){const r=Math.cos(n);return(Math.sin(n)*e+r*t)*i+s}return t*i+s}function $(e,t,r,i,s){const n=r*Math.PI/180;return n?(Math.cos(n)*e-Math.sin(n)*t)*i+s:e*i+s}function j(e,t,r){return t?r-e:r+e}function V(e,t){return Math.max(Math.min((e??t)/100,1),0)}function B(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}},93470(e,t,r){r.d(t,{Cb:()=>n,HW:()=>c,JR:()=>s,JZ:()=>l,WR:()=>a,b6:()=>p,fT:()=>i,nC:()=>u,yM:()=>o});const i=[252,146,31,255],s=[153,153,153,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9863],{85334(t,e,n){n.d(e,{$:()=>y,IB:()=>s,Iy:()=>b,N2:()=>w,RH:()=>x,ZD:()=>C});var r=n(68197),o=n(4576),i=n(4718);function s(t){return"r"in t&&"g"in t&&"b"in t}function a(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}n(34727),n(78955),n(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],h=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(t,e){const n=[];let r,o;if(t[0].length!==e.length)throw new Error("dimensions do not match");const i=t.length,s=t[0].length;let a=0;for(r=0;r<i;r++){for(a=0,o=0;o<s;o++)a+=t[r][o]*e[o];n.push(a)}return n}function d(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),n=f(c,e);return{x:100*n[0],y:100*n[1],z:100*n[2]}}function p(t){const e=f(h,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function m(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function g(t){const e=t.l,n=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*n[0],y:100*n[1],z:108.883*n[2]}}function y(t){return s(t)?t:u(t)?function(t){return p(g(function(t){const e=t.l,n=t.c,r=t.h;return{l:e,a:n*Math.cos(r),b:n*Math.sin(r)}}(t)))}(t):l(t)?function(t){return p(g(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?p(t):a(t)?function(t){const e=(t.h+360)%360/60,n=t.s/100,r=t.v/100*255,o=r*n,i=o*(1-Math.abs(e%2-1));let s;switch(Math.floor(e)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+r-o),s.g=Math.round(s.g+r-o),s.b=Math.round(s.b+r-o),s}(t):t}function w(t){return a(t)?t:function(t){const e=t.r,n=t.g,r=t.b,o=Math.max(e,n,r),i=o-Math.min(e,n,r);let s=o,a=0===i?0:o===e?(n-r)/i%6:o===n?(r-e)/i+2:(e-n)/i+4,l=0===i?0:i/s;return a<0&&(a+=6),a*=60,l*=100,s*=100/255,{h:a,s:l,v:s}}(y(t))}function C(t){return l(t)?t:function(t){return m(d(t))}(y(t))}function x(t){return u(t)?t:function(t){return function(t){const e=t.l,n=t.a,r=t.b,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i=i>0?i:i+2*Math.PI,{l:e,c:o,h:i}}(m(d(t)))}(y(t))}function b(t,e,n={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){const n=[],r=t[0];for(let t=0;t<e;t++)n.push(r.clone());return n}if(n.shuffle&&(t=(0,o.k4)((0,i.o8)(t),n.seed)),t.length>=e){const n=[],r=(t.length-1)/(e-1);for(let o=0;o<e;o++){const e=Math.round(o*r);n.push(t[e].clone())}return n}return function(t,e,n={}){const r=[],i=t.length-1,s=Math.ceil((e-t.length)/i);t:for(let o=0;o<i;o++){const i=t[o],a=t[o+1];for(let o=1;o<=s;o++){const l=o/(s+1);if(r.push(A(i,a,l,n)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,o.k4)(r,n.seed??1)]}(t,e,n)}const v=(t,e)=>{const n=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+n))};function A(t,e,n,i={}){const s=t.r,a=t.g,l=t.b,u=e.r,c=e.g,h=e.b,f=Math.round(s+(u-s)*n),d=Math.round(a+(c-a)*n),p=Math.round(l+(h-l)*n);if(!i.offset)return new r.A([f,d,p]);const m=(0,o.Mo)(i.seed);return new r.A([v(f,m),v(d,m),v(p,m)])}},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function i(t,e,n,r){return[t,e,n,r]}function s(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function u(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}n.d(e,{CN:()=>i,Un:()=>f,fA:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0,0],f=s(),d=a(),p=l(),m=u(),g=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:g,UNIT_X:d,UNIT_Y:p,UNIT_Z:m,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitW:c,unitX:a,unitY:l,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(t,e,n){n.d(e,{Bw:()=>g,C:()=>o,Cc:()=>x,LI:()=>f,Om:()=>C,S8:()=>w,T9:()=>h,WQ:()=>s,Z0:()=>b,aI:()=>A,hG:()=>m,hZ:()=>i,hs:()=>d,jk:()=>c,m3:()=>y,t2:()=>v});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function c(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function h(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function f(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function p(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+i*i)}function m(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],i=e[3]-t[3];return n*n+r*r+o*o+i*i}function g(t){const e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function y(t){const e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function w(t,e){const n=e[0],r=e[1],o=e[2],i=e[3];let s=n*n+r*r+o*o+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n*s,t[1]=r*s,t[2]=o*s,t[3]=i*s),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function x(t,e,n,r){const o=e[0],i=e[1],s=e[2],a=e[3];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t[2]=s+r*(n[2]-s),t[3]=a+r*(n[3]-a),t}function b(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*s,t[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*s,t[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*s,t[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*s,t}function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function A(t,e){const n=t[0],o=t[1],i=t[2],s=t[3],a=e[0],l=e[1],u=e[2],c=e[3],h=(0,r.FD)();return Math.abs(n-a)<=h*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=h*Math.max(1,Math.abs(s),Math.abs(c))}const M=a,k=l,T=u,S=p,I=m,P=g,E=y;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:S,distance:p,div:T,divide:u,dot:C,equals:A,exactEquals:v,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:P,length:g,lerp:x,max:h,min:c,mul:k,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:w,random:function(t,e=1){const n=r.Ov;let o,i,s,a,l,u;do{o=2*n()-1,i=2*n()-1,l=o*o+i*i}while(l>=1);do{s=2*n()-1,a=2*n()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return t[0]=e*o,t[1]=e*i,t[2]=e*s*c,t[3]=e*a*c,t},round:f,scale:d,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:i,sqrDist:I,sqrLen:E,squaredDistance:m,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:M,subtract:a,transformMat4:b,transformQuat:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=n[0],a=n[1],l=n[2],u=n[3],c=u*r+a*i-l*o,h=u*o+l*r-s*i,f=u*i+s*o-a*r,d=-s*r-a*o-l*i;return t[0]=c*u+d*-s+h*-l-f*-a,t[1]=h*u+d*-a+f*-s-c*-l,t[2]=f*u+d*-l+c*-a-h*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},9334(t,e,n){function r(t,e){let n=0,r="",o=0,i=0;const s=t.length;for(;n<s;)i=t[n++],o=i>>4,o<8?o=1:15===o?(o=4,i=(7&i)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++]):14===o?(o=3,i=(15&i)<<12|(63&t[n++])<<6|63&t[n++]):(o=2,i=(31&i)<<6|63&t[n++]),(0!==i||e)&&(r+=String.fromCharCode(i));return r}n.d(e,{w:()=>r})},5154(t,e,n){n.d(e,{D:()=>it,g:()=>ot});var r=n(49186),o=n(97768),i=n(17676),s=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,n=e?e.byteLength:0;if(t<n)return e;for(var r=512;r<t;)r<<=1;for(var o=new Uint8Array(r),i=0;i<n;++i)o[i]=e[i];return this.buffer=o},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var n=e+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;n>r&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(e,n)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,n){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,n)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),a=function(){if(!self||!self.Uint32Array)return null;var t=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),r=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],o=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function i(t){throw new Error(t)}function a(t){var e=0,n=t[e++],r=t[e++];-1!=n&&-1!=r||i("Invalid header in flate stream"),8!=(15&n)&&i("Unknown compression method in flate stream"),((n<<8)+r)%31!=0&&i("Bad FCHECK in flate stream"),32&r&&i("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,s.call(this)}return a.prototype=Object.create(s.prototype),a.prototype.getBits=function(t){for(var e,n=this.codeSize,r=this.codeBuf,o=this.bytes,s=this.bytesPos;n<t;)void 0===(e=o[s++])&&i("Bad encoding in flate stream"),r|=e<<n,n+=8;return e=r&(1<<t)-1,this.codeBuf=r>>t,this.codeSize=n-=t,this.bytesPos=s,e},a.prototype.getCode=function(t){for(var e=t[0],n=t[1],r=this.codeSize,o=this.codeBuf,s=this.bytes,a=this.bytesPos;r<n;){var l;void 0===(l=s[a++])&&i("Bad encoding in flate stream"),o|=l<<r,r+=8}var u=e[o&(1<<n)-1],c=u>>16,h=65535&u;return(0==r||r<c||0==c)&&i("Bad encoding in flate stream"),this.codeBuf=o>>c,this.codeSize=r-c,this.bytesPos=a,h},a.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;r<e;++r)t[r]>n&&(n=t[r]);for(var o=1<<n,i=new Uint32Array(o),s=1,a=0,l=2;s<=n;++s,a<<=1,l<<=1)for(var u=0;u<e;++u)if(t[u]==s){var c=0,h=a;for(r=0;r<s;++r)c=c<<1|1&h,h>>=1;for(r=c;r<o;r+=l)i[r]=s<<16|u;++a}return[i,n]},a.prototype.readBlock=function(){function s(t,e,n,r,o){for(var i=t.getBits(n)+r;i-- >0;)e[p++]=o}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var l,u;if(1==a)l=r,u=o;else if(2==a){for(var c=this.getBits(5)+257,h=this.getBits(5)+1,f=this.getBits(4)+4,d=Array(t.length),p=0;p<f;)d[t[p++]]=this.getBits(3);for(var m=this.generateHuffmanTable(d),g=0,y=(p=0,c+h),w=new Array(y);p<y;){var C=this.getCode(m);16==C?s(this,w,2,3,g):17==C?s(this,w,3,3,g=0):18==C?s(this,w,7,11,g=0):w[p++]=g=C}l=this.generateHuffmanTable(w.slice(0,c)),u=this.generateHuffmanTable(w.slice(c,y))}else i("Unknown block type in flate stream");for(var x=(L=this.buffer)?L.length:0,b=this.bufferLength;;){var v=this.getCode(l);if(v<256)b+1>=x&&(x=(L=this.ensureBuffer(b+1)).length),L[b++]=v;else{if(256==v)return void(this.bufferLength=b);var A=(v=e[v-=257])>>16;A>0&&(A=this.getBits(A)),g=(65535&v)+A,v=this.getCode(u),(A=(v=n[v])>>16)>0&&(A=this.getBits(A));var M=(65535&v)+A;b+g>=x&&(x=(L=this.ensureBuffer(b+g)).length);for(var k=0;k<g;++k,++b)L[b]=L[b-M]}}}else{var T,S=this.bytes,I=this.bytesPos;void 0===(T=S[I++])&&i("Bad block header in flate stream");var P=T;void 0===(T=S[I++])&&i("Bad block header in flate stream"),P|=T<<8,void 0===(T=S[I++])&&i("Bad block header in flate stream");var E=T;void 0===(T=S[I++])&&i("Bad block header in flate stream"),(E|=T<<8)!=(65535&~P)&&i("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var R=this.bufferLength,L=this.ensureBuffer(R+P),U=R+P;this.bufferLength=U;for(var O=R;O<U;++O){if(void 0===(T=S[I++])){this.eof=!0;break}L[O]=T}this.bytesPos=I}},a}();function l(t,e){const{width:n,height:o}=t,i=new OffscreenCanvas(n,o),s=i.getContext("2d");if(!s)throw new r.A("imagecanvasdecoder: decode","cannot create canvas context");s.drawImage(t,0,0,n,o);const a=c(s.getImageData(0,0,n,o),n,o,e);return i.width=0,i.height=0,a}function u(t,e,n){const[o,i,s]=e,[a,l]=n,u=Math.ceil(t.width/2**o),h=Math.ceil(t.height/2**o),f=Math.ceil(h/l),d=Math.ceil(u/a);if(i>=f||s>=d)return null;const p=new OffscreenCanvas(u,h),m=p.getContext("2d");if(!m)throw new r.A("imagecanvasdecoder: decode","cannot create canvas context");m.drawImage(t,0,0,u,h);const g=s*a,y=i*l,w=Math.min(a,u-g),C=Math.min(l,h-y),x=c(m.getImageData(g,y,w,C),a,l);return p.width=0,p.height=0,x}function c(t,e,n,r){const o=e*n,i=new Uint8Array(o),s=new Uint8Array(o),a=new Uint8Array(o),l=null==r;r||(r=new Uint8Array(o));const u={width:e,height:n,pixels:[i,s,a],mask:r,pixelType:"u8"},{width:c,height:h,data:f}=t;if(c===e&&h===n){for(let t=0,e=0;t<o;t++,e+=4)i[t]=f[e],s[t]=f[e+1],a[t]=f[e+2],l&&(r[t]=f[e+3]);return u}for(let t=0;t<h;t++){const n=t*c*4;for(let o=0;o<c;o++){const u=t*e+o;i[u]=f[n+4*o],s[u]=f[n+4*o+1],a[u]=f[n+4*o+2],l&&(r[u]=f[n+4*o+3])}}return u}function h(t){return`image/${"jpg"===t?"jpeg":t}`}var f=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=new Error,t.prototype.name="JpegError",t.constructor=t,t}(),d=function(){if(!self||!self.Uint8ClampedArray)return null;var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,o=2276,i=1567,s=3784,a=5793,l=2896;function u(){this.decodeTransform=null,this.colorTransform=-1}function c(t,e){for(var n,r,o=0,i=[],s=16;s>0&&!t[s-1];)s--;i.push({children:[],index:0});var a,l=i[0];for(n=0;n<s;n++){for(r=0;r<t[n];r++){for((l=i.pop()).children[l.index]=e[o];l.index>0;)l=i.pop();for(l.index++,i.push(l);i.length<=n;)i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a;o++}n+1<s&&(i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a)}return i[0].children}function h(t,e,n){return 64*((t.blocksPerLine+1)*e+n)}function d(e,n,r,o,i,s,a,l,u){var c=r.mcusPerLine,d=r.progressive,p=n,m=0,y=0;function w(){if(y>0)return y--,m>>y&1;if(255===(m=e[n++])){var t=e[n++];if(t)throw new f("unexpected marker "+(m<<8|t).toString(16))}return y=7,m>>>7}function C(t){for(var e=t;;){if("number"==typeof(e=e[w()]))return e;if("object"!=typeof e)throw new f("invalid huffman sequence")}}function x(t){for(var e=0;t>0;)e=e<<1|w(),t--;return e}function b(t){if(1===t)return 1===w()?1:-1;var e=x(t);return e>=1<<t-1?e:e+(-1<<t)+1}var v,A=0,M=0;function k(t,e,n,r,o){var i=n%c;e(t,h(t,(n/c|0)*t.v+r,i*t.h+o))}function T(t,e,n){e(t,h(t,n/t.blocksPerLine|0,n%t.blocksPerLine))}var S,I,P,E,R,L,U=o.length;L=d?0===s?0===l?function(t,e){var n=C(t.huffmanTableDC),r=0===n?0:b(n)<<u;t.blockData[e]=t.pred+=r}:function(t,e){t.blockData[e]|=w()<<u}:0===l?function(e,n){if(A>0)A--;else for(var r=s,o=a;r<=o;){var i=C(e.huffmanTableAC),l=15&i,c=i>>4;if(0!==l){var h=t[r+=c];e.blockData[n+h]=b(l)*(1<<u),r++}else{if(c<15){A=x(c)+(1<<c)-1;break}r+=16}}}:function(e,n){for(var r,o,i=s,l=a,c=0;i<=l;){var h=t[i];switch(M){case 0:if(c=(o=C(e.huffmanTableAC))>>4,0==(r=15&o))c<15?(A=x(c)+(1<<c),M=4):(c=16,M=1);else{if(1!==r)throw new f("invalid ACn encoding");v=b(r),M=c?2:3}continue;case 1:case 2:e.blockData[n+h]?e.blockData[n+h]+=w()<<u:0===--c&&(M=2===M?3:0);break;case 3:e.blockData[n+h]?e.blockData[n+h]+=w()<<u:(e.blockData[n+h]=v<<u,M=0);break;case 4:e.blockData[n+h]&&(e.blockData[n+h]+=w()<<u)}i++}4===M&&0===--A&&(M=0)}:function(e,n){var r=C(e.huffmanTableDC),o=0===r?0:b(r);e.blockData[n]=e.pred+=o;for(var i=1;i<64;){var s=C(e.huffmanTableAC),a=15&s,l=s>>4;if(0!==a){var u=t[i+=l];e.blockData[n+u]=b(a),i++}else{if(l<15)break;i+=16}}};var O,D,B,N,G=0;for(D=1===U?o[0].blocksPerLine*o[0].blocksPerColumn:c*r.mcusPerColumn;G<D;){var F=i?Math.min(D-G,i):D;for(I=0;I<U;I++)o[I].pred=0;if(A=0,1===U)for(S=o[0],R=0;R<F;R++)T(S,L,G),G++;else for(R=0;R<F;R++){for(I=0;I<U;I++)for(B=(S=o[I]).h,N=S.v,P=0;P<N;P++)for(E=0;E<B;E++)k(S,L,G,P,E);G++}y=0,(O=g(e,n))&&O.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+O.invalid),n=O.offset);var z=O&&O.marker;if(!z||z<=65280)throw new f("marker was not found");if(!(z>=65488&&z<=65495))break;n+=2}return(O=g(e,n))&&O.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+O.invalid),n=O.offset),n-p}function p(t,u,c){var h,d,p,m,g,y,w,C,x,b,v,A,M,k,T,S,I,P=t.quantizationTable,E=t.blockData;if(!P)throw new f("missing required Quantization Table.");for(var R=0;R<64;R+=8)x=E[u+R],b=E[u+R+1],v=E[u+R+2],A=E[u+R+3],M=E[u+R+4],k=E[u+R+5],T=E[u+R+6],S=E[u+R+7],x*=P[R],0!==(b|v|A|M|k|T|S)?(b*=P[R+1],v*=P[R+2],A*=P[R+3],M*=P[R+4],k*=P[R+5],T*=P[R+6],S*=P[R+7],d=(h=(h=a*x+128>>8)+(d=a*M+128>>8)+1>>1)-d,I=(p=v)*s+(m=T)*i+128>>8,p=p*i-m*s+128>>8,w=(g=(g=l*(b-S)+128>>8)+(w=k<<4)+1>>1)-w,y=(C=(C=l*(b+S)+128>>8)+(y=A<<4)+1>>1)-y,m=(h=h+(m=I)+1>>1)-m,p=(d=d+p+1>>1)-p,I=g*o+C*r+2048>>12,g=g*r-C*o+2048>>12,C=I,I=y*n+w*e+2048>>12,y=y*e-w*n+2048>>12,w=I,c[R]=h+C,c[R+7]=h-C,c[R+1]=d+w,c[R+6]=d-w,c[R+2]=p+y,c[R+5]=p-y,c[R+3]=m+g,c[R+4]=m-g):(I=a*x+512>>10,c[R]=I,c[R+1]=I,c[R+2]=I,c[R+3]=I,c[R+4]=I,c[R+5]=I,c[R+6]=I,c[R+7]=I);for(var L=0;L<8;++L)x=c[L],0!==((b=c[L+8])|(v=c[L+16])|(A=c[L+24])|(M=c[L+32])|(k=c[L+40])|(T=c[L+48])|(S=c[L+56]))?(d=(h=4112+((h=a*x+2048>>12)+(d=a*M+2048>>12)+1>>1))-d,I=(p=v)*s+(m=T)*i+2048>>12,p=p*i-m*s+2048>>12,m=I,w=(g=(g=l*(b-S)+2048>>12)+(w=k)+1>>1)-w,y=(C=(C=l*(b+S)+2048>>12)+(y=A)+1>>1)-y,I=g*o+C*r+2048>>12,g=g*r-C*o+2048>>12,C=I,I=y*n+w*e+2048>>12,y=y*e-w*n+2048>>12,x=(x=(h=h+m+1>>1)+C)<16?0:x>=4080?255:x>>4,b=(b=(d=d+p+1>>1)+(w=I))<16?0:b>=4080?255:b>>4,v=(v=(p=d-p)+y)<16?0:v>=4080?255:v>>4,A=(A=(m=h-m)+g)<16?0:A>=4080?255:A>>4,M=(M=m-g)<16?0:M>=4080?255:M>>4,k=(k=p-y)<16?0:k>=4080?255:k>>4,T=(T=d-w)<16?0:T>=4080?255:T>>4,S=(S=h-C)<16?0:S>=4080?255:S>>4,E[u+L]=x,E[u+L+8]=b,E[u+L+16]=v,E[u+L+24]=A,E[u+L+32]=M,E[u+L+40]=k,E[u+L+48]=T,E[u+L+56]=S):(I=(I=a*x+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,E[u+L]=I,E[u+L+8]=I,E[u+L+16]=I,E[u+L+24]=I,E[u+L+32]=I,E[u+L+40]=I,E[u+L+48]=I,E[u+L+56]=I)}function m(t,e){for(var n=e.blocksPerLine,r=e.blocksPerColumn,o=new Int16Array(64),i=0;i<r;i++)for(var s=0;s<n;s++)p(e,h(e,i,s),o);return e.blockData}function g(t,e,n){function r(e){return t[e]<<8|t[e+1]}var o=t.length-1,i=n<e?n:e;if(e>=o)return null;var s=r(e);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:e};for(var a=r(i);!(a>=65472&&a<=65534);){if(++i>=o)return null;a=r(i)}return{invalid:s.toString(16),marker:a,offset:i}}return u.prototype={parse:function(e){function n(){var t=e[a]<<8|e[a+1];return a+=2,t}function r(){var t=n(),r=a+t-2,o=g(e,r,a);o&&o.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+o.invalid),r=o.offset);var i=e.subarray(a,r);return a+=i.length,i}function o(t){for(var e=Math.ceil(t.samplesPerLine/8/t.maxH),n=Math.ceil(t.scanLines/8/t.maxV),r=0;r<t.components.length;r++){G=t.components[r];var o=Math.ceil(Math.ceil(t.samplesPerLine/8)*G.h/t.maxH),i=Math.ceil(Math.ceil(t.scanLines/8)*G.v/t.maxV),s=e*G.h,a=n*G.v*64*(s+1);G.blockData=new Int16Array(a),G.blocksPerLine=o,G.blocksPerColumn=i}t.mcusPerLine=e,t.mcusPerColumn=n}var i,s,a=0,l=null,u=null,h=[],p=[],y=[],w=n();if(65496!==w)throw new f("SOI not found");for(w=n();65497!==w;){var C,x,b;switch(w){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var v=r();65504===w&&74===v[0]&&70===v[1]&&73===v[2]&&70===v[3]&&0===v[4]&&(l={version:{major:v[5],minor:v[6]},densityUnits:v[7],xDensity:v[8]<<8|v[9],yDensity:v[10]<<8|v[11],thumbWidth:v[12],thumbHeight:v[13],thumbData:v.subarray(14,14+3*v[12]*v[13])}),65518===w&&65===v[0]&&100===v[1]&&111===v[2]&&98===v[3]&&101===v[4]&&(u={version:v[5]<<8|v[6],flags0:v[7]<<8|v[8],flags1:v[9]<<8|v[10],transformCode:v[11]});break;case 65499:for(var A=n()+a-2;a<A;){var M=e[a++],k=new Uint16Array(64);if(M>>4){if(M>>4!=1)throw new f("DQT - invalid table spec");for(x=0;x<64;x++)k[t[x]]=n()}else for(x=0;x<64;x++)k[t[x]]=e[a++];h[15&M]=k}break;case 65472:case 65473:case 65474:if(i)throw new f("Only single frame JPEGs supported");n(),(i={}).extended=65473===w,i.progressive=65474===w,i.precision=e[a++],i.scanLines=n(),i.samplesPerLine=n(),i.components=[],i.componentIds={};var T,S=e[a++],I=0,P=0;for(C=0;C<S;C++){T=e[a];var E=e[a+1]>>4,R=15&e[a+1];I<E&&(I=E),P<R&&(P=R);var L=e[a+2];b=i.components.push({h:E,v:R,quantizationId:L,quantizationTable:null}),i.componentIds[T]=b-1,a+=3}i.maxH=I,i.maxV=P,o(i);break;case 65476:var U=n();for(C=2;C<U;){var O=e[a++],D=new Uint8Array(16),B=0;for(x=0;x<16;x++,a++)B+=D[x]=e[a];var N=new Uint8Array(B);for(x=0;x<B;x++,a++)N[x]=e[a];C+=17+B,(O>>4?p:y)[15&O]=c(D,N)}break;case 65501:n(),s=n();break;case 65498:n();var G,F=e[a++],z=[];for(C=0;C<F;C++){var V=i.componentIds[e[a++]];G=i.components[V];var _=e[a++];G.huffmanTableDC=y[_>>4],G.huffmanTableAC=p[15&_],z.push(G)}var j=e[a++],Z=e[a++],W=e[a++],q=d(e,a,i,z,s,j,Z,W>>4,15&W);a+=q;break;case 65535:255!==e[a]&&a--;break;default:if(255===e[a-3]&&e[a-2]>=192&&e[a-2]<=254){a-=3;break}throw new f("unknown marker "+w.toString(16))}w=n()}for(this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=l,this.eof=a,this.adobe=u,this.components=[],C=0;C<i.components.length;C++){var H=h[(G=i.components[C]).quantizationId];H&&(G.quantizationTable=H),this.components.push({output:m(0,G),scaleX:G.h/i.maxH,scaleY:G.v/i.maxV,blocksPerLine:G.blocksPerLine,blocksPerColumn:G.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(t,e){var n,r,o,i,s,a,l,u,c,h,f,d=this.width/t,p=this.height/e,m=0,g=this.components.length,y=t*e*g,w=new Uint8ClampedArray(y),C=new Uint32Array(t),x=4294967288;for(l=0;l<g;l++){for(r=(n=this.components[l]).scaleX*d,o=n.scaleY*p,m=l,f=n.output,i=n.blocksPerLine+1<<3,s=0;s<t;s++)u=0|s*r,C[s]=(u&x)<<3|7&u;for(a=0;a<e;a++)for(h=i*((u=0|a*o)&x)|(7&u)<<3,s=0;s<t;s++)w[m]=f[h+C[s]],m+=g}var b=this.decodeTransform;if(b)for(l=0;l<y;)for(u=0,c=0;u<g;u++,l++,c+=2)w[l]=(w[l]*b[c]>>8)+b[c+1];return w},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(t){for(var e,n,r,o=0,i=t.length;o<i;o+=3)e=t[o],n=t[o+1],r=t[o+2],t[o]=e-179.456+1.402*r,t[o+1]=e+135.459-.344*n-.714*r,t[o+2]=e-226.816+1.772*n;return t},_convertYcckToRgb:function(t){for(var e,n,r,o,i=0,s=0,a=t.length;s<a;s+=4)e=t[s],n=t[s+1],r=t[s+2],o=t[s+3],t[i++]=n*(-660635669420364e-19*n+.000437130475926232*r-54080610064599e-18*e+.00048449797120281*o-.154362151871126)-122.67195406894+r*(-.000957964378445773*r+.000817076911346625*e-.00477271405408747*o+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776),t[i++]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*r+.000659397001245577*e+.000426105652938837*o-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*e+.000770482631801132*o-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665),t[i++]=n*(-.000570115196973677*n-263409051004589e-19*r+.0020741088115012*e-.00288260236853442*o+.814272968359295)-20.810012546947+r*(-153496057440975e-19*r-.000132689043961446*e+.000560833691242812*o-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407);return t},_convertYcckToCmyk:function(t){for(var e,n,r,o=0,i=t.length;o<i;o+=4)e=t[o],n=t[o+1],r=t[o+2],t[o]=434.456-e-1.402*r,t[o+1]=119.541-e+.344*n+.714*r,t[o+2]=481.816-e-1.772*n;return t},_convertCmykToRgb:function(t){for(var e,n,r,o,i=0,s=1/255,a=0,l=t.length;a<l;a+=4)e=t[a]*s,n=t[a+1]*s,r=t[a+2]*s,o=t[a+3]*s,t[i++]=255+e*(-4.387332384609988*e+54.48615194189176*n+18.82290502165302*r+212.25662451639585*o-285.2331026137004)+n*(1.7149763477362134*n-5.6096736904047315*r-17.873870861415444*o-5.497006427196366)+r*(-2.5217340131683033*r-21.248923337353073*o+17.5119270841813)-o*(21.86122147463605*o+189.48180835922747),t[i++]=255+e*(8.841041422036149*e+60.118027045597366*n+6.871425592049007*r+31.159100130055922*o-79.2970844816548)+n*(-15.310361306967817*n+17.575251261109482*r+131.35250912493976*o-190.9453302588951)+r*(4.444339102852739*r+9.8632861493405*o-24.86741582555878)-o*(20.737325471181034*o+187.80453709719578),t[i++]=255+e*(.8842522430003296*e+8.078677503112928*n+30.89978309703729*r-.23883238689178934*o-14.183576799673286)+n*(10.49593273432072*n+63.02378494754052*r+50.606957656360734*o-112.23884253719248)+r*(.03296041114873217*r+115.60384449646641*o-193.58209356861505)-o*(22.33816807309886*o+180.12613974708367);return t},getData:function(t,e,n){if(this.numComponents>4)throw new f("Unsupported color mode");var r=this._getLinearizedBlockData(t,e);if(1===this.numComponents&&n){for(var o=r.length,i=new Uint8ClampedArray(3*o),s=0,a=0;a<o;a++){var l=r[a];i[s++]=l,i[s++]=l,i[s++]=l}return i}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(r);if(4===this.numComponents){if(this._isColorConversionNeeded())return n?this._convertYcckToRgb(r):this._convertYcckToCmyk(r);if(n)return this._convertCmykToRgb(r)}return r}},u}();class p{static decode(t,e=!1){const n=new Uint8Array(t),r=new d;r.parse(n);const{width:o,height:i,numComponents:s,eof:l}=r,u=r.getData(o,i,1!==s),c=o*i;let h,f=null;if(e&&l<n.length-1)try{const t=new a(n.subarray(l)).getBytes();f=new Uint8Array(c);for(let e=0,n=0;e<t.length;e++)for(let r=7;r>=0;r--)f[n++]=t[e]>>r&1}catch{}if(1===s&&u.length===o*i){const t=new Uint8Array(u.buffer);h=[t,t,t]}else{h=[];for(let t=0;t<3;t++)h.push(new Uint8Array(c));for(let t=0,e=0;t<c;t++)for(let n=0;n<3;n++)h[n][t]=u[e++]}return{width:o,height:i,pixels:h,mask:f}}}var m=n(2741);const g=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34028234663852886e22,34028234663852886e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let y=null;function w(){return y||(y=n.e(382).then(n.bind(n,30382)).then(({default:t})=>t({locateFile:t=>(0,m.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_malloc:e,_free:n,memory:r,_lerc_getBlobInfo:o,_lerc_getDataRanges:i,_lerc_decode_4D:s}=t;let a;const l=t=>{const n=t.map(t=>function(t){return 16+(t>>3<<3)}(t)),o=n.reduce((t,e)=>t+e),i=e(o);a=new Uint8Array(r.buffer);let s=n[0];n[0]=i;for(let t=1;t<n.length;t++){const e=n[t];n[t]=n[t-1]+s,s=e}return n};C.getBlobInfo=t=>{const e=new Uint8Array(48),s=new Uint8Array(24),[u,c,h]=l([t.length,e.length,s.length]);a.set(t,u),a.set(e,c),a.set(s,h);let f=o(u,t.length,c,h,12,3);if(f)throw n(u),new Error(`lerc-getBlobInfo: error code is ${f}`);a=new Uint8Array(r.buffer),x(a,c,e),x(a,h,s);const d=new Uint32Array(e.buffer),p=new Float64Array(s.buffer),[m,g,,y,w,C,b,v,A,M,k]=d,T=0===b,S={version:m,depthCount:M,width:y,height:w,validPixelCount:b,bandCount:C,blobSize:v,maskCount:A,dataType:g,minValue:p[0],maxValue:p[1],maxZerror:p[2],statistics:[],bandCountWithNoData:k};if(k&&M>1)return n(u),S;if(1===M&&1===C){n(u);const t=T?0:p[0],e=T?0:p[1];return S.statistics.push({minValue:t,maxValue:e}),S}const I=M*C*8,P=new Uint8Array(I),E=new Uint8Array(I);let R=u,L=0,U=0,O=!1;if(a.byteLength<u+2*I?(n(u),O=!0,[R,L,U]=l([t.length,I,I]),a.set(t,R)):[L,U]=l([I,I]),a.set(P,L),a.set(E,U),f=i(R,t.length,M,C,L,U),f)throw n(R),O||n(L),new Error(`lerc-getDataRanges: error code is ${f}`);a=new Uint8Array(r.buffer),x(a,L,P),x(a,U,E);const D=new Float64Array(P.buffer),B=new Float64Array(E.buffer),N=S.statistics;for(let t=0;t<C;t++)if(M>1){const e=D.slice(t*M,(t+1)*M),n=B.slice(t*M,(t+1)*M),r=T?0:Math.min.apply(null,e),o=T?0:Math.max.apply(null,n);N.push({minValue:r,maxValue:o,depthStats:{minValues:e,maxValues:n}})}else N.push({minValue:T?0:D[t],maxValue:T?0:B[t]});return n(R),O||n(L),S},C.decode=(t,e)=>{const{maskCount:o,depthCount:i,bandCount:u,width:c,height:h,dataType:f,bandCountWithNoData:d,validPixelCount:p}=e,m=g[f],y=c*h,w=new Uint8Array(y*u),C=y*i*u*m.size,b=new Uint8Array(C),v=new Uint8Array(u),A=new Uint8Array(8*u);if(0===p)return{data:b,maskData:w,noDataValues:null};const[M,k,T,S,I]=l([t.length,w.length,b.length,v.length,A.length]);a.set(t,M),a.set(w,k),a.set(b,T),a.set(v,S),a.set(A,I);const P=s(M,t.length,o,k,i,c,h,u,f,T,S,I);if(P)throw n(M),new Error(`lerc-decode: error code is ${P}`);a=new Uint8Array(r.buffer),x(a,T,b),x(a,k,w);let E=null;if(d){x(a,S,v),x(a,I,A),E=[];const t=new Float64Array(A.buffer);for(let e=0;e<v.length;e++)E.push(v[e]?t[e]:null)}return n(M),{data:b,maskData:w,noDataValues:E}}}(t)}),y)}const C={getBlobInfo:null,decode:null};function x(t,e,n){n.set(t.slice(e,e+n.length))}function b(t,e,n,r,o){if(n<2)return t;const i=new r(e*n);for(let r=0,o=0;r<e;r++)for(let s=0,a=r;s<n;s++,a+=e)i[a]=t[o++];return i}function v(t,e={}){const n=e.inputOffset??0,r=t instanceof Uint8Array?t.subarray(n):new Uint8Array(t,n),o=C.getBlobInfo(r),{data:i,maskData:s,noDataValues:a}=C.decode(r,o),{width:l,height:u,bandCount:c,depthCount:h,dataType:f,maskCount:d,statistics:p}=o,m=g[f],y=new m.ctor(i.buffer),w=[],x=[],v=l*u,A=v*h,M=g.find(t=>t.pixelType===e.outputPixelType)??m,k=M.pixelType!==m.pixelType;for(let t=0;t<c;t++){const n=t*A,r=n+A,o=y.subarray(n,r),i=k?new M.ctor(o):o;if(e.returnInterleaved)w.push(i);else{const t=b(i,v,h,M.ctor);w.push(t)}x.push(s.subarray(n,r))}const T=0===d?null:1===d?x[0]:new Uint8Array(v);if(d>1){T.set(x[0]);for(let t=1;t<x.length;t++){const e=x[t];for(let t=0;t<v;t++)T[t]=T[t]&e[t]}}const{noDataValue:S}=e,I=null!=S&&M.range[0]<=S&&M.range[1]>=S,{validPixelCount:P}=o;if(d>0&&I)for(let t=0;t<c;t++){const e=w[t];if(0===P)e.fill(S);else{const n=x[t]||T;for(let t=0;t<v;t++)0===n[t]&&(e[t]=S)}}const E=d===c&&c>1?x:null;return{width:l,height:u,bandCount:c,pixelType:M.pixelType,depthCount:h,statistics:p,pixels:w,mask:T,validPixelCount:P,bandMasks:E,noDataValues:a}}function A(){const t=[];for(let e=0;e<=257;e++)t[e]=[e];return t}function M(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}const k=new Set;function T(t,e,n,r=!0){const o=function(t,e,n,r=!0){if(e%4!=0||n%4!=0){const o=new ArrayBuffer(4*Math.ceil(n/4)),i=new Uint8Array(o),s=new Uint8Array(t,e,n);if(r)for(let t=0;t<i.length;t+=4)i[t]=s[t+3],i[t+1]=s[t+2],i[t+2]=s[t+1],i[t+3]=s[t];else i.set(s);return new Uint32Array(i.buffer)}if(r){const r=new Uint8Array(t,e,n),o=new Uint8Array(r.length);for(let t=0;t<o.length;t+=4)o[t]=r[t+3],o[t+1]=r[t+2],o[t+2]=r[t+1],o[t+3]=r[t];return new Uint32Array(o.buffer)}return new Uint32Array(t,e,n/4)}(t,e,n,r);let i=9,s=A(),a=32,l=s.length,u=[],c=1,h=o[0],f=0;const d=o.length,p=8*(4*d-n),m=[];for(;null!=h;){if(a>=i)a-=i,f=h>>>32-i,h<<=i;else{f=h>>>32-a,h=o[c++];const t=i-a;a=32-t,f=(f<<t)+(h>>>a),h<<=t}if(257===f)break;if(256===f){i=9,s=A(),l=s.length,u=[];continue}const t=s[f];if(null==t){if(f>s.length)throw new Error("data integrity issue: code does not exist on code page");u.push(u[0]),s[l++]=u.slice(),M(m,u)}else M(m,t),u.push(t[0]),u.length>1&&(s[l++]=u.slice()),u=t.slice();if(k.has(l)&&i++,0===a&&(h=o[c++],a=32),c>d||c===d&&a<=p)break}return new Uint8Array(m)}k.add(511),k.add(1023),k.add(2047),k.add(4095),k.add(8191);var S=n(94778);const I=new Set(["uint8","int8","uint16","int16","uint32","int32","int64","uint64"]),P=new Map([["uint8",{byteCount:1,pixelType:"u8",ctor:Uint8Array}],["int8",{byteCount:1,pixelType:"s8",ctor:Int8Array}],["uint16",{byteCount:2,pixelType:"u16",ctor:Uint16Array}],["int16",{byteCount:2,pixelType:"s16",ctor:Int16Array}],["uint32",{byteCount:4,pixelType:"u32",ctor:Uint32Array}],["int32",{byteCount:4,pixelType:"s32",ctor:Int32Array}],["uint64",{byteCount:8,pixelType:"f64",ctor:BigUint64Array}],["int64",{byteCount:8,pixelType:"f64",ctor:BigInt64Array}]]);let E;const R={getBlobInfo:null,decode:null};function L(t){if(!P.has(t))throw new Error("Unsupported data type: "+t);return P.get(t)}const U=(t,e)=>{const n=e.width*e.height,r=e.pixelType;return Math.floor(t.byteLength/(n*O(r)))},O=t=>{let e=1;switch(t){case Uint8Array:case Int8Array:e=1;break;case Uint16Array:case Int16Array:e=2;break;case Uint32Array:case Int32Array:case Float32Array:e=4;break;case Float64Array:e=8}return e};class D{static decode(t,e){const n=e.pixelType,r=[],o=e.width*e.height,i=U(t,e),{bandIds:s,format:a}=e,l=s?.length||U(t,e),u=t.byteLength-t.byteLength%(o*O(n)),c=new n(t,0,o*i);if("bip"===a)for(let t=0;t<l;t++){const e=new n(o),a=s?s[t]:t;for(let t=0;t<o;t++)e[t]=c[t*i+a];r.push(e)}else if("bsq"===a)for(let t=0;t<l;t++){const e=s?s[t]:t;r.push(c.subarray(e*o,(e+1)*o))}let h=null;return u<t.byteLength-1&&(h=((t,e)=>{if(8*t.byteLength<e)return null;const n=new Uint8Array(t,0,Math.ceil(e/8)),r=new Uint8Array(e);let o=0,i=0;for(let t=0;t<n.length-1;t++){i=n[t];for(let t=7;t>=0;t--)r[o++]=i>>t&1}let s=7;for(;o<e-1;)i=n[n.length-1],r[o++]=i>>s&1,s--;return r})(t.slice(u),o)),{pixels:r,mask:h}}}n(44208);var B=n(44094),N=n(10713);function G(t,e){let n="unknown";return 3===t?n=64===e?"f64":"f32":1===t?1===e?n="u1":2===e?n="u2":4===e?n="u4":e<=8?n="u8":e<=16?n="u16":e<=32&&(n="u32"):2===t&&(e<=8?n="s8":e<=16?n="s16":e<=32&&(n="s32")),n}function F(t){let e=null;switch(t?t.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f64":e=Float64Array;break;default:e=Float32Array}return e}function z(t,e){if(e%8==0)return t;const n=e>16?32:e>8?16:8;n>8&&(t=j(t,32===n?4:2));const r=32===n?Uint32Array:16===n?Uint16Array:Uint8Array,o=new r(t),i=Math.floor(8*t.byteLength/e+1e-6),s=new r(i),a=(1<<e)-1;let l=0,u=0,c=0;for(let t=0;t<i;t++)if(0===u&&(c=o[l++],u=n),u>=e)s[t]=c>>>u-e&a,u-=e;else{const r=e-u;let i=(c&a)<<r&a;c=o[l++],u=n-r,i+=c>>>u,s[t]=i}return s.buffer}function V(t,e,n){const r=new d;r.parse(t),r.colorTransform=6===n?-1:0;const o=r.getData(r.width,r.height,1!==e&&4!==e);return new Uint8Array(o.buffer)}function _(t){const e=new a(t).getBytes(),n=new ArrayBuffer(e.length),r=new Uint8Array(n);return r.set(e),r}function j(t,e){const n=new Uint8Array(t),r=new Uint8Array(n.length);if(2===e)for(let t=0;t<n.length;t+=2)r[t]=n[t+1],r[t+1]=n[t];else if(4===e)for(let t=0;t<n.length;t+=4)r[t]=n[t+3],r[t+1]=n[t+2],r[t+2]=n[t+1],r[t+3]=n[t];else for(let t=0;t<n.length;t+=8)r[t]=n[t+7],r[t+1]=n[t+6],r[t+2]=n[t+5],r[t+3]=n[t+4],r[t+4]=n[t+3],r[t+5]=n[t+2],r[t+6]=n[t+1],r[t+7]=n[t];return r.buffer}async function Z(t,e,n,o,i){const s=N.Z===e,a=(0,B.LZ)(n,"BITSPERSAMPLE"),l=(0,B.LZ)(n,"SAMPLESPERPIXEL")??1,u=(0,B.LZ)(n,"PHOTOMETRICINTERPRETATION"),c=(0,B.LZ)(n,"SAMPLEFORMAT")??1,h=G(c,a),f=(0,B.ni)(n);if(34887===f)return await async function(t,e){return await w(),v(t,{inputOffset:e}).pixels[0]}(t,o);const d=F(h);let p,m,g;switch(f){case 1:p=t.slice(o,o+i),m=new Uint8Array(p);break;case 8:case 32946:m=_(new Uint8Array(t,o,i)),p=m.buffer;break;case 6:m=V(new Uint8Array(t,o,i),l,u),p=m.buffer;break;case 7:{const e=n.get("JPEGTABLES").values,r=e.length-2,s=new Uint8Array(r+i-2);for(let t=0;t<r;t++)s[t]=e[t];const a=new Uint8Array(t,o+2,i-2);for(let t=0;t<a.length;t++)s[r+t]=a[t];m=V(s,l,u),p=m.buffer}break;case 5:m=T(t,o,i,e),p=m.buffer;break;default:throw new r.A("tiff-reader:decode-data","unsupported compression "+f)}if(p=z(p,a),s||a<=8)g=new d(p);else{const t=a>32?8:a>16?4:2;g=new d(j(m.buffer,t))}const y=(0,B.LZ)(n,"PREDICTOR")??1,C=(0,B.LZ)(n,"TILEWIDTH"),x=(0,B.LZ)(n,"TILELENGTH");if(y>1&&(5===f||8===f||32946===f)&&C&&x){const t=(0,B.XO)(n),e=new d(g.length);e.set(g),g=function(t,e,n,r,o){const i=r?4:1,s=n*i*o;r&&(t=new Uint8Array(t.buffer));for(let n=0;n<e;n++){const e=n*s;for(let n=o;n<s;n++)t[e+n]+=t[e+n-o]}if(!r)return t;const a=new Uint8Array(t.length),l=n*o;for(let n=0;n<e;n++){const e=n*s;for(let n=0;n<l;n++)for(let r=0;r<i;r++)a[e+n*i+r]=t[e+n+(i-r-1)*l]}return new Float32Array(a.buffer)}(e,x,C,3===c&&3===y,t?1:l)}return g}var W=n(14140),q=n(4151),H=function(t){var e,n,r;function o(t){var e,n,r,o,i,s,a,l,u,c,h,f,d;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){switch(e=this.readUInt32(),l=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join(""),l){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":i&&this.animation.frames.push(i),this.pos+=4,i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),r=this.readUInt16()||100,i.delay=1e3*o/r,i.disposeOp=this.data[this.pos++],i.blendOp=this.data[this.pos++],i.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,e-=4),t=(null!=i?i.data:void 0)||this.imgData,h=0;0<=e?h<e:h>e;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(e),(u=255-this.transparency.indexed.length)>0)for(f=0;0<=u?f<u:f>u;0<=u?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(c=this.read(e)).indexOf(0),a=String.fromCharCode.apply(String,c.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,c.slice(s+1));break;case"IEND":return i&&this.animation.frames.push(i),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(d=this.colorType)||6===d,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return o.load=function(t,e,n){var r;return"function"==typeof e&&(n=e),(r=new XMLHttpRequest).open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){var t;return t=new o(new Uint8Array(r.response||r.mozResponseArrayBuffer)),"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof n?n(t):void 0},r.send(null)},o.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},o.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.decodePixels=function(t){var e,n,r,o,i,s,l,u,c,h,f,d,p,m,g,y,w,C,x,b,v,A,M;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);for(t=(t=new a(t)).getBytes(),y=(d=this.pixelBitlength/8)*this.width,p=new Uint8Array(y*this.height),s=t.length,g=0,m=0,n=0;m<s;){switch(t[m++]){case 0:for(o=x=0;x<y;o=x+=1)p[n++]=t[m++];break;case 1:for(o=b=0;b<y;o=b+=1)e=t[m++],i=o<d?0:p[n-d],p[n++]=(e+i)%256;break;case 2:for(o=v=0;v<y;o=v+=1)e=t[m++],r=(o-o%d)/d,w=g&&p[(g-1)*y+r*d+o%d],p[n++]=(w+e)%256;break;case 3:for(o=A=0;A<y;o=A+=1)e=t[m++],r=(o-o%d)/d,i=o<d?0:p[n-d],w=g&&p[(g-1)*y+r*d+o%d],p[n++]=(e+Math.floor((i+w)/2))%256;break;case 4:for(o=M=0;M<y;o=M+=1)e=t[m++],r=(o-o%d)/d,i=o<d?0:p[n-d],0===g?w=C=0:(w=p[(g-1)*y+r*d+o%d],C=r&&p[(g-1)*y+(r-1)*d+o%d]),l=i+w-C,u=Math.abs(l-i),h=Math.abs(l-w),f=Math.abs(l-C),c=u<=h&&u<=f?i:h<=f?w:C,p[n++]=(e+c)%256;break;default:throw new Error("Invalid filter algorithm: "+t[m-1])}g++}return p},o.prototype.decodePalette=function(){var t,e,n,r,o,i,s,a,l;for(n=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+n.length),r=0,n.length,t=0,e=s=0,a=n.length;s<a;e=s+=3)o[r++]=n[e],o[r++]=n[e+1],o[r++]=n[e+2],o[r++]=null!=(l=i[t++])?l:255;return o},o.prototype.copyToImageData=function(t,e){var n,r,o,i,s,a,l,u,c,h,f;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),u=(o=t.data||t).length,s=c||e,i=a=0,1===r)for(;i<u;)l=c?4*e[i/4]:a,h=s[l++],o[i++]=h,o[i++]=h,o[i++]=h,o[i++]=n?s[l++]:this.transparency.grayscale&&this.transparency.grayscale===h?0:255,a=l;else for(;i<u;)l=c?4*e[i/4]:a,o[i++]=s[l++],o[i++]=s[l++],o[i++]=s[l++],o[i++]=n?s[l++]:this.transparency.rgb&&this.transparency.rgb[1]===s[l-3]&&this.transparency.rgb[3]===s[l-2]&&this.transparency.rgb[5]===s[l-1]?0:255,a=l},o.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t},n=t.document&&t.document.createElement("canvas"),r=n&&n.getContext("2d"),e=function(t){var e;return r.width=t.width,r.height=t.height,r.clearRect(0,0,t.width,t.height),r.putImageData(t,0,0),(e=new Image).src=n.toDataURL(),e},o.prototype.decodeFrames=function(t){var n,r,o,i,s,a,l,u;if(this.animation){for(u=[],r=s=0,a=(l=this.animation.frames).length;s<a;r=++s)n=l[r],o=t.createImageData(n.width,n.height),i=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(o,i),n.imageData=o,u.push(n.image=e(o));return u}},o.prototype.renderFrame=function(t,e){var n,r,o;return n=(r=this.animation.frames)[e],o=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?t.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&t.putImageData(o.imageData,o.xOffset,o.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},o.prototype.animate=function(t){var e,n,r,o,i,s,a=this;return n=0,s=this.animation,o=s.numFrames,r=s.frames,i=s.numPlays,(e=function(){var s,l;if(s=n++%o,l=r[s],a.renderFrame(t,s),o>1&&n/o<i)return a.animation._timeout=setTimeout(e,l.delay)})()},o.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},o.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},o}(self);async function K(t,e){if(!N.Z)throw new r.A("rasterCoded:decode","lerc decoder is not supported on big endian platform");await w();const{width:n,height:o,pixelType:i,statistics:s,depthCount:a,noDataValues:l,bandMasks:u,pixels:c,mask:h,validPixelCount:f}=v(t,{inputOffset:e.offset,returnInterleaved:e.returnInterleaved});return new W.A({width:n,height:o,pixelType:i.toLowerCase(),pixels:c,mask:h,validPixelCount:f,statistics:s.map(({minValue:t,maxValue:e})=>new q.A(t,e)),bandMasks:u,depthCount:a,noDataValues:l})}async function J(t,e){await(E??=n.e(6154).then(n.bind(n,56154)).then(({default:t})=>t({locateFile:t=>(0,m.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_GetInfo:e,_decode:n,_malloc:r,_free:o,writeArrayToMemory:i,UTF8ToString:s}=t;R.getBlobInfo=t=>{t.length>1e3&&(t=t.slice(0,1e3));const n=r(t.length);i(t,n);const a=e(n,t.length);if(o(n),!a)return null;const l=s(a);o(a);try{const t=JSON.parse(l);return{width:t.xsize,height:t.ysize,bandCount:t.nbands,dataType:t.dtype,mode:t.mode,bandMap:t.bandmap}}catch{return null}},R.decode=(e,r)=>{const{dataType:o,width:i,height:s,bandCount:a}=r;if(!I.has(o))throw new Error("Unsupported data type: "+o);const{_malloc:l,_free:u}=t,c=l(e.length);t.writeArrayToMemory(e,c);const{ctor:h,byteCount:f}=L(o),d=i*s*a*f,p=l(d),m=l(1024);if(0===n(c,e.length,p,m))throw u(c),u(p),u(m),new Error("Decoding failed: "+t.UTF8ToString(m));const g=new h(t.HEAPU8.slice(p,p+d).buffer);if(u(c),u(p),u(m),g instanceof BigInt64Array||g instanceof BigUint64Array){const t=new Float64Array(g.length);for(let e=0;e<g.length;e++)t[e]=Number(g[e]);return t}return g}}(t)}),E);const o=function(t){const e=new Uint8Array(t),n=R.getBlobInfo(e);if(!n)return null;const r=R.decode(e,n);if(!r)return null;const{width:o,height:i,bandCount:s,dataType:a}=n,{ctor:l,pixelType:u}=L(a),c=l===BigInt64Array||l===BigUint64Array?Float64Array:l,h=Array.from({length:s},()=>new c(o*i));for(let t=0,e=0;t<o*i;t++)for(let n=0;n<s;n++)h[n][t]=r[e++];return{width:o,height:i,pixelType:u,pixels:h}}(t);if(!o)throw new r.A("rasterCodec:decode","failed to decode the input data.");const{width:i,height:s,pixels:a,pixelType:l}=o;return new W.A({width:i,height:s,pixelType:l,pixels:a})}async function Y(t,e){const n=await async function(t,e={}){const n=e.pyramidLevel||0,o=e.headerInfo||(0,B.RW)(t),{ifds:i,noData:s}=o;if(0===i.length)throw new r.A("tiff-reader:decode","no valid image file directory");const a=(0,B._J)(o);if(a)throw new r.A("tiff-reader:decode",a);let l=null;const u=-1===n?i[i.length-1]:i[n],c=s??e.noDataValue;return l=o.tileWidth?await async function(t,e,n){const r=(0,B.wc)(n,"TILEOFFSETS"),o=(0,B.wc)(n,"TILEBYTECOUNTS");if(null==r||null==o)return null;const{width:i,height:s,pixelType:a,tileWidth:l,tileHeight:u}=(0,B.uc)([n]),c=(0,B.XO)(n,e),h=(0,B.LZ)(n,"SAMPLESPERPIXEL")||e.planes,f=i*s,d=(0,B.LZ)(n,"BITSPERSAMPLE"),p=34887===(0,B.ni)(n),m=F(a),g=[];for(let t=0;t<h;t++)g.push(new m(f));const y=Math.ceil(i/l),w=new Uint8Array(f).fill(255);let C=null,x=!1;if(d%8==0)if(p&&c&&h>1){const a=Math.round(r.length/h);for(let c=0;c<a;c++){const a=Math.floor(c/y)*u,f=c%y*l,d=a*i+f;for(let p=0;p<h;p++){const m=c*h+p;0===o[m]?(C=null,x=!0):C=await Z(t,e.littleEndian,n,r[m],o[m]);const y=Math.min(l,i-f),b=Math.min(u,s-a),v=g[p];for(let t=0;t<b;t++){let e=d+t*i,n=t*l;for(let t=0;t<y;t++,e++,n++)C?v[e]=C[n]:w[e]=0}}}}else for(let a=0;a<r.length;a++){const f=Math.floor(a/y)*u,d=a%y*l,m=f*i+d;0===o[a]?(C=null,x=!0):C=await Z(t,e.littleEndian,n,r[a],o[a]);const b=Math.min(l,i-d),v=Math.min(u,s-f);for(let t=0;t<h;t++){const e=g[t];if(c||p)for(let n=0;n<v;n++){let r=m+n*i,o=l*u*t+n*l;for(let t=0;t<b;t++,r++,o++)C?e[r]=C[o]:w[r]=0}else for(let n=0;n<v;n++){let r=m+n*i,o=n*l*h+t;for(let t=0;t<b;t++,r++,o+=h)C?e[r]=C[o]:w[r]=0}}}return{width:i,height:s,pixelType:a,pixels:g,mask:x?w:void 0}}(t,o,u):function(t,e,n){const r=N.Z===e.littleEndian,o=(0,B.wc)(n,"STRIPOFFSETS"),i=(0,B.wc)(n,"STRIPBYTECOUNTS");if(null==o||null==i)return null;const{width:s,height:a,pixelType:l}=(0,B.uc)([n]),u=(0,B.LZ)(n,"SAMPLESPERPIXEL")||e.planes,c=(0,B.LZ)(n,"PHOTOMETRICINTERPRETATION"),h=s*a,f=(0,B.LZ)(n,"BITSPERSAMPLE"),d=F(l),p=new d(h*u),m=(0,B.LZ)(n,"ROWSPERSTRIP"),g=(0,B.ni)(n);let y,w,C,x;if(f%8==0)for(let n=0;n<o.length;n++){const a=n*(m*s)*u;if("u8"===l||"s8"===l||r)8===g||32946===g?(C=new Uint8Array(t,o[n],i[n]),C=_(C),w=C.buffer):6===g?(C=new Uint8Array(t,o[n],i[n]),C=V(C,u,c),w=C.buffer):5===g?(C=T(t,o[n],i[n],e.littleEndian),w=C.buffer):w=t.slice(o[n],o[n]+i[n]),w=z(w,f),y=new d(w);else{switch(6===g||8===g||32946===g?(C=new Uint8Array(t,o[n],i[n]),x=_(C),w=x.buffer):(w=new ArrayBuffer(i[n]),C=new Uint8Array(t,o[n],i[n]),x=new Uint8Array(w)),l){case"u16":case"s16":for(let t=0;t<C.length;t+=2)x[t]=C[t+1],x[t+1]=C[t];break;case"u32":case"s32":case"f32":for(let t=0;t<C.length;t+=4)x[t]=C[t+3],x[t+1]=C[t+2],x[t+2]=C[t+1],x[t+3]=C[t]}w=z(w,f),y=new d(w)}p.set(y,a)}const b=[];if(1===u)b.push(p);else for(let t=0;t<u;t++){const e=new d(h);for(let n=0;n<h;n++)e[n]=p[n*u+t];b.push(e)}return{width:s,height:a,pixelType:l,pixels:b}}(t,o,u),l?(null!=c&&(0,S.Sp)(l,c,{matchAllNoData:null==s&&e?.matchAllNoData}),l):l}(t,{...e,noDataValue:e.tiffNoDataValue,matchAllNoData:e.matchAllNoData});return(0,o.Lw)(n),new W.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:n.pixelType.toLowerCase(),mask:n.mask,bandMasks:n.bandMasks})}function X(t,e){const n=e.pixelType||"u8",r=W.A.getPixelArrayConstructor(n),o="u8"===n?t:new r(t.buffer),i=[],s=e.planes||1;if(1===s)i.push(o);else for(let n=0;n<s;n++){const a=(e.width||1)*(e.height||t.length),l=new r(a);for(let t=0;t<a;t++)l[t]=o[t*s+n];i.push(l)}return new W.A({width:e.width||1,height:e.height||t.length,pixels:i,pixelType:n})}function $(t,e){return X(new a(new Uint8Array(t)).getBytes(),e)}function Q(t,e){return X(T(t,e.offset,e.eof,!e.isInputBigEndian),e)}function tt(t,e){const n=e.format,{pixelTypeCtor:r}=function(t){let e=null,n=null;switch(t?t.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":n=255,e=Uint8Array;break;case"u16":n=n||65535,e=Uint16Array;break;case"u32":n=n||2**32-1,e=Uint32Array;break;case"s8":n=n||-128,e=Int8Array;break;case"s16":n=n||-32768,e=Int16Array;break;case"s32":n=n||0-2**31,e=Int32Array;break;default:e=Float32Array}return{pixelTypeCtor:e,noDataValue:n}}(e.pixelType),o=(0,D.decode)(t,{width:e.width,height:e.height,pixelType:r,format:n});return new W.A({width:e.width,height:e.height,pixels:o.pixels,pixelType:e.pixelType,mask:o.mask})}function et(t,e){const n=p.decode(t,e.applyJpegMask);return new W.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:"u8",mask:n.mask})}async function nt(t,e,n){const o=await async function(t,e,n){if(!t||t.byteLength<10)throw new r.A("imagecanvasdecoder: decode","required a valid encoded data as input.");const{width:o,height:s,format:c}=e,{applyJpegMask:f}=e;if(f&&(!o||!s))throw new r.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");let d=null;"jpg"===c&&f&&o&&s&&(d=function(t,e){try{const n=new Uint8Array(t);let r=Math.ceil(n.length/2);const o=n.length-2;for(;r<o&&(255!==n[r]||217!==n[r+1]);r++);r+=2;let i=null;if(r<n.length-1){const t=new a(n.subarray(r)).getBytes();i=new Uint8Array(e.width*e.height);let o=0;for(let e=0;e<t.length;e++)for(let n=7;n>=0;n--)i[o++]=t[e]>>n&1}return i}catch{return null}}(t,{width:o,height:s}));try{const r=new Blob([new Uint8Array(t)],{type:h(c)}),o=await createImageBitmap(r);if((0,i.G4)(n))throw(0,i.NK)();const{tileIndex:s,tileSize:a}=e;return null!=s&&null!=a?u(o,s,a):l(o,d)}catch(t){if((0,i.zf)(t))throw t;throw new r.A("imagecanvasdecoder: decode","cannot load image")}}(t,e,n);return new W.A(o)}async function rt(t,e,n){const o=e.format||ot(t),s={...e,format:o},{canvasUsage:a}=e;if("no-canvas"!==a)try{return await nt(t,s,n)}catch(t){if((0,i.zf)(t))throw t;if("canvas-only"===a)throw new r.A("rasterCodec:decode",`failed to decode the input data with canvas for format ${o}`)}return"jpg"===o?et(t,s):function(t,e){const n=new Uint8Array(t),r=new H(n),{width:o,height:i}=e,s=o*i,a=r.decode(),l=new Uint8Array(s);for(let t=0;t<s;t++)l[t]=a[4*t+3];const u=new W.A({width:o,height:i,pixels:[],pixelType:"u8",mask:l});for(let t=0;t<3;t++){const e=new Uint8Array(s);for(let n=0;n<s;n++)e[n]=a[4*n+t];u.pixels.push(e)}return u}(t,s)}function ot(t){if(!t)return;const e=new Uint8Array(t,0,10);let n;return 255===e[0]&&216===e[1]?n="jpg":137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?n="png":67===e[0]&&110===e[1]&&116===e[2]&&90===e[3]&&73===e[4]&&109===e[5]&&97===e[6]&&103===e[7]&&101===e[8]&&32===e[9]||76===e[0]&&101===e[1]&&114===e[2]&&99===e[3]&&50===e[4]&&32===e[5]?n="lerc":73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]||73===e[0]&&73===e[1]&&43===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&43===e[3]?n="tiff":71===e[0]&&73===e[1]&&70===e[2]?n="gif":66===e[0]&&77===e[1]?n="bmp":81===e[0]&&66===e[1]&&51===e[2]&&(n="qb3"),n}async function it(t,e={},n){if(null==t)throw new r.A("rasterCodec:decode","missing encodeddata parameter.");let o=e.format?.toLowerCase();if(!("bsq"!==o&&"bip"!==o||null!=e.width&&null!=e.height))throw new r.A("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===o&&e.customOptions)return async function(t,e){const n=await async function(t,e){const{headerInfo:n,ifd:r,offsets:o,sizes:i}=e,s=[];for(let e=0;e<o.length;e++){i[e];const a=await Z(t,n.littleEndian,r,o[e],i[e]||t.byteLength);s.push(a)}const a=(0,B.XO)(r,n),l=(0,B.LZ)(r,"BITSPERSAMPLE"),u=G((0,B.LZ)(r,"SAMPLEFORMAT")??1,l),c=(0,B.LZ)(r,"SAMPLESPERPIXEL")||n.planes,h=F(u),f=(0,B.LZ)(r,"TILEWIDTH"),d=(0,B.LZ)(r,"TILELENGTH"),p=34887===(0,B.ni)(r),m=f*d;let g;const y=[];let w=s[0];for(let t=0;t<c;t++){if(g=new h(m),s.length===c)w=s[t],w.length===m&&(g=w);else if(w.length)if(a||p)g=w.length===m?w:w.slice(m*t,m*(t+1));else for(let e=0;e<m;e++)g[e]=w[e*c+t];y.push(g)}const C=n.noData?n.noData[0]:e.noDataValue,x=n.metadata?n.metadata.statistics:null,b=x?x.map(t=>t.min):null,v=x?x.map(t=>t.max):null,A={pixelType:u,width:f,height:d,pixels:y,noDataValue:C};return null!=C?(0,S.Sp)(A,C,{matchAllNoData:e?.matchAllNoData}):b&&v&&e.applyMinMaxConstraint&&(A.mask=function(t,e,n){if(!(t&&t.length>0&&e&&n))return null;let r,o,i;const s=t[0].length,a=t.length,l=new Uint8Array(s);for(let u=0;u<a;u++)if(r=t[u],o=e[u],i=n[u],0===u)for(let t=0;t<s;t++)l[t]=r[t]<o||r[t]>i?0:1;else for(let t=0;t<s;t++)l[t]&&(l[t]=r[t]<o||r[t]>i?0:1);return l}(y,b,v)),A}(t,e.customOptions),r=new W.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:n.pixelType.toLowerCase(),mask:n.mask});return e.skipStatistics||r.updateStatistics(),r}(t,e);if(!o||"bsq"!==o&&"bip"!==o&&"deflate"!==o&&"lzw"!==o){if(o=ot(t),!o)throw String.fromCharCode.apply(null,[...new Uint8Array(t,0,10)]).toLowerCase().includes("error")?new r.A("rasterCodec:decode","input data contains error"):new r.A("rasterCodec:decode","unsupported raster format");e={...e,format:o}}const i=function(t){let e=null;switch(t){case"lerc":e=K;break;case"jpg":case"png":e=rt;break;case"bmp":case"gif":e=nt;break;case"bsq":case"bip":e=tt;break;case"tiff":e=Y;break;case"deflate":e=$;break;case"lzw":e=Q;break;case"qb3":e=J;break;default:e=()=>{throw new r.A("rasterCodec:decode",`unsupported raster format ${t}`)}}return e}(o);let s;e.isPoint&&(null!=(e={...e}).width&&e.width++,null!=e.height&&e.height++);const{offsets:a}=e;if(a&&a.length>1){const r=a.map((r,o)=>i(t.slice(r,a[o+1]),e,n)),o=await Promise.all(r);s=o[0],s.pixels=o.map(t=>t.pixels[0]);const l=o.map(t=>t.mask);l.some(t=>null!=t)&&(l.forEach((t,e)=>{l[e]??=new Uint8Array(s.width*s.height).fill(255)}),s.bandMasks=l,s.mask=W.A.combineBandMasks(l))}else s=await i(t,{...e,offset:a?.[0]??e.offset},n);return"jpg"!==o&&null!=e.noDataValue&&1===s.depthCount&&(0,S.Sp)(s,e.noDataValue,{customFloatTolerance:e.tolerance}),e.isPoint&&function(t,e="bilinear"){if(!t)return;const{pixels:n,width:r,height:o,mask:i}=t;if(!n||0===n.length)return;const s=r-1,a=o-1,l=[];let u=null;const c=W.A.getPixelArrayConstructor(t.pixelType);if("nearest"===e){for(const t of n){const e=new c(s*a);for(let n=0;n<a;n++){const o=n*r;for(let r=0;r<s;r++)e[n*s+r]=t[o+r]}l.push(e)}if(null!=i){u=new Uint8Array(s*a);for(let t=0;t<a;t++){const e=t*r;for(let n=0;n<s;n++)u[t*s+n]=i[e+n]}}}else{for(const t of n){const e=new c(s*a);for(let n=0;n<a;n++){const o=n*r;for(let i=0;i<s;i++)e[n*s+i]=(t[o+i]+t[o+i+1]+t[o+r+i]+t[o+r+i+1])/4}l.push(e)}if(i){u=new Uint8Array(s*a);for(let t=0;t<a;t++){const e=t*r;for(let n=0;n<s;n++)u[t*s+n]=Math.min.apply(null,[i[e+n],i[e+n+1],i[e+r+n],i[e+r+n+1]])}}}t.width=s,t.height=a,t.mask=u,t.pixels=l}(s),s.statistics?.length||e.skipStatistics||s.updateStatistics(),s}},94778(t,e,n){n.d(e,{$p:()=>l,Sp:()=>u,X1:()=>i,hP:()=>o,yM:()=>a,zw:()=>s});const r={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function o(t){return r[t]??[-34028234663852886e22,34028234663852886e22]}function i(t,e){return null==t||null==e?"s32":t<0?t>=-128&&e<128?"s8":t>=-32768&&e<32768?"s16":"s32":e<256?"u8":e<65536?"u16":"u32"}function s(t){return(t?.startsWith("s")||t?.startsWith("u"))??!1}function a(t,e,n,r){let[i,a]=o(n);const l=s(n);return l&&(i-=1e-5,a+=1e-5),l?n.startsWith("u")?function(t,e,n,r){const[o,i]=r;for(let r=0;r<e.length;r++)if(e[r]){const s=t[r];s<o||s>i?e[r]=0:n[r]=s+.5|0}}(t,e,r,[i,a]):function(t,e,n,r){const[o,i]=r;for(let r=0;r<e.length;r++)if(e[r]){const s=t[r];s<o||s>i?e[r]=0:n[r]=s+(s>0?.5:-.5)|0}}(t,e,r,[i,a]):function(t,e,n,r){const[o,i]=r;for(let r=0;r<e.length;r++)if(e[r]){const s=t[r];s<o||s>i?e[r]=0:n[r]=s}}(t,e,r,[i,a])}function l(t,e){for(let n=0;n<e.length;n++)e[n]&&isNaN(t[n])&&(e[n]=0,t[n]=0)}function u(t,e,n){if(t.depthCount&&t.depthCount>1)return;const{pixels:r,statistics:i,pixelType:s}=t,a=r[0].length,l=t.bandMasks??[],u=t.mask??new Uint8Array(a).fill(255),c="f32"===s||"f64"===s,h=o(s);let f=!1;for(let t=0;t<r.length;t++){const o="number"==typeof e?e:e[t];if(null==o)continue;const a=i?.[t]?.minValue??h[0],d=i?.[t]?.maxValue??h[1];if(a>o+Number.EPSILON||d<o-Number.EPSILON)continue;const p=l[t]||u.slice(),m=r[t],g=n?.customFloatTolerance;if(c&&0!==g){let t=g;t||(t=Math.abs(o)>=9999999e31?2e-7*Math.abs(o):"f32"===s?2**-23:Number.EPSILON);for(let e=0;e<m.length;e++)p[e]&&Math.abs(m[e]-o)<t&&(m[e]=0,p[e]=0,u[e]=0,f=!0)}else for(let t=0;t<m.length;t++)p[t]&&m[t]===o&&(m[t]=0,p[t]=0,u[t]=0,f=!0);l[t]=p}if(f){const e=t.bandMasks||t.pixels.length>1?l:null;n?.matchAllNoData?t.mask=e&&e.length>1?function(t){if(t.length<2)return t[0];const e=t[0].length,n=new Uint8Array(e).fill(0);for(let r=0;r<t.length;r++){const o=t[r];for(let t=0;t<e;t++)o[t]&&(n[t]=255)}return n}(e):u:(t.bandMasks=e,t.mask=u)}f&&"updateStatistics"in t&&t.updateStatistics()}},44094(t,e,n){n.d(e,{Cr:()=>w,JM:()=>I,LZ:()=>d,RW:()=>E,XO:()=>v,_J:()=>b,ni:()=>A,r9:()=>S,uT:()=>P,uc:()=>k,wc:()=>h,zS:()=>T});var r=n(49186),o=n(9334),i=n(94213);const s=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],a=4294967296,l=new Map([[1,(t,e)=>t.getUint8(e)],[2,(t,e)=>t.getUint8(e)],[3,(t,e,n)=>t.getUint16(e,n)],[4,(t,e,n)=>t.getUint32(e,n)],[5,(t,e,n)=>t.getUint32(e,n)/t.getUint32(e+4,n)],[6,(t,e)=>t.getInt8(e)],[7,(t,e)=>t.getUint8(e)],[8,(t,e,n)=>t.getInt16(e,n)],[9,(t,e,n)=>t.getInt32(e,n)],[10,(t,e,n)=>t.getInt32(e,n)/t.getInt32(e+4,n)],[11,(t,e,n)=>t.getFloat32(e,n)],[12,(t,e,n)=>t.getFloat64(e,n)],[13,(t,e,n)=>t.getUint32(e,n)],[16,(t,e,n)=>u(t,e,n)],[17,(t,e,n)=>function(t,e,n){let r=n?t.getInt32(e,n):t.getUint32(e,n),o=n?t.getUint32(e+4,n):t.getInt32(e+4,n);const i=(n?r:o)>=0?1:-1;return n?r*=i:o*=i,i*(n?o*a+r:r*a+o)}(t,e,n)],[18,(t,e,n)=>u(t,e,n)]]);function u(t,e,n){const r=t.getUint32(e,n),o=t.getUint32(e+4,n);return n?o*a+r:r*a+o}function c(t,e){return{x:e[0]*t.x+e[1]*t.y+e[2],y:e[3]*t.x+e[4]*t.y+e[5]}}function h(t,e){return t.get(e)?.values}function f(t,e){return t.get(e)?.values?.[0]}function d(t,e){return t.get(e)?.values?.[0]}function p(t,e,n,r){return r?u(t,e,n):t.getUint32(e,n)}function m(t,e,n,r=0,o=i.NB,s=4){const a=8===s,l=a?u(new DataView(t,n,8),0,e):new DataView(t,n,2).getUint16(0,e),c=4+2*s,h=a?8:2,f=h+l*c;if(n+f>t.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:f};const d=8===s?8:4,m=n+f+d<=t.byteLength?p(new DataView(t,n+f,d),0,e,8===s):null,g=n+h,y=new Map;for(let n=0;n<l;n++){const a=new DataView(t,g+c*n,c),l=a.getUint16(0,e),u=a.getUint16(2,e),h=(0,i.kq)(l,o),f=[];let d=0,m=0;2===s?(d=a.getUint16(4,e),m=a.getUint16(6,e)):4===s?(d=a.getUint32(4,e),m=a.getUint32(8,e)):8===s&&(d=p(a,4,e,!0),m=p(a,12,e,!0),f.push(a.getUint32(12,e)),f.push(a.getUint32(16,e)));const C={id:l,type:u,valueCount:d,valueOffset:m,valueOffsets:f,values:null};w(t,e,C,r,!1,s),y.set(h,C)}return{success:!0,ifd:y,nextIFD:m,requiredBufferSize:f}}function g(t,e,n,r){const{type:o,valueCount:i}=e,a=s[o];if(null==a||a<=0)return[];const u=i*a,c=u/a,h=new DataView(t,n,u),f=[],d=l.get(o);if(!d)return[];for(let t=0,e=0;t<c;t++,e+=a)f.push(d(h,e,r));return f}function y(t,e,n=4){const{type:r,valueCount:o,valueOffsets:i}=t,l=8*s[r],u=o*s[r]*8;let{valueOffset:c}=t;const h=8===n?64:32;if(!e)if(h<=32)c>>>=32-u;else{const t=i?.length?i[0]:c>>>0,e=i?.length?i[1]:Math.round((c-t)/a);u<=32?(c=t>>>32-u,i[0]=c):(c=t*2**(32-u)+(e>>>32-u),i[0]=t,i[1]=e>>>32-u)}if(1===o&&l===h)return[c];const f=[];if(64===h){const t=i?.length?i[0]:c>>>0,e=i?.length?i[1]:Math.round((c-t)/a);let n=t,r=32;for(let t=1;t<=o;t++){const o=32-l*t%32;if(r<l){const t=n<<o>>>32-r,i=e<<32-r>>>32-r;n=e,f.push(t+i*2**(l-r)),r-=32-(l-r)}else f.push(n<<o>>>32-l),r-=l;0===r&&(r=32,n=e)}return f}for(let t=1;t<=o;t++){const e=32-l*t;f.push(c<<e>>>32-l)}return f}function w(t,e,n,r=0,i=!1,a=4){if(n.values)return!0;const{type:l,valueCount:u}=n;let c=n.valueOffset;const h=u*s[l],f=u*s[l]*8,d=8===a?64:32;if(f>d&&h>(i?t.byteLength:t?t.byteLength-c+r:0))return n.offlineOffsetSize=[c,h],n.values=null,!1;let p=[];if(f<=d?p=y(n,e,a):(c-=r,i&&(c=0),p=g(t,n,c,e)),2===l){const t=p.length?(0,o.w)(p instanceof Uint8Array?p:new Uint8Array(p)):"";n.values=[t]}else n.values=p;return!0}function C(t){const e=d(t,"PHOTOMETRICINTERPRETATION"),n=h(t,"COLORMAP");if(null!=e&&e<=3&&n?.length&&n.length%3==0){const t=[],e=n.length/3;for(let r=0;r<e;r++)t.push([r,n[r]>>>8,n[r+e]>>>8,n[r+2*e]>>>8]);return t}}function x(t){const e=h(t,"GEOTIEPOINTS"),n=h(t,"GEOPIXELSCALE"),r=h(t,"GEOTRANSMATRIX"),o=t.get("GEOKEYDIRECTORY")?.data,i=!!o&&2===d(o,"GTRasterTypeGeoKey"),{spatialReference:s,isPseudoGeographic:a}=function(t){const e=f(t,"GEOASCIIPARAMS");let n=null;if(e){const t=e.split("|").find(t=>t.includes("ESRI PE String = ")),r=t?t.replace("ESRI PE String = ",""):"";n=r.startsWith("COMPD_CS")||r.startsWith("PROJCS")||r.startsWith("GEOGCS")?{wkid:null,wkt:r}:null}let r=!1;const o=t.get("GEOKEYDIRECTORY")?.data;if(o){const t=d(o,"GTModelTypeGeoKey");if(2===t){const t=d(o,"GeographicTypeGeoKey");t>=1024&&t<=32766&&(n={wkid:t}),n||32767!==t||(r=!0,n={wkid:4326})}else if(1===t){const t=d(o,"ProjectedCSTypeGeoKey");t>=1024&&t<=32766&&(n={wkid:t})}}return{spatialReference:n,isPseudoGeographic:r}}(t);let l,u;n&&e&&e.length>=6?(l=[n[0],0,e[3]-e[0]*n[0],0,-Math.abs(n[1]),e[4]-e[1]*n[1]],i&&(l[2]-=.5*l[0]+.5*l[1],l[5]-=.5*l[3]+.5*l[4])):16===r?.length&&(l=i?[r[0],r[1],r[3]-.5*r[0],r[4],r[5],r[7]-.5*r[5]]:[r[0],r[1],r[3],r[4],r[5],r[7]]);const p=d(t,"IMAGEWIDTH"),m=d(t,"IMAGELENGTH");if(l){const t=[{x:0,y:m},{x:0,y:0},{x:p,y:m},{x:p,y:0}];let e,n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;for(let s=0;s<t.length;s++)e=c(t[s],l),n=e.x>n?n:e.x,o=e.x<o?o:e.x,r=e.y>r?r:e.y,i=e.y<i?i:e.y;u={xmin:n,xmax:o,ymin:r,ymax:i,spatialReference:s}}else u={xmin:-.5,ymin:.5-m,xmax:p-.5,ymax:.5,spatialReference:s};return a&&(u.xmax-u.xmin>400||Math.max(Math.abs(u.xmin),Math.abs(u.xmax))>361)&&(u.spatialReference=null),{extent:u,isPseudoGeographic:a,affine:n?void 0:l}}function b(t){const{width:e,height:n,tileHeight:r,tileWidth:o}=t,i=t.planes,s=o?o*r:e*n,a=d(t.ifds[0],"BITSPERSAMPLE");let l="";return s*i>2**30/(a>8?a/8:1)&&(l=o?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),l}function v(t,e){const n=d(t,"PLANARCONFIGURATION");return null!=n?2===n:!!e&&e.isBSQ}function A(t){return d(t,"COMPRESSION")??1}function M(t){const e=A(t);let n,r=!1;switch(e){case 1:n="NONE",r=!0;break;case 2:case 3:case 4:case 32771:n="CCITT";break;case 5:n="LZW",r=!0;break;case 6:case 7:n="JPEG",r=!0;break;case 32773:n="PACKBITS";break;case 8:case 32946:n="DEFLATE",r=!0;break;case 34712:n="JPEG2000";break;case 34887:n="LERC",r=!0;break;default:n=String(e)}return{compression:n,supported:r}}function k(t){const e=t[0],n=d(e,"TILEWIDTH"),r=d(e,"TILELENGTH"),o=d(e,"IMAGEWIDTH"),i=d(e,"IMAGELENGTH"),s=d(e,"BITSPERSAMPLE"),a=d(e,"SAMPLESPERPIXEL"),l=d(e,"SAMPLEFORMAT")??1,u=function(t,e){let n="unknown";return 3===t?n=64===e?"f64":"f32":1===t?1===e?n="u1":2===e?n="u2":4===e?n="u4":e<=8?n="u8":e<=16?n="u16":e<=32&&(n="u32"):2===t&&(e<=8?n="s8":e<=16?n="s16":e<=32&&(n="s32")),n}(l,s),c=v(e),h=function(t){return t.get("GDAL_NODATA")?.values}(e);let p=null;h?.length&&(p=h.map(t=>parseFloat(t)),p.some(t=>isNaN(t))&&(p=null));let m=!0,g="";const{compression:y,supported:w}=M(e);w||(m=!1,g+="unsupported tag compression "+y),l>3&&(m=!1,g+="unsupported tag sampleFormat "+l),s>32&&64!==s&&(m=!1,g+="unsupported tag bitsPerSample "+s);const{extent:A,isPseudoGeographic:k,affine:I}=x(e),P=T(t);let E,R,L,U,O;if(P.length>0){L=Math.round(Math.log(o/d(P[0],"IMAGEWIDTH"))/Math.LN2);const t=P[P.length-1];U=P.length,E=d(t,"TILEWIDTH"),R=d(t,"TILELENGTH")}E=null!=U&&U>0?E||n:null,R=null!=U&&U>0?R||r:null,n&&(O=[{maxCol:Math.ceil(o/n)-1,maxRow:Math.ceil(i/r)-1,minRow:0,minCol:0}],P.forEach(t=>{O.push({maxCol:Math.ceil(d(t,"IMAGEWIDTH")/d(t,"TILEWIDTH"))-1,maxRow:Math.ceil(d(t,"IMAGELENGTH")/d(t,"TILELENGTH"))-1,minRow:0,minCol:0})}));const D=function(t){if(!t)return null;const e=t.match(/<Item(.*?)Item>/gi);if(!e||0===e.length)return null;const n=new Map;for(let t=0;t<e.length;t++){const r=e[t];let o=r.indexOf("sample=");const i=o>-1?r.slice(o+8,r.indexOf('"',o+8)):null;o=r.indexOf("name=");const s=o>-1?r.slice(o+6,r.indexOf('"',o+6)):r.slice(6,r.indexOf(">"));if(s){const t=r.slice(r.indexOf(">")+1,r.indexOf("</Item>")).trim();null!=i?n.has(s)?n.get(s)[i]=t:n.set(s,[t]):n.set(s,t)}}const r=n.get("STATISTICS_MINIMUM"),o=n.get("STATISTICS_MAXIMUM"),i=n.get("STATISTICS_MEAN"),s=n.get("STATISTICS_STDDEV");let a=null;if(r&&o){a=[];for(let t=0;t<r.length;t++)a.push({min:parseFloat(r[t]),max:parseFloat(o[t]),avg:i&&parseFloat(i[t]),stddev:s&&parseFloat(s[t])})}const l=n.get("BandName"),u=n.get("WavelengthMin"),c=n.get("WavelengthMax");let h=null;if(l){h=[];for(let t=0;t<l.length;t++)h.push({BandName:l[t],WavelengthMin:u&&parseFloat(u[t]),WavelengthMax:c&&parseFloat(c[t])})}return{statistics:a,bandProperties:h,dataType:n.get("DataType"),rawMetadata:n}}(f(t[0],"GDAL_METADATA"));g+=" "+b({width:o,height:i,tileWidth:n,tileHeight:r,planes:a,ifds:t});const B=S(t).length===P.length+1,N=P?.length?P.map(t=>({x:o/d(t,"IMAGEWIDTH"),y:i/d(t,"IMAGELENGTH")})):void 0,G=C(e);return{width:o,height:i,tileWidth:n,tileHeight:r,planes:a,isBSQ:c,pixelType:u,compression:y,noData:p,hasMaskBand:B,isSupported:m,pyramidResolutions:N,message:g,extent:A,isPseudoGeographic:k,affine:I,firstPyramidLevel:L,maximumPyramidLevel:U,pyramidBlockWidth:E,pyramidBlockHeight:R,tileBoundary:O,metadata:D,colormap:G}}function T(t){return t.filter(t=>1===d(t,"NEWSUBFILETYPE"))}function S(t){return t.filter(t=>{const e=!(4&~(d(t,"NEWSUBFILETYPE")??0)),n=4===d(t,"PHOTOMETRICINTERPRETATION");return e&&n})}function I(t,e,n,r=0,s=i.NB,a=4){const l=m(t,e,n,r,s,a);let u;const c=l.ifd;if(c){if(i.RR.forEach((n,o)=>{c.has(o)&&(u=c.get(o),u.data=m(t,e,u.valueOffset-r,r,n).ifd)}),c.has("GEOKEYDIRECTORY")){u=c.get("GEOKEYDIRECTORY");const n=u.values;if(n&&n.length>4){const o=n[0]+"."+n[1]+"."+n[2];u.data=m(t,e,u.valueOffset+6-r,r,i.YC,2).ifd,u.data&&u.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[o]})}}if(c.has("XMP")){u=c.get("XMP");const t=u.values;"number"==typeof t[0]&&7===u.type&&(u.values=[(0,o.w)(new Uint8Array(t))])}}return l}function P(t){const e=new DataView(t,0,16),n=e.getUint16(0,!1);let o=null;if(18761===n)o=!0;else{if(19789!==n)throw new r.A("tiff-reader:parse-signature","unexpected endianness byte");o=!1}const i=e.getUint16(2,o);if(42!==i&&43!==i)throw new r.A("tiff-reader:parse-signature","unexpected tiff identifier");let s=4;const a=43===i;if(a){const t=e.getUint16(s,o);if(s+=2,8!==t||0!==e.getUint16(s,o))throw new r.A("tiff-reader:parse-signature","unsupported bigtiff version");s+=2}return{littleEndian:o,isBigTiff:a,firstIFDPos:p(e,s,o,a)}}function E(t){const{littleEndian:e,isBigTiff:n,firstIFDPos:r}=P(t);let o=r;const s=[];do{const r=I(t,e,o,0,i.NB,n?8:4);if(!r.success)break;s.push(r.ifd),o=r.nextIFD}while(o>0);return{...k(s),littleEndian:e,isBigTiff:n,ifds:s,pyramidIFDs:T(s),maskIFDs:S(s)}}},94213(t,e,n){n.d(e,{NB:()=>r,RR:()=>a,YC:()=>i,kq:()=>s});const r=(()=>{const t=[];return t[254]="NEWSUBFILETYPE",t[255]="SUBFILETYPE",t[256]="IMAGEWIDTH",t[257]="IMAGELENGTH",t[258]="BITSPERSAMPLE",t[259]="COMPRESSION",t[262]="PHOTOMETRICINTERPRETATION",t[263]="THRESHHOLDING",t[264]="CELLWIDTH",t[265]="CELLLENGTH",t[266]="FILLORDER",t[269]="DOCUMENTNAME",t[270]="IMAGEDESCRIPTION",t[271]="MAKE",t[272]="MODEL",t[273]="STRIPOFFSETS",t[274]="ORIENTATION",t[277]="SAMPLESPERPIXEL",t[278]="ROWSPERSTRIP",t[279]="STRIPBYTECOUNTS",t[280]="MINSAMPLEVALUE",t[281]="MAXSAMPLEVALUE",t[282]="XRESOLUTION",t[283]="YRESOLUTION",t[284]="PLANARCONFIGURATION",t[285]="PAGENAME",t[286]="XPOSITION",t[287]="YPOSITION",t[288]="FREEOFFSETS",t[289]="FREEBYTECOUNTS",t[290]="GRAYRESPONSEUNIT",t[291]="GRAYRESPONSECURVE",t[292]="T4OPTIONS",t[293]="T6OPTIONS",t[296]="RESOLUTIONUNIT",t[297]="PAGENUMBER",t[300]="COLORRESPONSEUNIT",t[301]="TRANSFERFUNCTION",t[305]="SOFTWARE",t[306]="DATETIME",t[315]="ARTIST",t[316]="HOSTCOMPUTER",t[317]="PREDICTOR",t[318]="WHITEPOINT",t[319]="PRIMARYCHROMATICITIES",t[320]="COLORMAP",t[321]="HALFTONEHINTS",t[322]="TILEWIDTH",t[323]="TILELENGTH",t[324]="TILEOFFSETS",t[325]="TILEBYTECOUNTS",t[326]="BADFAXLINES",t[327]="CLEANFAXDATA",t[328]="CONSECUTIVEBADFAXLINES",t[330]="SUBIFD",t[332]="INKSET",t[333]="INKNAMES",t[334]="NUMBEROFINKS",t[336]="DOTRANGE",t[337]="TARGETPRINTER",t[338]="EXTRASAMPLES",t[339]="SAMPLEFORMAT",t[340]="SMINSAMPLEVALUE",t[341]="SMAXSAMPLEVALUE",t[342]="TRANSFERRANGE",t[347]="JPEGTABLES",t[512]="JPEGPROC",t[513]="JPEGIFOFFSET",t[514]="JPEGIFBYTECOUNT",t[515]="JPEGRESTARTINTERVAL",t[517]="JPEGLOSSLESSPREDICTORS",t[518]="JPEGPOINTTRANSFORM",t[519]="JPEGQTABLES",t[520]="JPEGDCTABLES",t[521]="JPEGACTABLES",t[529]="YCBCRCOEFFICIENTS",t[530]="YCBCRSUBSAMPLING",t[531]="YCBCRPOSITIONING",t[532]="REFERENCEBLACKWHITE",t[700]="XMP",t[33550]="GEOPIXELSCALE",t[33922]="GEOTIEPOINTS",t[33432]="COPYRIGHT",t[42112]="GDAL_METADATA",t[42113]="GDAL_NODATA",t[50844]="RPCCOEFFICIENT",t[34264]="GEOTRANSMATRIX",t[34735]="GEOKEYDIRECTORY",t[34736]="GEODOUBLEPARAMS",t[34737]="GEOASCIIPARAMS",t[34665]="EXIFIFD",t[34853]="GPSIFD",t[40965]="INTEROPERABILITYIFD",t})(),o=(()=>{const t=r.slice();return t[36864]="ExifVersion",t[40960]="FlashpixVersion",t[40961]="ColorSpace",t[42240]="Gamma",t[37121]="ComponentsConfiguration",t[37122]="CompressedBitsPerPixel",t[40962]="PixelXDimension",t[40963]="PixelYDimension",t[37500]="MakerNote",t[37510]="UserComment",t[40964]="RelatedSoundFile",t[36867]="DateTimeOriginal",t[36868]="DateTimeDigitized",t[36880]="OffsetTime",t[36881]="OffsetTimeOriginal",t[36882]="OffsetTimeDigitized",t[37520]="SubSecTime",t[37521]="SubSecTimeOriginal",t[37522]="SubSecTimeDigitized",t[37888]="Temperature",t[37889]="Humidity",t[37890]="Pressure",t[37891]="WaterDepth",t[37892]="Acceleration",t[37893]="CameraElevationAngle",t[42016]="ImageUniqueID",t[42032]="CameraOwnerName",t[42033]="BodySerialNumber",t[42034]="LensSpecification",t[42035]="LensMake",t[42036]="LensModel",t[42037]="LensSerialNumber",t[33434]="ExposureTime",t[33437]="FNumber",t[34850]="ExposureProgram",t[34852]="SpectralSensitivity",t[34855]="PhotographicSensitivity",t[34856]="OECF",t[34864]="SensitivityType",t[34865]="StandardOutputSensitivity",t[34866]="RecommendedExposureIndex",t[34867]="ISOSpeed",t[34868]="ISOSpeedLatitudeyyy",t[34869]="ISOSpeedLatitudezzz",t[37377]="ShutterSpeedValue",t[37378]="ApertureValue",t[37379]="BrightnessValue",t[37380]="ExposureBiasValue",t[37381]="MaxApertureValue",t[37382]="SubjectDistance",t[37383]="MeteringMode",t[37384]="LightSource",t[37385]="Flash",t[37386]="FocalLength",t[37396]="SubjectArea",t[41483]="FlashEnergy",t[41484]="SpatialFrequencyResponse",t[41486]="FocalPlaneXResolution",t[41487]="FocalPlaneYResolution",t[41488]="FocalPlaneResolutionUnit",t[41492]="SubjectLocation",t[41493]="ExposureIndex",t[41495]="SensingMethod",t[41728]="FileSource",t[41729]="SceneType",t[41730]="CFAPattern",t[41985]="CustomRendered",t[41986]="ExposureMode",t[41987]="WhiteBalance",t[41988]="DigitalZoomRatio",t[41989]="FocalLengthIn35mmFilm",t[41990]="SceneCaptureType",t[41991]="GainControl",t[41992]="Contrast",t[41993]="Saturation",t[41994]="Sharpness",t[41995]="DeviceSettingDescription",t[41996]="SubjectDistanceRange",t})(),i=(()=>{const t=[];return t[1024]="GTModelTypeGeoKey",t[1025]="GTRasterTypeGeoKey",t[1026]="GTCitationGeoKey",t[2048]="GeographicTypeGeoKey",t[2049]="GeogCitationGeoKey",t[2050]="GeogGeodeticDatumGeoKey",t[2051]="GeogPrimeMeridianGeoKey",t[2052]="GeogLinearUnitsGeoKey",t[2053]="GeogLinearUnitSizeGeoKey",t[2054]="GeogAngularUnitsGeoKey",t[2055]="GeogAngularUnitSizeGeoKey",t[2056]="GeogEllipsoidGeoKey",t[2057]="GeogSemiMajorAxisGeoKey",t[2058]="GeogSemiMinorAxisGeoKey",t[2059]="GeogInvFlatteningGeoKey",t[2061]="GeogPrimeMeridianLongGeoKey",t[2060]="GeogAzimuthUnitsGeoKey",t[3072]="ProjectedCSTypeGeoKey",t[3073]="PCSCitationGeoKey",t[3074]="ProjectionGeoKey",t[3075]="ProjCoordTransGeoKey",t[3076]="ProjLinearUnitsGeoKey",t[3077]="ProjLinearUnitSizeGeoKey",t[3078]="ProjStdParallel1GeoKey",t[3079]="ProjStdParallel2GeoKey",t[3080]="ProjNatOriginLongGeoKey",t[3081]="ProjNatOriginLatGeoKey",t[3082]="ProjFalseEastingGeoKey",t[3083]="ProjFalseNorthingGeoKey",t[3084]="ProjFalseOriginLongGeoKey",t[3085]="ProjFalseOriginLatGeoKey",t[3086]="ProjFalseOriginEastingGeoKey",t[3087]="ProjFalseOriginNorthingGeoKey",t[3088]="ProjCenterLongGeoKey",t[3090]="ProjCenterEastingGeoKey",t[3091]="ProjCenterNorthingGeoKey",t[3092]="ProjScaleAtNatOriginGeoKey",t[3093]="ProjScaleAtCenterGeoKey",t[3094]="ProjAzimuthAngleGeoKey",t[3095]="ProjStraightVertPoleLongGeoKey",t[4096]="VerticalCSTypeGeoKey",t[4097]="VerticalCitationGeoKey",t[4098]="VerticalDatumGeoKey",t[4099]="VerticalUnitsGeoKey",t})(),s=(t,e)=>{let n=(e||r)[t];return void 0===n&&(n="unknown"+String(t)),n},a=new Map([["EXIFIFD",o],["GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]]])},10713(t,e,n){n.d(e,{Z:()=>r});const r=(()=>{const t=new ArrayBuffer(4),e=new Uint8Array(t);return new Uint32Array(t)[0]=1,1===e[0]})()},47520(t,e,n){n.d(e,{$Q:()=>U,$i:()=>F,AB:()=>l,Ew:()=>C,Hx:()=>y,J$:()=>B,L:()=>z,LY:()=>T,QF:()=>G,UK:()=>d,Wt:()=>k,Wy:()=>u,XU:()=>M,YD:()=>v,_F:()=>g,bL:()=>w,dK:()=>A,eH:()=>f,et:()=>s,lD:()=>D,qL:()=>h,z$:()=>P,z7:()=>I,zg:()=>c});var r=n(34727),o=n(94778),i=n(14140);const s=9,a="PixelID";function l(t){return null!=t&&t.pixels?.length>0}function u(t){if(!t?.length||t.some(t=>!l(t)))return null;if(1===t.length)return t[0]?.clone()??null;const e=t,{width:n,height:r,pixelType:o}=e[0];if(e.some(t=>t.width!==n||t.height!==r))return null;const s=e.map(({mask:t})=>t).filter(t=>null!=t);let a=null;s.length&&(a=new Uint8Array(n*r),a.set(s[0]),s.length>1&&v(s.slice(1),a));const u=[];e.forEach(({pixels:t})=>u.push(...t));const c=null!=a&&u.length===e.length?e.map(({width:t,height:e,mask:n})=>n??new Uint8Array(t*e).fill(255)):null,h=e.map(({statistics:t})=>t).filter(t=>t?.length),f=[];return h.forEach(t=>f.push(...t)),new i.A({pixelType:o,width:n,height:r,mask:a,bandMasks:c,pixels:u,statistics:f.length?f:null})}function c(t){if(!t)return;const e=t.colormap;if(!e||0===e.length)return;const n=e.sort((t,e)=>t[0]-e[0]),r=n[0][0]<0?n[0][0]:0,o=Math.max(256,n[n.length-1][0]-r+1),i=new Uint8Array(4*o),s=[],a=5===n[0].length;if(o>65536)return n.forEach(t=>{s[t[0]-r]=a?t.slice(1):t.slice(1).concat([255])}),{indexed2DColormap:s,offset:r,alphaSpecified:a};if(t.fillUnspecified){let t=n[0];for(let e=t[0]-r,s=0;e<o;e++)i[4*e]=t[1],i[4*e+1]=t[2],i[4*e+2]=t[3],i[4*e+3]=a?t[4]:255,e===t[0]-r&&(t=s===n.length-1?t:n[++s])}else for(let t=0;t<n.length;t++){const e=n[t],o=4*(e[0]-r);i[o]=e[1],i[o+1]=e[2],i[o+2]=e[3],i[o+3]=a?e[4]:255}return{indexedColormap:i,offset:r,alphaSpecified:a}}function h(t,e){if(!l(t))return t;if(!e||!e.indexedColormap&&!e.indexed2DColormap)return t;const n=t.clone(),r=n.pixels;let o=n.mask;const i=n.width*n.height;if(1!==r.length)return t;const{indexedColormap:s,indexed2DColormap:a,offset:u,alphaSpecified:c}=e,h=r[0],f=new Uint8Array(h.length),d=new Uint8Array(h.length),p=new Uint8Array(h.length);let m,g=0;if(s){const t=s.length-1;if(null!=o)for(let e=0;e<i;e++)o[e]&&(g=4*(h[e]-u),g<u||g>t?o[e]=0:(f[e]=s[g],d[e]=s[g+1],p[e]=s[g+2],o[e]=s[g+3]));else{o=new Uint8Array(i);for(let e=0;e<i;e++)g=4*(h[e]-u),g<u||g>t?o[e]=0:(f[e]=s[g],d[e]=s[g+1],p[e]=s[g+2],o[e]=s[g+3]);n.mask=o}}else if(a)if(null!=o)for(let t=0;t<i;t++)o[t]&&(m=a[h[t]],f[t]=m[0],d[t]=m[1],p[t]=m[2],o[t]=m[3]);else{o=new Uint8Array(i);for(let t=0;t<i;t++)m=a[h[t]],f[t]=m[0],d[t]=m[1],p[t]=m[2],o[t]=m[3];n.mask=o}return n.pixels=[f,d,p],n.statistics=null,n.pixelType="u8",n.maskIsAlpha=c,n}function f(t,e){if(!l(t))return null;const{pixels:n,mask:r}=t,o=n.length;let s=e.lut;const{offset:a}=e;s&&1===s[0].length&&(s=n.map(()=>s));const u=[],c=e.outputPixelType||"u8";for(let t=0;t<o;t++){const e=d(n[t],r,s[t],a||0,c);u.push(e)}const h=new i.A({width:t.width,height:t.height,pixels:u,mask:r,pixelType:c});return h.updateStatistics(),h}function d(t,e,n,r,o){const s=t.length,a=i.A.createEmptyBand(o,s);if(e)for(let o=0;o<s;o++)e[o]&&(a[o]=n[t[o]-r]);else for(let e=0;e<s;e++)a[e]=n[t[e]-r];return a}function p(t,e,n,r){const{width:o,height:i,pixels:s,mask:a}=t,l=o*i,{bandId:u,ranges:c}=n,h=s[u];if(!h)return;const f=1===c.length,[d,p]=c[0];for(let t=0;t<l;t++)if(!a||a[t]){const n=h[t];if(f)n>=d&&n<=p&&(e[t]=r);else for(let o=0;o<c.length;o++){const[i,s]=c[o];if(n>=i&&n<=s){e[t]=r;break}}}}function m(t,e,n,r){const{width:o,height:i,xyMask:s,xBandId:a,yBandId:l,xBandRange:u,yBandRange:c}=n,{pixels:h,mask:f}=t,d=h[a],p=h[l],[m,g]=u,[y,w]=c,C=(g-m)/o,x=(w-y)/i;for(let t=0;t<d.length;t++)if(!f||f[t]){let n=d[t],a=p[t];if(n<m||n>g||a<y||a>w)continue;s?(n=(n-m)*C,n=n>o-1?o-1:n<0?0:255&n,a=(w-a)*x,a=a>i-1?i-1:a<0?0:255&a,s[a*o+n]&&(e[t]=r)):e[t]=r}}function g(t){const{pixelBlock:e,renderedPixelBlock:n,highlightOptions:r}=t;if(!l(e))return;const{width:o,height:i}=e,s=o*i,a=new Uint8Array(s);for(let t=1;t<=r.length;t++){const n=r[t-1];"bandId"in n?p(e,a,n,t):m(e,a,n,t)}const{pixels:u}=n;1===u.length&&(u[1]=u[0].slice(),u[2]=u[0].slice());const c=r.map(t=>t.color),[h,f,d]=u;if(n.mask){const t=n.mask;for(let e=0;e<s;e++)if(t[e]){t[e]=255;const n=a[e];if(n){const r=c[n-1];h[e]=r[0],f[e]=r[1],d[e]=r[2],t[e]=r[3]}}}else{const t=new Uint8Array(s).fill(255);for(let e=0;e<s;e++){const n=a[e];if(n){const r=c[n-1];h[e]=r[0],f[e]=r[1],d[e]=r[2],t[e]=r[3]}}n.mask=t}n.maskIsAlpha=!0}function y(t,e){if(!l(t))return null;const n=t.clone(),{pixels:r}=n,o=n.width*n.height,i=e.length,s=Math.floor(i/2),a=e[Math.floor(s)],u=r[0],c=new Uint8Array(o),h=new Uint8Array(o),f=new Uint8Array(o);let d=n.mask;const p=4===e[0].mappedColor.length;d||(d=new Uint8Array(o),d.fill(p?255:1),n.mask=d);for(let t=0;t<o;t++)if(d[t]){const n=u[t];let r=!1,o=s,l=a,p=0,m=i-1;for(;m-p>1;){if(n===l.value){r=!0;break}n>l.value?p=o:m=o,o=Math.floor((p+m)/2),l=e[Math.floor(o)]}r||(n===e[p].value?(l=e[p],r=!0):n===e[m].value?(l=e[m],r=!0):n<e[p].value?r=!1:n>e[p].value&&(n<e[m].value?(l=e[p],r=!0):m===i-1?r=!1:(l=e[m],r=!0))),r?(c[t]=l.mappedColor[0],h[t]=l.mappedColor[1],f[t]=l.mappedColor[2],d[t]=l.mappedColor[3]):c[t]=h[t]=f[t]=d[t]=0}return n.pixels=[c,h,f],n.mask=d,n.pixelType="u8",n.maskIsAlpha=p,n}function w(t,e,n=!1){const o=1e-5,i=new Float32Array(3*s),a=e.length;for(let l=0;l<s;l++)i[3*l]=t[2*l]??r.pq-1,i[3*l+1]=t[2*l+1]??r.pq,i[3*l+2]=e[l]??0,l<a&&(l>0&&(i[3*l]-=o),t[2*l+1]!==t[2*l]&&(l<a-1||!n)&&(i[3*l+1]-=o));return i}function C(t,e){if(!l(t))return null;const{width:n,height:r}=t,{inputRanges:s,outputValues:a,outputPixelType:u,noDataRanges:c,allowUnmatched:h,replacementValue:f,isLastInputRangeInclusive:d}=e,p=t.pixels[0],m=i.A.createEmptyBand(u,p.length),g=t.mask,y=new Uint8Array(n*r);g?y.set(g):y.fill(255);const w=t.pixelType.startsWith("f")?1e-6:0,C=s.map(t=>t-w);C[0]=s[0],C[C.length-1]=s[s.length-1]+(d?1e-6:0);const x=s.length/2,[b,v]=(0,o.hP)(u);for(let t=0;t<r;t++)for(let e=0;e<n;e++){const r=t*n+e;if(y[r]){const t=p[r];let e=!1;for(let n=x-1;n>=0;n--)if(t===s[2*n]||t>C[2*n]&&t<C[2*n+1]){m[r]=a[n],e=!0;break}e||(h?m[r]=t>v?v:t<b?b:f??t:y[r]=0)}}const A=c?.length;if(A)for(let t=0;t<r;t++)for(let e=0;e<n;e++){const r=t*n+e;if(!g||g[r]){const t=p[r];for(let e=0;e<A;e+=2)if(t>=c[e]&&t<=c[e+1]){m[r]=0,y[r]=0;break}}}return new i.A({width:n,height:r,pixelType:u,pixels:[m],mask:y})}function x(t,e,n,r){const o=null!=n&&n.length>=2?new Set(n):null,i=1===n?.length?n[0]:null,s=!!e?.length;for(let n=0;n<t.length;n++)if(r[n]){const a=t[n];if(s){let t=!1;for(let n=0;n<e.length;n+=2)if(a>=e[n]&&a<=e[n+1]){t=!0;break}t||(r[n]=0)}r[n]&&(a===i||o?.has(a))&&(r[n]=0)}}function b(t,e){const n=t[0].length;e??=new Uint8Array(n).fill(255);for(let r=0;r<n;r++)if(e[r]){let n=!1;for(let e=0;e<t.length;e++)if(t[e][r]){n=!0;break}n||(e[r]=0)}return e}function v(t,e){const n=t[0].length;e??=new Uint8Array(n).fill(255);for(let r=0;r<n;r++)if(e[r]){let n=!1;for(let e=0;e<t.length;e++)if(0===t[e][r]){n=!0;break}n&&(e[r]=0)}return e}function A(t,e){if(!l(t))return null;const{width:n,height:r,pixels:o}=t,s=n*r,a=new Uint8Array(s);t.mask?a.set(t.mask):a.fill(255);const u=o.length,{includedRanges:c,noDataValues:h,outputPixelType:f,matchAll:p,lookups:m}=e;if(m){const t=[];for(let e=0;e<u;e++){const n=m[e],r=d(o[e],a,n.lut,n.offset||0,"u8");t.push(r)}1===t.length?a.set(t[0]):p?b(t,a):v(t,a)}else if(p){const t=[];for(let e=0;e<u;e++){const n=new Uint8Array(s);n.set(a),x(o[e],c?.slice(2*e,2*e+2),h?.[e],n),t.push(n)}1===t.length?a.set(t[0]):b(t,a)}else for(let t=0;t<u;t++)x(o[t],c?.slice(2*t,2*t+2),h?.[t],a);return new i.A({width:n,height:r,pixelType:f,pixels:o,mask:a})}function M(t){const{srcPixelType:e,inputRanges:n,outputValues:r,allowUnmatched:s,noDataRanges:a,isLastInputRangeInclusive:l,outputPixelType:u}=t;if("u8"!==e&&"s8"!==e&&"u16"!==e&&"s16"!==e)return null;const c=e.includes("16")?65536:256,h=e.includes("s")?-c/2:0,f=i.A.createEmptyBand(u,c),d=new Uint8Array(c);s&&d.fill(255);const[p,m]=(0,o.hP)(u);if(n?.length&&r?.length){const t=1e-6,e=n.map(e=>e-t);e[0]=n[0],l&&(e[e.length-1]=n[n.length-1]);for(let t=0;t<e.length;t++){const o=r[t]>m?m:r[t]<p?p:r[t],i=Math.ceil(e[2*t]-h),s=n[2*t+1]===n[2*t]?i:Math.floor(e[2*t+1]-h);for(let t=i;t<=s;t++)f[t]=o,d[t]=255}}if(a?.length)for(let t=0;t<a.length;t++){const e=Math.ceil(a[2*t]-h),n=Math.floor(a[2*t+1]-h);for(let t=e;t<=n;t++)d[t]=0}return{lut:f,offset:h,mask:d}}function k(t,e,n){if("u8"!==t&&"s8"!==t&&"u16"!==t&&"s16"!==t)return null;const r=t.includes("16")?65536:256,o=t.includes("s")?-r/2:0,i=new Uint8Array(r);if(e)for(let t=0;t<e.length;t++){const n=Math.ceil(e[2*t]-o),r=Math.floor(e[2*t+1]-o);for(let t=n;t<=r;t++)i[t]=255}else i.fill(255);if(n)for(let t=0;t<n.length;t++)i[n[t]-o]=0;return{lut:i,offset:o}}function T(t,e){if(!t||0===t.length)return null;const n=t.find(t=>t.pixelBlock);if(null==n?.pixelBlock)return null;const r=(n.extent.xmax-n.extent.xmin)/n.pixelBlock.width,o=(n.extent.ymax-n.extent.ymin)/n.pixelBlock.height,i=.01*Math.min(r,o),s=t.sort((t,e)=>Math.abs(t.extent.ymax-e.extent.ymax)>i?e.extent.ymax-t.extent.ymax:Math.abs(t.extent.xmin-e.extent.xmin)>i?t.extent.xmin-e.extent.xmin:0),a=Math.min.apply(null,s.map(t=>t.extent.xmin)),l=Math.min.apply(null,s.map(t=>t.extent.ymin)),u=Math.max.apply(null,s.map(t=>t.extent.xmax)),c=Math.max.apply(null,s.map(t=>t.extent.ymax)),h={x:Math.round((e.xmin-a)/r),y:Math.round((c-e.ymax)/o)},f={width:Math.round((u-a)/r),height:Math.round((c-l)/o)},d={width:Math.round((e.xmax-e.xmin)/r),height:Math.round((e.ymax-e.ymin)/o)};return Math.round(f.width/n.pixelBlock.width)*Math.round(f.height/n.pixelBlock.height)!==s.length||h.x<0||h.y<0||f.width<d.width||f.height<d.height?null:{extent:e,pixelBlock:I(s.map(t=>t.pixelBlock),f,{clipOffset:h,clipSize:d})}}function S(t,e,n,r,o,i){const{width:s,height:a}=n.block,{x:l,y:u}=n.offset,{width:c,height:h}=n.mosaic,f=function(t,e,n,r,o,i,s,a){return{xmin:o<=n*t?0:o<n*t+t?o-n*t:t,ymin:i<=r*e?0:i<r*e+e?i-r*e:e,xmax:o+s<=n*t?0:o+s<n*t+t?o+s-n*t:t,ymax:i+a<=r*e?0:i+a<r*e+e?i+a-r*e:e}}(s,a,r,o,l,u,c,h);let d=0,p=0;if(i){const t=i.hasGCSSShiftTransform?360:i.halfWorldWidth??0,e=s*i.resolutionX,n=i.startX+r*e;n<t&&n+e>t?p=i.rightPadding:n>=t&&(d=i.leftMargin-i.rightPadding,p=0)}if(f.xmax-=p,"number"!=typeof e)for(let n=f.ymin;n<f.ymax;n++){const i=(o*a+n-u)*c+(r*s-l)+d,h=n*s;for(let n=f.xmin;n<f.xmax;n++)t[i+n]=e[h+n]}else for(let n=f.ymin;n<f.ymax;n++){const i=(o*a+n-u)*c+(r*s-l)+d;for(let n=f.xmin;n<f.xmax;n++)t[i+n]=e}}function I(t,e,n={}){const{clipOffset:r,clipSize:o,alignmentInfo:s,blockWidths:a}=n;if(a)return function(t,e,n){const r=t.find(t=>null!=t);if(null==r)return null;const o=t.some(t=>null==t||!!t.mask),{width:s,height:a}=e,u=o?new Uint8Array(s*a):null,{blockWidths:c}=n,h=[],f=r.getPlaneCount(),d=i.A.getPixelArrayConstructor(r.pixelType);if(o)for(let e=0,n=0;e<t.length;n+=c[e],e++){const r=t[e];if(!l(r))continue;const o=r.mask;for(let t=0;t<a;t++)for(let i=0;i<c[e];i++)u[t*s+i+n]=null==o?255:o[t*r.width+i]}const p=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),m=p?[]:void 0,g=s*a;for(let e=0;e<f;e++){const n=new d(g),r=p?new Uint8Array(g):void 0;for(let o=0,i=0;o<t.length;i+=c[o],o++){const u=t[o];if(!l(u))continue;const h=u.pixels[e];if(null!=h){for(let t=0;t<a;t++)for(let e=0;e<c[o];e++)n[t*s+e+i]=h[t*u.width+e];if(r){const t=u.bandMasks?.[e]??u.mask;for(let e=0;e<a;e++)for(let n=0;n<c[o];n++)r[e*s+n+i]=t?t[e*u.width+n]:255}}}h.push(n),m&&r&&m.push(r)}const y=new i.A({width:s,height:a,mask:u,bandMasks:m,pixels:h,pixelType:r.pixelType});return y.updateStatistics(),y}(t,e,{blockWidths:a});const u=t.find(t=>l(t));if(null==u)return null;const c=o?o.width:e.width,h=o?o.height:e.height,f=u.width,d=u.height,p=e.width/f,m=e.height/d,g={offset:r||{x:0,y:0},mosaic:o||e,block:{width:f,height:d}},y=u.pixelType,w=i.A.getPixelArrayConstructor(y),C=u.pixels.length,x=[];let b,v;for(let e=0;e<C;e++){v=new w(c*h);for(let n=0;n<m;n++)for(let r=0;r<p;r++){const o=t[n*p+r];l(o)&&(b=o.pixels[e],S(v,b,g,r,n,s))}x.push(v)}const A=t.some(t=>null==t||null!=t.mask&&t.mask.length>0),M=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),k=A?new Uint8Array(c*h):void 0,T=M?[]:void 0;if(k){for(let e=0;e<m;e++)for(let n=0;n<p;n++){const r=t[e*p+n],o=null!=r?r.mask:null;S(k,null!=o?o:r?255:0,g,n,e,s)}if(T)for(let e=0;e<C;e++){const n=new Uint8Array(c*h);for(let r=0;r<m;r++)for(let o=0;o<p;o++){const i=t[r*p+o],a=i?.bandMasks?.[e]??i?.mask;S(n,null!=a?a:i?255:0,g,o,r,s)}T.push(n)}}const I=new i.A({width:c,height:h,pixels:x,pixelType:y,bandMasks:T,mask:k});return I.updateStatistics(),I}function P(t,e,n){if(!l(t))return null;const{width:r,height:o}=t,i=e.x,s=e.y,a=n.width+i,u=n.height+s;if(i<0||s<0||a>r||u>o)return t;if(0===i&&0===s&&a===r&&u===o)return t;t.mask||(t.mask=new Uint8Array(r*o));const c=t.mask;for(let t=0;t<o;t++){const e=t*r;for(let n=0;n<r;n++)c[e+n]=t<s||t>=u||n<i||n>=a?0:1}return t.updateStatistics(),t}function E(t){if(0===t.size)return 0;let e=0,n=-1,r=0;const o=t.keys();let i=o.next();for(;!i.done;)r=t.get(i.value),r>e&&(n=i.value,e=r),i=o.next();return n}function R(t,e,n){if(0===n)return;const r=t.get(e);1===r?t.delete(e):t.set(e,r-1)}function L(t,e,n){0!==n&&t.set(e,t.has(e)?t.get(e)+1:1)}function U(t,e,n){let{x:r,y:o}=e;const{width:s,height:a}=n;if(0===r&&0===o&&a===t.height&&s===t.width)return t;const{width:u,height:c}=t,h=Math.max(0,o),f=Math.max(0,r),d=Math.min(r+s,u),p=Math.min(o+a,c);if(d<0||p<0||!l(t))return null;r=Math.max(0,-r),o=Math.max(0,-o);const{pixels:m}=t,g=s*a,y=m.length,w=[];for(let e=0;e<y;e++){const n=m[e],a=i.A.createEmptyBand(t.pixelType,g);for(let t=h;t<p;t++){const e=t*u;let i=(t+o-h)*s+r;for(let t=f;t<d;t++)a[i++]=n[e+t]}w.push(a)}const C=new Uint8Array(g),x=t.mask;for(let t=h;t<p;t++){const e=t*u;let n=(t+o-h)*s+r;for(let t=f;t<d;t++)C[n++]=x?x[e+t]:1}const b=new i.A({width:n.width,height:n.height,pixelType:t.pixelType,pixels:w,mask:C});return b.updateStatistics(),b}function O(t,e=!0){if(!l(t))return null;const{pixels:n,width:r,height:o,mask:s,pixelType:a}=t,u=[],c=Math.round(r/2),h=Math.round(o/2),f=o-1,d=r-1;for(let t=0;t<n.length;t++){const s=n[t],l=i.A.createEmptyBand(a,c*h);let p=0;for(let t=0;t<o;t+=2)for(let n=0;n<r;n+=2){const o=s[t*r+n];if(e){const e=n===d?o:s[t*r+n+1],i=t===f?o:s[t*r+n+r],a=n===d?i:t===f?e:s[t*r+n+r+1];l[p++]=(o+e+i+a)/4}else l[p++]=o}u.push(l)}let p=null;if(null!=s){p=new Uint8Array(c*h);let t=0;for(let n=0;n<o;n+=2)for(let o=0;o<r;o+=2){const i=s[n*r+o];if(e){const e=o===d?i:s[n*r+o+1],a=n===f?i:s[n*r+o+r],l=o===d?a:n===f?e:s[n*r+o+r+1];p[t++]=i*e*a*l?1:0}else p[t++]=i}}return new i.A({width:c,height:h,pixelType:a,pixels:u,mask:p})}function D(t,e,n=0,r=!0){if(!l(t))return null;const{width:o,height:i}=e;let{width:s,height:a}=t;const u=new Map,c={x:0,y:0},h=1+n;let f=t;for(let t=0;t<h;t++){const n=Math.ceil(s/o),l=Math.ceil(a/i);for(let r=0;r<l;r++){c.y=r*i;for(let i=0;i<n;i++){c.x=i*o;const n=U(f,c,e);u.set(`${t}/${r}/${i}`,n)}}t<h-1&&(f=O(f,r)),s=Math.round(s/2),a=Math.round(a/2)}return u}function B(t){const{pixelBlock:e,tileSize:n,level:r,row:o,col:i,useBilinear:s}=t;if(!l(e))return null;const{width:a,height:u}=n,c=2**r,h=c*a,f=c*u;let d=U(e,{y:o*f,x:i*h},{width:h,height:f});if(!d)return null;for(let t=r;t>0;t--)d=O(d,s);return d}function N(t,e,n,r,o=0){const{width:i,height:s}=t,{width:a,height:l}=e,u=r.cols,c=r.rows,h=Math.ceil(a/u-.1/u),f=Math.ceil(l/c-.1/c);let d,p,m,g,y,w,C;const x=h*u,b=x*f*c,v=new Float32Array(b),A=new Float32Array(b),M=new Uint32Array(b),k=new Uint32Array(b);let T,S,I=0;for(let t=0;t<f;t++)for(let e=0;e<h;e++){d=12*(t*h+e),p=n[d],m=n[d+1],g=n[d+2],y=n[d+3],w=n[d+4],C=n[d+5];for(let n=0;n<c;n++){I=(t*c+n)*x+e*u,S=(n+.5)/c;for(let t=0;t<n;t++)T=(t+.5)/u,v[I+t]=(p*T+m*S+g)*i+o,A[I+t]=(y*T+w*S+C)*s+o,M[I+t]=Math.floor(v[I+t]),k[I+t]=Math.floor(A[I+t])}d+=6,p=n[d],m=n[d+1],g=n[d+2],y=n[d+3],w=n[d+4],C=n[d+5];for(let n=0;n<c;n++){I=(t*c+n)*x+e*u,S=(n+.5)/c;for(let t=n;t<u;t++)T=(t+.5)/u,v[I+t]=(p*T+m*S+g)*i+o,A[I+t]=(y*T+w*S+C)*s+o,M[I+t]=Math.floor(v[I+t]),k[I+t]=Math.floor(A[I+t])}}return{offsets_x:v,offsets_y:A,offsets_xi:M,offsets_yi:k,gridWidth:x}}function G(t,e){const{coefficients:n,spacing:r}=e,{offsets_x:o,offsets_y:i,gridWidth:s}=N(t,t,n,{rows:r[0],cols:r[1]}),{width:a,height:l}=t,u=new Float32Array(a*l),c=180/Math.PI;for(let t=0;t<l;t++)for(let e=0;e<a;e++){const n=t*s+e,r=0===t?n:n-s,h=t===l-1?n:n+s,f=o[r]-o[h],d=i[h]-i[r];if(isNaN(f)||isNaN(d))u[t*a+e]=90;else{let n=Math.atan2(d,f)*c;n=(360+n)%360,u[t*a+e]=n}}return u}function F(t,e,n,r,o="nearest"){if(!l(t))return null;"majority"===o&&(t=function(t){if(!l(t))return null;const e=t.clone(),{width:n,height:r,pixels:o}=t,i=o[0],s=e.pixels[0],a=t.mask;for(let t=2;t<r-1;t++){const e=new Map;for(let r=t-2;r<t+2;r++)for(let t=0;t<4;t++){const o=r*n+t;L(e,i[o],a?a[o]:1)}s[t*n]=E(e),s[t*n+1]=s[t*n+2]=s[t*n];let r=3;for(;r<n-1;r++){let o=(t-2)*n+r+1;L(e,i[o],a?a[o]:1),o=(t-1)*n+r+1,L(e,i[o],a?a[o]:1),o=t*n+r+1,L(e,i[o],a?a[o]:1),o=(t+1)*n+r+1,L(e,i[o],a?a[o]:1),o=(t-2)*n+r-3,R(e,i[o],a?a[o]:1),o=(t-1)*n+r-3,R(e,i[o],a?a[o]:1),o=t*n+r-3,R(e,i[o],a?a[o]:1),o=(t+1)*n+r-3,R(e,i[o],a?a[o]:1),s[t*n+r]=E(e)}s[t*n+r+1]=s[t*n+r]}for(let t=0;t<n;t++)s[t]=s[n+t]=s[2*n+t],s[(r-1)*n+t]=s[(r-2)*n+t];return e.updateStatistics(),e}(t));const{pixels:s,mask:a,bandMasks:u,pixelType:c}=t,h=t.width,f=t.height,d=i.A.getPixelArrayConstructor(c),p=s.length,{width:m,height:g}=e;let y=!1;for(let t=0;t<n.length;t+=3)-1===n[t]&&-1===n[t+1]&&-1===n[t+2]&&(y=!0);const{offsets_x:w,offsets_y:C,offsets_xi:x,offsets_yi:b,gridWidth:v}=N({width:h,height:f},e,n,r,"majority"===o?.5:0);let A;const M=(t,e,n,r)=>{const o=t instanceof Float32Array||t instanceof Float64Array?0:.5;for(let i=0;i<g;i++){A=i*v;for(let s=0;s<m;s++){if(w[A]<0||C[A]<0)t[i*m+s]=0;else if(r)t[i*m+s]=e[x[A]+b[A]*h];else{const r=Math.floor(w[A]),a=Math.floor(C[A]),l=Math.ceil(w[A]),u=Math.ceil(C[A]),c=w[A]-r,f=C[A]-a;if(!n||n[r+a*h]&&n[l+a*h]&&n[r+u*h]&&n[l+u*h]){const n=(1-c)*e[r+a*h]+c*e[l+a*h],d=(1-c)*e[r+u*h]+c*e[l+u*h];t[i*m+s]=(1-f)*n+f*d+o}else t[i*m+s]=e[x[A]+b[A]*h]}A++}}},k=[];let T;const S=u?.length===p,I=[];for(let t=0;t<p;t++){if(S){const e=new Uint8Array(m*g);M(e,u[t],u[t],!0),I.push(e)}T=new d(m*g),M(T,s[t],S?u[t]:a,"nearest"===o||"majority"===o),k.push(T)}const P=new i.A({width:m,height:g,pixelType:c,pixels:k,bandMasks:S?I:void 0});if(null!=a)P.mask=new Uint8Array(m*g),M(P.mask,a,a,!0);else if(y){P.mask=new Uint8Array(m*g);for(let t=0;t<m*g;t++)P.mask[t]=w[t]<0||C[t]<0?0:1}return P.updateStatistics(),P}function z(t){const{pixelBlock:e,extent:n,fieldNames:r,skipFactor:o,skipSpatialReference:i=!1,pixelIdOffset:s=0}=t,l=[],{width:u,height:c,pixels:h,mask:f}=e,d=t.imageRowSize??u,p=n.width/u,m=n.height/c,g=h.length,y=Math.floor(o/2),{xmin:w,ymax:C}=n,x=i?void 0:n.spatialReference.toJSON();for(let t=y;t<c;t+=o)for(let e=y;e<u;e+=o){const n=t*u+e;if(!f||f[n]){const o={x:w+(e+.5)*p,y:C-(t+.5)*m,spatialReference:x},i={[a]:s+t*d+e};for(let t=0;t<g;t++)i[r[t+1]]=h[t][n];l.push({geometry:o,attributes:i})}}return l}},51927(t,e,n){n.d(e,{DP:()=>C,Nh:()=>x,Pg:()=>w,RP:()=>c,WF:()=>u,_N:()=>b,eH:()=>g,f4:()=>y,fP:()=>f,zj:()=>h,zt:()=>l});var r=n(97768),o=n(94778),i=n(14140),s=n(70274);const a=[.299,.587,.114];function l(t){if(null==t)return!1;const{max:e,min:n,size:r}=t;return(e-n)/r===1&&n>=-.5&&.5===Math.abs(n%1)&&e<=255.5}function u(t,e=256){e=Math.min(e,256);const{size:n,counts:r}=t,o=new Float64Array(n);o[0]=r[0]/e;for(let t=1;t<n;t++)o[t]=o[t-1]+r[t]/e;const i=new Uint8Array(e),s=e/o[o.length-1];if(n<=e){const r=l(t)?Math.max(0,Math.round(t.min+.5)):0;for(let t=r;t<e;t++)i[t]=t>=n+r?255:Math.min(255,Math.trunc(o[t-r]*s))}else{const t=o.map(t=>Math.min(255,Math.trunc(t*s)));for(let r=0;r<e;r++)i[r]=t[Math.round(n/e)];i[e-1]=255}return i}function c(t){const{minCutOff:e,maxCutOff:n,gamma:r,pixelType:o,rounding:i}=t;if(!["u8","u16","s8","s16"].includes(o))return null;const s=e.length,a="s8"===o?-127:"s16"===o?-32767:0,l=["u16","s16"].includes(o)?65536:256,u=[],c=[],{minOutput:f=0,maxOutput:d=255}=t,p=d-f;for(let t=0;t<s;t++)c[t]=n[t]-e[t],u[t]=0===c[t]?0:p/c[t];const m=[];if(r&&r.length>=s){const t=x(s,r);for(let o=0;o<s;o++){const s=[];for(let u=0;u<l;u++){if(0===c[o]){s[u]=f;continue}const l=u+a,h=(l-e[o])/c[o];let m=1;if(r[o]>1&&(m-=(1/p)**(h*t[o])),l<n[o]&&l>e[o]){const t=m*p*h**(1/r[o])+f;s[u]="floor"===i?Math.floor(t):"round"===i?Math.round(t):t}else l>=n[o]?s[u]=d:s[u]=f}m[o]=s}}else for(let t=0;t<s;t++){const r=[];for(let o=0;o<l;o++){const s=o+a;if(s<=e[t])r[o]=f;else if(s>=n[t])r[o]=d;else{const n=(s-e[t])*u[t]+f;r[o]="floor"===i?Math.floor(n):"round"===i?Math.round(n):n}}m[t]=r}if(null!=t.contrastOffset){const e=h(t.contrastOffset,t.brightnessOffset);for(let t=0;t<s;t++){const n=m[t];for(let t=0;t<l;t++)n[t]=e[n[t]]}}return{lut:m,offset:a}}function h(t,e){const n=Math.min(Math.max(t,-100),100),r=Math.min(Math.max(e??0,-100),100),o=new Uint8Array(256);for(let t=0;t<256;t++){let e=0;n>0&&n<100?e=(200*t-25500+510*r)/(2*(100-n))+128:n<=0&&n>-100?e=(200*t-25500+510*r)*(100+n)/2e4+128:100===n?(e=200*t-25500+256*(100-n)+510*r,e=e>0?255:0):-100===n&&(e=128),o[t]=e>255?255:e<0?0:e}return o}function f(t,e,n){const r=[];for(let o=0;o<e.length;o++){let i=0,s=0,l=0;"min"in e[o]?({min:i,max:s,avg:l}=e[o]):[i,s,l]=e[o];let u=l??0;"u8"!==t&&(u=255*(u-i)/(s-i)),n&&(u*=a[o]),r.push(d(u))}return r}function d(t){if(t<=0||t>=255)return 1;const e=t+(150===t?0:t<150?45*Math.cos(.01047*t):17*Math.sin(.021*t)),n=Math.log(t/255),r=Math.log(e/255);if(0===r)return 1;const o=n/r;return isNaN(o)?1:Math.min(9.9,Math.max(.01,o))}function p(t,e,n){let{min:r,max:o,count:i,avg:s,mode:a,median:l}=function(t,e,n=!1,r=!1){let o=1/0,i=-1/0,s=0,a=0,l=0,u=0;const c=t.length,h=new Map;for(let n=0;n<c;n++){const r=t[n];if(!e||e[n]){const t=(h.get(r)??0)+1;h.set(r,t),t>u&&(u=t,l=r),o=r<o?r:o,i=r>i?r:i,s+=r,a++}}const f=a>0?s/a:0;let d=o===i?o:void 0,p=o===i?o:void 0,m=o===i?o:void 0;if(n&&a>0&&a<2**24){let n=t.slice();if(e){let r=0;for(let o=0;o<c;o++){const i=t[o];e[o]&&(n[r++]=i)}}n=n.slice(0,a),n.sort((t,e)=>t-e);const o=a>>>1;d=a%2?n[Math.floor(o)]:(n[o-1]+n[o])/2,r&&(p=n[Math.floor(.25*a)],m=n[Math.floor(.75*a)])}return{min:o,max:i,count:a,avg:f,mode:l,median:d,quartile1:p,quartile3:m}}(t,e,!0);if(0===i)return{statistics:{min:0,max:0,avg:0,stddev:0,count:i,mode:0,median:0},histogram:null};const u={min:r,max:o,avg:s,mode:a,count:i,median:l},c=function(t,e,n,r=!1,o=!1){let i=0,s=0,a=0,l=0;for(let o=0;o<t.length;o++)if(!e||e[o]){const e=t[o]-n,u=e*e;if(i+=u,!r){const t=u*e;s+=t,a+=t*e}l++}if(l<2)return null;i/=l-1;const u=Math.sqrt(i);return r?{stddev:u}:(a/=l,{stddev:u,skewness:o?s*(l/((l-1)*(l-2)))/i**1.5:s/l/i**1.5,kurtosis:a/(i*i)})}(t,e,s,!n.includeSkewnessKurtosis);c&&(u.stddev=c.stddev,n.includeSkewnessKurtosis&&(u.skewness=c.skewness,u.kurtosis=c.kurtosis));const h=n?.histogramSize??256,f=!!n?.pixelType&&["u8","s8","u4","u2","u1"].includes(n.pixelType),d=!n?.skipHistograms;if(null==l){const n=m({band:t,mask:e,min:r,max:o,size:1e4,use8BitHistogram:f});if(l=function(t,e,n,r=50){const{counts:o,min:i,max:s,size:a}=n,l=o.reduce((t,e)=>t+e)*(r/=100);let u=0,c=0;for(;c<o.length&&(u+=o[c],!(u>=l+1));c++);const h=(s-i)/a,f=i+h*c,d=i+h*(c+1);if(1===h&&.5===Math.abs(i%1))return f+.5;const p=t.slice(0,o[c]).fill(0);for(let n=0,r=0;n<t.length;n++)if(!e||e[n]){const e=t[n];e>=f&&e<d&&(p[r++]=e)}p.sort((t,e)=>t-e);const m=u-Math.floor(l)-1;return p[Math.max(0,p.length-1-m)]}(t,e,n,50),d&&f&&256===h)return{statistics:u,histogram:n}}return d?{statistics:u,histogram:m({band:t,mask:e,min:r,max:o,size:h,use8BitHistogram:f&&256===h})}:{statistics:u,histogram:null}}function m(t){const{band:e,mask:n,min:r,max:o,use8BitHistogram:i}=t;if(i){const t=o-r+1,i=new Uint32Array(t);for(let t=0;t<e.length;t++)n&&!n[t]||i[e[t]-r]++;return{min:r-.5,max:o+.5,size:t,counts:i}}const s=t.size??256,a=new Uint32Array(s),l=(o-r)/s;if(0===l){const t=n?n.reduce((t,e)=>t+(e?1:0),0):e.length;return{min:r,max:o,size:1,counts:new Uint32Array(1).fill(t)}}const u=new Uint32Array(s+1),c=1/l;for(let t=0;t<e.length;t++)n&&!n[t]||u[Math.floor((e[t]-r)*c)]++;for(let t=0;t<s-1;t++)a[t]=u[t];return a[s-1]=u[s-1]+u[s],{min:r,max:o,size:s,counts:a}}function g(t,e){const{pixels:n,mask:r,pixelType:o,bandMasks:i}=t,s=n.map((t,n)=>p(t,i?.[n]??r,{pixelType:o,...e}));return{statistics:s.map(({statistics:t})=>t),histograms:s.map(({histogram:t})=>t)}}function y(t){if(!t?.pixels?.length)return null;const{pixels:e,mask:n,bandMasks:r,pixelType:o}=t,i=t.width*t.height,s=e.length,a=[],l=[],u=256;let c,h;for(let f=0;f<s;f++){let s=new Uint32Array(u);const d=e[f],p=r?.[f]??n;if("u8"===o){if(c=255,h=0,p){for(let t=0;t<i;t++)if(p[t]){const e=d[t];c=e<c?e:c,h=e>h?e:h,s[e]++}}else for(let t=0;t<i;t++){const e=d[t];c=e<c?e:c,h=e>h?e:h,s[e]++}s=s.slice(c,h+1)}else{let e=!1;t.statistics||(t.updateStatistics(),e=!0);const n=t.statistics;c=n[f].minValue,h=n[f].maxValue;const r=(h-c)/u;if(0===r){!n||t.validPixelCount||e||t.updateStatistics();const r=(t.validPixelCount||t.width*t.height)/u;for(let t=0;t<u;t++)s[t]=Math.round(r*(t+1))-Math.round(r*t)}else{const t=new Uint32Array(257);for(let e=0;e<i;e++)p&&!p[e]||t[Math.floor((d[e]-c)/r)]++;for(let e=0;e<255;e++)s[e]=t[e];s[255]=t[255]+t[u]}}const m="u8"===o?c-.5:c,g="u8"===o?h+.5:h;a.push({min:m,max:g,size:s.length,counts:s});let y=0,w=0,C=0;for(let t=0;t<s.length;t++)y+=s[t],w+=t*s[t];const x=w/y;for(let t=0;t<s.length;t++)C+=s[t]*(t-x)**2;const b=Math.sqrt(C/(y-1)),v=(g-m)/s.length,A=(x+("u8"===o?0:.5))*v+c,M=b*v;l.push({min:c,max:h,avg:A,stddev:M})}return{statistics:l,histograms:a}}function w(t){const e=[];for(let n=0;n<t.length;n++){const{min:r,max:o,size:i,counts:s}=t[n];let a=0,l=0;for(let t=0;t<i;t++)a+=s[t],l+=t*s[t];const u=l/a;let c=0;for(let t=0;t<i;t++)c+=s[t]*(t-u)**2;const h=(o-r)/i,f=(u+.5)*h+r,d=Math.sqrt(c/(a-1))*h;e.push({min:r,max:o,avg:f,stddev:d})}return e}function C(t,e){const{pixelBlock:n,bandIds:i,returnHistogramLut:a,rasterInfo:l}=e;let c=null,h=null,f=t.stretchType;if("number"==typeof f&&(f=s.x[f]),t.dra)if("minMax"===f&&n?.statistics)c=n.statistics.map(t=>[t.minValue,t.maxValue,0,0]);else{const t=y(n);c=null!=t?t.statistics:null,h=null!=t?t.histograms:null}else c=t.statistics?.length?t.statistics:l.statistics,h="histograms"in t?t.histograms:void 0,h||(h=l.histograms);"percentClip"!==f&&"histogramEqualization"!==f||h?.length||(f="minMax");const d=c?.length||h?.length||l.bandCount,p=[],m=[];c&&!Array.isArray(c[0])&&(c=c.map(t=>[t.min,t.max,t.avg,t.stddev]));const[g,w]=(0,o.hP)(l.pixelType);if(!c?.length){c=[];for(let t=0;t<d;t++)c.push([g,w,1,1]);"standardDeviation"===f&&(f="minMax")}switch(f){case"none":for(let t=0;t<d;t++)p[t]=g,m[t]=w;break;case"minMax":for(let t=0;t<d;t++){const e=c[t];p[t]=e[0],m[t]=e[1]}break;case"standardDeviation":{const{numberOfStandardDeviations:e=2}=t;for(let t=0;t<d;t++){const n=c[t];p[t]=n[2]-e*n[3],m[t]=n[2]+e*n[3],p[t]<n[0]&&(p[t]=n[0]),m[t]>n[1]&&(m[t]=n[1])}}break;case"histogramEqualization":(0,r.Lw)(h);for(let t=0;t<d;t++)p[t]=h[t].min,m[t]=h[t].max;break;case"percentClip":(0,r.Lw)(h);for(let e=0;e<h.length;e++){const n=h[e],r=new Uint32Array(n.size),o=[...n.counts];o.length>=20&&(o[0]=o[1]=o[2]=o[o.length-1]=o[o.length-2]=0);let i=0;const s=(n.max-n.min)/n.size,a=-.5===n.min&&1===s?.5:0;for(let t=0;t<n.size;t++)i+=o[t],r[t]=i;let l=(t.minPercent||0)*i/100;p[e]=n.min+a;for(let t=0;t<n.size;t++)if(r[t]>l){p[e]=n.min+s*(t+a);break}l=(1-(t.maxPercent||0)/100)*i,m[e]=n.max+a;for(let t=n.size-2;t>=0;t--)if(r[t]<l){m[e]=n.min+s*(t+2-a);break}if(m[e]<p[e]){const t=p[e];p[e]=m[e],m[e]=t}}break;default:for(let t=0;t<d;t++){const e=c[t];p[t]=e[0],m[t]=e[1]}}let C,x,b;return"histogramEqualization"===f?((0,r.Lw)(h),x=h[0].size||256,C=0,a&&(b=h.map(t=>u(t)))):(x=t.max||255,C=t.min||0),function(t,e){if(null==e||0===e.length)return t;const n=Math.max.apply(null,e),{minCutOff:r,maxCutOff:o,minOutput:i,maxOutput:s,histogramLut:a}=t;return r.length===e.length||r.length<=n?t:{minCutOff:e.map(t=>r[t]),maxCutOff:e.map(t=>o[t]),histogramLut:a?e.map(t=>a[t]):null,minOutput:i,maxOutput:s}}({minCutOff:p,maxCutOff:m,maxOutput:x,minOutput:C,histogramLut:b},i)}function x(t,e){const n=new Float32Array(t);for(let r=0;r<t;r++)e[r]>1?e[r]>2?n[r]=6.5+(e[r]-2)**2.5:n[r]=6.5+100*(2-e[r])**4:n[r]=1;return n}function b(t,e){if(!t?.pixels?.length)return t;const{mask:n,bandMasks:r,width:o,height:s,pixels:a}=t,{minCutOff:l,maxCutOff:u,minOutput:c,maxOutput:h,gamma:f}=e,d=o*s,p=e.outputPixelType||"u8",m=t.pixels.map(()=>i.A.createEmptyBand(p,d)),g=m.length,y=h-c,w=[],C=[];for(let t=0;t<g;t++)C[t]=u[t]-l[t],w[t]=0===C[t]?0:y/C[t];const b=p.startsWith("u")||p.startsWith("s"),v=f&&f.length>=g,A=!!e.isRenderer;if(v){const t=x(g,f);for(let e=0;e<g;e++){const o=r?.[e]??n;for(let n=0;n<d;n++)if(null==o||o[n]){if(0===C[e]){m[e][n]=c;continue}const r=a[e][n],o=(r-l[e])/C[e];let i=1;if(f[e]>1&&(i-=(1/y)**(o*t[e])),r<u[e]&&r>l[e]){const t=i*y*o**(1/f[e])+c;m[e][n]=A?Math.floor(t):b?Math.round(t):t}else r>=u[e]?m[e][n]=h:m[e][n]=c}}}else for(let t=0;t<g;t++){const e=r?.[t]??n;for(let n=0;n<d;n++)if(null==e||e[n]){const e=a[t][n];if(e<u[t]&&e>l[t]){const r=(e-l[t])*w[t]+c;m[t][n]=A?Math.floor(r):b?Math.round(r):r}else e>=u[t]?m[t][n]=h:m[t][n]=c}}const M=new i.A({width:o,height:s,mask:n,bandMasks:r,pixels:m,pixelType:p});return M.updateStatistics(),M}},51181(t,e,n){n.d(e,{E0:()=>p,PP:()=>m,SC:()=>h,di:()=>d,fw:()=>c,ng:()=>a,rk:()=>s,yy:()=>f});var r=n(47520),o=n(14140),i=n(4151);const s=1/111e3;function a(t){let{altitude:e,azimuth:n}=t;const{hillshadeType:r,pixelSizePower:o=1,pixelSizeFactor:i=1,scalingType:a,isGCS:l,resolution:u}=t,c="multi-directional"===r?2*t.zFactor:t.zFactor,{x:h,y:f}=u;let d=c/(8*h),p=c/(8*f);if(l&&c>.001&&(d/=s,p/=s),"adjusted"===a)if(l){const t=h*s,e=f*s;d=(c+t**o*i)/(8*t),p=(c+e**o*i)/(8*e)}else d=(c+h**o*i)/(8*h),p=(c+f**o*i)/(8*f);let m=(90-e)*Math.PI/180,g=Math.cos(m),y=(360-n+90)*Math.PI/180,w=Math.sin(m)*Math.cos(y),C=Math.sin(m)*Math.sin(y);const x=[315,270,225,360,180,0],b=[60,60,60,60,60,90],v=new Float32Array([3,5,3,2,1,4]),A=v.reduce((t,e)=>t+e),M=v.map(t=>t/A),k="multi-directional"===r?x.length:1,T=new Float32Array(6),S=new Float32Array(6),I=new Float32Array(6);if("multi-directional"===r)for(let t=0;t<k;t++)e=b[t],n=x[t],m=(90-e)*Math.PI/180,g=Math.cos(m),y=(360-n+90)*Math.PI/180,w=Math.sin(m)*Math.cos(y),C=Math.sin(m)*Math.sin(y),T[t]=g,S[t]=w,I[t]=C;else T.fill(g),S.fill(w),I.fill(C);return{resolution:u,factor:[d,p],sinZcosA:w,sinZsinA:C,cosZ:g,sinZcosAs:[...S],sinZsinAs:[...I],cosZs:[...T],weights:[...M],hillshadeType:["traditional","multi-directional"].indexOf(r)}}function l(t,e){const{width:n,height:r}=t,o=n*r,i=new Uint8Array(o),s=null!=t.mask;let a;if(s){a=new Uint8Array(t.mask);for(let t=0;t<a.length;t++)a[t]&&(i[t]=1,a[t]=1)}const l=t.pixels[0],u=new Float32Array(o),c=new Float32Array(o);let h,f=0;if(e){const{resolution:t}=e,n=t?(t.x+t.y)/2:1;f=200*e.zFactor/(n*n),h=new Float32Array(o)}const d=e?.curvatureType;let p,m,g,y,w,C,x,b;for(let t=1;t<r-1;t++){const e=t*n;for(let t=1;t<n-1;t++){const r=e+t;if(0!==a?.[r]){if(a){if(a[r-n-1]+a[r-n]+a[r-n+1]+a[r-1]+a[r+1]+a[r+n-1]+a[r+n]+a[r+n+1]<7){i[r]=0;continue}p=a[r-n-1]?l[r-n-1]:l[r],m=a[r-n]?l[r-n]:l[r],g=a[r-n+1]?l[r-n+1]:l[r],y=a[r-1]?l[r-1]:l[r],w=a[r+1]?l[r+1]:l[r],C=a[r+n-1]?l[r+n-1]:l[r],x=a[r+n]?l[r+n]:l[r],b=a[r+n+1]?l[r+n+1]:l[r]}else p=l[r-n-1],m=l[r-n],g=l[r-n+1],y=l[r-1],w=l[r+1],C=l[r+n-1],x=l[r+n],b=l[r+n+1];if(u[r]=g+w+w+b-(p+y+y+C),c[r]=C+x+x+b-(p+m+m+g),null!=h){const t=l[r],e=.5*(y+w)-t,n=.5*(m+x)-t;if("standard"===d)h[r]=-f*(e+n);else{const t=(-p+g+C-b)/4,o=(-y+w)/2,i=(m-x)/2,s=o*o,a=i*i,l=s+a;l&&(h[r]="profile"===d?f*(e*s+n*a+t*o*i)/l:-f*(e*a+n*s-t*o*i)/l)}}}}}return{outMask:s?i:null,dzxs:u,dzys:c,curvatures:h}}function u(t,e,n){for(let r=0;r<n;r++)t[r*e]=t[r*e+1],t[(r+1)*e-1]=t[(r+1)*e-2];for(let r=1;r<e-1;r++)t[r]=t[r+e],t[r+(n-1)*e]=t[r+(n-2)*e]}function c(t,e){if(!(0,r.AB)(t))return t;const{factor:n,sinZcosA:s,sinZsinA:c,cosZ:h,sinZcosAs:f,sinZsinAs:d,cosZs:p,weights:m}=a(e),[g,y]=n,w="traditional"===e.hillshadeType,{width:C,height:x}=t,b=new Uint8Array(C*x),{dzxs:v,dzys:A,outMask:M}=l(t);for(let t=1;t<x-1;t++){const e=t*C;for(let t=1;t<C-1;t++){const n=e+t;if(!M||M[n]){const t=v[n]*g,e=A[n]*y,r=Math.sqrt(1+t*t+e*e);let o=0;if(w){let n=255*(h+c*e-s*t)/r;n<0&&(n=0),o=n}else{const n=d.length;for(let i=0;i<n;i++){let n=255*(p[i]+d[i]*e-f[i]*t)/r;n<0&&(n=0),o+=n*m[i]}}b[n]=255&o}}}return u(b,C,x),new o.A({width:C,height:x,pixels:[b],mask:M,pixelType:"u8",validPixelCount:t.validPixelCount,statistics:[new i.A(0,255)]})}function h(t,e,n,o){if(!(0,r.AB)(t)||!(0,r.AB)(e))return;const{min:i,max:s}=o,a=t.pixels[0],{pixels:l,mask:u}=e,c=l[0],h=255.00001/(s-i),f=new Uint8ClampedArray(c.length),d=new Uint8ClampedArray(c.length),p=new Uint8ClampedArray(c.length),m=n.length-1;for(let t=0;t<c.length;t++){if(0===u?.[t])continue;const e=Math.floor((c[t]-i)*h),[r,o]=n[e<0?0:e>m?m:e],s=a[t],l=s*o,g=l*(1-Math.abs(r%2-1)),y=s-l;switch(Math.floor(r)){case 0:f[t]=l+y,d[t]=g+y,p[t]=y;break;case 1:f[t]=g+y,d[t]=l+y,p[t]=y;break;case 2:f[t]=y,d[t]=l+y,p[t]=g+y;break;case 3:f[t]=y,d[t]=g+y,p[t]=l+y;break;case 4:f[t]=g+y,d[t]=y,p[t]=l+y;break;case 5:case 6:f[t]=l+y,d[t]=y,p[t]=g+y}}t.pixels=[f,d,p],t.updateStatistics()}function f(t,e){if(!(0,r.AB)(t))return t;const n=e.zFactor,i=e.pixelSizePower??1,a=e.pixelSizeFactor??1,c=e.slopeType,h=e.isGCS,{x:f,y:d}=e.resolution;let p=n/(8*f),m=n/(8*d);h&&Math.abs(n-1)<1e-4&&(p/=s,m/=s),"adjusted"===c&&(p=(n+f**i*a)/(8*f),m=(n+d**i*a)/(8*d));const{dzxs:g,dzys:y,outMask:w}=l(t),{width:C,height:x}=t,b=new Float32Array(C*x);for(let t=1;t<x-1;t++){const e=t*C;for(let t=1;t<C-1;t++){const n=e+t;if(!w||w[n]){const r=g[n]*p,o=y[n]*m,i=Math.sqrt(r*r+o*o);b[e+t]="percent-rise"===c?100*i:57.2957795*Math.atan(i)}}}u(b,C,x);const v=new o.A({width:C,height:x,pixels:[b],mask:w,pixelType:"f32",validPixelCount:t.validPixelCount});return v.updateStatistics(),v}function d(t,e={}){if(!(0,r.AB)(t))return t;const{resolution:n}=e,s=n?1/n.x:1,a=n?1/n.y:1,{dzxs:c,dzys:h,outMask:f}=l(t),{width:d,height:p}=t,m=new Float32Array(d*p);for(let t=1;t<p-1;t++){const e=t*d;for(let t=1;t<d-1;t++){const n=e+t;if(!f||f[n]){const r=c[n]*s,o=h[n]*a;let i=-1;0===r&&0===o||(i=90-57.29578*Math.atan2(o,-r),i<0&&(i+=360),360===i?i=0:i>360&&(i%=360)),m[e+t]=i}}}return u(m,d,p),new o.A({width:d,height:p,pixels:[m],mask:f,pixelType:"f32",validPixelCount:t.validPixelCount,statistics:[new i.A(-1,360)]})}function p(t,e){if(!(0,r.AB)(t))return t;const{curvatures:n,outMask:i}=l(t,e),{width:s,height:a}=t;u(n,s,a);const c=new o.A({width:s,height:a,pixels:[n],mask:i,pixelType:"f32",validPixelCount:t.validPixelCount});return c.updateStatistics(),c}function m(t,e,n){const{hillshadeType:r,altitude:o,azimuth:i,zFactor:s,pixelSizeFactor:a,pixelSizePower:l,slopeType:u}=t;return{hillshadeType:r,altitude:o,azimuth:i,zFactor:s,pixelSizePower:l,pixelSizeFactor:a,scalingType:"scaled"===u?"adjusted":"none",resolution:e,isGCS:n}}},34251(t,e,n){n.d(e,{FI:()=>p,KL:()=>u,Lu:()=>h,MD:()=>l,Rn:()=>m,Wu:()=>y,Y2:()=>d});var r=n(66552),o=n(47520),i=n(14140);const s=new Map;s.set("meter-per-second",1),s.set("kilometer-per-hour",.277778),s.set("knots",.514444),s.set("feet-per-second",.3048),s.set("mile-per-hour",.44704);const a=180/Math.PI,l=new r.J({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function u(t,e){return s.get(t)/s.get(e)||1}function c(t){return(450-t)%360}function h(t,e="geographic"){const[n,r]=t,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n)*a;return i=(360+i)%360,"geographic"===e&&(i=c(i)),[o,i]}function f(t,e="geographic"){let n=t[1];"geographic"===e&&(n=c(n)),n%=360;const r=t[0];return[r*Math.cos(n/a),r*Math.sin(n/a)]}function d(t,e,n,r="geographic"){if(!(0,o.AB)(t)||null==n)return t;const i="vector-magdir"===e?t.clone():p(t,e),s=i.pixels[1];for(let t=0;t<s.length;t++)s[t]="geographic"===r?(s[t]+n[t]+270)%360:(s[t]+360-n[t])%360;return"vector-magdir"===e?i:p(i,"vector-magdir")}function p(t,e,n="geographic",r=1){if(!(0,o.AB)(t))return t;const{pixels:s,width:a,height:l}=t,u=a*l,c=s[0],d=s[1],p=t.pixelType.startsWith("f")?t.pixelType:"f32",m=i.A.createEmptyBand(p,u),g=i.A.createEmptyBand(p,u);let y=0;for(let t=0;t<l;t++)for(let t=0;t<a;t++)"vector-uv"===e?([m[y],g[y]]=h([c[y],d[y]],n),m[y]*=r):([m[y],g[y]]=f([c[y],d[y]],n),m[y]*=r,g[y]*=r),y++;const w=new i.A({pixelType:p,width:t.width,height:t.height,mask:t.mask,validPixelCount:t.validPixelCount,maskIsAlpha:t.maskIsAlpha,pixels:[m,g]});return w.updateStatistics(),w}function m(t,e,n=1){if(1===n||!(0,o.AB)(t))return t;const r=t.clone(),{pixels:i,width:s,height:a}=r,l=i[0],u=i[1];let c=0;for(let t=0;t<a;t++)for(let t=0;t<s;t++)"vector-uv"===e?(l[c]*=n,u[c]*=n):l[c]*=n,c++;return r.updateStatistics(),r}function g(t,e,n,r=1){const o=Math.sqrt(t*t+e*e)/r,i=(2*Math.PI+Math.atan2(e,t))%(2*Math.PI);return[o,(2*Math.PI+i-n)%(2*Math.PI)]}function y(t,e,n,r=[0,0],o=.5){const{width:s,height:a,mask:l}=t,[u,c]=t.pixels,[d,p]=r,m=Math.round((s-d)/n),g=Math.round((a-p)/n),y=m*g,w=new Float32Array(y),C=new Float32Array(y),x=new Uint8Array(y),b="vector-uv"===e;for(let t=0;t<g;t++)for(let e=0;e<m;e++){let r=0;const i=t*m+e,g=Math.max(0,t*n+p),y=Math.max(0,e*n+d),v=Math.min(a,g+n),A=Math.min(s,y+n);for(let t=g;t<v;t++)for(let e=y;e<A;e++){const n=t*s+e;if(!l||l[n]){r++;const t=b?[u[n],c[n]]:[u[n],(360+c[n])%360],[e,o]=b?t:f(t);w[i]+=e,C[i]+=o}}if(r>=(v-g)*(A-y)*(1-o)){x[i]=1;const[t,e]=h([w[i]/r,C[i]/r]);w[i]=t,C[i]=e}else x[i]=0,w[i]=0,C[i]=0}const v=new i.A({width:m,height:g,pixels:[w,C],mask:x});return v.updateStatistics(),v}!function(t=0,e=0,n=Math.PI,r=!0){r&&(n=(2*Math.PI-n)%(2*Math.PI));const o=r?-1:1,i=13*o,s=-7*o,a=-2*o,l=-16*o,u=21.75,[c,h]=g(0,e+i,n,u),[f,d]=g(t-5.5,e+s,n,u),[p,m]=g(t+5.5,e+s,n,u),[y,w]=g(t-1.5,e+a,n,u),[C,x]=g(t+1.5,e+a,n,u),[b,v]=g(t-1.5,e+l,n,u),[A,M]=g(t+1.5,e+l,n,u)}(0,0,0)},14140(t,e,n){n.d(e,{A:()=>f});var r,o=n(5482),i=n(49186),s=n(25482),a=n(4718),l=n(53966),u=n(91429),c=n(94778),h=n(4151);let f=class extends s.o{static{r=this}static createEmptyBand(t,e){return new(r.getPixelArrayConstructor(t))(e)}static combineBandMasks(t){if(t.length<2)return t[0];const e=t[0].length,n=new Uint8Array(e).fill(255);for(let r=0;r<t.length;r++){const o=t[r];for(let t=0;t<e;t++)o[t]||(n[t]=0)}return n}static getPixelArrayConstructor(t){let e;switch(t){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":e=Float32Array;break;case"f64":e=Float64Array}return e}constructor(t){super(t),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(t){if(!t)return"f32";let e=t.toLowerCase();return["u1","u2","u4"].includes(e)?e="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(e)||(e="f32"),e}getPlaneCount(){return this.pixels?.length}addData(t){if(!t.pixels||t.pixels.length!==this.width*this.height)throw new i.A("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(t.pixels),this.statistics.push(t.statistics??new h.A)}getAsRGBA(){const t=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(t);break;default:this._fillFrom8Bit(t)}return new Uint8ClampedArray(t)}getAsRGBAFloat(){const t=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(t),t}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(t=>function(t,e){let n=1/0,r=-1/0;const o=t.length;let i,s=0;if(null!=e)for(i=0;i<o;i++)e[i]&&(s=t[i],n=s<n?s:n,r=s>r?s:r);else for(i=0;i<o;i++)s=t[i],n=s<n?s:n,r=s>r?s:r;return new h.A(n,r)}(t,this.mask));const t=this.mask;let e=0;if(null!=t)for(let n=0;n<t.length;n++)t[n]&&e++;else e=this.width*this.height;this.validPixelCount=e}clamp(t){if(!t||"f64"===t||"f32"===t||!this.pixels)return;const[e,n]=(0,c.hP)(t),o=this.pixels,i=this.width*this.height,s=o.length;let a,l,u;const h=[];for(let c=0;c<s;c++){u=r.createEmptyBand(t,i),a=o[c];for(let t=0;t<i;t++)l=a[t],u[t]=l>n?n:l<e?e:l;h.push(u)}this.pixels=h,this.pixelType=t}extractBands(t){const{pixels:e,statistics:n}=this;if(null==t||0===t.length||!e||0===e.length)return this;const o=e.length,i=t.some(t=>t>=e.length),s=o===t.length&&!t.some((t,e)=>t!==e);if(i||s)return this;const a=this.bandMasks?.length===o?t.map(t=>this.bandMasks[t]):void 0;let{mask:l,validPixelCount:u}=this;const{width:c,height:h}=this;return a?.length&&(l=r.combineBandMasks(a),u=l.filter(t=>!!t).length),new r({pixelType:this.pixelType,width:c,height:h,mask:l,bandMasks:a,validPixelCount:u,maskIsAlpha:this.maskIsAlpha,pixels:t.map(t=>e[t]),statistics:n&&t.map(t=>n[t])})}clone(){const t=new r({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});let e;null!=this.mask&&(t.mask=new Uint8Array(this.mask)),this.noDataValues&&(t.noDataValues=[...this.noDataValues]),this.bandMasks&&(t.bandMasks=this.bandMasks.map(t=>new Uint8Array(t)));const n=r.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){t.pixels=[];const r=!!this.pixels[0].slice;for(e=0;e<this.pixels.length;e++)t.pixels[e]=r?this.pixels[e].slice():new n(this.pixels[e])}if(this.statistics)for(t.statistics=[],e=0;e<this.statistics.length;e++)t.statistics[e]=(0,a.o8)(this.statistics[e]);return t}getTransferableObject(){const{pixels:t,bandMasks:e,mask:n}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;const r=this.toJSON();this.pixels=t,this.bandMasks=e,this.mask=n,r.pixels=t?[...t]:t,r.bandMasks=e?[...e]:e,r.mask=n;const o=[];return[...t??[],n,...e??[]].filter(t=>null!=t&&ArrayBuffer.isView(t)).forEach(t=>{t&&!o.includes(t.buffer)&&o.push(t.buffer)}),{pixelBlock:r,transferList:o}}_fillFrom8Bit(t){const{mask:e,maskIsAlpha:n,premultiplyAlpha:r,pixels:o}=this;if(!t||!o?.length)return void l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i,s,a,u;i=s=a=o[0],o.length>=3?(s=o[1],a=o[2]):2===o.length&&(s=o[1]);const c=new Uint32Array(t),h=this.width*this.height;if(i.length===h)if(null!=e&&e.length===h)if(n)for(u=0;u<h;u++){const t=e[u];if(t){const e=t/255;c[u]=r?t<<24|a[u]*e<<16|s[u]*e<<8|i[u]*e:t<<24|a[u]<<16|s[u]<<8|i[u]}}else for(u=0;u<h;u++)e[u]&&(c[u]=255<<24|a[u]<<16|s[u]<<8|i[u]);else for(u=0;u<h;u++)c[u]=255<<24|a[u]<<16|s[u]<<8|i[u];else l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(t){const{pixels:e,mask:n,statistics:r}=this;if(!t||!e?.length)return void l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const o=this.pixelType;let i=1,s=0,a=1;if(r&&r.length>0){for(const t of r)if(null!=t.minValue&&(s=Math.min(s,t.minValue)),null!=t.maxValue&&null!=t.minValue){const e=t.maxValue-t.minValue;a=Math.max(a,e)}i=255/a}else{let t=255;"s8"===o?(s=-128,t=127):"u16"===o?t=65535:"s16"===o?(s=-32768,t=32767):"u32"===o?t=4294967295:"s32"===o?(s=-2147483648,t=2147483647):"f32"===o?(s=-34e38,t=34e38):"f64"===o&&(s=-Number.MAX_VALUE,t=Number.MAX_VALUE),i=255/(t-s)}const u=new Uint32Array(t),c=this.width*this.height;let h,f,d,p,m;if(h=f=d=e[0],h.length!==c)return l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(e.length>=2)if(f=e[1],e.length>=3&&(d=e[2]),null!=n&&n.length===c)for(p=0;p<c;p++)n[p]&&(u[p]=255<<24|(d[p]-s)*i<<16|(f[p]-s)*i<<8|(h[p]-s)*i);else for(p=0;p<c;p++)u[p]=255<<24|(d[p]-s)*i<<16|(f[p]-s)*i<<8|(h[p]-s)*i;else if(null!=n&&n.length===c)for(p=0;p<c;p++)m=(h[p]-s)*i,n[p]&&(u[p]=255<<24|m<<16|m<<8|m);else for(p=0;p<c;p++)m=(h[p]-s)*i,u[p]=255<<24|m<<16|m<<8|m}_fillFrom32Bit(t){const{pixels:e,mask:n}=this;if(!t||!e?.length)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let r,o,i,s;r=o=i=e[0],e.length>=3?(o=e[1],i=e[2]):2===e.length&&(o=e[1]);const a=this.width*this.height;if(r.length!==a)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=n&&n.length===a)for(s=0;s<a;s++)t[u++]=r[s],t[u++]=o[s],t[u++]=i[s],t[u++]=1&n[s];else for(s=0;s<a;s++)t[u++]=r[s],t[u++]=o[s],t[u++]=i[s],t[u++]=1}};(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"width",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"height",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixelType",void 0),(0,o.Cg)([(0,u.wg)("pixelType")],f.prototype,"castPixelType",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"validPixelCount",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"mask",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"maskIsAlpha",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixels",void 0),(0,o.Cg)([(0,u.MZ)()],f.prototype,"premultiplyAlpha",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"statistics",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"depthCount",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"noDataValues",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"bandMasks",void 0),f=r=(0,o.Cg)([(0,u.$K)("esri.layers.support.PixelBlock")],f)},87186(t,e,n){n.d(e,{A:()=>x});var r,o=n(5482),i=n(25482),s=n(4718),a=n(91429),l=n(5443),u=n(16930);function c(t){return t=Number(t),isNaN(t)?void 0:t}let h=class extends i.o{static{r=this}constructor(t){super(t),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new r({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};(0,o.Cg)([(0,a.MZ)({json:{name:"BandName",write:!0}})],h.prototype,"name",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:{source:["WavelengthMin","Wavelength"],reader:(t,e)=>c(e.WavelengthMin??e.Wavelength)},write:{target:"WavelengthMin"}}})],h.prototype,"minWavelength",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"WavelengthMax",read:{reader:c},write:!0}})],h.prototype,"maxWavelength",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"RadianceBias",read:{reader:c},write:!0}})],h.prototype,"radianceBias",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"RadianceGain",read:{reader:c},write:!0}})],h.prototype,"radianceGain",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"ReflectanceBias",read:{reader:c},write:!0}})],h.prototype,"reflectanceBias",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"ReflectanceGain",read:{reader:c},write:!0}})],h.prototype,"reflectanceGain",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SolarIrradiance",read:{reader:c},write:!0}})],h.prototype,"solarIrradiance",void 0),h=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterBandInfo")],h);var f,d=n(13868),p=n(36005),m=n(43937);function g(t){return t=Number(t),isNaN(t)?void 0:t}let y=class extends i.o{static{f=this}constructor(t){super(t),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(t){return new Date(t)}writeAcquisitionDate(t,e){e.AcquisitionDate=t.getTime()}clone(){return new f({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};(0,o.Cg)([(0,a.MZ)({type:Date,json:{name:"AcquisitionDate",write:!0}})],y.prototype,"acquisitionDate",void 0),(0,o.Cg)([(0,p.w)("acquisitionDate")],y.prototype,"readAcquisitionDate",null),(0,o.Cg)([(0,m.K)("acquisitionDate")],y.prototype,"writeAcquisitionDate",null),(0,o.Cg)([(0,a.MZ)({json:{name:"CloudCover",read:{reader:g},write:!0}})],y.prototype,"cloudCover",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"ProductName",write:!0}})],y.prototype,"productName",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SensorName",write:!0}})],y.prototype,"sensorName",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SensorAzimuth",read:{reader:g},write:!0}})],y.prototype,"sensorAzimuth",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SensorElevation",read:{reader:g},write:!0}})],y.prototype,"sensorElevation",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SunAzimuth",read:{reader:g},write:!0}})],y.prototype,"sunAzimuth",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SunElevation",read:{reader:g},write:!0}})],y.prototype,"sunElevation",void 0),y=f=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterSensorInfo")],y);var w,C=n(20223);let x=class extends i.o{static{w=this}constructor(t){super(t),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){const t=this.keyProperties.BandProperties,{bandCount:e}=this;if(!t?.length||t.length<e){const t=[];for(let n=1;n<=e;n++)t.push(new h({name:"band_"+n}));return t}const n=t.map(t=>h.fromJSON(t));for(let t=0;t<n.length;t++)n[t].name=n[t].name||"band_"+(t+1);return n}get dataType(){const t=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===t?"standard-time":t}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(t){t&&this._set("nativeExtent",t)}get nativePixelSize(){if(null==this.transform||!this.transform.affectsPixelSize)return this.pixelSize;const t=this.nativeExtent;return{x:t.width/this.width,y:t.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return y.fromJSON(this.keyProperties)}clone(){return new w({attributeTable:(0,s.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,s.o8)(this.colormap),extent:(0,s.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,s.o8)(this.histograms),keyProperties:(0,s.o8)(this.keyProperties),multidimensionalInfo:(0,s.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,s.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,s.o8)(this.spatialReference),statistics:(0,s.o8)(this.statistics),storageInfo:(0,s.o8)(this.storageInfo),transform:(0,s.o8)(this.transform)})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"attributeTable",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"bandCount",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"bandInfos",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"colormap",void 0),(0,o.Cg)([(0,a.MZ)({type:String,readOnly:!0})],x.prototype,"dataType",null),(0,o.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],x.prototype,"extent",void 0),(0,o.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],x.prototype,"nativeExtent",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"nativePixelSize",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"format",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"height",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"width",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"hasMultidimensionalTranspose",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"histograms",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"keyProperties",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"multidimensionalInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"noDataValue",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"pixelSize",void 0),(0,o.Cg)([(0,a.MZ)({type:d.e8.apiValues,json:{write:!0}})],x.prototype,"pixelType",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"isPseudoSpatialReference",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"sensorInfo",null),(0,o.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],x.prototype,"spatialReference",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"statistics",void 0),(0,o.Cg)([(0,a.MZ)({type:C.A,json:{write:!0}})],x.prototype,"storageInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"transform",void 0),x=w=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterInfo")],x)},20223(t,e,n){n.d(e,{A:()=>u});var r,o=n(5482),i=n(25482),s=n(4718),a=n(91429),l=n(86738);let u=class extends i.o{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{r=this}clone(){return new r({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,s.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,s.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,s.o8)(this.tileInfo),transposeInfo:(0,s.o8)(this.transposeInfo),blockBoundary:(0,s.o8)(this.blockBoundary)})}};(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockWidth",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockHeight",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"compression",void 0),(0,o.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],u.prototype,"origin",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"firstPyramidLevel",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"maximumPyramidLevel",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"pyramidResolutions",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidScalingFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockWidth",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockHeight",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"isBsqTile",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isVirtualTileInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tileInfo",void 0),(0,o.Cg)([(0,a.MZ)()],u.prototype,"transposeInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"blockBoundary",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterStorageInfo")],u)},4151(t,e,n){n.d(e,{A:()=>r});class r{constructor(t=null,e=null,n=null){this.minValue=t,this.maxValue=e,this.noDataValue=n}}},13868(t,e,n){n.d(e,{SZ:()=>o,e8:()=>s,hm:()=>i});var r=n(66552);const o=(0,r.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),i=(0,r.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),s=(0,r.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"})},85676(t,e,n){n.d(e,{A:()=>p});var r=n(5482),o=n(25482),i=n(53966),s=n(91429),a=n(94778),l=n(47520),u=n(51927),c=n(51181),h=n(87186),f=n(67369),d=n(88178);let p=class extends o.o{constructor(t){super(t),this.lookup={rendererJSON:{}},this.canRenderInWebGL=!1}bind(){const{rendererJSON:t}=this;if(!t)return{success:!1};let e;switch(this.lookup={rendererJSON:{}},t.type){case"uniqueValue":e=this._updateUVRenderer(t);break;case"rasterColormap":e=this._updateColormapRenderer(t);break;case"rasterStretch":e=this._updateStretchRenderer(t);break;case"classBreaks":e=this._updateClassBreaksRenderer(t);break;case"rasterShadedRelief":e=this._updateShadedReliefRenderer(t);break;case"vectorField":e=this._updateVectorFieldRenderer();break;case"flowRenderer":e=this._updateFlowRenderer()}return e}symbolize(t){let e=t?.pixelBlock;if(!m(e))return e;if(t.simpleStretchParams&&"rasterStretch"===this.rendererJSON.type)return this.simpleStretch(e,t.simpleStretchParams);try{let n;switch(e.pixels.length>3&&(e=e.extractBands(t.bandIds??[0,1,2])),this.rendererJSON.type){case"uniqueValue":case"rasterColormap":n=this._symbolizeColormap(e);break;case"classBreaks":n=this._symbolizeClassBreaks(e);break;case"rasterStretch":n=this._symbolizeStretch(e,t.bandIds);break;case"rasterShadedRelief":{const r=t.extent,o=r.spatialReference.isGeographic,i={x:(r.xmax-r.xmin)/e.width,y:(r.ymax-r.ymin)/e.height};n=this._symbolizeShadedRelief(e,{isGCS:o,resolution:i});break}}return n}catch(t){return i.A.getLogger(this).error("symbolize",t.message),e}}simpleStretch(t,e){if(!m(t))return t;try{return t.pixels.length>3&&(t=t.extractBands([0,1,2])),(0,u._N)(t,{...e,isRenderer:!0})}catch(e){return i.A.getLogger(this).error("symbolize",e.message),t}}generateWebGLParameters(t){const{rendererJSON:e}=this;switch(e.type){case"uniqueValue":case"rasterColormap":case"classBreaks":return this._generateColormapWebGLParams("classBreaks"===e.type);case"rasterStretch":return this._generateStretchWebGLParams(t.pixelBlock,e,t.bandIds);case"rasterShadedRelief":return this._generateShadedReliefWebGLParams(e,t.isGCS,t.resolution??void 0);case"vectorField":return this._generateVectorFieldWebGLParams(e);default:return null}}_isLUTChanged(t){const e=this.lookup.rendererJSON;if(!e)return!0;const{rendererJSON:n}=this;if("colorRamp"in n&&n.colorRamp){const r=n.colorRamp;if(t)return JSON.stringify(r)!==JSON.stringify(e.colorRamp)}return JSON.stringify(n)!==JSON.stringify(e)}_symbolizeColormap(t){return this._isLUTChanged()&&!this.bind().success?t:(0,l.qL)(t,this.lookup.colormapLut)}_symbolizeClassBreaks(t){const{canUseIndexedLUT:e}=this._analyzeClassBreaks(this.rendererJSON);return this._isLUTChanged()&&!this.bind().success?t:e?(0,l.qL)(t,this.lookup.colormapLut):(0,l.Hx)(t,this.lookup.remapLut??[])}_symbolizeStretch(t,e){if(!t)return null;const{rasterInfo:n,lookup:r}=this,{pixelType:o,bandCount:i}=n,s=this.rendererJSON,a=["u8","u16","s8","s16"].includes(o);let c;const{dra:h}=s,{gamma:f}=r;if(h&&(e=null),"histogramEqualization"===s.stretchType){const o=h?null:r.histogramLut,i=(0,u.DP)(s,{rasterInfo:n,pixelBlock:t,bandIds:e,returnHistogramLut:!o}),a="u8"===n.pixelType&&!h&&(0,u.zt)(n.histograms?.[0])?t:(0,u._N)(t,{...i,gamma:f,isRenderer:!0});c=(0,l.eH)(a,{lut:h?i.histogramLut:e?.length?e.map(t=>o[t]):o,offset:0})}else if(a){let a;if(h){const r=(0,u.DP)(s,{rasterInfo:n,pixelBlock:t,bandIds:e});a=(0,u.RP)({pixelType:o,...r,gamma:f,rounding:"floor"})}else{if(this._isLUTChanged()&&!this.bind().success)return t;a=r.stretchLut}if(!a)return t;i>1&&null!=e&&e.length===t?.pixels.length&&a.lut.length===i&&(a={lut:e.map(t=>a.lut[t]),offset:a.offset}),c=(0,l.eH)(t,a)}else{const r=(0,u.DP)(s,{rasterInfo:n,pixelBlock:t,bandIds:e});c=(0,u._N)(t,{...r,gamma:f,isRenderer:!0})}if(s.colorRamp){if(this._isLUTChanged(!0)&&!this.bind().success)return t;c=(0,l.qL)(c,r.colormapLut)}return c}_symbolizeShadedRelief(t,e){const n=this.rendererJSON,r={...n,...e},o=(0,c.fw)(t,r);if(!n.colorRamp)return o;if(this._isLUTChanged(!0)&&!this.bind().success)return o;const{hsvMap:i}=this.lookup;if(!i)return o;const s=this.rasterInfo.statistics?.[0]??{min:0,max:8e3};return(0,c.SC)(o,t,i,s),o}_isVectorFieldData(){const{bandCount:t,dataType:e}=this.rasterInfo;return 2===t&&("vector-magdir"===e||"vector-uv"===e)}_updateVectorFieldRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; VectorFieldRenderer only supports "vector-magdir" and "vector-uv".`}}_updateFlowRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; FlowRenderer only supports "vector-magdir" and "vector-uv".`}}_updateUVRenderer(t){const{bandCount:e,attributeTable:n,pixelType:r}=this.rasterInfo,o=t.field1;if(!o)return{success:!1,error:"Unsupported renderer; missing UniqueValueRenderer.field."};const i=t.defaultSymbol,s=1===e&&["u8","s8"].includes(r);if(!(0,d.hu)(this.rasterInfo,o)&&!s)return{success:!1,error:"Unsupported data; UniqueValueRenderer is only supported on single band data with a valid raster attribute table."};const a=[];if(null!=n){const e=n.fields.find(t=>"value"===t.name.toLowerCase());if(!e)return{success:!1,error:"Unsupported data; the data's raster attribute table does not have a value field."};n.features.forEach(n=>{const r=t.uniqueValueInfos?.find(t=>String(t.value)===String(n.attributes[o])),s=r?.symbol?.color;s?a.push([n.attributes[e.name]].concat(s)):i&&a.push([n.attributes[e.name]].concat(i.color))})}else{if("value"!==o.toLowerCase())return{success:!1,error:'Unsupported renderer; UniqueValueRenderer.field must be "Value" when raster attribute table is not available.'};t.uniqueValueInfos?.forEach(t=>{const e=t?.symbol?.color;e?a.push([parseInt(""+t.value,10)].concat(e)):i&&a.push([parseInt(""+t.value,10)].concat(i?.color))})}if(0===a.length)return{success:!1,error:"Invalid UniqueValueRenderer. Cannot find matching records in the raster attribute table."};const u=(0,l.zg)({colormap:a});return this.lookup={rendererJSON:t,colormapLut:u},this.canRenderInWebGL=(0,d.WN)(u?.indexedColormap),{success:!0}}_updateColormapRenderer(t){if(!(0,d.FA)(this.rasterInfo))return{success:!1,error:"Unsupported data; the data source does not have a colormap."};const e=t.colormapInfos.map(t=>[t.value].concat(t.color)).sort((t,e)=>t[0]-e[0]);if(!e||0===e.length)return{success:!1,error:"Unsupported renderer; ColormapRenderer must have meaningful colormapInfos."};const n=(0,l.zg)({colormap:e});return this.lookup={rendererJSON:t,colormapLut:n},this.canRenderInWebGL=(0,d.WN)(n?.indexedColormap),{success:!0}}_updateShadedReliefRenderer(t){if(!(0,d.iL)(this.rasterInfo))return{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; ShadedReliefRenderer only supports "elevation", or single band float/s16 data.`};if(t.colorRamp){const e=(0,f.R8)(t.colorRamp,{interpolateAlpha:!0}),n=(0,l.zg)({colormap:e}),r=(0,f.S2)(n.indexedColormap);this.lookup={rendererJSON:t,colormapLut:n,hsvMap:r}}else this.lookup={rendererJSON:t};return this.canRenderInWebGL=!0,{success:!0}}_analyzeClassBreaks(t){const{attributeTable:e,pixelType:n}=this.rasterInfo,r=e?.fields.find(t=>"value"===t.name.toLowerCase()),o=e?.fields.find(e=>e.name.toLowerCase()===t.field.toLowerCase()),i=null!=r&&null!==o;return{canUseIndexedLUT:["u8","u16","s8","s16"].includes(n)||i,tableValueField:r,tableBreakField:o}}_updateClassBreaksRenderer(t){const{attributeTable:e}=this.rasterInfo,{canUseIndexedLUT:n,tableValueField:r,tableBreakField:o}=this._analyzeClassBreaks(t),i=t.classBreakInfos;if(!i?.length)return{success:!1,error:"Unsupported renderer; missing or invalid ClassBreaksRenderer.classBreakInfos."};const s=i.sort((t,e)=>t.classMaxValue-e.classMaxValue),u=s[s.length-1];let c=t.minValue;if(!n){const e=[];for(let t=0;t<s.length;t++)e.push({value:s[t].classMinValue??c,mappedColor:s[t].symbol.color}),c=s[t].classMaxValue;return e.push({value:u.classMaxValue,mappedColor:u.symbol.color}),this.lookup={rendererJSON:t,remapLut:e},this.canRenderInWebGL=!1,{success:!0}}const h=[];if(null!=e&&null!=r&&null!==o&&r!==o){const n=r.name,i=o.name,a=s[s.length-1],{classMaxValue:l}=a;c=t.minValue;for(const t of e.features){const e=t.attributes[n],r=t.attributes[i],o=r===l?a:r<c?null:s.find(({classMaxValue:t})=>t>r);o&&h.push([e].concat(o.symbol.color))}}else{const[e,n]=(0,a.hP)(this.rasterInfo.pixelType);c=Math.max(e,Math.floor(t.minValue));for(let t=0;t<s.length;t++){const e=s[t],r=Math.min(n,Math.ceil(e.classMaxValue));for(let t=c;t<r;t++)h.push([t].concat(e.symbol.color));c=r}u.classMaxValue!==c&&c!==n||h.push([c].concat(u.symbol.color))}const f=(0,l.zg)({colormap:h,fillUnspecified:!1});return this.lookup={rendererJSON:t,colormapLut:f},this.canRenderInWebGL=(0,d.WN)(f?.indexedColormap),{success:!0}}_updateStretchRenderer(t){let{stretchType:e,dra:n}=t;if(!("none"===e||t.statistics?.length||function(t){return null!=t&&t.length>0&&null!=t[0].min&&null!=t[0].max}(this.rasterInfo.statistics)||n))return{success:!1,error:"Unsupported renderer; StretchRenderer.customStatistics is required when dynamic range adjustment is not used."};const r=t.histograms||this.rasterInfo.histograms;!function(t){return"percentClip"===t||"histogramEqualization"===t}(t.stretchType)||r?.length||n||(e="minMax");const{computeGamma:o,useGamma:i,colorRamp:s}=t;let{gamma:a}=t;if(i&&o&&!a?.length){const e=t.statistics?.length?t.statistics:this.rasterInfo.statistics;a=(0,u.fP)(this.rasterInfo.pixelType,e)}const c=this.rasterInfo.pixelType,h=!n&&["u8","u16","s8","s16"].includes(c);if("histogramEqualization"===e){const e=r.map(t=>(0,u.WF)(t));this.lookup={rendererJSON:t,histogramLut:e}}else if(h){const e=(0,u.DP)(t,{rasterInfo:this.rasterInfo}),n=(0,u.RP)({pixelType:c,...e,gamma:i?a:null,rounding:"floor"});this.lookup={rendererJSON:t,stretchLut:n}}else this.lookup={rendererJSON:t};if(s&&!function(t){return"algorithmic"===t.type&&["0,0,0,255","0,0,0"].includes(t.fromColor.join(","))&&["255,255,255,255","255,255,255"].includes(t.toColor.join(","))}(s)){const e=(0,f.R8)(s,{interpolateAlpha:!0});this.lookup.colormapLut=(0,l.zg)({colormap:e}),this.lookup.rendererJSON=t}return this.lookup.gamma=i&&a?.length?a:null,this.canRenderInWebGL="histogramEqualization"!==e,{success:!0}}_generateColormapWebGLParams(t){const{indexedColormap:e,offset:n}=this.lookup.colormapLut||{};return{colormap:e,colormapOffset:n,isClassBreaks:t,type:"lut"}}_generateStretchWebGLParams(t,e,n){const{colormapLut:r}=this.lookup,o=e.colorRamp?r?.indexedColormap:null,i=e.colorRamp?r?.offset:null;"histogramEqualization"===e.stretchType&&(e={...e,stretchType:"minMax"});const{gamma:s}=this.lookup,a=!(!e.useGamma||!s?.some(t=>1!==t));let l=0;null!=t&&(l=t.getPlaneCount(),2===l&&((t=t.clone()).statistics=[t.statistics[0]],t.pixels=[t.pixels[0]]));const{bandCount:c}=this.rasterInfo,h=Math.min(3,n?.length||l||c,c),f=o||a?1:255,d=new Float32Array(h);if(a&&s)for(let t=0;t<h;t++)s[t]>1?s[t]>2?d[t]=6.5+(s[t]-2)**2.5:d[t]=6.5+100*(2-s[t])**4:d[t]=1;const p=a&&s?[s[0],s[1]??s[0],s[2]??s[0]]:[1,1,1],m=a?[d[0],d[1]??d[0],d[2]??d[0]]:[1,1,1];if(e.dra&&null==t&&("minMax"===e.stretchType||"standardDeviation"===e.stretchType))return{bandCount:h,minOutput:(e.min??0)/f,maxOutput:(e.max??255)/f,minCutOff:[0,0,0],maxCutOff:[1,1,1],factor:[1,1,1],useGamma:a,gamma:p,gammaCorrection:m,colormap:o,colormapOffset:i,stretchType:e.stretchType,dynamicRangeAdjustment:e.dra,numberOfStandardDeviations:e.numberOfStandardDeviations??2,type:"stretch"};const{minCutOff:g,maxCutOff:y,minOutput:w,maxOutput:C}=(0,u.DP)(e,{rasterInfo:this.rasterInfo,pixelBlock:t,bandIds:n});1===g.length&&(g[2]=g[1]=g[0]),1===y.length&&(y[2]=y[1]=y[0]);const x=y.map((t,e)=>y[e]===g[e]?0:(C-w)/(y[e]-g[e])/f);return{bandCount:h,minOutput:w/f,maxOutput:C/f,minCutOff:g,maxCutOff:y,factor:x,useGamma:a,gamma:p,gammaCorrection:m,colormap:o,colormapOffset:i,stretchType:e.stretchType,type:"stretch"}}_generateShadedReliefWebGLParams(t,e=!1,n={x:0,y:0}){const{colormapLut:r}=this.lookup,o=t.colorRamp?r?.indexedColormap:null,i=t.colorRamp?r?.offset:null,s={...t,isGCS:e,resolution:n},a=(0,c.ng)(s),l=this.rasterInfo.statistics?.[0];return{...a,minValue:l?.min??0,maxValue:l?.max??8e3,hillshadeType:"traditional"===t.hillshadeType?0:1,type:"hillshade",colormap:o,colormapOffset:i}}_generateVectorFieldWebGLParams(t){const{style:e,inputUnit:n,outputUnit:r,visualVariables:o,symbolTileSize:i,flowRepresentation:s}=t,a=this.rasterInfo.statistics?.[0].min??0,l=this.rasterInfo.statistics?.[0].max??50,u=o?.find(t=>"sizeInfo"===t.type)??{maxDataValue:l,maxSize:.8*i,minDataValue:a,minSize:.2*i},c=u.minDataValue??a,h=u.maxDataValue??l,f=null!=u.maxSize&&null!=u.minSize?[u.minSize/i,u.maxSize/i]:[.2,.8];if("wind_speed"===e){const t=(f[0]+f[1])/2;f[0]=f[1]=t}const d=null!=c&&null!=h?[c,h]:null;let p=null;if("classified_arrow"===e)if(null!=c&&null!=h&&null!=u){p=[];const t=(u.maxDataValue-u.minDataValue)/5;for(let e=0;e<6;e++)p.push(u.minDataValue+t*e)}else p=[0,1e-6,3.5,7,10.5,14];const m="flow_to"===s==("ocean_current_kn"===e||"ocean_current_m"===e)?0:Math.PI,g=o?.find(t=>"rotationInfo"===t.type);return{breakValues:p,dataRange:d,inputUnit:n,outputUnit:r,symbolTileSize:i,symbolPercentRange:f,style:e||"single_arrow",rotation:m,rotationType:this.rasterInfo.storageInfo?.tileInfo&&"vector-uv"===this.rasterInfo.dataType?"geographic":g?.rotationType||t.rotationType,type:"vectorField"}}};function m(t){return(0,l.AB)(t)&&0!==t.validPixelCount}(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"rendererJSON",void 0),(0,r.Cg)([(0,s.MZ)({type:h.A,json:{write:!0}})],p.prototype,"rasterInfo",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"lookup",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"canRenderInWebGL",void 0),p=(0,r.Cg)([(0,s.$K)("esri.renderers.support.RasterSymbolizer")],p)},67369(t,e,n){n.d(e,{L7:()=>s,M5:()=>d,R8:()=>y,S2:()=>w,hf:()=>b,hs:()=>f,iv:()=>g,kH:()=>l,vL:()=>v,vj:()=>a});var r=n(85334),o=n(66552),i=n(12195);const s=["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],a=[{id:"aspect",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"black-to-white",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blue-bright",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blue-light-to-dark",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blue-green-bright",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blue-green-light-to-dark",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brown-light-to-dark",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brown-to-blue-green-diverging-right",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brown-to-blue-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficient-bias",fromColor:[214,214,255],toColor:[0,57,148]},{id:"cold-to-hot-diverging",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"condition-number",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyan-to-purple",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyan-light-to-blue-dark",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors",fromColor:[255,235,214],toColor:[196,10,10]},{id:"gray-light-to-dark",fromColor:[219,219,219],toColor:[69,69,69]},{id:"green-bright",fromColor:[204,255,204],toColor:[14,204,14]},{id:"green-light-to-dark",fromColor:[220,245,233],toColor:[34,102,51]},{id:"green-to-blue",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orange-bright",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orange-light-to-dark",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partial-spectrum",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partial-spectrum-1-diverging",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partial-spectrum-2-diverging",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pink-to-yellow-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pink-to-yellow-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purple-bright",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purple-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purple-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purple-blue-bright",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purple-blue-light-to-dark",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purple-red-bright",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purple-red-light-to-dark",fromColor:[250,215,246],toColor:[143,17,57]},{id:"red-bright",fromColor:[255,204,204],toColor:[219,0,0]},{id:"red-light-to-dark",fromColor:[255,224,224],toColor:[143,10,10]},{id:"red-to-blue-diverging-bright",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"red-to-blue-diverging-dark",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"red-to-green",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"red-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"red-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrum-full-bright",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrum-full-dark",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrum-full-light",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"white-to-black",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellow-to-dark-red",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellow-to-green-to-dark-blue",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellow-to-red",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellow-green-bright",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellow-green-light-to-dark",fromColor:[215,240,175],toColor:[96,107,45]}],l=new o.J({Aspect:"aspect","Black to White":"black-to-white","Blue Bright":"blue-bright","Blue Light to Dark":"blue-light-to-dark","Blue-Green Bright":"blue-green-bright","Blue-Green Light to Dark":"blue-green-light-to-dark","Brown Light to Dark":"brown-light-to-dark","Brown to Blue Green Diverging, Bright":"brown-to-blue-green-diverging-right","Brown to Blue Green Diverging, Dark":"brown-to-blue-green-diverging-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple","Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging","Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","Purple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright","Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});function u(t,e){if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]>e[n]+2||t[n]<e[n]-2)return!1;return!0}function c(t){const e=t.clone();return e.fromColor=t.toColor,e.toColor=t.fromColor,e}function h(t,e){const n=e??a;if("algorithmic"===t.type){const e=t.fromColor.toRgb(),r=t.toColor.toRgb();return n.find(t=>u(e,t.fromColor)&&u(r,t.toColor))?.id}if(t.weights?.length)return;const r=t.colorRamps?.map(t=>({fromColor:t.fromColor.toRgb(),toColor:t.toColor.toRgb()}));return n.find(t=>{const e=t.colorRamps;return!(!r||r.length!==e?.length)&&e.every((t,e)=>u(r[e].fromColor,t.fromColor)&&u(r[e].toColor,t.toColor))})?.id}function f(t,e=!1){const n="string"==typeof t?t:function(t,e,n=!1){if(!t)return;let r=!1,o=h(t,e);return null!=o||n||(r=!0,o=h(t=function(t){if("multipart"===t.type){const e=t.clone();return e.colorRamps?.length?(e.colorRamps=e.colorRamps.reverse().map(t=>c(t)),e):e}return c(t)}(t),e)),o?{id:o,inverted:r}:void 0}(t,void 0,e)?.id;return n?l.toJSON(n):null}function d(t,e="esriCIELabAlgorithm"){const n=a.find(({id:e})=>e===t);return n?n.colorRamps?{type:"multipart",colorRamps:n.colorRamps.map(t=>({type:"algorithmic",algorithm:e,fromColor:[...t.fromColor],toColor:[...t.toColor]}))}:{type:"algorithmic",algorithm:e,fromColor:[...n.fromColor],toColor:[...n.toColor]}:null}function p(t){t??={};const e=t.numColors||256,n=t.distanceOffset||0,r=null!=t.isCustomInterval?t.isCustomInterval:null!==t.distanceInterval&&t.distanceInterval!==1/(e-1),o=t.distanceInterval||1/(e-1);return{...t,numColors:e,distanceOffset:n,interpolateAlpha:!!t.interpolateAlpha,distanceInterval:o,isCustomInterval:r,weights:t.weights}}function m(t,e){const{fromColor:n,toColor:o}=t,i=3===n.length?[...n,255]:[...n],s=3===o.length?[...o,255]:[...o],a=t.algorithm||"esriCIELabAlgorithm",l=p(e),{numColors:u,distanceOffset:c,isCustomInterval:h,interpolateAlpha:f}=l;if(1===u&&0===c)return[i];if(2===u&&0===c&&!h)return[i,s];const d={r:i[0],g:i[1],b:i[2]},m={r:s[0],g:s[1],b:s[2]},g="esriCIELabAlgorithm"===a?function(t,e,n){const{numColors:r,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=n;let{l:a,a:l,b:u}=t;const c=(e.l-a)*i,h=(e.a-l)*i,f=(e.b-u)*i,d=[];if(o){const t=o/i;a+=t*c,l+=t*h,u+=t*f}for(let t=0;t<r-1;t++)d.push({l:a,a:l,b:u}),a+=c,l+=h,u+=f;return d.push(s?{l:a,a:l,b:u}:e),d}((0,r.ZD)(d),(0,r.ZD)(m),l):"esriHSVAlgorithm"===a?function(t,e,n){const{numColors:r,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=n,a=0===t.s,l=0===e.s;let u=t.h,c=e.h;a&&!l?u=c:l&&!a&&(e={...e,h:u},c=u);let h=Math.abs(c-u),f=0;const d=360;h<180?f=(c-u)*i:(h=d-h,f=u>c?h*i:-h*i);const p=(e.s-t.s)*i,m=(e.v-t.v)*i;let{s:g,v:y}=t,w=u;if(o){const t=o/i;w=(w+t*f+d)%d,g+=t*p,y+=t*m}const C=[];for(let t=0;t<r-1;t++)C.push({h:w,s:g,v:y}),w=(w+f+d)%d,g+=p,y+=m;return C.push(s?{h:w,s:g,v:y}:e),C}((0,r.N2)(d),(0,r.N2)(m),l):function(t,e,n){const{numColors:r,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=n,a=t.h,l=e.h,u=2*Math.PI;let c=0;if(a<=l){const t=l-a,e=l-a-u;c=Math.abs(e)<Math.abs(t)?e:t}else{const t=l+u-a,e=l-a;c=Math.abs(e)<Math.abs(t)?e:t}const h=c*i,f=(e.l-t.l)*i,d=(e.c-t.c)*i;let{l:p,c:m,h:g}=t;if(o){const t=o/i;p+=t*f,m+=t*d,g=(g+t*h+u)%u}const y=[];for(let t=0;t<r-1;t++)y.push({l:p,c:m,h:g}),p+=f,m+=d,g=(g+h+u)%u;return y.push(s?{l:p,c:m,h:g}:e),y}((0,r.RH)(d),(0,r.RH)(m),l),y=[],w=i[3]??255,C=((s[3]??255)-w)/(u-1);for(let t=0;t<u;t++){const{r:e,g:n,b:o}=(0,r.$)(g[t]),i=f?Math.round(w+C*t):255;y.push([e,n,o,i])}return y}function g(t,e){const n=(0,i.W)(t)?t.toJSON():t;return"multipart"===n.type?function(t,e){const{numColors:n,interpolateAlpha:r}=p(e),o=function(t,e){const{colorRamps:n}=t;if(e??=n.map(({start:t,stop:e})=>null==t||null==e?-1:e-t),e.length!==n.length||e.some(t=>t<0))return Array.from({length:n.length},()=>1/n.length);const r=e.reduce((t,e)=>t+e);return e.map(t=>t/r)}(t,e?.weights),{colorRamps:i}=t,s=[],a=1/(n-1);let l=0,u=!1;for(let t=0;t<i.length;t++){const e=s.length,c=u?0:e*a-l;l+=o[t];let h=t===i.length-1?n-1-e:(o[t]-c)/a;if(u=Math.ceil(h)===h,h=Math.ceil(h),0===h)continue;const f=m(i[t],{numColors:h,interpolateAlpha:r,distanceOffset:c/o[t],distanceInterval:a/o[t]});s.push(...f)}const c=[...i[i.length-1].toColor];return 3===c.length&&c.push(255),s.push(c),s}(n,e):m(n,e)}function y(t,e){const n=g(t,e),r=e?.interpolateAlpha;return n.forEach((t,e)=>{t.unshift(e),r||t.pop()}),n}function w(t){const e=[];for(let n=0;n<t.length;n+=4){const o=(0,r.N2)({r:t[n],g:t[n+1],b:t[n+2]});e.push([o.h/60,o.s/100,255*o.v/100])}return e}function C(t){const e=(0,r.N2)(t);return{type:"HsvColor",Hue:e.h,Saturation:e.s,Value:e.v,AlphaValue:255}}function x(t){const e=t.toJSON();return{Algorithm:e?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:C(t.fromColor),ToColor:C(t.toColor)}}function b(t){const e=f(t);if(!e)return null;if("algorithmic"===t.type)return{...x(t),Name:e};if(t.colorRamps){const n=t.colorRamps.map(x);return{type:"MultiPartColorRamp",NumColorRamps:n.length,ArrayOfColorRamp:n,Name:e}}return null}function v(t){const e=[...t].reverse().map(t=>{const e=t.toString(16);return e.length<2?"0"+e:e});return 4294967295&Number.parseInt(e.join(""),16)}},88178(t,e,n){function r(t,e){const{attributeTable:n,bandCount:r}=t;return!((null!=n||(o=t,!["u8","s8"].includes(o.pixelType)||null==o.statistics?.[0]?.min||null==o.statistics[0]?.max||1!==o.bandCount))&&(null==n||r>1||e&&null==n.fields.find(t=>t.name.toLowerCase()===e.toLowerCase())));var o}function o(t){const{bandCount:e,dataType:n,pixelType:r}=t;return"elevation"===n||"generic"===n&&1===e&&("s16"===r||"s32"===r||"f32"===r||"f64"===r)}function i(t,e=!1){const{bandCount:n,colormap:r,pixelType:o}=t;return 1===n&&(!!r?.length||!e&&"u8"===o)}function s(t,e=!1){const{attributeTable:n,bandCount:r}=t;return 1===r&&(!e||null!=n||null!=t.histograms)}function a(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function l(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function u(t){return!!t?.length&&t.length<=16384}n.d(e,{FA:()=>i,QJ:()=>l,WN:()=>u,hu:()=>r,iL:()=>o,rd:()=>a,xX:()=>s})},70274(t,e,n){n.d(e,{u:()=>r,x:()=>o});const r=new(n(66552).J)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"}),o={0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}},491(t,e,n){n.d(e,{CW:()=>f});var r=n(44208),o=n(53966),i=n(17676);function s(t){const e=new Float32Array(a(t));return a(t,e),e}function a(t,e){let n=0;e&&(e[n]=t.length),n++;for(const r of t){e&&(e[n]=r.stage),n++,e&&(e[n]=r.vertices.length),n++;for(const t of r.vertices)e&&(e[n]=t.x,e[n+1]=t.y,e[n+2]=t.time,e[n+3]=t.speed),n+=4}return n}const l=[1,2],u=[1,2,3,4];var c=n(97441);const h=()=>o.A.getLogger("esri.views.2d.engine.flow.dataUtils");async function f(t,e,n,o,s){const a=performance.now();(0,c.dF)(n);const l=function(t,e){const{perturb:n}=e;if(n){const{rotation:e}=n;null!=e&&(t=function(t,e){const n=Math.cos(e),r=Math.sin(e);return(e,o)=>{const[i,s]=t(e,o);return[n*i+r*s,-r*i+n*s]}}(t,e));const{scale:r}=n;null!=r&&(t=function(t,e){return(n,r)=>{const[o,i]=t(n,r);return[o*e,i*e]}}(t,r))}return t}((0,c.DE)(e,n),e),u=performance.now(),f=(0,c.S1)(e,l,n.width,n.height,o),m=performance.now(),g=function(t){const e=t.reduce((t,e)=>t+e.vertices.length,0),n=new Float32Array(4*e),r=new Array(t.length);let o=0,i=0;for(const{vertices:e}of t){const t=o;for(const t of e)n[4*o]=t.x,n[4*o+1]=t.y,n[4*o+2]=t.time,n[4*o+3]=t.speed,o++;r[i++]={startVertex:t,numberOfVertices:e.length,firstTime:e[0].time,lastTime:e[e.length-1].time}}return{lineVertices:n,lineDescriptors:r}}(f),y=performance.now(),w="Streamlines"===t?d(g,10,f):p(g,f),C=performance.now();return(0,r.A)("esri-2d-profiler")&&(h().info("I.1","_createFlowFieldFromData (ms)",Math.round(u-a)),h().info("I.2","_getStreamlines (ms)",Math.round(m-u)),h().info("I.3","createAnimatedLinesData (ms)",Math.round(y-m)),h().info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(C-y)),h().info("I.5","createFlowMesh (ms)",Math.round(C-a)),h().info("I.6","Mesh size (bytes)",w.vertexData.buffer.byteLength+w.indexData.buffer.byteLength)),await Promise.resolve(),(0,i.Te)(s),w}function d(t,e,n){const{lineVertices:r,lineDescriptors:o}=t;let i=0,a=0;for(const t of o)i+=2*t.numberOfVertices,a+=6*(t.numberOfVertices-1);const l=new Float32Array(9*i),u=new Uint32Array(a);let c=0,h=0;function f(){u[h++]=c-2,u[h++]=c,u[h++]=c-1,u[h++]=c,u[h++]=c+1,u[h++]=c-1}function d(t,e,n,r,o,i,s,a){const u=9*c;let h=0;l[u+h++]=t,l[u+h++]=e,l[u+h++]=1,l[u+h++]=n,l[u+h++]=i,l[u+h++]=s,l[u+h++]=r/2,l[u+h++]=o/2,l[u+h++]=a,c++,l[u+h++]=t,l[u+h++]=e,l[u+h++]=-1,l[u+h++]=n,l[u+h++]=i,l[u+h++]=s,l[u+h++]=-r/2,l[u+h++]=-o/2,l[u+h++]=a,c++}for(const t of o){const{firstTime:n,lastTime:o}=t;let i=null,s=null,a=null,l=null,u=null,c=null;for(let h=0;h<t.numberOfVertices;h++){const p=r[4*(t.startVertex+h)],m=r[4*(t.startVertex+h)+1],g=r[4*(t.startVertex+h)+2],y=r[4*(t.startVertex+h)+3];let w=null,C=null,x=null,b=null;if(h>0){w=p-i,C=m-s;const t=Math.sqrt(w*w+C*C);if(w/=t,C/=t,h>1){let t=w+u,n=C+c;const r=Math.sqrt(t*t+n*n);t/=r,n/=r;const o=Math.min(1/(t*w+n*C),e);t*=o,n*=o,x=-n,b=t}else x=-C,b=w;null!==x&&null!==b&&(d(i,s,a,x,b,n,o,y),f())}i=p,s=m,a=g,u=w,c=C,l=y}d(i,s,a,-c,u,n,o,l)}const p=s(n);return{vertexData:l,indexData:u,pathData:p}}function p(t,e){const{lineVertices:n,lineDescriptors:r}=t;let o=0,i=0;for(const t of r){const e=t.numberOfVertices-1;o+=4*e*2,i+=6*e*2}const a=new Float32Array(16*o),c=new Uint32Array(i);let h,f,d,p,m,g,y,w,C,x,b,v,A,M,k=0,T=0;function S(t,e){let n=C+b,r=x+v;const o=Math.sqrt(n*n+r*r);n/=o,r/=o;const i=C*n+x*r;n/=i,r/=i;let s=b+A,S=v+M;const I=Math.sqrt(s*s+S*S);s/=I,S/=I;const P=b*s+v*S;s/=P,S/=P,function(t,e,n,r,o,i,s,c,h,f,d,p,m,g){const y=16*k;let w=0;for(const C of l)for(const l of u)a[y+w++]=t,a[y+w++]=e,a[y+w++]=n,a[y+w++]=r,a[y+w++]=s,a[y+w++]=c,a[y+w++]=h,a[y+w++]=f,a[y+w++]=C,a[y+w++]=l,a[y+w++]=m,a[y+w++]=g,a[y+w++]=o/2,a[y+w++]=i/2,a[y+w++]=d/2,a[y+w++]=p/2,k++}(h,f,d,p,-r,n,m,g,y,w,-S,s,t,e),c[T++]=k-8,c[T++]=k-7,c[T++]=k-6,c[T++]=k-7,c[T++]=k-5,c[T++]=k-6,c[T++]=k-4,c[T++]=k-3,c[T++]=k-2,c[T++]=k-3,c[T++]=k-1,c[T++]=k-2}function I(t,e,n,r,o,i){if(C=b,x=v,b=A,v=M,null==C&&null==x&&(C=b,x=v),null!=m&&null!=g){A=t-m,M=e-g;const n=Math.sqrt(A*A+M*M);A/=n,M/=n}null!=C&&null!=x&&S(o,i),h=m,f=g,d=y,p=w,m=t,g=e,y=n,w=r}function P(t,e){C=b,x=v,b=A,v=M,null==C&&null==x&&(C=b,x=v),null!=C&&null!=x&&S(t,e)}for(const t of r){h=null,f=null,d=null,p=null,m=null,g=null,y=null,w=null,C=null,x=null,b=null,v=null,A=null,M=null;const{firstTime:e,lastTime:r}=t;for(let o=0;o<t.numberOfVertices;o++)I(n[4*(t.startVertex+o)],n[4*(t.startVertex+o)+1],n[4*(t.startVertex+o)+2],n[4*(t.startVertex+o)+3],e,r);P(e,r)}const E=s(e);return{vertexData:a,indexData:c,pathData:E}}},97441(t,e,n){n.d(e,{DE:()=>l,S1:()=>s,dF:()=>a}),n(44208),n(53966);var r=n(34727),o=n(87811),i=n(78659);function s(t,e,n,r,i){if(t.density<=0)return[];const{positions:s}=i,a=[],l=new o.A,h=1/Math.max(t.lineCollisionWidth,1),f=Math.round(n*h),d=Math.round(r*h),p=new Int32Array(f*d);for(let t=0;t<p.length;t++)p[t]=-1;const m={raster:p,width:f,height:d,resolutionFactor:h},g={},y=t.lineSpacing/Math.sqrt(t.density),w=Math.floor(r/y),C=Math.floor(n/y);for(let t=0;t<w;t++){const e=t*y;for(let n=0;n<C;n++){const r=n*y;g[`${n}-${t}`]={x:r,y:e,positions:[]}}}for(const{x:t,y:e}of s){const n=g[`${Math.floor(t/y)}-${Math.floor(e/y)}`];n&&n.positions.push([t,e])}const x=[];for(const t in g){const e=g[t];if(0===e.positions.length)x.push({x:e.x+y/2,y:e.y+y/2,sort:.66+.33*l.getFloat(),stage:0});else{const[t]=e.positions.splice(0,1);x.push({x:t[0],y:t[1],sort:.33*l.getFloat(),stage:1});for(const[t,n]of e.positions)x.push({x:t,y:n,sort:.33+.33*l.getFloat(),stage:2})}}x.sort((t,e)=>t.sort-e.sort);for(const{x:o,y:i,stage:s}of x){if(a.length>=t.maxNumberOfStreamlines)break;const h=t.onlyForwardTracing?u(1,t,e,o,i,[n,r],a.length,m):c(t,e,o,i,[n,r],a.length,l,m);h.length<2||a.push({stage:s,vertices:h})}return a}function a(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function l(t,e){const n=function(t,e,n,r){if(0===r)return t;const o=Math.round(3*r),i=new Array(2*o+1);let s=0;for(let t=-o;t<=o;t++){const e=Math.exp(-t*t/(r*r));i[t+o]=e,s+=e}for(let t=-o;t<=o;t++)i[t+o]/=s;const a=new Float32Array(t.length);for(let r=0;r<n;r++)for(let n=0;n<e;n++){let s=0,l=0;for(let a=-o;a<=o;a++){if(n+a<0||n+a>=e)continue;const u=i[a+o];s+=u*t[2*(r*e+(n+a))],l+=u*t[2*(r*e+(n+a))+1]}a[2*(r*e+n)]=s,a[2*(r*e+n)+1]=l}const l=new Float32Array(t.length);for(let t=0;t<e;t++)for(let r=0;r<n;r++){let s=0,u=0;for(let l=-o;l<=o;l++){if(r+l<0||r+l>=n)continue;const c=i[l+o];s+=c*a[2*((r+l)*e+t)],u+=c*a[2*((r+l)*e+t)+1]}l[2*(r*e+t)]=s,l[2*(r*e+t)+1]=u}return l}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,r)=>{const o=Math.floor(t),i=Math.floor(r);if(o<0||o>=e.width)return[0,0];if(i<0||i>=e.height)return[0,0];const s=t-o,a=r-i,l=o,u=i,c=o<e.width-1?o+1:o,h=i<e.height-1?i+1:i,f=n[2*(u*e.width+l)],d=n[2*(u*e.width+c)],p=n[2*(h*e.width+l)],m=n[2*(h*e.width+c)],g=n[2*(u*e.width+l)+1],y=n[2*(u*e.width+c)+1];return[(f*(1-a)+p*a)*(1-s)+(d*(1-a)+m*a)*s,(g*(1-a)+n[2*(h*e.width+l)+1]*a)*(1-s)+(y*(1-a)+n[2*(h*e.width+c)+1]*a)*s]}:(t,r)=>{const o=Math.round(t),i=Math.round(r);return o<0||o>=e.width||i<0||i>=e.height?[0,0]:[n[2*(i*e.width+o)],n[2*(i*e.width+o)+1]]}}function u(t,e,n,o,s,a,l,u){const c=[],{raster:h,width:f,height:d,resolutionFactor:p}=u;let m=o,g=s,y=(0,i.Kp)(0),[w,C]=n(m,g);w*=e.velocityScale,C*=e.velocityScale;const x=Math.sqrt(w*w+C*C);let b,v;c.push({x:m,y:g,time:y,speed:x});for(let o=0;o<e.verticesPerLine;o++){let[o,s]=n(m,g);o*=e.velocityScale,s*=e.velocityScale;const u=Math.sqrt(o*o+s*s);if(u<e.minSpeedThreshold)return c;const w=t*o/u,C=t*s/u;m+=w*e.segmentLength,g+=C*e.segmentLength,e.wrapAround&&(m=(0,r.OS)(m,a[0]));const x=t*e.segmentLength/u;if(y=(0,i.Kp)(y+x),Math.acos(w*b+C*v)>e.maxTurnAngle)return c;if(e.collisions){let t=Math.round(m*p);const n=Math.round(g*p);if(e.wrapAround&&(t=(0,r.OS)(t,f)),t<0||t>f-1||n<0||n>d-1)return c;const o=h[n*f+t];if(-1!==o&&o!==l)return c;h[n*f+t]=l}c.push({x:m,y:g,time:y,speed:u}),b=w,v=C}return c}function c(t,e,n,r,o,i,s,a){const l=Math.round((.2+.6*s.getFloat())*t.verticesPerLine),c=t.verticesPerLine-l,h=u(-1,{...t,verticesPerLine:c},e,n,r,o,i,a),f=u(1,{...t,verticesPerLine:l},e,n,r,o,i,a),d=h.reverse();return d.splice(-1,1),d.concat(f)}n(5443),n(21325)}}]);
|