@arcgis/core 4.25.0-next.20220920 → 4.25.0-next.20220921
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/AggregateGraphic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{9f31ab2247c9defb882c.js → 01ac91fc0bc6b4d4e3c6.js} +1 -1
- package/assets/esri/core/workers/chunks/{8588cbecb8e808f451fe.js → 249e32af1f2d433fae4c.js} +1 -1
- package/assets/esri/core/workers/chunks/{5b16b30ac3166f33e81e.js → 26690f4ec1f3cb8099c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{be93b0cef85665446944.js → 274b4cdf6c8d77e8a2e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{d5650f455ce5ba15ad10.js → 2cae0ec5f60ab42a49aa.js} +1 -1
- package/assets/esri/core/workers/chunks/{f436c86f86236ea7ea04.js → 4641e10e0e8e9d257521.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a45333de9ded92619c2.js → 466008f793c2e11e854c.js} +1 -1
- package/assets/esri/core/workers/chunks/{c9d655675552dcf6cef7.js → 4a699b41072ee88f0956.js} +1 -1
- package/assets/esri/core/workers/chunks/{14ea96e398f4842abe4e.js → 4fdd18f5cdaa0d82ebc1.js} +1 -1
- package/assets/esri/core/workers/chunks/{9662da3e1e37f3445186.js → 562b9619b8ee13734813.js} +1 -1
- package/assets/esri/core/workers/chunks/{8bab21bc6164a593278f.js → 771b92e524802de840ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{4969b64dc17378d7781f.js → 7ce250cc6fbe68aef50d.js} +3 -3
- package/assets/esri/core/workers/chunks/{2c4938512dd726a177dd.js → 7fab18074b130b71a648.js} +1 -1
- package/assets/esri/core/workers/chunks/{f67357b3c6c591c9da5e.js → 872f1cb3596fb80e387f.js} +1 -1
- package/assets/esri/core/workers/chunks/{31de71018575457155e5.js → 8ee3da8677255b8c8709.js} +1 -1
- package/assets/esri/core/workers/chunks/{2e44aee22e70857b893c.js → 93631b10452b0e0189b3.js} +1 -1
- package/assets/esri/core/workers/chunks/{cb2dc84d972469445da6.js → 95cd9edca50ea163d50f.js} +1 -1
- package/assets/esri/core/workers/chunks/{d31bbb13af45ce8e45dc.js → acf9f753741b677afb44.js} +1 -1
- package/assets/esri/core/workers/chunks/{1455944edeba1560eb07.js → afdafa77f5ca1b9e3acc.js} +1 -1
- package/assets/esri/core/workers/chunks/{cf3e1ac63580bc495ea6.js → b4da35f1093f3731f9ac.js} +1 -1
- package/assets/esri/core/workers/chunks/bb0d86937faf0cd7d16d.js +1 -0
- package/assets/esri/core/workers/chunks/bf3e80023e156d5906c7.js +1 -0
- package/assets/esri/core/workers/chunks/{8ba83fee56dd4f306d87.js → c2a6ac7046134f725cf3.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d3fabe66e1bce1b30fb.js → cc7569489b572b8b3b53.js} +1 -1
- package/assets/esri/core/workers/chunks/{fddd4ea487788e003fb1.js → d09f06eb4157a7c2c8ab.js} +1 -1
- package/assets/esri/core/workers/chunks/e064035f959d68e9603f.js +1 -0
- package/assets/esri/core/workers/chunks/{d92975e56a1290255252.js → e09df62cf35d636b0975.js} +1 -1
- package/assets/esri/core/workers/chunks/{674fa5b93704ef08c9e8.js → e0c763e05feb1c2093ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{51289d2f5277af4023e9.js → ed33e019bc7775db2e50.js} +1 -1
- package/assets/esri/core/workers/chunks/ef95d6ab7b1c032ab4ad.js +1 -0
- package/assets/esri/core/workers/chunks/{169f4354a375db5de121.js → ffcbcb928b6cb8c596ad.js} +1 -1
- package/assets/esri/t9n/common_ar.json +1 -1
- package/assets/esri/t9n/common_bg.json +1 -1
- package/assets/esri/t9n/common_bs.json +1 -1
- package/assets/esri/t9n/common_ca.json +1 -1
- package/assets/esri/t9n/common_cs.json +1 -1
- package/assets/esri/t9n/common_da.json +1 -1
- package/assets/esri/t9n/common_de.json +1 -1
- package/assets/esri/t9n/common_el.json +1 -1
- package/assets/esri/t9n/common_es.json +1 -1
- package/assets/esri/t9n/common_et.json +1 -1
- package/assets/esri/t9n/common_fi.json +1 -1
- package/assets/esri/t9n/common_fr.json +1 -1
- package/assets/esri/t9n/common_he.json +1 -1
- package/assets/esri/t9n/common_hr.json +1 -1
- package/assets/esri/t9n/common_hu.json +1 -1
- package/assets/esri/t9n/common_id.json +1 -1
- package/assets/esri/t9n/common_it.json +1 -1
- package/assets/esri/t9n/common_ja.json +1 -1
- package/assets/esri/t9n/common_ko.json +1 -1
- package/assets/esri/t9n/common_lt.json +1 -1
- package/assets/esri/t9n/common_lv.json +1 -1
- package/assets/esri/t9n/common_nb.json +1 -1
- package/assets/esri/t9n/common_nl.json +1 -1
- package/assets/esri/t9n/common_pl.json +1 -1
- package/assets/esri/t9n/common_pt-BR.json +1 -1
- package/assets/esri/t9n/common_pt-PT.json +1 -1
- package/assets/esri/t9n/common_ro.json +1 -1
- package/assets/esri/t9n/common_ru.json +1 -1
- package/assets/esri/t9n/common_sk.json +1 -1
- package/assets/esri/t9n/common_sl.json +1 -1
- package/assets/esri/t9n/common_sr.json +1 -1
- package/assets/esri/t9n/common_sv.json +1 -1
- package/assets/esri/t9n/common_th.json +1 -1
- package/assets/esri/t9n/common_tr.json +1 -1
- package/assets/esri/t9n/common_uk.json +1 -1
- package/assets/esri/t9n/common_vi.json +1 -1
- package/assets/esri/t9n/common_zh-CN.json +1 -1
- package/assets/esri/t9n/common_zh-HK.json +1 -1
- package/assets/esri/t9n/common_zh-TW.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ar.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_bg.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_bs.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ca.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_cs.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_da.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_de.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_el.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_es.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_et.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_fi.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_fr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_he.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_hr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_hu.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_id.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_it.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ja.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ko.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_lt.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_lv.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_nb.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_nl.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_pl.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_pt-BR.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_pt-PT.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ro.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ru.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sk.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sl.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sv.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_th.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_tr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_uk.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_vi.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_zh-CN.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_zh-HK.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nb.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ar.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_bg.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_bs.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ca.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_cs.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_da.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_de.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_el.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_es.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_et.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_fi.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_fr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_he.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_hr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_hu.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_id.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_it.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ja.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ko.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_lt.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_lv.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_nb.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_nl.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_pl.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_pt-BR.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_pt-PT.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ro.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ru.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sk.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sl.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sv.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_th.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_tr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_uk.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_vi.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_zh-CN.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_zh-HK.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_zh-TW.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_ar.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_bg.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_bs.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_ca.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_cs.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_da.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_de.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_el.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_es.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_et.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_fi.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_fr.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_he.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_hr.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_hu.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_id.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_it.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_ja.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_ko.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_lt.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_lv.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_nb.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_nl.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_pl.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_pt-BR.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_pt-PT.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_ro.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_ru.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_sk.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_sl.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_sr.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_sv.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_th.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_tr.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_uk.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_vi.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_zh-CN.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_zh-HK.json +1 -1
- package/assets/esri/widgets/support/t9n/DatePicker_zh-TW.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_ar.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_bg.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_bs.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_ca.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_cs.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_da.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_de.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_el.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_es.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_et.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_fi.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_fr.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_he.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_hr.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_hu.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_id.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_it.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_ja.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_ko.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_lt.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_lv.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_nb.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_nl.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_pl.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_pt-BR.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_pt-PT.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_ro.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_ru.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_sk.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_sl.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_sr.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_sv.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_th.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_tr.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_uk.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_vi.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_zh-CN.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_zh-HK.json +1 -1
- package/assets/esri/widgets/support/t9n/TimePicker_zh-TW.json +1 -1
- package/chunks/Compositing.glsl.js +4 -19
- package/chunks/HUDCompositing.glsl.js +7 -0
- package/chunks/Laserlines.glsl.js +5 -5
- package/chunks/OITCompositing.glsl.js +13 -0
- package/chunks/OverlayCompositing.glsl.js +8 -0
- package/chunks/Precipitation.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsPlanar.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/mat3.js +1 -1
- package/chunks/quat.js +1 -1
- package/chunks/quat2.js +1 -1
- package/chunks/quatf64.js +1 -1
- package/chunks/sphere.js +1 -1
- package/chunks/vec3.js +1 -1
- package/chunks/vec3f32.js +1 -1
- package/chunks/vec4f64.js +1 -1
- package/core/VectorStack.js +1 -1
- package/core/libs/gl-matrix-2/factories/quatf64.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec3f32.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
- package/core/libs/gl-matrix-2/math/mat3.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/perspectiveUtils.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/axisAngle.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/node.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/projection.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +70 -0
- package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/support/AggregateField.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/OutStatistic.js +1 -1
- package/layers/support/VoxelVolume.js +1 -1
- package/layers/support/voxelPlaneUtils.js +1 -1
- package/package.json +1 -1
- package/rest/support/AggregateFeatureSet.js +5 -0
- package/support/revision.js +1 -1
- package/views/2d/ViewState.js +1 -1
- package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/webgl/OverlayContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/WGLTile.js +1 -1
- package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/support/BinStore.js +1 -1
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
- package/views/2d/layers/support/DebugOverlay.js +1 -1
- package/views/2d/layers/support/FeatureLayerProxy.js +1 -1
- package/views/2d/layers/support/clusterUtils.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimensioning/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/sliceToolConfig.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
- package/views/3d/interactive/editingTools/settings.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudWorker.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/I3STreeDebugger.js +1 -1
- package/views/3d/layers/support/edgeUtils.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/local/ZoomController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryRecord.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/Highlight.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.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/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/OITCompositing.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/OITCompositingTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +5 -0
- package/views/draw/support/surfaceCoordinateSystems.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
- package/widgets/ElevationProfile/support/constants.js +1 -1
- package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
- package/widgets/Feature/FeatureRelationship.js +1 -1
- package/assets/esri/core/workers/chunks/0059699bf824f851d51c.js +0 -1
- package/assets/esri/core/workers/chunks/36dd5654df5c7f00406d.js +0 -1
- package/assets/esri/core/workers/chunks/de128d8a643b4297940b.js +0 -1
- package/assets/esri/core/workers/chunks/e00327925ca82b63fded.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7277],{7277:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>z});var _,i=s(17452),n=s(95330),r=s(94139);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(_||(_={}));class E{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=E.HEADER_SIZE,this._length+=E.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(e);if(this._length+=this._alignTo(s.byteLength,4),t&&(this._length+=E.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,_.JSON,32);t&&this._writeChunk(t,i,_.BIN)}_writeHeader(){this._outView.setUint32(0,E.MAGIC,!0),this._outView.setUint32(4,E.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,_=0){const i=this._alignTo(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),this._writeArrayBuffer(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)_&&this._outView.setUint8(t,_),t++;return t}_writeArrayBuffer(e,t,s,_,i){new Uint8Array(e,s,i).set(new Uint8Array(t,_,i),0)}_textToArrayBuffer(e){return(new TextEncoder).encode(e).buffer}_alignTo(e,t){return t*Math.ceil(e/t)}}E.HEADER_SIZE=12,E.CHUNK_HEADER_SIZE=8,E.MAGIC=1179937895,E.VERSION=2;var a,T,R,o,A,c,N,h=s(30175),f=s(70586),u=s(51305),S=s(94961),C=s(17896),O=s(65617),I=s(60746),l=s(66459);!function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(T||(T={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(R||(R={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(o||(o={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(c||(c={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(N||(N={}));var L=s(35371);class d{constructor(e,t,s,_,i){this._buffer=e,this._componentType=s,this._dataType=_,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const n=this._getElementSize();n>=4&&i!==R.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=n),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,_=this._accessorMin[s];this._accessorMin[s]="number"!=typeof _?e:Math.min(_,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case L.g.BYTE:return new Int8Array(e,t);case L.g.FLOAT:return new Float32Array(e,t);case L.g.SHORT:return new Int16Array(e,t);case L.g.UNSIGNED_BYTE:return new Uint8Array(e,t);case L.g.UNSIGNED_INT:return new Uint32Array(e,t);case L.g.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const _={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case L.g.UNSIGNED_BYTE:case L.g.UNSIGNED_SHORT:_.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,_}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}finalize(){const e=this._bufferView;return new Promise((e=>{const t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),e((0,n.as)(t))})).then((()=>{this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}))}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case L.g.BYTE:case L.g.UNSIGNED_BYTE:return 1;case L.g.SHORT:case L.g.UNSIGNED_SHORT:return 2;case L.g.UNSIGNED_INT:case L.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case o.SCALAR:return 1;case o.VEC2:return 2;case o.VEC3:return 3;case o.VEC4:case o.MAT2:return 4;case o.MAT3:return 9;case o.MAT4:return 16}}}class M{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const _=new d(this,this._gltf,e,t,s);return this._bufferViews.push(_),_}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=new Promise((e=>{e((0,n.as)(this.getViewFinalizePromises()))})).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras?.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function D(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&B(s,t)}function B(e,t){(0,f.Wi)(t.normal)&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:_,normal:i}=t,n=s.length/3;for(let e=0;e<n;++e){const t=3*s[3*e+0],n=3*s[3*e+1],r=3*s[3*e+2],E=(0,C.s)(P,_[t+0],_[t+1],_[t+2]),a=(0,C.s)(U,_[n+0],_[n+1],_[n+2]),T=(0,C.s)(p,_[r+0],_[r+1],_[r+2]),R=(0,C.b)(a,a,E),o=(0,C.b)(T,T,E),A=(0,C.f)(R,R,o);i[t+0]+=A[0],i[t+1]+=A[1],i[t+2]+=A[2],i[n+0]+=A[0],i[n+1]+=A[1],i[n+2]+=A[2],i[r+0]+=A[0],i[r+1]+=A[1],i[r+2]+=A[2]}for(let e=0;e<i.length;e+=3)(0,C.s)(G,i[e],i[e+1],i[e+2]),(0,C.n)(G,G),i[e+0]=G[0],i[e+1]=G[1],i[e+2]=G[2]}const P=(0,O.c)(),U=(0,O.c)(),p=(0,O.c)(),G=(0,O.c)();s(80442);var g=s(20102);async function m(e){const t=F(e);if((0,f.Wi)(t))throw new g.Z("imageToArrayBuffer","Unsupported image type");const s=await async function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,i.HK)(t)){const e=(0,i.sJ)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),_=await new Promise((e=>t.toBlob(e,s)));if(!_)throw new g.Z("imageToArrayBuffer","Failed to encode image");return{data:await _.arrayBuffer(),type:s}}function F(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}class w{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===a.GLB||t.options.imageOutputType===T.GLB;s&&(t.binChunkBuffer=new M(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,C.k)(s,O.Z)||(t.translation=(0,O.a)(s));const _=e.rotation;(0,u.j)(_,S.I)||(t.rotation=(0,S.b)(_));const i=e.scale;(0,C.k)(i,O.O)||(t.scale=(0,O.a)(i)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const n=this.gltf.nodes.length;return this.gltf.nodes.push(t),n}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras,_=s.options.bufferOutputType===a.GLB;let i;i=_?s.binChunkBuffer:new M(this.gltf),this.params.origin||(this.params.origin=function(e){if((0,f.pC)(e.transform))return e.transform.getOriginPoint(e.spatialReference);const t=e.extent.xmax-e.extent.width/2,s=e.extent.ymax-e.extent.height/2,_=e.extent.zmin;return new r.Z({x:t,y:s,z:_,spatialReference:e.extent.spatialReference})}(e));const n=(0,l.Yq)(e.vertexAttributes,e.transform,this.params.origin,{geographic:this.params.geographic,unit:"meters"});D(e,n),this._flipYZAxis(n);const E=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER);let T,A,c,N;n.normal&&(T=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(A=i.addBufferView(L.g.FLOAT,o.VEC2,R.ARRAY_BUFFER)),n.tangent&&(c=i.addBufferView(L.g.FLOAT,o.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(N=i.addBufferView(L.g.UNSIGNED_BYTE,o.VEC4,R.ARRAY_BUFFER)),E.startAccessor("POSITION"),T&&T.startAccessor("NORMAL"),A&&A.startAccessor("TEXCOORD_0"),c&&c.startAccessor("TANGENT"),N&&N.startAccessor("COLOR_0");const h=n.position.length/3,{position:u,normal:S,tangent:C}=n,{color:O,uv:I}=e.vertexAttributes;for(let e=0;e<h;++e)E.push(u[3*e+0]),E.push(u[3*e+1]),E.push(u[3*e+2]),T&&(0,f.pC)(S)&&(T.push(S[3*e+0]),T.push(S[3*e+1]),T.push(S[3*e+2])),A&&(0,f.pC)(I)&&(A.push(I[2*e+0]),A.push(I[2*e+1])),c&&(0,f.pC)(C)&&(c.push(C[4*e+0]),c.push(C[4*e+1]),c.push(C[4*e+2]),c.push(C[4*e+3])),N&&(0,f.pC)(O)&&(N.push(O[4*e+0]),N.push(O[4*e+1]),N.push(O[4*e+2]),N.push(O[4*e+3]));const d=E.endAccessor(),B=this._addAccessor(E.index,d);let P,U,p,G,g;if(T){const e=T.endAccessor();P=this._addAccessor(T.index,e)}if(A){const e=A.endAccessor();U=this._addAccessor(A.index,e)}if(c){const e=c.endAccessor();p=this._addAccessor(c.index,e)}if(N){const e=N.endAccessor();G=this._addAccessor(N.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(g=i.addBufferView(L.g.UNSIGNED_INT,o.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(g,e.components,t,B,P,U,p,G)):this._addMeshVertexNonIndexed(e.components,t,B,P,U,p,G),E.finalize(),T&&T.finalize(),A&&A.finalize(),c&&c.finalize(),g&&g.finalize(),N&&N.finalize(),_||i.finalize();const m=this.gltf.meshes.length;return this.gltf.meshes.push(t),m}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!(0,f.Wi)(e))for(let s=1,_=2;s<e.length;s+=t,_+=t){const t=e[s],i=e[_];e[s]=i,e[_]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=c.MASK;break;case"auto":case"blend":s.alphaMode=c.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const _=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=_(t[0]/255),t[1]=_(t[1]/255),t[2]=_(t[2]/255),t};if((0,f.pC)(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),(0,f.pC)(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),(0,f.pC)(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof I.Z){if((0,f.pC)(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),(0,f.pC)(e.emissiveColor)){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}(0,f.pC)(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),(0,f.pC)(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1;const n=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),n}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.s1)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},_=t.length;return t.push(s),_}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const _=this.gltf.extras;switch(_.options.imageOutputType){case T.GLB:{const e=_.binChunkBuffer.addBufferView(L.g.UNSIGNED_BYTE,o.SCALAR),i=m(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(i).then((()=>{e.finalize()})),s.bufferView=e.index;break}case T.DataURI:s.uri=function(e){const t=F(e);return(0,f.pC)(t)?t.toDataURL():""}(t);break;default:_.promises.push(m(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const _=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,_),_}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=L.e8.REPEAT,s=L.e8.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=L.e8.CLAMP_TO_EDGE,s=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT,s=L.e8.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=L.e8.CLAMP_TO_EDGE;break;case"mirror":s=L.e8.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT}}const _={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(_)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(_),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const _=this.gltf.accessors.length;return this.gltf.accessors.push(s),_}_addMeshVertexIndexed(e,t,s,_,i,n,r,E){for(const a of t){e.startAccessor("INDICES");for(let t=0;t<a.faces.length;++t)e.push(a.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:_},indices:this._addAccessor(e.index,t),material:this._addMaterial(a.material)};i&&"flat"!==a.shading&&(T.attributes.NORMAL=i),n&&(T.attributes.TEXCOORD_0=n),r&&"flat"!==a.shading&&(T.attributes.TANGENT=r),E&&(T.attributes.COLOR_0=E),s.primitives.push(T)}}_addMeshVertexNonIndexed(e,t,s,_,i,n,r){const E={attributes:{POSITION:s}};_&&(E.attributes.NORMAL=_),i&&(E.attributes.TEXCOORD_0=i),n&&(E.attributes.TANGENT=n),r&&(E.attributes.COLOR_0=r),e&&(E.material=this._addMaterial(e[0].material)),t.primitives.push(E)}}var b=s(67676);class y{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,b.Od)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class H{constructor(e){this.mesh=e,this.name="",this.translation=(0,O.c)(),this.rotation=(0,S.a)(),this.scale=(0,O.a)(O.O),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,u.k)(this.rotation,e[0],e[1],e[2])}}const x="model.glb";class V{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}class Y{constructor(e,t){this._file={type:"model/gltf-binary",data:e},this.origin=t}buffer(){return Promise.resolve(this._file)}download(e){(0,i.io)(new Blob([this._file.data],{type:this._file.type}),e)}}function z(e,t){const s=new y,_=new V;return s.addScene(_),_.addNode(new H(e)),function(e,t){return function(e,t,s){const _=new w(e,t=t||{},s);let i=_.params;i?i.origin||(i.origin=new r.Z({x:-1,y:-1,z:-1})):i={origin:new r.Z({x:-1,y:-1,z:-1})};const R=i.origin,o=_.gltf,A=o.extras?.promises??[];let c=1,N=1,h=null;return(0,n.as)(A).then((()=>{const e={origin:R};delete o.extras;const s="number"==typeof t.jsonSpacing?t.jsonSpacing:4,_=JSON.stringify(o,((s,_)=>{if("extras"!==s){if(_ instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(_))switch(t.imageOutputType){case T.DataURI:case T.GLB:break;case T.External:default:{const t=`img${N}.png`;return N++,e[t]=_,t}}switch(t.bufferOutputType){case a.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(_);case a.GLB:if(h)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(h=_);case a.External:default:{const t=`data${c}.bin`;return c++,e[t]=_,t}}}return _}}),s);return t.bufferOutputType===a.GLB||t.imageOutputType===T.GLB?e[x]=new E(_,h).buffer:e["model.gltf"]=_,e}))}(e,{bufferOutputType:a.GLB,imageOutputType:T.GLB,jsonSpacing:0},t)}(s,t).then((e=>new Y(e[x],e.origin)))}},35371:(e,t,s)=>{var _,i,n,r,E,a,T,R,o,A,c,N,h,f,u,S,C,O,I,l,L,d,M,D;s.d(t,{Br:()=>S,LR:()=>a,Lm:()=>L,Lu:()=>B,MX:()=>i,No:()=>h,OU:()=>d,Tg:()=>C,VI:()=>f,VY:()=>D,Wf:()=>T,_g:()=>M,cw:()=>c,db:()=>r,e8:()=>N,g:()=>R,l1:()=>O,lP:()=>u,q_:()=>P,qi:()=>l,w0:()=>E,wb:()=>o,xS:()=>A,zi:()=>n}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(_||(_={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(i||(i={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(r||(r={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(E||(E={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(T||(T={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(A||(A={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(C||(C={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(O||(O={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(I||(I={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(L||(L={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.Sync=7]="Sync",e[e.COUNT=8]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={}));const B=33306;var P,U,p,G,g,m,F;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(p||(p={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(g||(g={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(F||(F={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7277],{7277:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>z});var _,i=s(17452),n=s(95330),r=s(94139);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(_||(_={}));class E{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=E.HEADER_SIZE,this._length+=E.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(e);if(this._length+=this._alignTo(s.byteLength,4),t&&(this._length+=E.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,_.JSON,32);t&&this._writeChunk(t,i,_.BIN)}_writeHeader(){this._outView.setUint32(0,E.MAGIC,!0),this._outView.setUint32(4,E.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,_=0){const i=this._alignTo(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),this._writeArrayBuffer(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)_&&this._outView.setUint8(t,_),t++;return t}_writeArrayBuffer(e,t,s,_,i){new Uint8Array(e,s,i).set(new Uint8Array(t,_,i),0)}_textToArrayBuffer(e){return(new TextEncoder).encode(e).buffer}_alignTo(e,t){return t*Math.ceil(e/t)}}E.HEADER_SIZE=12,E.CHUNK_HEADER_SIZE=8,E.MAGIC=1179937895,E.VERSION=2;var a,T,R,o,A,c,N,h=s(30175),f=s(70586),u=s(51305),S=s(94961),C=s(17896),O=s(65617),I=s(60746),l=s(66459);!function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(T||(T={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(R||(R={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(o||(o={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(c||(c={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(N||(N={}));var L=s(35371);class d{constructor(e,t,s,_,i){this._buffer=e,this._componentType=s,this._dataType=_,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const n=this._getElementSize();n>=4&&i!==R.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=n),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,_=this._accessorMin[s];this._accessorMin[s]="number"!=typeof _?e:Math.min(_,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case L.g.BYTE:return new Int8Array(e,t);case L.g.FLOAT:return new Float32Array(e,t);case L.g.SHORT:return new Int16Array(e,t);case L.g.UNSIGNED_BYTE:return new Uint8Array(e,t);case L.g.UNSIGNED_INT:return new Uint32Array(e,t);case L.g.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const _={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case L.g.UNSIGNED_BYTE:case L.g.UNSIGNED_SHORT:_.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,_}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}finalize(){const e=this._bufferView;return new Promise((e=>{const t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),e((0,n.as)(t))})).then((()=>{this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}))}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case L.g.BYTE:case L.g.UNSIGNED_BYTE:return 1;case L.g.SHORT:case L.g.UNSIGNED_SHORT:return 2;case L.g.UNSIGNED_INT:case L.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case o.SCALAR:return 1;case o.VEC2:return 2;case o.VEC3:return 3;case o.VEC4:case o.MAT2:return 4;case o.MAT3:return 9;case o.MAT4:return 16}}}class M{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const _=new d(this,this._gltf,e,t,s);return this._bufferViews.push(_),_}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=new Promise((e=>{e((0,n.as)(this.getViewFinalizePromises()))})).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras?.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function D(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&B(s,t)}function B(e,t){(0,f.Wi)(t.normal)&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:_,normal:i}=t,n=s.length/3;for(let e=0;e<n;++e){const t=3*s[3*e+0],n=3*s[3*e+1],r=3*s[3*e+2],E=(0,C.s)(P,_[t+0],_[t+1],_[t+2]),a=(0,C.s)(U,_[n+0],_[n+1],_[n+2]),T=(0,C.s)(p,_[r+0],_[r+1],_[r+2]),R=(0,C.b)(a,a,E),o=(0,C.b)(T,T,E),A=(0,C.f)(R,R,o);i[t+0]+=A[0],i[t+1]+=A[1],i[t+2]+=A[2],i[n+0]+=A[0],i[n+1]+=A[1],i[n+2]+=A[2],i[r+0]+=A[0],i[r+1]+=A[1],i[r+2]+=A[2]}for(let e=0;e<i.length;e+=3)(0,C.s)(G,i[e],i[e+1],i[e+2]),(0,C.n)(G,G),i[e+0]=G[0],i[e+1]=G[1],i[e+2]=G[2]}const P=(0,O.c)(),U=(0,O.c)(),p=(0,O.c)(),G=(0,O.c)();s(80442);var g=s(20102);async function m(e){const t=F(e);if((0,f.Wi)(t))throw new g.Z("imageToArrayBuffer","Unsupported image type");const s=await async function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,i.HK)(t)){const e=(0,i.sJ)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),_=await new Promise((e=>t.toBlob(e,s)));if(!_)throw new g.Z("imageToArrayBuffer","Failed to encode image");return{data:await _.arrayBuffer(),type:s}}function F(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}class w{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===a.GLB||t.options.imageOutputType===T.GLB;s&&(t.binChunkBuffer=new M(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,C.w)(s,O.Z)||(t.translation=(0,O.a)(s));const _=e.rotation;(0,u.j)(_,S.I)||(t.rotation=(0,S.b)(_));const i=e.scale;(0,C.w)(i,O.O)||(t.scale=(0,O.a)(i)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const n=this.gltf.nodes.length;return this.gltf.nodes.push(t),n}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras,_=s.options.bufferOutputType===a.GLB;let i;i=_?s.binChunkBuffer:new M(this.gltf),this.params.origin||(this.params.origin=function(e){if((0,f.pC)(e.transform))return e.transform.getOriginPoint(e.spatialReference);const t=e.extent.xmax-e.extent.width/2,s=e.extent.ymax-e.extent.height/2,_=e.extent.zmin;return new r.Z({x:t,y:s,z:_,spatialReference:e.extent.spatialReference})}(e));const n=(0,l.Yq)(e.vertexAttributes,e.transform,this.params.origin,{geographic:this.params.geographic,unit:"meters"});D(e,n),this._flipYZAxis(n);const E=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER);let T,A,c,N;n.normal&&(T=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(A=i.addBufferView(L.g.FLOAT,o.VEC2,R.ARRAY_BUFFER)),n.tangent&&(c=i.addBufferView(L.g.FLOAT,o.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(N=i.addBufferView(L.g.UNSIGNED_BYTE,o.VEC4,R.ARRAY_BUFFER)),E.startAccessor("POSITION"),T&&T.startAccessor("NORMAL"),A&&A.startAccessor("TEXCOORD_0"),c&&c.startAccessor("TANGENT"),N&&N.startAccessor("COLOR_0");const h=n.position.length/3,{position:u,normal:S,tangent:C}=n,{color:O,uv:I}=e.vertexAttributes;for(let e=0;e<h;++e)E.push(u[3*e+0]),E.push(u[3*e+1]),E.push(u[3*e+2]),T&&(0,f.pC)(S)&&(T.push(S[3*e+0]),T.push(S[3*e+1]),T.push(S[3*e+2])),A&&(0,f.pC)(I)&&(A.push(I[2*e+0]),A.push(I[2*e+1])),c&&(0,f.pC)(C)&&(c.push(C[4*e+0]),c.push(C[4*e+1]),c.push(C[4*e+2]),c.push(C[4*e+3])),N&&(0,f.pC)(O)&&(N.push(O[4*e+0]),N.push(O[4*e+1]),N.push(O[4*e+2]),N.push(O[4*e+3]));const d=E.endAccessor(),B=this._addAccessor(E.index,d);let P,U,p,G,g;if(T){const e=T.endAccessor();P=this._addAccessor(T.index,e)}if(A){const e=A.endAccessor();U=this._addAccessor(A.index,e)}if(c){const e=c.endAccessor();p=this._addAccessor(c.index,e)}if(N){const e=N.endAccessor();G=this._addAccessor(N.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(g=i.addBufferView(L.g.UNSIGNED_INT,o.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(g,e.components,t,B,P,U,p,G)):this._addMeshVertexNonIndexed(e.components,t,B,P,U,p,G),E.finalize(),T&&T.finalize(),A&&A.finalize(),c&&c.finalize(),g&&g.finalize(),N&&N.finalize(),_||i.finalize();const m=this.gltf.meshes.length;return this.gltf.meshes.push(t),m}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!(0,f.Wi)(e))for(let s=1,_=2;s<e.length;s+=t,_+=t){const t=e[s],i=e[_];e[s]=i,e[_]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=c.MASK;break;case"auto":case"blend":s.alphaMode=c.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const _=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=_(t[0]/255),t[1]=_(t[1]/255),t[2]=_(t[2]/255),t};if((0,f.pC)(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),(0,f.pC)(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),(0,f.pC)(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof I.Z){if((0,f.pC)(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),(0,f.pC)(e.emissiveColor)){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}(0,f.pC)(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),(0,f.pC)(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1;const n=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),n}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.s1)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},_=t.length;return t.push(s),_}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const _=this.gltf.extras;switch(_.options.imageOutputType){case T.GLB:{const e=_.binChunkBuffer.addBufferView(L.g.UNSIGNED_BYTE,o.SCALAR),i=m(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(i).then((()=>{e.finalize()})),s.bufferView=e.index;break}case T.DataURI:s.uri=function(e){const t=F(e);return(0,f.pC)(t)?t.toDataURL():""}(t);break;default:_.promises.push(m(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const _=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,_),_}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=L.e8.REPEAT,s=L.e8.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=L.e8.CLAMP_TO_EDGE,s=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT,s=L.e8.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=L.e8.CLAMP_TO_EDGE;break;case"mirror":s=L.e8.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT}}const _={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(_)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(_),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const _=this.gltf.accessors.length;return this.gltf.accessors.push(s),_}_addMeshVertexIndexed(e,t,s,_,i,n,r,E){for(const a of t){e.startAccessor("INDICES");for(let t=0;t<a.faces.length;++t)e.push(a.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:_},indices:this._addAccessor(e.index,t),material:this._addMaterial(a.material)};i&&"flat"!==a.shading&&(T.attributes.NORMAL=i),n&&(T.attributes.TEXCOORD_0=n),r&&"flat"!==a.shading&&(T.attributes.TANGENT=r),E&&(T.attributes.COLOR_0=E),s.primitives.push(T)}}_addMeshVertexNonIndexed(e,t,s,_,i,n,r){const E={attributes:{POSITION:s}};_&&(E.attributes.NORMAL=_),i&&(E.attributes.TEXCOORD_0=i),n&&(E.attributes.TANGENT=n),r&&(E.attributes.COLOR_0=r),e&&(E.material=this._addMaterial(e[0].material)),t.primitives.push(E)}}var b=s(67676);class y{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,b.Od)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class H{constructor(e){this.mesh=e,this.name="",this.translation=(0,O.c)(),this.rotation=(0,S.c)(),this.scale=(0,O.a)(O.O),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,u.k)(this.rotation,e[0],e[1],e[2])}}const x="model.glb";class V{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}class Y{constructor(e,t){this._file={type:"model/gltf-binary",data:e},this.origin=t}buffer(){return Promise.resolve(this._file)}download(e){(0,i.io)(new Blob([this._file.data],{type:this._file.type}),e)}}function z(e,t){const s=new y,_=new V;return s.addScene(_),_.addNode(new H(e)),function(e,t){return function(e,t,s){const _=new w(e,t=t||{},s);let i=_.params;i?i.origin||(i.origin=new r.Z({x:-1,y:-1,z:-1})):i={origin:new r.Z({x:-1,y:-1,z:-1})};const R=i.origin,o=_.gltf,A=o.extras?.promises??[];let c=1,N=1,h=null;return(0,n.as)(A).then((()=>{const e={origin:R};delete o.extras;const s="number"==typeof t.jsonSpacing?t.jsonSpacing:4,_=JSON.stringify(o,((s,_)=>{if("extras"!==s){if(_ instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(_))switch(t.imageOutputType){case T.DataURI:case T.GLB:break;case T.External:default:{const t=`img${N}.png`;return N++,e[t]=_,t}}switch(t.bufferOutputType){case a.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(_);case a.GLB:if(h)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(h=_);case a.External:default:{const t=`data${c}.bin`;return c++,e[t]=_,t}}}return _}}),s);return t.bufferOutputType===a.GLB||t.imageOutputType===T.GLB?e[x]=new E(_,h).buffer:e["model.gltf"]=_,e}))}(e,{bufferOutputType:a.GLB,imageOutputType:T.GLB,jsonSpacing:0},t)}(s,t).then((e=>new Y(e[x],e.origin)))}},35371:(e,t,s)=>{var _,i,n,r,E,a,T,R,o,A,c,N,h,f,u,S,C,O,I,l,L,d,M,D;s.d(t,{Br:()=>S,LR:()=>a,Lm:()=>L,Lu:()=>B,MX:()=>i,No:()=>h,OU:()=>d,Tg:()=>C,VI:()=>f,VY:()=>D,Wf:()=>T,_g:()=>M,cw:()=>c,db:()=>r,e8:()=>N,g:()=>R,l1:()=>O,lP:()=>u,q_:()=>P,qi:()=>l,w0:()=>E,wb:()=>o,xS:()=>A,zi:()=>n}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(_||(_={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(i||(i={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(r||(r={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(E||(E={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(T||(T={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(A||(A={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(C||(C={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(O||(O={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(I||(I={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(L||(L={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.Sync=7]="Sync",e[e.COUNT=8]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={}));const B=33306;var P,U,p,G,g,m,F;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(p||(p={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(g||(g={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(F||(F={}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3121],{79235:(e,t,r)=>{r.d(t,{Z:()=>w});var i,s=r(43697),o=r(67676),n=r(35454),a=r(96674),l=r(67900),p=r(20941),u=r(5600),d=(r(80442),r(75215),r(71715)),c=r(52011),y=r(30556);const h=(0,n.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,o.e$)(m,"orthometric");const b=(0,n.w)()({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 f=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new p.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return b.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||b.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({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 r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new p.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,u.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,s._)([(0,y.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,s._)([(0,d.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,s._)([(0,u.Cb)({type:b.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:b.jsonValues,write:b.write}}}})],f.prototype,"heightUnit",void 0),(0,s._)([(0,d.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,s._)([(0,d.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,s._)([(0,u.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,s._)([(0,d.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,s._)([(0,c.j)("esri.geometry.HeightModelInfo")],f);const w=f},3121:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ir});var i,s=r(43697),o=r(51773),n=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382)),a=r(81571),l=r(91423),p=r(32400),u=r(3172),d=r(9790),c=r(2368),y=r(46791),h=r(20102),m=r(61247),b=r(80442),f=r(35454),g=r(22974),w=r(92604),v=r(70586),_=r(16453),C=r(78286),S=r(95330),I=r(42033),F=r(17452),x=r(5600),j=r(90578),E=r(71715),T=r(52011),O=r(30556),R=r(63213),M=r(96674),q=(r(67676),r(75215));let D=i=class extends M.wq{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],D.prototype,"expression",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],D.prototype,"name",void 0),(0,s._)([(0,x.Cb)({type:["boolean","date","number","string"],json:{write:!0}})],D.prototype,"returnType",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],D.prototype,"title",void 0),D=i=(0,s._)([(0,T.j)("esri.form.ExpressionInfo")],D);const A=D;let L=class extends M.wq{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],L.prototype,"description",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],L.prototype,"label",void 0),(0,s._)([(0,x.Cb)()],L.prototype,"type",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],L.prototype,"visibilityExpression",void 0),L=(0,s._)([(0,T.j)("esri.form.elements.Element")],L);const Z=L;var P;let G=P=class extends M.wq{constructor(e){super(e),this.type=null}clone(){return new P({type:this.type})}};(0,s._)([(0,x.Cb)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],G.prototype,"type",void 0),G=P=(0,s._)([(0,T.j)("esri.form.elements.inputs.AttachmentInput")],G);const Q=G;var N;let V=N=class extends Z{constructor(e){super(e),this.attachmentKeyword=null,this.editable=!0,this.input=null,this.type="attachment"}clone(){return new N({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],V.prototype,"attachmentKeyword",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],V.prototype,"editable",void 0),(0,s._)([(0,x.Cb)({type:Q,json:{read:{source:"inputType"},write:{target:"inputType"}}})],V.prototype,"input",void 0),(0,s._)([(0,x.Cb)({type:["attachment"],json:{read:!1,write:!0}})],V.prototype,"type",void 0),V=N=(0,s._)([(0,T.j)("esri.form.elements.AttachmentElement")],V);const k=V;let B=class extends M.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,x.Cb)()],B.prototype,"type",void 0),B=(0,s._)([(0,T.j)("esri.form.elements.inputs.Input")],B);const U=B;let J=class extends U{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],J.prototype,"maxLength",void 0),(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],J.prototype,"minLength",void 0),J=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextInput")],J);const z=J;var W;let H=W=class extends z{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new W({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,x.Cb)({type:["barcode-scanner"],json:{read:!1,write:!0}})],H.prototype,"type",void 0),H=W=(0,s._)([(0,T.j)("esri.form.elements.inputs.BarcodeScannerInput")],H);const $=H;var K;let X=K=class extends U{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="combo-box"}clone(){return new K({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],X.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],X.prototype,"showNoValueOption",void 0),(0,s._)([(0,x.Cb)({type:["combo-box"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=K=(0,s._)([(0,T.j)("esri.form.elements.inputs.ComboBoxInput")],X);const Y=X;var ee;function te(e){return null!=e?new Date(e):null}function re(e){return e?e.getTime():null}let ie=ee=class extends U{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=re(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=re(e)}clone(){return new ee({includeTime:this.includeTime,max:this.max,min:this.min,type:this.type})}};(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],ie.prototype,"includeTime",void 0),(0,s._)([(0,x.Cb)({type:Date,json:{type:Number,write:!0}})],ie.prototype,"max",void 0),(0,s._)([(0,E.r)("max")],ie.prototype,"readMax",null),(0,s._)([(0,O.c)("max")],ie.prototype,"writeMax",null),(0,s._)([(0,x.Cb)({type:Date,json:{type:Number,write:!0}})],ie.prototype,"min",void 0),(0,s._)([(0,E.r)("min")],ie.prototype,"readMin",null),(0,s._)([(0,O.c)("min")],ie.prototype,"writeMin",null),(0,s._)([(0,x.Cb)({type:["datetime-picker"],json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=ee=(0,s._)([(0,T.j)("esri.form.elements.inputs.DateTimePickerInput")],ie);const se=ie;var oe;let ne=oe=class extends U{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="radio-buttons"}clone(){return new oe({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],ne.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"showNoValueOption",void 0),(0,s._)([(0,x.Cb)({type:["radio-buttons"],json:{read:!1,write:!0}})],ne.prototype,"type",void 0),ne=oe=(0,s._)([(0,T.j)("esri.form.elements.inputs.RadioButtonsInput")],ne);const ae=ne;var le;let pe=le=class extends U{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new le({offValue:this.offValue,onValue:this.onValue})}};(0,s._)([(0,x.Cb)({type:[String,Number],json:{write:!0}})],pe.prototype,"offValue",void 0),(0,s._)([(0,x.Cb)({type:[String,Number],json:{write:!0}})],pe.prototype,"onValue",void 0),(0,s._)([(0,x.Cb)({type:["switch"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=le=(0,s._)([(0,T.j)("esri.form.elements.inputs.SwitchInput")],pe);const ue=pe;var de;let ce=de=class extends z{constructor(e){super(e),this.type="text-area"}clone(){return new de({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,x.Cb)({type:["text-area"],json:{read:!1,write:!0}})],ce.prototype,"type",void 0),ce=de=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextAreaInput")],ce);const ye=ce;var he;let me=he=class extends z{constructor(e){super(e),this.type="text-box"}clone(){return new he({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,x.Cb)({type:["text-box"],json:{read:!1,write:!0}})],me.prototype,"type",void 0),me=he=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextBoxInput")],me);const be={base:U,key:"type",typeMap:{"barcode-scanner":$,"combo-box":Y,"datetime-picker":se,"radio-buttons":ae,switch:ue,"text-area":ye,"text-box":me}};var fe,ge=r(72729);let we=fe=class extends Z{constructor(e){super(e),this.domain=null,this.editable=!0,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new fe({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({types:ge.V5,json:{read:{reader:ge.im},write:!0}})],we.prototype,"domain",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],we.prototype,"editable",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"editableExpression",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"fieldName",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"hint",void 0),(0,s._)([(0,x.Cb)({types:be,json:{read:{source:"inputType"},write:{target:"inputType"}}})],we.prototype,"input",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"requiredExpression",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:!1,write:!0}})],we.prototype,"type",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"valueExpression",void 0),we=fe=(0,s._)([(0,T.j)("esri.form.elements.FieldElement")],we);const ve=we;var _e,Ce=r(44729);let Se=_e=class extends Z{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editable=!0,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new _e({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:(0,g.d9)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],Se.prototype,"displayCount",void 0),(0,s._)([(0,x.Cb)({type:["list"],json:{write:!0}})],Se.prototype,"displayType",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],Se.prototype,"editable",void 0),(0,s._)([(0,x.Cb)({type:[Ce.Z],json:{write:!0}})],Se.prototype,"orderByFields",void 0),(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],Se.prototype,"relationshipId",void 0),(0,s._)([(0,x.Cb)({type:["relationship"],json:{read:!1,write:!0}})],Se.prototype,"type",void 0),Se=_e=(0,s._)([(0,T.j)("esri.form.elements.RelationshipElement")],Se);const Ie=Se;function Fe(e){return{typesWithGroup:{base:Z,key:"type",typeMap:{attachment:k,field:ve,group:e,relationship:Ie}},typesWithoutGroup:{base:Z,key:"type",typeMap:{attachment:k,field:ve,relationship:Ie}}}}function xe(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}function je(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}function Ee(e,t,r=!0){return e?e.map((e=>(0,q.N7)(r?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Te;let Oe=Te=class extends Z{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Ee(e,Re,!1)}readElements(e,t){return xe(t.formElements,Re,!1)}writeElements(e,t){t.formElements=je(e,Re,!1)}clone(){return new Te({description:this.description,elements:(0,g.d9)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({json:{write:!0}})],Oe.prototype,"elements",void 0),(0,s._)([(0,j.p)("elements")],Oe.prototype,"castElements",null),(0,s._)([(0,E.r)("elements",["formElements"])],Oe.prototype,"readElements",null),(0,s._)([(0,O.c)("elements")],Oe.prototype,"writeElements",null),(0,s._)([(0,x.Cb)({type:["collapsed","expanded"],json:{write:!0}})],Oe.prototype,"initialState",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:!1,write:!0}})],Oe.prototype,"type",void 0),Oe=Te=(0,s._)([(0,T.j)("esri.form.elements.GroupElement")],Oe);const Re=Fe(Oe);var Me;const qe=Fe(Oe);let De=Me=class extends M.wq{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.title=null}castElements(e){return Ee(e,qe)}readElements(e,t){return xe(t.formElements,qe)}writeElements(e,t){t.formElements=je(e,qe)}clone(){return new Me({description:this.description,expressionInfos:(0,g.d9)(this.expressionInfos),elements:(0,g.d9)(this.elements),title:this.title})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],De.prototype,"description",void 0),(0,s._)([(0,x.Cb)({json:{write:!0}})],De.prototype,"elements",void 0),(0,s._)([(0,j.p)("elements")],De.prototype,"castElements",null),(0,s._)([(0,E.r)("elements",["formElements"])],De.prototype,"readElements",null),(0,s._)([(0,O.c)("elements")],De.prototype,"writeElements",null),(0,s._)([(0,x.Cb)({type:[A],json:{write:!0}})],De.prototype,"expressionInfos",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],De.prototype,"title",void 0),De=Me=(0,s._)([(0,T.j)("esri.form.FormTemplate")],De);const Ae=De;var Le=r(6570),Ze=r(79235),Pe=r(82971),Ge=r(87085),Qe=(r(66577),r(38171)),Ne=r(3920),Ve=r(83379),ke=r(609),Be=r(78346),Ue=r(52421),Je=r(59431),ze=r(28694),We=r(74889),He=r(38913),$e=r(86973);let Ke=0;const Xe="esri.layers.graphics.sources.MemorySource",Ye=w.Z.getLogger(Xe);let et=class extends(Ve.Z.LoadableMixin((0,ke.v)((0,Ne.p)(y.Z)))){constructor(e){super(e),this._idToClientGraphic=null,this.type="memory"}load(e){const t=(0,v.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,ze.p)(e,this.layer.spatialReference,r);const i=We.default.fromJSON(r);if(!this._requiresClientGraphicMapping())return i;const s=this.layer.objectIdField;for(const e of i.features){const t=e.attributes[s],r=this._idToClientGraphic.get(t);r&&(e.geometry=r.geometry)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new h.Z("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,ze.p)(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:Le.Z.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async _applyEdits(e){if(!this._connection)throw new h.Z("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&i.push(e)}const n=e.updateFeatures&&this._idToClientGraphic?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),n){const e=o(t);null!=e&&n.set(e,t)}(0,Je.P)(r?r.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:l}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:s,deletes:i});return this.fullExtent=a,r&&r.finish(l.uidToObjectId),this._updateClientGraphicIds(n,l),this._createEditsResult(l)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||(0,v.Wi)(e))return;const r=[];for(const{geometry:i}of e)!(0,v.pC)(i)||"mesh"!==i.type||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateClientGraphicIds(e,t){if(this._idToClientGraphic){if(e)for(const r of t.updateResults){if(!r.success)continue;const t=e.get(r.objectId);null!=t&&this._addIdToClientGraphic(t)}for(const e of t.deleteResults)e.success&&this._idToClientGraphic.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new h.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let s=0;s<e.length;s++){const o=e[s],n=this._serializeFeature(o);!i&&(0,v.pC)(o.geometry)&&(i=o.geometry.type),r[s]=n,t.set(`${n.uid}`,o)}const s=this;return{features:r,inferredGeometryType:i,finish(e){const r=s.sourceJSON.objectIdField;for(const i in e){const o=e[i],n=t.get(i);n&&(n.attributes||(n.attributes={}),-1===o?delete n.attributes[r]:n.attributes[r]=o,s._addIdToClientGraphic(n))}}}}_addIdToClientGraphic(e){if(!this._idToClientGraphic)return;const t=this.sourceJSON.objectIdField,r=e.attributes&&e.attributes[t];null!=r&&this._idToClientGraphic.set(r,e)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=(Ke++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return(0,v.Wi)(t)?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?He.Z.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,Be.bA)("MemorySourceWorker",{strategy:(0,b.Z)("feature-layers-workers")?"dedicated":"local",signal:e});const{fields:t,spatialReference:r,objectIdField:i,hasM:s,hasZ:o,timeInfo:n}=this.layer,a="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const l=this._prepareAddFeatures(this.items);this.handles.add(this.on("before-changes",(e=>{Ye.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()})));const p={features:l.features,fields:t&&t.map((e=>e.toJSON())),geometryType:$e.P$.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||o,objectIdField:i,spatialReference:a?null:r&&r.toJSON(),timeInfo:n?n.toJSON():null},u=await this._connection.invoke("load",p,{signal:e});for(const e of u.warnings)Ye.warn(e.message,{layer:this.layer,warning:e});u.featureErrors.length&&Ye.warn(`Encountered ${u.featureErrors.length} validation errors while loading features`,u.featureErrors);const d=u.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(l.inferredGeometryType)&&(d.geometryType=$e.P$.toJSON(l.inferredGeometryType)),this.sourceJSON=d,this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map),l.finish(u.assignedObjectIds)}};(0,s._)([(0,Ue.c)({Type:Qe.Z,ensureType:(0,q.se)(Qe.Z)})],et.prototype,"itemType",void 0),(0,s._)([(0,x.Cb)()],et.prototype,"type",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],et.prototype,"layer",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],et.prototype,"_workerGeometryType",null),(0,s._)([(0,x.Cb)()],et.prototype,"sourceJSON",void 0),et=(0,s._)([(0,T.j)(Xe)],et);var tt,rt=r(54295),it=r(17287),st=r(71612),ot=r(17017),nt=r(66361),at=r(69637),lt=r(38009),pt=r(68825),ut=r(16859),dt=r(34760),ct=r(72965),yt=r(28294),ht=r(66677),mt=r(21506);let bt=tt=class extends M.wq{constructor(e){super(e)}clone(){const{name:e,fields:t,isAscending:r,isUnique:i,description:s}=this;return new tt({name:e,fields:t,isAscending:r,isUnique:i,description:s})}};(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"name",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"fields",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"isAscending",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"isUnique",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"description",void 0),bt=tt=(0,s._)([(0,T.j)("esri.layers.support.FeatureIndex")],bt);var ft=r(2075),gt=r(70082),wt=r(16451),vt=r(53518),_t=r(35671),Ct=r(67900);let St=class extends((0,c.J)(M.wq)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],St.prototype,"shapeAreaField",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],St.prototype,"shapeLengthField",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:e=>Ct.gV.read(e)||Ct.Jo.read(e)}})],St.prototype,"units",void 0),St=(0,s._)([(0,T.j)("esri.layers.support.GeometryFieldsInfo")],St);const It=St;var Ft=r(2319),xt=r(30707),jt=r(56765);const Et=new f.X({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),Tt=new f.X({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let Ot=class extends((0,c.J)(M.wq)){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,s._)([(0,x.Cb)({json:{read:Et.read,write:Et.write}})],Ot.prototype,"cardinality",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"composite",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"id",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"keyField",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"keyFieldInRelationshipTable",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"name",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"relatedTableId",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"relationshipTableId",void 0),(0,s._)([(0,x.Cb)({json:{read:Tt.read,write:Tt.write}})],Ot.prototype,"role",void 0),Ot=(0,s._)([(0,T.j)("esri.layers.support.Relationship")],Ot);const Rt=Ot;var Mt=r(30547),qt=r(60199),Dt=r(10158),At=r(40555),Lt=r(56545),Zt=r(57444),Pt=r(75935),Gt=r(28141),Qt=r(32163),Nt=r(65242);const Vt=new f.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),kt={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},Bt="FeatureLayer",Ut="esri.layers.FeatureLayer",Jt=w.Z.getLogger(Ut);function zt(e,t){return new h.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Wt(e){return e&&e instanceof y.Z}function Ht(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function $t(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function Kt(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function Xt(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}const Yt=(0,vt.v)();function er(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let tr=class extends((0,at.b)((0,nt.o1)((0,st.h)((0,pt.c)((0,yt.n)((0,ct.M)((0,dt.Q)((0,it.Y)((0,lt.q)((0,ut.I)((0,_.R)((0,ot.N)((0,rt.V)((0,c.J)(Ge.Z))))))))))))))){constructor(...e){super(...e),this._handles=new m.Z,this.capabilities=null,this.charts=null,this.copyright=null,this.datesInUnknownTimezone=!1,this.displayField=null,this.definitionExpression=null,this.dynamicDataSource=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.formTemplate=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.layerId=void 0,this.legendEnabled=!0,this.minScale=0,this.maxScale=0,this.globalIdField=null,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.relationships=null,this.sourceJSON=null,this.returnM=void 0,this.returnZ=void 0,this.screenSizePerspectiveEnabled=!0,this.serviceDefinitionExpression=null,this.spatialReference=Pe.Z.WGS84,this.subtypeCode=null,this.subtypeField=null,this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.trackIdField=null,this.type="feature",this.typeIdField=null,this.types=null,this.indexes=new(y.Z.ofType(bt)),this.userIsAdmin=!1,this.version=void 0,this.visible=!0}destroy(){this.source?.destroy(),this._handles=(0,v.SC)(this._handles)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,v.pC)(e)?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this._initLayerProperties(e)))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection"]},e).catch(S.r9).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new h.Z("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this._initLayerProperties(await this.createGraphicsSource(t))})).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}readCapabilities(e,t){return t=t.layerDefinition||t,{analytics:this._readAnalyticsCapabilities(t),attachment:this._readAttachmentCapabilities(t),data:this._readDataCapabilities(t),metadata:this._readMetadataCapabilities(t),operations:this._readOperationsCapabilities(t.capabilities||e,t),query:this._readQueryCapabilities(t),queryRelated:this._readQueryRelatedCapabilities(t),queryTopFeatures:this._readQueryTopFeaturesCapabilities(t),editing:this._readEditingCapabilities(t)}}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}readEditingInfo(e,t){const{editingInfo:r}=t;return r?{lastEditDate:null!=r.lastEditDate?new Date(r.lastEditDate):null}:null}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&(0,C.RB)(r,e?"Table":"Feature Layer",t)}readMinScale(e,t){return t.effectiveMinScale||e||0}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}readObjectIdFieldFromService(e,t){if((t=t.layerDefinition||t).objectIdField)return t.objectIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeOID"===e.type)return e.name}get parsedUrl(){const e=this.url?(0,F.mN)(this.url):null;return null!=e&&(null!=this.dynamicDataSource?e.path=(0,F.v_)(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=(0,F.v_)(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,_t.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){const i=(t=t.layerDefinition||t).drawingInfo?.renderer;if(i){const e=(0,l.a)(i,t,r)??void 0;return e||Jt.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}if(t.defaultSymbol)return t.types&&t.types.length?new a.Z({defaultSymbol:rr(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map((e=>({id:e.id,symbol:rr(e.symbol,e,r)})))}):new n.Z({symbol:rr(t.defaultSymbol,t,r)})}set source(e){const t=this._get("source");t!==e&&(Wt(t)&&this._resetMemorySource(t),Wt(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof y.Z?new et({layer:this,items:e}):e:null}readSource(e,t){const r=We.default.fromJSON(t.featureSet);return new et({layer:this,items:r?.features??[]})}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readTemplates(e,t){const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e=e&&e.map((e=>gt.Z.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,s),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition&&t.layerDefinition.title;if(r){const e=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,ht.a7)(this.url,r):r;let t=r;if(!t&&this.url){const e=(0,ht.Qc)(this.url);(0,v.pC)(e)&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,ht.ld)(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition&&t.layerDefinition.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e&&e.map((e=>(e=wt.Z.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,s),e)))}set url(e){const t=(0,ht.XG)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:Jt});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,r,i){(0,ht.wH)(this,e,null,t,i)}readVersion(e,t){return t.currentVersion?t.currentVersion:t.hasOwnProperty("capabilities")||t.hasOwnProperty("drawingInfo")||t.hasOwnProperty("hasAttachments")||t.hasOwnProperty("htmlPopupType")||t.hasOwnProperty("relationships")||t.hasOwnProperty("timeInfo")||t.hasOwnProperty("typeIdField")||t.hasOwnProperty("types")?10:9.3}readVisible(e,t){return t.layerDefinition&&null!=t.layerDefinition.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const{source:r}=await this.load();if(await this._checkAttachmentSupport(e),!r.addAttachment)throw new h.Z(Bt,"Layer source does not support addAttachment capability");return r.addAttachment(e,t)}async updateAttachment(e,t,r){const{source:i}=await this.load();if(await this._checkAttachmentSupport(e),!i.updateAttachment)throw new h.Z(Bt,"Layer source does not support updateAttachment capability");return i.updateAttachment(e,t,r)}async applyEdits(e,t){const i=await r.e(7035).then(r.bind(r,87269)),s=await this.load();return i.applyEdits(s,s.source,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,Qt.eZ)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await(0,S.Hl)(Promise.all([r.e(4599),r.e(8899)]).then(r.bind(r,38899)),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=new Zt.Z,t=this.get("capabilities.data"),r=this.get("capabilities.query");e.dynamicDataSource=this.dynamicDataSource,e.historicMoment=this.historicMoment,e.gdbVersion=this.gdbVersion,e.returnGeometry=!0,r&&(e.compactGeometryEnabled=r.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference),t&&(t.supportsZ&&null!=this.returnZ&&(e.returnZ=this.returnZ),t.supportsM&&null!=this.returnM&&(e.returnM=this.returnM)),e.outFields=["*"];const i=(0,v.pC)(this.subtypeCode)?`${this.subtypeField} = ${this.subtypeCode}`:null,s=(0,I._)(this.definitionExpression,i);e.where=s||"1=1";const{timeOffset:o,timeExtent:n}=this;return e.timeExtent=null!=o&&null!=n?n.offset(-o.value,o.unit):n||null,e.multipatchOption="multipatch"===this.geometryType?"xyFootprint":null,e}async deleteAttachments(e,t){const{source:r}=await this.load();if(await this._checkAttachmentSupport(e),!r.deleteAttachments)throw new h.Z(Bt,"Layer source does not support deleteAttachments capability");return r.deleteAttachments(e,t)}async fetchRecomputedExtents(e){const{source:t}=await this.load({signal:e?.signal});if(!t.fetchRecomputedExtents)throw new h.Z(Bt,"Layer source does not support fetchUpdates capability");return t.fetchRecomputedExtents(e)}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(null==i)return null;let s=null;return r?.some((e=>{const{id:t}=e;return null!=t&&(t.toString()===i.toString()&&(s=e),!!s)})),s}getFieldDomain(e,t){const r=t&&t.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}async queryAttachments(e,t){e=Lt.Z.from(e);const{source:r,capabilities:i}=await this.load();if(!i?.data?.supportsAttachment)throw new h.Z(Bt,"this layer doesn't support attachments");const{attachmentTypes:s,objectIds:o,globalIds:n,num:a,size:l,start:p,where:u}=e;if(!i?.operations?.supportsQueryAttachments){const t=o&&o.length>1,r=s&&s.length,i=n&&n.length,d=l&&l.length;if(t||r||i||d||a||p||u)throw new h.Z(Bt,"when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",e)}if(!o?.length&&!u)throw new h.Z(Bt,"'objectIds' or 'where' are required to perform attachment query",e);if(!r.queryAttachments)throw new h.Z(Bt,"Layer source does not support queryAttachments capability",e);return r.queryAttachments(e)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Zt.Z.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r;return i}async queryObjectIds(e,t){const{source:r}=await this.load();if(!r.queryObjectIds)throw new h.Z(Bt,"Layer source does not support queryObjectIds capability");return r.queryObjectIds(Zt.Z.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){const{source:r}=await this.load();if(!r.queryFeatureCount)throw new h.Z(Bt,"Layer source does not support queryFeatureCount capability");return r.queryFeatureCount(Zt.Z.from(e)??this.createQuery(),t)}async queryExtent(e,t){const{source:r}=await this.load();if(!r.queryExtent)throw new h.Z(Bt,"Layer source does not support queryExtent capability");return r.queryExtent(Zt.Z.from(e)??this.createQuery(),t)}async queryRelatedFeatures(e,t){const{source:r}=await this.load();if(!r.queryRelatedFeatures)throw new h.Z(Bt,"Layer source does not support queryRelatedFeatures capability");return r.queryRelatedFeatures(Pt.Z.from(e),t)}async queryRelatedFeaturesCount(e,t){const{source:r}=await this.load();if(!r.queryRelatedFeaturesCount)throw new h.Z(Bt,"Layer source does not support queryRelatedFeaturesCount capability");return r.queryRelatedFeaturesCount(Pt.Z.from(e),t)}async queryTopFeatures(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopFeatures||!i?.query?.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryTopFeatures capability");const s=await r.queryTopFeatures(Gt.Z.from(e),t);if(s?.features)for(const e of s.features)e.layer=e.sourceLayer=this;return s}async queryTopObjectIds(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopObjectIds||!i?.query.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryTopObjectIds capability");return r.queryTopObjectIds(Gt.Z.from(e),t)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopExtents||!i?.query?.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryTopExtents capability");return r.queryTopExtents(Gt.Z.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopCount||!i?.query?.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryFeatureCount capability");return r.queryTopCount(Gt.Z.from(e),t)}read(e,t){const r=e.featureCollection;if(r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:s}=t;if(this.dynamicDataSource)return s?.push(zt(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==i)return s?.push(zt(this,"using a table source cannot be written to web scenes and web maps")),null;if(this._hasMemorySource())return s?.push(zt(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===r&&"tables"===i)return s?.push(zt(this,"using a non-table source cannot be written to tables in web maps")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new h.Z(Bt,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,qt.D)(this,e))}async save(e){return(await Promise.all([r.e(4547),r.e(2664)]).then(r.bind(r,32664))).save(this,e)}async saveAs(e,t){return(await Promise.all([r.e(4547),r.e(2664)]).then(r.bind(r,32664))).saveAs(this,e,t)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,C.RB)("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_checkAttachmentSupport(e){const{attributes:t}=e,{objectIdField:r}=this;return this.get("capabilities.data.supportsAttachment")?e?t?r&&t[r]?Promise.resolve():Promise.reject(new h.Z(Bt,`feature is missing the identifying attribute ${r}`)):Promise.reject(new h.Z(Bt,"'attributes' are required on a feature to query attachments")):Promise.reject(new h.Z(Bt,"A feature is required to add/delete/update attachments")):Promise.reject(new h.Z(Bt,"this layer doesn't support attachments"))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstLayerId(e){return(0,u.default)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return Array.isArray(t.layers)&&t.layers.length>0?t.layers[0].id:Array.isArray(t.tables)&&t.tables.length>0?t.tables[0].id:void 0}))}async _initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,_t.YN)(this.renderer,this.fieldsIndex),(0,_t.UF)(this.timeInfo,this.fieldsIndex),(0,At.y)(this,{origin:"service"})}async hasDataChanged(){if(this.source?.refresh)try{const{dataChanged:e,updates:t}=await(this.source?.refresh());if((0,v.pC)(t)&&(this.sourceJSON={...this.sourceJSON,...t},this.read(t,{origin:"service",url:this.parsedUrl})),e)return!0}catch{}if(this.definitionExpression)try{return(await(0,I.E)(this.definitionExpression,this.fieldsIndex)).hasDateFunctions}catch{}return!1}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype&&e.prototype.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new h.Z("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new h.Z("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this._handles.add([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this._handles.remove("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}_readAnalyticsCapabilities(e){return{supportsCacheHint:Xt(e.advancedQueryCapabilities,"queryAnalytics")}}_readAttachmentCapabilities(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:Xt(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:Ht(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=kt[e.name];t&&(r[t]=!!e.isEnabled)})),r}_readDataCapabilities(e){return{isVersioned:Ht(e,"isDataVersioned",!1),supportsAttachment:Ht(e,"hasAttachments",!1),supportsM:Ht(e,"hasM",!1),supportsZ:Ht(e,"hasZ",!1)}}_readMetadataCapabilities(e){return{supportsAdvancedFieldProperties:Ht(e,"supportsFieldDescriptionProperty",!1)}}_readOperationsCapabilities(e,t){const r=e?e.toLowerCase().split(",").map((e=>e.trim())):[],i=this.url?(0,ht.Qc)(this.url):null,s=r.includes((0,v.pC)(i)&&"MapServer"===i.serverType?"data":"query"),o=r.includes("editing")&&!t.datesInUnknownTimezone;let n=o&&r.includes("create"),a=o&&r.includes("delete"),l=o&&r.includes("update");const p=r.includes("changetracking"),u=t.advancedQueryCapabilities;return o&&!(n||a||l)&&(n=a=l=!0),{supportsCalculate:Ht(t,"supportsCalculate",!1),supportsTruncate:Ht(t,"supportsTruncate",!1),supportsValidateSql:Ht(t,"supportsValidateSql",!1),supportsAdd:n,supportsDelete:a,supportsEditing:o,supportsChangeTracking:p,supportsQuery:s,supportsQueryAnalytics:Ht(u,"supportsQueryAnalytic",!1),supportsQueryAttachments:Ht(u,"supportsQueryAttachments",!1),supportsQueryTopFeatures:Ht(u,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:Ht(t,"supportsAttachmentsResizing",!1),supportsSync:r.includes("sync"),supportsUpdate:l,supportsExceedsLimitStatistics:Ht(t,"supportsExceedsLimitStatistics",!1)}}_readQueryCapabilities(e){const t=e.advancedQueryCapabilities,r=e.ownershipBasedAccessControlForFeatures,i=e.archivingInfo,s=this.url?.includes("MapServer"),o=!(0,b.Z)("mapserver-pbf-enabled")&&s&&(this.version??0)<10.81,n=(0,ht.M8)(this.url),a=(e.supportedQueryFormats||"").split(",").reduce(((e,t)=>{const r=t.toLowerCase().trim();return r&&e.add(r),e}),new Set);return{supportsStatistics:Ht(t,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:Ht(t,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:Ht(t,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:Kt(t),supportsCentroid:Ht(t,"supportsReturningGeometryCentroid",!1),supportsDistance:Ht(t,"supportsQueryWithDistance",!1),supportsDistinct:Ht(t,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:Ht(t,"supportsReturningQueryExtent",!1),supportsGeometryProperties:Ht(t,"supportsReturningGeometryProperties",!1),supportsHavingClause:Ht(t,"supportsHavingClause",!1),supportsOrderBy:Ht(t,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:Ht(t,"supportsPagination",!1),supportsQuantization:Ht(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:Ht(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:Ht(e,"supportsReturningQueryGeometry",!1),supportsResultType:Ht(t,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:Ht(t,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:Ht(t,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:Ht(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:Ht(t,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:Ht(r,"allowOthersToQuery",!0),supportsHistoricMoment:Ht(i,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:!o&&a.has("pbf"),supportsDisjointSpatialRelationship:Ht(t,"supportsDisjointSpatialRel",!1),supportsCacheHint:Ht(t,"supportsQueryWithCacheHint",!1)||Xt(t,"query"),supportsDefaultSpatialReference:Ht(t,"supportsDefaultSR",!1),supportsCompactGeometry:n,maxRecordCountFactor:$t(e,"maxRecordCountFactor",void 0),maxRecordCount:$t(e,"maxRecordCount",void 0),standardMaxRecordCount:$t(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:$t(e,"tileMaxRecordCount",void 0)}}_readQueryRelatedCapabilities(e){const t=e.advancedQueryCapabilities,r=Ht(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:Ht(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:Xt(t,"queryRelated")}}_readQueryTopFeaturesCapabilities(e){return{supportsCacheHint:Xt(e.advancedQueryCapabilities,"queryTopFilter")}}_readEditingCapabilities(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:Ht(e,"allowGeometryUpdates",!0),supportsGlobalId:Ht(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:Ht(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:Ht(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:Ht(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:Ht(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:Ht(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:Ht(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:Ht(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:Ht(t,"allowOthersToUpdate",!0)}}};(0,s._)([(0,x.Cb)({readOnly:!0,json:{read:!1}})],tr.prototype,"capabilities",void 0),(0,s._)([(0,E.r)("service","capabilities",["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"])],tr.prototype,"readCapabilities",null),(0,s._)([(0,x.Cb)({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],tr.prototype,"charts",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"createQueryVersion",null),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"layerDefinition.copyrightText"},origins:{service:{read:{source:"copyrightText"}}}}})],tr.prototype,"copyright",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"datesInUnknownTimezone",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"layerDefinition.displayField"},origins:{service:{read:{source:"displayField"}}}}})],tr.prototype,"displayField",void 0),(0,s._)([(0,x.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],tr.prototype,"definitionExpression",void 0),(0,s._)([(0,x.Cb)({types:d.LB,readOnly:!0})],tr.prototype,"defaultSymbol",void 0),(0,s._)([(0,x.Cb)({type:Dt.n})],tr.prototype,"dynamicDataSource",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"editFieldsInfo",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"editingEnabled",null),(0,s._)([(0,E.r)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],tr.prototype,"readEditingEnabled",null),(0,s._)([(0,E.r)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],tr.prototype,"readEditingEnabledFromWebMap",null),(0,s._)([(0,O.c)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],tr.prototype,"writeEditingEnabled",null),(0,s._)([(0,O.c)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],tr.prototype,"writeEditingEnabledToWebMap",null),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"editingInfo",void 0),(0,s._)([(0,E.r)("editingInfo")],tr.prototype,"readEditingInfo",null),(0,s._)([(0,x.Cb)((()=>{const e=(0,g.d9)(mt.PV),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],tr.prototype,"elevationInfo",void 0),(0,s._)([(0,x.Cb)(ft.d)],tr.prototype,"featureReduction",void 0),(0,s._)([(0,x.Cb)({...Yt.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:er}}}}})],tr.prototype,"fields",void 0),(0,s._)([(0,x.Cb)(Yt.fieldsIndex)],tr.prototype,"fieldsIndex",void 0),(0,s._)([(0,x.Cb)({type:jt.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],tr.prototype,"floorInfo",void 0),(0,s._)([(0,x.Cb)({type:Ae,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],tr.prototype,"formTemplate",void 0),(0,s._)([(0,x.Cb)({type:Le.Z,json:{origins:{service:{read:{source:"extent"}}},read:{source:"layerDefinition.extent"}}})],tr.prototype,"fullExtent",void 0),(0,s._)([(0,x.Cb)()],tr.prototype,"gdbVersion",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,type:It,json:{read:{source:"geometryProperties"}}})],tr.prototype,"geometryFieldsInfo",void 0),(0,s._)([(0,x.Cb)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:Vt.read},"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:er,writer(e,t,r){const i=e?Vt.toJSON(e):null;i&&(0,C.RB)(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:Vt.read}}})],tr.prototype,"geometryType",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasM"}}})],tr.prototype,"hasM",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasZ"}}})],tr.prototype,"hasZ",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,type:Ze.Z})],tr.prototype,"heightModelInfo",void 0),(0,s._)([(0,x.Cb)({type:Date})],tr.prototype,"historicMoment",void 0),(0,s._)([(0,x.Cb)(mt.id)],tr.prototype,"id",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],tr.prototype,"infoFor3D",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],tr.prototype,"isTable",void 0),(0,s._)([(0,E.r)("service","isTable",["type","geometryType"]),(0,E.r)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],tr.prototype,"readIsTable",null),(0,s._)([(0,O.c)("web-map","isTable")],tr.prototype,"writeIsTable",null),(0,s._)([(0,x.Cb)(mt.iR)],tr.prototype,"labelsVisible",void 0),(0,s._)([(0,x.Cb)({type:[Ft.Z],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:xt.r},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:xt.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],tr.prototype,"labelingInfo",void 0),(0,s._)([(0,x.Cb)((()=>{const e=(0,g.d9)(mt.bT);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){(0,C.RB)(r,(0,Nt.a)(e),t)}}},e})())],tr.prototype,"opacity",void 0),(0,s._)([(0,x.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],tr.prototype,"layerId",void 0),(0,s._)([(0,x.Cb)(mt.rn)],tr.prototype,"legendEnabled",void 0),(0,s._)([(0,x.Cb)({type:["show","hide"],json:(()=>{const e=(0,g.d9)(mt.rT.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],tr.prototype,"listMode",void 0),(0,s._)([(0,x.Cb)(mt.rO)],tr.prototype,"minScale",void 0),(0,s._)([(0,E.r)("service","minScale",["minScale","effectiveMinScale"])],tr.prototype,"readMinScale",null),(0,s._)([(0,x.Cb)(mt.u1)],tr.prototype,"maxScale",void 0),(0,s._)([(0,E.r)("service","maxScale",["maxScale","effectiveMaxScale"])],tr.prototype,"readMaxScale",null),(0,s._)([(0,x.Cb)({type:String})],tr.prototype,"globalIdField",void 0),(0,s._)([(0,E.r)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"]),(0,E.r)("service","globalIdField",["globalIdField","fields"])],tr.prototype,"readGlobalIdFieldFromService",null),(0,s._)([(0,x.Cb)({type:String,json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:er}}}}})],tr.prototype,"objectIdField",void 0),(0,s._)([(0,E.r)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"]),(0,E.r)("service","objectIdField",["objectIdField","fields"])],tr.prototype,"readObjectIdFieldFromService",null),(0,s._)([(0,x.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],tr.prototype,"operationalLayerType",void 0),(0,s._)([(0,x.Cb)(Yt.outFields)],tr.prototype,"outFields",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"parsedUrl",null),(0,s._)([(0,x.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],tr.prototype,"path",void 0),(0,s._)([(0,x.Cb)(mt.C_)],tr.prototype,"popupEnabled",void 0),(0,s._)([(0,x.Cb)({type:o.Z,json:{name:"popupInfo",write:!0}})],tr.prototype,"popupTemplate",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"defaultPopupTemplate",null),(0,s._)([(0,x.Cb)({type:[Rt],readOnly:!0})],tr.prototype,"relationships",void 0),(0,s._)([(0,x.Cb)({types:p.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:p.o,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],tr.prototype,"renderer",null),(0,s._)([(0,E.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,E.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],tr.prototype,"readRenderer",null),(0,s._)([(0,x.Cb)()],tr.prototype,"sourceJSON",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"returnM",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"returnZ",void 0),(0,s._)([(0,x.Cb)((()=>{const e=(0,g.d9)(mt.YI);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],tr.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,x.Cb)({clonable:!1})],tr.prototype,"source",null),(0,s._)([(0,j.p)("source")],tr.prototype,"castSource",null),(0,s._)([(0,E.r)("portal-item","source",["featureSet"]),(0,E.r)("web-map","source",["featureSet"])],tr.prototype,"readSource",null),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"serviceDefinitionExpression",void 0),(0,s._)([(0,E.r)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],tr.prototype,"readServiceDefinitionExpression",null),(0,s._)([(0,x.Cb)({type:Pe.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},read:{source:"layerDefinition.extent.spatialReference"}}})],tr.prototype,"spatialReference",void 0),(0,s._)([(0,x.Cb)({type:Number})],tr.prototype,"subtypeCode",void 0),(0,s._)([(0,x.Cb)({type:String,json:{origins:{service:{read:!0}}}})],tr.prototype,"subtypeField",void 0),(0,s._)([(0,x.Cb)({type:[gt.Z]})],tr.prototype,"templates",void 0),(0,s._)([(0,E.r)("templates",["editFieldsInfo","creatorField","editorField","templates"])],tr.prototype,"readTemplates",null),(0,s._)([(0,x.Cb)({type:Mt.Z})],tr.prototype,"timeInfo",void 0),(0,s._)([(0,x.Cb)()],tr.prototype,"title",void 0),(0,s._)([(0,E.r)("service","title",["name"]),(0,E.r)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],tr.prototype,"readTitle",null),(0,s._)([(0,E.r)("web-map","title",["layerDefinition.name","title"])],tr.prototype,"readTitleFromWebMap",null),(0,s._)([(0,x.Cb)({type:String})],tr.prototype,"sublayerTitleMode",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],tr.prototype,"trackIdField",void 0),(0,s._)([(0,x.Cb)({json:{read:!1}})],tr.prototype,"type",void 0),(0,s._)([(0,x.Cb)({type:String})],tr.prototype,"typeIdField",void 0),(0,s._)([(0,E.r)("service","typeIdField"),(0,E.r)("typeIdField",["layerDefinition.typeIdField"])],tr.prototype,"readTypeIdField",null),(0,s._)([(0,x.Cb)({type:[wt.Z]})],tr.prototype,"types",void 0),(0,s._)([(0,E.r)("service","types",["types"]),(0,E.r)("types",["layerDefinition.types"])],tr.prototype,"readTypes",null),(0,s._)([(0,x.Cb)({readOnly:!0,json:{write:!1}})],tr.prototype,"serverGens",void 0),(0,s._)([(0,x.Cb)({type:y.Z.ofType(bt),readOnly:!0})],tr.prototype,"indexes",void 0),(0,s._)([(0,x.Cb)(mt.HQ)],tr.prototype,"url",null),(0,s._)([(0,O.c)("url")],tr.prototype,"writeUrl",null),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"userIsAdmin",void 0),(0,s._)([(0,x.Cb)({json:{origins:{service:{read:!0}},read:!1}})],tr.prototype,"version",void 0),(0,s._)([(0,E.r)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],tr.prototype,"readVersion",null),(0,s._)([(0,x.Cb)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],tr.prototype,"visible",void 0),(0,s._)([(0,E.r)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],tr.prototype,"readVisible",null),tr=(0,s._)([(0,T.j)(Ut)],tr);const rr=(0,R.d)({types:d.QT}),ir=tr},66361:(e,t,r)=>{r.d(t,{dU:()=>a,lQ:()=>p,o1:()=>u});var i=r(43697),s=r(32448),o=r(22974),n=(r(92604),r(75215),r(20102),r(80442),r(52011));const a=new s.Z.EventEmitter,l=Symbol("EditBusLayer");function p(e){return e&&"object"==typeof e&&l in e}const u=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this.when().then((()=>{this.own([a.on("edits",(({layer:e,event:t})=>{if(e===this||e.url!==this.url)return;if(null!=e.layerId&&null!=this.layerId&&e.layerId===this.layerId)return void this.emit("edits",(0,o.d9)(t));const r=t.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(r){const{adds:e,updates:i,deletes:s}=r.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:e.map((({attributes:e})=>({objectId:e[this.objectIdField],globalId:e[this.globalIdField]}))),deletedFeatures:s.map((({attributes:e})=>({objectId:e[this.objectIdField],globalId:e[this.globalIdField]}))),updatedFeatures:i.map((({current:{attributes:e}})=>({objectId:e[this.objectIdField],globalId:e[this.globalIdField]}))),editedFeatures:(0,o.d9)(t.editedFeatures)};this.emit("edits",n)}}))])}),(()=>{}))}};return t=l,r=(0,i._)([(0,n.j)("esri.layers.mixins.EditBusLayer")],r),r}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var i,s=r(43697),o=r(78286),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),p=r(96674);const u=new l.X({asc:"ascending",desc:"descending"});let d=i=class extends p.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"order",void 0),d=i=(0,s._)([(0,a.j)("esri.layers.support.OrderByInfo")],d);const c=d;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const s=new c;return s.read(i,r),[s]}function h(e,t,r,i){const s=e.find((e=>!!e.field));s&&(0,o.RB)(r,[s.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,n.Cb)({type:[c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:h}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},40555:(e,t,r)=>{r.d(t,{y:()=>n});var i=r(66643),s=r(95330),o=r(20941);async function n(e,t,r){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const a=await(0,i.q6)(n.populateFromStyle());if((0,s.k_)(r),!1===a.ok){const r=a.error;t&&t.messages&&t.messages.push(new o.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t.origin)}}}},59431:(e,t,r)=>{r.d(t,{P:()=>a});var i=r(70586),s=r(67900),o=r(8744);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(!e&&!t||!r)return;const i=(0,s._R)(r);l(e,r,i),l(t,r,i)}function l(e,t,r){if(e)for(const i of e)p(i.geometry,t,r)}function p(e,t,r){if((0,i.Wi)(e)||!e.spatialReference||(0,o.fS)(e.spatialReference,t))return;const a=(0,s._R)(e.spatialReference)/r;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("rings"in e)n(e,e.rings,a);else if("paths"in e)n(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=a)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3121],{79235:(e,t,r)=>{r.d(t,{Z:()=>w});var i,s=r(43697),o=r(67676),n=r(35454),a=r(96674),l=r(67900),p=r(20941),u=r(5600),d=(r(80442),r(75215),r(71715)),c=r(52011),y=r(30556);const h=(0,n.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,o.e$)(m,"orthometric");const b=(0,n.w)()({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 f=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new p.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return b.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||b.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({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 r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new p.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,u.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,s._)([(0,y.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,s._)([(0,d.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,s._)([(0,u.Cb)({type:b.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:b.jsonValues,write:b.write}}}})],f.prototype,"heightUnit",void 0),(0,s._)([(0,d.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,s._)([(0,d.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,s._)([(0,u.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,s._)([(0,d.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,s._)([(0,c.j)("esri.geometry.HeightModelInfo")],f);const w=f},3121:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ir});var i,s=r(43697),o=r(51773),n=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382)),a=r(81571),l=r(91423),p=r(32400),u=r(3172),d=r(9790),c=r(2368),y=r(46791),h=r(20102),m=r(61247),b=r(80442),f=r(35454),g=r(22974),w=r(92604),v=r(70586),_=r(16453),C=r(78286),S=r(95330),I=r(42033),F=r(17452),x=r(5600),j=r(90578),E=r(71715),T=r(52011),O=r(30556),R=r(63213),M=r(96674),q=(r(67676),r(75215));let D=i=class extends M.wq{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],D.prototype,"expression",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],D.prototype,"name",void 0),(0,s._)([(0,x.Cb)({type:["boolean","date","number","string"],json:{write:!0}})],D.prototype,"returnType",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],D.prototype,"title",void 0),D=i=(0,s._)([(0,T.j)("esri.form.ExpressionInfo")],D);const A=D;let L=class extends M.wq{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],L.prototype,"description",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],L.prototype,"label",void 0),(0,s._)([(0,x.Cb)()],L.prototype,"type",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],L.prototype,"visibilityExpression",void 0),L=(0,s._)([(0,T.j)("esri.form.elements.Element")],L);const Z=L;var P;let G=P=class extends M.wq{constructor(e){super(e),this.type=null}clone(){return new P({type:this.type})}};(0,s._)([(0,x.Cb)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],G.prototype,"type",void 0),G=P=(0,s._)([(0,T.j)("esri.form.elements.inputs.AttachmentInput")],G);const Q=G;var N;let V=N=class extends Z{constructor(e){super(e),this.attachmentKeyword=null,this.editable=!0,this.input=null,this.type="attachment"}clone(){return new N({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],V.prototype,"attachmentKeyword",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],V.prototype,"editable",void 0),(0,s._)([(0,x.Cb)({type:Q,json:{read:{source:"inputType"},write:{target:"inputType"}}})],V.prototype,"input",void 0),(0,s._)([(0,x.Cb)({type:["attachment"],json:{read:!1,write:!0}})],V.prototype,"type",void 0),V=N=(0,s._)([(0,T.j)("esri.form.elements.AttachmentElement")],V);const k=V;let B=class extends M.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,x.Cb)()],B.prototype,"type",void 0),B=(0,s._)([(0,T.j)("esri.form.elements.inputs.Input")],B);const U=B;let J=class extends U{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],J.prototype,"maxLength",void 0),(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],J.prototype,"minLength",void 0),J=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextInput")],J);const z=J;var W;let H=W=class extends z{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new W({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,x.Cb)({type:["barcode-scanner"],json:{read:!1,write:!0}})],H.prototype,"type",void 0),H=W=(0,s._)([(0,T.j)("esri.form.elements.inputs.BarcodeScannerInput")],H);const $=H;var K;let X=K=class extends U{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="combo-box"}clone(){return new K({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],X.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],X.prototype,"showNoValueOption",void 0),(0,s._)([(0,x.Cb)({type:["combo-box"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=K=(0,s._)([(0,T.j)("esri.form.elements.inputs.ComboBoxInput")],X);const Y=X;var ee;function te(e){return null!=e?new Date(e):null}function re(e){return e?e.getTime():null}let ie=ee=class extends U{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=re(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=re(e)}clone(){return new ee({includeTime:this.includeTime,max:this.max,min:this.min,type:this.type})}};(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],ie.prototype,"includeTime",void 0),(0,s._)([(0,x.Cb)({type:Date,json:{type:Number,write:!0}})],ie.prototype,"max",void 0),(0,s._)([(0,E.r)("max")],ie.prototype,"readMax",null),(0,s._)([(0,O.c)("max")],ie.prototype,"writeMax",null),(0,s._)([(0,x.Cb)({type:Date,json:{type:Number,write:!0}})],ie.prototype,"min",void 0),(0,s._)([(0,E.r)("min")],ie.prototype,"readMin",null),(0,s._)([(0,O.c)("min")],ie.prototype,"writeMin",null),(0,s._)([(0,x.Cb)({type:["datetime-picker"],json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=ee=(0,s._)([(0,T.j)("esri.form.elements.inputs.DateTimePickerInput")],ie);const se=ie;var oe;let ne=oe=class extends U{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="radio-buttons"}clone(){return new oe({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],ne.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"showNoValueOption",void 0),(0,s._)([(0,x.Cb)({type:["radio-buttons"],json:{read:!1,write:!0}})],ne.prototype,"type",void 0),ne=oe=(0,s._)([(0,T.j)("esri.form.elements.inputs.RadioButtonsInput")],ne);const ae=ne;var le;let pe=le=class extends U{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new le({offValue:this.offValue,onValue:this.onValue})}};(0,s._)([(0,x.Cb)({type:[String,Number],json:{write:!0}})],pe.prototype,"offValue",void 0),(0,s._)([(0,x.Cb)({type:[String,Number],json:{write:!0}})],pe.prototype,"onValue",void 0),(0,s._)([(0,x.Cb)({type:["switch"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=le=(0,s._)([(0,T.j)("esri.form.elements.inputs.SwitchInput")],pe);const ue=pe;var de;let ce=de=class extends z{constructor(e){super(e),this.type="text-area"}clone(){return new de({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,x.Cb)({type:["text-area"],json:{read:!1,write:!0}})],ce.prototype,"type",void 0),ce=de=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextAreaInput")],ce);const ye=ce;var he;let me=he=class extends z{constructor(e){super(e),this.type="text-box"}clone(){return new he({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,x.Cb)({type:["text-box"],json:{read:!1,write:!0}})],me.prototype,"type",void 0),me=he=(0,s._)([(0,T.j)("esri.form.elements.inputs.TextBoxInput")],me);const be={base:U,key:"type",typeMap:{"barcode-scanner":$,"combo-box":Y,"datetime-picker":se,"radio-buttons":ae,switch:ue,"text-area":ye,"text-box":me}};var fe,ge=r(72729);let we=fe=class extends Z{constructor(e){super(e),this.domain=null,this.editable=!0,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new fe({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({types:ge.V5,json:{read:{reader:ge.im},write:!0}})],we.prototype,"domain",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],we.prototype,"editable",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"editableExpression",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"fieldName",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"hint",void 0),(0,s._)([(0,x.Cb)({types:be,json:{read:{source:"inputType"},write:{target:"inputType"}}})],we.prototype,"input",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"requiredExpression",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:!1,write:!0}})],we.prototype,"type",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],we.prototype,"valueExpression",void 0),we=fe=(0,s._)([(0,T.j)("esri.form.elements.FieldElement")],we);const ve=we;var _e,Ce=r(44729);let Se=_e=class extends Z{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editable=!0,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new _e({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:(0,g.d9)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],Se.prototype,"displayCount",void 0),(0,s._)([(0,x.Cb)({type:["list"],json:{write:!0}})],Se.prototype,"displayType",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{write:!0}})],Se.prototype,"editable",void 0),(0,s._)([(0,x.Cb)({type:[Ce.Z],json:{write:!0}})],Se.prototype,"orderByFields",void 0),(0,s._)([(0,x.Cb)({type:Number,json:{write:!0}})],Se.prototype,"relationshipId",void 0),(0,s._)([(0,x.Cb)({type:["relationship"],json:{read:!1,write:!0}})],Se.prototype,"type",void 0),Se=_e=(0,s._)([(0,T.j)("esri.form.elements.RelationshipElement")],Se);const Ie=Se;function Fe(e){return{typesWithGroup:{base:Z,key:"type",typeMap:{attachment:k,field:ve,group:e,relationship:Ie}},typesWithoutGroup:{base:Z,key:"type",typeMap:{attachment:k,field:ve,relationship:Ie}}}}function xe(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}function je(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}function Ee(e,t,r=!0){return e?e.map((e=>(0,q.N7)(r?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Te;let Oe=Te=class extends Z{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Ee(e,Re,!1)}readElements(e,t){return xe(t.formElements,Re,!1)}writeElements(e,t){t.formElements=je(e,Re,!1)}clone(){return new Te({description:this.description,elements:(0,g.d9)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,x.Cb)({json:{write:!0}})],Oe.prototype,"elements",void 0),(0,s._)([(0,j.p)("elements")],Oe.prototype,"castElements",null),(0,s._)([(0,E.r)("elements",["formElements"])],Oe.prototype,"readElements",null),(0,s._)([(0,O.c)("elements")],Oe.prototype,"writeElements",null),(0,s._)([(0,x.Cb)({type:["collapsed","expanded"],json:{write:!0}})],Oe.prototype,"initialState",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:!1,write:!0}})],Oe.prototype,"type",void 0),Oe=Te=(0,s._)([(0,T.j)("esri.form.elements.GroupElement")],Oe);const Re=Fe(Oe);var Me;const qe=Fe(Oe);let De=Me=class extends M.wq{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.title=null}castElements(e){return Ee(e,qe)}readElements(e,t){return xe(t.formElements,qe)}writeElements(e,t){t.formElements=je(e,qe)}clone(){return new Me({description:this.description,expressionInfos:(0,g.d9)(this.expressionInfos),elements:(0,g.d9)(this.elements),title:this.title})}};(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],De.prototype,"description",void 0),(0,s._)([(0,x.Cb)({json:{write:!0}})],De.prototype,"elements",void 0),(0,s._)([(0,j.p)("elements")],De.prototype,"castElements",null),(0,s._)([(0,E.r)("elements",["formElements"])],De.prototype,"readElements",null),(0,s._)([(0,O.c)("elements")],De.prototype,"writeElements",null),(0,s._)([(0,x.Cb)({type:[A],json:{write:!0}})],De.prototype,"expressionInfos",void 0),(0,s._)([(0,x.Cb)({type:String,json:{write:!0}})],De.prototype,"title",void 0),De=Me=(0,s._)([(0,T.j)("esri.form.FormTemplate")],De);const Ae=De;var Le=r(6570),Ze=r(79235),Pe=r(82971),Ge=r(87085),Qe=(r(66577),r(38171)),Ne=r(3920),Ve=r(83379),ke=r(609),Be=r(78346),Ue=r(52421),Je=r(59431),ze=r(28694),We=r(74889),He=r(38913),$e=r(86973);let Ke=0;const Xe="esri.layers.graphics.sources.MemorySource",Ye=w.Z.getLogger(Xe);let et=class extends(Ve.Z.LoadableMixin((0,ke.v)((0,Ne.p)(y.Z)))){constructor(e){super(e),this._idToClientGraphic=null,this.type="memory"}load(e){const t=(0,v.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,ze.p)(e,this.layer.spatialReference,r);const i=We.default.fromJSON(r);if(!this._requiresClientGraphicMapping())return i;const s=this.layer.objectIdField;for(const e of i.features){const t=e.attributes[s],r=this._idToClientGraphic.get(t);r&&(e.geometry=r.geometry)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new h.Z("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,ze.p)(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:Le.Z.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async _applyEdits(e){if(!this._connection)throw new h.Z("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&i.push(e)}const n=e.updateFeatures&&this._idToClientGraphic?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),n){const e=o(t);null!=e&&n.set(e,t)}(0,Je.P)(r?r.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:l}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:s,deletes:i});return this.fullExtent=a,r&&r.finish(l.uidToObjectId),this._updateClientGraphicIds(n,l),this._createEditsResult(l)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||(0,v.Wi)(e))return;const r=[];for(const{geometry:i}of e)!(0,v.pC)(i)||"mesh"!==i.type||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateClientGraphicIds(e,t){if(this._idToClientGraphic){if(e)for(const r of t.updateResults){if(!r.success)continue;const t=e.get(r.objectId);null!=t&&this._addIdToClientGraphic(t)}for(const e of t.deleteResults)e.success&&this._idToClientGraphic.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new h.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let s=0;s<e.length;s++){const o=e[s],n=this._serializeFeature(o);!i&&(0,v.pC)(o.geometry)&&(i=o.geometry.type),r[s]=n,t.set(`${n.uid}`,o)}const s=this;return{features:r,inferredGeometryType:i,finish(e){const r=s.sourceJSON.objectIdField;for(const i in e){const o=e[i],n=t.get(i);n&&(n.attributes||(n.attributes={}),-1===o?delete n.attributes[r]:n.attributes[r]=o,s._addIdToClientGraphic(n))}}}}_addIdToClientGraphic(e){if(!this._idToClientGraphic)return;const t=this.sourceJSON.objectIdField,r=e.attributes&&e.attributes[t];null!=r&&this._idToClientGraphic.set(r,e)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=(Ke++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return(0,v.Wi)(t)?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?He.Z.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,Be.bA)("MemorySourceWorker",{strategy:(0,b.Z)("feature-layers-workers")?"dedicated":"local",signal:e});const{fields:t,spatialReference:r,objectIdField:i,hasM:s,hasZ:o,timeInfo:n}=this.layer,a="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const l=this._prepareAddFeatures(this.items);this.handles.add(this.on("before-changes",(e=>{Ye.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()})));const p={features:l.features,fields:t&&t.map((e=>e.toJSON())),geometryType:$e.P$.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||o,objectIdField:i,spatialReference:a?null:r&&r.toJSON(),timeInfo:n?n.toJSON():null},u=await this._connection.invoke("load",p,{signal:e});for(const e of u.warnings)Ye.warn(e.message,{layer:this.layer,warning:e});u.featureErrors.length&&Ye.warn(`Encountered ${u.featureErrors.length} validation errors while loading features`,u.featureErrors);const d=u.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(l.inferredGeometryType)&&(d.geometryType=$e.P$.toJSON(l.inferredGeometryType)),this.sourceJSON=d,this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map),l.finish(u.assignedObjectIds)}};(0,s._)([(0,Ue.c)({Type:Qe.Z,ensureType:(0,q.se)(Qe.Z)})],et.prototype,"itemType",void 0),(0,s._)([(0,x.Cb)()],et.prototype,"type",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],et.prototype,"layer",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],et.prototype,"_workerGeometryType",null),(0,s._)([(0,x.Cb)()],et.prototype,"sourceJSON",void 0),et=(0,s._)([(0,T.j)(Xe)],et);var tt,rt=r(54295),it=r(17287),st=r(71612),ot=r(17017),nt=r(66361),at=r(69637),lt=r(38009),pt=r(68825),ut=r(16859),dt=r(34760),ct=r(72965),yt=r(28294),ht=r(66677),mt=r(21506);let bt=tt=class extends M.wq{constructor(e){super(e)}clone(){const{name:e,fields:t,isAscending:r,isUnique:i,description:s}=this;return new tt({name:e,fields:t,isAscending:r,isUnique:i,description:s})}};(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"name",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"fields",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"isAscending",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"isUnique",void 0),(0,s._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"description",void 0),bt=tt=(0,s._)([(0,T.j)("esri.layers.support.FeatureIndex")],bt);var ft=r(2075),gt=r(70082),wt=r(16451),vt=r(53518),_t=r(35671),Ct=r(67900);let St=class extends((0,c.J)(M.wq)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],St.prototype,"shapeAreaField",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],St.prototype,"shapeLengthField",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:e=>Ct.gV.read(e)||Ct.Jo.read(e)}})],St.prototype,"units",void 0),St=(0,s._)([(0,T.j)("esri.layers.support.GeometryFieldsInfo")],St);const It=St;var Ft=r(2319),xt=r(30707),jt=r(56765);const Et=new f.X({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),Tt=new f.X({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let Ot=class extends((0,c.J)(M.wq)){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,s._)([(0,x.Cb)({json:{read:Et.read,write:Et.write}})],Ot.prototype,"cardinality",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"composite",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"id",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"keyField",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"keyFieldInRelationshipTable",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"name",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"relatedTableId",void 0),(0,s._)([(0,x.Cb)({json:{read:!0,write:!0}})],Ot.prototype,"relationshipTableId",void 0),(0,s._)([(0,x.Cb)({json:{read:Tt.read,write:Tt.write}})],Ot.prototype,"role",void 0),Ot=(0,s._)([(0,T.j)("esri.layers.support.Relationship")],Ot);const Rt=Ot;var Mt=r(30547),qt=r(60199),Dt=r(10158),At=r(40555),Lt=r(56545),Zt=r(57444),Pt=r(75935),Gt=r(28141),Qt=r(32163),Nt=r(65242);const Vt=new f.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),kt={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},Bt="FeatureLayer",Ut="esri.layers.FeatureLayer",Jt=w.Z.getLogger(Ut);function zt(e,t){return new h.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Wt(e){return e&&e instanceof y.Z}function Ht(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function $t(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function Kt(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function Xt(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}const Yt=(0,vt.v)();function er(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let tr=class extends((0,at.b)((0,nt.o1)((0,st.h)((0,pt.c)((0,yt.n)((0,ct.M)((0,dt.Q)((0,it.Y)((0,lt.q)((0,ut.I)((0,_.R)((0,ot.N)((0,rt.V)((0,c.J)(Ge.Z))))))))))))))){constructor(...e){super(...e),this._handles=new m.Z,this.capabilities=null,this.charts=null,this.copyright=null,this.datesInUnknownTimezone=!1,this.displayField=null,this.definitionExpression=null,this.dynamicDataSource=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.formTemplate=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.layerId=void 0,this.legendEnabled=!0,this.minScale=0,this.maxScale=0,this.globalIdField=null,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.relationships=null,this.sourceJSON=null,this.returnM=void 0,this.returnZ=void 0,this.screenSizePerspectiveEnabled=!0,this.serviceDefinitionExpression=null,this.spatialReference=Pe.Z.WGS84,this.subtypeCode=null,this.subtypeField=null,this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.trackIdField=null,this.type="feature",this.typeIdField=null,this.types=null,this.indexes=new(y.Z.ofType(bt)),this.userIsAdmin=!1,this.version=void 0,this.visible=!0}destroy(){this.source?.destroy(),this._handles=(0,v.SC)(this._handles)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,v.pC)(e)?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this._initLayerProperties(e)))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection"]},e).catch(S.r9).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new h.Z("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this._initLayerProperties(await this.createGraphicsSource(t))})).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}readCapabilities(e,t){return t=t.layerDefinition||t,{analytics:this._readAnalyticsCapabilities(t),attachment:this._readAttachmentCapabilities(t),data:this._readDataCapabilities(t),metadata:this._readMetadataCapabilities(t),operations:this._readOperationsCapabilities(t.capabilities||e,t),query:this._readQueryCapabilities(t),queryRelated:this._readQueryRelatedCapabilities(t),queryTopFeatures:this._readQueryTopFeaturesCapabilities(t),editing:this._readEditingCapabilities(t)}}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}readEditingInfo(e,t){const{editingInfo:r}=t;return r?{lastEditDate:null!=r.lastEditDate?new Date(r.lastEditDate):null}:null}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&(0,C.RB)(r,e?"Table":"Feature Layer",t)}readMinScale(e,t){return t.effectiveMinScale||e||0}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}readObjectIdFieldFromService(e,t){if((t=t.layerDefinition||t).objectIdField)return t.objectIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeOID"===e.type)return e.name}get parsedUrl(){const e=this.url?(0,F.mN)(this.url):null;return null!=e&&(null!=this.dynamicDataSource?e.path=(0,F.v_)(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=(0,F.v_)(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,_t.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){const i=(t=t.layerDefinition||t).drawingInfo?.renderer;if(i){const e=(0,l.a)(i,t,r)??void 0;return e||Jt.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}if(t.defaultSymbol)return t.types&&t.types.length?new a.Z({defaultSymbol:rr(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map((e=>({id:e.id,symbol:rr(e.symbol,e,r)})))}):new n.Z({symbol:rr(t.defaultSymbol,t,r)})}set source(e){const t=this._get("source");t!==e&&(Wt(t)&&this._resetMemorySource(t),Wt(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof y.Z?new et({layer:this,items:e}):e:null}readSource(e,t){const r=We.default.fromJSON(t.featureSet);return new et({layer:this,items:r?.features??[]})}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readTemplates(e,t){const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e=e&&e.map((e=>gt.Z.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,s),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition&&t.layerDefinition.title;if(r){const e=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,ht.a7)(this.url,r):r;let t=r;if(!t&&this.url){const e=(0,ht.Qc)(this.url);(0,v.pC)(e)&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,ht.ld)(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition&&t.layerDefinition.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e&&e.map((e=>(e=wt.Z.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,s),e)))}set url(e){const t=(0,ht.XG)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:Jt});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,r,i){(0,ht.wH)(this,e,null,t,i)}readVersion(e,t){return t.currentVersion?t.currentVersion:t.hasOwnProperty("capabilities")||t.hasOwnProperty("drawingInfo")||t.hasOwnProperty("hasAttachments")||t.hasOwnProperty("htmlPopupType")||t.hasOwnProperty("relationships")||t.hasOwnProperty("timeInfo")||t.hasOwnProperty("typeIdField")||t.hasOwnProperty("types")?10:9.3}readVisible(e,t){return t.layerDefinition&&null!=t.layerDefinition.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const{source:r}=await this.load();if(await this._checkAttachmentSupport(e),!r.addAttachment)throw new h.Z(Bt,"Layer source does not support addAttachment capability");return r.addAttachment(e,t)}async updateAttachment(e,t,r){const{source:i}=await this.load();if(await this._checkAttachmentSupport(e),!i.updateAttachment)throw new h.Z(Bt,"Layer source does not support updateAttachment capability");return i.updateAttachment(e,t,r)}async applyEdits(e,t){const i=await r.e(7035).then(r.bind(r,87269)),s=await this.load();return i.applyEdits(s,s.source,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,Qt.eZ)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await(0,S.Hl)(Promise.all([r.e(4599),r.e(8899)]).then(r.bind(r,38899)),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=new Zt.Z,t=this.get("capabilities.data"),r=this.get("capabilities.query");e.dynamicDataSource=this.dynamicDataSource,e.historicMoment=this.historicMoment,e.gdbVersion=this.gdbVersion,e.returnGeometry=!0,r&&(e.compactGeometryEnabled=r.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference),t&&(t.supportsZ&&null!=this.returnZ&&(e.returnZ=this.returnZ),t.supportsM&&null!=this.returnM&&(e.returnM=this.returnM)),e.outFields=["*"];const i=(0,v.pC)(this.subtypeCode)?`${this.subtypeField} = ${this.subtypeCode}`:null,s=(0,I._)(this.definitionExpression,i);e.where=s||"1=1";const{timeOffset:o,timeExtent:n}=this;return e.timeExtent=null!=o&&null!=n?n.offset(-o.value,o.unit):n||null,e.multipatchOption="multipatch"===this.geometryType?"xyFootprint":null,e}async deleteAttachments(e,t){const{source:r}=await this.load();if(await this._checkAttachmentSupport(e),!r.deleteAttachments)throw new h.Z(Bt,"Layer source does not support deleteAttachments capability");return r.deleteAttachments(e,t)}async fetchRecomputedExtents(e){const{source:t}=await this.load({signal:e?.signal});if(!t.fetchRecomputedExtents)throw new h.Z(Bt,"Layer source does not support fetchUpdates capability");return t.fetchRecomputedExtents(e)}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(null==i)return null;let s=null;return r?.some((e=>{const{id:t}=e;return null!=t&&(t.toString()===i.toString()&&(s=e),!!s)})),s}getFieldDomain(e,t){const r=t&&t.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}async queryAttachments(e,t){e=Lt.Z.from(e);const{source:r,capabilities:i}=await this.load();if(!i?.data?.supportsAttachment)throw new h.Z(Bt,"this layer doesn't support attachments");const{attachmentTypes:s,objectIds:o,globalIds:n,num:a,size:l,start:p,where:u}=e;if(!i?.operations?.supportsQueryAttachments){const t=o&&o.length>1,r=s&&s.length,i=n&&n.length,d=l&&l.length;if(t||r||i||d||a||p||u)throw new h.Z(Bt,"when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",e)}if(!o?.length&&!u)throw new h.Z(Bt,"'objectIds' or 'where' are required to perform attachment query",e);if(!r.queryAttachments)throw new h.Z(Bt,"Layer source does not support queryAttachments capability",e);return r.queryAttachments(e)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Zt.Z.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r;return i}async queryObjectIds(e,t){const{source:r}=await this.load();if(!r.queryObjectIds)throw new h.Z(Bt,"Layer source does not support queryObjectIds capability");return r.queryObjectIds(Zt.Z.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){const{source:r}=await this.load();if(!r.queryFeatureCount)throw new h.Z(Bt,"Layer source does not support queryFeatureCount capability");return r.queryFeatureCount(Zt.Z.from(e)??this.createQuery(),t)}async queryExtent(e,t){const{source:r}=await this.load();if(!r.queryExtent)throw new h.Z(Bt,"Layer source does not support queryExtent capability");return r.queryExtent(Zt.Z.from(e)??this.createQuery(),t)}async queryRelatedFeatures(e,t){const{source:r}=await this.load();if(!r.queryRelatedFeatures)throw new h.Z(Bt,"Layer source does not support queryRelatedFeatures capability");return r.queryRelatedFeatures(Pt.Z.from(e),t)}async queryRelatedFeaturesCount(e,t){const{source:r}=await this.load();if(!r.queryRelatedFeaturesCount)throw new h.Z(Bt,"Layer source does not support queryRelatedFeaturesCount capability");return r.queryRelatedFeaturesCount(Pt.Z.from(e),t)}async queryTopFeatures(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopFeatures||!i?.query?.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryTopFeatures capability");const s=await r.queryTopFeatures(Gt.Z.from(e),t);if(s?.features)for(const e of s.features)e.layer=e.sourceLayer=this;return s}async queryTopObjectIds(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopObjectIds||!i?.query.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryTopObjectIds capability");return r.queryTopObjectIds(Gt.Z.from(e),t)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopExtents||!i?.query?.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryTopExtents capability");return r.queryTopExtents(Gt.Z.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopCount||!i?.query?.supportsTopFeaturesQuery)throw new h.Z(Bt,"Layer source does not support queryFeatureCount capability");return r.queryTopCount(Gt.Z.from(e),t)}read(e,t){const r=e.featureCollection;if(r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:s}=t;if(this.dynamicDataSource)return s?.push(zt(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==i)return s?.push(zt(this,"using a table source cannot be written to web scenes and web maps")),null;if(this._hasMemorySource())return s?.push(zt(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===r&&"tables"===i)return s?.push(zt(this,"using a non-table source cannot be written to tables in web maps")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new h.Z(Bt,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,qt.D)(this,e))}async save(e){return(await Promise.all([r.e(4547),r.e(2664)]).then(r.bind(r,32664))).save(this,e)}async saveAs(e,t){return(await Promise.all([r.e(4547),r.e(2664)]).then(r.bind(r,32664))).saveAs(this,e,t)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,C.RB)("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_checkAttachmentSupport(e){const{attributes:t}=e,{objectIdField:r}=this;return this.get("capabilities.data.supportsAttachment")?e?t?r&&t[r]?Promise.resolve():Promise.reject(new h.Z(Bt,`feature is missing the identifying attribute ${r}`)):Promise.reject(new h.Z(Bt,"'attributes' are required on a feature to query attachments")):Promise.reject(new h.Z(Bt,"A feature is required to add/delete/update attachments")):Promise.reject(new h.Z(Bt,"this layer doesn't support attachments"))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstLayerId(e){return(0,u.default)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return Array.isArray(t.layers)&&t.layers.length>0?t.layers[0].id:Array.isArray(t.tables)&&t.tables.length>0?t.tables[0].id:void 0}))}async _initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,_t.YN)(this.renderer,this.fieldsIndex),(0,_t.UF)(this.timeInfo,this.fieldsIndex),(0,At.y)(this,{origin:"service"})}async hasDataChanged(){if(this.source?.refresh)try{const{dataChanged:e,updates:t}=await(this.source?.refresh());if((0,v.pC)(t)&&(this.sourceJSON={...this.sourceJSON,...t},this.read(t,{origin:"service",url:this.parsedUrl})),e)return!0}catch{}if(this.definitionExpression)try{return(await(0,I.E)(this.definitionExpression,this.fieldsIndex)).hasDateFunctions}catch{}return!1}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype&&e.prototype.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new h.Z("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new h.Z("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this._handles.add([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this._handles.remove("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}_readAnalyticsCapabilities(e){return{supportsCacheHint:Xt(e.advancedQueryCapabilities,"queryAnalytics")}}_readAttachmentCapabilities(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:Xt(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:Ht(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=kt[e.name];t&&(r[t]=!!e.isEnabled)})),r}_readDataCapabilities(e){return{isVersioned:Ht(e,"isDataVersioned",!1),supportsAttachment:Ht(e,"hasAttachments",!1),supportsM:Ht(e,"hasM",!1),supportsZ:Ht(e,"hasZ",!1)}}_readMetadataCapabilities(e){return{supportsAdvancedFieldProperties:Ht(e,"supportsFieldDescriptionProperty",!1)}}_readOperationsCapabilities(e,t){const r=e?e.toLowerCase().split(",").map((e=>e.trim())):[],i=this.url?(0,ht.Qc)(this.url):null,s=r.includes((0,v.pC)(i)&&"MapServer"===i.serverType?"data":"query"),o=r.includes("editing")&&!t.datesInUnknownTimezone;let n=o&&r.includes("create"),a=o&&r.includes("delete"),l=o&&r.includes("update");const p=r.includes("changetracking"),u=t.advancedQueryCapabilities;return o&&!(n||a||l)&&(n=a=l=!0),{supportsCalculate:Ht(t,"supportsCalculate",!1),supportsTruncate:Ht(t,"supportsTruncate",!1),supportsValidateSql:Ht(t,"supportsValidateSql",!1),supportsAdd:n,supportsDelete:a,supportsEditing:o,supportsChangeTracking:p,supportsQuery:s,supportsQueryAnalytics:Ht(u,"supportsQueryAnalytic",!1),supportsQueryAttachments:Ht(u,"supportsQueryAttachments",!1),supportsQueryTopFeatures:Ht(u,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:Ht(t,"supportsAttachmentsResizing",!1),supportsSync:r.includes("sync"),supportsUpdate:l,supportsExceedsLimitStatistics:Ht(t,"supportsExceedsLimitStatistics",!1)}}_readQueryCapabilities(e){const t=e.advancedQueryCapabilities,r=e.ownershipBasedAccessControlForFeatures,i=e.archivingInfo,s=this.url?.includes("MapServer"),o=!(0,b.Z)("mapserver-pbf-enabled")&&s&&(this.version??0)<10.81,n=(0,ht.M8)(this.url),a=(e.supportedQueryFormats||"").split(",").reduce(((e,t)=>{const r=t.toLowerCase().trim();return r&&e.add(r),e}),new Set);return{supportsStatistics:Ht(t,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:Ht(t,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:Ht(t,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:Kt(t),supportsCentroid:Ht(t,"supportsReturningGeometryCentroid",!1),supportsDistance:Ht(t,"supportsQueryWithDistance",!1),supportsDistinct:Ht(t,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:Ht(t,"supportsReturningQueryExtent",!1),supportsGeometryProperties:Ht(t,"supportsReturningGeometryProperties",!1),supportsHavingClause:Ht(t,"supportsHavingClause",!1),supportsOrderBy:Ht(t,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:Ht(t,"supportsPagination",!1),supportsQuantization:Ht(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:Ht(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:Ht(e,"supportsReturningQueryGeometry",!1),supportsResultType:Ht(t,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:Ht(t,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:Ht(t,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:Ht(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:Ht(t,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:Ht(r,"allowOthersToQuery",!0),supportsHistoricMoment:Ht(i,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:!o&&a.has("pbf"),supportsDisjointSpatialRelationship:Ht(t,"supportsDisjointSpatialRel",!1),supportsCacheHint:Ht(t,"supportsQueryWithCacheHint",!1)||Xt(t,"query"),supportsDefaultSpatialReference:Ht(t,"supportsDefaultSR",!1),supportsCompactGeometry:n,maxRecordCountFactor:$t(e,"maxRecordCountFactor",void 0),maxRecordCount:$t(e,"maxRecordCount",void 0),standardMaxRecordCount:$t(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:$t(e,"tileMaxRecordCount",void 0)}}_readQueryRelatedCapabilities(e){const t=e.advancedQueryCapabilities,r=Ht(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:Ht(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:Xt(t,"queryRelated")}}_readQueryTopFeaturesCapabilities(e){return{supportsCacheHint:Xt(e.advancedQueryCapabilities,"queryTopFilter")}}_readEditingCapabilities(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:Ht(e,"allowGeometryUpdates",!0),supportsGlobalId:Ht(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:Ht(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:Ht(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:Ht(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:Ht(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:Ht(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:Ht(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:Ht(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:Ht(t,"allowOthersToUpdate",!0)}}};(0,s._)([(0,x.Cb)({readOnly:!0,json:{read:!1}})],tr.prototype,"capabilities",void 0),(0,s._)([(0,E.r)("service","capabilities",["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"])],tr.prototype,"readCapabilities",null),(0,s._)([(0,x.Cb)({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],tr.prototype,"charts",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"createQueryVersion",null),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"layerDefinition.copyrightText"},origins:{service:{read:{source:"copyrightText"}}}}})],tr.prototype,"copyright",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"datesInUnknownTimezone",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"layerDefinition.displayField"},origins:{service:{read:{source:"displayField"}}}}})],tr.prototype,"displayField",void 0),(0,s._)([(0,x.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],tr.prototype,"definitionExpression",void 0),(0,s._)([(0,x.Cb)({types:d.LB,readOnly:!0})],tr.prototype,"defaultSymbol",void 0),(0,s._)([(0,x.Cb)({type:Dt.n})],tr.prototype,"dynamicDataSource",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"editFieldsInfo",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"editingEnabled",null),(0,s._)([(0,E.r)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],tr.prototype,"readEditingEnabled",null),(0,s._)([(0,E.r)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],tr.prototype,"readEditingEnabledFromWebMap",null),(0,s._)([(0,O.c)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],tr.prototype,"writeEditingEnabled",null),(0,s._)([(0,O.c)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],tr.prototype,"writeEditingEnabledToWebMap",null),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"editingInfo",void 0),(0,s._)([(0,E.r)("editingInfo")],tr.prototype,"readEditingInfo",null),(0,s._)([(0,x.Cb)((()=>{const e=(0,g.d9)(mt.PV),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],tr.prototype,"elevationInfo",void 0),(0,s._)([(0,x.Cb)(ft.d)],tr.prototype,"featureReduction",void 0),(0,s._)([(0,x.Cb)({...Yt.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:er}}}}})],tr.prototype,"fields",void 0),(0,s._)([(0,x.Cb)(Yt.fieldsIndex)],tr.prototype,"fieldsIndex",void 0),(0,s._)([(0,x.Cb)({type:jt.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],tr.prototype,"floorInfo",void 0),(0,s._)([(0,x.Cb)({type:Ae,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],tr.prototype,"formTemplate",void 0),(0,s._)([(0,x.Cb)({type:Le.Z,json:{origins:{service:{read:{source:"extent"}}},read:{source:"layerDefinition.extent"}}})],tr.prototype,"fullExtent",void 0),(0,s._)([(0,x.Cb)()],tr.prototype,"gdbVersion",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,type:It,json:{read:{source:"geometryProperties"}}})],tr.prototype,"geometryFieldsInfo",void 0),(0,s._)([(0,x.Cb)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:Vt.read},"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:er,writer(e,t,r){const i=e?Vt.toJSON(e):null;i&&(0,C.RB)(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:Vt.read}}})],tr.prototype,"geometryType",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasM"}}})],tr.prototype,"hasM",void 0),(0,s._)([(0,x.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasZ"}}})],tr.prototype,"hasZ",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,type:Ze.Z})],tr.prototype,"heightModelInfo",void 0),(0,s._)([(0,x.Cb)({type:Date})],tr.prototype,"historicMoment",void 0),(0,s._)([(0,x.Cb)(mt.id)],tr.prototype,"id",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],tr.prototype,"infoFor3D",void 0),(0,s._)([(0,x.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],tr.prototype,"isTable",void 0),(0,s._)([(0,E.r)("service","isTable",["type","geometryType"]),(0,E.r)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],tr.prototype,"readIsTable",null),(0,s._)([(0,O.c)("web-map","isTable")],tr.prototype,"writeIsTable",null),(0,s._)([(0,x.Cb)(mt.iR)],tr.prototype,"labelsVisible",void 0),(0,s._)([(0,x.Cb)({type:[Ft.Z],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:xt.r},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:xt.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],tr.prototype,"labelingInfo",void 0),(0,s._)([(0,x.Cb)((()=>{const e=(0,g.d9)(mt.bT);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){(0,C.RB)(r,(0,Nt.a)(e),t)}}},e})())],tr.prototype,"opacity",void 0),(0,s._)([(0,x.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],tr.prototype,"layerId",void 0),(0,s._)([(0,x.Cb)(mt.rn)],tr.prototype,"legendEnabled",void 0),(0,s._)([(0,x.Cb)({type:["show","hide"],json:(()=>{const e=(0,g.d9)(mt.rT.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],tr.prototype,"listMode",void 0),(0,s._)([(0,x.Cb)(mt.rO)],tr.prototype,"minScale",void 0),(0,s._)([(0,E.r)("service","minScale",["minScale","effectiveMinScale"])],tr.prototype,"readMinScale",null),(0,s._)([(0,x.Cb)(mt.u1)],tr.prototype,"maxScale",void 0),(0,s._)([(0,E.r)("service","maxScale",["maxScale","effectiveMaxScale"])],tr.prototype,"readMaxScale",null),(0,s._)([(0,x.Cb)({type:String})],tr.prototype,"globalIdField",void 0),(0,s._)([(0,E.r)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"]),(0,E.r)("service","globalIdField",["globalIdField","fields"])],tr.prototype,"readGlobalIdFieldFromService",null),(0,s._)([(0,x.Cb)({type:String,json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:er}}}}})],tr.prototype,"objectIdField",void 0),(0,s._)([(0,E.r)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"]),(0,E.r)("service","objectIdField",["objectIdField","fields"])],tr.prototype,"readObjectIdFieldFromService",null),(0,s._)([(0,x.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],tr.prototype,"operationalLayerType",void 0),(0,s._)([(0,x.Cb)(Yt.outFields)],tr.prototype,"outFields",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"parsedUrl",null),(0,s._)([(0,x.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],tr.prototype,"path",void 0),(0,s._)([(0,x.Cb)(mt.C_)],tr.prototype,"popupEnabled",void 0),(0,s._)([(0,x.Cb)({type:o.Z,json:{name:"popupInfo",write:!0}})],tr.prototype,"popupTemplate",void 0),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"defaultPopupTemplate",null),(0,s._)([(0,x.Cb)({type:[Rt],readOnly:!0})],tr.prototype,"relationships",void 0),(0,s._)([(0,x.Cb)({types:p.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:p.o,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],tr.prototype,"renderer",null),(0,s._)([(0,E.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,E.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],tr.prototype,"readRenderer",null),(0,s._)([(0,x.Cb)()],tr.prototype,"sourceJSON",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"returnM",void 0),(0,s._)([(0,x.Cb)({type:Boolean})],tr.prototype,"returnZ",void 0),(0,s._)([(0,x.Cb)((()=>{const e=(0,g.d9)(mt.YI);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],tr.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,x.Cb)({clonable:!1})],tr.prototype,"source",null),(0,s._)([(0,j.p)("source")],tr.prototype,"castSource",null),(0,s._)([(0,E.r)("portal-item","source",["featureSet"]),(0,E.r)("web-map","source",["featureSet"])],tr.prototype,"readSource",null),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"serviceDefinitionExpression",void 0),(0,s._)([(0,E.r)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],tr.prototype,"readServiceDefinitionExpression",null),(0,s._)([(0,x.Cb)({type:Pe.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},read:{source:"layerDefinition.extent.spatialReference"}}})],tr.prototype,"spatialReference",void 0),(0,s._)([(0,x.Cb)({type:Number})],tr.prototype,"subtypeCode",void 0),(0,s._)([(0,x.Cb)({type:String,json:{origins:{service:{read:!0}}}})],tr.prototype,"subtypeField",void 0),(0,s._)([(0,x.Cb)({type:[gt.Z]})],tr.prototype,"templates",void 0),(0,s._)([(0,E.r)("templates",["editFieldsInfo","creatorField","editorField","templates"])],tr.prototype,"readTemplates",null),(0,s._)([(0,x.Cb)({type:Mt.Z})],tr.prototype,"timeInfo",void 0),(0,s._)([(0,x.Cb)()],tr.prototype,"title",void 0),(0,s._)([(0,E.r)("service","title",["name"]),(0,E.r)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],tr.prototype,"readTitle",null),(0,s._)([(0,E.r)("web-map","title",["layerDefinition.name","title"])],tr.prototype,"readTitleFromWebMap",null),(0,s._)([(0,x.Cb)({type:String})],tr.prototype,"sublayerTitleMode",void 0),(0,s._)([(0,x.Cb)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],tr.prototype,"trackIdField",void 0),(0,s._)([(0,x.Cb)({json:{read:!1}})],tr.prototype,"type",void 0),(0,s._)([(0,x.Cb)({type:String})],tr.prototype,"typeIdField",void 0),(0,s._)([(0,E.r)("service","typeIdField"),(0,E.r)("typeIdField",["layerDefinition.typeIdField"])],tr.prototype,"readTypeIdField",null),(0,s._)([(0,x.Cb)({type:[wt.Z]})],tr.prototype,"types",void 0),(0,s._)([(0,E.r)("service","types",["types"]),(0,E.r)("types",["layerDefinition.types"])],tr.prototype,"readTypes",null),(0,s._)([(0,x.Cb)({readOnly:!0,json:{write:!1}})],tr.prototype,"serverGens",void 0),(0,s._)([(0,x.Cb)({type:y.Z.ofType(bt),readOnly:!0})],tr.prototype,"indexes",void 0),(0,s._)([(0,x.Cb)(mt.HQ)],tr.prototype,"url",null),(0,s._)([(0,O.c)("url")],tr.prototype,"writeUrl",null),(0,s._)([(0,x.Cb)({readOnly:!0})],tr.prototype,"userIsAdmin",void 0),(0,s._)([(0,x.Cb)({json:{origins:{service:{read:!0}},read:!1}})],tr.prototype,"version",void 0),(0,s._)([(0,E.r)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],tr.prototype,"readVersion",null),(0,s._)([(0,x.Cb)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],tr.prototype,"visible",void 0),(0,s._)([(0,E.r)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],tr.prototype,"readVisible",null),tr=(0,s._)([(0,T.j)(Ut)],tr);const rr=(0,R.d)({types:d.QT}),ir=tr},66361:(e,t,r)=>{r.d(t,{dU:()=>a,lQ:()=>p,o1:()=>u});var i=r(43697),s=r(32448),o=r(22974),n=(r(92604),r(75215),r(20102),r(80442),r(52011));const a=new s.Z.EventEmitter,l=Symbol("EditBusLayer");function p(e){return e&&"object"==typeof e&&l in e}const u=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this.when().then((()=>{this.own([a.on("edits",(e=>{const t="layer"in e?e.layer:null,r="layer"in e?e.layer.url:e.serviceUrl,i="layer"in e?e.layer.layerId:e.layerId,s=e.event;if(t===this||r!==this.url)return;if(null!=i&&null!=this.layerId&&i===this.layerId)return void this.emit("edits",(0,o.d9)(s));const n=s.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(n){const{adds:e,updates:t,deletes:r}=n.editedFeatures,i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:e.map((({attributes:e})=>({objectId:e[this.objectIdField],globalId:e[this.globalIdField]}))),deletedFeatures:r.map((({attributes:e})=>({objectId:e[this.objectIdField],globalId:e[this.globalIdField]}))),updatedFeatures:t.map((({current:{attributes:e}})=>({objectId:e[this.objectIdField],globalId:e[this.globalIdField]}))),editedFeatures:(0,o.d9)(s.editedFeatures)};this.emit("edits",i)}}))])}),(()=>{}))}};return t=l,r=(0,i._)([(0,n.j)("esri.layers.mixins.EditBusLayer")],r),r}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var i,s=r(43697),o=r(78286),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),p=r(96674);const u=new l.X({asc:"ascending",desc:"descending"});let d=i=class extends p.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"order",void 0),d=i=(0,s._)([(0,a.j)("esri.layers.support.OrderByInfo")],d);const c=d;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const s=new c;return s.read(i,r),[s]}function h(e,t,r,i){const s=e.find((e=>!!e.field));s&&(0,o.RB)(r,[s.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,n.Cb)({type:[c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:h}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},40555:(e,t,r)=>{r.d(t,{y:()=>n});var i=r(66643),s=r(95330),o=r(20941);async function n(e,t,r){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const a=await(0,i.q6)(n.populateFromStyle());if((0,s.k_)(r),!1===a.ok){const r=a.error;t&&t.messages&&t.messages.push(new o.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t.origin)}}}},59431:(e,t,r)=>{r.d(t,{P:()=>a});var i=r(70586),s=r(67900),o=r(8744);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(!e&&!t||!r)return;const i=(0,s._R)(r);l(e,r,i),l(t,r,i)}function l(e,t,r){if(e)for(const i of e)p(i.geometry,t,r)}function p(e,t,r){if((0,i.Wi)(e)||!e.spatialReference||(0,o.fS)(e.spatialReference,t))return;const a=(0,s._R)(e.spatialReference)/r;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("rings"in e)n(e,e.rings,a);else if("paths"in e)n(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=a)}}}]);
|