code: protected function compileRulesets(array $rulesets)
      {
          $out = [];
  
          $elements = $rulesets['data']['sDEF']['lDEF']['ruleset']['el'];
          foreach ($elements as $container) {
              if (isset($container['container']['el'])) {
                  $values = [];
                  foreach ($container['container']['el'] as $key => $value) {
                      if ($key === 'title') {
                          continue;
                      }
                      $values[$key] = $value['vDEF'];
                  }
                  $out[] = $this->expandValuesInRuleset($values);
              }
          }
  
          return $out;
      }
docs: Compiles all FlexForm rule sets.
  
  @param array $rulesets
  @return array