/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
function e(e){return t(r(e))}function r(e){if(null==e)return e;if(Array.isArray(e))return e.map(e=>r(e));if("object"==typeof e){if("CIMRGBColor"===e.type){const[r,t,n,o]=e.values;return[r,t,n,255*o/100]}const t={};for(const n in e)t[n]=r(e[n]);return t}return e}function t(e){if(null==e)return e;if(Array.isArray(e))return e.map(e=>t(e));if("object"==typeof e){if("CIMCharacterMarker"===e.type)return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0};const r={};for(const n in e)r[n]=t(e[n]);return r}return e}export{r as fixCIMColors,e as fixCIMUnsupported};
