{"version":3,"sources":["node_modules/@arcgis/core/layers/support/sublayerUtils.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { OriginId as r } from \"../../core/accessorSupport/PropertyOrigin.js\";\nfunction e(r, e, n) {\n const o = e.flatten(({\n sublayers: r\n }) => r).length;\n if (o !== r.length) return !0;\n return !!r.some(r => r.originIdOf(\"minScale\") > n || r.originIdOf(\"maxScale\") > n || r.originIdOf(\"renderer\") > n || r.originIdOf(\"labelingInfo\") > n || r.originIdOf(\"opacity\") > n || r.originIdOf(\"labelsVisible\") > n || r.originIdOf(\"source\") > n) || !i(r, e);\n}\nfunction n(e, n, o) {\n return !!e.some(e => {\n const n = e.source,\n i = !n || \"map-layer\" === n.type && n.mapLayerId === e.id && (null == n.gdbVersion || n.gdbVersion === o);\n return e.commitProperty(\"renderer\"), e.commitProperty(\"labelingInfo\"), e.commitProperty(\"opacity\"), e.commitProperty(\"labelsVisible\"), !i || e.originIdOf(\"renderer\") > r.SERVICE || e.originIdOf(\"labelingInfo\") > r.SERVICE || e.originIdOf(\"opacity\") > r.SERVICE || e.originIdOf(\"labelsVisible\") > r.SERVICE;\n }) || !i(e, n);\n}\nfunction i(r, e) {\n if (!r?.length || null == e) return !0;\n const n = e.slice().reverse().flatten(({\n sublayers: r\n }) => r && r.toArray().reverse()).map(r => r.id).toArray();\n if (r.length > n.length) return !1;\n let i = 0;\n const o = n.length;\n for (const {\n id: t\n } of r) {\n for (; i < o && n[i] !== t;) i++;\n if (i >= o) return !1;\n }\n return !0;\n}\nfunction o(r) {\n return !!r && r.some(r => null != r.minScale || null != r.layerDefinition?.minScale);\n}\nexport { n as isExportDynamic, o as isSublayerOverhaul, e as shouldWriteSublayerStructure };"],"mappings":"wCAKA,SAASA,EAAEC,EAAGD,EAAG,EAAG,CAIlB,OAHUA,EAAE,QAAQ,CAAC,CACnB,UAAWC,CACb,IAAMA,CAAC,E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