0
  A   ˆl–Ãa¾”TÔD¨ õŒ†ãm)‹Fÿ�þDó²¬Ûíöe­8ð?ŸÊ„qßÉ_ˆI|¥�+$¾ÂÈ (    %
% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
%
% Repository: https://github.com/jbezos/esindex
%

\ProvidesPackage{esindex}[2019/10/10 v1.7 Spanish indexes (and more)]

\def\esx@level{`\!}
\def\esx@actual{`\@}
\def\esx@encap{`\|}
\def\esx@quote{`\"}
\DeclareOption{ignorespaces}{%
  \def\esx@zapspace#1\esx@zapspace{\zap@space#1 \@empty}}

\DeclareOption{replaceindex}{%
  \AtBeginDocument{%
    \let\esx@trueindex\index
    \let\index\esindex}}

\DeclareOption{nospanish}{\esx@spanishfalse}

\newif\ifesx@babel

\DeclareOption{babel}{%
  \let\esindexlanguage\foreignlanguage
  \esx@babeltrue}

\DeclareOption*{%
  \@expandtwoargs\in@{=}{\CurrentOption}%
  \ifin@
    \expandafter\esx@process\CurrentOption\esx@process
  \else
    \esx@error
  \fi}

\def\esx@process#1=#2\esx@process{%
  \@ifundefined{esx@#1}{\esx@error}{%
  \expandafter\edef\csname esx@#1\endcsname
    {\string`\expandafter\noexpand\csname\string#2\endcsname}}}

\def\esx@error{\PackageError{esindex}{Unknown index parameter}%
	   {Except for ignorespaces, nospanish, babel, replaceindex, ^^J%
     options in this package ave the form parameter=value, where^^J%
     parameter stands for of the following MakeIndex ones:^^J%
     encap, level, actual, quote}}

\newif\ifesx@spanish
\esx@spanishtrue
\let\esx@spanishaccents\relax
\let\esx@spanishquotes\relax
\let\esx@zapspace\@empty
\def\esx@trueindex{\index}

\ProcessOptions

\begingroup

\catcode`\|=\catcode\esx@encap   \lccode`\|=\esx@encap\relax
\catcode`\!=\catcode\esx@level   \lccode`\!=\esx@level\relax
\catcode`\&=\catcode\esx@actual  \lccode`\&=\esx@actual\relax
\catcode`\*=13                   \lccode`\*=\esx@quote\relax

\catcode`\'=13
\catcode`\"=13
\catcode`\~=13

\catcode`\^^A=12

\gdef\esindex#1#{\esx@index{#1}}

\lowercase{
\gdef\esx@index#1#2{%
  \let\esx@g\@empty  % used to build the keysort@actual list
  \esx@bar@idx#2|\@@
  \expandafter\esx@@index\esx@b!\@@
  \toks@\expandafter{\esx@g}%
  \protected@edef\esx@g{\noexpand\esx@trueindex#1{\the\toks@\esx@a}}%
  \esx@g}
}

\lowercase{
\gdef\esx@bar@idx#1|#2\@@{%
  \def\esx@b{#1}\def\esx@a{#2}%
  \ifx\esx@a\@empty\else\esx@bar@eat#2\fi}
}

\lowercase{
\gdef\esx@bar@eat#1|{\def\esx@a{|#1}}
}

\gdef\esindexexpandkey{%
  \protected@edef\esindexkey{\esindexkey}}
\gdef\esindexexpandsubkey{%
  \ifx\esindexsubkey\relax\else
    \protected@edef\esindexsubkey{\esindexsubkey}%
  \fi}
\gdef\esindexexpandsubsubkey{%
  \ifx\esindexsubsubkey\relax\else
    \protected@edef\esindexsubsubkey{\esindexsubsubkey}%
  \fi}

\gdef\esindexexpandkeys{%
  \esindexexpandkey
  \esindexexpandsubkey
  \esindexexpandsubsubkey}

% The following is called for every ! level, much like a loop. #1 is
% the current level.

\lowercase{
\gdef\esx@@index#1!#2\@@{%
  \begingroup
  \let\IeC\@firstofone
  \def\@tabacckludge##1{\csname\string##1\endcsname}%
  \esx@spanishaccents
  \def\esindexkey{#1}%
      % Apply \esindexsort
  \@ifundefined{esx@sort@\expandafter\strip@prefix\meaning\esindexkey}%
    {\@temptokena{#1}}%
    {\@temptokena\expandafter\expandafter\expandafter{%
       \csname esx@sort@\expandafter\strip@prefix\meaning\esindexkey\endcsname}}%
  \edef\esindexkey{\the\@temptokena}%
      % Execute \everyesindex and apply accents, so that \'a becomes a, and
      % redefinitions in \everyesindex are also "applied"
  \the\everyesindex
  \esindexexpandkeys
  \esx@spanishreplacements
  \protected@edef\esindexkey{%
    \esindexkey
    \ifx\esindexsubkey\relax\else
      ^^A\esindexsubkey
    \fi
    \ifx\esindexsubsubkey\relax\else
      ^^A\esindexsubsubkey
    \fi}%
  \@temptokena\expandafter{\esindexkey}%
      % Key now in \@temptokena
      % Particles, with \ignorewords. \esx@remwords works on \@temptokena
  \@for\esx@a:=\esx@ignorewords\do{%
     \expandafter\esx@remwords\expandafter{\esx@a}}%
  \toks@\expandafter{\esx@g}%  \esx@g here contains prev