{"version":3,"sources":["node_modules/@arcgis/core/symbols/support/defaults3D.js","node_modules/@arcgis/core/symbols/support/symbolConversion.js","node_modules/@arcgis/core/symbols/support/jsonUtils.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 o from \"../../Color.js\";\nimport \"../../symbols.js\";\nimport e from \"../../core/Collection.js\";\nimport \"../../core/has.js\";\nimport { px2pt as r } from \"../../core/screenUtils.js\";\nimport m from \"../FillSymbol3DLayer.js\";\nimport l from \"../LineSymbol3D.js\";\nimport s from \"../MeshSymbol3D.js\";\nimport i from \"../PointSymbol3D.js\";\nimport n from \"../PolygonSymbol3D.js\";\nimport t from \"../edges/SolidEdges3D.js\";\nimport { defaultPointSymbol2D as p, defaultPolylineSymbol2D as y, defaultPolygonSymbol2D as a } from \"./defaults.js\";\nimport { defaultColor as f, defaultOutlineColor as c } from \"./defaultsJSON.js\";\nimport j from \"../LineSymbol3DLayer.js\";\nconst u = i.fromSimpleMarkerSymbol(p),\n w = l.fromSimpleLineSymbol(y),\n S = n.fromSimpleFillSymbol(a),\n b = new s({\n symbolLayers: new e([new m({\n material: {\n color: f\n },\n edges: new t({\n size: r(1),\n color: new o(c)\n })\n })])\n }),\n L = new l({\n symbolLayers: new e([new j({\n material: {\n color: new o([0, 0, 0])\n },\n size: r(1)\n })])\n }),\n D = new n({\n symbolLayers: new e([new m({\n outline: {\n color: new o([0, 0, 0]),\n size: r(1)\n }\n })])\n });\nfunction d(o) {\n if (null == o) return null;\n switch (o.type) {\n case \"mesh\":\n return b;\n case \"point\":\n case \"multipoint\":\n return u;\n case \"polyline\":\n return w;\n case \"polygon\":\n case \"extent\":\n return S;\n }\n return null;\n}\nexport { D as defaultRendererPolygonSymbol3D, L as defaultRendererPolylineSymbol3D, d as getDefaultSymbol3D };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { isSymbol3D as o } from \"../../symbols.js\";\nimport e from \"../../core/Error.js\";\nimport { defaultRendererPolygonSymbol3D as r, defaultRendererPolylineSymbol3D as l } from \"./defaults3D.js\";\nimport m from \"../WebStyleSymbol.js\";\nimport i from \"../PointSymbol3D.js\";\nimport n from \"../SimpleLineSymbol.js\";\nimport s from \"../LineSymbol3D.js\";\nimport t from \"../SimpleMarkerSymbol.js\";\nimport y from \"../PictureMarkerSymbol.js\";\nimport b from \"../SimpleFillSymbol.js\";\nimport a from \"../MeshSymbol3D.js\";\nimport f from \"../PolygonSymbol3D.js\";\nimport p from \"../TextSymbol.js\";\nimport c from \"../LabelSymbol3D.js\";\nconst S = \"#useCIMFallbackSymbology()\",\n g = {\n retainId: !1,\n ignoreDrivers: !1,\n hasLabelingContext: !0\n };\nfunction u(u, d = g) {\n if (!u) return {\n symbol: null\n };\n const {\n retainId: D = g.retainId,\n ignoreDrivers: M = g.ignoreDrivers,\n hasLabelingContext: j = g.hasLabelingContext,\n retainCIM: C = g.retainCIM,\n cimFallbackEnabled: I = g.cimFallbackEnabled\n } = d;\n let k = null;\n if (o(u) || u instanceof m) k = u.clone();else if (\"cim\" === u.type) {\n const o = u.data?.symbol?.type;\n switch (o) {\n case \"CIMPointSymbol\":\n k = C ? u.clone() : i.fromCIMSymbol(u);\n break;\n case \"CIMLineSymbol\":\n I && (k = l.clone(), d?.logWarning?.(S, \"Unsupported CIM line symbology converted to fallback 3D line symbology\"));\n break;\n case \"CIMPolygonSymbol\":\n I && (k = r.clone(), d?.logWarning?.(S, \"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology\"));\n }\n if (!k) return {\n error: new e(\"symbol-conversion:unsupported-cim-symbol\", `CIM symbol of type '${o || \"unknown\"}' is unsupported in 3D`, {\n symbol: u\n })\n };\n } else if (u instanceof n) k = s.fromSimpleLineSymbol(u);else if (u instanceof t) k = i.fromSimpleMarkerSymbol(u);else if (u instanceof y) k = i.fromPictureMarkerSymbol(u);else if (u instanceof b) k = d.geometryType && \"mesh\" === d.geometryType ? a.fromSimpleFillSymbol(u) : f.fromSimpleFillSymbol(u);else {\n if (!(u instanceof p)) return {\n error: new e(\"symbol-conversion:unsupported-2d-symbol\", `2D symbol of type '${u.type || u.declaredClass}' is unsupported in 3D`, {\n symbol: u\n })\n };\n k = j ? c.fromTextSymbol(u) : i.fromTextSymbol(u);\n }\n return D && k && \"cim\" !== k.type && (k.id = u.id), M && o(k) && k.symbolLayers.forEach(o => o.ignoreDrivers = !0), {\n symbol: k\n };\n}\nexport { g as defaultTo3DOptions, u as to3D };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { readSymbol as e } from \"../../symbols.js\";\nimport o from \"../../core/Error.js\";\nimport { isSceneServiceLayer as n } from \"../../layers/support/layerUtils.js\";\nimport t from \"../Symbol3D.js\";\nimport { to3D as s } from \"./symbolConversion.js\";\nimport r from \"../WebStyleSymbol.js\";\nfunction l(e, o, n, t) {\n const s = y(e, {}, {\n context: t,\n isLabelSymbol: !1\n });\n null != s && (o[n] = s);\n}\nfunction i(e, o, n, t) {\n const s = y(e, {}, {\n context: t,\n isLabelSymbol: !0\n });\n null != s && (o[n] = s);\n}\nfunction m(e) {\n return e instanceof t || e instanceof r;\n}\nfunction a(e) {\n return e instanceof t && (\"polygon-3d\" === e.type || \"line-3d\" === e.type);\n}\nfunction y(e, t, r) {\n if (null == e) return null;\n const {\n context: l,\n isLabelSymbol: i\n } = r,\n y = l?.origin,\n p = l?.messages;\n if (\"web-scene\" === y && !m(e)) {\n const n = s(e, {\n retainCIM: !0,\n hasLabelingContext: i\n });\n return null != n.symbol ? n.symbol.write(t, l) : (p?.push(new o(\"symbol:unsupported\", `Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`, {\n symbol: e,\n context: l,\n error: n.error\n })), null);\n }\n return n(l?.layer) && a(e) ? (p?.push(new o(\"symbol:unsupported\", `Symbols of type '${e.declaredClass}' are not supported on layers of type '${l?.layer?.declaredClass}'.`, {\n symbol: e,\n context: l\n })), null) : (\"web-map\" === y || \"portal-item\" === y && !n(l?.layer)) && m(e) ? (p?.push(new o(\"symbol:unsupported\", `Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`, {\n symbol: e,\n context: l\n })), null) : e.write(t, l);\n}\nfunction p(o, n) {\n return e(o, null, n);\n}\nexport { p as fromJSON, l as write, i as writeLabelSymbol };"],"mappings":"seAkBA,IAAMA,GAAIC,EAAE,uBAAuBC,CAAC,EAClCD,GAAIE,EAAE,qBAAqBH,CAAC,EAC5BE,GAAIE,EAAE,qBAAqBC,CAAC,EAC5BF,GAAI,IAAIE,EAAE,CACR,aAAc,IAAIC,EAAE,CAAC,IAAIF,EAAE,CACzB,SAAU,CACR,MAAOG,CACT,EACA,MAAO,IAAIC,EAAE,CACX,KAAMD,EAAE,CAAC,EACT,MAAO,IAAIE,EAAED,CAAC,CAChB,CAAC,CACH,CAAC,CAAC,CAAC,CACL,CAAC,EACDE,EAAI,IAAIP,EAAE,CACR,aAAc,IAAIG,EAAE,CAAC,IAAIF,EAAE,CACzB,SAAU,CACR,MAAO,IAAIK,EAAE,CAAC,EAAG,EAAG,CAAC,CAAC,CACxB,EACA,KAAMF,EAAE,CAAC,CACX,CAAC,CAAC,CAAC,CACL,CAAC,EACDI,EAAI,IAAIP,EAAE,CACR,aAAc,IAAIE,EAAE,CAAC,IAAIF,EAAE,CACzB,QAAS,CACP,MAAO,IAAIK,EAAE,CAAC,EAAG,EAAG,CAAC,CAAC,EACtB,KAAMF,EAAE,CAAC,CACX,CACF,CAAC,CAAC,CAAC,CACL,CAAC,EC7BH,IAAMK,EAAI,6BACRC,EAAI,CACF,SAAU,GACV,cAAe,GACf,mBAAoB,EACtB,EACF,SAASC,EAAEA,EAAGC,EAAIF,EAAG,CACnB,GAAI,CAACC,EAAG,MAAO,C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,IAAIR,EAAE,qBAAsB,oBAAoBJ,EAAE,aAAa,0CAA0CD,GAAG,OAAO,aAAa,KAAM,CAC1K,OAAQC,EACR,QAASD,CACX,CAAC,CAAC,EAAG,OAAuB,IAAd,WAAqC,IAAlB,eAAuB,CAACe,EAAEf,GAAG,KAAK,IAAMQ,EAAEP,CAAC,GAAKY,GAAG,KAAK,IAAIR,EAAE,qBAAsB,oBAAoBJ,EAAE,aAAa,qHAAsH,CAC5Q,OAAQA,EACR,QAASD,CACX,CAAC,CAAC,EAAG,MAAQC,EAAE,MAAMG,EAAGJ,CAAC,CAC3B,CACA,SAASa,GAAE,EAAG,EAAG,CACf,OAAOG,EAAE,EAAG,KAAM,CAAC,CACrB","names":["u","w","S","b","h","c","V","e","i","l","L","D","S","g","u","d","D","M","j","C","I","k","h","o","w","L","s","b","y","n","c","m","l","e","o","n","t","s","y","i","m","k","h","a","r","p","u","b","C"],"x_google_ignoreList":[0,1,2]}