0
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ã551_‘I|¥‰ÓMdœv ©ƒ†ü+=ÃÂ '    ‹      ÅUÁŽÚ0½ïW¸>ôF†(›¸Ú¤¢²€Xªªªz0±C¬MâÈ6¤ôëëiÝ]•¶‡dìøÅóÞóhì¿
gÃåçù½_ÞOÐüã»ÉxˆpàSg.Ãz¡ë´]€Ñ#œS Ê²tÊŽ#Õ–HL–vA%"ã0Ã0¹ñ«oäù	§ÌFäaRNÆ9ãß�ŒÈ�Ñ‚qï8 &3šç,)wÏ¤“h'’²°	˜ŒtKëôˆ¶évßŠˆkØ
e64cvÕã‚Þ¬ìºáY5íõ}¨³[>p ä¯$ÛU<ÝÿÆÉ¦ÞCW{jÕPß$hKS±Îld�‰/²5Ò*
0ˆHæV)Í�µˆ1¢©	ð—ñpöÕâÀ$ÕßÄ§(Q<ðÛa0½�!&SšqèyÌ½ÅÜa2¡Ú L2Î.‚jðƒø~yÃ°Æ„\GJFÈü+±)5’©.¨ÕÚ³
ÕDÕö”4úÉŒùÝb4]†ãEm	«¶8±ûW'ŒÉœ*ž
Å##Õî`AÍçu¾ÒÅíqŠ•X'„Zè,ò®lòÇ\–yÓkúYK¬Lì«IðF^Û{Ór½VÛCž;èuº ´�âÃŸR�eÊ¸j2¿t˜…,¹²V×ñü¯aýóù7Ëå4~R‡Ûê´‘ÛtûUÇJhÃ·¶Ö1©ã5ü¾�žÙ?àÐY}Ø÷zê;é‘WDœö    X   ˆl–Ým_Jå2Ž¥2 ƒp ¸”Å£�þI _Y¹BG+Î¸àüÿÆ„lM�¿Å_ˆI|¥�+V[(a–äY>” ”¾R( 	Å�·q§TÅ£Å ?÷     package LatexIndent::GetYamlSettings;

#	This program is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	This program is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	See http://www.gnu.org/licenses/.
#
#	Chris Hughes, 2017
#
#	For all communication, please visit: https://github.com/cmhughes/latexindent.pl
use strict;
use warnings;
use Data::Dumper;
use LatexIndent::Switches qw/%switches $is_m_switch_active $is_t_switch_active $is_tt_switch_active/;
use YAML::Tiny;        # interpret defaultSettings.yaml and other potential settings files
use File::Basename;    # to get the filename and directory path
use File::HomeDir;
use Cwd;
use Exporter qw/import/;
use LatexIndent::LogFile qw/$logger/;
our @EXPORT_OK
    = qw/yaml_read_settings yaml_modify_line_breaks_settings yaml_get_indentation_settings_for_this_object yaml_poly_switch_get_every_or_custom_value yaml_get_indentation_information yaml_get_object_attribute_for_indentation_settings yaml_alignment_at_ampersand_settings %mainSettings/;

# Read in defaultSettings.YAML file
our $defaultSettings;

# master yaml settings is a hash, global to this module
our %mainSettings;

# previously found settings is a hash, global to this module
our %previouslyFoundSettings;

# default values for align at ampersand routine
our @alignAtAmpersandInformation = (
    { name => "lookForAlignDelims",          yamlname => "delims", default => 1 },
    { name => "alignDoubleBackSlash",        default  => 1 },
    { name => "spacesBeforeDoubleBackSlash", default  => 1 },
    { name => "multiColumnGrouping",         default  => 0 },
    { name => "alignRowsWithoutMaxDelims",   default  => 1 },
    { name => "spacesBeforeAmpersand",       default  => 1 },
    { name => "spacesAfterAmpersand",        default  => 1 },
    { name => "justification",               default  => "left" },
    { name => "alignFinalDoubleBackSlash",   default  => 0 },
    { name => "dontMeasure",                 default  => 0 },
    { name => "delimiterRegEx",              default  => "(?<!\\\\)(&)" },
    { name => "delimiterJustification",      default  => "left" },
    { name => "leadingBlankColumn",          default  => -1 },
    { name => "lookForChildCodeBlocks",      default  => 1 },
);

sub yaml_read_settings {
    my $self = shift;

    # read the default settings
    $defaultSettings = YAML::Tiny->read("$FindBin::RealBin/defaultSettings.yaml")
        if ( -e "$FindBin::RealBin/defaultSettings.yaml" );

    # grab the logger object
    $logger->info("*YAML settings read: defaultSettings.yaml");
    $logger->info("Reading defaultSettings.yaml from $FindBin::RealBin/defaultSettings.yaml");
    my $myLibDir = dirname(__FILE__);

    my ( $name, $dir, $ext ) = fileparse( $INC{"LatexIndent/GetYamlSettings.pm"}, "pm" );
    $dir =~ s/\/$//;

    # if latexindent.exe is invoked from TeXLive, then defaultSettings.yaml won't be in
    # the same directory as it; we need to navigate to it
    if ( !$defaultSettings ) {
        $logger->info(
          