@arcgis/core 5.2.0-next.87 → 5.2.0-next.89
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/Graphic.js +1 -1
- package/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/ImmutablePointArray.js +1 -1
- package/arcade/Pixel.js +1 -1
- package/arcade/Voxel.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/containerUtils.js +1 -1
- package/arcade/debug.js +1 -1
- package/arcade/deepClone.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/functions/centroid.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/fieldStats.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/stats.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/functions/track.js +1 -1
- package/arcade/geometry/adapters/accessor.js +2 -0
- package/arcade/geometry/adapters/dehydrated.js +2 -0
- package/arcade/geometry/adapters/gx.js +2 -0
- package/arcade/geometry/adapters/json.js +2 -0
- package/arcade/geometry/adapters/optimized.js +2 -0
- package/arcade/geometry/adapters/tuple.js +2 -0
- package/arcade/geometry/adapters/utils.js +2 -0
- package/arcade/geometry/arrayOfPointsConversions.js +2 -0
- package/arcade/geometry/constructors.js +1 -1
- package/arcade/geometry/functions.js +1 -1
- package/arcade/geometry/isSelfIntersecting.js +2 -0
- package/arcade/geometry/nearestCoordinate.js +2 -0
- package/arcade/geometry/nearestVertex.js +1 -1
- package/arcade/geometry/operators.js +1 -1
- package/arcade/geometry/operatorsWorker.js +1 -1
- package/arcade/geometry/rotate.js +1 -1
- package/arcade/geometry.js +2 -0
- package/arcade/languageUtils.js +1 -1
- package/arcade.js +1 -1
- package/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{0b8c9657975388f1e4c8.js → 00181785a180e934bf7c.js} +1 -1
- package/assets/esri/core/workers/chunks/{01e648b258efa6408070.js → 0336f4f8498a22347720.js} +1 -1
- package/assets/esri/core/workers/chunks/05393b23ab24126d4236.js +1 -0
- package/assets/esri/core/workers/chunks/07613ecf13c38ad58b79.js +1 -0
- package/assets/esri/core/workers/chunks/08263c07d92c48806834.js +1 -0
- package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +1 -0
- package/assets/esri/core/workers/chunks/09e01fd1c199be0c8e03.js +1 -0
- package/assets/esri/core/workers/chunks/{12d6d73ca1fa55640a4f.js → 0b4a7209b99227a842ad.js} +1 -1
- package/assets/esri/core/workers/chunks/0d95f72e1c07ab867d21.js +1 -0
- package/assets/esri/core/workers/chunks/0dbbac7a2378728571a7.js +1 -0
- package/assets/esri/core/workers/chunks/0f15468ffefd3e9a17b8.js +29 -0
- package/assets/esri/core/workers/chunks/13e92f6a9573a2818fb7.js +1 -0
- package/assets/esri/core/workers/chunks/159b16f47665f94a0305.js +1 -0
- package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +1 -0
- package/assets/esri/core/workers/chunks/19e93d4d37018e3ee849.js +1 -0
- package/assets/esri/core/workers/chunks/{911f3a1b8dd4bc5c9782.js → 1bf5c0a4bc5a960a3fa2.js} +1 -1
- package/assets/esri/core/workers/chunks/1bf967c68d0c795d3fb4.js +1 -0
- package/assets/esri/core/workers/chunks/1c378d489c5402888f76.js +1 -0
- package/assets/esri/core/workers/chunks/1d1e8d8b1fcf2d9f3dfc.js +1 -0
- package/assets/esri/core/workers/chunks/{e5c8f9fef88ca33624e9.js → 1e087fb13b7b0a5d6fec.js} +1 -1
- package/assets/esri/core/workers/chunks/1e192ac0533a5c0b5a7a.js +1 -0
- package/assets/esri/core/workers/chunks/1f9d6180a96d557838e9.js +1 -0
- package/assets/esri/core/workers/chunks/1fe077f57a087c0e9119.js +1 -0
- package/assets/esri/core/workers/chunks/20f6e681ccd8bf884b77.js +1 -0
- package/assets/esri/core/workers/chunks/212222b64039d436b9a6.js +1 -0
- package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +1 -0
- package/assets/esri/core/workers/chunks/23addf8b11938e0c96e9.js +1 -0
- package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +1 -0
- package/assets/esri/core/workers/chunks/26ecc841396e5e719b6a.js +1 -0
- package/assets/esri/core/workers/chunks/27c0bed59626c7f64125.js +1 -0
- package/assets/esri/core/workers/chunks/2bc3e7f394386fa75447.js +1 -0
- package/assets/esri/core/workers/chunks/2c9783e3b44986e86797.js +1 -0
- package/assets/esri/core/workers/chunks/2ceb07b125c84b51f02a.js +1 -0
- package/assets/esri/core/workers/chunks/2cf2f2842c19be84ab4d.js +1 -0
- package/assets/esri/core/workers/chunks/2d07d5a9ec67c39ef10c.js +1 -0
- package/assets/esri/core/workers/chunks/{a7c715648a07ed70b122.js → 2ec44ebc48beeba11201.js} +1 -1
- package/assets/esri/core/workers/chunks/2f2d699b072472fa710e.js +1 -0
- package/assets/esri/core/workers/chunks/2f3bbc1f7d4abbbeec2f.js +1 -0
- package/assets/esri/core/workers/chunks/30af0f7c4cfa541c9efd.js +1 -0
- package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +1 -0
- package/assets/esri/core/workers/chunks/{39c0a3eb6a870953d530.js → 31a0620a6028e94c7532.js} +3 -3
- package/assets/esri/core/workers/chunks/32f11b4aeae1ef00e466.js +1 -0
- package/assets/esri/core/workers/chunks/37adb55d9f83faad1712.js +1 -0
- package/assets/esri/core/workers/chunks/3869dca884d7ca6488f5.js +1 -0
- package/assets/esri/core/workers/chunks/39b6a5222f45cb8dbc94.js +1 -0
- package/assets/esri/core/workers/chunks/3a9c6f58a1a065c14017.js +1 -0
- package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +1 -0
- package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +1 -0
- package/assets/esri/core/workers/chunks/{fe06cc2f90b2d551e4c1.js → 3bbd2d4a19c3b7ad82e4.js} +1 -1
- package/assets/esri/core/workers/chunks/3de07326da4c47cd2aab.js +1 -0
- package/assets/esri/core/workers/chunks/3f5234120d3a14186c1c.js +1 -0
- package/assets/esri/core/workers/chunks/3f82410d9f701e7ad8eb.js +1 -0
- package/assets/esri/core/workers/chunks/{dbd6bbd3e834ff9d220e.js → 41cf6163758d28fb1968.js} +1 -1
- package/assets/esri/core/workers/chunks/45858d1c6487f4a98e40.js +1 -0
- package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +1 -0
- package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +1 -0
- package/assets/esri/core/workers/chunks/486f1a3b7269ce6c3911.js +1 -0
- package/assets/esri/core/workers/chunks/497c5a9c95e9a89ac217.js +1 -0
- package/assets/esri/core/workers/chunks/49d36e54644dc2966128.js +1 -0
- package/assets/esri/core/workers/chunks/4aefe6fd4d725a107758.js +1 -0
- package/assets/esri/core/workers/chunks/4b6f433022a6822706cb.js +1 -0
- package/assets/esri/core/workers/chunks/4c7264e3f4156f92d613.js +1 -0
- package/assets/esri/core/workers/chunks/4ee99e654dad6f09abee.js +1 -0
- package/assets/esri/core/workers/chunks/50525b617ef78086d3c7.js +1 -0
- package/assets/esri/core/workers/chunks/{a7727a2377470d586ff9.js → 51c9bd7c03d780fadebc.js} +1 -1
- package/assets/esri/core/workers/chunks/5235b9c21ac4156c2375.js +1 -0
- package/assets/esri/core/workers/chunks/52422500ca3d6cf2e596.js +1 -0
- package/assets/esri/core/workers/chunks/527b87fddf33bb5d519e.js +1 -0
- package/assets/esri/core/workers/chunks/{a4bae2396fae48b57047.js → 595edbc1e9bba47d5676.js} +1 -1
- package/assets/esri/core/workers/chunks/5af16937904c06fb06f6.js +1 -0
- package/assets/esri/core/workers/chunks/5bf65dbfd9c7a5ea187d.js +1 -0
- package/assets/esri/core/workers/chunks/5d7a5aa608ed6192b016.js +1 -0
- package/assets/esri/core/workers/chunks/5d9c92c4e60a4696fdad.js +1 -0
- package/assets/esri/core/workers/chunks/5ed7bc9e6cb7cdee92e2.js +1 -0
- package/assets/esri/core/workers/chunks/{272c8ccdbd3dcc14e99b.js → 5ed89c862eee1345e3af.js} +1 -1
- package/assets/esri/core/workers/chunks/5fbd7d8d8896a224fff3.js +1 -0
- package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +1 -0
- package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +1 -0
- package/assets/esri/core/workers/chunks/64ce2d060ae7cdd412cf.js +1 -0
- package/assets/esri/core/workers/chunks/65f4ca7201e7267bfc81.js +1 -0
- package/assets/esri/core/workers/chunks/67efdd296007a809586c.js +1 -0
- package/assets/esri/core/workers/chunks/680557b8832fbdab7f46.js +1 -0
- package/assets/esri/core/workers/chunks/691434d4c6a38e63d819.js +1 -0
- package/assets/esri/core/workers/chunks/{ba67aaa08e4f11e1140a.js → 696cb3bf167327d5b0b9.js} +1 -1
- package/assets/esri/core/workers/chunks/69700ed16727ed0c4e3a.js +1 -0
- package/assets/esri/core/workers/chunks/6a2d890640b2cd6c5ccb.js +1 -0
- package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +1 -0
- package/assets/esri/core/workers/chunks/{7343a44a2382a1d68497.js → 6b9dbf43c0659e55c539.js} +1 -1
- package/assets/esri/core/workers/chunks/6de5c6af62776e1b9776.js +1 -0
- package/assets/esri/core/workers/chunks/71308dca3fd05687e7bd.js +1 -0
- package/assets/esri/core/workers/chunks/75bddfe2be64379db8fd.js +1 -0
- package/assets/esri/core/workers/chunks/777f2fdf1f4b9f243893.js +1 -0
- package/assets/esri/core/workers/chunks/78085f804969c9282700.js +1 -0
- package/assets/esri/core/workers/chunks/7aa9b61ca9b66f30449f.js +1 -0
- package/assets/esri/core/workers/chunks/7c56446184abcd14678b.js +1 -0
- package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +1 -0
- package/assets/esri/core/workers/chunks/7f55a150e4da02786311.js +1 -0
- package/assets/esri/core/workers/chunks/847b02d188ece9b563ad.js +1 -0
- package/assets/esri/core/workers/chunks/86c3d3c7015f1cd55fac.js +1 -0
- package/assets/esri/core/workers/chunks/87e0ceb1a64ab08e679a.js +1 -0
- package/assets/esri/core/workers/chunks/903c7bd079888f65fef1.js +1 -0
- package/assets/esri/core/workers/chunks/9226205850e35b7fc610.js +1 -0
- package/assets/esri/core/workers/chunks/94453d075ce02eff4844.js +1 -0
- package/assets/esri/core/workers/chunks/9474c913e53f69679197.js +1 -0
- package/assets/esri/core/workers/chunks/94ddfe165ac25aef8229.js +1 -0
- package/assets/esri/core/workers/chunks/{75a2c43311f5f9058f62.js → 94f62ff81cc6fb83e73f.js} +1 -1
- package/assets/esri/core/workers/chunks/95ccac3734ac70387b03.js +1 -0
- package/assets/esri/core/workers/chunks/97c7dfd29ad4c2966cb4.js +1 -0
- package/assets/esri/core/workers/chunks/{1354b8442c2c501238f1.js → 986c5024f22bbfc49aba.js} +1 -1
- package/assets/esri/core/workers/chunks/9b81bd62a2c72f592db1.js +1 -0
- package/assets/esri/core/workers/chunks/{62596065747abce1964d.js → 9b8e33985310f281f084.js} +1 -1
- package/assets/esri/core/workers/chunks/9e2b3754a76e0dd4a94a.js +1 -0
- package/assets/esri/core/workers/chunks/a03e7333e3328036f478.js +1 -0
- package/assets/esri/core/workers/chunks/a0565137027c83108953.js +1 -0
- package/assets/esri/core/workers/chunks/a176727a1148ca4fb432.js +1 -0
- package/assets/esri/core/workers/chunks/a3b403f8acb90af19adb.js +1 -0
- package/assets/esri/core/workers/chunks/a4596f028758649da099.js +1 -0
- package/assets/esri/core/workers/chunks/a46ac0be9aabc4cfedc7.js +1 -0
- package/assets/esri/core/workers/chunks/a4a22149077c7780481c.js +1 -0
- package/assets/esri/core/workers/chunks/a6ab627e965fe7e5bd52.js +1 -0
- package/assets/esri/core/workers/chunks/a6d4132a16c51323a38a.js +1 -0
- package/assets/esri/core/workers/chunks/a7954ad55a241af9064f.js +1 -0
- package/assets/esri/core/workers/chunks/a7e6382ecc91c876117f.js +1 -0
- package/assets/esri/core/workers/chunks/a88bf8ae93077e1b48cf.js +1 -0
- package/assets/esri/core/workers/chunks/a8b878c12cb1a6ea012b.js +1 -0
- package/assets/esri/core/workers/chunks/{ec0803cfa5051c4d300d.js → aa0ef4493a7e9bed159f.js} +1 -1
- package/assets/esri/core/workers/chunks/aa8ab28e0c1ae3b55ac0.js +1 -0
- package/assets/esri/core/workers/chunks/add834f867900a7091d2.js +1 -0
- package/assets/esri/core/workers/chunks/{bbf4c2ee4d56bb0f1a81.js → afa6b74d9ca9ed0154af.js} +1 -1
- package/assets/esri/core/workers/chunks/b0e25ccb5a1e57a82628.js +1 -0
- package/assets/esri/core/workers/chunks/b17a9853250ab626d58d.js +1 -0
- package/assets/esri/core/workers/chunks/b19cff0e43fab2632660.js +1 -0
- package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +1 -0
- package/assets/esri/core/workers/chunks/b6063d1755def00d4889.js +1 -0
- package/assets/esri/core/workers/chunks/bb56ab53c5a10c9518a6.js +1 -0
- package/assets/esri/core/workers/chunks/bd1a7e95a797e1ed4a7b.js +1 -0
- package/assets/esri/core/workers/chunks/bd2602195e265f8fdb15.js +1 -0
- package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +1 -0
- package/assets/esri/core/workers/chunks/{f762f0f6c83748d8e328.js → bee411f08e2a9499f8f5.js} +1 -1
- package/assets/esri/core/workers/chunks/bf11319138facf44752c.js +1 -0
- package/assets/esri/core/workers/chunks/bf357afbabaa8dec4d75.js +1 -0
- package/assets/esri/core/workers/chunks/bf7875fda48b15271a10.js +1 -0
- package/assets/esri/core/workers/chunks/bfa59005a9b191d18546.js +1 -0
- package/assets/esri/core/workers/chunks/bfb8fc6b940bd5510e29.js +1 -0
- package/assets/esri/core/workers/chunks/{b311658b8a223efe35d6.js → c0e073a77484b0dfd383.js} +1 -1
- package/assets/esri/core/workers/chunks/c13aa45ccd5efb662f88.js +1 -0
- package/assets/esri/core/workers/chunks/c176df477bbbbc9c6922.js +1 -0
- package/assets/esri/core/workers/chunks/{073224c6ac77dc9e97af.js → c23943e51734254d31e8.js} +1 -1
- package/assets/esri/core/workers/chunks/c35553d07ad169910742.js +1 -0
- package/assets/esri/core/workers/chunks/c4fef90cf08bbe4f0bb5.js +1 -0
- package/assets/esri/core/workers/chunks/c5c2fed38e0ccf84f1fa.js +1 -0
- package/assets/esri/core/workers/chunks/c80277a313205853a857.js +1 -0
- package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +1 -0
- package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +1 -0
- package/assets/esri/core/workers/chunks/ca204c110438f7315790.js +1 -0
- package/assets/esri/core/workers/chunks/ca36d85a47179d95f2fc.js +1 -0
- package/assets/esri/core/workers/chunks/cb6fb04fe5c8d90d4196.js +1 -0
- package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +1 -0
- package/assets/esri/core/workers/chunks/{85f459297b0214141d43.js → cd02a6078443b8f63927.js} +1 -1
- package/assets/esri/core/workers/chunks/{3a36c132ceddef3d15c8.js → cdbcc4cd9145dd93db49.js} +1 -1
- package/assets/esri/core/workers/chunks/{e90feee1756a2209f93f.js → ce9fe1a89b474f9e7ee7.js} +1 -1
- package/assets/esri/core/workers/chunks/d0cf9ff48f051adbd455.js +1 -0
- package/assets/esri/core/workers/chunks/d119671a32a050517cca.js +1 -0
- package/assets/esri/core/workers/chunks/d26be8313526ecea9c68.js +1 -0
- package/assets/esri/core/workers/chunks/d270b49c037085503016.js +1 -0
- package/assets/esri/core/workers/chunks/{f5eee6e548bb24b5a003.js → d30a7fc8dab4ebb8893b.js} +1 -1
- package/assets/esri/core/workers/chunks/d344c3fd9f6b113bbcd7.js +1 -0
- package/assets/esri/core/workers/chunks/d36bbda9b7261534568f.js +1 -0
- package/assets/esri/core/workers/chunks/d4b0012ae1d3b8a9ba01.js +1 -0
- package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +1 -0
- package/assets/esri/core/workers/chunks/d6f7aa280f1bd201d4ef.js +1 -0
- package/assets/esri/core/workers/chunks/{60f490afdbe299f89669.js → d871572997600930e017.js} +1 -1
- package/assets/esri/core/workers/chunks/da9aacdb0b4a04f42fb8.js +1 -0
- package/assets/esri/core/workers/chunks/daf7b647bd960d8bad56.js +1 -0
- package/assets/esri/core/workers/chunks/{10ac92dcd3738ec23dfb.js → db04c1bad40d068306ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{3427f0c026301bcf7272.js → db180f8d25471cfa48af.js} +1 -1
- package/assets/esri/core/workers/chunks/ddf284648a73b6993737.js +1 -0
- package/assets/esri/core/workers/chunks/dfbe0efe453587ec5eb2.js +1 -0
- package/assets/esri/core/workers/chunks/e1682e94cc714197ebb4.js +1 -0
- package/assets/esri/core/workers/chunks/e2576c37cf13dc421f69.js +1 -0
- package/assets/esri/core/workers/chunks/e370a3337b3c90240e73.js +1 -0
- package/assets/esri/core/workers/chunks/e39bccc000c768120a32.js +1 -0
- package/assets/esri/core/workers/chunks/e40e08029325f43452d0.js +1 -0
- package/assets/esri/core/workers/chunks/e50adcfb392adfb3f79c.js +1 -0
- package/assets/esri/core/workers/chunks/{0d7d54e74b5639a0be6e.js → e707534a700a2de687ca.js} +1 -1
- package/assets/esri/core/workers/chunks/e823c9ccb7bc348d8824.js +1 -0
- package/assets/esri/core/workers/chunks/e88eee4c2fc4229c2a8b.js +1 -0
- package/assets/esri/core/workers/chunks/e9f29019aa78f07ace66.js +1 -0
- package/assets/esri/core/workers/chunks/ea75c23c44452f45a949.js +1 -0
- package/assets/esri/core/workers/chunks/ea91c57a0b31f3f65ee5.js +1 -0
- package/assets/esri/core/workers/chunks/eda04911553cf99fb99b.js +1 -0
- package/assets/esri/core/workers/chunks/ee77999df3785468b2b6.js +1 -0
- package/assets/esri/core/workers/chunks/ef851a2cff76fd211c07.js +1 -0
- package/assets/esri/core/workers/chunks/f106cc7f559856f69b9f.js +1 -0
- package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +1 -0
- package/assets/esri/core/workers/chunks/{a26dc2647a15b830390e.js → f253875feb11883deb84.js} +1 -1
- package/assets/esri/core/workers/chunks/f3716ce04d09af31cfb1.js +1 -0
- package/assets/esri/core/workers/chunks/f3d57c5b9dffd12e45b4.js +1 -0
- package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +1 -0
- package/assets/esri/core/workers/chunks/f43ae1c2f89e1c4396cc.js +1 -0
- package/assets/esri/core/workers/chunks/f60ed579981913d44675.js +1 -0
- package/assets/esri/core/workers/chunks/{147d1e7e2852a4197e5f.js → f665fb4c5633e0a459d8.js} +1 -1
- package/assets/esri/core/workers/chunks/f66e597e524b26e61cd3.js +1 -0
- package/assets/esri/core/workers/chunks/{bec140a69cfdb0519680.js → f74c7cbe4bd12f73ae90.js} +1 -1
- package/assets/esri/core/workers/chunks/{e6f6b38eda34708d61c5.js → f7f2102b16d201e5f531.js} +1 -1
- package/assets/esri/core/workers/chunks/f82ae237452b97cfc024.js +1 -0
- package/assets/esri/core/workers/chunks/f83c3597e9332bd991eb.js +1 -0
- package/assets/esri/core/workers/chunks/f8a6d8cdcabcd1d511b6.js +1 -0
- package/assets/esri/core/workers/chunks/f8f7b86bbd62106bc3d4.js +1 -0
- package/assets/esri/core/workers/chunks/f9a4387f850d85c44ca5.js +1 -0
- package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +1 -0
- package/assets/esri/core/workers/chunks/fdd0e6d9927d3c43b0d3.js +1 -0
- package/assets/esri/core/workers/chunks/fddcb8be714ad18ad0c8.js +1 -0
- package/assets/esri/core/workers/chunks/{baa46edd87e97f922128.js → ffe749d790320dddfa74.js} +1 -1
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/GeographicTransformation.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/GlowComposite.glsl.js +9 -7
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorCentroid2D.js +1 -1
- package/chunks/OperatorContains.js +2 -0
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorDisjoint.js +2 -0
- package/chunks/OperatorDistance.js +2 -0
- package/chunks/OperatorEquals.js +2 -0
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorRelate.js +2 -0
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/aiServices.js +1 -1
- package/chunks/array.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/accessorSupport/Property.js +1 -1
- package/core/sql/TimeOnly.js +1 -1
- package/core/units.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
- package/form/elements/inputs/inputUtils.js +1 -1
- package/geometry/operators/areaOperator.js +1 -1
- package/geometry/operators/bufferOperator.js +1 -1
- package/geometry/operators/centroidOperator.js +1 -1
- package/geometry/operators/clipOperator.js +1 -1
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/convexHullOperator.js +1 -1
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/cutOperator.js +1 -1
- package/geometry/operators/densifyOperator.js +1 -1
- package/geometry/operators/differenceOperator.js +1 -1
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/generalizeOperator.js +1 -1
- package/geometry/operators/geodesicBufferOperator.js +1 -1
- package/geometry/operators/geodeticAreaOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.js +1 -1
- package/geometry/operators/geodeticDistanceOperator.js +1 -1
- package/geometry/operators/geodeticLengthOperator.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/gx/operatorUnion.js +1 -1
- package/geometry/operators/intersectionOperator.js +1 -1
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/json/containsOperator.js +1 -1
- package/geometry/operators/json/crossesOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/json/intersectsOperator.js +1 -1
- package/geometry/operators/json/overlapsOperator.js +1 -1
- package/geometry/operators/json/touchesOperator.js +1 -1
- package/geometry/operators/json/unionOperator.js +1 -1
- package/geometry/operators/json/withinOperator.js +1 -1
- package/geometry/operators/labelPointOperator.js +1 -1
- package/geometry/operators/lengthOperator.js +1 -1
- package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
- package/geometry/operators/offsetOperator.js +1 -1
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/simplifyOGCOperator.js +1 -1
- package/geometry/operators/simplifyOperator.js +1 -1
- package/geometry/operators/support/apiConverter.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/operators/support/projectionTransformation.js +1 -1
- package/geometry/operators/symmetricDifferenceOperator.js +1 -1
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/unionOperator.js +1 -1
- package/geometry/operators/withinOperator.js +1 -1
- package/geometry/support/convexPolyhedron.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/webMercatorUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/VectorTileLayer.js +1 -1
- package/layers/graphics/data/FlatFeatureStore.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/hydratedFeatures.js +1 -1
- package/layers/mixins/DataSeriesLayer.js +1 -1
- package/layers/support/csvUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +4 -4
- package/support/ArcadeExpression.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/loadArcade.js +1 -1
- package/support/revision.js +1 -1
- package/support/tests/serviceMockDependencies.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementController.js +1 -1
- package/views/2d/engine/vectorTiles/TileManager.js +1 -1
- package/views/2d/engine/webgl/util/Fader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/RouteLayerWaypointVisualization.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/LineOfSightVisualization.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/RopePullNavigation.js +2 -0
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
- package/views/3d/layers/i3s/I3SNode.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/SweptSphereVolume.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/controllers/RopePullController.js +2 -0
- package/views/3d/state/utils/ropePullUtils.js +1 -1
- package/views/3d/support/ElevationAgnosticVisibility.js +1 -1
- package/views/3d/support/sphericalTileUtils.js +1 -1
- package/views/3d/terrain/PlanarPatch.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/LineMaterial.js +2 -0
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/PointMaterial.js +2 -0
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/popupAdapter.js +1 -1
- package/views/support/GeometryWorker.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ArcadeExecutorProvider.js +1 -1
- package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/FeatureTable/support/types.d.ts +3 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/support/SelectionList/selectionListUtils.d.ts +58 -0
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/arcade/kernel.js +0 -2
- package/assets/esri/core/workers/chunks/01b7babaefe6500fd6eb.js +0 -1
- package/assets/esri/core/workers/chunks/06e109e92de7fa0956e3.js +0 -1
- package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +0 -1
- package/assets/esri/core/workers/chunks/0993e51d3a9701ed2198.js +0 -1
- package/assets/esri/core/workers/chunks/09a0a1e794ddff65aa08.js +0 -1
- package/assets/esri/core/workers/chunks/0e57d33bd202d0972207.js +0 -1
- package/assets/esri/core/workers/chunks/114ba901fd319ce87dc6.js +0 -1
- package/assets/esri/core/workers/chunks/12a3b55195ce3244259d.js +0 -1
- package/assets/esri/core/workers/chunks/151bac9e519a3b821baf.js +0 -1
- package/assets/esri/core/workers/chunks/156f85ac1885464f0072.js +0 -1
- package/assets/esri/core/workers/chunks/180eebd8b7badc2840c9.js +0 -1
- package/assets/esri/core/workers/chunks/19cb8963d5ec2246357b.js +0 -1
- package/assets/esri/core/workers/chunks/19d4ecee1c161ac0f33c.js +0 -1
- package/assets/esri/core/workers/chunks/19ece9f5313f53384cac.js +0 -1
- package/assets/esri/core/workers/chunks/1d770e8f0fe57d937daa.js +0 -1
- package/assets/esri/core/workers/chunks/1dd22b8df6a52277c64b.js +0 -1
- package/assets/esri/core/workers/chunks/1ede298ab815e9ad625c.js +0 -1
- package/assets/esri/core/workers/chunks/208bc524bd1e0d3aab79.js +0 -1
- package/assets/esri/core/workers/chunks/20a4ae83542c7d39cf0f.js +0 -1
- package/assets/esri/core/workers/chunks/21071ab3d7b2771406ae.js +0 -1
- package/assets/esri/core/workers/chunks/21bfa89363104f041101.js +0 -1
- package/assets/esri/core/workers/chunks/21d0a4d6639d32278f11.js +0 -1
- package/assets/esri/core/workers/chunks/22a75fdc6ba60213a870.js +0 -1
- package/assets/esri/core/workers/chunks/22e004ed97e06536ecef.js +0 -1
- package/assets/esri/core/workers/chunks/23942712a3f6290e0fdb.js +0 -1
- package/assets/esri/core/workers/chunks/242287de82586d42f0a4.js +0 -1
- package/assets/esri/core/workers/chunks/25cb5086eaa412f6820b.js +0 -1
- package/assets/esri/core/workers/chunks/26c8ed0aef59ed6d5267.js +0 -1
- package/assets/esri/core/workers/chunks/2742d62fceaf0736aef0.js +0 -1
- package/assets/esri/core/workers/chunks/276eba546dc8774076ee.js +0 -1
- package/assets/esri/core/workers/chunks/28e02b213da9e682d3dc.js +0 -29
- package/assets/esri/core/workers/chunks/2d8195231cb16247f198.js +0 -1
- package/assets/esri/core/workers/chunks/2db1227ecd421728630d.js +0 -1
- package/assets/esri/core/workers/chunks/2ddc9c9ff6ec243d85e2.js +0 -1
- package/assets/esri/core/workers/chunks/2e712154ebb895d96ba1.js +0 -1
- package/assets/esri/core/workers/chunks/2f2df51d4976ae65edae.js +0 -1
- package/assets/esri/core/workers/chunks/32d31fd4cffdf5a80acb.js +0 -1
- package/assets/esri/core/workers/chunks/33aaa5a49e396a0aca47.js +0 -1
- package/assets/esri/core/workers/chunks/35622088727e120c93b9.js +0 -1
- package/assets/esri/core/workers/chunks/3714cc26f446c4d9cc2c.js +0 -1
- package/assets/esri/core/workers/chunks/3722d40d161d60370936.js +0 -1
- package/assets/esri/core/workers/chunks/3ac4cfeb1af12a9dc27d.js +0 -1
- package/assets/esri/core/workers/chunks/3b009c05eaec5a7048a8.js +0 -1
- package/assets/esri/core/workers/chunks/3b376318df4ff8519370.js +0 -1
- package/assets/esri/core/workers/chunks/3bf37fd3280f4891c76b.js +0 -1
- package/assets/esri/core/workers/chunks/3d18a10a1ecfabe92db3.js +0 -1
- package/assets/esri/core/workers/chunks/3de20165796fa4f76728.js +0 -1
- package/assets/esri/core/workers/chunks/3fbd4c7e25440c4713f2.js +0 -1
- package/assets/esri/core/workers/chunks/407dba2be21255eb47fc.js +0 -1
- package/assets/esri/core/workers/chunks/414093fa4957d17bf551.js +0 -1
- package/assets/esri/core/workers/chunks/44b1a4e8a65221ad3808.js +0 -1
- package/assets/esri/core/workers/chunks/48b31b8534e7bfe42976.js +0 -1
- package/assets/esri/core/workers/chunks/48f6af09436723f2d861.js +0 -1
- package/assets/esri/core/workers/chunks/49e37f653b81f9e4f7cc.js +0 -1
- package/assets/esri/core/workers/chunks/4b4221a869b3f0d517fa.js +0 -1
- package/assets/esri/core/workers/chunks/4b86bcde5992eb752ab0.js +0 -1
- package/assets/esri/core/workers/chunks/4b9095e2bd060efd47c4.js +0 -1
- package/assets/esri/core/workers/chunks/5084de4d0d4961b63ab7.js +0 -1
- package/assets/esri/core/workers/chunks/51a8a47aac1d8d22ba9d.js +0 -1
- package/assets/esri/core/workers/chunks/5324e4feb78203204c0c.js +0 -1
- package/assets/esri/core/workers/chunks/5536cee0dfc183584a9b.js +0 -1
- package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +0 -1
- package/assets/esri/core/workers/chunks/597a8e3d9e458298fdd3.js +0 -1
- package/assets/esri/core/workers/chunks/5a006ff759fad9fc25cb.js +0 -1
- package/assets/esri/core/workers/chunks/60be6de19c5659091d8f.js +0 -1
- package/assets/esri/core/workers/chunks/61a38237e163b39520e5.js +0 -1
- package/assets/esri/core/workers/chunks/61fcdba6f2097378dce5.js +0 -1
- package/assets/esri/core/workers/chunks/6561c01c67db1f4c546e.js +0 -1
- package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +0 -1
- package/assets/esri/core/workers/chunks/67452ba9e87962b9e01e.js +0 -1
- package/assets/esri/core/workers/chunks/68195277046861ed39a7.js +0 -1
- package/assets/esri/core/workers/chunks/68705692335d57522030.js +0 -1
- package/assets/esri/core/workers/chunks/6a2a4da3a1cd64ff576f.js +0 -1
- package/assets/esri/core/workers/chunks/6af1680771fd8ae8c7dc.js +0 -1
- package/assets/esri/core/workers/chunks/6c367de583e0e657ca3a.js +0 -1
- package/assets/esri/core/workers/chunks/6d2021a0f0c9a3c6a0e6.js +0 -1
- package/assets/esri/core/workers/chunks/6db4a4f9a9ce7cc738d0.js +0 -1
- package/assets/esri/core/workers/chunks/6f2a9259240769c7cd6e.js +0 -1
- package/assets/esri/core/workers/chunks/724260e36efea90585f4.js +0 -1
- package/assets/esri/core/workers/chunks/74ae1222787389d5fcaa.js +0 -1
- package/assets/esri/core/workers/chunks/74bfaa98da6c5d375f05.js +0 -1
- package/assets/esri/core/workers/chunks/7a68a16f7fea712b9fd6.js +0 -1
- package/assets/esri/core/workers/chunks/7b2174b19d06c16715f0.js +0 -1
- package/assets/esri/core/workers/chunks/7d8e59ad438fb34b476d.js +0 -1
- package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +0 -1
- package/assets/esri/core/workers/chunks/80795118467fb31ea4ed.js +0 -1
- package/assets/esri/core/workers/chunks/820c530b8765ecb1f36e.js +0 -1
- package/assets/esri/core/workers/chunks/830daaca32352da6eebe.js +0 -1
- package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +0 -1
- package/assets/esri/core/workers/chunks/85c538bf1209f0da1f8e.js +0 -1
- package/assets/esri/core/workers/chunks/8c2921081ca3e7fd0385.js +0 -1
- package/assets/esri/core/workers/chunks/8db3fd97e8eccd3ba1db.js +0 -1
- package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +0 -1
- package/assets/esri/core/workers/chunks/8e79a84e224d05204e7d.js +0 -1
- package/assets/esri/core/workers/chunks/8e9aff66a2d4e2cc102b.js +0 -1
- package/assets/esri/core/workers/chunks/917318f8e186f466dc52.js +0 -1
- package/assets/esri/core/workers/chunks/9267f6a65c2245696eac.js +0 -1
- package/assets/esri/core/workers/chunks/9407db0584c730591161.js +0 -1
- package/assets/esri/core/workers/chunks/958e161634b5bfd50625.js +0 -1
- package/assets/esri/core/workers/chunks/9658b46a7111cda53b0d.js +0 -1
- package/assets/esri/core/workers/chunks/974bcaf2a059b8cfb153.js +0 -1
- package/assets/esri/core/workers/chunks/99881d0a6c2490a16268.js +0 -1
- package/assets/esri/core/workers/chunks/99980c944acb8ff88d6a.js +0 -1
- package/assets/esri/core/workers/chunks/9c227785f4454d3966ea.js +0 -1
- package/assets/esri/core/workers/chunks/9d61d9136f3d00aab530.js +0 -1
- package/assets/esri/core/workers/chunks/9df2685583393a87df2d.js +0 -1
- package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +0 -1
- package/assets/esri/core/workers/chunks/9ee6e8a6b9bfda758c21.js +0 -1
- package/assets/esri/core/workers/chunks/a03f4605bde69bfb6d41.js +0 -1
- package/assets/esri/core/workers/chunks/a327843cee2057ee76c0.js +0 -1
- package/assets/esri/core/workers/chunks/a557347fb313df6fcc79.js +0 -1
- package/assets/esri/core/workers/chunks/a8da0728a12fc46dca23.js +0 -1
- package/assets/esri/core/workers/chunks/a9ea28e0f22cfe3ccf92.js +0 -1
- package/assets/esri/core/workers/chunks/aae92f23b38ae22dd8bf.js +0 -1
- package/assets/esri/core/workers/chunks/ad3714da9c90d7471385.js +0 -1
- package/assets/esri/core/workers/chunks/b047f9e9ba26037657ed.js +0 -1
- package/assets/esri/core/workers/chunks/b1323800119bd5c1759b.js +0 -1
- package/assets/esri/core/workers/chunks/b18c35f25da18a3219d7.js +0 -1
- package/assets/esri/core/workers/chunks/b1f68ee65cce457d7b5b.js +0 -1
- package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +0 -1
- package/assets/esri/core/workers/chunks/b3c518ca8679fbe16ece.js +0 -1
- package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +0 -1
- package/assets/esri/core/workers/chunks/b61b7005edd9ced925e9.js +0 -1
- package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +0 -1
- package/assets/esri/core/workers/chunks/b66ebe53bd879aa9de57.js +0 -1
- package/assets/esri/core/workers/chunks/b8ca80134abfcc692244.js +0 -1
- package/assets/esri/core/workers/chunks/bbdf10d76d852072c878.js +0 -1
- package/assets/esri/core/workers/chunks/bbeb61d9302323bae9fb.js +0 -1
- package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +0 -1
- package/assets/esri/core/workers/chunks/bdafd4f03585351cecc3.js +0 -1
- package/assets/esri/core/workers/chunks/bddd5aa7a14cd45ff91c.js +0 -1
- package/assets/esri/core/workers/chunks/be31c2cb97f664a54306.js +0 -1
- package/assets/esri/core/workers/chunks/be4319827db91aa71bf5.js +0 -1
- package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +0 -1
- package/assets/esri/core/workers/chunks/c1568bcd3f04014152e1.js +0 -1
- package/assets/esri/core/workers/chunks/c1a7c475ce0c59ffa75a.js +0 -1
- package/assets/esri/core/workers/chunks/c229a4eedda468c914a9.js +0 -1
- package/assets/esri/core/workers/chunks/c2b2942456f1b10d0e96.js +0 -1
- package/assets/esri/core/workers/chunks/c308d8f419ba63c583e6.js +0 -1
- package/assets/esri/core/workers/chunks/c5dc2743c7116d0bc0d8.js +0 -1
- package/assets/esri/core/workers/chunks/c68cc3b9c170b8de22dc.js +0 -1
- package/assets/esri/core/workers/chunks/c6ef0636073e28350c91.js +0 -1
- package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +0 -1
- package/assets/esri/core/workers/chunks/cb2f27e5d465124b9868.js +0 -1
- package/assets/esri/core/workers/chunks/cee2f7f3b3f84688e49d.js +0 -1
- package/assets/esri/core/workers/chunks/d0942860a53b02371e94.js +0 -1
- package/assets/esri/core/workers/chunks/d13eeff678972a245d5d.js +0 -1
- package/assets/esri/core/workers/chunks/d3d7b4cd28a0dc2720d4.js +0 -1
- package/assets/esri/core/workers/chunks/d3ea7ac6fe71c95faa75.js +0 -1
- package/assets/esri/core/workers/chunks/d41e4498aaf4970f48b0.js +0 -1
- package/assets/esri/core/workers/chunks/d56603e1d0031f3c5f3b.js +0 -1
- package/assets/esri/core/workers/chunks/d7c8725ffb175cec5f8a.js +0 -1
- package/assets/esri/core/workers/chunks/d96fa373dcb621c2a869.js +0 -1
- package/assets/esri/core/workers/chunks/da233362b06b6db375f1.js +0 -1
- package/assets/esri/core/workers/chunks/dbc8f15a6be835f4897d.js +0 -1
- package/assets/esri/core/workers/chunks/e00d0036974aaec7d876.js +0 -1
- package/assets/esri/core/workers/chunks/e0c75ae3a211a8da10f7.js +0 -1
- package/assets/esri/core/workers/chunks/e474106292834633e7d4.js +0 -1
- package/assets/esri/core/workers/chunks/e557043f90c051e93925.js +0 -1
- package/assets/esri/core/workers/chunks/e5cbed6f19c743915c8e.js +0 -1
- package/assets/esri/core/workers/chunks/e5ecd93bd32e99bc99d1.js +0 -1
- package/assets/esri/core/workers/chunks/e64ccdb8328eb6514e59.js +0 -1
- package/assets/esri/core/workers/chunks/eb8c4f194bb66a27d418.js +0 -1
- package/assets/esri/core/workers/chunks/ebd8c77df5df63bd3efe.js +0 -1
- package/assets/esri/core/workers/chunks/f14347f5d63f5d102617.js +0 -1
- package/assets/esri/core/workers/chunks/f3c0280b6c87f2383a60.js +0 -1
- package/assets/esri/core/workers/chunks/f42c4dcb8f413ca1c6fd.js +0 -1
- package/assets/esri/core/workers/chunks/f5773321487ec248fa3b.js +0 -1
- package/assets/esri/core/workers/chunks/f76911f71540b058a881.js +0 -1
- package/assets/esri/core/workers/chunks/f988d5a6dcc15fe34797.js +0 -1
- package/assets/esri/core/workers/chunks/fa29b5064d6626cfc019.js +0 -1
- package/assets/esri/core/workers/chunks/fa882d0f4a9826533421.js +0 -1
- package/assets/esri/core/workers/chunks/fb2d43608006f588e3cb.js +0 -1
- package/assets/esri/core/workers/chunks/fbd02e8277fe2252ecd2.js +0 -1
- package/assets/esri/core/workers/chunks/fc1aeea22f8c9d63864a.js +0 -1
- package/assets/esri/core/workers/chunks/fc3c03cfa3d6bf3b37dc.js +0 -1
- package/assets/esri/core/workers/chunks/fcf7299e2ee904ab9882.js +0 -1
- package/assets/esri/core/workers/chunks/ff07d351553deb70b889.js +0 -1
- package/assets/esri/core/workers/chunks/ffee66699f5d26569baf.js +0 -1
- package/chunks/OperatorDefinitions.js +0 -2
- package/chunks/areaOperator.js +0 -2
- package/chunks/bufferOperator.js +0 -2
- package/chunks/centroidOperator.js +0 -2
- package/chunks/clipOperator.js +0 -2
- package/chunks/containsOperator.js +0 -2
- package/chunks/convexHullOperator.js +0 -2
- package/chunks/crossesOperator.js +0 -2
- package/chunks/cutOperator.js +0 -2
- package/chunks/densifyOperator.js +0 -2
- package/chunks/differenceOperator.js +0 -2
- package/chunks/disjointOperator.js +0 -2
- package/chunks/distanceOperator.js +0 -2
- package/chunks/equalsOperator.js +0 -2
- package/chunks/generalizeOperator.js +0 -2
- package/chunks/geodesicBufferOperator.js +0 -2
- package/chunks/geodeticAreaOperator.js +0 -2
- package/chunks/geodeticDensifyOperator.js +0 -2
- package/chunks/geodeticDistanceOperator.js +0 -2
- package/chunks/geodeticLengthOperator.js +0 -2
- package/chunks/intersectionOperator.js +0 -2
- package/chunks/intersectsOperator.js +0 -2
- package/chunks/labelPointOperator.js +0 -2
- package/chunks/lengthOperator.js +0 -2
- package/chunks/multiPartToSinglePartOperator.js +0 -2
- package/chunks/offsetOperator.js +0 -2
- package/chunks/overlapsOperator.js +0 -2
- package/chunks/proximityOperator.js +0 -2
- package/chunks/relateOperator.js +0 -2
- package/chunks/simplifyOperator.js +0 -2
- package/chunks/symmetricDifferenceOperator.js +0 -2
- package/chunks/touchesOperator.js +0 -2
- package/chunks/unionOperator.js +0 -2
- package/chunks/withinOperator.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[473,1948,8125],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},65708(t,e,r){r.d(e,{e:()=>i});var s=r(86211),n=r(78125);function i(t,e={}){const{unit:r}=e;let i=(0,n.fromGeometry)(t).calculateArea2D();if(i&&r){const e=(0,n.getSpatialReference)(t);if(e.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const a=(0,s.B5)(e);a!==r&&(a?i=(0,s.oU)(i,a,r):(i=Math.sqrt(i),i*=(0,s.GA)(e),i**=2,i=(0,s.oU)(i,"square-meters",r)))}return i}const a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}));r.d(e,["a",0,a])},49590(t,e,r){r.d(e,{e:()=>f,l:()=>c});var s=r(86211),n=r(86742),i=r(5808);let a,o,h,u;function l(){return!!a&&(0,n.s1)()}async function c(){if(!l()){const[t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)),(0,n.Hh)()]);a=t.fromGeometry,o=t.fromSpatialReference,h=t.getSpatialReference,u=(0,n.fz)()}}function f(t,e={}){const{curveType:r="geodesic",unit:u}=e,l=h(t);let c=(0,n.g7)(a(t),o(l),i.O[r]);return c&&u&&(c=(0,s.oU)(c,"square-meters",u)),c}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:c,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));r.d(e,["g",0,p])},39663(t,e,r){r.d(e,{e:()=>f,l:()=>c});var s=r(86211),n=r(35223),i=r(5808);let a,o,h,u;function l(){return!!a&&(0,n.s1)()}async function c(){if(!l()){const[t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)),(0,n.Hh)()]);a=t.fromGeometry,o=t.fromSpatialReference,h=t.getSpatialReference,u=(0,n.fz)()}}function f(t,e={}){const{curveType:r="geodesic",unit:u}=e,l=h(t);let c=(0,n.g7)(a(t),o(l),i.O[r]);return c&&u&&(c=(0,s.oU)(c,"meters",u)),c}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:c,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));r.d(e,["g",0,p])},7817(t,e,r){r.d(e,{e:()=>i});var s=r(86211),n=r(78125);function i(t,e={}){const{unit:r}=e;let i=(0,n.fromGeometry)(t).calculateLength2D();if(i&&r){const e=(0,n.getSpatialReference)(t);i=(0,s.PQ)(i,e,r)}return i}const a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}));r.d(e,["l",0,a])},10222(t,e,r){r.d(e,{e:()=>i});var s=r(81150),n=r(78125);function i(t){const e=(0,n.getSpatialReference)(t);return(0,n.toGeometry)((0,s.g7)((0,n.fromGeometry)(t),(0,n.fromSpatialReference)(e),!1),e)}const a=(0,s.fz)(),o=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(t){const e=t.map(n.fromGeometry),r=(0,n.getSpatialReference)(t);return(0,s.zo)(e,(0,n.fromSpatialReference)(r),!1).map(t=>(0,n.toGeometry)(t,r))},isSimple:function(t){return(0,s.Pg)((0,n.fromGeometry)(t),(0,n.fromSpatialReference)((0,n.getSpatialReference)(t)),!1)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}));r.d(e,["s",0,o])},69540(t,e,r){var s=r(32198),n=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),h=r(64108);const u=Symbol("ClonableMixin"),l=t=>{var e;const r=t;let n=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,o.oY)(this);(0,a.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,s=e.store,n={},h=new Map;for(const e in r){const a=r[e],o=s?.originOf(e),u=a.clonable;if(a.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const l=this[e];let c=null;if("function"==typeof u)c=u(l,t);else if("reference"===u)c=l;else if(c=(0,i.TU)(l,t),null!=l&&null==c)continue;0===o?h.set(e,c):n[e]=c}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(h.size){const t=(0,o.oY)(u)?.store;if(t)for(const[e,r]of h)t.set(e,r,0)}return u}};return n=(0,s.Cg)([(0,h.$)("esri.core.Clonable")],n),n},c=l(n.A);r.d(e,["OU",0,l,"Pw",0,c])},17799(t,e,r){r.d(e,{T9:()=>o,d_:()=>n,gT:()=>i});var s=r(86211);function n(t,e){return{type:(0,s.t$)(e),value:t,unit:e}}function i(t,e){return{type:(0,s.t$)(e),value:t,unit:e}}function a(t,e,r="arithmetic"){return{type:(0,s.t$)(e),value:t,unit:e,rotationType:r}}function o(t,e){return null==t?e:null==e||t.value>(0,s.oU)(e.value,e.unit,t.unit)?t:e}n(0,"meters"),i(0,"square-meters"),a(0,"radians"),a(0,"degrees"),a(0,"degrees","geographic")},87992(t,e,r){r.d(e,{JR:()=>R,ME:()=>C,MY:()=>A,NO:()=>M,Nh:()=>w,V2:()=>E,_s:()=>b,e6:()=>I,gh:()=>P,tr:()=>Y,uX:()=>m});var s=r(32198),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),l=r(79567),c=r(52006),f=r(49663),p=r(46068),g=r(92722);class m{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:c,segmentCountArc:f,segmentCountBezier:p}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=f,this.segmentCountBezier=p}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=E(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new x(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const c=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],c,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=O(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new S(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,c.yP)(r)}const[a,o,u,f]=n;e={xmin:a,ymin:o,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function C(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,_(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=E(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:l}=n;function f(t){h[2*g]=t[0],h[2*g+1]=t[1],i&&(u[g]=t[2]),o&&(l[g]=t[p]),++g}n.spatialReference=t.spatialReference??void 0;const p=n.hasZ?3:2;let g=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*g]=t,h[2*g+1]=e,++g;return n}for(const t of r[0])f(t);return n}const m="polygon"===s,{partOffsets:y}=n;let d=0;if(!(0,c.Ed)(t)){for(const t of r){if(y[d++]=g,0===t.length)continue;let e=t.length;if(m&&_(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*g]=e,h[2*g+1]=s,++g}}return y[d]=g,n}function v(t){const e=x+t;if(e<=(n.segmentParams?.length??0))return;let r=e*z;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let x=0;for(const t of r){if(n.partOffsets[d++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=g-1;(0,c.wY)(s)?(v(10),++n.segmentCountArc,x=b(r,s,n,i,x),r=s.a[0]):(0,c.DA)(s)?(v(10),++n.segmentCountArc,x=V(r,s,n,i,x),r=s.a[0]):(0,c.aO)(s)?(v(10),++n.segmentCountArc,x=I(r,s,n,i,x),r=s.c[0]):(0,c.n1)(s)?(v(4),++n.segmentCountBezier,x=Y(0,s,n,i,x),r=s.b[0]):r=s}m&&_(e,r)||f(r)}return n.partOffsets[d]=g,n}function P(t){const e=Z(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=O(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function w(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=E(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let c=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[c++],u.vertexXY[2*t+1]=r[c++],s&&(u.vertexZ[t]=r[c++]),n&&(u.vertexM[t]=r[c++]);o&&(c+=l)}return u}function R({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new g.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let c=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=c;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=c;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),c=i}return"point"===t&&(u.lengths.length=0),u}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new m({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function _(t,e){return t.every((t,r)=>t===e[r])}function E(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new m({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let c=0;return h.vertexXY=new Float64Array(l,c,2*e),c+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,c,e),c+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,c,e),c+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,c,h.segmentParamCount),c+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,c,e),h.segmentIndices.fill(F),c+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,c,r+1),c+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,c,r+1),c+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,c,e),h.segmentFlags.fill(1),c+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,c,f,g,m]=e.a;let y=4;c||(y|=1),l||(y|=2);const d=(0,p.SW)(t,e),[v,x]=(0,p.Uk)(d,.5);return n[a++]=y,n[a++]=g,n[a++]=m,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=d.u2-d.u1,n[a++]=d.u1,n[a++]=v,n[a++]=x,a}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return G(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,G((0,u.pM)(t,e),0,...e.c[1],n,a)}function G(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function Y(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const z=1.61803,F=-1},48526(t,e,r){r.d(e,{A:()=>y});var s,n=r(32198),i=r(4576),a=r(4718),o=r(91429),h=r(5443),u=r(91075),l=r(86738),c=r(16930),f=r(90634),p=r(47610),g=r(56993),m=r(43937);let y=s=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:r,hasZ:s,spatialReference:n}=t;switch(e??=[],e?.at(0)?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return n??=c.A.WGS84,{...t,hasM:r,hasZ:s,points:e,spatialReference:n}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:r,hasZ:n}=this;return new s({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:r,hasZ:n})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,r=t.spatialReference;return null!=e==(null!=r)&&!(null!=e&&null!=r&&!e.equals(r))&&(0,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,g.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],r={x:e[0],y:e[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(r.z=e[2],s=3),this.hasM&&(r.m=e[s]),new l.A(r)}removePoint(t){if(!this._validateInputs(t))return null;const e=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,g.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,n.Cg)([(0,m.K)("points")],y.prototype,"writePoints",null),y=s=(0,n.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,r){r.d(e,{A:()=>g});var s,n=r(32198),i=r(4718),a=r(91429),o=r(5443),h=r(91075),u=r(86738),l=r(16930),c=r(90634),f=r(56993),p=r(43937);let g=s=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:r,hasZ:s,spatialReference:n}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return n??=l.A.WGS84,{...t,hasM:r,hasZ:s,paths:e,spatialReference:n}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,r=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const s=[];for(let e=0,r=t.length;e<r;e++)s[e]=t[e].toArray();e[r]=s}else e[r]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new s;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const r=this.paths[t][e],s=this.hasZ,n=this.hasM;return s&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!s?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):s&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(t,e,r){return this._validateInputs(t,e,!0)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t].splice(e,0,r),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],r=this.spatialReference,s=e.map(t=>new u.A(t,r));return this.notifyChange("paths"),s}removePoint(t,e){if(!this._validateInputs(t,e))return null;const r=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(t,e,r){return this._validateInputs(t,e)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t][e]=r,this.notifyChange("paths"),this):this}_validateInputs(t,e,r=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const s=this.paths[t];if(r&&(e<0||e>s.length))return!1;if(!r&&(e<0||e>=s.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],g.prototype,"writePaths",null),g=s=(0,n.Cg)([(0,a.$K)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},86742(t,e,r){r.d(e,{Hh:()=>a,fz:()=>h,g7:()=>o,s1:()=>i});var s=r(83290);let n;function i(){return!!n&&(0,s.i)()}async function a(){if(!i()){const[t,e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(2024),r.e(6558)]).then(r.bind(r,6558)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(r.bind(r,15756)).then(({injectPe:t})=>t),(0,s.l)()]);n=new t.OperatorGeodeticArea,e(s.p)}}function o(t,e,r){return n.execute(t,e,r,null)}function h(){return n.supportsCurves()}},35223(t,e,r){r.d(e,{Hh:()=>a,fz:()=>h,g7:()=>o,s1:()=>i});var s=r(83290);let n;function i(){return!!n&&(0,s.i)()}async function a(){if(!i()){const[t,e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(4167)]).then(r.bind(r,28879)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(r.bind(r,15756)).then(({injectPe:t})=>t),(0,s.l)()]);n=new t.OperatorGeodeticLength,e(s.p)}}function o(t,e,r){return n.execute(t,e,r,null)}function h(){return n.supportsCurves()}},81150(t,e,r){r.d(e,{Pg:()=>h,fz:()=>u,g7:()=>a,zo:()=>o});var s=r(76061),n=(r(55537),r(88885),r(39117));r(95213);const i=new n.H;function a(t,e,r){return i.execute(t,e,r,null)}function o(t,e,r){const n=i.executeMany(new s.S(t),e,r,null);return Array.from(n)}function h(t,e,r){return i.isSimpleAsFeature(t,e,r,null,null)}function u(){return i.supportsCurves()}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>y,fromGeometry:()=>m,fromMultipoint:()=>d,fromPoint:()=>v,fromPolygon:()=>x,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>R,toGeometry:()=>w,toMultipoint:()=>A,toPoint:()=>S,toPolygon:()=>O,toPolyline:()=>Z});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),l=r(39829),c=r(82799),f=(r(90293),r(83299));const p="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function m(t){switch(t.type){case"point":return v(t);case"multipoint":return d(t);case"polyline":return M(t);case"polygon":return x(t);case"extent":return y(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function y(t){if(!t.getCacheValue(p)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(p,e)}return t.getCacheValue(p)}function d(t){if(!t.getCacheValue(p)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(p,e)}return t.getCacheValue(p)}function v(t){if(!t.getCacheValue(p)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(p,e)}return t.getCacheValue(p)}function x(t){if(!t.getCacheValue(p)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function M(t){if(!t.getCacheValue(p)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function C(t){if(!t.getCacheValue(p)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function P(t){return t.cache?(t.cache[p]??=(0,f.fromSpatialReference)(t),t.cache[p]):(0,f.fromSpatialReference)(t)}function w(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return S(t,e);case n.G.enumEnvelope:return R(t,e);case n.G.enumMultiPoint:return A(t,e);case n.G.enumPolyline:return Z(t,e);case n.G.enumPolygon:return O(t,e)}return null}function R(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(p,t),r}function A(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(p,t),u}function S(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(p,t),r}function O(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(p,t),r}function Z(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(p,t),r}},5808(t,e,r){r.d(e,["O",0,{geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}])},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}},32728(t,e,r){r.d(e,{YH:()=>a,nu:()=>o,wp:()=>i}),r(34727);var s=r(35522),n=r(51850);function i(t,e){const r=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),n=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,s.hZ)(t,r,n,i),t}function a(t,e,r){r=r||t;const n=(0,s.Om)(t,e);(0,s.hZ)(r,t[0]-n*e[0],t[1]-n*e[1],t[2]-n*e[2]),(0,s.S8)(r,r)}function o(t,e,r,i=(0,n.vt)()){const a=(0,s.Bw)(t),o=(0,s.Bw)(e),l=(0,s.Om)(t,e)/(a*o);if(l<.9999999999999999){const n=Math.acos(l),c=((1-r)*a+r*o)/Math.sin(n),f=c/a*Math.sin((1-r)*n),p=c/o*Math.sin(r*n);return(0,s.hs)(h,t,f),(0,s.hs)(u,e,p),(0,s.WQ)(i,h,u)}return(0,s.Cc)(i,t,e,r)}(0,n.vt)(),(0,n.vt)(),(0,n.vt)();const h=(0,n.vt)(),u=(0,n.vt)()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91,3354,8424],{27749(e,t,i){i.d(t,{e:()=>p,l:()=>d});var n=i(86211),r=i(77085),o=i(5808);let s,a,l,c,u;function h(){return!!s&&(0,r.s1)()}async function d(){if(!h()){const[e]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),(0,r.Hh)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=e.toGeometry,u=(0,r.fz)()}}function p(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=l(e);return c((0,r.g7)(s(e),t,a(d),o.O[u]),d)}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:p,executeMany:function(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=e.map(s),p=l(e);return(0,r.zo)(d,t,a(p),o.O[u]).map(e=>c(e,p))},isLoaded:h,load:d,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));i.d(t,["g",0,m])},73354(e,t,i){i.d(t,{a:()=>h,b:()=>a,c:()=>r,d:()=>s,e:()=>d,f:()=>u,l:()=>c,n:()=>p,t:()=>o}),i(44208);var n=i(72727);function r(e,t,i){o(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function o(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[4],p=i[5],m=i[6],f=i[8],g=i[9],y=i[10],v=i[12],w=i[13],b=i[14];let C=0,_=0;for(let i=0;i<l;i++){const i=t[C],n=t[C+1],s=t[C+2];e[_]=c*i+d*n+f*s+v,e[_+1]=u*i+p*n+g*s+w,e[_+2]=h*i+m*n+y*s+b,C+=o,_+=r}return e}function s(e,t,i){a(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function a(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[3],p=i[4],m=i[5],f=i[6],g=i[7],y=i[8];let v=0,w=0;for(let i=0;i<l;i++){const i=t[v],n=t[v+1],s=t[v+2];e[w]=c*i+d*n+f*s,e[w+1]=u*i+p*n+g*s,e[w+2]=h*i+m*n+y*s,v+=o,w+=r}}function l(e,t,i,n=3,r=n){const o=Math.min(e.length/n,t.length/r);let s=0,a=0;for(let l=0;l<o;l++)e[a]=i*t[s],e[a+1]=i*t[s+1],e[a+2]=i*t[s+2],s+=r,a+=n;return e}function c(e,t,i,n){u(e.typedBuffer,t.typedBuffer,i,n,e.typedBufferStride,t.typedBufferStride)}function u(e,t,i,n,r=3,o=r){const s=Math.min(e.length/r,t.length/o);let a=0,l=0;const c=1/2.2;for(let u=0;u<s;u++)e[l]=n*(i*t[a])**c,e[l+1]=n*(i*t[a+1])**c,e[l+2]=n*(i*t[a+2])**c,a+=o,l+=r}function h(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a);let c=0,u=0;for(let n=0;n<l;n++)e[u]=t[c]+i[0],e[u+1]=t[c+1]+i[1],e[u+2]=t[c+2]+i[2],c+=o,u+=r;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,i=3,n=i){const r=Math.min(e.length/i,t.length/n);let o=0,s=0;for(let a=0;a<r;a++){const r=t[o],a=t[o+1],l=t[o+2],c=r*r+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[s]=t*r,e[s+1]=t*a,e[s+2]=t*l}o+=n,s+=i}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,i){l(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,i){const n=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<n;e++)r[c]=s[l]>>i,r[c+1]=s[l+1]>>i,r[c+2]=s[l+2]>>i,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:r,translate:h},Symbol.toStringTag,{value:"Module"}))},7762(e,t,i){var n,r=i(32198),o=i(98291),s=i(4576),a=i(65529),l=i(36563),c=i(4718),u=i(53966),h=i(93687),d=i(76030),p=i(56507),m=i(62788),f=i(10107),g=i(7695),y=i(64108),v=i(95488),w=i(12195);class b{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class C{constructor(e,t,i,n,r){this.target=e,this.added=t,this.removed=i,this.start=n,this.deleteCount=r}}const _=new h.A(()=>new b,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function T(e){return e?e instanceof E?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function A(e,t,i,n){const r=Math.min(e.length-i,t.length-n);let o=0;for(;o<r&&e[i+o]===t[n+o];)o++;return o}function S(e,t,i,n){t&&t.forEach((t,r,o)=>{e.push(t),S(e,i.call(n,t,r,o),i,n)})}const D=new Set,R=new Set,Z=new Set,O=new Map;let I=0,E=n=class extends a.nJ{static ofType(e){if(!e)return n;if(O.has(e))return O.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const n=e.typeMap[i].prototype.declaredClass;t?t+=` | ${n}`:t=n}let i=class extends n{};return(0,r.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],i.prototype,"itemType",void 0),i=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),O.set(e,i),i}static isCollection(e){return null!=e&&e instanceof n}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}normalizeCtorArgs(e){return e?(0,s.yc)(e)||e instanceof n?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,T(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){const i="deref"in t?()=>t.deref():()=>t,n=this.on(e,e=>{i()?.call(null,e),n.remove()});return n}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t);return this._splice(i,0,T(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,m.gc)(this._observable);const t=e.map(T);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),n=i.length;for(let r=0;r<n;r++)e.call(t,i[r],r,i);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);const i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);const i=[];return S(i,this,e,t),new n(i)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);const i=this._items.map(e,t);return new n({items:i})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof n?e.toArray():e,i=this._items,r=[],o=t.length;for(let e=0;e<o;e++){const n=t[e],o=i.indexOf(n);if(o>-1){const n=1+A(t,i,e+1,o+1),s=this._splice(o,n);s&&s.length>0&&r.push.apply(r,s),e+=n-1}}return this._emitAfterChanges(2),r}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const n=(t?2:0)|(i.length?1:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(e,t,i)||[];return this._emitAfterChanges(n),r}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,w.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const n=this._items,r=this.itemType;let o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){const t=_.acquire();t.target=this,t.cancellable=!0;for(let i=0,r=s.length;i<r;i++)o=s[i],t.reset(o),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(i,1),n.splice(e,0,o),e+=1,i-=1,r-=1);_.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=_.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let i=0;i<t;i++)e.reset(s[i]),this.emit("after-remove",e);_.release(e)}}if(i?.length){if(r){const e=[];for(const t of i){const i=r.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),o=this.hasEventListener("after-add"),s=e===this.length;if(t||o){const r=_.acquire();r.target=this,r.cancellable=!0;const a=_.acquire();a.target=this,a.cancellable=!1;for(const l of i)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(s?n.push(l):n.splice(e++,0,l),this._length=n.length,o&&(a.reset(l),this.emit("after-add",a)))):(s?n.push(l):n.splice(e++,0,l),this._length=n.length,a.reset(l),this.emit("after-add",a));_.release(a),_.release(r)}else{if(s)for(const e of i)n.push(e);else n.splice(e,0,...i);this._length=n.length}}if((i?.length||s?.length)&&this._notifyChangeEvent(i,s),this.hasEventListener("after-splice")){const n=new C(this,i,s,e,t);this.emit("after-splice",n)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=_.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,_.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=_.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),_.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;D.clear(),R.clear(),Z.clear();for(const{added:t,removed:i}of e){if(t)if(0===Z.size&&0===R.size)for(const e of t)D.add(e);else for(const e of t)R.has(e)?(Z.add(e),R.delete(e)):Z.has(e)||D.add(e);if(i)if(0===Z.size&&0===D.size)for(const e of i)R.add(e);else for(const e of i)D.has(e)?D.delete(e):(Z.delete(e),R.add(e))}const i=o.A.acquire();D.forEach(e=>{i.push(e)});const n=o.A.acquire();R.forEach(e=>{n.push(e)});const r=this._items,s=t.items,a=o.A.acquire();if(Z.forEach(e=>{s.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(i.length||n.length||a.length)){const e={target:this,added:i,removed:n,moved:a},r=t.listeners.length;for(let i=0;i<r;i++){const n=t.listeners[i];n.removed||n.callback.call(this,e)}}o.A.release(i),o.A.release(n),o.A.release(a)}D.clear(),R.clear(),Z.clear()}};(0,r.Cg)([(0,f.MZ)()],E.prototype,"_updating",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"_length",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"length",null),(0,r.Cg)([(0,f.MZ)()],E.prototype,"items",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],E.prototype,"updating",null),E=n=(0,r.Cg)([(0,y.$)("esri.core.Collection")],E);const L=E;i.d(t,["A",0,L])},4902(e,t,i){var n=i(32198),r=i(64108);let o=0;const s=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return i=(0,n.Cg)([(0,r.$)("esri.core.Identifiable")],i),i};s(class{}),i.d(t,["s",0,s])},7695(e,t,i){function n(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>n})},82534(e,t,i){function n(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>r,vt:()=>n});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:n,fromValues:function(e,t,i,n){return[e,t,i,n]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,o])},48163(e,t,i){function n(){return[0,0]}function r(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(-1,-1)}function l(){return o(1,0)}function c(){return o(0,1)}i.d(t,{fA:()=>o,o8:()=>r,vt:()=>n});const u=s(),h=a(),d=l(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:u,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:r,create:n,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const i=Math.min(2,e.length);for(let n=0;n<i;++n)t[n]=e[n];return t},fromValues:o,negativeOnes:a,ones:s,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["IA",0,h,"Un",0,u])},36708(e,t,i){i.d(t,{C_:()=>d,on:()=>h,wB:()=>l,z7:()=>c});var n=i(37955),r=i(36563),o=i(97768),s=i(17676),a=i(14012);function l(e,t,i={}){return u(e,t,i,p)}function c(e,t,i={}){return u(e,t,i,m)}function u(e,t,i={},n){let r=null;const s=i.once?(e,i)=>{n(e)&&((0,o.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,s,i.sync,i.equals),i.initial){const t=e();s(t,t)}return r}function h(e,t,i,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function d(e){s.once&&s.once&&(0,o.xt)(u),i(e)}const p=l(e,(e,i)=>{h(),(0,n.wb)(e)&&(a=e,c=(0,n.on)(e,t,d),s.onListenerAdd?.(e))},{sync:s.sync,initial:!0});return u=(0,r.hA)(()=>{p.remove(),h()}),u}function d(e,t){return function(e,t,i){if((0,s.G4)(i))return Promise.reject((0,s.NK)());const n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,o.xt)(a)}return new Promise((n,o)=>{a=(0,r.vE)([(0,s.u7)(i,()=>{l(),o((0,s.NK)())}),u(e,e=>{l(),n(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,i){i.d(t,{S1:()=>a,lL:()=>c,mi:()=>l,rb:()=>u,t:()=>h});var n=i(97770),r=(i(98623),i(34747));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,o="system"){if("unknown"===i)return e;const s=new r.oh((0,n.wj)(o)),a=r.c9.fromJSDate(e,{zone:s}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){const n=e.getTime(),r=h(t,i,"milliseconds");return new Date(n+r)}function c(e,t,i="system"){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),c=e=>e-e%s;switch(o){case"milliseconds":return l.startOf("second").plus({millisecond:c(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:c(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:c(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:c(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:c(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:c(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:c(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function u(e){const t=o.exec(e);if(!t)return null;const{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*s.hours+Number(n)*s.minutes+Number(r||0)*s.seconds+Number(a||0)}function h(e,t,i){return 0===e?0:e*s[t]/s[i]}},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),r=i(71511),o=i(36563),s=i(53966),a=i(97768),l=i(17676),c=i(83027);class u{constructor(e,t,i,n,r={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(e,{...r,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new h(e,t);return this._listeners.push(i),this._connectListener(i),(0,o.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){if(this._thread){const r=this._transferLists[e],o=r?r(t):[];return this._thread.invoke(e,t,{transferList:o,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>y});var n,r=i(32198),o=i(4576),s=i(66552),a=i(25482),l=i(86211),c=i(67076),u=i(91429),h=i(97348),d=i(43937),p=i(36005);const m=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=m.jsonValues.slice();(0,o.Xy)(f,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return m.write(e,t,i)}readHeightModel(e,t,i){return m.read(e)||(i?.messages&&i.messages.push(function(e,t){return new c.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:i}=e;if(!i)return null;const r=(null!=t?h.B.get(t):null)??h.B.get(i);return r?new n({heightModel:0===r.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(r.unit.name),vertCRS:r.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new c.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r.Cg)([(0,u.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,r.Cg)([(0,d.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,r.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,r.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,r.Cg)([(0,p.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,r.Cg)([(0,p.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,r.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,r.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,r.Cg)([(0,u.$K)("esri.geometry.HeightModelInfo")],y)},77085(e,t,i){i.d(t,{Hh:()=>a,fz:()=>u,g7:()=>l,s1:()=>s,zo:()=>c});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(1088)]).then(i.bind(i,31088)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(i.bind(i,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticDensifyByLength,t(r.p)}}function l(e,t,i,n){return o.execute(e,t,i,n,null)}function c(e,t,i,r){const s=o.executeMany(new n.S(e),t,i,r,null);return Array.from(s)}function u(){return o.supportsCurves()}},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>l,execute:()=>c,executeMany:()=>u,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>d,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>m,transform:()=>f});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(i.bind(i,9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(i.bind(i,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorProject,t(r.p)}}function l(e,t,i){return o.clipToSpatialReference(e,t,null,i)}function c(e,t){return o.execute(e,t,null)}function u(e,t){const i=o.executeMany(new n.S(e),t,null);return Array.from(i)}function h(e,t){return o.foldInto360Range(e,t)}function d(e,t,i){return o.foldInto360RangeGeodetic(e,t,i)}function p(e,t,i){return o.normalizeGeometry(e,t,i)}function m(){return o.supportsCurves()}function f(e,t,i,n,r){return o.transform(e,t,i,n,r)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>p,executeMany:()=>m,isLoaded:()=>h,load:()=>d,supportsCurves:()=>u});var n=i(4144),r=i(17499);let o,s,a,l,c,u;function h(){return!!o&&(0,n.isLoaded)()}async function d(){if(!h()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(i.bind(i,86129)),(0,n.load)()]);o=e.fromGeometry,s=e.fromSpatialReference,a=e.getSpatialReference,l=e.toGeometry,c=t.createProjectionTransformation,u=(0,n.supportsCurves)()}}function p(e,t,i){const u=a(e),h=c(s(u),s(t),i),d=l((0,n.execute)(o(e),h),t);return!i?.zConversionDisabled&&d?.hasZ&&(0,r.g)([d],u,t),d}function m(e,t,i){const u=e.map(o),h=a(e),d=c(s(h),s(t),i),p=(0,n.executeMany)(u,d).map(e=>l(e,t));return!i?.zConversionDisabled&&p&&(0,r.g)(p,h,t),p}},17499(e,t,i){i.d(t,{g:()=>o});var n=i(60408),r=i(62815);function o(e,t,i){let o;for(const s of e)if(s&&(0,n.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,n.$B)(s);if(o=(0,r.N)(e,t,i),!o)return}o(s)}}},72727(e,t,i){function n(e,t,i){if(t<=0)return 0;const n=e-i;return n<0?0:Math.floor(n/t)+1}i.d(t,{k:()=>n}),i(53966)},27921(e,t,i){i.d(t,{$Q:()=>b,C:()=>a,Cr:()=>u,H:()=>_,O_:()=>c,Qj:()=>l,T7:()=>v,Tj:()=>w,lU:()=>h,mN:()=>M,vE:()=>T,vt:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e=x){return[e[0],e[1],e[2],e[3]]}function a(e,t){return function(e,t,i,n,r=s()){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}(t[0],t[1],t[2],t[3],e)}function l(e){return e}function c(e,t,i){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return i[0]=t[0]*r,i[1]=t[1]*r,i[2]=t[2]*r,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function u(e,t,i,n=s()){const r=i[0]-t[0],o=i[1]-t[1],a=i[2]-t[2],l=e[0]-t[0],c=e[1]-t[1],u=e[2]-t[2],h=o*u-a*c,d=a*l-r*u,p=r*c-o*l,m=h*h+d*d+p*p,f=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=h*f,n[1]=d*f,n[2]=p*f,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function h(e,t,i,n=0,o=Math.floor(i*(1/3)),s=Math.floor(i*(2/3))){if(i<3)return!1;t(p,n);let a=o,l=!1;for(;a<i-1&&!l;)t(m,a),a++,l=!(0,r.t2)(p,m);if(!l)return!1;for(a=Math.max(a,s),l=!1;a<i&&!l;)t(f,a),a++,(0,r.Re)(g,p,m),(0,r.S8)(g,g),(0,r.Re)(y,m,f),(0,r.S8)(y,y),l=!(0,r.t2)(p,f)&&!(0,r.t2)(m,f)&&Math.abs((0,r.Om)(g,y))<d;return l?(u(p,m,f,e),!0):(0!==n||1!==o||2!==s)&&h(e,t,i,0,1,2)}i(78955),i(44280),i(32114),i(32728);const d=.99619469809,p=(0,o.vt)(),m=(0,o.vt)(),f=(0,o.vt)(),g=(0,o.vt)(),y=(0,o.vt)();function v(e,t,i){return function(e){return 0===e||1===e}(T(e,t.origin,t.vector,0,i))}function w(e,t){return M(e,t)>=0}function b(e,t){return function(e,t,i,n,o,s,a){const l=(0,r.Om)(e,i),c=M(e,t);if(l>-1e-6&&l<1e-6)return C(c,o,s);const u=-c/l,h=C(l,o,!1);return!(a&&!h&&!C(c,o,s))&&(h?u>n.c0&&(n.c0=u):u<n.c1&&(n.c1=u),n.c0<=n.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function C(e,t,i){return i?t?e>=0:e<=0:t?e>0:e<0}function _(e,t,i,n=!1){let o=t.at(-1),s=M(e,o),a=n?s>0:s<=0;for(let l=0;l<t.length;l++){const c=t.at(l),u=M(e,c),h=n?u>0:u<=0;a!==h&&(0,r.Cc)(i(),o,c,s/(s-u)),h&&(0,r.C)(i(),c),o=c,s=u,a=h}}function M(e,t){return(0,r.Om)(e,t)+e[3]}function T(e,t,i,o,s){const a=(0,r.Om)(e,i),l=M(e,t);if(0===a)return l>=0?2:3;let c=-l/a;return 1&o&&(c=(0,n.qE)(c,0,1)),!(4&o)&&c<0||!(8&o)&&c>1?l>=0?2:3:((0,r.WQ)(s,t,(0,r.hs)(s,i,c)),l>=0?0:1)}const x=[0,0,1,0];(0,o.vt)()},44280(e,t,i){i.d(t,{g7:()=>a,gr:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e,t){return(0,r.Om)(e,t)/(0,r.Bw)(e)}function a(e,t){const i=(0,r.Om)(e,t)/((0,r.Bw)(e)*(0,r.Bw)(t));return-(0,n.XM)(i)}(0,o.vt)(),(0,o.vt)()},32114(e,t,i){i.d(t,{Rc:()=>p,rq:()=>h,Km:()=>d}),i(44208);var n=i(26390),r=i(29242),o=i(9093),s=i(82534),a=i(48163),l=i(51850),c=i(91829);class u{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new u(a.vt)}static createVec3f64(){return new u(l.vt)}static createVec4f64(){return new u(c.vt)}static createMat3f64(){return new u(r.vt)}static createMat4f64(){return new u(o.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const h=u.createVec3f64(),d=u.createVec4f64(),p=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},97770(e,t,i){i.d(t,{Ey:()=>I,F8:()=>O,J2:()=>S,Yq:()=>R,_m:()=>D,iS:()=>Z,wj:()=>E});var n=i(66552),r=i(73444),o=i(98623),s=i(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},f={...m,second:"numeric"},g={hourCycle:"h23"},y={...m,...g},v={...f,...g},w={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...f},"short-date-long-time-24":{...u,...v},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...f},"short-date-le-long-time-24":{...u,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...m},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...m},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...f},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":f},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),C={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function T(){const e=(0,r.lR)();return(e&&C[e])??(0,r.QC)()}"mart"!==M&&(C.bs="sr-Latn-CS");let x=new WeakMap;const A=w["short-date-short-time"];function S(e){return w[e]}function D(e){const{dateStyle:t,timeStyle:i,hour12:n,year:r,month:o}=e,s={};return t?s.dateStyle=t:r&&(s.year=r,s.month=o||void 0),i&&!s.year&&(s.timeStyle=i,s.hour12="auto"===n?void 0:"always"===n),s}function R(e,t=A){return function(e){let t=x.get(e);if(!t){const i=T(),n=E(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),x.set(e,t)}return t}(t).format(e)}function Z(e,t=A){return R(new Date(e),{...t,...c,...l})}function O(e,t=A){return R(new Date(`1970-01-01T${e}Z`),{...t,...c,...a})}function I(e,t=A){const i=s.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return R(i.toJSDate(),t);const n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:T()})}function E(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,r.Ml)(()=>{x=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>g,QC:()=>h,lR:()=>u,oQ:()=>m});var n=i(36563);let r;i(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){const e=s?.getAttribute("lang"),t=globalThis.navigator?.language;return o??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return c.exec(e)?.groups}const p=[];function m(e){return p.push(e),(0,n.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const f=[];function g(e){return f.push(e),(0,n.hA)(()=>f.splice(f.indexOf(e),1))}function y(){const e=a();r!==e&&([...f].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),s&&new MutationObserver(()=>{y()}).observe(s,{attributeFilter:["lang"]})},38732(e,t,i){i.r(t),i.d(t,{default:()=>x});var n=i(32198),r=i(11254),o=i(49186),s=i(97768),a=i(25728),l=i(17676),c=i(84952),u=i(91429),h=i(54239),d=i(4146),p=i(89186),m=i(18768),f=i(34287),g=i(8303),y=i(10873),v=i(87378),w=i(35982);class b extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(C.forEach((e,t)=>{e===this&&C.delete(t)}),this.destroy())}}const C=new Map;var _=i(36005);let M=class extends((0,p.f)((0,m.b)((0,f.q)((0,g.A)((0,a.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=C.get(e);return t||(null!=e?(t=new b(t=>e.immediate.schedule(t)),C.set(e,t)):(t=new b,C.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,s.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,n){const s=n?.signal,a={responseType:"array-buffer",signal:s,useQueue:n?.useQueue,priority:n?.priority},l={noDataValue:n?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,n);const c=await(0,r.A)(this.getTileUrl(e,t,i),a),u=await this._lercDecoder.decode(c.data,l,s);if(!u)throw new o.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:u.pixelData,width:u.width,height:u.height,noDataValue:u.noDataValue})}getTileUrl(e,t,i){const n=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,c.x0)({...this.parsedUrl.query,blankTile:!n&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${r?"?"+r:""}`}async queryElevation(e,t){const{query:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}async createElevationSampler(e,t){const{createSampler:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}_fetchTileAvailability(e,t,i,n){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,n):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,r.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[T]}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],M.prototype,"capabilities",void 0),(0,n.Cg)([(0,_.w)("service","capabilities",["capabilities"])],M.prototype,"readCapabilities",null),(0,n.Cg)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],M.prototype,"copyright",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0,type:h.A})],M.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],M.prototype,"path",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"minScale",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],M.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],M.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],M.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,u.MZ)(y.OZ)],M.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"version",void 0),(0,n.Cg)([(0,_.w)("version",["currentVersion"])],M.prototype,"readVersion",null),M=(0,n.Cg)([(0,u.$K)("esri.layers.ElevationLayer")],M);const T=Symbol("default-fetch-tile");M.prototype.fetchTile[T]=!0;const x=M},4146(e,t,i){i.d(t,{A:()=>v});var n=i(32198),r=i(11254),o=i(49186),s=i(65529),a=i(4902),l=i(92474),c=i(53966),u=i(17676),h=i(84952),d=i(91429),p=i(5443),m=i(16930),f=i(92602),g=i(79677);let y=0,v=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([i.e(9917),i.e(812),i.e(9362)]).then(i.bind(i,45613));try{return await n(t)}catch(e){const i=t?.portalItem,n=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,d.$K)("esri.layers.Layer")],v)},89186(e,t,i){var n=i(32198),r=i(91429),o=i(16930),s=i(87045),a=i(65509),l=i(25943),c=i(36005);i.d(t,["f",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const n=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:o,minScale:c,maxScale:u}=t;if(null==r&&null==o&&(0!==c||0!==u)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),u=e(u||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);r=t>=c?i.level:r,o=t>=u?i.level:o}}if(n)return new l.d({layer:this,minLOD:r,maxLOD:o});if(t.tileInfo){const e=new s.A;return e.read(t.tileInfo,i),new a.A(e,r,o)}return null}};return(0,n.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,n.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,n.Cg)([(0,r.MZ)({type:o.A})],i.prototype,"spatialReference",void 0),(0,n.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,n.Cg)([(0,r.MZ)({type:s.A})],i.prototype,"tileInfo",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,n.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},63490(e,t,i){i.d(t,{Mr:()=>l,TH:()=>a});var n=i(32198),r=i(69540),o=i(25482),s=i(91429);let a=class extends((0,r.OU)(o.o)){constructor(){super(...arguments),this.url=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.constantElevation=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),i.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,i){i.d(t,{eR:()=>_,Qv:()=>R,fs:()=>x,Yp:()=>Z,o:()=>O,RR:()=>M,l6:()=>T});var n=i(66552),r=(i(86211),i(28735),i(32198)),o=i(69540),s=i(25482),a=i(91429),l=i(69622),c=i(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,c.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,c.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const h=u;let d=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let m=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${i}|${n}|${r}|${s.join("|")}`}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"latitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"longitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"ellipsoidRadius",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"squaredEccentricity",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"properties",void 0),m=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],m);const f=m;let g=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,b=new Map;b.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),b.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),b.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),b.set("4",{desc:"Using Local Tangent Plane",constructor:f});var C=i(63490);function _(e,t,i){return e?(0,C.E1)(e)?new C.Mr(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new C.TH({...e,url:n})):null}(e,t,i):e}const M=new n.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),T=new n.J({Feet:"feet",Meter:"meter"}),x=new n.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("3",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("2",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("4",function(e){const[t,i,n,r,o,...s]=e.slice(1),a=A.get(o),l=b.get(o)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:new l(a([o,"",...s]))}:null});const S=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function D(e,t,i,n,r){const o=S(e),s=S(t),a=S(i),l=S(n);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function R(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function Z(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function O(e,t,i){const n=function(e,t){return e?.length?e.map(({field:e,order:i})=>{const n=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return n?{fieldName:n.name,sortOrder:"desc"===i?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(i,t);if(n?.length)return n;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const r=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return r?[{fieldName:r.name,sortOrder:"asc"}]:null}},39357(e,t,i){i.d(t,{A:()=>a});var n,r=i(32198),o=i(25482),s=i(91429);let a=n=class extends o.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,i){i.d(t,{A:()=>u});var n,r=i(32198),o=i(4718),s=i(91429),a=i(39357),l=i(76357),c=i(93223);let u=class extends l.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some(e=>(String(e.code)===i&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,s.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,r.Cg)([(0,c.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,i){i.d(t,{A:()=>c});var n=i(32198),r=i(66552),o=i(25482),s=i(91429),a=i(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends o.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n.Cg)([(0,s.$K)("esri.layers.support.Domain")],c)},90091(e,t,i){i.d(t,{createSampler:()=>R,query:()=>D});var n=i(60999),r=i(49186),o=i(97768),s=i(17676),a=i(86211),l=i(99917),c=i(19419),u=i(4576),h=i(72802);class d{constructor(e,t){this.layer=e,this.parameters=t}}class p extends d{constructor(e,t,i){super(e,i),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(n,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const i=t.tile?.id;t.tile=i?e[i]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends d{constructor(e,t,i,n){super(e,i),this.maskExtents=n,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const i=this._maximumLodForRequests(t),n=Math.min(i,e);n<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(n)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i);if(!e)return n.length-1;const r=this.extent;if(null==r)return-1;for(let i=n.length-1;i>=0;i--){const o=n[i],s=o.resolution*t.size[0],a=o.resolution*t.size[1];if(Math.ceil(r.width/s)*Math.ceil(r.height/a)<=e)return i}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const i=t.id&&e[t.id];i&&(this._fetchedCandidates.add(t),this.elevationTiles.push(i))}}remapTiles(e){this._candidateTiles=y(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const i=this._candidateTiles;this._candidateTiles=[],i.forEach(i=>{if(this._fetchedCandidates.has(i))return void t?.(i);let n=!1;e(i,()=>n=!0),n?t?.(i):this._candidateTiles.push(i)}),this._candidateTiles=y(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:i,tilemapCache:n}=this.layer,r=g(i,n)[e],o=i.tileAt(r.level,t.xmin,t.ymin),s=o.extent,a=r.resolution*i.size[0],l=r.resolution*i.size[1],c=Math.ceil((t.xmax-s[0])/a),u=Math.ceil((t.ymax-s[1])/l);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const n=new h.U(o.level,o.row-e,o.col+t);i.updateTileInfo(n),this._tileIsMasked(n)||this._candidateTiles.push(n)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function f(e){return null!=e?.tileInfo}function g(e,t){const i=e.lods;if(f(t)){const{effectiveMinLOD:e,effectiveMaxLOD:n}=t;return i.filter(t=>t.level>=e&&t.level<=n)}return i}function y(e,t){const i={},n=[];for(const r of e){const e=r.id;e&&!i[e]?(i[e]=r,n.push(r)):t?.(r)}const r=n.sort((e,t)=>e.level-t.level);return r.filter((e,i)=>{for(let n=0;n<i;n++){const i=r[n].extent;if(i&&(0,c.gR)(i,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const i=e.extent;this._samplerData=new v(t,i)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:i,data:n,dx:r,dy:o,y1:s,x0:a}=this._samplerData,{width:l,values:c,noDataValue:u}=n,h=b(o*(s-t),0,i),d=b(r*(e-a),0,i),p=Math.floor(h),m=Math.floor(d),f=p*l+m,g=f+l,y=c[f],v=c[g],w=c[f+1],C=c[g+1];if(y!==u&&v!==u&&w!==u&&C!==u){const e=d-m,t=y+(w-y)*e;return t+(v+(C-v)*e-t)*(h-p)}}}function b(e,t,i){return e<t?t:e>i?i:e}var C=i(87378),_=i(48526),M=i(86738),T=i(82799);class x{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new x(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,l.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const i=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,l.project)(i,e);if(!n)return null;const r=this.coordinates.map((e,t)=>{const i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),o=this.clone(r);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,l.project)(t,e);if(!i)return null;const n=this.coordinates.map((e,t)=>{const n=e.clone(),r=i.points[t];return n.x=r[0],n.y=r[1],n}),r=this.clone(n);return r.spatialReference=e,r}static fromGeometry(e){const t=new x(e);if(e instanceof x)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,i)=>{const n=e.clone(t);return n.spatialReference=i,n},t;switch(e.type){case"point":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?[new A(i.x,i.y,i.z,i.m)]:n?[new A(i.x,i.y,i.z)]:r?[new A(i.x,i.y,null,i.m)]:[new A(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new M.A(t[0].x,t[0].y,t[0].z,t[0].m,i):new M.A(t[0].x,t[0].y,t[0].z,i),t}case"multipoint":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?i.points.map(e=>new A(e[0],e[1],e[2],e[3])):n?i.points.map(e=>new A(e[0],e[1],e[2])):r?i.points.map(e=>new A(e[0],e[1],null,e[2])):i.points.map(e=>new A(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new _.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new _.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{const i=e,n=[],r=[],{hasZ:o,hasM:s}=e;let a=0;for(const e of i.paths)if(r.push([a,a+e.length]),a+=e.length,o&&s)for(const t of e)n.push(new A(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)n.push(new A(t[0],t[1],t[2]));else if(s)for(const t of e)n.push(new A(t[0],t[1],null,t[2]));else for(const t of e)n.push(new A(t[0],t[1]));return t.coordinates=n,t._exporter=(t,i)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=r.map(e=>n.slice(e[0],e[1]));return new T.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class A{constructor(e,t,i=null,n=null,r=null,o=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=r,this.elevationTile=o}clone(){return new A(this.x,this.y,this.z,this.m)}}var S=i(57984);async function D(e,t,i){if(!e)throw new r.A(P,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new r.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const n={...z,...i},s=n.signal;if("integrated-mesh-3dtiles"===e.type){const r=x.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const o=12.9*(i?.minDemResolution||0)+.71,a=await e.queryElevationCallback(r,{signal:s,maxGeometricError:o}),l=r.coordinates.map(()=>({demResolution:1,source:e})),c=await a.project(t.spatialReference,s);if(c){if(void 0!==n.noDataValue&&n.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=n.noDataValue);return{geometry:c.export(),noDataValue:n.noDataValue??Number.MAX_VALUE,sampleInfo:l}}}const o=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}const c=new p(e,t.spatialReference,n);return await e.load({signal:s}),await async function(e,t,i){let n;const o=e.layer.tileInfo.spatialReference;if(t instanceof x?n=await t.project(o,i):(await(0,l.initializeProjection)([{source:t.spatialReference,dest:o}],{signal:i}),n=(0,l.project)(t,o)),!n)throw new r.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);e.geometry=x.fromGeometry(n)}(c,t,s),await I(c,s),await N(c,s),function(e){e.geometry.coordinates.forEach(t=>{const i=t.elevationTile;let n=e.parameters.noDataValue;if(i){const e=i.sample(t.x,t.y);null==e?t.elevationTile=null:n=e}t.z=n})}(c),async function(e,t){const i=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(i);const n={geometry:i.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(n.sampleInfo=function(e){const t=e.layer.tileInfo,i=(0,a.GA)(t.spatialReference);return e.geometry.coordinates.map(n=>{let r=-1;return n.elevationTile&&n.elevationTile!==e.outsideExtentTile&&(r=t.lodAt(n.elevationTile.key.level).resolution*i),{demResolution:r,source:-1===r?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),n}(c,s)}async function R(e,t,i){if(e=Array.isArray(e)?e:[e],0===(e=i?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new r.A(P,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new r.A("elevation-query:invalid-extent","Invalid or undefined extent");const n={...z,...i,returnSampleInfo:!0},o=Z(e[e.length-1],t,n);return 1===e.length?o:O(e,t,await o,n)}async function Z(e,t,i,n){const r=i.signal;await e.load({signal:r});const o=t.spatialReference,s=e.tileInfo.spatialReference;o.equals(s)||(await(0,l.initializeProjection)([{source:o,dest:s}],{signal:r}),t=(0,l.project)(t,s));const a=new m(e,t,i,n);await I(a,r),await N(a,r);const c=a.elevationTiles,u=a.layer.tileInfo,h=a.parameters.noDataValue;return new S.C({noDataValue:h,tiles:c,tileInfo:u})}async function O(e,t,i,n){if(e.pop(),!e.length)return i;const r=i.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),o=await Z(e[e.length-1],t,n,r);if(0===o.samplers.length)return i;const s=i.samplers.concat(o.samplers),a=n.noDataValue;return O(e,t,new S.C({samplers:s,noDataValue:a}),n)}async function I(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const i=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const n=e.x,r=e.y;(n<i.xmin||n>i.xmax||r<i.ymin||r>i.ymax)&&(e.elevationTile=t)})}(e);const i=e.parameters.demResolution;if("number"==typeof i)!function(e,t){const i=function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=t/(0,a.GA)(i.spatialReference),o=g(i,n);let s=o[0],l=0;for(let e=1;e<o.length;e++){const t=o[e];Math.abs(t.resolution-r)<Math.abs(s.resolution-r)&&(s=t,l=e)}return l}(e,t);e.selectTilesAtLOD(i)}(e,i);else if("finest-contiguous"===i)await async function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=j(i,n,e.parameters.minDemResolution);await E(e,r,t)}(e,t);else{if("auto"!==i)throw new r.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:i}=e.layer,n=j(t,i,e.parameters.minDemResolution);e.selectTilesAtLOD(n,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let i=0;const n={},r=e=>{null!=e.id&&(e.id in n?n[e.id]++:(n[e.id]=1,i++))},o=e=>{if(null==e.id)return;const t=n[e.id];1===t?(delete n[e.id],i--):n[e.id]=t-1};e.forEachTileToFetch(r,o);let s=!0;for(;s&&(s=!1,e.forEachTileToFetch(n=>{i<=e.parameters.maximumAutoTileRequests||(o(n),t.upsampleTile(n)&&(s=!0),r(n))},o),s););}(e);const i=e.layer.tilemapCache;if(!i||f(i))return L(e,t);const r=e.getTilesToFetch(),o={},a=r.map(async e=>{const r=new h.U(0,0,0),a=await(0,n.Ke)(i.fetchAvailabilityUpsample(e.level,e.row,e.col,r,{signal:t}));!1!==a.ok?null!=e.id&&(o[e.id]=r):(0,s.QP)(a.error)});await(0,s.qr)(Promise.all(a),t),e.remapTiles(o)}(e,t)}}async function E(e,t,i){const n=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const o=n.tilemapCache,a=e.getTilesToFetch();try{if(o&&!f(o))await(0,s.qr)(Promise.all(a.map(e=>o.fetchAvailability(e.level,e.row,e.col,{signal:i}))),i);else if(await N(e,i),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new r.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(n){(0,s.QP)(n),await E(e,t-1,i)}}async function L(e,t){const i=e.layer.tileInfo;await N(e,t);let n=!1;e.forEachTileToFetch((e,t)=>{i.upsampleTile(e)?n=!0:t()}),n&&await L(e,t)}function j(e,t,i=0){const n=g(e,t);let r=n.length-1;if(i>0){const t=i/(0,a.GA)(e.spatialReference),o=n.findIndex(e=>e.resolution<t);0===o?r=0:o>0&&(r=o-1)}return r}const z={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function N(e,t){const i=e.getTilesToFetch(),n={},r=e.parameters.cache,o=e.parameters.noDataValue,a={noDataValue:o,signal:t},l=i.map(async t=>{if(null==t.id)return;const i=`${e.layer.uid}:${t.id}:${o}`,s=r?.get(i),l=s??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,a));r?.put(i,l),n[t.id]=new w(t,l)});await(0,s.qr)(Promise.allSettled(l),t),e.populateElevationTiles(n)}const P="elevation-query:invalid-layer"},7236(e,t,i){i.d(t,{A:()=>c});var n=i(32198),r=i(65529),o=i(53966),s=i(91429),a=i(86738),l=i(28735);let c=class extends r.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,i){return e.hasZ=!0,e.z=i.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.paths.length;r++){const o=e.paths[r],s=t.paths[r];for(let e=0;e<o.length;e++){const t=o[e],r=s[e];u.x=r[0],u.y=r[1],n&&(t[3]=t[2]),t[2]=i.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.points.length;r++){const o=e.points[r],s=t.points[r];u.x=s[0],u.y=s[1],n&&(o[3]=o[2]),o[2]=i.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const i=e.spatialReference;if(i.equals(t))return e;const n=(0,l.Cv)(e,t);return n||o.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${i.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),n}};c=(0,n.Cg)([(0,s.$K)("esri.layers.support.ElevationSampler")],c);const u=new a.A},87378(e,t,i){i.d(t,{A:()=>a});var n,r=i(34275),o=i(56507);const s=Symbol("ElevationTileDataClass");class a{static{n=s}constructor({values:e,width:t,height:i,noDataValue:o}){this[n]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=o}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,n=-1/0,r=!0;for(const o of t)o===e?this._hasNoDataValues=!0:(i=o<i?o:i,n=o>n?o:n,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=n>-3e38?n:0)}static{this.from=(0,o.qf)(a)}}},20437(e,t,i){i.d(t,{A:()=>m});var n,r=i(32198),o=i(66552),s=i(25482),a=i(91429),l=i(56507),c=i(8631),u=i(98453),h=i(36005),d=i(93223);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let m=class extends s.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?p.fromJSON(i.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],m.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:c.g,json:{read:{reader:c.r},write:!0}})],m.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(u.m)],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},41628(e,t,i){i.d(t,{A:()=>l});var n,r=i(32198),o=i(91429),s=i(76357),a=i(93223);let l=class extends s.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,r.Cg)([(0,o.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,i){i.d(t,{C:()=>u});var n=i(32198),r=i(53966),o=i(86211),s=i(91429),a=i(16930),l=i(19419),c=i(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,i="tiles"in e?e.tiles.map(i=>new h({tile:i,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:i});const n=i[0];if(n){this.extent=n.extent.clone();const{min:e,max:t}=n.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<i.length;e++){const t=i[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let i;for(const n of this.samplers)if(n.containsAt(e,t)&&(i=n.elevationAt(e,t),i!==n.noDataValue))return i;return null!=i?i:(r.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const i=(0,o.GA)(e.tileInfo.spatialReference),n=e.tileInfo.lodAt(e.tile.key.level).resolution*i;this.demResolution={min:n,max:n}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)},65509(e,t,i){i.d(t,{A:()=>o});var n=i(49186),r=i(17676);class o{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const n=this.tileInfo?.lodAt(e);return!n||e<this.minLOD||e>this.maxLOD?"unavailable":n.cols&&n.rows?i>=n.cols[0]&&i<=n.cols[1]&&t>=n.rows[0]&&t<=n.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,o){await(0,r.NO)(o);const s=this.getAvailability(e,t,i);if("unavailable"===s)throw new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return s}async fetchAvailabilityUpsample(e,t,i,n,o){await(0,r.NO)(o),n.level=e,n.row=t,n.col=i;const s=this.tileInfo;return s.updateTileInfo(n),this.fetchAvailability(e,t,i,o).catch(e=>{if((0,r.zf)(e))throw e;if(s.upsampleTile(n))return this.fetchAvailabilityUpsample(n.level,n.row,n.col,n,o);throw e})}}},8631(e,t,i){i.d(t,{r:()=>d,g:()=>h});var n,r=i(53177),o=i(76357),s=i(32198),a=i(91429),l=i(93223);let c=class extends o.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s.Cg)([(0,l.e)({inherited:"inherited"})],c.prototype,"type",void 0),c=n=(0,s.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],c);var u=i(41628);const h={key:"type",base:o.A,typeMap:{range:u.A,"coded-value":r.A,inherited:c}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453(e,t,i){const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,n])},77548(e,t,i){i.d(t,{Gh:()=>O,tk:()=>A,BR:()=>x,p2:()=>M,qd:()=>S,wI:()=>T,G$:()=>R,$x:()=>D,Ov:()=>w,cM:()=>d,UC:()=>p,Qz:()=>m,OP:()=>Z,TU:()=>v,F2:()=>f,XX:()=>y,Qi:()=>b,jy:()=>C});var n=i(70333),r=i(11254),o=i(7762),s=(i(84952),i(36563)),a=i(36708),l=i(4146);const c=new WeakMap;function u(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>c.set(e,t),a.pc),(0,s.hA)(()=>c.delete(e))]),c.get(e))}function h(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return h(e,"knowledge-graph")&&"layers"in e}function p(e){return h(e,"knowledge-graph-sublayer")}function m(e){return h(e,"link-chart")&&"layers"in e}function f(e){return h(e,"subtype-group")&&"sublayers"in e}function g(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}i(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return h(e,"catalog-footprint")}(e)||function(e){return h(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return h(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function _(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!C(e))return;const i=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(i){if(i.isAggregate){const e=i.origin;return e&&"featureReductionProvider"in e&&n?_(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?_(n)?n:null:e}async function T(e,t){const i=n.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,r.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function S(e){const t=new o.A;for(const i of e.allLayers.concat(e.allTables))u(i)||g(i)||"annotation-feature"===i.type||"dimension-feature"===i.type||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function D(e,t){return null}function R(e){return null}function Z(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function O(e,t){if(!t||!Z(e))return;const i=(e.url,null);i&&(e.url=i)}},38969(e,t,i){i.d(t,{i:()=>r});var n=i(37955);function r(e,t){return new Promise((i,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?i():(t((0,n.Oo)(e,"canplay",i)),t((0,n.Oo)(e,"error",r)))})}},73133(e,t,i){const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(t,["j",0,n])},7861(e,t,i){i.d(t,{L:()=>r});var n=i(11254);async function r(e,t){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,i){i.d(t,{S:()=>r});const n=Symbol("BasemapInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}i.d(t,["Y",0,n])},79677(e,t,i){i.d(t,{A:()=>h});var n,r=i(32198),o=i(25482),s=i(88930),a=i(91429),l=(i(98623),i(10184)),c=i(36005),u=i(43937);let h=class extends o.o{static{n=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===n&&i===r}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let i=this.start;i&&(i=(0,s.lL)(i,new l.A({value:1,unit:e}),t));let r=this.end;if(r){const i=(0,s.lL)(r,new l.A({value:1,unit:e}),t);r=r.getTime()===i.getTime()?i:(0,s.S1)(i,1,e,t)}return new n({start:i,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return r>=t&&r<=i?s=r:t>=r&&t<=o&&(s=t),i>=r&&i<=o?a=i:o>=t&&o<=i&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?n.empty:new n({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,i="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new n,{start:o,end:a}=this;return null!=o&&(r.start=(0,s.S1)(o,e,t,i)),null!=a&&(r.end=(0,s.S1)(a,e,t,i)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:i})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,r.Cg)([(0,c.w)("end")],h.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],h.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,r.Cg)([(0,c.w)("start")],h.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],h.prototype,"writeStart",null),h=n=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],h);const d=new h,p=new h({start:void 0,end:void 0})},10184(e,t,i){i.d(t,{A:()=>u});var n=i(32198),r=i(69540),o=i(25482),s=i(88930),a=i(91429),l=i(73133),c=i(93223);let u=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,c.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},68747(e,t,i){i.r(t),i.d(t,{generateCombinationsPanoramicWorker:()=>x,generateCombinationsWorker:()=>T});var n=i(34727),r=i(17676);i(17799),i(69052),i(799),i(86211),i(18047),new Map,i(77690),i(29242),i(51850),i(37585),i(35522);var o=i(49186),s=(i(56507),i(86738),i(39829),i(82799),i(16930));i(34403),i(21325),i(99917),i(65708),i(49590),i(27749),i(39663),i(7817),i(10222),i(4576),i(63490),i(87811);var a=i(53966),l=(i(44208),i(27921),i(5443));i(83276),i(19419),i(38732),i(87772),i(23281),i(90091),i(87378),i(22796),i(57984),i(87045),i(72802),i(7861);const c=[1920,1080],u={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},h=(s.A.fromJSON(u.spatialReference),.001);new l.A({xmin:u.xmin+h,ymin:u.ymin+h,xmax:u.xmax-h,ymax:u.ymax-h,spatialReference:u.spatialReference}),(0,n.KJ)(Math.acos(.05));var d=i(32198),p=i(97768),m=i(61893),f=i(10107),g=i(64108);let y=class extends m.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;const{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};const{url:t,customParameters:n}=this;let o=this.datasetFormat;if(!t)throw new Error("URL is required to load NonPanoramicMedia.");const s=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),o||(o=s.guessExtensionFromURI(t)),!o){try{o=await s.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,r.Te)(e)}o??="UNKNOWN FORMAT",this.datasetFormat=o;const l=(await Promise.all([i.e(2754),i.e(9235),i.e(3500),i.e(1003),i.e(2806),i.e(124)]).then(i.bind(i,90124))).default;(0,r.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:o},customParameters:n??void 0});const c=this._cache.load(e);return this.addResolvingPromise(c),await c,(0,r.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,f.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,f.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=i(37955),w=i(38969);class b extends o.A{constructor(e,t,i){super(e,t,i),this.name="unknown",this.name=e}}const C=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),_=new Set(["MRF","TIFF","TIF"]);let M=class extends m.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){const{matrix:e}=this;return e?(0,n.KJ)(Math.asin(-e[6])):0}get horizonRoll(){const{matrix:e}=this;return e?(0,n.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){const{matrix:e,cameraHeading:t}=this;return e?(0,n.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){const{guessExtensionFromURI:t}=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let n=this.extension;if(n||(n=t(this.url)),!n||!C.has(n))throw new b("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:n??"UNKNOWN FORMAT"});return _.has(n)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){const{loadMeshes:t,loadPyramid:n,loadRaster:o}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060)),s=await o(this.url,e);(0,r.Te)(e),this.imagePyramid=await n(s,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,r.Te)(e);const a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,r.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media,this._size=[...c];const o=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:o,size:this._size}}async loadImageMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media;const o=n.mesh;return this._size=[n.media.width,n.media.height],{meshOrMeshes:o,size:this._size}}async _resolveMedia(e){const t=Promise.withResolvers(),n=(0,r.u7)(e?.signal,t.resolve),o="video"===this.type?document.createElement("video"):document.createElement("img");o.crossOrigin="anonymous",o.src=this.url;let s=null;const a="video"===this.type?(0,w.i)(o,this.addHandles):await new Promise((e,t)=>{s=[(0,v.on)(o,"error",e=>{t(e)}),(0,v.on)(o,"load",e)]}).finally(()=>{s?.forEach(e=>e.remove()),s=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{n?.remove()}(0,r.Te)(e);const c=o;if(!c)throw new b("unknown","Could not load media",{url:this.url});const{createImageSphere:u}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));(0,r.Te)(e);const h=await u({data:o,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{media:c,mesh:h}}};function T(e){return function(e,t){const{cameraPitch:i,cameraRoll:n,cameraLocation:r}=e,{x:o,y:s,z:a,spatialReference:l}=r;if(t.every(e=>0===e)||!t||!t.length||!l)throw new Error("Invalid parameters");const[c,u,,h,d]=t,p=[-h,0,h],m=[-d,0,d],f=[-c,0,c],g=[-u,0,u],y=[];for(const t of p)for(const r of m)for(const c of f)for(const u of f)for(const h of g){const d={...e};d.cameraPitch=i+t,d.cameraRoll=n+r,d.cameraLocation={x:o+c,y:s+u,z:a?a+h:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function x(e){return function(e,t){const{cameraHeading:i,cameraLocation:n}=e,{x:r,y:o,z:s,spatialReference:a}=n;if(!t||t.every(e=>0===e)||!t.length||!a)throw new Error("Invalid parameters");const[l,c,u]=t,h=u>0?[-u,0,u]:[],d=l>0?[-l,0,l]:[],p=c>0?[-c,0,c]:[],m=[];for(const t of h)for(const n of d)for(const l of d)for(const c of p){const u={...e};u.cameraHeading=i+t,u.cameraLocation={x:r+n,y:o+l,z:s?s+c:0,spatialReference:{wkid:a.wkid}},m.push(u)}return m}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,f.MZ)()],M.prototype,"_size",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"extension",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonPitch",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonRoll",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonYaw",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"id",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"matrix",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"size",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"type",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"uiStrings",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"url",void 0),M=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],M),i(9093),i(91829),i(58083),i(79258),i(73354),i(28208),i(28735)},28208(e,t,i){var n=i(86738),r=i(16930);const o=new n.A({x:0,y:0,z:0,spatialReference:r.A.WebMercator});i.d(t,["NU",0,.3515625,"ZH",0,o])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2585],{66344(t,i,e){e.d(i,{q:()=>o});const s=!!(0,e(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(t=10485760,i=.3){this._maxSize=t,this._maxClientSizeRatio=i,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(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,i){const e=this._db.get(t.id+i);return e?.size??0}put(t,i,e,n,h){i=t.id+i;const o=this._db.get(i);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(i),o.entry!==e&&this._notifyRemove(i,o.entry,o.size,0)),n>this._maxSize)return void this._notifyRemove(i,e,n,0);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return s||console.warn(`Refusing to cache entry with size ${n} for key ${i}`),void this._notifyRemove(i,e,0,0);const c=1+Math.max(h,-4)- -3;this._db.set(i,new r(e,n,c)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,i){i=t.id+i;const e=this._db.get(i);if(!e)return;this._size-=e.size,t.size-=e.size;let s=e.entry.usedMemory;for(;s>this._maxSize;){const t=this._notifyRemove(i,e.entry,s,1);if(!(null!=t&&t>0))return void this._db.delete(i);s=t}e.size=s,this._size+=s,t.size+=s,this._checkSize()}pop(t,i){i=t.id+i;const e=this._db.get(i);if(e)return this._size-=e.size,t.size-=e.size,this._db.delete(i),++this._hit,e.entry;++this._miss}get(t,i){i=t.id+i;const e=this._db.get(i);if(void 0!==e)return this._db.delete(i),e.lives=e.lifetime,this._db.set(i,e),++this._hit,e.entry;++this._miss}peek(t,i){const e=this._db.get(t.id+i);return e?++this._hit:++this._miss,e?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},i={},e=new Array;this._db.forEach((t,s)=>{const n=t.lifetime;e[n]=(e[n]||0)+t.size,this._clients.forEach(e=>{const{id:n,name:r}=e;if(s.startsWith(n)){const e=i[r]||0;i[r]=e+t.size}})});const s={};this._clients.forEach(t=>{const e=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=i[e]||0;i[e]=n,s[e]=Math.round(100*t.hitRate)+"%"}else s[e]="0%"});const n=Object.keys(i);n.sort((t,e)=>i[e]-i[t]),n.forEach(e=>t[e]=Math.round(i[e]/2**20)+"MB / "+s[e]);for(let i=e.length-1;i>=0;--i){const s=e[i];s&&(t["Priority "+(i+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const i=t.id;this._db.forEach((t,e)=>{e.startsWith(i)&&(this._size-=t.size,this._db.delete(e),this._notifyRemove(e,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,i)=>this._notifyRemove(i,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[i,e]of this._db)i.startsWith(t.id)&&(yield e.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,i,e,s){const n=this._clients.get(t.split(h)[0])?.removeFunc,r=n?.(i,s,e);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,i)=>this._checkSizeLimits(t,i)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,i){null==i||i<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,i)}_checkSizeLimits(t,i){const e=i??this;if(e.size<=t)return;const s=i?.id;let n=!0;for(;n;){n=!1;for(const[r,o]of this._db)if(0===o.lifetime&&(!s||r.startsWith(s))){const s=i??this._clients.get(r.split(h)[0]);if(this._purgeItem(r,o,s),e.size<=.9*t)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!s||n.startsWith(s)){const s=i??this._clients.get(n.split(h)[0]);if(this._purgeItem(n,r,s),e.size<=.9*t)return}}_purgeItem(t,i,e){if(this._db.delete(t),i.lives<=1){this._size-=i.size,e&&(e.size-=i.size);const s=this._notifyRemove(t,i.entry,i.size,1);null!=s&&s>0&&(this._size+=s,e&&(e.size+=s),i.lives=i.lifetime,i.size=s,this._db.set(t,i))}else--i.lives,this._db.set(t,i)}}new n(0);class r{constructor(t,i,e){this.entry=t,this.size=i,this.lifetime=e,this.lives=e}}const h=":";class o{constructor(t,i){this.removeFunc=i,this.id="",this.name="",this.size=0,this._storage=new n(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,i,e=1){this._storage.put(this,t,i,e,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},60408(t,i,e){function s(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function n(t){return void 0!==t.points}function r(t){return void 0!==t.x&&void 0!==t.y}function h(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function c(t){return"object"==typeof t&&"vertexAttributes"in t}function _(t){return t?r(t)?"esriGeometryPoint":h(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":s(t)?"esriGeometryEnvelope":n(t)?"esriGeometryMultipoint":null:null}function a(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(i,{$B:()=>_,Bi:()=>o,Pv:()=>a,Rg:()=>h,U9:()=>n,W0:()=>l,ZC:()=>s,fT:()=>r,uW:()=>c})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5399],{76553(e,t,i){function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}i.d(t,{H:()=>o})},13069(e,t,i){i.d(t,{AG:()=>a,lk:()=>r,vD:()=>n,yS:()=>s});const o="randomUUID"in crypto;function r(){if(o)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 s(){return`{${r().toUpperCase()}}`}function n(){return`{${r()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},60408(e,t,i){function o(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function n(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":n(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":o(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function d(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function p(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>d,Rg:()=>n,U9:()=>r,W0:()=>p,ZC:()=>o,fT:()=>s,uW:()=>l})},61528(e,t,i){i.r(t);var o=i(32198),r=i(11254),s=i(69540),n=i(49186),a=i(44208),l=i(53966),u=i(25728),d=i(17676),p=i(36708),h=i(91429),c=i(87024),y=i(5443),g=i(16930),f=i(4146),m=i(52136),v=i(18768),_=i(69208),S=i(34287),C=i(8303),M=i(25036),A=i(10873),T=i(58325),w=i(88546),x=i(20655),Z=i(24212),b=i(97159),R=i(16215),P=i(72772),G=i(98697),k=i(36005);let E=class extends((0,v.b)((0,S.q)((0,C.A)((0,M.j)((0,u.M)((0,_.d)((0,m.p)((0,s.OU)(f.A))))))))){readModifications(e,t,i){this._modificationsSource={url:(0,b.f)(e,i),context:i}}initialize(){this.addHandles([(0,p.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},p.OH),(0,p.wB)(()=>this.modifications,()=>this._modificationsGeneration++)])}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=w.Zx,this.fullExtent=w.zq,this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null,this._modificationsGeneration=0,this._simulateGoogleUrl=!1}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[w.Zx,this.esriCrsSpatialReference]:[w.Zx]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[w.zq,this.esriCrsFullExtent]:[w.zq]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[i,o]of Object.entries(e)){if("uri"===i)try{const e=new URL("https://tmp"+o).searchParams.get("session");if(e)return e}catch(e){}"object"==typeof o&&null!==o&&t.push(o)}}return null}async requestRootAndSession(e){const t=(e,t)=>new n.A("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((i,o)=>{this.url||o(t("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((e,i)=>{if(this.replacesTerrain&&!this._key){const o=this.portalItem?.portal||this.parent?.portalItem?.portal||x.A.getDefault();o.signIn().then(()=>{o.g3dTilesEnabled?(0,r.A)(o.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>i(t("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):i(t("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+o.url))},()=>i(t("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{(0,r.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(e){return void o(t("root-parse-failed","Error parsing root tile, details: "+e))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=(0,w.uB)(this._rootTilesetJSON),(0,w._8)(this._rootTilesetJSON)&&(this.esriCrsFullExtent=(0,w.uB)(this._rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference,this.spatialReference=this.esriCrsSpatialReference),i(),this._rootRequestPromise=null):o(t("root-is-null","Root tile is null."))},e=>{(0,d.QP)(e),o(t("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,l.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>o(e))})),this._rootRequestPromise}_haveWGS84ZModifications(e){for(const t of e){if(!t.geometry?.spatialReference)return!0;if(115700===t.geometry?.spatialReference.vcsWkid&&4326===t.geometry?.spatialReference.wkid)return!0}return!1}async _doLoad(e){const t=null!=e?e.signal:null;if(this.isUsedAsGroundLayer&&!(0,a.A)("enable-feature:basemap-groundlayers"))throw new n.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(e){(0,d.QP)(e)}if(null!=this._modificationsSource){const t=await T.A.fromUrl(this._modificationsSource.url,this.spatialReference,e,!0);if(this._haveWGS84ZModifications(t)){await(0,P.initialize)();try{const e=(0,G.Ir)(null,t.toArray(),g.A.WGS84),i=(0,P.switchMeshModificationPolygonVCSSync)({modifications:e,inVCS:115700});i.success&&i.modifications&&(0,G.H1)(i.modifications,t)}catch(e){l.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",e)}}this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}async beforeSave(){if(null==this._modificationsSource){const{modifications:e}=this;return void(e&&e.length>0&&await(0,P.initialize)())}await this.load().then(()=>{},()=>{})}get memoizedElevationQueryDependencies(){return[this.loadStatus,null!=this.queryElevationCallback,(0,Z.M7)(this.elevationInfo),this._modificationsGeneration]}get hasAttributionData(){return!1}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";(0,Z.XF)(l.A.getLogger(this),(0,Z.B)(t,"absolute-height",e)),(0,Z.XF)(l.A.getLogger(this),(0,Z.tW)(t,e))}get replacesTerrain(){return!!(0,a.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,R.S)(this.parent)}get hasGoogleUrl(){return this._simulateGoogleUrl||!!this.url?.match(/.+\.googleapis.com/)}get test(){}};(0,o.Cg)([(0,h.MZ)({type:["IntegratedMesh3DTilesLayer"]})],E.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,h.MZ)({type:T.A,clonable:e=>e?.clone()??null}),(0,c.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],E.prototype,"modifications",void 0),(0,o.Cg)([(0,h.MZ)({clonable:e=>e?{...e}:null})],E.prototype,"_modificationsSource",void 0),(0,o.Cg)([(0,k.w)(["web-scene","portal-item"],"modifications")],E.prototype,"readModifications",null),(0,o.Cg)([(0,h.MZ)({type:g.A})],E.prototype,"spatialReference",void 0),(0,o.Cg)([(0,h.MZ)({type:y.A})],E.prototype,"fullExtent",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"supportedSpatialReferences",null),(0,o.Cg)([(0,h.MZ)({type:[y.A]})],E.prototype,"fullExtents",null),(0,o.Cg)([(0,h.MZ)(A.Yj)],E.prototype,"elevationInfo",null),(0,o.Cg)([(0,h.MZ)({type:["show","hide"]})],E.prototype,"listMode",void 0),(0,o.Cg)([(0,h.MZ)(A.OZ)],E.prototype,"url",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"type",void 0),(0,o.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],E.prototype,"path",void 0),(0,o.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],E.prototype,"minScale",void 0),(0,o.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],E.prototype,"maxScale",void 0),(0,o.Cg)([(0,h.MZ)()],E.prototype,"queryElevationCallback",void 0),(0,o.Cg)([(0,h.MZ)()],E.prototype,"_modificationsGeneration",void 0),(0,o.Cg)([(0,h.MZ)()],E.prototype,"memoizedElevationQueryDependencies",null),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"hasAttributionData",null),(0,o.Cg)([(0,h.MZ)()],E.prototype,"replacesTerrain",null),(0,o.Cg)([(0,h.MZ)()],E.prototype,"isUsedAsGroundLayer",null),(0,o.Cg)([(0,h.MZ)()],E.prototype,"hasGoogleUrl",null),(0,o.Cg)([(0,h.MZ)()],E.prototype,"_simulateGoogleUrl",void 0),E=(0,o.Cg)([(0,h.$K)("esri.layers.IntegratedMesh3DTilesLayer")],E);const I=E;i.d(t,["default",0,I])},52136(e,t,i){var o=i(32198),r=i(91429);i.d(t,["p",0,e=>{const t=e;let i=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,o.Cg)([(0,r.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,o.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,8089],{86870(e,t,s){s.d(t,{B:()=>D,s:()=>p});var n,r,i=s(32198),o=s(55537),a=s(61691),m=s(95213),h=s(83661),l=s(88885),u=s(79187),c=s(11878),f=s(70007),g=s(39117),_=s(98783),d=s(64523);function p(e){return e>=0?e>h.k?h.k:e:0}function x(e,t,s,n,r,i){return{m_from:e.clone(),m_to:t.clone(),m_center:s.clone(),m_next:r,m_type:n}}function y(e,t,s,n,r){return{m_from:e.clone(),m_to:t.clone(),m_next:s,m_type:4,m_center:new h.P}}(r=n||(n={}))[r.enumDummy=256]="enumDummy",r[r.enumLine=1]="enumLine",r[r.enumArc=2]="enumArc",r[r.enumMiter=8]="enumMiter",r[r.enumBevel=16]="enumBevel",r[r.enumJoinMask=26]="enumJoinMask",r[r.enumConnectionMask=27]="enumConnectionMask";class P extends a.G{m_parent;m_index=0;m_bufferedPolygon=null;m_mp;m_spatialReference;m_distance;m_densifyDist;m_x=0;m_y=0;m_miterLimit;m_joins;m_caps;m_maxVertexInCompleteCircle;m_progressTracker;constructor(e,t,s,n,r,i,o,a,m,h){super(),this.m_progressTracker=h,this.m_parent=e,this.m_mp=t,this.m_distance=s,this.m_spatialReference=n,this.m_densifyDist=a,this.m_maxVertexInCompleteCircle=m,this.m_joins=r,this.m_caps=i,this.m_miterLimit=o}next(){const e=new m.P;for(;;){if(this.m_index===this.m_mp.getPointCount())return null;if(1===this.m_caps)return this.m_index=this.m_mp.getPointCount(),new l.P({vd:this.m_mp.getDescription()});if(this.m_mp.getPointByVal(this.m_index,e),this.m_index++,!e.isEmpty())break}let t,s=!1;if(null===this.m_bufferedPolygon&&(this.m_x=e.getX(),this.m_y=e.getY(),this.m_bufferedPolygon=this.m_parent.buffer(e,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle),s=!0),t=this.m_index<this.m_mp.getPointCount()?this.m_bufferedPolygon.clone():this.m_bufferedPolygon,!s){const s=new c.T,n=e.getX()-this.m_x,r=e.getY()-this.m_y;s.setShiftCoords(n,r),t.applyTransformation(s)}return(0,m.s)(t,0),t}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class C extends a.G{m_polyline;m_currentPathIndex=0;constructor(e){super(),this.m_polyline=e}next(){if(!this.m_polyline)return null;const e=this.m_polyline.getImpl(),t=e.getPathCount();if(this.m_currentPathIndex<t){const t=this.m_currentPathIndex;if(this.m_currentPathIndex++,!e.isClosedPathInXYPlane(t)){let s=e.getXY(e.getPathEnd(t)-1);for(;this.m_currentPathIndex<e.getPathCount();){const t=e.getXY(e.getPathStart(this.m_currentPathIndex));if(e.isClosedPathInXYPlane(this.m_currentPathIndex))break;if(!t.equals(s))break;s=e.getXY(e.getPathEnd(this.m_currentPathIndex)-1),this.m_currentPathIndex++}}if(0===t&&this.m_currentPathIndex===this.m_polyline.getPathCount()){const e=this.m_polyline;return this.m_polyline=null,e}const s=new l.a({vd:this.m_polyline.getDescription()});s.addPath(this.m_polyline,t,!0);for(let n=t+1;n<this.m_currentPathIndex;n++)s.addSegmentsFromPath(this.m_polyline,n,0,e.getSegmentCountPath(n),!1);return this.m_currentPathIndex===this.m_polyline.getPathCount()&&(this.m_polyline=null),s}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class b extends a.G{m_bufferer;m_geoms;m_geometry=null;m_index=0;m_bFilter;constructor(e,t,s){super(),this.m_bufferer=e,this.m_geoms=t,this.m_index=0,this.m_bFilter=s}next(){if(null===this.m_geometry&&(this.m_index=0,this.m_geometry=this.m_geoms.next(),!this.m_geometry))return null;const e=this.m_geometry.getImpl();if(this.m_index<e.getPathCount()){const e=this.m_index;return this.m_index++,this.m_bufferer.bufferPolylinePath(this.m_geometry,e,this.m_bFilter)}return this.m_geometry=null,this.next()}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class v extends a.G{m_bufferer;m_index=0;constructor(e){super(),this.m_bufferer=e}next(){const e=this.m_bufferer.m_geometry;if(this.m_index<e.getPathCount()){const t=this.m_index,s=e.calculateRingArea2D(this.m_index);for((0,o.g)(s>0),this.m_index++;this.m_index<e.getPathCount()&&!(e.calculateRingArea2D(this.m_index)>0);)this.m_index++;let n;return n=0===t&&this.m_index===e.getPathCount()?this.m_bufferer.bufferPolygonImpl(e,0,e.getPathCount()):this.m_bufferer.bufferPolygonImpl(e,t,this.m_index),n}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class D{m_geometry=null;m_densificator;m_bufferCommands=[];m_originalGeomType=o.G.enumUnknown;m_progressTracker;m_maxVertexInCompleteCircle=-1;m_circleTemplateSize=-1;m_oldCircleTemplateSize=0;m_spatialReference=null;m_tolerance=new m.C(0,0);m_smallTolerance=new m.C(0,0);m_filterTolerance=0;m_densifyDist=-1;m_distance=Number.NaN;m_absDistance=0;m_absDistanceReversed=0;m_dA=-1;m_miterLimit=4;m_joins=0;m_caps=0;m_bRoundBuffer=!0;m_bOutputLoops=!0;m_bFilter=!0;m_circleTemplate=[];m_leftStack=[];m_middleStack=[];m_helperLine1=new l.L;m_helperLine2=new l.L;m_helperArray=[];m_progressCounter=0;constructor(e){this.m_densificator=l.D.constructDefault(e),this.m_progressTracker=e}buffer(e,t,s,n,r,i,a,c){if(e||(0,o.a)("Geometry.Bufferer.Impl.Buffer"),a<0&&(0,o.a)("Geometry.Bufferer.Impl.Buffer"),(0,o.k)(e.getGeometryType())&&(0,o.t)("Unsupported geometry type."),e.isEmpty())return new l.P({vd:e.getDescription()});if(this.m_joins=n,this.m_caps=r,this.m_bRoundBuffer=!1,this.m_miterLimit=i,this.m_originalGeomType=e.getGeometryType(),(0,o.l)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_joins:(0,o.f)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_caps:(0,o.m)(this.m_originalGeomType)&&(this.m_bRoundBuffer=0===this.m_joins&&0===this.m_caps),this.m_bFilter=this.m_bRoundBuffer,this.m_geometry=(0,f.c)(e),this.m_geometry.isEmpty())return new l.P({vd:e.getDescription()});const g=new u.Envelope2D;this.m_geometry.queryLooseEnvelope(g),t>0&&g.inflateCoords(t,t),this.m_tolerance=(0,m.c)(s,g,!0),this.m_smallTolerance=(0,m.c)(null,g,!0),c<=0&&(c=96),this.m_spatialReference=s,this.m_distance=t,this.m_absDistance=Math.abs(this.m_distance),this.m_absDistanceReversed=0!==this.m_absDistance?1/this.m_absDistance:0,Number.isNaN(a)||0===a?a=1e-5*this.m_absDistance:a>.5*this.m_absDistance&&(a=.5*this.m_absDistance),c<12&&(c=12);const _=Math.abs(t)*(1-Math.cos(Math.PI/c));if(_>a)a=_;else if(0!==t){const e=Math.PI/Math.acos(1-a/Math.abs(t));e<c-1&&(c=Math.trunc(e))<12&&(c=12,a=Math.abs(t)*(1-Math.cos(Math.PI/c)))}this.m_densifyDist=a,this.m_maxVertexInCompleteCircle=c,this.m_filterTolerance=this.m_bRoundBuffer?Math.min(this.m_smallTolerance.total(),.25*this.m_densifyDist):0,this.m_circleTemplateSize=this.calcN(),this.m_circleTemplateSize!==this.m_oldCircleTemplateSize&&(this.m_circleTemplate.length=0,this.m_oldCircleTemplateSize=this.m_circleTemplateSize),this.m_densifyDist>0&&(0,o.n)(this.m_geometry)&&(this.m_geometry=this.m_densificator.densifyEx(this.m_geometry,0,this.m_densifyDist,0,0!==this.m_joins,(0,h.i)()));const d=this.bufferImpl();return this.m_geometry=null,d}generateCircleTemplate(){if(this.m_circleTemplate.length)return;const e=this.m_circleTemplateSize,t=Math.trunc((e+3)/4),s=.5*Math.PI/t;this.m_dA=s,this.m_circleTemplate=(0,h.m)(h.P,4*t);const n=Math.cos(s),r=Math.sin(s),i=h.P.construct(0,1);for(let e=0;e<t;e++)this.m_circleTemplate[e+0*t].setCoords(i.y,-i.x),this.m_circleTemplate[e+1*t].setCoords(-i.x,-i.y),this.m_circleTemplate[e+2*t].setCoords(-i.y,i.x),this.m_circleTemplate[e+3*t].setCoords(i.x,i.y),i.rotateReverse(n,r)}bufferImpl(){const e=this.m_geometry.getGeometryType();if((0,o.h)(e)){const e=new l.a({vd:this.m_geometry.getDescription()});return e.addSegment(this.m_geometry,!0),this.m_geometry=e,this.bufferImpl()}if(this.m_distance<=this.m_tolerance.total()){if(!(0,o.l)(e))return new l.P({vd:this.m_geometry.getDescription()});if(this.m_distance<0){const e=new u.Envelope2D;if(this.m_geometry.queryEnvelope(e),e.width()<=2*this.m_absDistance||e.height()<=2*this.m_absDistance)return new l.P({vd:this.m_geometry.getDescription()})}}switch(this.m_geometry.getGeometryType()){case o.G.enumPoint:return this.bufferPoint();case o.G.enumMultiPoint:return this.bufferMultiPoint();case o.G.enumPolyline:return this.bufferPolyline();case o.G.enumPolygon:return this.bufferPolygon();case o.G.enumEnvelope:return this.bufferEnvelope();default:(0,o.d)("")}}bufferPolyline(){if(this.isDegenerateGeometry(this.m_geometry)){const e=new m.P;this.m_geometry.getPointByVal(0,e);const t=new u.Envelope2D;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}const e=this.m_geometry,t=this.m_geometry.getDescription();this.m_geometry=null;const s=new C(e);let n,r;n=0===this.m_joins?(new d.O).executeMany(s,.25*this.m_densifyDist,!1,this.m_progressTracker):s,r=this.m_bRoundBuffer?(new _.O).executeMany(n,null,!0,this.m_progressTracker):n;const i=new b(this,r,this.m_bFilter),o=(new g._).executeMany(i,this.m_spatialReference,this.m_progressTracker,2),a=(new g.H).executeMany(o,this.m_spatialReference,!1,this.m_progressTracker).next();return null!==a?a:new l.P({vd:t})}bufferPolygon(){if(0===this.m_distance)return this.m_geometry;this.generateCircleTemplate();const e=(new g.H).execute(this.m_geometry,null,!1,this.m_progressTracker);if(this.m_distance<0){if(this.m_geometry=e,this.m_geometry.isEmpty())return this.m_geometry;const t=this.m_geometry,s=this.bufferPolygonImpl(t,0,t.getPathCount());return(new g.H).execute(s,this.m_spatialReference,!1,this.m_progressTracker)}{if(this.m_geometry=e,this.isDegenerateGeometry(this.m_geometry)){const e=new m.P;this.m_geometry.getPointByVal(0,e);const t=new u.Envelope2D;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}const t=new v(this),s=(new g._).executeMany(t,this.m_spatialReference,this.m_progressTracker,2),n=(new g.H).executeMany(s,this.m_spatialReference,!1,this.m_progressTracker).next();return null!==n?n:new l.P({vd:this.m_geometry.getDescription()})}}bufferPolygonImpl(e,t,s){const n=e,r=n.getImpl();let i=new l.P({vd:e.getDescription()});for(let o=t;o<s;o++){if(r.getPathSize(o)<1)continue;const t=r.calculateRingArea2D(o),s=new u.Envelope2D;if(r.queryPathEnvelope(o,s),this.m_distance>0)if(t>0)if(this.isDegeneratePath(r,o)){const e=new m.P;r.getPointByVal(r.getPathStart(o),e),e.setXY(s.getCenter()),i.add(this.bufferDegeneratePath(e,!0),!1)}else{const t=new l.a({vd:e.getDescription()}),s=t.getImpl();if((0,l.i)(this.m_geometry,o)){const e=this.bufferConvexPath(n,o);i.add(e,!1)}else{this.bufferClosedPath(this.m_geometry,o,s,this.m_bRoundBuffer,1);const e=this.bufferCleanup(t);i.add(e,!1)}}else{if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;const t=new l.a({vd:e.getDescription()}),n=t.getImpl();if(this.bufferClosedPath(this.m_geometry,o,n,this.m_bRoundBuffer,1),!t.isEmpty()){const e=s,r=Math.max(1,this.m_absDistance),o=e.clone();o.inflateCoords(r,r),n.addEnvelope(o,!1);const a=this.bufferCleanup(t);i.reserve(i.getPointCount()+a.getPointCount()-4),M(a,i,o,!0)}}else if(t>0){if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;const t=new l.a({vd:e.getDescription()}),n=t.getImpl();if(this.bufferClosedPath(this.m_geometry,o,n,this.m_bRoundBuffer,-1),!t.isEmpty()){const e=new u.Envelope2D;n.queryLooseEnvelope(e);const s=Math.max(1,this.m_absDistance),r=e.clone();r.inflateCoords(s,s),n.addEnvelope(r,!1),M(this.bufferCleanup(t),i,r,!0)}}else{const t=new l.a({vd:e.getDescription()}),s=t.getImpl();this.bufferClosedPath(this.m_geometry,o,s,this.m_bRoundBuffer,-1);const n=this.bufferCleanup(t);for(let e=0,t=n.getPathCount();e<t;e++)i.addPath(n,e,!0)}}if(this.m_distance>0)return i.getPathCount()>1?this.bufferCleanup(i):w(i);{const e=new u.Envelope2D;if(i.queryLooseEnvelope(e),i.isEmpty())return w(i);{const t=Math.max(1,this.m_absDistance),s=e.clone();s.inflateCoords(t,t),i.addEnvelope(s,!1);const n=this.bufferCleanup(i);i=new l.P;const r=new l.P({vd:n.getDescription()});return M(n,r,s,!1),w(r)}}}bufferPoint(){return this.bufferPointImpl(this.m_geometry)}bufferPointImpl(e){const t=new l.P({vd:e.getDescription()});return 0===this.m_caps?(this.addCircle(t.getImpl(),e),this.setStrongSimple(t)):2===this.m_caps?(this.addSquare(t.getImpl(),e),this.setStrongSimple(t)):t}bufferDegeneratePath(e,t){const s=new l.P({vd:e.getDescription()});return t&&0===this.m_joins||!t&&0===this.m_caps?(this.addCircle(s.getImpl(),e),this.setStrongSimple(s)):t||2!==this.m_caps?s:(this.addSquare(s.getImpl(),e),this.setStrongSimple(s))}bufferMultiPoint(){const e=new P(this,this.m_geometry,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle,this.m_progressTracker);return(new g._).executeMany(e,this.m_spatialReference,this.m_progressTracker,2).next()}bufferEnvelope(){let e=new l.P({vd:this.m_geometry.getDescription()});if(this.m_distance<=0){if(0===this.m_distance)e.addEnvelope(this.m_geometry,!1),T(this.m_geometry,this.m_tolerance.total())&&(e=this.setStrongSimple(e));else{const t=new m.E;this.m_geometry.queryEnvelope(t),t.inflateCoords(this.m_distance,this.m_distance),e.addEnvelope(t,!1),T(t,this.m_tolerance.total())&&(e=this.setStrongSimple(e))}return e}if(1===this.m_joins){const t=new m.E({copy:this.m_geometry});return t.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(t,!1),e}const t=this.m_geometry.clone();if(0===t.width()||0===t.height()){if(0===t.width()&&0===t.height()){const e=new m.P({vd:this.m_geometry.getDescription()});return t.queryCornerByVal(0,e),this.m_geometry=e,this.bufferImpl()}const e=new l.a({vd:this.m_geometry.getDescription()}),s=new m.P;return t.queryCornerByVal(0,s),e.startPathPoint(s),t.queryCornerByVal(2,s),e.lineToPoint(s),this.m_geometry=e,this.bufferImpl()}return e.addEnvelope(this.m_geometry,!1),this.m_geometry=e,this.bufferConvexPath(e,0)}bufferConvexPath(e,t){this.generateCircleTemplate();const s=e.hasAttribute(10),r=new l.P({vd:e.getDescription()}),i=r.getImpl();r.reserve((this.m_circleTemplate.length/10+4)*e.getPathSize(t));const a=new h.P,m=new h.P,u=new h.P,c=new h.P(0,0),f=new h.P,g=new h.P,_=e.getImpl(),d=e.getPathSize(t),p=e.getPathStart(t);for(let r=0,h=e.getPathSize(t);r<h;r++){const e=_.getXY(p+r),t=_.getXY(p+(r+1)%d),h=_.getXY(p+(r+2)%d);f.setSub(t,e),0===f.length()&&(0,o.d)("");const l=s&&!!(1&_.getAttributeAsInt(10,(r+1)%d,0));f.normalize();const x=f.clone();f.leftPerpendicularThis(),f.scale(this.m_absDistance),a.setAdd(f,e),m.setAdd(f,t),0===r?i.startPath(a):i.lineTo(a),i.lineTo(m),g.setSub(h,t),0===g.length()&&(0,o.d)(""),g.normalize();const y=g.clone();g.leftPerpendicularThis(),g.scale(this.m_absDistance),u.setAdd(g,t);let P=n.enumArc;const C=l?0:this.m_joins;if(2===C)P=n.enumBevel;else if(1===C){const e=-x.crossProduct(y);c.setSub(x,y),c.scale(this.m_absDistance/e),c.length()<this.m_miterLimit*this.m_absDistance?(c.addThis(t),P=n.enumMiter):P=n.enumBevel}else c.assign(t);this.addJoin(P,i,c,m,u,!1,!1)}return w(r)}bufferPolylinePath(e,t,s){this.generateCircleTemplate();const n=e,r=n.getImpl();if(r.getPathSize(t)<1)return null;let i;if(i=this.m_bRoundBuffer?r.isClosedPathInXYPlane(t):r.isClosedPath(t),this.isDegeneratePath(r,t)&&this.m_distance>0){const e=new m.P;r.getPointByVal(r.getPathStart(t),e);const s=new u.Envelope2D;return r.queryPathEnvelope(t,s),e.setXY(s.getCenter()),this.bufferDegeneratePath(e,i)}const o=new l.a({vd:e.getDescription()});o.reserve((Math.trunc(this.m_circleTemplate.length/10)+4)*r.getPathSize(t));const a=o.getImpl();return i?2!==this.bufferClosedPath(n,t,a,s,1)&&this.bufferClosedPath(n,t,a,s,-1):this.bufferOpenPath(n,t,a,s),this.bufferCleanup(o)}progress_(){}bufferCleanup(e,t=!1){const s=t?this.m_tolerance:this.m_smallTolerance;return(0,g.a6)(e,s,!0,!t,-1,this.m_progressTracker,0,!1)}calcN(){if(0===this.m_densifyDist)return this.m_maxVertexInCompleteCircle;const e=1-this.m_densifyDist*Math.abs(this.m_absDistanceReversed);let t=4;return t=e<-1?4:2*Math.PI/Math.acos(e)+.5,t<4?t=4:t>this.m_maxVertexInCompleteCircle&&(t=this.m_maxVertexInCompleteCircle),Math.trunc(t)}addJoin(e,t,s,r,i,o,a){if(this.generateCircleTemplate(),o&&(t.startPath(r),o=!1),e===n.enumBevel)return void(a&&t.lineTo(i));if(e===n.enumMiter){const e=s.clone();return t.lineTo(e),void(a&&t.lineTo(i))}const m=new h.P;m.setSub(r,s),m.scale(this.m_absDistanceReversed);const l=new h.P;l.setSub(i,s),l.scale(this.m_absDistanceReversed);let u=Math.atan2(m.y,m.x)/this.m_dA;u<0&&(u=this.m_circleTemplate.length+u),u=this.m_circleTemplate.length-u;let c=Math.atan2(l.y,l.x)/this.m_dA;c<0&&(c=this.m_circleTemplate.length+c),c=this.m_circleTemplate.length-c,c<u&&(c+=this.m_circleTemplate.length);let f=Math.trunc(c),g=Math.ceil(u),_=this.m_circleTemplate[g%this.m_circleTemplate.length].clone();_.scaleAddThis(this.m_absDistance,s);const d=10*this.m_tolerance.total();_.sub(r).length()<d&&(g+=1),_=this.m_circleTemplate[f%this.m_circleTemplate.length].clone(),_.scaleAddThis(this.m_absDistance,s),_.sub(i).length()<d&&(f-=1);let p=f-g;p++;for(let e=0,n=g%this.m_circleTemplate.length;e<p;e++,n=(n+1)%this.m_circleTemplate.length)_=this.m_circleTemplate[n].clone(),_.scaleAddThis(this.m_absDistance,s),t.lineTo(_),this.progress_();a&&t.lineTo(i)}bufferClosedPath(e,t,s,n,r){const i=new l.E,o=i.addPathFromMultiPath(e,t,!0);return this.bufferClosedPathImpl(i,o,s,n,r)}bufferClosedPathImpl(e,t,s,r,a){const l=e.getFirstVertex(e.getFirstPath(t)),u=new m.P;if(e.queryPoint(l,u),e.filterClosePoints(this.m_filterTolerance,!1,!1,!1,-1),e.getPointCount(t)<2)return a<0?0:(this.m_bRoundBuffer&&this.addCircle(s,u),2);(0,o.g)(-1!==e.getFirstPath(t)),(0,o.g)(-1!==e.getFirstVertex(e.getFirstPath(t)));const f=e.getXY(e.getFirstVertex(e.getFirstPath(t))),g=new c.T;if(g.setShift(f.negate()),e.applyTransformation(g),r){const n=function(e,t,s,n,r,o,a){return function(e,t,s,n,r,o,a){const m={stack:[],error:void 0,hasError:!1};try{const n=e.getFirstPath(t),l=e.createUserIndex();(0,i.mS)(m,(0,h.h)(()=>{e.removeUserIndex(l)},!1),!1),function(e,t,s,n){let r=-1;const i=new h.P,o=new h.P,a=new h.P;for(let s=0,m=e.getPathSize(n),h=e.getFirstVertex(n);s<m;++s){-1===r&&(e.queryXY(h,o),r=e.getPrevVertex(h),-1!==r&&(e.queryXY(r,i),a.setSub(o,i),a.normalize()));const s=e.getNextVertex(h);if(-1===s)break;const n=e.getXY(s),m=n.sub(o);m.normalize(),-1!==r&&m.dotProduct(a)<-.99&&Math.abs(m.crossProduct(a))<1e-7&&e.setUserIndex(h,t,1),r=h,h=s,i.assign(o),o.assign(n),a.assign(m)}}(e,l,0,n);for(let t=0;t<100;++t){if(0===e.getPathSize(n))return 1;let t=e.getFirstVertex(n),i=e.getPathSize(n);if(i<3)return 1;e.isClosedPath(n)||(i-=1);const o=64;let m=0,h=!1;for(let n=0;n<i&&-1!==t;n++){let u=0,c=t;for(let m=1,h=Math.min(o,i-n);m<h;m++)if(c=e.getNextVertexEx(c,s),m>1){const n=S(e,l,t,c,s,r,a,o);if(-1===n)break;u+=n,i-=n}if(m+=u,h=u>0,h){const n=e.getPrevVertexEx(t,s);if(-1!==n){t=n,i++;continue}}t=e.getNextVertexEx(t,s)}if(0===m)break}return e.filterClosePoints(o,!1,!1,!1,-1),1}catch(e){m.error=e,m.hasError=!0}finally{(0,i.hk)(m)}}(e,t,s,0,r,o,a)}(e,t,a,0,this.m_absDistance,this.m_filterTolerance,this.m_densifyDist);if((0,o.g)(1===n),e.getPointCount(t)<2)return a<0?0:(this.addCircle(s,u),2)}const _=0!==this.m_joins&&e.getVertexDescription().hasAttribute(10);this.m_bufferCommands.length=0;const d=e.getFirstPath(t);let p=e.getFirstVertex(d),P=1===a?e.getPrevVertex(p):e.getNextVertex(p),C=1===a?e.getNextVertex(p):e.getPrevVertex(p),b=!0;const v=new h.P,D=new h.P,w=new h.P,T=new h.P,M=new h.P,E=new h.P,k=new h.P,I=new h.P,R=this.m_absDistance,V=e.getPathSize(d),A=new h.P(0,0);for(let t=0;t<V;t++){D.assign(e.getXY(C)),b&&(v.assign(e.getXY(p)),w.assign(e.getXY(P)),E.setSub(v,w),E.normalize(),I.leftPerpendicularOther(E),I.scale(R),T.setAdd(I,v));const t=_&&!!(1&e.getAttributeAsDbl(10,p,0));M.setSub(D,v),M.normalize(),k.leftPerpendicularOther(M),k.scale(R);const s=new h.P;s.setAdd(v,k);const r=E.crossProduct(M),i=E.dotProduct(M);if(r<0||i<0&&r<Math.abs(i)*Number.EPSILON*8){let e=!1;const i=t?0:this.m_joins;if(1===i){const t=-r;A.setSub(E,M),A.scale(this.m_absDistance/t),A.length()<this.m_miterLimit*this.m_absDistance&&(A.addThis(v),e=!0),this.m_bufferCommands.push(x(T,s,A,e?n.enumMiter:n.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(x(T,s,v,0===i?n.enumArc:n.enumBevel,this.m_bufferCommands.length+1))}else T.equals(s)||(this.m_bufferCommands.push(y(T,v,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(y(v,s,this.m_bufferCommands.length+1)));const o=new h.P;o.setAdd(D,k),this.m_bufferCommands.push(x(s,o,v,n.enumLine,this.m_bufferCommands.length+1)),T.setCoordsPoint2D(o),I.setCoordsPoint2D(k),w.setCoordsPoint2D(v),v.setCoordsPoint2D(D),E.setCoordsPoint2D(M),P=p,p=C,b=!1,C=1===a?e.getNextVertex(p):e.getPrevVertex(p)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),g.setShift(f),s.applyTransformationToPath(g,s.getPathCount()-1),1}bufferOpenPath(e,t,s,r){if(this.m_bRoundBuffer){const n=new l.a({vd:e.getDescription()});return n.addPath(e,t,!1),n.addSegmentsFromPath(e,t,0,e.getSegmentCountPath(t),!1),this.bufferClosedPath(n,0,s,r,1)}let i=0;const a=new l.a({vd:e.getDescription()}),u=new h.P(0,0);{const n=new l.E,r=n.addPathFromMultiPath(e,t,!1),o=n.getFirstVertex(n.getFirstPath(r)),h=new m.P;if(n.queryPoint(o,h),u.assign(h.getXY()),n.filterClosePoints(0,!1,!1,!1,-1),n.getPointCount(r)<2)return this.m_bRoundBuffer&&this.addCircle(s,h),2;const c=n.getGeometry(n.getFirstGeometry());a.addPath(c,0,!1),i=a.getPointCount()-1,a.addSegmentsFromPath(c,0,0,c.getSegmentCountPath(0)-1,!1)}const f=new l.E,g=f.addPathFromMultiPath(a,0,!0);(0,o.g)(-1!==f.getFirstPath(g)),(0,o.g)(-1!==f.getFirstVertex(f.getFirstPath(g)));const _=new c.T;_.setShift(u.negate()),f.applyTransformation(_),this.m_bufferCommands.length=0;const d=f.getFirstPath(g),p=0!==this.m_joins&&f.getVertexDescription().hasAttribute(10);let P=f.getFirstVertex(d),C=f.getPrevVertex(P),b=f.getNextVertex(P),v=!0;const D=new h.P,w=new h.P,T=new h.P,S=new h.P,M=new h.P,E=new h.P,k=new h.P,I=new h.P,R=this.m_absDistance,V=f.getPathSize(d),A=new h.P(0,0);for(let e=0;e<V;e++){let t=!1;0!==e&&e!==i||(t=!0),w.assign(f.getXY(b)),v&&(D.assign(f.getXY(P)),T.assign(f.getXY(C)),E.setSub(D,T),E.normalize(),I.leftPerpendicularOther(E),I.scale(R),S.setAdd(I,D));const s=p&&!!(1&f.getAttributeAsDbl(10,P,0));M.setSub(w,D),M.normalize(),k.leftPerpendicularOther(M),k.scale(R);const r=new h.P;r.setAdd(D,k);const o=E.crossProduct(M),a=E.dotProduct(M);if(o<0||a<0&&o<Math.abs(a)*Number.EPSILON*8)if(t)if(0===this.m_caps)this.m_bufferCommands.push(x(S,r,D,n.enumArc,this.m_bufferCommands.length+1));else if(1===this.m_caps)this.m_bufferCommands.push(x(S,r,D,n.enumLine,this.m_bufferCommands.length+1));else{const e=M.mul(this.m_absDistance).negate(),t=e.clone();e.addThis(S),t.addThis(r),this.m_bufferCommands.push(x(S,e,D,n.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(x(e,t,D,n.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(x(t,r,D,n.enumLine,this.m_bufferCommands.length+1))}else{let e=!1;const t=s?0:this.m_joins;if(1===t){const t=-o;A.setSub(E,M),A.scale(this.m_absDistance/t),A.length()<this.m_miterLimit*this.m_absDistance&&(A.addThis(D),e=!0),this.m_bufferCommands.push(x(S,r,A,e?n.enumMiter:n.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(x(S,r,D,0===t?n.enumArc:n.enumBevel,this.m_bufferCommands.length+1))}else S.equals(r)||(this.m_bufferCommands.push(y(S,D,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(y(D,r,this.m_bufferCommands.length+1)));const m=new h.P;m.setAdd(w,k),this.m_bufferCommands.push(x(r,m,D,n.enumLine,this.m_bufferCommands.length+1)),S.setCoordsPoint2D(m),I.setCoordsPoint2D(k),T.setCoordsPoint2D(D),D.setCoordsPoint2D(w),E.setCoordsPoint2D(M),C=P,P=b,v=!1,b=f.getNextVertex(P)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),_.setShift(u),s.applyTransformationToPath(_,s.getPathCount()-1),1}processBufferCommands(e){const t=this.cleanupBufferCommands();let s=!0,r=t+1;for(let i=t;r!==t;i=r){const t=this.m_bufferCommands[i];r=-1!==t.m_next?t.m_next:(i+1)%this.m_bufferCommands.length,t.m_type&&(s&&(e.startPath(t.m_from),s=!1),t.m_type&n.enumJoinMask?this.addJoin(t.m_type,e,t.m_center,t.m_from,t.m_to,!1,!0):e.lineTo(t.m_to))}}cleanupBufferCommands(){this.m_helperArray=(0,h.m)(h.P,9);let e=0;for(let t=0,s=this.m_bufferCommands.length;t<s;){const s=this.m_bufferCommands[t];if(s.m_type&n.enumConnectionMask){e=t;break}t=s.m_next}let t=e+1;for(let s=e;t!==e;s=t){const e=this.m_bufferCommands[s];t=e.m_next;let r=1,i=null;for(;t!==s&&(i=this.m_bufferCommands[t],!(i.m_type&n.enumConnectionMask));)t=i.m_next,r++;1!==r&&(e.m_type&i.m_type)===n.enumLine&&(this.m_helperLine1.setStartXY(e.m_from),this.m_helperLine1.setEndXY(e.m_to),this.m_helperLine2.setStartXY(i.m_from),this.m_helperLine2.setEndXY(i.m_to),1===this.m_helperLine1.intersect(this.m_helperLine2,this.m_helperArray,null,null,this.m_smallTolerance.total())&&(e.m_to.assign(this.m_helperArray[0]),i.m_from.assign(this.m_helperArray[0]),e.m_next=t))}return e}isDegeneratePath(e,t){if(1===e.getPathSize(t))return!0;if(0===this.m_joins&&0===this.m_caps){const s=new u.Envelope2D;if(e.queryPathEnvelope(t,s),Math.max(s.width(),s.height())<.5*this.m_densifyDist)return!0}return!1}isDegenerateGeometry(e){if(0===this.m_joins&&0===this.m_caps){const t=new u.Envelope2D;if(e.queryEnvelope(t),Math.max(t.width(),t.height())<.5*this.m_densifyDist)return!0}return!1}addCircle(e,t){const s=t.getXY();if(0!==this.m_circleTemplate.length){let t=this.m_circleTemplate[0].clone();t.scaleAddThis(this.m_absDistance,s),e.startPath(t);for(let n=1,r=this.m_circleTemplate.length;n<r;n++)t=this.m_circleTemplate[n].clone(),t.scaleAddThis(this.m_absDistance,s),e.lineTo(t);return}const n=this.m_circleTemplateSize,r=Math.trunc((n+3)/4),i=.5*Math.PI/r;e.reserve(4*r);const o=Math.cos(i),a=Math.sin(i);for(let t=3;t>=0;t--){const n=h.P.construct(0,this.m_absDistance);switch(t){case 0:for(let t=0;t<r;t++)e.lineToCoords(n.x+s.x,n.y+s.y),n.rotateReverse(o,a);break;case 1:for(let t=0;t<r;t++)e.lineToCoords(-n.y+s.x,n.x+s.y),n.rotateReverse(o,a);break;case 2:for(let t=0;t<r;t++)e.lineToCoords(-n.x+s.x,-n.y+s.y),n.rotateReverse(o,a);break;default:e.startPathCoords(n.y+s.x,-n.x+s.y);for(let t=1;t<r;t++)n.rotateReverse(o,a),e.lineToCoords(n.y+s.x,-n.x+s.y)}this.progress_()}}addSquare(e,t){const s=new m.E({vd:t.getDescription()});s.setCoords(t.getX(),t.getY(),t.getX(),t.getY()),s.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(s,!1)}setStrongSimple(e){return e.getImpl().setIsSimple(4,this.m_tolerance.total()),e.getImpl().updateOGCFlagsProtected(),e}}function w(e){return(0,m.s)(e,0),e}function T(e,t){return!!e.isEmpty()||Math.min(e.width(),e.height())>t}function S(e,t,s,n,r,i,a,m){const l=e.getXY(s),u=e.getXY(n);if(l.equals(u))return-1;const c=.25*a,f=.25*a,g=new h.P;g.setSub(u,l);const _=g.length(),d=_*_*.25,p=i*i-d;if(p<=d)return-1;const x=Math.sqrt(p);g.normalize();const y=g.clone();y.rightPerpendicularThis();const P=d/x,C=P<=f,b=h.P.lerp(u,l,.5),v=y.clone(),D=P-c;v.scaleAddThis(Math.max(0,D),b),y.negate().scaleAddThis(x,b);const w=3.61*(0,h.a)(i-f),T=v.sub(l),S=v.sub(u);let M=!1,E=0;const k=(0,h.d)(64,0);(0,o.g)(m===k.length);{for(let i=e.getPrevVertexEx(n,r);i!==s;){if(1===e.getUserIndex(i,t))return-1;if(e.getXY(i).equals(u)){const t=e.getPrevVertexEx(i,r);e.removeVertex(i,!1),i=t;continue}break}const i=new h.P,a=l.clone();k[E++]=1;for(let o=e.getNextVertexEx(s,r);o!==n;){if(1===e.getUserIndex(o,t))return-1;const s=e.getXY(o);if(s.equals(a)){const t=e.getNextVertexEx(o,r);e.removeVertex(o,!1),o=t;continue}k[E++]=0;const n=new h.P;if(n.setSub(s,l),n.dotProduct(y)<0)return 0;(h.P.sqrDistance(s,l)>w||h.P.sqrDistance(s,u)>w)&&(M=!0);let m=0;if(s.sub(l).crossProduct(T)>=0&&(m=1),s.sub(u).crossProduct(S)<=0&&(m|=2),0===m)return 0;k[E-1]=m,i.assign(a),a.assign(s),o=e.getNextVertexEx(o,r)}if(1===E)return 0;(0,o.g)(E<k.length),k[E++]=2}let I=!0;for(let e=1,t=0;e<E;e++)if(k[e]!==k[e-1]&&(t++,I=t<3&&(1===t&&3===k[e]||2===t&&2===k[e]),!I))return 0;if(E>2&&I&&(3===E||!M)){let t=0,i=e.getNextVertexEx(s,r);for(C||(e.setXY(i,v),i=e.getNextVertexEx(i,r));i!==n;){const s=e.getNextVertexEx(i,r);e.removeVertex(i,!1),i=s,++t}return t}if((0,o.g)(3!==E),M&&E>3)return 0;const R=l.clone();let V=s;const A=l.clone();let Y=1,F=-1,X=V,G=0;for(E=1;X!==n;){X=e.getNextVertexEx(X,r);const t=k[E++];if(0===t){if(X===n)break;continue}const s=e.getXY(X);if(-1!==F){if(F&Y&t&3){e.removeVertex(V,!0),G++,V=X,A.setCoordsPoint2D(s),Y=t;continue}if(3===Y&&0!==F&&0!==t){if(A.setCoordsPoint2D(v),C||A.equals(R)){e.removeVertex(V,!0),G++,V=X,A.setCoordsPoint2D(s),Y=t;continue}e.setXY(V,A)}}F=Y,R.setCoordsPoint2D(A),V=X,Y=t,A.setCoordsPoint2D(s)}return G}function M(e,t,s,n){for(let r=0,i=e.getPathCount();r<i;r++){const i=e.getXY(e.getPathStart(r));i.x!==s.xmin&&i.x!==s.xmax&&t.addPath(e,r,n)}}},70007(e,t,s){s.d(t,{c:()=>r});var n=s(55537);function r(e,t){const s=e.getGeometryType();return s===n.G.enumPoint?e:(0,n.j)(s)?function(e){if(function(e){for(let t=0,s=e.getPathCount();t<s;t++){const s=e.getPathSize(t);if(0===s)return!1;if(1===s){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===n.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let s=0,r=e.getPathCount();s<r;s++){const r=e.getPathSize(s);if(0!==r){if(1===r){if(0===e.getSegmentCountPath(s))continue;if(e.getSegmentType(e.getPathStart(s))===n.G.enumLine)continue;if(!e.isClosedPath(s))continue}t.addPath(e,s,!0)}}return t}(e):s===n.G.enumMultiPoint||s===n.G.enumEnvelope?e:s===n.G.enumMultipatch?((0,n.t)("not implemented for multipatch"),e):e}},61691(e,t,s){s.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},64523(e,t,s){s.d(t,{O:()=>l});var n=s(32198),r=s(61691),i=s(55537),o=s(88885),a=s(95213),m=s(83661),h=s(5247);class l{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,n){return new u(e,t,s,n)}execute(e,t,s,n){return e||(0,i.a)("null param is not allowed."),new u(null,t,s,n).generalize(e)}}class u extends r.G{m_progressTracker;m_geoms;m_pline=null;m_point=new a.P;m_xy;m_stack=[];m_resultstack=[];m_maxDeviation;m_bRemoveDegenerateParts;m_callCount=0;constructor(e,t,s,n){super(),this.m_progressTracker=n,this.m_geoms=e,this.m_maxDeviation=t,this.m_bRemoveDegenerateParts=s}tock(){return!0}getRank(){return 1}next(){const e=this.m_geoms.next();return null===e?null:((0,i.c)(e),this.generalize(e))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(e){const t=e.getGeometryType();if((0,i.f)(t))return e;if(t===i.G.enumEnvelope){const t=new o.P({vd:e.getDescription()});return t.addEnvelope(e,!1),this.generalize(t)}if((0,i.h)(t)){const t=new o.a({vd:e.getDescription()});return t.addSegment(e,!0),this.generalize(t)}if((0,i.j)(t)||(0,i.t)(""),e.isEmpty()||this.m_maxDeviation<=0)return e;const s=(new h.O).execute(e,0,.05*this.m_maxDeviation,0,this.m_progressTracker);e.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const r=s,a=e.createInstance();a.getGeometryType()===i.G.enumPolygon&&a.setFillRule(e.getFillRule()),this.m_xy=r.getAttributeStreamRef(0);{const e={stack:[],error:void 0,hasError:!1};try{const t=new o.L;this.m_pline=t,(0,n.mS)(e,(0,m.h)(()=>{this.m_pline=null},!1),!1);for(let e=0,t=r.getPathCount();e<t;e++)this.generalizePath(r.getImpl(),e,a.getImpl())}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}return this.m_resultstack.length=0,this.m_stack.length=0,a}generalizePath(e,t,s){if(e.getPathSize(t)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const n=e.getPathStart(t),r=e.getPathEnd(t)-1,i=e.isClosedPath(t),o=e.isClosedPathInXYPlane(t);let a=0,h=-1;this.m_stack.push(i?n:r),this.m_stack.push(n);let l=!1,u=!1;for(!this.m_bRemoveDegenerateParts&&o&&(l=!0,u=!0);this.m_stack.length>1;){const t=this.m_stack.at(-1);this.m_stack.pop();const s=this.m_stack.at(-1);let n=e.getXY(t);this.m_pline.setStartXY(n),n=e.getXY(s),this.m_pline.setEndXY(n);const i=[Number.NaN];let o=this.findGreatestDistance(t,s,r,i);o>=0&&(l?l=!1:(u&&i[0]>a&&(a=i[0],h=o),i[0]<=this.m_maxDeviation&&(o=-1))),o>=0?(this.m_stack.push(o),this.m_stack.push(t)):this.m_resultstack.push(t)}i||this.m_resultstack.push(this.m_stack[0]);const c=this.m_resultstack.length;if(c===e.getPathSize(t)&&c===this.m_stack.length)s.addPath(e,t,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if(m.P.distance(e.getXY(this.m_resultstack[0]),e.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(u&&h>=0&&a<=this.m_maxDeviation){const e=this.m_resultstack.at(-1)>h;this.m_resultstack.push(h),e&&(this.m_resultstack[this.m_resultstack.length-2]=(0,m.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let t=0,n=this.m_resultstack.length;t<n;t++)e.getPointByVal(this.m_resultstack[t],this.m_point),0===t?s.startPathPoint(this.m_point):s.lineToPoint(this.m_point);if(i){for(let e=this.m_resultstack.length;e<3;e++)s.lineToPoint(this.m_point);s.closePathWithLine()}}}findGreatestDistance(e,t,s,n){let r=t-1;t<=e&&(r=s);let i=-1,o=0;const a=new m.P;for(let t=e+1;t<=r;t++){this.m_xy.queryPoint2D(2*t,a);const e=a.x,s=a.y,n=this.m_pline.getClosestCoordinate(a,!1);a.assign(this.m_pline.getCoord2D(n)),a.x-=e,a.y-=s;const r=a.length();r>o&&(i=t,o=r),this.m_callCount++}return n[0]=o,i}}},98783(e,t,s){s.d(t,{O:()=>a});var n=s(61691),r=s(55537),i=s(76061),o=s(39117);class a{getOperatorType(){return 10104}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,t,s,n,r){return 5===(0,o.$)(e,t,s,n,r)}executeMany(e,t,s,n){return new m(e,t,s,n)}execute(e,t,s,n){const o=new i.S([e]),a=this.executeMany(o,t,s,n).next();return a||(0,r.d)("null output"),a}}class m extends n.G{m_inputGeometryCursor;m_spatialReference;m_progressTracker;m_index;m_bForceSimplify;constructor(e,t,s,n){super(),e||(0,r.a)(""),this.m_progressTracker=n,this.m_bForceSimplify=s,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){const e=this.m_inputGeometryCursor.next();return e?((0,r.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){return e||(0,r.a)(""),(0,o.a0)(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}},76061(e,t,s){s.d(t,{S:()=>r});var n=s(61691);class r extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(e,t,s){s.d(t,{JR:()=>D,ME:()=>C,MY:()=>w,NO:()=>P,Nh:()=>v,V2:()=>k,_s:()=>I,e6:()=>V,gh:()=>b,tr:()=>Y,uX:()=>_});var n=s(32198),r=s(16930),i=s(19419),o=s(60408),a=s(21325),m=s(513),h=s(50954),l=s(79567),u=s(52006),c=s(49663),f=s(46068),g=s(92722);class _{constructor({type:e,spatialReference:t,vertexCount:s,vertexXY:n,vertexZ:r,vertexM:i,partCount:o,partOffsets:a,partFlags:m,segmentFlags:h,segmentIndices:l,segmentParams:u,segmentCountArc:c,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=s,this.vertexXY=n,this.vertexZ=r,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=m,this.segmentFlags=h,this.segmentIndices=l,this.segmentParams=u,this.segmentCountArc=c,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:s}=this;return e&&e-t-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:s,hasZ:n,hasM:r,segmentCountArc:i,segmentCountBezier:o}=this,a=k(e,t,s,n,r,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:m,vertexZ:h,vertexM:l}=this;if(a.vertexXY.set(m.subarray(0,2*t),0),a.vertexZ?.set(h.subarray(0,t),0),a.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,s+1)),a.partOffsets.set(e.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:s,segmentParams:n,segmentParamCount:r}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(s.subarray(0,t),0),a.segmentParams.set(n.subarray(0,r),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const s=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,s)=>Math.abs(e-s)>t||isNaN(e)!==isNaN(s);for(let t=0;t<this.vertexCount;++t)if(s(this.vertexXY[2*t],e.vertexXY[2*t])||s(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(s(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(s(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(s(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new d(this):[][Symbol.iterator]()}}class d{constructor(e){this.geometry=e,this.value=new p(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(e){this.geometry=e,this.index=-1,this._readVertex=M(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new y(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=M(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[s++],n=t[s++],r=t[s++],i=t[s++];return{b:[this.end,[e,n],[r,i]]}}const n=t[s++],r=t[s++],i=t[s++],o=t[s++],a=t[s++],m=t[s++];s++,s++;const h=t[s++],l=t[s++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[h,l]]};const u=2&n?0:1,c=1&n?0:1;return{a:[this.end,[a,m],u,c,o,r,i]}}}function P(e,t){const s={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,n.mS)(s,new T(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:s,vertexXY:r,vertexZ:o,vertexM:a}=e,m=S(e);if(e.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(s,new T(e,["vertexZ","vertexM"]),!1);const r=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:s}of t.segments)(0,l.e)(r,e,s),e=(0,u.yP)(s)}const[o,a,h,c]=r;t={xmin:o,ymin:a,xmax:h,ymax:c,spatialReference:m}}catch(e){s.error=e,s.hasError=!0}finally{(0,n.hk)(s)}}else{let e,n,i,o;e=n=1/0,i=o=-1/0;for(let t=0;t<s;++t){const s=r[2*t],a=r[2*t+1];e=Math.min(e,s),i=Math.max(i,s),n=Math.min(n,a),o=Math.max(o,a)}t={xmin:e,ymin:n,xmax:i,ymax:o,spatialReference:m}}if(o){let e=1/0,s=-1/0;for(const t of o)e=Math.min(e,t),s=Math.max(s,t);t.zmin=e,t.zmax=s}if(a){let e=1/0,s=-1/0;for(const t of a)e=Math.min(e,t),s=Math.max(s,t);t.mmin=e,t.mmax=s}return t}(e)),t}catch(e){s.error=e,s.hasError=!0}finally{(0,n.hk)(s)}}function C(e){let t,s,n;if((0,o.fT)(e)){n="point";const{x:r,y:i,z:o,m:a}=e,m=[r,i];null!=o&&m.push(o),null!=a&&m.push(a),s=[[m]],t=1}else(0,o.U9)(e)?(n="multipoint",s=[e.points],t=e.points.length):(0,o.Rg)(e)?(n="polyline",s=e.curvePaths??e.paths,t=s.reduce((e,t)=>e+t.length,0)):(n="polygon",s=e.curveRings??e.rings,t=s.reduce((e,t)=>(0===t.length||(e+=t.length,E(t[0],(0,u.yP)(t.at(-1)))&&--e),e),0));const r=k(n,t,n.includes("point")?0:s.length,(0,o.Pv)(e),(0,o.W0)(e),(0,u.Ed)(e)),{hasZ:i,hasM:a,vertexXY:m,vertexZ:h,vertexM:l}=r;function c(e){m[2*g]=e[0],m[2*g+1]=e[1],i&&(h[g]=e[2]),a&&(l[g]=e[f]),++g}r.spatialReference=e.spatialReference??void 0;const f=r.hasZ?3:2;let g=0;if(!r.isMultipart()){if(!i&&!a){for(const[e,t]of s[0])m[2*g]=e,m[2*g+1]=t,++g;return r}for(const e of s[0])c(e);return r}const _="polygon"===n,{partOffsets:d}=r;let p=0;if(!(0,u.Ed)(e)){for(const e of s){if(d[p++]=g,0===e.length)continue;let t=e.length;if(_&&E(e[0],e.at(-1))&&--t,i||a)for(let s=0;s<t;++s)c(e[s]);else for(let s=0;s<t;++s){const[t,n]=e[s];m[2*g]=t,m[2*g+1]=n,++g}}return d[p]=g,r}function x(e){const t=y+e;if(t<=(r.segmentParams?.length??0))return;let s=t*F;s=20*Math.ceil(s/20);const n=r.segmentParams;r.segmentParams=new Float64Array(s),null!=n&&r.segmentParams.set(n)}let y=0;for(const e of s){if(r.partOffsets[p++]=g,0===e.length)continue;const t=e[0];let s=t;for(let t=1;t<e.length;++t){const n=e[t];c(s);const i=g-1;(0,u.wY)(n)?(x(10),++r.segmentCountArc,y=I(s,n,r,i,y),s=n.a[0]):(0,u.DA)(n)?(x(10),++r.segmentCountArc,y=R(s,n,r,i,y),s=n.a[0]):(0,u.aO)(n)?(x(10),++r.segmentCountArc,y=V(s,n,r,i,y),s=n.c[0]):(0,u.n1)(n)?(x(4),++r.segmentCountBezier,y=Y(0,n,r,i,y),s=n.b[0]):s=n}_&&E(t,s)||c(s)}return r.partOffsets[p]=g,r}function b(e){const t=M(e),{vertexCount:s,partCount:n,hasZ:r,hasM:i}=e,o=S(e);if("point"===e.type){const[t,s]=e.vertexXY,n=e.vertexZ?.[0],r=e.vertexM?.[0];return{x:t,y:s,z:n,m:r,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<s;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:r,hasM:i}}const m="polygon"===e.type;if(!e.hasCurves()){const s=new Array;for(let r=0;r<n;++r){const n=e.partOffsets[r+1],i=new Array;for(;a<n;)i.push(t(a++));m&&i.length>0&&i.push(i[0]),s.push(i)}return m?{rings:s,hasZ:r,hasM:i,spatialReference:o}:{paths:s,hasZ:r,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:t,startVertex:s}of e.parts){const e=[s];for(const{curve:s}of t)e.push(s);h.push(e)}return m?{rings:[],curveRings:h,hasZ:r,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:r,hasM:i,spatialReference:o}}function v(e,{lengths:t,coords:s,hasZ:n,hasM:r},i){const o=e.includes("point")?0:t.length,a="polygon"===e,m="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);n??=!1,r??=!1;const h=k(e,m,o,n,r,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let e=0,t=0;e<m;++e)h.vertexXY[2*e]=s[t++],h.vertexXY[2*e+1]=s[t++],n&&(h.vertexZ[e]=s[t++]),r&&(h.vertexM[e]=s[t++]);return h}const l=2+Number(n)+Number(r);let u=0,c=0;h.partOffsets[0]=0;for(const e of t){const t=h.partOffsets[c],i=t+e-Number(a);h.partOffsets[++c]=i;for(let e=t;e<i;++e)h.vertexXY[2*e]=s[u++],h.vertexXY[2*e+1]=s[u++],n&&(h.vertexZ[e]=s[u++]),r&&(h.vertexM[e]=s[u++]);a&&(u+=l)}return h}function D({type:e,vertexCount:t,vertexXY:s,vertexZ:n,vertexM:r,partCount:i,partOffsets:o,hasZ:a,hasM:m}){const h=new g.A([],[],a,m);i=Math.max(i,1);const l="polygon"===e;let u=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,c=h.coords.length;for(let e=u;e<i;++e)h.coords.push(s[2*e],s[2*e+1]),a&&h.coords.push(n[e]),m&&h.coords.push(r[e]);if(l){const e=u;h.coords.push(s[2*e],s[2*e+1]),a&&h.coords.push(n[e]),m&&h.coords.push(r[e])}h.lengths.push((h.coords.length-c)/h.stride),u=i}return"point"===e&&(h.lengths.length=0),h}function w(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,s=e.isCustomWkid()?0:e.getOldID();if(s<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===s)&&(n=void 0);const r=e.getVCS();if(null==r)return{wkid:s,latestWkid:n,wkt:t};const i=r.isCustomWkid()?0:r.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:s,wkt:t,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new _({...e.toFlatGeometry(),spatialReference:t})}class T{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const s of t)e[s]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof r.A?e.toJSON():e}function M({vertexXY:e,vertexZ:t,vertexM:s}){return t?s?n=>[e[2*n],e[2*n+1],t[n],s[n]]:s=>[e[2*s],e[2*s+1],t[s]]:s?t=>[e[2*t],e[2*t+1],s[t]]:t=>[e[2*t],e[2*t+1]]}function E(e,t){return e.every((e,s)=>e===t[s])}function k(e,t,s,n,r,i,o,a){o??=0,a??=0;const m=new _({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),r&&(h+=Float64Array.BYTES_PER_ELEMENT*t),m.isMultipart()&&(h+=(s+1)*Int32Array.BYTES_PER_ELEMENT,h+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=m.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(h);let u=0;return m.vertexXY=new Float64Array(l,u,2*t),u+=m.vertexXY.byteLength,n&&(m.vertexZ=new Float64Array(l,u,t),u+=m.vertexZ.byteLength),r&&(m.vertexM=new Float64Array(l,u,t),u+=m.vertexM.byteLength),i&&(m.segmentParams=new Float64Array(l,u,m.segmentParamCount),u+=m.segmentParams.byteLength,m.segmentIndices=new Int32Array(l,u,t),m.segmentIndices.fill(X),u+=m.segmentIndices.byteLength),m.isMultipart()&&(m.partOffsets=new Int32Array(l,u,s+1),u+=m.partOffsets.byteLength,m.partFlags=new Int8Array(l,u,s+1),u+=m.partFlags.byteLength,"polygon"===m.type&&m.partFlags.subarray(0,s).fill(1)),i&&(m.segmentFlags=new Int8Array(l,u,t),m.segmentFlags.fill(1),u+=m.segmentFlags.byteLength),m}function I(e,t,{segmentFlags:s,segmentIndices:n,segmentParams:r},i,o){s[i]=4,n[i]=o;const[a,[m,h],l,u,c,g,_]=t.a;let d=4;u||(d|=1),l||(d|=2);const p=(0,f.SW)(e,t),[x,y]=(0,f.Uk)(p,.5);return r[o++]=d,r[o++]=g,r[o++]=_,r[o++]=c,r[o++]=m,r[o++]=h,r[o++]=p.u2-p.u1,r[o++]=p.u1,r[o++]=x,r[o++]=y,o}function R(e,t,{segmentFlags:s,segmentIndices:n,segmentParams:r},i,o){s[i]=4,n[i]=o;const a=(0,c.io)(e,t);return A(a,4,...(0,m.mq)(a,.5),r,o)}function V(e,t,{segmentFlags:s,segmentIndices:n,segmentParams:r},i,o){return s[i]=4,n[i]=o,A((0,h.pM)(e,t),0,...t.c[1],r,o)}function A(e,t,s,n,r,i){const{cx:o,cy:a,thetaStart:m,thetaEnd:h,radius:l}=e;return m>h||(t|=1),Math.abs(h-m)<=Math.PI||(t|=2),r[i++]=t,r[i++]=l,r[i++]=1,r[i++]=0,r[i++]=o,r[i++]=a,r[i++]=h-m,r[i++]=m,r[i++]=s,r[i++]=n,i}function Y(e,{b:[t,[s,n],[r,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:m},h,l){return o[h]=2,a[h]=l,m[l++]=s,m[l++]=n,m[l++]=r,m[l++]=i,l}const F=1.61803,X=-1}}]);
|