/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/snakecase-keys@9.0.2/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";import map from"map-obj";import{snakeCase}from"change-case";const PlainObjectConstructor={}.constructor;function snakecaseKeys(e,s){if(Array.isArray(e)){if(e.some((e=>e.constructor!==PlainObjectConstructor)))throw new Error("obj must be array of plain objects");const r=(s={deep:!0,exclude:[],parsingOptions:{},...s}).snakeCase||(e=>snakeCase(e,s.parsingOptions));return e.map((e=>map(e,((e,t)=>[matches(s.exclude,e)?e:r(e),t,mapperOptions(e,t,s)]),s)))}if(e.constructor!==PlainObjectConstructor)throw new Error("obj must be an plain object");const r=(s={deep:!0,exclude:[],parsingOptions:{},...s}).snakeCase||(e=>snakeCase(e,s.parsingOptions));return map(e,((e,t)=>[matches(s.exclude,e)?e:r(e),t,mapperOptions(e,t,s)]),s)}function matches(e,s){return e.some((e=>"string"==typeof e?e===s:e.test(s)))}function mapperOptions(e,s,r){return r.shouldRecurse?{shouldRecurse:r.shouldRecurse(e,s)}:void 0}export default snakecaseKeys;
//# sourceMappingURL=/sm/1d459c2022c44f19835c77e541856c77d6ca749962b74c4e3a19c43799664abf.map