/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{lowerCaseNormalizedFieldName as s,applyLowerCaseFieldName as i,getFieldFromIndex as e}from"./fieldUtils.js";class t{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;const t=[];for(const a of this.fields){const e=a?.name,d=s(e);if(e&&d){const s=i(e);this._fieldsMap.set(e,a),this._fieldsMap.set(s,a),this._normalizedFieldsMap.set(d,a),t.push(`${s}:${a.type||""}`)}}t.sort(),this.uid=t.join()}equals(s){return this.uid===s?.uid}get(s){return e({fieldName:s,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}export{t as default};
