(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2304b7"],{ec58:function(e,t,r){"use strict";r.r(t),r.d(t,"createSymbolSchema",(function(){return c}));var a=r("c84e"),n=r("18c6");function l(e){var t;return"line-marker"===e.type?{type:"line-marker",color:null==(t=e.color)?void 0:t.toJSON(),placement:e.placement,style:e.style}:e.constructor.fromJSON(e.toJSON()).toJSON()}function s(e){return hydrateKey(e)}function c(e,t,r){if(!e)return null;switch(e.type){case"simple-fill":case"picture-fill":return o(e,t,r);case"simple-marker":case"picture-marker":return h(e,t,r);case"simple-line":return u(e,t,r);case"text":return m(e,t,r);case"label":return i(e,t,r);case"cim":return{type:"cim",rendererKey:t.vvFlags,data:e.data,maxVVSize:t.maxVVSize};case"CIMSymbolReference":return{type:"cim",rendererKey:t.vvFlags,data:e,maxVVSize:t.maxVVSize};case"web-style":return{...l(e),type:"web-style",hash:e.hash(),rendererKey:t.vvFlags,maxVVSize:t.maxVVSize};default:throw new Error("symbol not supported "+e.type)}}function i(e,t,r){const l=e.toJSON(),c=Object(n["g"])(a["d"].LABEL,{...t,placement:l.labelPlacement});return{materialKey:r?s(c):c,hash:e.hash(),...l,labelPlacement:l.labelPlacement}}function o(e,t,r){const c=t.supportsOutlineFills,i=Object(n["g"])(a["d"].FILL,{...t,isOutlinedFill:c}),o=r?s(i):i,u=e.clone(),h=u.outline;t.supportsOutlineFills||(u.outline=null);const m={materialKey:o,hash:u.hash(),isOutlinedFill:!!t.supportsOutlineFills,...l(u)};if(t.supportsOutlineFills)return m;const p=[];if(p.push(m),h){const e=Object(n["g"])(a["d"].LINE,{...t,isOutline:!0}),c={materialKey:r?s(e):e,hash:h.hash(),...l(h)};p.push(c)}return{type:"composite-symbol",layers:p,hash:p.reduce((e,t)=>t.hash+e,"")}}function u(e,t,r){const c=Object(n["g"])(a["d"].LINE,t),i=r?s(c):c,o=e.clone(),u=o.marker;o.marker=null;const h=[];if(h.push({materialKey:i,hash:o.hash(),...l(o)}),u){var m;const e=Object(n["g"])(a["d"].MARKER,t),c=r?s(e):e;u.color=null!=(m=u.color)?m:o.color,h.push({materialKey:c,hash:u.hash(),lineWidth:o.width,...l(u)})}return{type:"composite-symbol",layers:h,hash:h.reduce((e,t)=>t.hash+e,"")}}function h(e,t,r){const c=Object(n["g"])(a["d"].MARKER,t),i=r?s(c):c,o=l(e);return{materialKey:i,hash:e.hash(),...o,angle:e.angle,maxVVSize:t.maxVVSize}}function m(e,t,r){const c=Object(n["g"])(a["d"].TEXT,t),i=r?s(c):c,o=l(e);return{materialKey:i,hash:e.hash(),...o,angle:e.angle,maxVVSize:t.maxVVSize}}}}]); //# sourceMappingURL=chunk-2d2304b7.c058b589.js.map