/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../Color","./color","./support/colors","./support/symbologyUtils"],(function(e,r,t,a,i){"use strict";const l=t.seqColorSets2021.concat(t.seqColorSets2019).concat(t.seqColorSetsFromPortal).concat(["seq-yellow-red-purple","seq-orange-red-light","seq-yellow-orange-red","seq-yellow-pink-purple","seq-yellow-purple-blue","seq-teal-lightgreen-bright","seq-green-lightgray-bright","seq-red-lightgray-bright","seq-blue-lightgray-bright","seq-orange-lightgray-bright","seq-blue-red-yellow-bright","seq-blue-tan-bright","seq-teal-lightbrown-bright","seq-reds-bright","seq-purples-bright","seq-blues-bright","seq-greens-bright","seq-browns-bright","seq-dark-to-light-magenta-bright","seq-dark-to-light-purple-bright","seq-dark-to-light-blue-bright","seq-dark-to-light-green-bright","seq-brown-to-tan-bright","seq-lightgray-blue-bright","seq-lightgray-green-bright","seq-lightgray-darkmagenta-bright","seq-yellow-darkblue-bright","seq-lightred-darkgray-bright"]),s=t.seqColorSets2021.concat(t.seqColorSets2019).concat(t.seqColorSetsFromPortal).concat(["seq-blue-lightgray-bright","seq-gray-lightgreen-bright","seq-reds-bright","seq-purples-bright","seq-blues-bright","seq-greens-bright","seq-browns-bright","seq-dark-to-light-magenta-bright","seq-dark-to-light-purple-bright","seq-dark-to-light-blue-bright","seq-dark-to-light-green-bright","seq-brown-to-tan-bright","seq-lightgray-blue-bright","seq-lightgray-green-bright","seq-lightgray-darkmagenta-bright","seq-yellow-darkblue-bright","seq-teal-lightgreen-bright","seq-lightred-darkgray-bright","seq-lightmagenta-darkgray-bright","seq-lightblue-darkgray-bright"]),o={color:"#4c64c9",density:.8,layerEffect:"drop-shadow(1px, 1px, 3px, rgba(0,0,0,0.75))"},g={color:"#00ffff",density:.8,layerEffect:"bloom(1.4, 0.6px, 0)"},n={flowSpeed:10,trailLength:100,trailWidth:1,trailCap:"butt",minSize:1,maxSize:4},h={flowSpeed:3,trailLength:.7,trailWidth:8,trailCap:"butt",minSize:4,maxSize:16},b={"flow-line":{name:"flow-line",label:"TODO",description:"TODO",schemes:{default:{light:{common:{...n,...o},primary:"seq-lines-purple-brown",secondary:l.filter((e=>"seq-lines-purple-brown"!==e))},dark:{common:{...n,...g},primary:"seq-mentone-beach",secondary:s.filter((e=>"seq-mentone-beach"!==e))}}}},"wave-front":{name:"wave-front",label:"TODO",description:"TODO",schemes:{default:{light:{common:{...h,...o},primary:"seq-lines-purple-brown",secondary:l.filter((e=>"seq-lines-purple-brown"!==e))},dark:{common:{...h,...g},primary:"seq-mentone-beach",secondary:s.filter((e=>"seq-mentone-beach"!==e))}}}}},m=i.createThemes({themeDictionary:b});function c(e){return i.getThemesforBasemap(m,e)}function p(e){const r=e.theme||"flow-line",t=i.getRawSchemes({basemap:e.basemap,basemapTheme:e.basemapTheme,theme:m.get(r)});if(!t)return;const{schemesInfo:a,basemapId:l,basemapTheme:s}=t,o=a.common;return{primaryScheme:y(e,a.primary,o),secondarySchemes:a.secondary.map((r=>y(e,r,o))).filter(Boolean),basemapId:l,basemapTheme:s}}function d(e){return i.filterSchemesByName(e.name,p(e))}function q(e){return i.filterSchemesByTag(e.includedTags,e.excludedTags,p(e))}function u(e){if(!e)return;const t={...e};return t.colors=t.colors.map((e=>new r(e))),t.tags=[...t.tags],t.color&&(t.color=new r(t.color)),t}function y(e,t,i){const l=e.theme||"flow-line",s=a[t];if(!s)return;const o=s.stops;return{id:`${l}/${e.basemap}/${t}`,name:s.name,tags:[...s.tags],theme:l,color:new r(i.color),colors:o.map((e=>new r(e))),density:i.density,flowSpeed:i.flowSpeed,trailLength:"wave-front"===l&&e.hasSizeVariable?2*i.trailLength:i.trailLength,trailWidth:i.trailWidth,trailCap:i.trailCap,layerEffect:i.layerEffect,minSize:i.minSize,maxSize:i.maxSize,minOpacity:.25,maxOpacity:1}}e.cloneScheme=u,e.getSchemeByName=d,e.getSchemes=p,e.getSchemesByTag=q,e.getThemes=c,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
